diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b787b9e..87b91623 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,20 @@ This document maintains a list of released versions and changes introduced by those versions. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) +## [5.2.0](https://github.com/Esri/calcite-app-components/compare/v5.1.1...v5.2.0) (2020-01-31) + +### Features + +- Add nesting support to picklist groups ([#770](https://github.com/Esri/calcite-app-components/issues/770)) ([602264b](https://github.com/Esri/calcite-app-components/commit/602264b86de7a18d6b7e222f0b4bfd0d7b0d9acd)), closes [#783](https://github.com/Esri/calcite-app-components/issues/783) [#767](https://github.com/Esri/calcite-app-components/issues/767) [#767](https://github.com/Esri/calcite-app-components/issues/767) [#767](https://github.com/Esri/calcite-app-components/issues/767) [#767](https://github.com/Esri/calcite-app-components/issues/767) [#767](https://github.com/Esri/calcite-app-components/issues/767) [#767](https://github.com/Esri/calcite-app-components/issues/767) +- drag n drop component 483 ([#747](https://github.com/Esri/calcite-app-components/issues/747)) ([71d5897](https://github.com/Esri/calcite-app-components/commit/71d589749039cd17aa37fa57a505ded86d3cce0a)) +- **action:** add scales to Action ([c5948cb](https://github.com/Esri/calcite-app-components/commit/c5948cb7ad93d864c1b7788876aa29bf869e91a0)), closes [#759](https://github.com/Esri/calcite-app-components/issues/759) [#759](https://github.com/Esri/calcite-app-components/issues/759) [#759](https://github.com/Esri/calcite-app-components/issues/759) [#759](https://github.com/Esri/calcite-app-components/issues/759) [#759](https://github.com/Esri/calcite-app-components/issues/759) + +### Bug Fixes + +- **action:** style updates for compact mode ([bc345ce](https://github.com/Esri/calcite-app-components/commit/bc345ce6eb271a2a75e31d35447d517c710cd1f8)), closes [#759](https://github.com/Esri/calcite-app-components/issues/759) +- **block:** Remove extra padding applied to slotted icon content ([#793](https://github.com/Esri/calcite-app-components/issues/793)) ([9911d3a](https://github.com/Esri/calcite-app-components/commit/9911d3a6796fe599b4a0f96e0ea231af89493627)) +- Calcite-shell-panel remove position relative [#782](https://github.com/Esri/calcite-app-components/issues/782) ([fdc74b5](https://github.com/Esri/calcite-app-components/commit/fdc74b537360f9d13085127c67305333f5fc5f99)) + ### [5.1.1](https://github.com/Esri/calcite-app-components/compare/v5.1.0...v5.1.1) (2020-01-28) ### Bug Fixes diff --git a/docs/build/calcite-app.esm.js b/docs/build/calcite-app.esm.js index 945a7331..86471307 100644 --- a/docs/build/calcite-app.esm.js +++ b/docs/build/calcite-app.esm.js @@ -1 +1 @@ -import{p as e,b as t}from"./p-24078e83.js";e().then(e=>t([["p-w0hmxyyk",[[1,"calcite-tip",{dismissed:[1028],nonDismissible:[516,"non-dismissible"],heading:[1],selected:[516],textClose:[1,"text-close"],theme:[513]}],[1,"calcite-tip-manager",{closed:[516],textClose:[1,"text-close"],textDefaultTitle:[513,"text-default-title"],textNext:[1,"text-next"],textPaginationLabel:[513,"text-pagination-label"],textPrevious:[1,"text-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}],[1,"calcite-tip-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-lb4owsc0",[[1,"calcite-block-section",{open:[516],text:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],toggleDisplay:[513,"toggle-display"]}],[1,"calcite-block",{collapsible:[4],disabled:[516],heading:[1],open:[516],loading:[516],summary:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],theme:[513]}]]],["p-afcdvj4t",[[1,"calcite-pick-list",{compact:[516],disabled:[516],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsUpdated","calciteListItemPropsUpdatedHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-md5upvmx",[[1,"calcite-value-list",{compact:[516],disabled:[516],dragEnabled:[516,"drag-enabled"],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsUpdated","calciteListItemPropsUpdatedHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-xnfq7t4i",[[1,"calcite-pick-list-item",{compact:[516],disabled:[516],disableDeselect:[4,"disable-deselect"],icon:[513],metadata:[16],selected:[1540],textDescription:[513,"text-description"],textLabel:[513,"text-label"],value:[513],toggleSelected:[64]}]]],["p-5tz72iac",[[1,"calcite-value-list-item",{compact:[516],disabled:[516],disableDeselect:[4,"disable-deselect"],handleActivated:[1028,"handle-activated"],icon:[513],metadata:[16],selected:[1540],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64]}]]],["p-deugelv9",[[1,"calcite-shell",{theme:[513]}],[1,"calcite-shell-panel",{collapsed:[516],detached:[516],detachedScale:[1,"detached-scale"],layout:[513]}]]],["p-uxcqacai",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-bwqiz0t6",[[1,"calcite-filter",{data:[16],textLabel:[1,"text-label"],textPlaceholder:[1,"text-placeholder"],empty:[32]}]]],["p-ytep1l6u",[[1,"calcite-action-bar",{expand:[516],expanded:[516],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],layout:[513],theme:[513]}],[1,"calcite-action-pad",{expand:[516],expanded:[516],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],layout:[513],theme:[513]}],[1,"calcite-action-group"],[1,"calcite-action",{appearance:[513],active:[516],compact:[516],disabled:[516],indicator:[516],label:[1],loading:[516],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-ptm7eddm",[[1,"calcite-flow-item",{beforeBack:[16],disabled:[516],heightScale:[513,"height-scale"],heading:[1],loading:[516],menuOpen:[516,"menu-open"],showBackButton:[4,"show-back-button"],summary:[1],textBack:[1,"text-back"],textClose:[1,"text-close"],textOpen:[1,"text-open"],theme:[513]}],[1,"calcite-flow",{theme:[513],flowCount:[32],flowDirection:[32],flows:[32],back:[64]},[[0,"calciteFlowItemBackClick","handleCalciteFlowItemBackClick"]]],[1,"calcite-panel",{dismissed:[1540],disabled:[516],dismissible:[516],heightScale:[513,"height-scale"],loading:[516],textClose:[1,"text-close"],theme:[513],setFocus:[64]}]]]],e)); \ No newline at end of file +import{p as e,b as t}from"./p-323e88a0.js";e().then(e=>t([["p-soemhbxo",[[1,"calcite-tip",{dismissed:[1028],nonDismissible:[516,"non-dismissible"],heading:[1],selected:[516],textClose:[1,"text-close"],theme:[513]}],[1,"calcite-tip-manager",{closed:[516],textClose:[1,"text-close"],textDefaultTitle:[513,"text-default-title"],textNext:[1,"text-next"],textPaginationLabel:[513,"text-pagination-label"],textPrevious:[1,"text-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}],[1,"calcite-tip-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-sxjhlvi9",[[1,"calcite-block",{collapsible:[4],disabled:[516],dragHandle:[516,"drag-handle"],heading:[1],open:[516],loading:[516],summary:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],theme:[513]}],[1,"calcite-block-section",{open:[516],text:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],toggleDisplay:[513,"toggle-display"]}]]],["p-ppvbcdwx",[[1,"calcite-pick-list",{compact:[516],disabled:[516],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-puno4cu5",[[1,"calcite-value-list",{compact:[516],disabled:[516],dragEnabled:[516,"drag-enabled"],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-dbbbl1hm",[[1,"calcite-value-list-item",{compact:[516],disabled:[516],disableDeselect:[4,"disable-deselect"],handleActivated:[1028,"handle-activated"],icon:[513],metadata:[16],selected:[1540],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64]}]]],["p-vdxyomtr",[[1,"calcite-shell",{theme:[513]}],[1,"calcite-shell-panel",{collapsed:[516],detached:[516],detachedScale:[1,"detached-scale"],layout:[513]}]]],["p-zxctfi66",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-tf2jtkhh",[[1,"calcite-sortable-list",{handleSelector:[1,"handle-selector"],disabled:[516],loading:[516],handleActivated:[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]]],["p-ljeroact",[[1,"calcite-handle",{activated:[1540],textTitle:[1537,"text-title"],setFocus:[64]}]]],["p-wlyhrdjt",[[1,"calcite-filter",{data:[16],textLabel:[1,"text-label"],textPlaceholder:[1,"text-placeholder"],empty:[32]}]]],["p-nm3wmvcl",[[1,"calcite-action-bar",{expand:[516],expanded:[516],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],layout:[513],theme:[513]}],[1,"calcite-action-pad",{expand:[516],expanded:[516],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],layout:[513],theme:[513]}],[1,"calcite-action-group"],[1,"calcite-action",{appearance:[513],active:[516],compact:[516],disabled:[516],indicator:[516],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-ji6g3zqj",[[1,"calcite-flow-item",{beforeBack:[16],disabled:[516],heightScale:[513,"height-scale"],heading:[1],loading:[516],menuOpen:[516,"menu-open"],showBackButton:[4,"show-back-button"],summary:[1],textBack:[1,"text-back"],textClose:[1,"text-close"],textOpen:[1,"text-open"],theme:[513]}],[1,"calcite-flow",{theme:[513],flowCount:[32],flowDirection:[32],flows:[32],back:[64]},[[0,"calciteFlowItemBackClick","handleCalciteFlowItemBackClick"]]],[1,"calcite-panel",{dismissed:[1540],disabled:[516],dismissible:[516],heightScale:[513,"height-scale"],loading:[516],textClose:[1,"text-close"],theme:[513],setFocus:[64]}]]],["p-pqrkoyb9",[[1,"calcite-pick-list-item",{compact:[516],disabled:[516],disableDeselect:[4,"disable-deselect"],icon:[513],metadata:[16],selected:[1540],textDescription:[513,"text-description"],textLabel:[513,"text-label"],value:[513],toggleSelected:[64]}]]]],e)); \ No newline at end of file diff --git a/docs/build/calcite-app.js b/docs/build/calcite-app.js index 24c4c6a1..5d3657eb 100644 --- a/docs/build/calcite-app.js +++ b/docs/build/calcite-app.js @@ -880,7 +880,7 @@ var CustomStyle = /** @class */ (function () { var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : ''; var start = function() { - var url = new URL('./p-1753a528.system.js', resourcesUrl); + var url = new URL('./p-b77d79ed.system.js', resourcesUrl); System.import(url.href); }; diff --git a/docs/build/p-a138cb96.js b/docs/build/p-0405e6a8.js similarity index 55% rename from docs/build/p-a138cb96.js rename to docs/build/p-0405e6a8.js index 80ba60ca..7706ed9c 100644 --- a/docs/build/p-a138cb96.js +++ b/docs/build/p-0405e6a8.js @@ -1 +1 @@ -const e={action:"action",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",label:"label",title:"title",textContainer:"text-container"},t={unchecked:"square",checked:"check-square",selected:"circle-filled",unselected:"circle"};export{e as C,t as I}; \ No newline at end of file +const e={action:"action",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",label:"label",title:"title",textContainer:"text-container"},c={unchecked:"square",checked:"check",selected:"circle-filled",unselected:"circle"},t={secondaryAction:"secondary-action"};export{e as C,c as I,t as S}; \ No newline at end of file diff --git a/docs/build/p-1ada5d30.js b/docs/build/p-1243f6c7.js similarity index 100% rename from docs/build/p-1ada5d30.js rename to docs/build/p-1243f6c7.js diff --git a/docs/build/p-1753a528.system.js b/docs/build/p-1753a528.system.js deleted file mode 100644 index aaa96b86..00000000 --- a/docs/build/p-1753a528.system.js +++ /dev/null @@ -1 +0,0 @@ -System.register(["./p-6be4d309.system.js"],(function(){"use strict";var e,t;return{setters:[function(l){e=l.p;t=l.b}],execute:function(){e().then((function(e){return t([["p-cevhwu9e.system",[[1,"calcite-tip",{dismissed:[1028],nonDismissible:[516,"non-dismissible"],heading:[1],selected:[516],textClose:[1,"text-close"],theme:[513]}],[1,"calcite-tip-manager",{closed:[516],textClose:[1,"text-close"],textDefaultTitle:[513,"text-default-title"],textNext:[1,"text-next"],textPaginationLabel:[513,"text-pagination-label"],textPrevious:[1,"text-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}],[1,"calcite-tip-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-umcw37so.system",[[1,"calcite-block-section",{open:[516],text:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],toggleDisplay:[513,"toggle-display"]}],[1,"calcite-block",{collapsible:[4],disabled:[516],heading:[1],open:[516],loading:[516],summary:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],theme:[513]}]]],["p-qlfbow51.system",[[1,"calcite-pick-list",{compact:[516],disabled:[516],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsUpdated","calciteListItemPropsUpdatedHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-ypstg1b7.system",[[1,"calcite-value-list",{compact:[516],disabled:[516],dragEnabled:[516,"drag-enabled"],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsUpdated","calciteListItemPropsUpdatedHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-l9zhjoc8.system",[[1,"calcite-pick-list-item",{compact:[516],disabled:[516],disableDeselect:[4,"disable-deselect"],icon:[513],metadata:[16],selected:[1540],textDescription:[513,"text-description"],textLabel:[513,"text-label"],value:[513],toggleSelected:[64]}]]],["p-0mnuleck.system",[[1,"calcite-value-list-item",{compact:[516],disabled:[516],disableDeselect:[4,"disable-deselect"],handleActivated:[1028,"handle-activated"],icon:[513],metadata:[16],selected:[1540],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64]}]]],["p-0e5iyfse.system",[[1,"calcite-shell",{theme:[513]}],[1,"calcite-shell-panel",{collapsed:[516],detached:[516],detachedScale:[1,"detached-scale"],layout:[513]}]]],["p-fsc87cgi.system",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-7be018qp.system",[[1,"calcite-filter",{data:[16],textLabel:[1,"text-label"],textPlaceholder:[1,"text-placeholder"],empty:[32]}]]],["p-gyzn5znt.system",[[1,"calcite-action-bar",{expand:[516],expanded:[516],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],layout:[513],theme:[513]}],[1,"calcite-action-pad",{expand:[516],expanded:[516],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],layout:[513],theme:[513]}],[1,"calcite-action-group"],[1,"calcite-action",{appearance:[513],active:[516],compact:[516],disabled:[516],indicator:[516],label:[1],loading:[516],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-rdw78vyr.system",[[1,"calcite-flow-item",{beforeBack:[16],disabled:[516],heightScale:[513,"height-scale"],heading:[1],loading:[516],menuOpen:[516,"menu-open"],showBackButton:[4,"show-back-button"],summary:[1],textBack:[1,"text-back"],textClose:[1,"text-close"],textOpen:[1,"text-open"],theme:[513]}],[1,"calcite-flow",{theme:[513],flowCount:[32],flowDirection:[32],flows:[32],back:[64]},[[0,"calciteFlowItemBackClick","handleCalciteFlowItemBackClick"]]],[1,"calcite-panel",{dismissed:[1540],disabled:[516],dismissible:[516],heightScale:[513,"height-scale"],loading:[516],textClose:[1,"text-close"],theme:[513],setFocus:[64]}]]]],e)}))}}})); \ No newline at end of file diff --git a/docs/build/p-24078e83.js b/docs/build/p-323e88a0.js similarity index 50% rename from docs/build/p-24078e83.js rename to docs/build/p-323e88a0.js index 48a7aa59..b0dd4d56 100644 --- a/docs/build/p-24078e83.js +++ b/docs/build/p-323e88a0.js @@ -1 +1 @@ -let t,e,n,l=!1,o=!1,s=!1;const r="http://www.w3.org/1999/xlink",i=new WeakMap,c=t=>"sc-"+t,a={},f=t=>"object"==(t=typeof t)||"function"===t,u=(t,e,...n)=>{let l=null,o=null,s=null,r=!1,i=!1,c=[];const a=e=>{for(let n=0;nt[e]).join(" "))}}if("function"==typeof t)return t(e,c,m);const u=p(t,null);return u.l=e,c.length>0&&(u.o=c),u.s=o,u.i=s,u},p=(t,e)=>({u:0,p:t,t:e,$:null,o:null,l:null,s:null,i:null}),d={},m={forEach:(t,e)=>t.map($).forEach(e),map:(t,e)=>t.map($).map(e).map(h)},$=t=>({vattrs:t.l,vchildren:t.o,vkey:t.s,vname:t.i,vtag:t.p,vtext:t.t}),h=t=>{const e=p(t.vtag,t.vtext);return e.l=t.vattrs,e.o=t.vchildren,e.s=t.vkey,e.i=t.vname,e},w=(t,e,n,l,o,s)=>{if(n===l)return;let i=at(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=b(n),s=b(l);e.remove(...o.filter(t=>t&&!s.includes(t))),e.add(...s.filter(t=>t&&!o.includes(t)))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(i||"o"!==e[0]||"n"!==e[1]){const u=f(l);if((i||u&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{let o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(a){}let p=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,p=!0),null==l||!1===l?p?t.removeAttributeNS(r,e):t.removeAttribute(e):(!i||4&s||o)&&!u&&(l=!0===l?"":l,p?t.setAttributeNS(r,e,l):t.setAttribute(e,l))}else e="-"===e[2]?e.slice(3):at(tt,c)?c.slice(2):c[2]+e.slice(3),n&&nt.rel(t,e,n,!1),l&&nt.ael(t,e,l,!1)},y=/\s/,b=t=>t?t.split(y):[],_=(t,e,n,l)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,s=t&&t.l||a,r=e.l||a;for(l in s)l in r||w(o,l,s[l],void 0,n,e.u);for(l in r)w(o,l,s[l],r[l],n,e.u)},v=(o,r,i,c)=>{let a,f,u,p=r.o[i],d=0;if(l||(s=!0,"slot"===p.p&&(t&&c.classList.add(t+"-s"),p.u|=p.o?2:1)),null!==p.t)a=p.$=et.createTextNode(p.t);else if(1&p.u)a=p.$=et.createTextNode("");else if(a=p.$=et.createElement(2&p.u?"slot-fb":p.p),_(null,p,!1),null!=t&&a["s-si"]!==t&&a.classList.add(a["s-si"]=t),p.o)for(d=0;d{nt.u|=1;const l=t.childNodes;for(let o=l.length-1;o>=0;o--){const t=l[o];t["s-hn"]!==n&&t["s-ol"]&&(R(t).insertBefore(t,S(t)),t["s-ol"].remove(),t["s-ol"]=void 0,s=!0),e&&g(t,e)}nt.u&=-2},k=(t,e,l,o,s,r)=>{let i,c=t["s-cr"]&&t["s-cr"].parentNode||t;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=v(null,l,s,t),i&&(o[s].$=i,c.insertBefore(i,S(e))))},j=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(s=l.$,O(l),o=!0,s["s-ol"]?s["s-ol"].remove():g(s,!0),s.remove())},M=(t,e)=>t.p===e.p&&("slot"===t.p?t.i===e.i:t.s===e.s),S=t=>t&&t["s-ol"]||t,R=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,L=(t,e)=>{const n=e.$=t.$,l=t.o,o=e.o;let s;null===e.t?("slot"===e.p||_(t,e,!1),null!==l&&null!==o?((t,e,n,l)=>{let o,s,r=0,i=0,c=0,a=0,f=e.length-1,u=e[0],p=e[f],d=l.length-1,m=l[0],$=l[d];for(;r<=f&&i<=d;)if(null==u)u=e[++r];else if(null==p)p=e[--f];else if(null==m)m=l[++i];else if(null==$)$=l[--d];else if(M(u,m))L(u,m),u=e[++r],m=l[++i];else if(M(p,$))L(p,$),p=e[--f],$=l[--d];else if(M(u,$))"slot"!==u.p&&"slot"!==$.p||g(u.$.parentNode,!1),L(u,$),t.insertBefore(u.$,p.$.nextSibling),u=e[++r],$=l[--d];else if(M(p,m))"slot"!==u.p&&"slot"!==$.p||g(p.$.parentNode,!1),L(p,m),t.insertBefore(p.$,u.$),p=e[--f],m=l[++i];else{for(c=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].s&&e[a].s===m.s){c=a;break}c>=0?(s=e[c],s.p!==m.p?o=v(e&&e[i],n,c,t):(L(s,m),e[c]=void 0,o=s.$),m=l[++i]):(o=v(e&&e[i],n,i,t),m=l[++i]),o&&R(u.$).insertBefore(o,S(u.$))}r>f?k(t,null==l[d+1]?null:l[d+1].$,n,l,i,d):i>d&&j(e,r,f)})(n,l,e,o):null!==o?(null!==t.t&&(n.textContent=""),k(n,null,e,o,0,o.length-1)):null!==l&&j(l,0,l.length-1)):(s=n["s-cr"])?s.parentNode.textContent=e.t:t.t!==e.t&&(n.data=e.t)},P=t=>{let e,n,l,o,s,r,i=t.childNodes;for(n=0,l=i.length;n{let e,n,l,s,r=t.childNodes,i=r.length,c=0,a=0,f=0;for(i=r.length;c=0;a--)n=l[a],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(f=n.nodeType,((3===f||8===f)&&""===s||1===f&&null===n.getAttribute("slot")&&""===s||1===f&&n.getAttribute("slot")===s)&&(U.some(t=>t.h===n)||(o=!0,n["s-sn"]=s,U.push({_:e,h:n}))));1===e.nodeType&&x(e)}},O=t=>{t.l&&t.l.ref&&t.l.ref(null),t.o&&t.o.forEach(O)},C=(t,e)=>{e&&!t.v&&e["s-p"].push(new Promise(e=>t.v=e))},E=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);const n=t.g,l=()=>T(t,n,e);let o;return C(t,t.k),e&&(t.u|=256,t.j&&(t.j.forEach(([t,e])=>F(n,t,e)),t.j=null),o=F(n,"componentWillLoad")),H(o,()=>vt(l))},T=(r,a,f)=>{const m=r.M,$=m["s-rc"];f&&(t=>{const e=t.S,n=t.M,l=e.u,o=((t,e,n,l)=>{let o=c(e.R),s=dt.get(o);if(t=11===t.nodeType?t:et,s)if("string"==typeof s){let n,r=i.get(t=t.head||t);if(r||i.set(t,r=new Set),!r.has(o)){if(nt.L){n=nt.L.createHostStyle(l,o,s,!!(10&e.u));const t=n["s-sc"];t&&(o=t,r=null)}else n=et.createElement("style"),n.innerHTML=s;t.insertBefore(n,t.querySelector("link")),r&&r.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[s]);return o})(lt&&n.shadowRoot?n.shadowRoot:n.getRootNode(),e,0,n);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(r);((r,i)=>{const c=r.M,a=r.S,f=r.P||p(null,null),m=($=i)&&$.p===d?i:u(null,null,i);var $;if(n=c.tagName,a.U&&(m.l=m.l||{},a.U.forEach(([t,e])=>m.l[e]=c[t])),m.p=null,m.u|=4,r.P=m,m.$=f.$=c.shadowRoot||c,t=c["s-sc"],e=c["s-cr"],l=lt&&0!=(1&a.u),o=!1,L(f,m),s){x(m.$);for(let t=0;tt()),m["s-rc"]=void 0);{const t=m["s-p"],e=()=>W(r);0===t.length?e():(Promise.all(t).then(e),r.u|=4,t.length=0)}},A=t=>{try{t=t.render()}catch(e){ft(e)}return t},W=t=>{const e=t.M,n=t.g,l=t.k;64&t.u||(t.u|=64,e.classList.add("hydrated"),F(n,"componentDidLoad"),t.O(e),l||D()),t.C(e),t.v&&(t.v(),t.v=void 0),512&t.u&&_t(()=>E(t,!1)),t.u&=-517},D=()=>{et.documentElement.classList.add("hydrated"),nt.u|=2},F=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(l){ft(l)}},H=(t,e)=>t&&t.then?t.then(e):e(),N=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=q(t),n=B(this,e);if(n){const l=V(n,e),o=l[l.length-1];return o.parentNode.insertBefore(t,o.nextSibling)}return this.__appendChild(t)}},q=t=>1===t.nodeType&&t.getAttribute("slot")||"",B=(t,e)=>{let n,l=t.childNodes,o=0;for(;o{const n=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)n.push(t);return n},z=(t,e,n)=>{if(e.T){t.watchers&&(e.A=t.watchers);const l=Object.entries(e.T),o=t.prototype;if(l.forEach(([t,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,t,{get(){return e=t,rt(this).W.get(e);var e},set(n){((t,e,n,l)=>{const o=rt(t),s=o.W.get(e),r=o.u,i=o.g;var c,a;if(a=l.T[e][0],n=null==(c=n)||f(c)?c:4&a?"false"!==c&&(""===c||!!c):1&a?String(c):c,!(8&r&&void 0!==s||n===s)&&(o.W.set(e,n),i)){if(l.A&&128&r){const t=l.A[e];t&&t.forEach(t=>{try{i[t](n,s,e)}catch(l){ft(l)}})}2==(18&r)&&E(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,t,{value(...e){const n=rt(this);return n.D.then(()=>n.g[t](...e))}})}),1&n){const n=new Map;o.attributeChangedCallback=function(t,e,l){nt.jmp(()=>{const e=n.get(t);this[e]=(null!==l||"boolean"!=typeof this[e])&&l})},t.observedAttributes=l.filter(([t,e])=>15&e[0]).map(([t,l])=>{const o=l[1]||t;return n.set(o,t),512&l[0]&&e.U.push([t,o]),o})}}return t},G=t=>{F(t,"connectedCallback")},I=t=>{if(0==(1&nt.u)){const e=rt(t),n=e.S,l=()=>{};if(n.F&&(e.H=((t,e,n)=>{e.j=e.j||[];const l=n.map(([n,l,o])=>{const s=t,r=((t,e)=>n=>{256&t.u?t.g[e](n):t.j.push([e,n])})(e,o),i=(t=>0!=(2&t))(n);return nt.ael(s,l,r,i),()=>nt.rel(s,l,r,i)});return()=>l.forEach(t=>t())})(t,e,n.F)),!(1&e.u)){e.u|=1,12&n.u&&J(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){C(e,e.k=n);break}}n.T&&Object.entries(n.T).forEach(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),_t(()=>(async(t,e,n,l,o)=>{if(0==(32&e.u)){e.u|=32;{if((o=pt(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(n.A=o.watchers,z(o,n,2),o.isProxied=!0);const t=()=>{};e.u|=8;try{new o(e)}catch(i){ft(i)}e.u&=-9,e.u|=128,t(),G(e.g)}const t=c(n.R);if(!dt.has(t)&&o.style){const e=()=>{};let l=o.style;8&n.u&&(l=await __sc_import_calcite_app("./p-ddf6e862.js").then(e=>e.scopeCss(l,t,!1))),((t,e,n)=>{let l=dt.get(t);ot&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,dt.set(t,l)})(t,l,!!(1&n.u)),e()}}const s=e.k,r=()=>E(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n))}G(e.g),l()}},J=t=>{const e=t["s-cr"]=et.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},K=(t,e={})=>{const n=[],l=e.exclude||[],o=et.head,s=tt.customElements,r=o.querySelector("meta[charset]"),i=et.createElement("style"),c=[];let a,f=!0;Object.assign(nt,e),nt.N=new URL(e.resourcesUrl||"./",et.baseURI).href,e.syncQueue&&(nt.u|=4),t.forEach(t=>t[1].forEach(e=>{const o={u:e[0],R:e[1],T:e[2],F:e[3]};o.T=e[2],o.F=e[3],o.U=[],o.A={},!lt&&1&o.u&&(o.u|=8);const r=o.R,i=class extends HTMLElement{constructor(t){super(t),ct(t=this,o),1&o.u&&(lt?t.attachShadow({mode:"open"}):"shadowRoot"in t||(t.shadowRoot=t))}connectedCallback(){a&&(clearTimeout(a),a=null),f?c.push(this):nt.jmp(()=>I(this))}disconnectedCallback(){nt.jmp(()=>(t=>{if(0==(1&nt.u)){const e=rt(t),n=e.g;e.H&&(e.H(),e.H=void 0),nt.L&&nt.L.removeHost(t),F(n,"componentDidUnload")}})(this))}forceUpdate(){(()=>{{const t=rt(this);t.M.isConnected&&2==(18&t.u)&&E(t,!1)}})()}componentOnReady(){return rt(this).q}};N(i.prototype),o.B=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,z(i,o,1)))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),o.insertBefore(i,r?r.nextSibling:o.firstChild),f=!1,c.length>0?c.forEach(t=>t.connectedCallback()):nt.jmp(()=>a=setTimeout(D,30,"timeout"))},Q=t=>rt(t).M,X=(t,e,n)=>{const l=Q(t);return{emit:t=>{const o=new CustomEvent(e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t});return l.dispatchEvent(o),o}}};let Y=0,Z=!1;const tt="undefined"!=typeof window?window:{},et=tt.document||{head:{}},nt={u:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l)},lt=(()=>(et.head.attachShadow+"").includes("[native"))(),ot=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),st=new WeakMap,rt=t=>st.get(t),it=(t,e)=>st.set(e.g=t,e),ct=(t,e)=>{const n={u:0,M:t,S:e,W:new Map};return n.D=new Promise(t=>n.C=t),n.q=new Promise(t=>n.O=t),t["s-p"]=[],t["s-rc"]=[],st.set(t,n)},at=(t,e)=>e in t,ft=t=>console.error(t),ut=new Map,pt=t=>{const e=t.R.replace(/-/g,"_"),n=t.B,l=ut.get(n);return l?l[e]:__sc_import_calcite_app(`./${n}.entry.js`).then(t=>(ut.set(n,t),t[e]),ft)},dt=new Map,mt=[],$t=[],ht=[],wt=(t,e)=>n=>{t.push(n),Z||(Z=!0,e&&4&nt.u?_t(bt):nt.raf(bt))},yt=(t,e)=>{let n=0,l=0;for(;n{Y++,(t=>{for(let n=0;n0&&(ht.push(...$t),$t.length=0),(Z=mt.length+$t.length+ht.length>0)?nt.raf(bt):Y=0},_t=t=>Promise.resolve().then(t),vt=wt($t,!0),gt=()=>tt.CSS&&tt.CSS.supports&&tt.CSS.supports("color","var(--c)")?Promise.resolve():__sc_import_calcite_app("./p-9eb74d76.js").then(()=>{if(nt.L=tt.__stencil_cssshim,nt.L)return nt.L.initShim()}),kt=()=>{nt.L=tt.__stencil_cssshim;const t=Array.from(et.querySelectorAll("script")).find(t=>new RegExp("/calcite-app(\\.esm)?\\.js($|\\?|#)").test(t.src)||"calcite-app"===t.getAttribute("data-stencil-namespace")),e=t["data-opts"]||{};return"onbeforeload"in t&&!history.scrollRestoration?{then(){}}:(e.resourcesUrl=new URL(".",new URL(t.getAttribute("data-resources-url")||t.src,tt.location.href)).href,jt(e.resourcesUrl,t),window.customElements?Promise.resolve(e):__sc_import_calcite_app("./p-1ada5d30.js").then(()=>e))},jt=(t,e)=>{const n=`__sc_import_${"calcite-app".replace(/\s|-/g,"_")}`;try{tt[n]=new Function("w",`return import(w);//${Math.random()}`)}catch(l){const o=new Map;tt[n]=l=>{const s=new URL(l,t).href;let r=o.get(s);if(!r){const t=et.createElement("script");t.type="module",t.crossOrigin=e.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${n}.m = m;`],{type:"application/javascript"})),r=new Promise(e=>{t.onload=()=>{e(tt[n].m),t.remove()}}),o.set(s,r),et.head.appendChild(t)}return r}}};export{d as H,gt as a,K as b,X as c,Q as g,u as h,kt as p,it as r}; \ No newline at end of file +let t,e,n,l=!1,o=!1,s=!1;const r="http://www.w3.org/1999/xlink",i=new WeakMap,c=t=>"sc-"+t,a={},f=t=>"object"==(t=typeof t)||"function"===t,u=(t,e,...n)=>{let l=null,o=null,s=null,r=!1,i=!1,c=[];const a=e=>{for(let n=0;nt[e]).join(" "))}}if("function"==typeof t)return t(e,c,d);const u=p(t,null);return u.l=e,c.length>0&&(u.o=c),u.s=o,u.i=s,u},p=(t,e)=>({u:0,p:t,t:e,$:null,o:null,l:null,s:null,i:null}),m={},d={forEach:(t,e)=>t.map($).forEach(e),map:(t,e)=>t.map($).map(e).map(h)},$=t=>({vattrs:t.l,vchildren:t.o,vkey:t.s,vname:t.i,vtag:t.p,vtext:t.t}),h=t=>{const e=p(t.vtag,t.vtext);return e.l=t.vattrs,e.o=t.vchildren,e.s=t.vkey,e.i=t.vname,e},w=(t,e,n,l,o,s)=>{if(n===l)return;let i=at(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=b(n),s=b(l);e.remove(...o.filter(t=>t&&!s.includes(t))),e.add(...s.filter(t=>t&&!o.includes(t)))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(i||"o"!==e[0]||"n"!==e[1]){const u=f(l);if((i||u&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{let o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(a){}let p=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,p=!0),null==l||!1===l?p?t.removeAttributeNS(r,e):t.removeAttribute(e):(!i||4&s||o)&&!u&&(l=!0===l?"":l,p?t.setAttributeNS(r,e,l):t.setAttribute(e,l))}else e="-"===e[2]?e.slice(3):at(tt,c)?c.slice(2):c[2]+e.slice(3),n&&nt.rel(t,e,n,!1),l&&nt.ael(t,e,l,!1)},y=/\s/,b=t=>t?t.split(y):[],_=(t,e,n,l)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,s=t&&t.l||a,r=e.l||a;for(l in s)l in r||w(o,l,s[l],void 0,n,e.u);for(l in r)w(o,l,s[l],r[l],n,e.u)},v=(o,r,i,c)=>{let a,f,u,p=r.o[i],m=0;if(l||(s=!0,"slot"===p.p&&(t&&c.classList.add(t+"-s"),p.u|=p.o?2:1)),null!==p.t)a=p.$=et.createTextNode(p.t);else if(1&p.u)a=p.$=et.createTextNode("");else if(a=p.$=et.createElement(2&p.u?"slot-fb":p.p),_(null,p,!1),null!=t&&a["s-si"]!==t&&a.classList.add(a["s-si"]=t),p.o)for(m=0;m{nt.u|=1;const l=t.childNodes;for(let o=l.length-1;o>=0;o--){const t=l[o];t["s-hn"]!==n&&t["s-ol"]&&(R(t).insertBefore(t,S(t)),t["s-ol"].remove(),t["s-ol"]=void 0,s=!0),e&&g(t,e)}nt.u&=-2},k=(t,e,l,o,s,r)=>{let i,c=t["s-cr"]&&t["s-cr"].parentNode||t;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=v(null,l,s,t),i&&(o[s].$=i,c.insertBefore(i,S(e))))},j=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(s=l.$,O(l),o=!0,s["s-ol"]?s["s-ol"].remove():g(s,!0),s.remove())},M=(t,e)=>t.p===e.p&&("slot"===t.p?t.i===e.i:t.s===e.s),S=t=>t&&t["s-ol"]||t,R=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,L=(t,e)=>{const n=e.$=t.$,l=t.o,o=e.o;let s;null===e.t?("slot"===e.p||_(t,e,!1),null!==l&&null!==o?((t,e,n,l)=>{let o,s,r=0,i=0,c=0,a=0,f=e.length-1,u=e[0],p=e[f],m=l.length-1,d=l[0],$=l[m];for(;r<=f&&i<=m;)if(null==u)u=e[++r];else if(null==p)p=e[--f];else if(null==d)d=l[++i];else if(null==$)$=l[--m];else if(M(u,d))L(u,d),u=e[++r],d=l[++i];else if(M(p,$))L(p,$),p=e[--f],$=l[--m];else if(M(u,$))"slot"!==u.p&&"slot"!==$.p||g(u.$.parentNode,!1),L(u,$),t.insertBefore(u.$,p.$.nextSibling),u=e[++r],$=l[--m];else if(M(p,d))"slot"!==u.p&&"slot"!==$.p||g(p.$.parentNode,!1),L(p,d),t.insertBefore(p.$,u.$),p=e[--f],d=l[++i];else{for(c=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].s&&e[a].s===d.s){c=a;break}c>=0?(s=e[c],s.p!==d.p?o=v(e&&e[i],n,c,t):(L(s,d),e[c]=void 0,o=s.$),d=l[++i]):(o=v(e&&e[i],n,i,t),d=l[++i]),o&&R(u.$).insertBefore(o,S(u.$))}r>f?k(t,null==l[m+1]?null:l[m+1].$,n,l,i,m):i>m&&j(e,r,f)})(n,l,e,o):null!==o?(null!==t.t&&(n.textContent=""),k(n,null,e,o,0,o.length-1)):null!==l&&j(l,0,l.length-1)):(s=n["s-cr"])?s.parentNode.textContent=e.t:t.t!==e.t&&(n.data=e.t)},P=t=>{let e,n,l,o,s,r,i=t.childNodes;for(n=0,l=i.length;n{let e,n,l,s,r=t.childNodes,i=r.length,c=0,a=0,f=0;for(i=r.length;c=0;a--)n=l[a],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(f=n.nodeType,((3===f||8===f)&&""===s||1===f&&null===n.getAttribute("slot")&&""===s||1===f&&n.getAttribute("slot")===s)&&(U.some(t=>t.h===n)||(o=!0,n["s-sn"]=s,U.push({_:e,h:n}))));1===e.nodeType&&x(e)}},O=t=>{t.l&&t.l.ref&&t.l.ref(null),t.o&&t.o.forEach(O)},C=(t,e)=>{e&&!t.v&&e["s-p"].push(new Promise(e=>t.v=e))},E=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);const n=t.g,l=()=>T(t,n,e);let o;return C(t,t.k),e&&(t.u|=256,t.j&&(t.j.forEach(([t,e])=>F(n,t,e)),t.j=null),o=F(n,"componentWillLoad")),H(o,()=>vt(l))},T=(r,a,f)=>{const d=r.M,$=d["s-rc"];f&&(t=>{const e=t.S,n=t.M,l=e.u,o=((t,e,n,l)=>{let o=c(e.R),s=mt.get(o);if(t=11===t.nodeType?t:et,s)if("string"==typeof s){let n,r=i.get(t=t.head||t);if(r||i.set(t,r=new Set),!r.has(o)){if(nt.L){n=nt.L.createHostStyle(l,o,s,!!(10&e.u));const t=n["s-sc"];t&&(o=t,r=null)}else n=et.createElement("style"),n.innerHTML=s;t.insertBefore(n,t.querySelector("link")),r&&r.add(o)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[s]);return o})(lt&&n.shadowRoot?n.shadowRoot:n.getRootNode(),e,0,n);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(r);((r,i)=>{const c=r.M,a=r.S,f=r.P||p(null,null),d=($=i)&&$.p===m?i:u(null,null,i);var $;if(n=c.tagName,a.U&&(d.l=d.l||{},a.U.forEach(([t,e])=>d.l[e]=c[t])),d.p=null,d.u|=4,r.P=d,d.$=f.$=c.shadowRoot||c,t=c["s-sc"],e=c["s-cr"],l=lt&&0!=(1&a.u),o=!1,L(f,d),s){x(d.$);for(let t=0;tt()),d["s-rc"]=void 0);{const t=d["s-p"],e=()=>W(r);0===t.length?e():(Promise.all(t).then(e),r.u|=4,t.length=0)}},A=t=>{try{t=t.render()}catch(e){ft(e)}return t},W=t=>{const e=t.M,n=t.g,l=t.k;64&t.u||(t.u|=64,e.classList.add("hydrated"),F(n,"componentDidLoad"),t.O(e),l||D()),t.C(e),t.v&&(t.v(),t.v=void 0),512&t.u&&_t(()=>E(t,!1)),t.u&=-517},D=()=>{et.documentElement.classList.add("hydrated"),nt.u|=2},F=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(l){ft(l)}},H=(t,e)=>t&&t.then?t.then(e):e(),N=(t,e,n)=>{if(e.T){t.watchers&&(e.A=t.watchers);const l=Object.entries(e.T),o=t.prototype;if(l.forEach(([t,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,t,{get(){return e=t,rt(this).W.get(e);var e},set(n){((t,e,n,l)=>{const o=rt(t),s=o.W.get(e),r=o.u,i=o.g;var c,a;if(a=l.T[e][0],n=null==(c=n)||f(c)?c:4&a?"false"!==c&&(""===c||!!c):1&a?String(c):c,!(8&r&&void 0!==s||n===s)&&(o.W.set(e,n),i)){if(l.A&&128&r){const t=l.A[e];t&&t.forEach(t=>{try{i[t](n,s,e)}catch(l){ft(l)}})}2==(18&r)&&E(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,t,{value(...e){const n=rt(this);return n.D.then(()=>n.g[t](...e))}})}),1&n){const n=new Map;o.attributeChangedCallback=function(t,e,l){nt.jmp(()=>{const e=n.get(t);this[e]=(null!==l||"boolean"!=typeof this[e])&&l})},t.observedAttributes=l.filter(([t,e])=>15&e[0]).map(([t,l])=>{const o=l[1]||t;return n.set(o,t),512&l[0]&&e.U.push([t,o]),o})}}return t},q=t=>{F(t,"connectedCallback")},B=t=>{if(0==(1&nt.u)){const e=rt(t),n=e.S,l=()=>{};if(n.F&&(e.H=((t,e,n)=>{e.j=e.j||[];const l=n.map(([n,l,o])=>{const s=t,r=((t,e)=>n=>{256&t.u?t.g[e](n):t.j.push([e,n])})(e,o),i=(t=>0!=(2&t))(n);return nt.ael(s,l,r,i),()=>nt.rel(s,l,r,i)});return()=>l.forEach(t=>t())})(t,e,n.F)),!(1&e.u)){e.u|=1,12&n.u&&V(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){C(e,e.k=n);break}}n.T&&Object.entries(n.T).forEach(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),_t(()=>(async(t,e,n,l,o)=>{if(0==(32&e.u)){e.u|=32;{if((o=pt(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(n.A=o.watchers,N(o,n,2),o.isProxied=!0);const t=()=>{};e.u|=8;try{new o(e)}catch(i){ft(i)}e.u&=-9,e.u|=128,t(),q(e.g)}const t=c(n.R);if(!mt.has(t)&&o.style){const e=()=>{};let l=o.style;8&n.u&&(l=await __sc_import_calcite_app("./p-b621456f.js").then(e=>e.scopeCss(l,t,!1))),((t,e,n)=>{let l=mt.get(t);ot&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,mt.set(t,l)})(t,l,!!(1&n.u)),e()}}const s=e.k,r=()=>E(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n))}q(e.g),l()}},V=t=>{const e=t["s-cr"]=et.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},z=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=G(t),n=I(this,e);if(n){const l=J(n,e),o=l[l.length-1];return o.parentNode.insertBefore(t,o.nextSibling)}return this.__appendChild(t)}},G=t=>1===t.nodeType&&t.getAttribute("slot")||"",I=(t,e)=>{let n,l=t.childNodes,o=0;for(;o{const n=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)n.push(t);return n},K=(t,e={})=>{const n=[],l=e.exclude||[],o=et.head,s=tt.customElements,r=o.querySelector("meta[charset]"),i=et.createElement("style"),c=[];let a,f=!0;Object.assign(nt,e),nt.N=new URL(e.resourcesUrl||"./",et.baseURI).href,e.syncQueue&&(nt.u|=4),t.forEach(t=>t[1].forEach(e=>{const o={u:e[0],R:e[1],T:e[2],F:e[3]};o.T=e[2],o.F=e[3],o.U=[],o.A={},!lt&&1&o.u&&(o.u|=8);const r=o.R,i=class extends HTMLElement{constructor(t){super(t),ct(t=this,o),1&o.u&&(lt?t.attachShadow({mode:"open"}):"shadowRoot"in t||(t.shadowRoot=t))}connectedCallback(){a&&(clearTimeout(a),a=null),f?c.push(this):nt.jmp(()=>B(this))}disconnectedCallback(){nt.jmp(()=>(t=>{if(0==(1&nt.u)){const e=rt(t),n=e.g;e.H&&(e.H(),e.H=void 0),nt.L&&nt.L.removeHost(t),F(n,"componentDidUnload")}})(this))}forceUpdate(){(()=>{{const t=rt(this);t.M.isConnected&&2==(18&t.u)&&E(t,!1)}})()}componentOnReady(){return rt(this).q}};z(i.prototype),o.B=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,N(i,o,1)))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),o.insertBefore(i,r?r.nextSibling:o.firstChild),f=!1,c.length>0?c.forEach(t=>t.connectedCallback()):nt.jmp(()=>a=setTimeout(D,30,"timeout"))},Q=t=>rt(t).M,X=(t,e,n)=>{const l=Q(t);return{emit:t=>{const o=new CustomEvent(e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t});return l.dispatchEvent(o),o}}};let Y=0,Z=!1;const tt="undefined"!=typeof window?window:{},et=tt.document||{head:{}},nt={u:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l)},lt=(()=>(et.head.attachShadow+"").indexOf("[native")>-1)(),ot=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),st=new WeakMap,rt=t=>st.get(t),it=(t,e)=>st.set(e.g=t,e),ct=(t,e)=>{const n={u:0,M:t,S:e,W:new Map};return n.D=new Promise(t=>n.C=t),n.q=new Promise(t=>n.O=t),t["s-p"]=[],t["s-rc"]=[],st.set(t,n)},at=(t,e)=>e in t,ft=t=>console.error(t),ut=new Map,pt=t=>{const e=t.R.replace(/-/g,"_"),n=t.B,l=ut.get(n);return l?l[e]:__sc_import_calcite_app(`./${n}.entry.js`).then(t=>(ut.set(n,t),t[e]),ft)},mt=new Map,dt=[],$t=[],ht=[],wt=(t,e)=>n=>{t.push(n),Z||(Z=!0,e&&4&nt.u?_t(bt):nt.raf(bt))},yt=(t,e)=>{let n=0,l=0;for(;n{Y++,(t=>{for(let n=0;n0&&(ht.push(...$t),$t.length=0),(Z=dt.length+$t.length+ht.length>0)?nt.raf(bt):Y=0},_t=t=>Promise.resolve().then(t),vt=wt($t,!0),gt=()=>tt.CSS&&tt.CSS.supports&&tt.CSS.supports("color","var(--c)")?Promise.resolve():__sc_import_calcite_app("./p-d356a7c1.js").then(()=>{if(nt.L=tt.__stencil_cssshim,nt.L)return nt.L.initShim()}),kt=()=>{nt.L=tt.__stencil_cssshim;const t=Array.from(et.querySelectorAll("script")).find(t=>new RegExp("/calcite-app(\\.esm)?\\.js($|\\?|#)").test(t.src)||"calcite-app"===t.getAttribute("data-stencil-namespace")),e=t["data-opts"]||{};return"onbeforeload"in t&&!history.scrollRestoration?{then(){}}:(e.resourcesUrl=new URL(".",new URL(t.getAttribute("data-resources-url")||t.src,tt.location.href)).href,jt(e.resourcesUrl,t),window.customElements?Promise.resolve(e):__sc_import_calcite_app("./p-1243f6c7.js").then(()=>e))},jt=(t,e)=>{const n=`__sc_import_${"calcite-app".replace(/\s|-/g,"_")}`;try{tt[n]=new Function("w",`return import(w);//${Math.random()}`)}catch(l){const o=new Map;tt[n]=l=>{const s=new URL(l,t).href;let r=o.get(s);if(!r){const t=et.createElement("script");t.type="module",t.crossOrigin=e.crossOrigin,t.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${n}.m = m;`],{type:"application/javascript"})),r=new Promise(e=>{t.onload=()=>{e(tt[n].m),t.remove()}}),o.set(s,r),et.head.appendChild(t)}return r}}};export{m as H,gt as a,K as b,X as c,Q as g,u as h,kt as p,it as r}; \ No newline at end of file diff --git a/docs/build/p-6b406261.js b/docs/build/p-3ce5a533.js similarity index 89% rename from docs/build/p-6b406261.js rename to docs/build/p-3ce5a533.js index e6a78e1e..75a4858b 100644 --- a/docs/build/p-6b406261.js +++ b/docs/build/p-3ce5a533.js @@ -1 +1 @@ -import{h as e}from"./p-24078e83.js";const t={alignItems:"center",animation:"calcite-app-fade-in var(--calcite-app-animation-time) var(--calcite-app-easing-function)",backgroundColor:"var(--calcite-app-scrim)",bottom:"0",display:"flex",justifyContent:"center",left:"0",position:"absolute",right:"0",top:"0",userSelect:"none",zIndex:"2"},i={position:"relative",zIndex:"1"},a=({loading:a,disabled:n},o)=>{var l;const c=n||a,r=null===(l=o)||void 0===l?void 0:l.length,s=a?e("calcite-loader",{"is-active":!0}):null,p=e("div",{style:t},s),d=r?e("div",{style:i},o):null;return c?[p,d]:o};export{a as C}; \ No newline at end of file +import{h as e}from"./p-323e88a0.js";const t={alignItems:"center",animation:"calcite-app-fade-in var(--calcite-app-animation-time) var(--calcite-app-easing-function)",backgroundColor:"var(--calcite-app-scrim)",bottom:"0",display:"flex",justifyContent:"center",left:"0",position:"absolute",right:"0",top:"0",userSelect:"none",zIndex:"2"},i={position:"relative",zIndex:"1"},a=({loading:a,disabled:n},o)=>{var l;const c=n||a,r=null===(l=o)||void 0===l?void 0:l.length,s=a?e("calcite-loader",{"is-active":!0}):null,p=e("div",{style:t},s),d=r?e("div",{style:i},o):null;return c?[p,d]:o};export{a as C}; \ No newline at end of file diff --git a/docs/build/p-0a1244e4.system.js b/docs/build/p-42b7c316.system.js similarity index 100% rename from docs/build/p-0a1244e4.system.js rename to docs/build/p-42b7c316.system.js diff --git a/docs/build/p-4cf8da49.system.js b/docs/build/p-4cf8da49.system.js new file mode 100644 index 00000000..8572f3bb --- /dev/null +++ b/docs/build/p-4cf8da49.system.js @@ -0,0 +1 @@ +System.register(["./p-7b680867.system.js","./p-96993f13.system.js","./p-12ec9e50.system.js","./p-1071578d.system.js"],(function(e){"use strict";var t,i,l,s,a;return{setters:[function(e){t=e.h;i=e.H},function(e){l=e.C},function(e){s=e.C},function(e){a=e.d}],execute:function(){var n=e("s",{mutationObserverCallback:function(){this.setUpItems();this.setUpFilter()},initialize:function(){this.setUpItems();this.setUpFilter();this.emitCalciteListChange=a(n.internalCalciteListChangeEvent.bind(this),0)},initializeObserver:function(){this.observer.observe(this.el,{childList:true,subtree:true})},cleanUpObserver:function(){this.observer.disconnect()},calciteListItemChangeHandler:function(e){var t=this.selectedValues;var i=e.detail,l=i.item,s=i.value,a=i.selected,n=i.shiftPressed;if(a){if(!this.multiple){this.deselectSiblingItems(l)}if(this.multiple&&n){this.selectSiblings(l)}t.set(s,l)}else{t.delete(s);if(this.multiple&&n){this.selectSiblings(l,true)}}this.lastSelectedItem=l;this.emitCalciteListChange()},calciteListItemValueChangeHandler:function(e){e.stopPropagation();var t=e.detail.oldValue;if(this.selectedValues.has(t)){var i=this.selectedValues.get(t);this.selectedValues.delete(t);this.selectedValues.set(e.detail.newValue,i)}},internalCalciteListChangeEvent:function(){this.calciteListChange.emit(this.selectedValues)},setUpItems:function(e){var t=this;this.items=Array.from(this.el.querySelectorAll(e));this.items.forEach((function(e){e.icon=t.getIconType();e.compact=t.compact;if(!t.multiple){e.disableDeselect=true}if(e.selected){t.selectedValues.set(e.value,e)}}))},setUpFilter:function(){if(this.filterEnabled){this.dataForFilter=this.getItemData()}},deselectSiblingItems:function(e){var t=this;this.items.forEach((function(i){if(i.value!==e.value){i.toggleSelected(false);if(t.selectedValues.has(i.value)){t.selectedValues.delete(i.value)}}}))},selectSiblings:function(e,t){var i=this;if(t===void 0){t=false}if(!this.lastSelectedItem){return}var l=this.items;var s=l.findIndex((function(e){return e.value===i.lastSelectedItem.value}));var a=l.findIndex((function(t){return t.value===e.value}));l.slice(Math.min(s,a),Math.max(s,a)).forEach((function(e){e.toggleSelected(!t);if(!t){i.selectedValues.set(e.value,e)}else{i.selectedValues.delete(e.value)}}))},handleFilter:function(e){var t=e.detail;var i=t.map((function(e){return e.value}));this.items.forEach((function(e){var t=e.parentElement.matches("calcite-pick-list-group");e.hidden=i.indexOf(e.value)===-1;if(t){var l=e.parentElement.querySelector("[slot=parent-item]");if(l!==null){if(i.indexOf(l.value)!==-1){e.hidden=false}if(i.indexOf(e.value)!==-1){l.hidden=false}}}}))},getItemData:function(){var e=[];this.items.forEach((function(t){var i={};i.label=t.textLabel;i.description=t.textDescription;i.metadata=t.metadata;i.value=t.value;e.push(i)}));return e}});var r=undefined&&undefined.__rest||function(e,t){var i={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0)i[l]=e[l];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var s=0,l=Object.getOwnPropertySymbols(e);s0&&c[c.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!c||s[1]>c[0]&&s[1]this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1},this.handleSelectChange=t=>{this.selected=t.detail.selected}}async toggleSelected(t){this.pickListItem.toggleSelected(t)}renderHandle(){const{icon:t}=this;if(t===h.grip)return s("span",{role:"button",class:{[c.handle]:!0,[c.handleActivated]:this.handleActivated},tabindex:"0","data-js-handle":"true","aria-pressed":this.handleActivated.toString(),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur},s("calcite-icon",{scale:"s",icon:"drag"}))}render(){return s(i,{"data-id":this.guid},this.renderHandle(),s("calcite-pick-list-item",{compact:this.compact,ref:this.getPickListRef,disabled:this.disabled,disableDeselect:this.disableDeselect,selected:this.selected,metadata:this.metadata,textLabel:this.textLabel,textDescription:this.textDescription,onCalciteListItemChange:this.handleSelectChange,value:this.value},s("slot",{name:"secondary-action",slot:"secondary-action"})))}get el(){return e(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-webkit-box-shadow:0 1px 0 var(--calcite-app-border) inset;box-shadow:0 1px 0 var(--calcite-app-border) inset;display:-ms-flexbox;display:flex;background-color:var(--calcite-app-background);padding:var(--calcite-app-side-spacing-minimum);-webkit-transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:hover){background-color:var(--calcite-app-background-hover)}:host([selected]){-webkit-box-shadow:0 0 0 1px var(--calcite-app-border-active) inset;box-shadow:0 0 0 1px var(--calcite-app-border-active) inset}calcite-pick-list-item{background-color:var(--calcite-app-background-clear);-webkit-box-shadow:none;box-shadow:none;-ms-flex-positive:1;flex-grow:1;position:relative;margin:0}.handle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--calcite-app-cap-spacing-minimum);padding:var(--calcite-app-cap-spacing-three-quarters) var(--calcite-app-side-spacing-half);background-color:var(--calcite-app-background-clear);border:none;color:var(--calcite-app-foreground-subtle);line-height:0;cursor:move}.handle:focus{outline-offset:var(--calcite-app-outline-inset)}.handle:focus{outline-offset:var(--calcite-app-outline-inset)}.handle--activated{background-color:var(--calcite-app-background-active);color:var(--calcite-app-foreground-active)}:host(:last-child) .handle{margin-bottom:0}"}};export{l as calcite_value_list_item}; \ No newline at end of file diff --git a/docs/build/p-0e5iyfse.system.entry.js b/docs/build/p-5xdnupvw.system.entry.js similarity index 63% rename from docs/build/p-0e5iyfse.system.entry.js rename to docs/build/p-5xdnupvw.system.entry.js index f70aef56..0ce8dfa3 100644 --- a/docs/build/p-0e5iyfse.system.entry.js +++ b/docs/build/p-5xdnupvw.system.entry.js @@ -1 +1 @@ -System.register(["./p-6be4d309.system.js","./p-5559af04.system.js"],(function(e){"use strict";var t,r,n,a,l,o;return{setters:[function(e){t=e.r;r=e.h;n=e.H;a=e.g;l=e.c},function(e){o=e.c}],execute:function(){var i={main:"main",mainReversed:"main--reversed",content:"content",footer:"footer"};var c={primaryPanel:"primary-panel",contextualPanel:"contextual-panel",header:"shell-header",footer:"shell-footer",tipManager:"tip-manager"};var s=e("calcite_shell",function(){function e(e){t(this,e)}e.prototype.renderHeader=function(){var e=!!this.el.querySelector("[slot="+c.header+"]");return e?r("slot",{name:c.header}):null};e.prototype.renderContent=function(){return r("div",{class:i.content},r("slot",null))};e.prototype.renderFooter=function(){var e=!!this.el.querySelector("[slot="+c.footer+"]");return e?r("div",{class:i.footer},r("slot",{name:c.footer})):null};e.prototype.renderMain=function(){var e;var t;var n=this.el.querySelector("[slot="+c.primaryPanel+"]");var a=(e={},e[i.mainReversed]=((t=n)===null||t===void 0?void 0:t.layout)==="trailing",e);return r("div",{class:o(i.main,a)},r("slot",{name:c.primaryPanel}),this.renderContent(),r("slot",{name:c.contextualPanel}),r("slot",{name:c.tipManager}))};e.prototype.render=function(){return r(n,null,this.renderHeader(),this.renderMain(),this.renderFooter())};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;--calcite-app-shell-tip-spacing:26vw}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.main{height:100%;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;border-top:1px solid var(--calcite-app-border-subtle);border-bottom:1px solid var(--calcite-app-border-subtle);-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}.main--reversed{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.content{height:100%;width:100%;position:absolute;left:0;right:0;bottom:0;top:0;z-index:0}::slotted(calcite-shell-panel){position:relative;z-index:1}::slotted(calcite-tip-manager){-webkit-animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);border-radius:var(--calcite-app-border-radius);bottom:var(--calcite-app-cap-spacing);-webkit-box-shadow:var(--calcite-app-shadow-2);box-shadow:var(--calcite-app-shadow-2);-webkit-box-sizing:border-box;box-sizing:border-box;left:var(--calcite-app-shell-tip-spacing);position:absolute;right:var(--calcite-app-shell-tip-spacing);z-index:2}.footer{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing)}"},enumerable:true,configurable:true});return e}());var u={content:"content",contentDetached:"content--detached"};var d={actionBar:"action-bar"};var h=e("calcite_shell_panel",function(){function e(e){t(this,e);this.collapsed=false;this.detached=false;this.detachedScale="m";this.layout="leading";this.calciteShellPanelToggle=l(this,"calciteShellPanelToggle",7)}e.prototype.watchHandler=function(){this.calciteShellPanelToggle.emit()};e.prototype.render=function(){var e;var t=this,a=t.collapsed,l=t.detached,i=t.layout;var c=r("div",{class:o(u.content,(e={},e[u.contentDetached]=l,e)),hidden:a},r("slot",null));var s=r("slot",{name:d.actionBar});var h=[s,c];if(i==="trailing"){h.reverse()}return r(n,null,h)};Object.defineProperty(e,"watchers",{get:function(){return{collapsed:["watchHandler"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-app-background-transparent);pointer-events:none;--calcite-app-shell-panel-width:20vw;--calcite-app-shell-panel-min-width:240px;--calcite-app-shell-panel-max-width:360px;--calcite-app-shell-panel-min-height:4rem;--calcite-app-shell-panel-max-height-small:35vh;--calcite-app-shell-panel-max-height-medium:55vh;--calcite-app-shell-panel-max-height-large:85vh}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-app-background-content);-ms-flex-flow:column nowrap;flex-flow:column nowrap;display:-ms-flexbox;display:flex;width:var(--calcite-app-shell-panel-width);min-width:var(--calcite-app-shell-panel-min-width);max-width:var(--calcite-app-shell-panel-max-width);min-height:var(--calcite-app-shell-panel-min-height);border-left:1px solid var(--calcite-app-border);border-right:1px solid var(--calcite-app-border);padding:0;pointer-events:auto}.content--detached{border:1px solid var(--calcite-app-border);border-radius:var(--calcite-app-border-radius);-webkit-box-shadow:var(--calcite-app-shadow-0);box-shadow:var(--calcite-app-shadow-0);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) auto;max-height:var(--calcite-app-shell-panel-max-height-medium);overflow:auto}:host([detached-scale=s]) .content--detached{max-height:var(--calcite-app-shell-panel-max-height-small)}:host([detached-scale=l]) .content--detached{max-height:var(--calcite-app-shell-panel-max-height-large)}.content[hidden]{display:none}:host([layout=leading]) slot[name=action-bar]::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}:host([layout=trailing]) slot[name=action-bar]::slotted(calcite-action-bar){border-left:1px solid var(--calcite-app-border)}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file +System.register(["./p-7b680867.system.js","./p-5559af04.system.js"],(function(e){"use strict";var t,r,n,a,l,o;return{setters:[function(e){t=e.r;r=e.h;n=e.H;a=e.g;l=e.c},function(e){o=e.c}],execute:function(){var i={main:"main",mainReversed:"main--reversed",content:"content",footer:"footer"};var c={primaryPanel:"primary-panel",contextualPanel:"contextual-panel",header:"shell-header",footer:"shell-footer",tipManager:"tip-manager"};var s=e("calcite_shell",function(){function e(e){t(this,e)}e.prototype.renderHeader=function(){var e=!!this.el.querySelector("[slot="+c.header+"]");return e?r("slot",{name:c.header}):null};e.prototype.renderContent=function(){return r("div",{class:i.content},r("slot",null))};e.prototype.renderFooter=function(){var e=!!this.el.querySelector("[slot="+c.footer+"]");return e?r("div",{class:i.footer},r("slot",{name:c.footer})):null};e.prototype.renderMain=function(){var e;var t;var n=this.el.querySelector("[slot="+c.primaryPanel+"]");var a=(e={},e[i.mainReversed]=((t=n)===null||t===void 0?void 0:t.layout)==="trailing",e);return r("div",{class:o(i.main,a)},r("slot",{name:c.primaryPanel}),this.renderContent(),r("slot",{name:c.contextualPanel}),r("slot",{name:c.tipManager}))};e.prototype.render=function(){return r(n,null,this.renderHeader(),this.renderMain(),this.renderFooter())};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;--calcite-app-shell-tip-spacing:26vw}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.main{height:100%;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;border-top:1px solid var(--calcite-app-border-subtle);border-bottom:1px solid var(--calcite-app-border-subtle);-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}.main--reversed{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.content{height:100%;width:100%;position:absolute;left:0;right:0;bottom:0;top:0;z-index:0}::slotted(calcite-shell-panel){position:relative;z-index:1}::slotted(calcite-tip-manager){-webkit-animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);border-radius:var(--calcite-app-border-radius);bottom:var(--calcite-app-cap-spacing);-webkit-box-shadow:var(--calcite-app-shadow-2);box-shadow:var(--calcite-app-shadow-2);-webkit-box-sizing:border-box;box-sizing:border-box;left:var(--calcite-app-shell-tip-spacing);position:absolute;right:var(--calcite-app-shell-tip-spacing);z-index:2}.footer{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing)}"},enumerable:true,configurable:true});return e}());var u={content:"content",contentDetached:"content--detached"};var d={actionBar:"action-bar"};var h=e("calcite_shell_panel",function(){function e(e){t(this,e);this.collapsed=false;this.detached=false;this.detachedScale="m";this.layout="leading";this.calciteShellPanelToggle=l(this,"calciteShellPanelToggle",7)}e.prototype.watchHandler=function(){this.calciteShellPanelToggle.emit()};e.prototype.render=function(){var e;var t=this,a=t.collapsed,l=t.detached,i=t.layout;var c=r("div",{class:o(u.content,(e={},e[u.contentDetached]=l,e)),hidden:a},r("slot",null));var s=r("slot",{name:d.actionBar});var h=[s,c];if(i==="trailing"){h.reverse()}return r(n,null,h)};Object.defineProperty(e,"watchers",{get:function(){return{collapsed:["watchHandler"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-app-background-transparent);pointer-events:none;--calcite-app-shell-panel-width:20vw;--calcite-app-shell-panel-min-width:240px;--calcite-app-shell-panel-max-width:360px;--calcite-app-shell-panel-min-height:4rem;--calcite-app-shell-panel-max-height-small:35vh;--calcite-app-shell-panel-max-height-medium:55vh;--calcite-app-shell-panel-max-height-large:85vh}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-app-background-content);-ms-flex-flow:column nowrap;flex-flow:column nowrap;display:-ms-flexbox;display:flex;width:var(--calcite-app-shell-panel-width);min-width:var(--calcite-app-shell-panel-min-width);max-width:var(--calcite-app-shell-panel-max-width);min-height:var(--calcite-app-shell-panel-min-height);border-left:1px solid var(--calcite-app-border);border-right:1px solid var(--calcite-app-border);padding:0;pointer-events:auto}.content--detached{border:1px solid var(--calcite-app-border);border-radius:var(--calcite-app-border-radius);-webkit-box-shadow:var(--calcite-app-shadow-0);box-shadow:var(--calcite-app-shadow-0);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) auto;max-height:var(--calcite-app-shell-panel-max-height-medium);overflow:auto}:host([detached-scale=s]) .content--detached{max-height:var(--calcite-app-shell-panel-max-height-small)}:host([detached-scale=l]) .content--detached{max-height:var(--calcite-app-shell-panel-max-height-large)}.content[hidden]{display:none}:host([layout=leading]) slot[name=action-bar]::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}:host([layout=trailing]) slot[name=action-bar]::slotted(calcite-action-bar){border-left:1px solid var(--calcite-app-border)}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file diff --git a/docs/build/p-6be4d309.system.js b/docs/build/p-6be4d309.system.js deleted file mode 100644 index 429ef207..00000000 --- a/docs/build/p-6be4d309.system.js +++ /dev/null @@ -1 +0,0 @@ -var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(r.hasOwnProperty(t))e[t]=r[t]};return e(r,t)};return function(r,t){e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,r,t,n){function a(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{l(n.next(e))}catch(r){i(r)}}function o(e){try{l(n["throw"](e))}catch(r){i(r)}}function l(e){e.done?t(e.value):a(e.value).then(s,o)}l((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(r){return l([e,r])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(t)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;a=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]0){c.$children$=f}{c.$key$=i}{c.$name$=s}return c}));var N=function(e,r){var t={$flags$:0,$tag$:e,$text$:r,$elm$:null,$children$:null};{t.$attrs$=null}{t.$key$=null}{t.$name$=null}return t};var _=e("H",{});var x=function(e){return e&&e.$tag$===_};var k={forEach:function(e,r){return e.map(E).forEach(r)},map:function(e,r){return e.map(E).map(r).map(T)}};var E=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var T=function(e){var r=N(e.vtag,e.vtext);r.$attrs$=e.vattrs;r.$children$=e.vchildren;r.$key$=e.vkey;r.$name$=e.vname;return r};var C=function(e,r,t,n,a,i){if(t===n){return}var s=Pe(e,r);var o=r.toLowerCase();if(r==="class"){var l=e.classList;var f=j(t);var $=j(n);l.remove.apply(l,f.filter((function(e){return e&&!$.includes(e)})));l.add.apply(l,$.filter((function(e){return e&&!f.includes(e)})))}else if(r==="style"){{for(var u in t){if(!n||n[u]==null){if(u.includes("-")){e.style.removeProperty(u)}else{e.style[u]=""}}}}for(var u in n){if(!t||n[u]!==t[u]){if(u.includes("-")){e.style.setProperty(u,n[u])}else{e.style[u]=n[u]}}}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!s&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(Pe(Ne,o)){r=o.slice(2)}else{r=o[2]+r.slice(3)}if(t){xe.rel(e,r,t,false)}if(n){xe.ael(e,r,n,false)}}else{var v=R(n);if((s||v&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var d=n==null?"":n;if(r==="list"){s=false}else if(t==null||e[r]!=d){e[r]=d}}else{e[r]=n}}catch(m){}}var h=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){r=o;h=true}}if(n==null||n===false){if(h){e.removeAttributeNS(c,r)}else{e.removeAttribute(r)}}else if((!s||i&4||a)&&!v){n=n===true?"":n;if(h){e.setAttributeNS(c,r,n)}else{e.setAttribute(r,n)}}}};var L=/\s/;var j=function(e){return!e?[]:e.split(L)};var P=function(e,r,t,n){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||b;var s=r.$attrs$||b;{for(n in i){if(!(n in s)){C(a,n,i[n],undefined,t,r.$flags$)}}}for(n in s){C(a,n,i[n],s[n],t,r.$flags$)}};var M=function(e,r,t,n){var l=r.$children$[t];var u=0;var c;var v;var d;if(!o){f=true;if(l.$tag$==="slot"){if(a){n.classList.add(a+"-s")}l.$flags$|=l.$children$?2:1}}if(l.$text$!==null){c=l.$elm$=_e.createTextNode(l.$text$)}else if(l.$flags$&1){c=l.$elm$=_e.createTextNode("")}else{c=l.$elm$=_e.createElement(l.$flags$&2?"slot-fb":l.$tag$);{P(null,l,$)}if(w(a)&&c["s-si"]!==a){c.classList.add(c["s-si"]=a)}if(l.$children$){for(u=0;u=0;n--){var a=t[n];if(a["s-hn"]!==s&&a["s-ol"]){q(a).insertBefore(a,z(a));a["s-ol"].remove();a["s-ol"]=undefined;f=true}if(r){A(a,r)}}xe.$flags$&=~1};var I=function(e,r,t,n,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(o.shadowRoot&&o.tagName===s){o=o.shadowRoot}for(;a<=i;++a){if(n[a]){l=M(null,t,a,e);if(l){n[a].$elm$=l;o.insertBefore(l,z(r))}}}};var U=function(e,r,t,n,a){for(;r<=t;++r){if(n=e[r]){a=n.$elm$;F(n);{l=true;if(a["s-ol"]){a["s-ol"].remove()}else{A(a,true)}}a.remove()}}};var O=function(e,r,t,n){var a=0;var i=0;var s=0;var o=0;var l=r.length-1;var f=r[0];var $=r[l];var u=n.length-1;var c=n[0];var v=n[u];var d;var h;while(a<=l&&i<=u){if(f==null){f=r[++a]}else if($==null){$=r[--l]}else if(c==null){c=n[++i]}else if(v==null){v=n[--u]}else if(B(f,c)){H(f,c);f=r[++a];c=n[++i]}else if(B($,v)){H($,v);$=r[--l];v=n[--u]}else if(B(f,v)){if(f.$tag$==="slot"||v.$tag$==="slot"){A(f.$elm$.parentNode,false)}H(f,v);e.insertBefore(f.$elm$,$.$elm$.nextSibling);f=r[++a];v=n[--u]}else if(B($,c)){if(f.$tag$==="slot"||v.$tag$==="slot"){A($.$elm$.parentNode,false)}H($,c);e.insertBefore($.$elm$,f.$elm$);$=r[--l];c=n[++i]}else{s=-1;{for(o=a;o<=l;++o){if(r[o]&&r[o].$key$!==null&&r[o].$key$===c.$key$){s=o;break}}}if(s>=0){h=r[s];if(h.$tag$!==c.$tag$){d=M(r&&r[i],t,s,e)}else{H(h,c);r[s]=undefined;d=h.$elm$}c=n[++i]}else{d=M(r&&r[i],t,i,e);c=n[++i]}if(d){{q(f.$elm$).insertBefore(d,z(f.$elm$))}}}}if(a>l){I(e,n[u+1]==null?null:n[u+1].$elm$,t,n,i,u)}else if(i>u){U(r,a,l)}};var B=function(e,r){if(e.$tag$===r.$tag$){if(e.$tag$==="slot"){return e.$name$===r.$name$}{return e.$key$===r.$key$}}return false};var z=function(e){return e&&e["s-ol"]||e};var q=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var H=function(e,r){var t=r.$elm$=e.$elm$;var n=e.$children$;var a=r.$children$;var i;if(r.$text$===null){{if(r.$tag$==="slot");else{P(e,r,$)}}if(n!==null&&a!==null){O(t,n,r,a)}else if(a!==null){if(e.$text$!==null){t.textContent=""}I(t,null,r,a,0,a.length-1)}else if(n!==null){U(n,0,n.length-1)}}else if(i=t["s-cr"]){i.parentNode.textContent=r.$text$}else if(e.$text$!==r.$text$){t.data=r.$text$}};var V=function(e){var r=e.childNodes;var t;var n;var a;var i;var s;var o;for(n=0,a=r.length;n=0;a--){o=f[a];if(!o["s-cn"]&&!o["s-nr"]&&o["s-hn"]!==s["s-hn"]){i=o.nodeType;if((i===3||i===8)&&$===""||i===1&&o.getAttribute("slot")===null&&$===""||i===1&&o.getAttribute("slot")===$){if(!W.some((function(e){return e.$nodeToRelocate$===o}))){l=true;o["s-sn"]=$;W.push({$slotRefNode$:s,$nodeToRelocate$:o})}}}}}if(s.nodeType===1){D(s)}}};var F=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.forEach(F)}};var G=function(e,r){var t=e.$hostElement$;var n=e.$cmpMeta$;var $=e.$vnode$||N(null,null);var u=x(r)?r:S(null,null,r);s=t.tagName;if(n.$attrsToReflect$){u.$attrs$=u.$attrs$||{};n.$attrsToReflect$.forEach((function(e){var r=e[0],n=e[1];return u.$attrs$[n]=t[r]}))}u.$tag$=null;u.$flags$|=4;e.$vnode$=u;u.$elm$=$.$elm$=t.shadowRoot||t;{a=t["s-sc"]}{i=t["s-cr"];o=ke&&(n.$flags$&1)!==0;l=false}H($,u);{if(f){D(u.$elm$);for(var c=0;c0){f.forEach((function(e){return e.connectedCallback()}))}else{xe.jmp((function(){return $=setTimeout(ee,30,"timeout")}))}t()}));var be=e("g",(function(e){return Ce(e).$hostElement$}));var we=e("c",(function(e,r,t){var n=be(e);return{emit:function(e){var a=new CustomEvent(r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e});n.dispatchEvent(a);return a}}}));var Re=0;var Se=false;var Ne=typeof window!=="undefined"?window:{};var _e=Ne.document||{head:{}};var xe={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)}};var ke=function(){return(_e.head.attachShadow+"").includes("[native")}();var Ee=function(){try{new CSSStyleSheet;return true}catch(e){}return false}();var Te=new WeakMap;var Ce=function(e){return Te.get(e)};var Le=e("r",(function(e,r){return Te.set(r.$lazyInstance$=e,r)}));var je=function(e,r){var t={$flags$:0,$hostElement$:e,$cmpMeta$:r,$instanceValues$:new Map};{t.$onInstancePromise$=new Promise((function(e){return t.$onInstanceResolve$=e}))}{t.$onReadyPromise$=new Promise((function(e){return t.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}return Te.set(e,t)};var Pe=function(e,r){return r in e};var Me=function(e){return console.error(e)};var Ae=new Map;var Ie=function(e,t,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleIds$;var s=Ae.get(i);if(s){return s[a]}return r.import("./"+i+".entry.js"+"").then((function(e){{Ae.set(i,e)}return e[a]}),Me)};var Ue=new Map;var Oe=[];var Be=[];var ze=[];var qe=function(e,r){return function(t){e.push(t);if(!Se){Se=true;if(r&&xe.$flags$&4){De(We)}else{xe.raf(We)}}}};var He=function(e){for(var r=0;r0){ze.push.apply(ze,Be);Be.length=0}if(Se=Oe.length+Be.length+ze.length>0){xe.raf(We)}else{Re=0}};var De=function(e){return Promise.resolve().then(e)};var Fe=qe(Be,true);var Ge=function(e){return"__sc_import_"+e.replace(/\s|-/g,"_")};var Qe=e("a",(function(){if(!(Ne.CSS&&Ne.CSS.supports&&Ne.CSS.supports("color","var(--c)"))){return r.import("./p-794f492f.system.js").then((function(){xe.$cssShim$=Ne.__stencil_cssshim;if(xe.$cssShim$){return xe.$cssShim$.initShim()}}))}return Promise.resolve()}));var Je=e("p",(function(){{xe.$cssShim$=Ne.__stencil_cssshim}var e=Array.from(_e.querySelectorAll("script")).find((function(e){return new RegExp("/"+n+"(\\.esm)?\\.js($|\\?|#)").test(e.src)||e.getAttribute("data-stencil-namespace")===n}));var t=e["data-opts"]||{};var a=r.meta.url;if("onbeforeload"in e&&!history.scrollRestoration&&false){return{then:function(){}}}if(a!==""){t.resourcesUrl=new URL(".",a).href}else{t.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,Ne.location.href)).href;Ke(t.resourcesUrl,e);if(!window.customElements){return r.import("./p-2d62a44f.system.js").then((function(){return t}))}}return Promise.resolve(t)}));var Ke=function(e,r){var t=Ge(n);try{Ne[t]=new Function("w","return import(w);//"+Math.random())}catch(i){var a=new Map;Ne[t]=function(n){var i=new URL(n,e).href;var s=a.get(i);if(!s){var o=_e.createElement("script");o.type="module";o.crossOrigin=r.crossOrigin;o.src=URL.createObjectURL(new Blob(["import * as m from '"+i+"'; window."+t+".m = m;"],{type:"application/javascript"}));s=new Promise((function(e){o.onload=function(){e(Ne[t].m);o.remove()}}));a.set(i,s);_e.head.appendChild(o)}return s}}}}}})); \ No newline at end of file diff --git a/docs/build/p-6sdjvspw.system.entry.js b/docs/build/p-6sdjvspw.system.entry.js new file mode 100644 index 00000000..17a7adb1 --- /dev/null +++ b/docs/build/p-6sdjvspw.system.entry.js @@ -0,0 +1 @@ +var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function l(e){try{o(i.next(e))}catch(t){a(t)}}function s(e){try{o(i["throw"](e))}catch(t){a(t)}}function o(e){e.done?n(e.value):r(e.value).then(l,s)}o((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return o([e,t])}}function o(l){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=l[0]&2?r["return"]:l[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;if(r=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;r=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]0){c.$children$=f}{c.$key$=i}{c.$name$=s}return c}));var k=function(e,r){var t={$flags$:0,$tag$:e,$text$:r,$elm$:null,$children$:null};{t.$attrs$=null}{t.$key$=null}{t.$name$=null}return t};var E=e("H",{});var T=function(e){return e&&e.$tag$===E};var C={forEach:function(e,r){return e.map(L).forEach(r)},map:function(e,r){return e.map(L).map(r).map(j)}};var L=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var j=function(e){var r=k(e.vtag,e.vtext);r.$attrs$=e.vattrs;r.$children$=e.vchildren;r.$key$=e.vkey;r.$name$=e.vname;return r};var P=function(e,r){if(e!=null&&!x(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&1){return String(e)}return e}return e};var M=function(e,r,t,n,a,i){if(t===n){return}var s=Pe(e,r);var o=r.toLowerCase();if(r==="class"){var l=e.classList;var f=I(t);var $=I(n);l.remove.apply(l,f.filter((function(e){return e&&!$.includes(e)})));l.add.apply(l,$.filter((function(e){return e&&!f.includes(e)})))}else if(r==="style"){{for(var u in t){if(!n||n[u]==null){if(u.includes("-")){e.style.removeProperty(u)}else{e.style[u]=""}}}}for(var u in n){if(!t||n[u]!==t[u]){if(u.includes("-")){e.style.setProperty(u,n[u])}else{e.style[u]=n[u]}}}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!s&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(Pe(Ne,o)){r=o.slice(2)}else{r=o[2]+r.slice(3)}if(t){_e.rel(e,r,t,false)}if(n){_e.ael(e,r,n,false)}}else{var c=x(n);if((s||c&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var v=n==null?"":n;if(r==="list"){s=false}else if(t==null||e[r]!=v){e[r]=v}}else{e[r]=n}}catch(m){}}var d=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){r=o;d=true}}if(n==null||n===false){if(d){e.removeAttributeNS(h,r)}else{e.removeAttribute(r)}}else if((!s||i&4||a)&&!c){n=n===true?"":n;if(d){e.setAttributeNS(h,r,n)}else{e.setAttribute(r,n)}}}};var A=/\s/;var I=function(e){return!e?[]:e.split(A)};var U=function(e,r,t,n){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||S;var s=r.$attrs$||S;{for(n in i){if(!(n in s)){M(a,n,i[n],undefined,t,r.$flags$)}}}for(n in s){M(a,n,i[n],s[n],t,r.$flags$)}};var O=function(e,r,t,n){var l=r.$children$[t];var u=0;var c;var v;var d;if(!o){f=true;if(l.$tag$==="slot"){if(a){n.classList.add(a+"-s")}l.$flags$|=l.$children$?2:1}}if(l.$text$!==null){c=l.$elm$=xe.createTextNode(l.$text$)}else if(l.$flags$&1){c=l.$elm$=xe.createTextNode("")}else{c=l.$elm$=xe.createElement(l.$flags$&2?"slot-fb":l.$tag$);{U(null,l,$)}if(N(a)&&c["s-si"]!==a){c.classList.add(c["s-si"]=a)}if(l.$children$){for(u=0;u=0;n--){var a=t[n];if(a["s-hn"]!==s&&a["s-ol"]){D(a).insertBefore(a,W(a));a["s-ol"].remove();a["s-ol"]=undefined;f=true}if(r){B(a,r)}}_e.$flags$&=~1};var z=function(e,r,t,n,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(o.shadowRoot&&o.tagName===s){o=o.shadowRoot}for(;a<=i;++a){if(n[a]){l=O(null,t,a,e);if(l){n[a].$elm$=l;o.insertBefore(l,W(r))}}}};var q=function(e,r,t,n,a){for(;r<=t;++r){if(n=e[r]){a=n.$elm$;K(n);{l=true;if(a["s-ol"]){a["s-ol"].remove()}else{B(a,true)}}a.remove()}}};var H=function(e,r,t,n){var a=0;var i=0;var s=0;var o=0;var l=r.length-1;var f=r[0];var $=r[l];var u=n.length-1;var c=n[0];var v=n[u];var d;var h;while(a<=l&&i<=u){if(f==null){f=r[++a]}else if($==null){$=r[--l]}else if(c==null){c=n[++i]}else if(v==null){v=n[--u]}else if(V(f,c)){F(f,c);f=r[++a];c=n[++i]}else if(V($,v)){F($,v);$=r[--l];v=n[--u]}else if(V(f,v)){if(f.$tag$==="slot"||v.$tag$==="slot"){B(f.$elm$.parentNode,false)}F(f,v);e.insertBefore(f.$elm$,$.$elm$.nextSibling);f=r[++a];v=n[--u]}else if(V($,c)){if(f.$tag$==="slot"||v.$tag$==="slot"){B($.$elm$.parentNode,false)}F($,c);e.insertBefore($.$elm$,f.$elm$);$=r[--l];c=n[++i]}else{s=-1;{for(o=a;o<=l;++o){if(r[o]&&r[o].$key$!==null&&r[o].$key$===c.$key$){s=o;break}}}if(s>=0){h=r[s];if(h.$tag$!==c.$tag$){d=O(r&&r[i],t,s,e)}else{F(h,c);r[s]=undefined;d=h.$elm$}c=n[++i]}else{d=O(r&&r[i],t,i,e);c=n[++i]}if(d){{D(f.$elm$).insertBefore(d,W(f.$elm$))}}}}if(a>l){z(e,n[u+1]==null?null:n[u+1].$elm$,t,n,i,u)}else if(i>u){q(r,a,l)}};var V=function(e,r){if(e.$tag$===r.$tag$){if(e.$tag$==="slot"){return e.$name$===r.$name$}{return e.$key$===r.$key$}}return false};var W=function(e){return e&&e["s-ol"]||e};var D=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var F=function(e,r){var t=r.$elm$=e.$elm$;var n=e.$children$;var a=r.$children$;var i;if(r.$text$===null){{if(r.$tag$==="slot");else{U(e,r,$)}}if(n!==null&&a!==null){H(t,n,r,a)}else if(a!==null){if(e.$text$!==null){t.textContent=""}z(t,null,r,a,0,a.length-1)}else if(n!==null){q(n,0,n.length-1)}}else if(i=t["s-cr"]){i.parentNode.textContent=r.$text$}else if(e.$text$!==r.$text$){t.data=r.$text$}};var G=function(e){var r=e.childNodes;var t;var n;var a;var i;var s;var o;for(n=0,a=r.length;n=0;a--){o=f[a];if(!o["s-cn"]&&!o["s-nr"]&&o["s-hn"]!==s["s-hn"]){i=o.nodeType;if((i===3||i===8)&&$===""||i===1&&o.getAttribute("slot")===null&&$===""||i===1&&o.getAttribute("slot")===$){if(!Q.some((function(e){return e.$nodeToRelocate$===o}))){l=true;o["s-sn"]=$;Q.push({$slotRefNode$:s,$nodeToRelocate$:o})}}}}}if(s.nodeType===1){J(s)}}};var K=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.forEach(K)}};var X=function(e,r){var t=e.$hostElement$;var n=e.$cmpMeta$;var $=e.$vnode$||k(null,null);var u=T(r)?r:_(null,null,r);s=t.tagName;if(n.$attrsToReflect$){u.$attrs$=u.$attrs$||{};n.$attrsToReflect$.forEach((function(e){var r=e[0],n=e[1];return u.$attrs$[n]=t[r]}))}u.$tag$=null;u.$flags$|=4;e.$vnode$=u;u.$elm$=$.$elm$=t.shadowRoot||t;{a=t["s-sc"]}{i=t["s-cr"];o=ke&&(n.$flags$&1)!==0;l=false}F($,u);{if(f){J(u.$elm$);for(var c=0;c0){f.forEach((function(e){return e.connectedCallback()}))}else{_e.jmp((function(){return $=setTimeout(ae,30,"timeout")}))}t()}));var be=e("g",(function(e){return Ce(e).$hostElement$}));var we=e("c",(function(e,r,t){var n=be(e);return{emit:function(e){var a=new CustomEvent(r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e});n.dispatchEvent(a);return a}}}));var Re=0;var Se=false;var Ne=typeof window!=="undefined"?window:{};var xe=Ne.document||{head:{}};var _e={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)}};var ke=function(){return(xe.head.attachShadow+"").indexOf("[native")>-1}();var Ee=function(){try{new CSSStyleSheet;return true}catch(e){}return false}();var Te=new WeakMap;var Ce=function(e){return Te.get(e)};var Le=e("r",(function(e,r){return Te.set(r.$lazyInstance$=e,r)}));var je=function(e,r){var t={$flags$:0,$hostElement$:e,$cmpMeta$:r,$instanceValues$:new Map};{t.$onInstancePromise$=new Promise((function(e){return t.$onInstanceResolve$=e}))}{t.$onReadyPromise$=new Promise((function(e){return t.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}return Te.set(e,t)};var Pe=function(e,r){return r in e};var Me=function(e){return console.error(e)};var Ae=new Map;var Ie=function(e,t,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleIds$;var s=Ae.get(i);if(s){return s[a]}return r.import("./"+i+".entry.js"+"").then((function(e){{Ae.set(i,e)}return e[a]}),Me)};var Ue=new Map;var Oe=[];var Be=[];var ze=[];var qe=function(e,r){return function(t){e.push(t);if(!Se){Se=true;if(r&&_e.$flags$&4){De(We)}else{_e.raf(We)}}}};var He=function(e){for(var r=0;r0){ze.push.apply(ze,Be);Be.length=0}if(Se=Oe.length+Be.length+ze.length>0){_e.raf(We)}else{Re=0}};var De=function(e){return Promise.resolve().then(e)};var Fe=qe(Be,true);var Ge=function(e){return"__sc_import_"+e.replace(/\s|-/g,"_")};var Qe=e("a",(function(){if(!(Ne.CSS&&Ne.CSS.supports&&Ne.CSS.supports("color","var(--c)"))){return r.import("./p-ba1e8a5d.system.js").then((function(){_e.$cssShim$=Ne.__stencil_cssshim;if(_e.$cssShim$){return _e.$cssShim$.initShim()}}))}return Promise.resolve()}));var Je=e("p",(function(){{_e.$cssShim$=Ne.__stencil_cssshim}var e=Array.from(xe.querySelectorAll("script")).find((function(e){return new RegExp("/"+n+"(\\.esm)?\\.js($|\\?|#)").test(e.src)||e.getAttribute("data-stencil-namespace")===n}));var t=e["data-opts"]||{};var a=r.meta.url;if("onbeforeload"in e&&!history.scrollRestoration&&false){return{then:function(){}}}if(a!==""){t.resourcesUrl=new URL(".",a).href}else{t.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,Ne.location.href)).href;Ke(t.resourcesUrl,e);if(!window.customElements){return r.import("./p-ae28c654.system.js").then((function(){return t}))}}return Promise.resolve(t)}));var Ke=function(e,r){var t=Ge(n);try{Ne[t]=new Function("w","return import(w);//"+Math.random())}catch(i){var a=new Map;Ne[t]=function(n){var i=new URL(n,e).href;var s=a.get(i);if(!s){var o=xe.createElement("script");o.type="module";o.crossOrigin=r.crossOrigin;o.src=URL.createObjectURL(new Blob(["import * as m from '"+i+"'; window."+t+".m = m;"],{type:"application/javascript"}));s=new Promise((function(e){o.onload=function(){e(Ne[t].m);o.remove()}}));a.set(i,s);xe.head.appendChild(o)}return s}}}}}})); \ No newline at end of file diff --git a/docs/build/p-5a9eb0f4.system.js b/docs/build/p-96993f13.system.js similarity index 91% rename from docs/build/p-5a9eb0f4.system.js rename to docs/build/p-96993f13.system.js index df8c44ff..d605ae9c 100644 --- a/docs/build/p-5a9eb0f4.system.js +++ b/docs/build/p-96993f13.system.js @@ -1 +1 @@ -System.register(["./p-6be4d309.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.h}],execute:function(){var a={alignItems:"center",animation:"calcite-app-fade-in var(--calcite-app-animation-time) var(--calcite-app-easing-function)",backgroundColor:"var(--calcite-app-scrim)",bottom:"0",display:"flex",justifyContent:"center",left:"0",position:"absolute",right:"0",top:"0",userSelect:"none",zIndex:"2"};var i={position:"relative",zIndex:"1"};var n=function(e,n){var r=e.loading,l=e.disabled;var o;var c=l||r;var s=(o=n)===null||o===void 0?void 0:o.length;var v=r?t("calcite-loader",{"is-active":true}):null;var u=t("div",{style:a},v);var d=s?t("div",{style:i},n):null;return c?[u,d]:n};e("C",n)}}})); \ No newline at end of file +System.register(["./p-7b680867.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.h}],execute:function(){var a={alignItems:"center",animation:"calcite-app-fade-in var(--calcite-app-animation-time) var(--calcite-app-easing-function)",backgroundColor:"var(--calcite-app-scrim)",bottom:"0",display:"flex",justifyContent:"center",left:"0",position:"absolute",right:"0",top:"0",userSelect:"none",zIndex:"2"};var i={position:"relative",zIndex:"1"};var n=function(e,n){var r=e.loading,l=e.disabled;var o;var c=l||r;var s=(o=n)===null||o===void 0?void 0:o.length;var v=r?t("calcite-loader",{"is-active":true}):null;var u=t("div",{style:a},v);var d=s?t("div",{style:i},n):null;return c?[u,d]:n};e("C",n)}}})); \ No newline at end of file diff --git a/docs/build/p-9dc53250.system.js b/docs/build/p-9dc53250.system.js deleted file mode 100644 index 1e9ea948..00000000 --- a/docs/build/p-9dc53250.system.js +++ /dev/null @@ -1 +0,0 @@ -System.register(["./p-6be4d309.system.js","./p-5a9eb0f4.system.js","./p-12ec9e50.system.js","./p-1071578d.system.js"],(function(e){"use strict";var t,i,s,l,a;return{setters:[function(e){t=e.h;i=e.H},function(e){s=e.C},function(e){l=e.C},function(e){a=e.d}],execute:function(){var n=e("s",{mutationObserverCallback:function(){this.setUpItems();this.setUpFilter()},initialize:function(){this.setUpItems();this.setUpFilter();this.emitCalciteListChange=a(n.internalCalciteListChangeEvent.bind(this),0)},initializeObserver:function(){this.observer.observe(this.el,{childList:true,subtree:true})},cleanUpObserver:function(){this.observer.disconnect()},calciteListItemChangeHandler:function(e){var t=this.selectedValues;var i=e.detail,s=i.item,l=i.value,a=i.selected,n=i.shiftPressed;if(a){if(!this.multiple){this.deselectSiblingItems(s)}if(this.multiple&&n){this.selectSiblings(s)}t.set(l,s)}else{t.delete(l);if(this.multiple&&n){this.selectSiblings(s,true)}}this.lastSelectedItem=s;this.emitCalciteListChange()},calciteListItemValueChangeHandler:function(e){e.stopPropagation();var t=e.detail.oldValue;if(this.selectedValues.has(t)){var i=this.selectedValues.get(t);this.selectedValues.delete(t);this.selectedValues.set(e.detail.newValue,i)}},internalCalciteListChangeEvent:function(){this.calciteListChange.emit(this.selectedValues)},setUpItems:function(e){var t=this;this.items=Array.from(this.el.querySelectorAll(e));this.items.forEach((function(e){e.icon=t.getIconType();e.compact=t.compact;if(!t.multiple){e.disableDeselect=true}if(e.selected){t.selectedValues.set(e.value,e)}}))},setUpFilter:function(){if(this.filterEnabled){this.dataForFilter=this.getItemData()}},deselectSiblingItems:function(e){var t=this;this.items.forEach((function(i){if(i.value!==e.value){i.toggleSelected(false);if(t.selectedValues.has(i.value)){t.selectedValues.delete(i.value)}}}))},selectSiblings:function(e,t){var i=this;if(t===void 0){t=false}if(!this.lastSelectedItem){return}var s=this.items;var l=s.findIndex((function(e){return e.value===i.lastSelectedItem.value}));var a=s.findIndex((function(t){return t.value===e.value}));s.slice(Math.min(l,a),Math.max(l,a)).forEach((function(e){e.toggleSelected(!t);if(!t){i.selectedValues.set(e.value,e)}else{i.selectedValues.delete(e.value)}}))},handleFilter:function(e){var t=e.detail;var i=t.map((function(e){return e.value}));this.items.forEach((function(e){e.hidden=i.indexOf(e.value)===-1}))},getItemData:function(){var e=[];this.items.forEach((function(t){var i={};i.label=t.textLabel;i.description=t.textDescription;i.metadata=t.metadata;i.value=t.value;e.push(i)}));return e}});var r=undefined&&undefined.__rest||function(e,t){var i={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0)i[s]=e[s];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l + * @author owenm + * @license MIT + */ +function t(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){t=function(e){return typeof e}}else{t=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return t(e)}function n(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function o(){o=Object.assign||function(e){for(var t=1;t=0)continue;n[i]=e[i]}return n}function a(e,t){if(e==null)return{};var n=r(e,t);var o,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;n[o]=e[o]}}return n}var l="1.10.2";function s(e){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(e)}}var u=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var c=s(/Edge/i);var f=s(/firefox/i);var d=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i);var h=s(/iP(ad|od|hone)/i);var p=s(/chrome/i)&&s(/android/i);var v={capture:false,passive:false};function g(e,t,n){e.addEventListener(t,n,!u&&v)}function m(e,t,n){e.removeEventListener(t,n,!u&&v)}function b(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(n){return false}}return false}function w(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function y(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&b(e,t):b(e,t))||o&&e===n){return e}if(e===n)break}while(e=w(e))}return null}var E=/\s+/g;function _(e,t,n){if(e&&t){if(e.classList){e.classList[n?"add":"remove"](t)}else{var o=(" "+e.className+" ").replace(E," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(E," ")}}}function S(e,t,n){var o=e&&e.style;if(o){if(n===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){n=e.currentStyle}return t===void 0?n:n[t]}else{if(!(t in o)&&t.indexOf("webkit")===-1){t="-webkit-"+t}o[t]=n+(typeof n==="string"?"":"px")}}}function D(e,t){var n="";if(typeof e==="string"){n=e}else{do{var o=S(e,"transform");if(o&&o!=="none"){n=o+" "+n}}while(!t&&(e=e.parentNode))}var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function T(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,r=o.length;if(n){for(;i=r}else{a=i<=r}if(!a)return o;if(o===C())break;o=k(o,false)}return false}function M(e,t,n){var o=0,i=0,r=e.children;while(i2&&arguments[2]!==undefined?arguments[2]:{},r=o.evt,l=a(o,["evt"]);V.pluginEvent.bind(je)(t,n,i({dragEl:Q,parentEl:$,ghostEl:J,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:oe,cloneHidden:ie,dragStarted:ye,putSortable:ce,activeSortable:je.active,originalEvent:r,oldIndex:re,oldDraggableIndex:le,newIndex:ae,newDraggableIndex:se,hideGhostForTarget:Fe,unhideGhostForTarget:He,cloneNowHidden:function e(){ie=true},cloneNowShown:function e(){ie=false},dispatchSortableEvent:function e(t){K({sortable:n,name:t,originalEvent:r})}},l))};function K(e){q(i({putSortable:ce,cloneEl:oe,targetEl:Q,rootEl:ee,oldIndex:re,oldDraggableIndex:le,newIndex:ae,newDraggableIndex:se},e))}var Q,$,J,ee,te,ne,oe,ie,re,ae,le,se,ue,ce,fe=false,de=false,he=[],pe,ve,ge,me,be,we,ye,Ee,_e,Se=false,De=false,Te,Ce,xe=[],Oe=false,Me=[];var Ie=typeof document!=="undefined",Ne=h,Ae=c||u?"cssFloat":"float",Pe=Ie&&!p&&!h&&"draggable"in document.createElement("div"),ke=function(){if(!Ie)return;if(u){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),Xe=function e(t,n){var o=S(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=M(t,0,n),a=M(t,1,n),l=r&&S(r),s=a&&S(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+x(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(a).width;if(o.display==="flex"){return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal"}if(o.display==="grid"){return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(r&&l["float"]&&l["float"]!=="none"){var f=l["float"]==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&o[Ae]==="none"||a&&o[Ae]==="none"&&u+c>i)?"vertical":"horizontal"},Ye=function e(t,n,o){var i=o?t.left:t.top,r=o?t.right:t.bottom,a=o?t.width:t.height,l=o?n.left:n.top,s=o?n.right:n.bottom,u=o?n.width:n.height;return i===l||r===s||i+a/2===l+u/2},Re=function e(t,n){var o;he.some((function(e){if(I(e))return;var i=x(e),r=e[W].options.emptyInsertThreshold,a=t>=i.left-r&&t<=i.right+r,l=n>=i.top-r&&n<=i.bottom+r;if(r&&a&&l){return o=e}}));return o},Be=function e(n){function o(e,t){return function(n,i,r,a){var l=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(e==null&&(t||l)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return o(e(n,i,r,a),t)(n,i,r,a)}else{var s=(t?n:i).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var i={};var r=n.group;if(!r||t(r)!="object"){r={name:r}}i.name=r.name;i.checkPull=o(r.pull,true);i.checkPut=o(r.put);i.revertClone=r.revertClone;n.group=i},Fe=function e(){if(!ke&&J){S(J,"display","none")}},He=function e(){if(!ke&&J){S(J,"display","")}};if(Ie){document.addEventListener("click",(function(e){if(de){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();de=false;return false}}),true)}var Le=function e(t){if(Q){t=t.touches?t.touches[0]:t;var n=Re(t.clientX,t.clientY);if(n){var o={};for(var i in t){if(t.hasOwnProperty(i)){o[i]=t[i]}}o.target=o.rootEl=n;o.preventDefault=void 0;o.stopPropagation=void 0;n[W]._onDragOver(o)}}};var We=function e(t){if(Q){Q.parentNode[W]._isOutsideThisEl(t.target)}};function je(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=o({},t);e[W]=this;var n={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return Xe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,n){t.setData("Text",n.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:je.supportPointer!==false&&"PointerEvent"in window,emptyInsertThreshold:5};V.initializePlugins(this,e,n);for(var i in n){!(i in t)&&(t[i]=n[i])}Be(t);for(var r in this){if(r.charAt(0)==="_"&&typeof this[r]==="function"){this[r]=this[r].bind(this)}}this.nativeDraggable=t.forceFallback?false:Pe;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){g(e,"pointerdown",this._onTapStart)}else{g(e,"mousedown",this._onTapStart);g(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){g(e,"dragover",this);g(e,"dragenter",this)}he.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);o(this,j())}je.prototype={constructor:je,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){Ee=null}},_getDirection:function e(t,n){return typeof this.options.direction==="function"?this.options.direction.call(this,t,n,Q):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var n=this,o=this.el,i=this.options,r=i.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=i.filter;$e(o);if(Q){return}if(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled){return}if(u.isContentEditable){return}s=y(s,i.draggable,o,false);if(s&&s.animated){return}if(ne===s){return}re=N(s);le=N(s,i.draggable);if(typeof c==="function"){if(c.call(this,t,s,this)){K({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:o,fromEl:o});Z("filter",n,{evt:t});r&&t.cancelable&&t.preventDefault();return}}else if(c){c=c.split(",").some((function(e){e=y(u,e.trim(),o,false);if(e){K({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:o,toEl:o});Z("filter",n,{evt:t});return true}}));if(c){r&&t.cancelable&&t.preventDefault();return}}if(i.handle&&!y(u,i.handle,o,false)){return}this._prepareDragStart(t,l,s)},_prepareDragStart:function e(t,n,o){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(o&&!Q&&o.parentNode===r){var d=x(o);ee=r;Q=o;$=Q.parentNode;te=Q.nextSibling;ne=o;ue=a.group;je.dragged=Q;pe={target:Q,clientX:(n||t).clientX,clientY:(n||t).clientY};be=pe.clientX-d.left;we=pe.clientY-d.top;this._lastX=(n||t).clientX;this._lastY=(n||t).clientY;Q.style["will-change"]="all";s=function e(){Z("delayEnded",i,{evt:t});if(je.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents();if(!f&&i.nativeDraggable){Q.draggable=true}i._triggerDragStart(t,n);K({sortable:i,name:"choose",originalEvent:t});_(Q,a.chosenClass,true)};a.ignore.split(",").forEach((function(e){T(Q,e.trim(),Ue)}));g(l,"dragover",Le);g(l,"mousemove",Le);g(l,"touchmove",Le);g(l,"mouseup",i._onDrop);g(l,"touchend",i._onDrop);g(l,"touchcancel",i._onDrop);if(f&&this.nativeDraggable){this.options.touchStartThreshold=4;Q.draggable=true}Z("delayStart",this,{evt:t});if(a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(c||u))){if(je.eventCanceled){this._onDrop();return}g(l,"mouseup",i._disableDelayedDrag);g(l,"touchend",i._disableDelayedDrag);g(l,"touchcancel",i._disableDelayedDrag);g(l,"mousemove",i._delayedDragTouchMoveHandler);g(l,"touchmove",i._delayedDragTouchMoveHandler);a.supportPointer&&g(l,"pointermove",i._delayedDragTouchMoveHandler);i._dragStartTimer=setTimeout(s,a.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var n=t.touches?t.touches[0]:t;if(Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){Q&&Ue(Q);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;m(t,"mouseup",this._disableDelayedDrag);m(t,"touchend",this._disableDelayedDrag);m(t,"touchcancel",this._disableDelayedDrag);m(t,"mousemove",this._delayedDragTouchMoveHandler);m(t,"touchmove",this._delayedDragTouchMoveHandler);m(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,n){n=n||t.pointerType=="touch"&&t;if(!this.nativeDraggable||n){if(this.options.supportPointer){g(document,"pointermove",this._onTouchMove)}else if(n){g(document,"touchmove",this._onTouchMove)}else{g(document,"mousemove",this._onTouchMove)}}else{g(Q,"dragend",this);g(ee,"dragstart",this._onDragStart)}try{if(document.selection){Je((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(o){}},_dragStarted:function e(t,n){fe=false;if(ee&&Q){Z("dragStarted",this,{evt:n});if(this.nativeDraggable){g(document,"dragover",We)}var o=this.options;!t&&_(Q,o.dragClass,false);_(Q,o.ghostClass,true);je.active=this;t&&this._appendGhost();K({sortable:this,name:"start",originalEvent:n})}else{this._nulling()}},_emulateDragOver:function e(){if(ve){this._lastX=ve.clientX;this._lastY=ve.clientY;Fe();var t=document.elementFromPoint(ve.clientX,ve.clientY);var n=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(ve.clientX,ve.clientY);if(t===n)break;n=t}Q.parentNode[W]._isOutsideThisEl(t);if(n){do{if(n[W]){var o=void 0;o=n[W]._onDragOver({clientX:ve.clientX,clientY:ve.clientY,target:t,rootEl:n});if(o&&!this.options.dragoverBubble){break}}t=n}while(n=n.parentNode)}He()}},_onTouchMove:function e(t){if(pe){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=t.touches?t.touches[0]:t,a=J&&D(J,true),l=J&&a&&a.a,s=J&&a&&a.d,u=Ne&&Ce&&A(Ce),c=(r.clientX-pe.clientX+i.x)/(l||1)+(u?u[0]-xe[0]:0)/(l||1),f=(r.clientY-pe.clientY+i.y)/(s||1)+(u?u[1]-xe[1]:0)/(s||1);if(!je.active&&!fe){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))=0){K({rootEl:$,name:"add",toEl:$,fromEl:ee,originalEvent:t});K({sortable:this,name:"remove",toEl:$,originalEvent:t});K({rootEl:$,name:"sort",toEl:$,fromEl:ee,originalEvent:t});K({sortable:this,name:"sort",toEl:$,originalEvent:t})}ce&&ce.save()}else{if(ae!==re){if(ae>=0){K({sortable:this,name:"update",toEl:$,originalEvent:t});K({sortable:this,name:"sort",toEl:$,originalEvent:t})}}}if(je.active){if(ae==null||ae===-1){ae=re;se=le}K({sortable:this,name:"end",toEl:$,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){Z("nulling",this);ee=Q=$=J=te=oe=ne=ie=pe=ve=ye=ae=se=re=le=Ee=_e=ce=ue=je.dragged=je.ghost=je.clone=je.active=null;Me.forEach((function(e){e.checked=true}));Me.length=ge=me=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(Q){this._onDragOver(t);ze(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],n,o=this.el.children,i=0,r=o.length,a=this.options;for(;io.right+i||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+i}function Ze(e,t,n,o,i,r,a,l){var s=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,f=o?n.bottom:n.right,d=false;if(!a){if(l&&Tec+u*r/2:sf-Te){return-_e}}else{d=true}}else{if(s>c+u*(1-i)/2&&sf-u*r/2){return s>c+u/2?1:-1}}return 0}function Ke(e){if(N(Q) + * @author owenm + * @license MIT + */ +function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function n(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function i(){return(i=Object.assign||function(t){for(var n=1;n=0||(o[i]=t[i]);return o}(t,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(e=0;e=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function r(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var a=r(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=r(/Edge/i),s=r(/firefox/i),l=r(/safari/i)&&!r(/chrome/i)&&!r(/android/i),f=r(/iP(ad|od|hone)/i),c=r(/chrome/i)&&r(/android/i),h={capture:!1,passive:!1};function d(t,n,i){t.addEventListener(n,i,!a&&h)}function v(t,n,i){t.removeEventListener(n,i,!a&&h)}function m(t,n){if(n){if(">"===n[0]&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch(i){return!1}return!1}}function p(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function g(t,n,i,e){if(t){i=i||document;do{if(null!=n&&(">"===n[0]?t.parentNode===i&&m(t,n):m(t,n))||e&&t===i)return t;if(t===i)break}while(t=p(t))}return null}var b,w=/\s+/g;function E(t,n,i){if(t&&n)if(t.classList)t.classList[i?"add":"remove"](n);else{var e=(" "+t.className+" ").replace(w," ").replace(" "+n+" "," ");t.className=(e+(i?" "+n:"")).replace(w," ")}}function y(t,n,i){var e=t&&t.style;if(e){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===n?i:i[n];n in e||-1!==n.indexOf("webkit")||(n="-webkit-"+n),e[n]=i+("string"==typeof i?"":"px")}}function S(t,n){var i="";if("string"==typeof t)i=t;else do{var e=y(t,"transform");e&&"none"!==e&&(i=e+" "+i)}while(!n&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function T(t,n,i){if(t){var e=t.getElementsByTagName(n),o=0,r=e.length;if(i)for(;o=r:o<=r))return e;if(e===I())break;e=C(e,!1)}return!1}function O(t,n,i){for(var e=0,o=0,r=t.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=i.evt,a=o(i,["evt"]);H.pluginEvent.bind(At)(t,n,e({dragEl:R,parentEl:W,ghostEl:X,rootEl:Y,nextEl:U,lastDownEl:V,cloneEl:Z,cloneHidden:$,dragStarted:st,putSortable:nt,activeSortable:At.active,originalEvent:r,oldIndex:q,oldDraggableIndex:K,newIndex:J,newDraggableIndex:Q,hideGhostForTarget:_t,unhideGhostForTarget:Dt,cloneNowHidden:function(){$=!0},cloneNowShown:function(){$=!1},dispatchSortableEvent:function(t){L({sortable:n,name:t,originalEvent:r})}},a))};function L(t){!function(t){var n=t.sortable,i=t.rootEl,o=t.name,r=t.targetEl,s=t.cloneEl,l=t.toEl,f=t.fromEl,c=t.oldIndex,h=t.newIndex,d=t.oldDraggableIndex,v=t.newDraggableIndex,m=t.originalEvent,p=t.putSortable,g=t.extraEventProperties;if(n=n||i&&i[P]){var b,w=n.options,E="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||a||u?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||i,b.from=f||i,b.item=r||i,b.clone=s,b.oldIndex=c,b.newIndex=h,b.oldDraggableIndex=d,b.newDraggableIndex=v,b.originalEvent=m,b.pullMode=p?p.lastPutMode:void 0;var y=e({},g,H.getEventProperties(o,n));for(var S in y)b[S]=y[S];i&&i.dispatchEvent(b),w[E]&&w[E].call(n,b)}}(e({putSortable:nt,cloneEl:Z,targetEl:R,rootEl:Y,oldIndex:q,oldDraggableIndex:K,newIndex:J,newDraggableIndex:Q},t))}var R,W,X,Y,U,V,Z,$,q,J,K,Q,tt,nt,it,et,ot,rt,at,ut,st,lt,ft,ct,ht,dt=!1,vt=!1,mt=[],pt=!1,gt=!1,bt=[],wt=!1,Et=[],yt="undefined"!=typeof document,St=f,Tt=u||a?"cssFloat":"float",It=yt&&!c&&!f&&"draggable"in document.createElement("div"),xt=function(){if(yt){if(a)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Mt=function(t,n){var i=y(t),e=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=O(t,0,n),r=O(t,1,n),a=o&&y(o),u=r&&y(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(o).width,l=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+x(r).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&a.float&&"none"!==a.float?!r||"both"!==u.clear&&u.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=e&&"none"===i[Tt]||r&&"none"===i[Tt]&&s+l>e)?"vertical":"horizontal"},Ot=function(n){function i(t,n){return function(e,o,r,a){if(null==t&&(n||e.options.group.name&&o.options.group.name&&e.options.group.name===o.options.group.name))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return i(t(e,o,r,a),n)(e,o,r,a);var u=(n?e:o).options.group.name;return!0===t||"string"==typeof t&&t===u||t.join&&t.indexOf(u)>-1}}var e={},o=n.group;o&&"object"==t(o)||(o={name:o}),e.name=o.name,e.checkPull=i(o.pull,!0),e.checkPut=i(o.put),e.revertClone=o.revertClone,n.group=e},_t=function(){!xt&&X&&y(X,"display","none")},Dt=function(){!xt&&X&&y(X,"display","")};yt&&document.addEventListener("click",(function(t){if(vt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),vt=!1,!1}),!0);var kt=function(t){if(R){var n=(o=(t=t.touches?t.touches[0]:t).clientX,r=t.clientY,mt.some((function(t){if(!_(t)){var n=x(t),i=t[P].options.emptyInsertThreshold;return i&&o>=n.left-i&&o<=n.right+i&&r>=n.top-i&&r<=n.bottom+i?a=t:void 0}})),a);if(n){var i={};for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[P]._onDragOver(i)}}var o,r,a},Ct=function(t){R&&R.parentNode[P]._isOutsideThisEl(t.target)};function At(t,n){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=i({},n),t[P]=this;var o,r,a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Mt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,n){t.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==At.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var u in H.initializePlugins(this,t,a),a)!(u in n)&&(n[u]=a[u]);for(var s in Ot(n),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!n.forceFallback&&It,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?d(t,"pointerdown",this._onTapStart):(d(t,"mousedown",this._onTapStart),d(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(d(t,"dragover",this),d(t,"dragenter",this)),mt.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),i(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==y(t,"display")&&t!==At.ghost){r.push({target:t,rect:x(t)});var n=e({},r[r.length-1].rect);if(t.thisAnimationDuration){var i=S(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))},addAnimationState:function(t){r.push(t)},removeAnimationState:function(t){r.splice(function(t,n){for(var i in t)if(t.hasOwnProperty(i))for(var e in n)if(n.hasOwnProperty(e)&&n[e]===t[i][e])return Number(i);return-1}(r,{target:t}),1)},animateAll:function(t){var n=this;if(!this.options.animation)return clearTimeout(o),void("function"==typeof t&&t());var i=!1,e=0;r.forEach((function(t){var o=0,r=t.target,a=r.fromRect,u=x(r),s=r.prevFromRect,l=r.prevToRect,f=t.rect,c=S(r,!0);c&&(u.top-=c.f,u.left-=c.e),r.toRect=u,r.thisAnimationDuration&&A(s,u)&&!A(a,u)&&(f.top-u.top)/(f.left-u.left)==(a.top-u.top)/(a.left-u.left)&&(o=function(t,n,i,e){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*e.animation}(f,s,l,n.options)),A(u,a)||(r.prevFromRect=a,r.prevToRect=u,o||(o=n.options.animation),n.animate(r,f,u,o)),o&&(i=!0,e=Math.max(e,o),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),o),r.thisAnimationDuration=o)})),clearTimeout(o),i?o=setTimeout((function(){"function"==typeof t&&t()}),e):"function"==typeof t&&t(),r=[]},animate:function(t,n,i,e){if(e){y(t,"transition",""),y(t,"transform","");var o=S(this.el),r=(n.left-i.left)/(o&&o.a||1),a=(n.top-i.top)/(o&&o.d||1);t.animatingX=!!r,t.animatingY=!!a,y(t,"transform","translate3d("+r+"px,"+a+"px,0)"),y(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),y(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){y(t,"transition",""),y(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}))}function jt(t,n,i,e,o,r,s,l){var f,c,h=t[P],d=h.options.onMove;return!window.CustomEvent||a||u?(f=document.createEvent("Event")).initEvent("move",!0,!0):f=new CustomEvent("move",{bubbles:!0,cancelable:!0}),f.to=n,f.from=t,f.dragged=i,f.draggedRect=e,f.related=o||n,f.relatedRect=r||x(n),f.willInsertAfter=l,f.originalEvent=s,t.dispatchEvent(f),d&&(c=d.call(h,f,s)),c}function zt(t){t.draggable=!1}function Nt(){wt=!1}function Pt(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,i=n.length,e=0;i--;)e+=n.charCodeAt(i);return e.toString(36)}function Ft(t){return setTimeout(t,0)}function Bt(t){return clearTimeout(t)}At.prototype={constructor:At,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(lt=null)},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,R):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,e=this.options,o=e.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,u=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,l=e.filter;if(function(t){Et.length=0;for(var n=t.getElementsByTagName("input"),i=n.length;i--;){var e=n[i];e.checked&&Et.push(e)}}(i),!R&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||e.disabled||s.isContentEditable||(u=g(u,e.draggable,i,!1))&&u.animated||V===u)){if(q=D(u),K=D(u,e.draggable),"function"==typeof l){if(l.call(this,t,u,this))return L({sortable:n,rootEl:s,name:"filter",targetEl:u,toEl:i,fromEl:i}),G("filter",n,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(e){if(e=g(s,e.trim(),i,!1))return L({sortable:n,rootEl:e,name:"filter",targetEl:u,fromEl:i,toEl:i}),G("filter",n,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());e.handle&&!g(s,e.handle,i,!1)||this._prepareDragStart(t,a,u)}}},_prepareDragStart:function(t,n,i){var e,o=this,r=o.el,l=o.options,f=r.ownerDocument;if(i&&!R&&i.parentNode===r){var c=x(i);if(Y=r,W=(R=i).parentNode,U=R.nextSibling,V=i,tt=l.group,At.dragged=R,at=(it={target:R,clientX:(n||t).clientX,clientY:(n||t).clientY}).clientX-c.left,ut=it.clientY-c.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,R.style["will-change"]="all",e=function(){G("delayEnded",o,{evt:t}),At.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!s&&o.nativeDraggable&&(R.draggable=!0),o._triggerDragStart(t,n),L({sortable:o,name:"choose",originalEvent:t}),E(R,l.chosenClass,!0))},l.ignore.split(",").forEach((function(t){T(R,t.trim(),zt)})),d(f,"dragover",kt),d(f,"mousemove",kt),d(f,"touchmove",kt),d(f,"mouseup",o._onDrop),d(f,"touchend",o._onDrop),d(f,"touchcancel",o._onDrop),s&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),G("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!n||this.nativeDraggable&&(u||a))e();else{if(At.eventCanceled)return void this._onDrop();d(f,"mouseup",o._disableDelayedDrag),d(f,"touchend",o._disableDelayedDrag),d(f,"touchcancel",o._disableDelayedDrag),d(f,"mousemove",o._delayedDragTouchMoveHandler),d(f,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&d(f,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(e,l.delay)}}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){R&&zt(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||"touch"==t.pointerType&&t,!this.nativeDraggable||n?d(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(d(R,"dragend",this),d(Y,"dragstart",this._onDragStart));try{document.selection?Ft((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(t,n){if(dt=!1,Y&&R){G("dragStarted",this,{evt:n}),this.nativeDraggable&&d(document,"dragover",Ct);var i=this.options;!t&&E(R,i.dragClass,!1),E(R,i.ghostClass,!0),At.active=this,t&&this._appendGhost(),L({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(et){this._lastX=et.clientX,this._lastY=et.clientY,_t();for(var t=document.elementFromPoint(et.clientX,et.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(et.clientX,et.clientY))!==n;)n=t;if(R.parentNode[P]._isOutsideThisEl(t),n)do{if(n[P]&&n[P]._onDragOver({clientX:et.clientX,clientY:et.clientY,target:t,rootEl:n})&&!this.options.dragoverBubble)break;t=n}while(n=n.parentNode);Dt()}},_onTouchMove:function(t){if(it){var n=this.options,i=n.fallbackTolerance,e=n.fallbackOffset,o=t.touches?t.touches[0]:t,r=X&&S(X,!0),a=X&&r&&r.a,u=X&&r&&r.d,s=St&&ht&&k(ht),l=(o.clientX-it.clientX+e.x)/(a||1)+(s?s[0]-bt[0]:0)/(a||1),f=(o.clientY-it.clientY+e.y)/(u||1)+(s?s[1]-bt[1]:0)/(u||1);if(!At.active&&!dt){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))e.right+10||t.clientX<=e.right&&t.clientY>e.bottom&&t.clientX>=e.left:t.clientX>e.right&&t.clientY>e.top||t.clientX<=e.right&&t.clientY>e.bottom+10}(t,r,this)&&!p.animated){if(p===R)return V(!1);if(p&&a===t.target&&(u=p),u&&(i=x(u)),!1!==jt(Y,a,R,n,u,i,t,!!u))return H(),a.appendChild(R),W=a,Z(),V(!0)}else if(u.parentNode===a){i=x(u);var b,w,S,T=R.parentNode!==a,I=!function(t,n,i){var e=i?t.left:t.top,o=i?n.left:n.top;return e===o||(i?t.right:t.bottom)===(i?n.right:n.bottom)||e+(i?t.width:t.height)/2===o+(i?n.width:n.height)/2}(R.animated&&R.toRect||n,u.animated&&u.toRect||i,r),O=r?"top":"left",k=M(u,"top","top")||M(R,"top","top"),C=k?k.scrollTop:void 0;if(lt!==u&&(w=i[O],pt=!1,gt=!I&&s.invertSwap||T),0!==(b=function(t,n,i,e,o,r,a,u){var s=e?t.clientY:t.clientX,l=e?i.height:i.width,f=e?i.top:i.left,c=e?i.bottom:i.right,h=!1;if(!a)if(u&&ctf+l*r/2:sc-ct)return-ft}else if(s>f+l*(1-o)/2&&sc-l*r/2)?s>f+l/2?1:-1:0}(t,u,i,r,I?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,gt,lt===u))){var A=D(R);do{S=W.children[A-=b]}while(S&&("none"===y(S,"display")||S===X))}if(0===b||S===u)return V(!1);lt=u,ft=b;var j=u.nextElementSibling,N=!1,F=jt(Y,a,R,n,u,i,t,N=1===b);if(!1!==F)return 1!==F&&-1!==F||(N=1===F),wt=!0,setTimeout(Nt,30),H(),N&&!j?a.appendChild(R):u.parentNode.insertBefore(R,N?j:u),k&&z(k,0,C-k.scrollTop),W=R.parentNode,void 0===w||gt||(ct=Math.abs(w-x(u)[O])),Z(),V(!0)}if(a.contains(R))return V(!1)}return!1}function B(s,l){G(s,v,e({evt:t,isOwner:c,axis:r?"vertical":"horizontal",revert:o,dragRect:n,targetRect:i,canSort:h,fromSortable:d,target:u,completed:V,onMove:function(i,e){return jt(Y,a,R,n,i,x(i),t,e)},changed:Z},l))}function H(){B("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function V(n){return B("dragOverCompleted",{insertion:n}),n&&(c?f._hideClone():f._showClone(v),v!==d&&(E(R,nt?nt.options.ghostClass:f.options.ghostClass,!1),E(R,s.ghostClass,!0)),nt!==v&&v!==At.active?nt=v:v===At.active&&nt&&(nt=null),d===v&&(v._ignoreWhileAnimating=u),v.animateAll((function(){B("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(u===R&&!R.animated||u===a&&!u.animated)&&(lt=null),s.dragoverBubble||t.rootEl||u===document||(R.parentNode[P]._isOutsideThisEl(t.target),!n&&kt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function Z(){J=D(R),Q=D(R,s.draggable),L({sortable:v,name:"change",toEl:a,newIndex:J,newDraggableIndex:Q,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",kt),v(document,"mousemove",kt),v(document,"touchmove",kt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;J=D(R),Q=D(R,i.draggable),G("drop",this,{evt:t}),W=R&&R.parentNode,J=D(R),Q=D(R,i.draggable),At.eventCanceled?this._nulling():(dt=!1,gt=!1,pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Bt(this.cloneId),Bt(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),l&&y(document.body,"user-select",""),y(R,"transform",""),t&&(st&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Y===W||nt&&"clone"!==nt.lastPutMode)&&Z&&Z.parentNode&&Z.parentNode.removeChild(Z),R&&(this.nativeDraggable&&v(R,"dragend",this),zt(R),R.style["will-change"]="",st&&!dt&&E(R,nt?nt.options.ghostClass:this.options.ghostClass,!1),E(R,this.options.chosenClass,!1),L({sortable:this,name:"unchoose",toEl:W,newIndex:null,newDraggableIndex:null,originalEvent:t}),Y!==W?(J>=0&&(L({rootEl:W,name:"add",toEl:W,fromEl:Y,originalEvent:t}),L({sortable:this,name:"remove",toEl:W,originalEvent:t}),L({rootEl:W,name:"sort",toEl:W,fromEl:Y,originalEvent:t}),L({sortable:this,name:"sort",toEl:W,originalEvent:t})),nt&&nt.save()):J!==q&&J>=0&&(L({sortable:this,name:"update",toEl:W,originalEvent:t}),L({sortable:this,name:"sort",toEl:W,originalEvent:t})),At.active&&(null!=J&&-1!==J||(J=q,Q=K),L({sortable:this,name:"end",toEl:W,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){G("nulling",this),Y=R=W=X=U=Z=V=$=it=et=st=J=Q=q=K=lt=ft=nt=tt=At.dragged=At.ghost=At.clone=At.active=null,Et.forEach((function(t){t.checked=!0})),Et.length=ot=rt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":R&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,n=[],i=this.el.children,e=0,o=i.length,r=this.options;e{t.icon=this.getIconType(),t.compact=this.compact,this.multiple||(t.disableDeselect=!0),t.selected&&this.selectedValues.set(t.value,t)})},setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())},deselectSiblingItems(t){this.items.forEach(i=>{i.value!==t.value&&(i.toggleSelected(!1),this.selectedValues.has(i.value)&&this.selectedValues.delete(i.value))})},selectSiblings(t,i=!1){if(!this.lastSelectedItem)return;const{items:s}=this,e=s.findIndex(t=>t.value===this.lastSelectedItem.value),a=s.findIndex(i=>i.value===t.value);s.slice(Math.min(e,a),Math.max(e,a)).forEach(t=>{t.toggleSelected(!i),i?this.selectedValues.delete(t.value):this.selectedValues.set(t.value,t)})},handleFilter(t){const i=t.detail.map(t=>t.value);this.items.forEach(t=>{const s=t.parentElement.matches("calcite-pick-list-group");if(t.hidden=-1===i.indexOf(t.value),s){const s=t.parentElement.querySelector("[slot=parent-item]");null!==s&&(-1!==i.indexOf(s.value)&&(t.hidden=!1),-1!==i.indexOf(t.value)&&(s.hidden=!1))}})},getItemData(){const t=[];return this.items.forEach(i=>{const s={};s.label=i.textLabel,s.description=i.textDescription,s.metadata=i.metadata,s.value=i.value,t.push(s)}),t}};const h=a=>{var{props:l}=a,h=function(t,i){var s={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.indexOf(e)<0&&(s[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(e=Object.getOwnPropertySymbols(t);at(s,{loading:i,disabled:e}))(n,r))};export{h as L,l as s}; \ No newline at end of file diff --git a/docs/build/p-da58pbhy.system.entry.js b/docs/build/p-da58pbhy.system.entry.js new file mode 100644 index 00000000..a63a1415 --- /dev/null +++ b/docs/build/p-da58pbhy.system.entry.js @@ -0,0 +1 @@ +var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,l){function s(t){try{o(n.next(t))}catch(e){l(e)}}function a(t){try{o(n["throw"](t))}catch(e){l(e)}}function o(t){t.done?i(t.value):r(t.value).then(s,a)}o((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,r,l,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return o([t,e])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(l=s[0]&2?r["return"]:s[0]?r["throw"]||((l=r["return"])&&l.call(r),0):r.next)&&!(l=l.call(r,s[1])).done)return l;if(r=0,l)s=[s[0]&2,l.value];switch(s[0]){case 0:case 1:l=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(l=i.trys,l=l.length>0&&l[l.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!l||s[1]>l[0]&&s[1]this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1},this.handleSelectChange=t=>{this.selected=t.detail.selected}}async toggleSelected(t){this.pickListItem.toggleSelected(t)}renderHandle(){const{icon:t}=this;if(t===h.grip)return s("span",{role:"button",class:{[l.handle]:!0,[l.handleActivated]:this.handleActivated},tabindex:"0","data-js-handle":"true","aria-pressed":this.handleActivated.toString(),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur},s("calcite-icon",{scale:"s",icon:"drag"}))}render(){return s(i,{"data-id":this.guid},this.renderHandle(),s("calcite-pick-list-item",{compact:this.compact,ref:this.getPickListRef,disabled:this.disabled,disableDeselect:this.disableDeselect,selected:this.selected,metadata:this.metadata,textLabel:this.textLabel,textDescription:this.textDescription,onCalciteListItemChange:this.handleSelectChange,value:this.value},s("slot",{name:"secondary-action",slot:"secondary-action"})))}get el(){return e(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset;display:-ms-flexbox;display:flex;padding:var(--calcite-app-side-spacing-minimum);-webkit-transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:hover){background-color:var(--calcite-app-background-hover)}:host([selected]){-webkit-box-shadow:0 0 0 1px var(--calcite-app-border-active) inset;box-shadow:0 0 0 1px var(--calcite-app-border-active) inset}calcite-pick-list-item{background-color:var(--calcite-app-background-clear);-webkit-box-shadow:none;box-shadow:none;-ms-flex-positive:1;flex-grow:1;position:relative;margin:0}.handle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--calcite-app-cap-spacing-minimum);padding:var(--calcite-app-cap-spacing-three-quarters) var(--calcite-app-side-spacing-half);background-color:var(--calcite-app-background-clear);border:none;color:var(--calcite-app-foreground-subtle);line-height:0;cursor:move}.handle:focus{outline-offset:var(--calcite-app-outline-inset)}.handle:focus{outline-offset:var(--calcite-app-outline-inset)}.handle--activated{background-color:var(--calcite-app-background-active);color:var(--calcite-app-foreground-active)}:host(:last-child) .handle{margin-bottom:0}"}};export{c as calcite_value_list_item}; \ No newline at end of file diff --git a/docs/build/p-0mnuleck.system.entry.js b/docs/build/p-eyyld3qp.system.entry.js similarity index 50% rename from docs/build/p-0mnuleck.system.entry.js rename to docs/build/p-eyyld3qp.system.entry.js index a681bb4f..0dbe71bf 100644 --- a/docs/build/p-0mnuleck.system.entry.js +++ b/docs/build/p-eyyld3qp.system.entry.js @@ -1 +1 @@ -var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{c(i.next(e))}catch(t){r(t)}}function l(e){try{c(i["throw"](e))}catch(t){r(t)}}function c(e){e.done?n(e.value):a(e.value).then(s,l)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return c([e,t])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]{t.icon=this.getIconType(),t.compact=this.compact,this.multiple||(t.disableDeselect=!0),t.selected&&this.selectedValues.set(t.value,t)})},setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())},deselectSiblingItems(t){this.items.forEach(i=>{i.value!==t.value&&(i.toggleSelected(!1),this.selectedValues.has(i.value)&&this.selectedValues.delete(i.value))})},selectSiblings(t,i=!1){if(!this.lastSelectedItem)return;const{items:s}=this,e=s.findIndex(t=>t.value===this.lastSelectedItem.value),a=s.findIndex(i=>i.value===t.value);s.slice(Math.min(e,a),Math.max(e,a)).forEach(t=>{t.toggleSelected(!i),i?this.selectedValues.delete(t.value):this.selectedValues.set(t.value,t)})},handleFilter(t){const i=t.detail.map(t=>t.value);this.items.forEach(t=>{t.hidden=-1===i.indexOf(t.value)})},getItemData(){const t=[];return this.items.forEach(i=>{const s={};s.label=i.textLabel,s.description=i.textDescription,s.metadata=i.metadata,s.value=i.value,t.push(s)}),t}};const l=a=>{var{props:h}=a,l=function(t,i){var s={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.indexOf(e)<0&&(s[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(e=Object.getOwnPropertySymbols(t);at(s,{loading:i,disabled:e}))(n,r))};export{l as L,h as s}; \ No newline at end of file diff --git a/docs/build/p-fsc87cgi.system.entry.js b/docs/build/p-fsc87cgi.system.entry.js deleted file mode 100644 index 03e977f9..00000000 --- a/docs/build/p-fsc87cgi.system.entry.js +++ /dev/null @@ -1 +0,0 @@ -System.register(["./p-6be4d309.system.js"],(function(t){"use strict";var e,n,r;return{setters:[function(t){e=t.r;n=t.h;r=t.H}],execute:function(){var i={heading:"heading",container:"container"};var u=t("calcite_pick_list_group",function(){function t(t){e(this,t)}t.prototype.render=function(){return n(r,null,this.textGroupTitle?n("h3",{class:i.heading},this.textGroupTitle):null,n("section",{class:i.container},n("slot",null)))};Object.defineProperty(t,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{background-color:var(--calcite-app-background-clear);display:block;margin-bottom:var(--calcite-app-cap-spacing)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host(:last-child){margin-bottom:0}h3.heading{font-size:var(--calcite-app-font-size-0);font-weight:var(--calcite-app-font-weight);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}.container{border-radius:var(--calcite-app-border-radius);overflow:hidden;-webkit-box-shadow:0 1px 0 var(--calcite-app-border) inset;box-shadow:0 1px 0 var(--calcite-app-border) inset}"},enumerable:true,configurable:true});return t}())}}})); \ No newline at end of file diff --git a/docs/build/p-gipoehmz.system.entry.js b/docs/build/p-gipoehmz.system.entry.js new file mode 100644 index 00000000..2e646da8 --- /dev/null +++ b/docs/build/p-gipoehmz.system.entry.js @@ -0,0 +1 @@ +System.register(["./p-7b680867.system.js","./p-96993f13.system.js","./p-c73f10ef.system.js","./p-9b878d06.system.js","./p-5559af04.system.js"],(function(e){"use strict";var t,l,n,o,a,i,c,s,r;return{setters:[function(e){t=e.r;l=e.c;n=e.h;o=e.H;a=e.g},function(e){i=e.C},function(e){c=e.g},function(e){s=e.g},function(e){r=e.c}],execute:function(){var u={content:"content",headerContainer:"header-container",icon:"icon",toggle:"toggle",toggleIcon:"toggle-icon",title:"title",heading:"heading",header:"header",button:"button",summary:"summary",control:"control"};var g={collapse:"Collapse",expand:"Expand"};var d={close:"chevron-up",open:"chevron-down"};var h=e("calcite_block",function(){function e(e){var n=this;t(this,e);this.collapsible=false;this.disabled=false;this.dragHandle=false;this.open=false;this.loading=false;this.textExpand=g.expand;this.textCollapse=g.collapse;this.onHeaderClick=function(){n.open=!n.open;n.calciteBlockToggle.emit()};this.calciteBlockToggle=l(this,"calciteBlockToggle",7)}e.prototype.render=function(){var e=this,t=e.collapsible,l=e.disabled,a=e.el,c=e.heading,s=e.loading,r=e.open,g=e.summary,h=e.textCollapse,p=e.textExpand;var f=r?h:p;var b=a.querySelector("[slot="+"icon"+"]");var v=n("header",{class:u.header},b?n("div",{class:u.icon},n("slot",{name:"icon"})):null,n("div",{class:u.title},n("h3",{class:u.heading},c),g?n("div",{class:u.summary},g):null));var m=a.querySelector("[slot="+"control"+"]");var y=n("div",{class:u.headerContainer},this.dragHandle?n("calcite-handle",null):null,t?n("button",{"aria-label":f,class:u.toggle,onClick:this.onHeaderClick,title:f},v,m?null:n("calcite-icon",{scale:"s",icon:r?d.close:d.open})):v,s?n("calcite-loader",{inline:true,"is-active":true}):n("slot",{name:"control"}));return n(o,{tabIndex:l?-1:null},n("article",{"aria-expanded":t?r.toString():null,"aria-busy":s},y,n("div",{class:u.content,hidden:!r},n(i,{loading:s,disabled:l},n("slot",null)))))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-direction:column;flex-direction:column;border-radius:var(--calcite-app-border-radius);margin:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-quarter) 0;-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.header{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:start;justify-content:flex-start}.header-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header-container>.header{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-three-quarters)}:host([disabled]){pointer-events:none;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]) .header-container{opacity:var(--calcite-app-disabled-opacity)}calcite-loader[inline]{color:var(--calcite-app-foreground-subtle)}.title{margin:0}.header .title .heading{padding:0 0 var(--calcite-app-cap-spacing-quarter)}.summary{font-size:var(--calcite-app-font-size--1);padding:0 0 var(--calcite-app-cap-spacing-quarter)}.toggle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-positive:1;flex-grow:1;margin:0;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-three-quarters);background-color:transparent;border:none;cursor:pointer;font-family:var(--calcite-app-font-family);text-align:unset;color:var(--calcite-app-foreground)}.toggle:focus{outline-offset:var(--calcite-app-outline-inset)}.icon{margin-right:var(--calcite-app-side-spacing-third)}.toggle-icon{fill:currentColor;-ms-flex:0 0 var(--calcite-app-icon-size);flex:0 0 var(--calcite-app-icon-size);margin:0 var(--calcite-app-side-spacing-half)}.content{padding:0 var(--calcite-app-side-spacing-three-quarters) var(--calcite-app-cap-spacing-half);position:relative}::slotted([slot=control]){position:absolute;margin:auto;right:var(--calcite-app-side-spacing-three-quarters)}.calcite--rtl ::slotted([slot=control]){left:var(--calcite-app-side-spacing-three-quarters);right:unset}"},enumerable:true,configurable:true});return e}());var p={content:"content",toggle:"toggle",toggleSwitch:"toggle--switch"};var f={collapse:"Collapse",expand:"Expand"};var b={menuOpen:"caret-down",menuClosedLeft:"caret-left",menuClosedRight:"caret-right"};var v=e("calcite_block_section",function(){function e(e){var n=this;t(this,e);this.open=false;this.textExpand=f.expand;this.textCollapse=f.collapse;this.toggleDisplay="button";this.guid="calcite-block-section-"+s();this.toggleSection=function(){n.open=!n.open;n.calciteBlockSectionToggle.emit()};this.calciteBlockSectionToggle=l(this,"calciteBlockSectionToggle",7)}e.prototype.render=function(){var e=this,t=e.el,l=e.guid,o=e.open,a=e.text,i=e.textCollapse,s=e.textExpand,u=e.toggleDisplay;var g=c(t);var d=o?b.menuOpen:g==="rtl"?b.menuClosedLeft:b.menuClosedRight;var h=o?i:s;var f=l+"__label";var v=u==="switch"?n("label",{"aria-label":h,class:r(p.toggle,p.toggleSwitch),id:f},a,n("calcite-switch",{"aria-labelledby":f,switched:o,onChange:this.toggleSection,scale:"s"})):n("calcite-action",{"aria-label":h,class:p.toggle,onClick:this.toggleSection,text:a,textEnabled:true,compact:true},n("calcite-icon",{scale:"s",icon:d}));return n("section",{"aria-expanded":o.toString()},v,n("div",{class:p.content,hidden:!o},n("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{border-bottom:1px solid var(--calcite-app-border);display:block}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:last-child){border-bottom:none}.toggle--switch{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--calcite-app-cap-spacing-half) 0;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.toggle--switch calcite-switch{margin:var(--calcite-app-cap-spacing-third) 0 0 var(--calcite-app-side-spacing-half)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:var(--calcite-app-side-spacing-half)}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file diff --git a/docs/build/p-gyzn5znt.system.entry.js b/docs/build/p-gyzn5znt.system.entry.js deleted file mode 100644 index adf4bbcb..00000000 --- a/docs/build/p-gyzn5znt.system.entry.js +++ /dev/null @@ -1 +0,0 @@ -var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function i(t){try{c(r.next(t))}catch(e){a(e)}}function l(t){try{c(r["throw"](t))}catch(e){a(e)}}function c(t){t.done?n(t.value):o(t.value).then(i,l)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(t){return function(e){return c([t,e])}}function c(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;o=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]0&&i[i.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]t&&e>1||t>1?e{const{flows:t}=this,e=Array.from(this.el.querySelectorAll("calcite-flow-item")),s=t.length,n=e.length,i=e[n-1],r=e[n-2];if(n&&i&&e.forEach(t=>{t.showBackButton=n>1,t.hidden=t!==i}),r&&(r.menuOpen=!1),this.flows=e,s!==n){const t=this.getFlowDirection(s,n);this.flowCount=n,this.flowDirection=t}},this.flowItemObserver=new MutationObserver(this.updateFlowProps)}async back(){const t=this.el.querySelector("calcite-flow-item:last-child");if(t)return(t.beforeBack?t.beforeBack:()=>Promise.resolve()).call(t).then(()=>(t.remove(),t))}componentWillLoad(){this.updateFlowProps()}componentDidLoad(){this.flowItemObserver.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.flowItemObserver.disconnect()}handleCalciteFlowItemBackClick(){this.back()}render(){const{flowDirection:t,flowCount:n}=this;return e(s,null,e("div",{key:n,class:l("frame",{"frame--advancing":"advancing"===t,"frame--retreating":"retreating"===t})},e("slot",null)))}get el(){return n(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;width:100%;height:100%;overflow:hidden;position:relative}:host .frame{-ms-flex-align:stretch;align-items:stretch;width:100%;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;position:relative}:host .frame--advancing{-webkit-animation:calcite-flow-item-advance var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-flow-item-advance var(--calcite-app-animation-time) var(--calcite-app-easing-function)}:host .frame--retreating{-webkit-animation:calcite-flow-item-retreat var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-flow-item-retreat var(--calcite-app-animation-time) var(--calcite-app-easing-function)}\@-webkit-keyframes calcite-flow-item-advance{0%{opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@keyframes calcite-flow-item-advance{0%{opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@-webkit-keyframes calcite-flow-item-retreat{0%{opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@keyframes calcite-flow-item-retreat{0%{opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}"}},d=["calcite-pick-list","calcite-value-list"];function u(t,e){return(t+e)%e}const m=["ArrowUp","ArrowDown"],f=class{constructor(e){t(this,e),this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.showBackButton=!1,this.textBack="Back",this.textClose="Close",this.textOpen="Open",this.toggleMenuOpen=()=>{this.menuOpen=!this.menuOpen},this.backButtonClick=()=>{this.calciteFlowItemBackClick.emit()},this.menuButtonKeyDown=t=>{const{key:e}=t,{menuOpen:s}=this;if(!this.isValidKey(e,m))return;const n=this.queryActions(),{length:i}=n;i&&(t.preventDefault(),s||(this.menuOpen=!0),"ArrowUp"===e&&o(n[i-1]),"ArrowDown"===e&&o(n[0]))},this.menuActionsKeydown=t=>{const{key:e,target:s}=t;if(!this.isValidKey(e,m))return;const n=this.queryActions(),{length:i}=n,r=n.indexOf(s);if(i&&-1!==r){if(t.preventDefault(),"ArrowUp"===e){const t=u(r-1,i);o(n[t])}if("ArrowDown"===e){const t=u(r+1,i);o(n[t])}}},this.menuActionsContainerKeyDown=t=>{const{key:e}=t;"Escape"===e&&(this.menuOpen=!1)},this.calciteFlowItemBackClick=i(this,"calciteFlowItemBackClick",7)}queryActions(){return Array.from(this.el.querySelectorAll("[slot=menu-actions] calcite-action"))}isValidKey(t,e){return!!e.find(e=>e===t)}renderBackButton(t){const{showBackButton:s,textBack:n,backButtonClick:i}=this;return s?e("calcite-action",{slot:"header-leading-content",key:"back-button","aria-label":n,text:n,class:"back-button",onClick:i},e("calcite-icon",{scale:"s",filled:!0,icon:t?"chevron-right":"chevron-left"})):null}renderMenuButton(){const{menuOpen:t,textOpen:s,textClose:n}=this,i=t?n:s;return e("calcite-action",{class:"menu-button","aria-label":i,text:i,onClick:this.toggleMenuOpen,onKeyDown:this.menuButtonKeyDown},e("calcite-icon",{scale:"s",icon:"ellipsis"}))}renderMenuActions(){const{menuOpen:t}=this;return e("div",{class:l("menu",{"menu--open":t}),onKeyDown:this.menuActionsKeydown},e("slot",{name:"menu-actions"}))}renderFooterActions(){return this.el.querySelector("[slot=footer-actions]")?e("div",{slot:"footer",class:"footer-actions"},e("slot",{name:"footer-actions"})):null}renderSingleActionContainer(){return e("div",{class:"single-action-container"},e("slot",{name:"menu-actions"}))}renderMenuActionsContainer(){return e("div",{class:"menu-container",onKeyDown:this.menuActionsContainerKeyDown},this.renderMenuButton(),this.renderMenuActions())}renderHeaderActions(){const t=this.el.querySelector("[slot=menu-actions]"),s=t&&t.closest(d.join(",")),n=!!t&&!s,i=1===(n?t.childElementCount:0)?this.renderSingleActionContainer():n?this.renderMenuActionsContainer():null;return i?e("div",{slot:"header-trailing-content",class:"header-actions"},i):null}renderHeading(){const{heading:t}=this;return t?e("h2",{class:"heading",slot:"header-content"},t):null}renderSummary(){const{summary:t}=this;return t?e("span",{class:"summary"},t):null}renderHeader(){const t=this.renderHeading(),s=this.renderSummary();return t||s?e("div",{class:"header-content",slot:"header-content"},t,s):null}render(){const{el:t}=this,n="rtl"===a(t);return e(s,null,e("calcite-panel",{loading:this.loading,disabled:this.disabled,"height-scale":this.heightScale,class:l({[c.rtl]:n})},this.renderBackButton(n),this.renderHeader(),this.renderHeaderActions(),e("slot",null),this.renderFooterActions()))}get el(){return n(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{background-color:var(--calcite-app-background-content);display:-ms-flexbox;display:flex;height:100%;width:100%}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-panel{width:100%;height:100%}.header-content{display:block}.header-content .heading{font-size:var(--calcite-app-font-size-1);margin:0 0 var(--calcite-app-cap-spacing-quarter)}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-app-foreground-subtle)}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.header-actions,.menu-container,.single-action-container{display:-ms-flexbox;display:flex}.menu{position:absolute;top:100%;z-index:1;background-color:var(--calcite-app-background);-webkit-box-shadow:var(--calcite-app-shadow-0);box-shadow:var(--calcite-app-shadow-0);padding:0;left:auto;min-width:var(--calcite-app-menu-min-width);right:var(--calcite-app-menu-offset);visibility:visible;-ms-flex-flow:column nowrap;flex-flow:column nowrap;border:1px solid var(--calcite-app-border);-webkit-animation:calcite-app-fade-in-down var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);animation:calcite-app-fade-in-down var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);display:none}.calcite--rtl .menu{left:var(--calcite-app-menu-offset);right:auto}.menu--open{display:block}.footer-actions{display:-ms-flexbox;display:flex;width:100%}"}},g=class{constructor(e){t(this,e),this.dismissed=!1,this.disabled=!1,this.dismissible=!1,this.loading=!1,this.textClose="Close",this.panelKeyUpHandler=t=>{"Escape"===t.key&&this.dismiss()},this.dismiss=()=>{this.dismissed=!0},this.calcitePanelDismissedChange=i(this,"calcitePanelDismissedChange",7)}dismissedHandler(){this.calcitePanelDismissedChange.emit()}async setFocus(t){var e,s;"dismiss-button"!==t?null===(s=this.containerEl)||void 0===s||s.focus():null===(e=this.dismissButtonEl)||void 0===e||e.setFocus()}renderHeaderLeadingContent(){return this.el.querySelector("[slot=header-leading-content]")?e("div",{key:"header-leading-content",class:"header-leading-content"},e("slot",{name:"header-leading-content"})):null}renderHeaderContent(){return e("div",{key:"header-content",class:"header-content"},e("slot",{name:"header-content"}))}renderHeaderTrailingContent(){const{dismiss:t,dismissible:s,textClose:n}=this,i=s?e("calcite-action",{ref:t=>this.dismissButtonEl=t,"aria-label":n,text:n,onClick:t},e("calcite-icon",{scale:"s",icon:"x"})):null,r=e("slot",{name:"header-trailing-content"});return e("div",{key:"header-trailing-content",class:"header-trailing-content"},r,i)}renderHeader(){const t=this.renderHeaderLeadingContent(),s=this.renderHeaderContent(),n=this.renderHeaderTrailingContent();return s||t||n?e("header",{class:"header"},t,s,n):null}renderFooter(){const{el:t}=this;return t.querySelector("[slot=footer]")?e("footer",{class:"footer"},e("slot",{name:"footer"})):null}renderContent(){return e("section",{class:"content-container"},e("slot",null))}render(){const{dismissed:t,disabled:n,dismissible:i,el:o,loading:h,panelKeyUpHandler:d}=this,u="rtl"===a(o);return e(s,null,e("article",{"aria-busy":h.toString(),onKeyUp:d,tabIndex:i?0:-1,hidden:i&&t,ref:t=>this.containerEl=t,class:l("container",{[c.rtl]:u})},this.renderHeader(),this.renderContent(),this.renderFooter()),e(r,{loading:h,disabled:n}))}get el(){return n(this)}static get watchers(){return{dismissed:["dismissedHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;position:relative;--calcite-app-panel-max-height-small:40vh;--calcite-app-panel-max-height-medium:60vh;--calcite-app-panel-max-height-large:80vh;--calcite-app-panel-min-header-height:calc(var(--calcite-app-icon-size) * 3)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.container{-ms-flex-align:stretch;align-items:stretch;-webkit-transition:max-height var(--calcite-app-animation-time) var(--calcite-app-easing-function);transition:max-height var(--calcite-app-animation-time) var(--calcite-app-easing-function);width:100%;height:100%;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}:host([height-scale=s]) .container{max-height:var(--calcite-app-panel-max-height-small)}:host([height-scale=m]) .container{max-height:var(--calcite-app-panel-max-height-medium)}:host([height-scale=l]) .container{max-height:var(--calcite-app-panel-max-height-large)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;min-height:var(--calcite-app-header-min-height);position:relative;z-index:2;border-bottom:1px solid var(--calcite-app-border);width:100%}.header-content{overflow:hidden;padding:var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing)}.header-leading-content,.header-trailing-content{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.header-leading-content+.header-content{padding-left:var(--calcite-app-side-spacing-half)}.content-container{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex:1 1 auto;flex:1 1 auto;background-color:var(--calcite-app-background-content);overflow:auto}.footer{border-top:1px solid var(--calcite-app-border);display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-pack:space-evenly;justify-content:space-evenly;min-height:var(--calcite-app-footer-min-height);padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}.calcite--rtl .header-leading-content+.header-content{padding-right:var(--calcite-app-side-spacing-half)}.calcite--rtl .header-trailing-content{margin-left:0;margin-right:auto}"}};export{h as calcite_flow,f as calcite_flow_item,g as calcite_panel}; \ No newline at end of file +import{r as t,h as e,H as s,g as n,c as i}from"./p-323e88a0.js";import{C as r}from"./p-3ce5a533.js";import{f as a,g as o}from"./p-88b03842.js";import{c as l}from"./p-840e89a3.js";import{C as c}from"./p-ffc077bf.js";const h=class{constructor(e){t(this,e),this.flowCount=0,this.flowDirection=null,this.flows=[],this.getFlowDirection=(t,e)=>t&&e>1||t>1?e{const{flows:t}=this,e=Array.from(this.el.querySelectorAll("calcite-flow-item")),s=t.length,n=e.length,i=e[n-1],r=e[n-2];if(n&&i&&e.forEach(t=>{t.showBackButton=n>1,t.hidden=t!==i}),r&&(r.menuOpen=!1),this.flows=e,s!==n){const t=this.getFlowDirection(s,n);this.flowCount=n,this.flowDirection=t}},this.flowItemObserver=new MutationObserver(this.updateFlowProps)}async back(){const t=this.el.querySelector("calcite-flow-item:last-child");if(t)return(t.beforeBack?t.beforeBack:()=>Promise.resolve()).call(t).then(()=>(t.remove(),t))}componentWillLoad(){this.updateFlowProps()}componentDidLoad(){this.flowItemObserver.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.flowItemObserver.disconnect()}handleCalciteFlowItemBackClick(){this.back()}render(){const{flowDirection:t,flowCount:n}=this;return e(s,null,e("div",{key:n,class:l("frame",{"frame--advancing":"advancing"===t,"frame--retreating":"retreating"===t})},e("slot",null)))}get el(){return n(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;width:100%;height:100%;overflow:hidden;position:relative}:host .frame{-ms-flex-align:stretch;align-items:stretch;width:100%;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;position:relative}:host .frame--advancing{-webkit-animation:calcite-flow-item-advance var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-flow-item-advance var(--calcite-app-animation-time) var(--calcite-app-easing-function)}:host .frame--retreating{-webkit-animation:calcite-flow-item-retreat var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-flow-item-retreat var(--calcite-app-animation-time) var(--calcite-app-easing-function)}\@-webkit-keyframes calcite-flow-item-advance{0%{opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@keyframes calcite-flow-item-advance{0%{opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@-webkit-keyframes calcite-flow-item-retreat{0%{opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@keyframes calcite-flow-item-retreat{0%{opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}"}},d=["calcite-pick-list","calcite-value-list"];function u(t,e){return(t+e)%e}const m=["ArrowUp","ArrowDown"],f=class{constructor(e){t(this,e),this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.showBackButton=!1,this.textBack="Back",this.textClose="Close",this.textOpen="Open",this.toggleMenuOpen=()=>{this.menuOpen=!this.menuOpen},this.backButtonClick=()=>{this.calciteFlowItemBackClick.emit()},this.menuButtonKeyDown=t=>{const{key:e}=t,{menuOpen:s}=this;if(!this.isValidKey(e,m))return;const n=this.queryActions(),{length:i}=n;i&&(t.preventDefault(),s||(this.menuOpen=!0),"ArrowUp"===e&&a(n[i-1]),"ArrowDown"===e&&a(n[0]))},this.menuActionsKeydown=t=>{const{key:e,target:s}=t;if(!this.isValidKey(e,m))return;const n=this.queryActions(),{length:i}=n,r=n.indexOf(s);if(i&&-1!==r){if(t.preventDefault(),"ArrowUp"===e){const t=u(r-1,i);a(n[t])}if("ArrowDown"===e){const t=u(r+1,i);a(n[t])}}},this.menuActionsContainerKeyDown=t=>{const{key:e}=t;"Escape"===e&&(this.menuOpen=!1)},this.calciteFlowItemBackClick=i(this,"calciteFlowItemBackClick",7)}queryActions(){return Array.from(this.el.querySelectorAll("[slot=menu-actions] calcite-action"))}isValidKey(t,e){return!!e.find(e=>e===t)}renderBackButton(t){const{showBackButton:s,textBack:n,backButtonClick:i}=this;return s?e("calcite-action",{slot:"header-leading-content",key:"back-button","aria-label":n,text:n,class:"back-button",onClick:i},e("calcite-icon",{scale:"s",filled:!0,icon:t?"chevron-right":"chevron-left"})):null}renderMenuButton(){const{menuOpen:t,textOpen:s,textClose:n}=this,i=t?n:s;return e("calcite-action",{class:"menu-button","aria-label":i,text:i,onClick:this.toggleMenuOpen,onKeyDown:this.menuButtonKeyDown},e("calcite-icon",{scale:"s",icon:"ellipsis"}))}renderMenuActions(){const{menuOpen:t}=this;return e("div",{class:l("menu",{"menu--open":t}),onKeyDown:this.menuActionsKeydown},e("slot",{name:"menu-actions"}))}renderFooterActions(){return this.el.querySelector("[slot=footer-actions]")?e("div",{slot:"footer",class:"footer-actions"},e("slot",{name:"footer-actions"})):null}renderSingleActionContainer(){return e("div",{class:"single-action-container"},e("slot",{name:"menu-actions"}))}renderMenuActionsContainer(){return e("div",{class:"menu-container",onKeyDown:this.menuActionsContainerKeyDown},this.renderMenuButton(),this.renderMenuActions())}renderHeaderActions(){const t=this.el.querySelector("[slot=menu-actions]"),s=t&&t.closest(d.join(",")),n=!!t&&!s,i=1===(n?t.childElementCount:0)?this.renderSingleActionContainer():n?this.renderMenuActionsContainer():null;return i?e("div",{slot:"header-trailing-content",class:"header-actions"},i):null}renderHeading(){const{heading:t}=this;return t?e("h2",{class:"heading",slot:"header-content"},t):null}renderSummary(){const{summary:t}=this;return t?e("span",{class:"summary"},t):null}renderHeader(){const t=this.renderHeading(),s=this.renderSummary();return t||s?e("div",{class:"header-content",slot:"header-content"},t,s):null}render(){const{el:t}=this,n="rtl"===o(t);return e(s,null,e("calcite-panel",{loading:this.loading,disabled:this.disabled,"height-scale":this.heightScale,class:l({[c.rtl]:n})},this.renderBackButton(n),this.renderHeader(),this.renderHeaderActions(),e("slot",null),this.renderFooterActions()))}get el(){return n(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{background-color:var(--calcite-app-background-content);display:-ms-flexbox;display:flex;height:100%;width:100%}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-panel{width:100%;height:100%}.header-content{display:block}.header-content .heading{font-size:var(--calcite-app-font-size-1);margin:0 0 var(--calcite-app-cap-spacing-quarter)}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-app-foreground-subtle)}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.header-actions,.menu-container,.single-action-container{display:-ms-flexbox;display:flex}.menu{position:absolute;top:100%;z-index:1;background-color:var(--calcite-app-background);-webkit-box-shadow:var(--calcite-app-shadow-0);box-shadow:var(--calcite-app-shadow-0);padding:0;left:auto;min-width:var(--calcite-app-menu-min-width);right:var(--calcite-app-menu-offset);visibility:visible;-ms-flex-flow:column nowrap;flex-flow:column nowrap;border:1px solid var(--calcite-app-border);-webkit-animation:calcite-app-fade-in-down var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);animation:calcite-app-fade-in-down var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);display:none}.calcite--rtl .menu{left:var(--calcite-app-menu-offset);right:auto}.menu--open{display:block}.footer-actions{display:-ms-flexbox;display:flex;width:100%}"}},g=class{constructor(e){t(this,e),this.dismissed=!1,this.disabled=!1,this.dismissible=!1,this.loading=!1,this.textClose="Close",this.panelKeyUpHandler=t=>{"Escape"===t.key&&this.dismiss()},this.dismiss=()=>{this.dismissed=!0},this.calcitePanelDismissedChange=i(this,"calcitePanelDismissedChange",7)}dismissedHandler(){this.calcitePanelDismissedChange.emit()}async setFocus(t){var e,s;"dismiss-button"!==t?null===(s=this.containerEl)||void 0===s||s.focus():null===(e=this.dismissButtonEl)||void 0===e||e.setFocus()}renderHeaderLeadingContent(){return this.el.querySelector("[slot=header-leading-content]")?e("div",{key:"header-leading-content",class:"header-leading-content"},e("slot",{name:"header-leading-content"})):null}renderHeaderContent(){return e("div",{key:"header-content",class:"header-content"},e("slot",{name:"header-content"}))}renderHeaderTrailingContent(){const{dismiss:t,dismissible:s,textClose:n}=this,i=s?e("calcite-action",{ref:t=>this.dismissButtonEl=t,"aria-label":n,text:n,onClick:t},e("calcite-icon",{scale:"s",icon:"x"})):null,r=e("slot",{name:"header-trailing-content"});return e("div",{key:"header-trailing-content",class:"header-trailing-content"},r,i)}renderHeader(){const t=this.renderHeaderLeadingContent(),s=this.renderHeaderContent(),n=this.renderHeaderTrailingContent();return s||t||n?e("header",{class:"header"},t,s,n):null}renderFooter(){const{el:t}=this;return t.querySelector("[slot=footer]")?e("footer",{class:"footer"},e("slot",{name:"footer"})):null}renderContent(){return e("section",{class:"content-container"},e("slot",null))}render(){const{dismissed:t,disabled:n,dismissible:i,el:a,loading:h,panelKeyUpHandler:d}=this,u="rtl"===o(a);return e(s,null,e("article",{"aria-busy":h.toString(),onKeyUp:d,tabIndex:i?0:-1,hidden:i&&t,ref:t=>this.containerEl=t,class:l("container",{[c.rtl]:u})},this.renderHeader(),this.renderContent(),this.renderFooter()),e(r,{loading:h,disabled:n}))}get el(){return n(this)}static get watchers(){return{dismissed:["dismissedHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;position:relative;--calcite-app-panel-max-height-small:40vh;--calcite-app-panel-max-height-medium:60vh;--calcite-app-panel-max-height-large:80vh;--calcite-app-panel-min-header-height:calc(var(--calcite-app-icon-size) * 3)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.container{-ms-flex-align:stretch;align-items:stretch;-webkit-transition:max-height var(--calcite-app-animation-time) var(--calcite-app-easing-function);transition:max-height var(--calcite-app-animation-time) var(--calcite-app-easing-function);width:100%;height:100%;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}:host([height-scale=s]) .container{max-height:var(--calcite-app-panel-max-height-small)}:host([height-scale=m]) .container{max-height:var(--calcite-app-panel-max-height-medium)}:host([height-scale=l]) .container{max-height:var(--calcite-app-panel-max-height-large)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;min-height:var(--calcite-app-header-min-height);position:relative;z-index:2;border-bottom:1px solid var(--calcite-app-border);width:100%}.header-content{overflow:hidden;padding:var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing)}.header-leading-content,.header-trailing-content{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.header-leading-content+.header-content{padding-left:var(--calcite-app-side-spacing-half)}.content-container{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex:1 1 auto;flex:1 1 auto;background-color:var(--calcite-app-background-content);overflow:auto}.footer{border-top:1px solid var(--calcite-app-border);display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-pack:space-evenly;justify-content:space-evenly;min-height:var(--calcite-app-footer-min-height);padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}.calcite--rtl .header-leading-content+.header-content{padding-right:var(--calcite-app-side-spacing-half)}.calcite--rtl .header-trailing-content{margin-left:0;margin-right:auto}"}};export{h as calcite_flow,f as calcite_flow_item,g as calcite_panel}; \ No newline at end of file diff --git a/docs/build/p-cevhwu9e.system.entry.js b/docs/build/p-k06xi37e.system.entry.js similarity index 99% rename from docs/build/p-cevhwu9e.system.entry.js rename to docs/build/p-k06xi37e.system.entry.js index d2302261..cbdb019a 100644 --- a/docs/build/p-cevhwu9e.system.entry.js +++ b/docs/build/p-k06xi37e.system.entry.js @@ -1 +1 @@ -var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n["throw"](e))}catch(t){o(t)}}function c(e){e.done?i(e.value):r(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]1?n("footer",{class:f.pagination},n("calcite-action",{text:this.textPrevious,onClick:this.previousClicked,class:f.pagePrevious},n("calcite-icon",{scale:"s",icon:e==="ltr"?g.chevronLeft:g.chevronRight})),n("span",{class:f.pagePosition},this.textPaginationLabel+" "+(i+1)+"/"+o),n("calcite-action",{text:this.textNext,onClick:this.nextClicked,class:f.pageNext},n("calcite-icon",{scale:"s",icon:e==="ltr"?g.chevronRight:g.chevronLeft}))):null};e.prototype.render=function(){var e;var t=this,i=t.closed,o=t.direction,a=t.groupTitle,c=t.selectedIndex,l=t.textClose,u=t.total;if(u===0){return n(r,null)}return n(r,null,n("div",{class:f.container,hidden:i,"aria-hidden":i.toString(),tabIndex:0,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef},n("header",{class:f.header},n("h2",{key:c,class:f.heading},a),n("calcite-action",{text:l,onClick:this.hideTipManager,class:f.close},n("calcite-icon",{scale:"s",icon:g.close}))),n("div",{tabIndex:0,class:s(f.tipContainer,(e={},e[f.tipContainerAdvancing]=!i&&o==="advancing",e[f.tipContainerRetreating]=!i&&o==="retreating",e)),key:c},n("slot",null)),this.renderPagination()))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:true,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}\@-webkit-keyframes tip-advance{0%{opacity:0;-webkit-transform:translate3d(50px, 0, 0) scale(0.99);transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@keyframes tip-advance{0%{opacity:0;-webkit-transform:translate3d(50px, 0, 0) scale(0.99);transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@-webkit-keyframes tip-retreat{0%{opacity:0;-webkit-transform:translate3d(-50px, 0, 0) scale(0.99);transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@keyframes tip-retreat{0%{opacity:0;-webkit-transform:translate3d(-50px, 0, 0) scale(0.99);transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}:host{display:block}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host([closed]){display:none}.header .heading{padding-left:var(--calcite-app-side-spacing-half);padding-right:var(--calcite-app-side-spacing-half)}.container{overflow:hidden;position:relative;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) 0;min-height:150px}.tip-container{-webkit-animation-name:none;animation-name:none;-webkit-animation-duration:var(--calcite-app-animation-time);animation-duration:var(--calcite-app-animation-time);-webkit-animation-timing-function:var(--calcite-app-easing-function);animation-timing-function:var(--calcite-app-easing-function);height:18vh;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start}::slotted(calcite-tip-group){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}::slotted(calcite-tip){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}.tip-container--advancing{-webkit-animation-name:tip-advance;animation-name:tip-advance}.tip-container--retreating{-webkit-animation-name:tip-retreat;animation-name:tip-retreat}.pagination{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--calcite-app-cap-spacing-quarter) 0}.page-position{font-size:var(--calcite-app-font-size--1);margin:0 var(--calcite-app-side-spacing-half)}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file +var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n["throw"](e))}catch(t){o(t)}}function c(e){e.done?i(e.value):r(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]1?n("footer",{class:f.pagination},n("calcite-action",{text:this.textPrevious,onClick:this.previousClicked,class:f.pagePrevious},n("calcite-icon",{scale:"s",icon:e==="ltr"?g.chevronLeft:g.chevronRight})),n("span",{class:f.pagePosition},this.textPaginationLabel+" "+(i+1)+"/"+o),n("calcite-action",{text:this.textNext,onClick:this.nextClicked,class:f.pageNext},n("calcite-icon",{scale:"s",icon:e==="ltr"?g.chevronRight:g.chevronLeft}))):null};e.prototype.render=function(){var e;var t=this,i=t.closed,o=t.direction,a=t.groupTitle,c=t.selectedIndex,l=t.textClose,u=t.total;if(u===0){return n(r,null)}return n(r,null,n("div",{class:f.container,hidden:i,"aria-hidden":i.toString(),tabIndex:0,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef},n("header",{class:f.header},n("h2",{key:c,class:f.heading},a),n("calcite-action",{text:l,onClick:this.hideTipManager,class:f.close},n("calcite-icon",{scale:"s",icon:g.close}))),n("div",{tabIndex:0,class:s(f.tipContainer,(e={},e[f.tipContainerAdvancing]=!i&&o==="advancing",e[f.tipContainerRetreating]=!i&&o==="retreating",e)),key:c},n("slot",null)),this.renderPagination()))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:true,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}\@-webkit-keyframes tip-advance{0%{opacity:0;-webkit-transform:translate3d(50px, 0, 0) scale(0.99);transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@keyframes tip-advance{0%{opacity:0;-webkit-transform:translate3d(50px, 0, 0) scale(0.99);transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@-webkit-keyframes tip-retreat{0%{opacity:0;-webkit-transform:translate3d(-50px, 0, 0) scale(0.99);transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@keyframes tip-retreat{0%{opacity:0;-webkit-transform:translate3d(-50px, 0, 0) scale(0.99);transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}:host{display:block}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host([closed]){display:none}.header .heading{padding-left:var(--calcite-app-side-spacing-half);padding-right:var(--calcite-app-side-spacing-half)}.container{overflow:hidden;position:relative;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) 0;min-height:150px}.tip-container{-webkit-animation-name:none;animation-name:none;-webkit-animation-duration:var(--calcite-app-animation-time);animation-duration:var(--calcite-app-animation-time);-webkit-animation-timing-function:var(--calcite-app-easing-function);animation-timing-function:var(--calcite-app-easing-function);height:18vh;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start}::slotted(calcite-tip-group){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}::slotted(calcite-tip){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}.tip-container--advancing{-webkit-animation-name:tip-advance;animation-name:tip-advance}.tip-container--retreating{-webkit-animation-name:tip-retreat;animation-name:tip-retreat}.pagination{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--calcite-app-cap-spacing-quarter) 0}.page-position{font-size:var(--calcite-app-font-size--1);margin:0 var(--calcite-app-side-spacing-half)}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file diff --git a/docs/build/p-l9zhjoc8.system.entry.js b/docs/build/p-l9zhjoc8.system.entry.js deleted file mode 100644 index a1a4a5de..00000000 --- a/docs/build/p-l9zhjoc8.system.entry.js +++ /dev/null @@ -1 +0,0 @@ -var __awaiter=this&&this.__awaiter||function(e,t,i,n){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function r(e){try{l(n.next(e))}catch(t){a(t)}}function c(e){try{l(n["throw"](e))}catch(t){a(t)}}function l(e){e.done?i(e.value):s(e.value).then(r,c)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,s,a,r;return r={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,s&&(a=r[0]&2?s["return"]:r[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,r[1])).done)return a;if(s=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;s=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]{this.open=!this.open,this.calciteBlockToggle.emit()},this.calciteBlockToggle=s(this,"calciteBlockToggle",7)}render(){const{collapsible:t,disabled:s,el:i,heading:c,loading:o,open:n,summary:r,textCollapse:h,textExpand:d}=this,g=n?h:d,p=i.querySelector("[slot=icon]"),b=e("header",{class:"header"},p?e("div",{class:"icon"},e("slot",{name:"icon"})):null,e("div",{class:"title"},e("h3",{class:"heading"},c),r?e("div",{class:"summary"},r):null)),u=i.querySelector("[slot=control]"),m=e("div",{class:"header-container"},t?e("button",{"aria-label":g,class:"toggle",onClick:this.onHeaderClick,title:g},b,u?null:e("calcite-icon",{scale:"s",icon:n?"chevron-up":"chevron-down"})):b,o?e("calcite-loader",{inline:!0,"is-active":!0}):e("slot",{name:"control"}));return e(l,{tabIndex:s?-1:null},e("article",{"aria-expanded":t?n.toString():null,"aria-busy":o},m,e("div",{class:"content",hidden:!n},e(a,{loading:o,disabled:s},e("slot",null)))))}get el(){return i(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-direction:column;flex-direction:column;border-radius:var(--calcite-app-border-radius);margin:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-quarter) 0;-webkit-box-shadow:0 1px 0 var(--calcite-app-border) inset;box-shadow:0 1px 0 var(--calcite-app-border) inset}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.header{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:start;justify-content:flex-start}.header-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header-container>.header{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-three-quarters)}:host([disabled]){pointer-events:none;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]) .header-container{opacity:var(--calcite-app-disabled-opacity)}calcite-loader[inline]{color:var(--calcite-app-foreground-subtle)}.title{margin:0}.header .title .heading{padding:0 0 var(--calcite-app-cap-spacing-quarter)}.summary{font-size:var(--calcite-app-font-size--1);padding:0 0 var(--calcite-app-cap-spacing-quarter)}.toggle{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-three-quarters);background-color:transparent;border:none;cursor:pointer;display:-ms-flexbox;display:flex;font-family:var(--calcite-app-font-family);-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:0;text-align:unset;width:100%;color:var(--calcite-app-foreground)}.toggle:focus{outline-offset:var(--calcite-app-outline-inset)}.icon{margin-right:var(--calcite-app-side-spacing-third)}.toggle-icon{fill:currentColor;-ms-flex:0 0 var(--calcite-app-icon-size);flex:0 0 var(--calcite-app-icon-size);margin:0 var(--calcite-app-side-spacing-half)}.content{position:relative}::slotted(*){padding:0 var(--calcite-app-side-spacing-three-quarters) var(--calcite-app-cap-spacing-half)}::slotted([slot=control]){padding:unset;position:absolute;margin:auto;right:var(--calcite-app-side-spacing-three-quarters)}.calcite--rtl ::slotted([slot=control]){left:var(--calcite-app-side-spacing-three-quarters);right:unset}"}},h=class{constructor(e){t(this,e),this.open=!1,this.textExpand="Expand",this.textCollapse="Collapse",this.toggleDisplay="button",this.guid=`calcite-block-section-${o()}`,this.toggleSection=()=>{this.open=!this.open,this.calciteBlockSectionToggle.emit()},this.calciteBlockSectionToggle=s(this,"calciteBlockSectionToggle",7)}render(){const{el:t,guid:s,open:l,text:i,textCollapse:a,textExpand:o,toggleDisplay:r}=this,h=c(t),d=l?"caret-down":"rtl"===h?"caret-left":"caret-right",g=l?a:o,p=`${s}__label`,b="switch"===r?e("label",{"aria-label":g,class:n("toggle","toggle--switch"),id:p},i,e("calcite-switch",{"aria-labelledby":p,switched:l,onChange:this.toggleSection,scale:"s"})):e("calcite-action",{"aria-label":g,class:"toggle",onClick:this.toggleSection,text:i,textEnabled:!0,compact:!0},e("calcite-icon",{scale:"s",icon:d}));return e("section",{"aria-expanded":l.toString()},b,e("div",{class:"content",hidden:!l},e("slot",null)))}get el(){return i(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{border-bottom:1px solid var(--calcite-app-border);display:block}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:last-child){border-bottom:none}.toggle--switch{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--calcite-app-cap-spacing-half) 0;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.toggle--switch calcite-switch{margin:var(--calcite-app-cap-spacing-third) 0 0 var(--calcite-app-side-spacing-half)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:var(--calcite-app-side-spacing-half)}"}};export{r as calcite_block,h as calcite_block_section}; \ No newline at end of file diff --git a/docs/build/p-ljeroact.entry.js b/docs/build/p-ljeroact.entry.js new file mode 100644 index 00000000..8f2aec5a --- /dev/null +++ b/docs/build/p-ljeroact.entry.js @@ -0,0 +1 @@ +import{r as t,c as s,h as e,g as i}from"./p-323e88a0.js";const a=class{constructor(e){t(this,e),this.activated=!1,this.textTitle="handle",this.handleKeyDown=t=>{switch(t.key){case" ":this.activated=!this.activated;break;case"ArrowUp":case"ArrowDown":if(!this.activated)return;const s=t.key.toLowerCase().replace("arrow","");this.calciteHandleNudge.emit({handle:this.el,direction:s})}},this.handleBlur=()=>{this.activated=!1},this.calciteHandleNudge=s(this,"calciteHandleNudge",7)}async setFocus(){this.handleButton.focus()}render(){return e("span",{role:"button",tabindex:"0","aria-pressed":this.activated.toString(),class:{handle:!0,"handle--activated":this.activated},onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,title:this.textTitle,ref:t=>this.handleButton=t},e("calcite-icon",{scale:"s",icon:"drag"}))}get el(){return i(this)}static get style(){return":host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host{display:inline-block}.handle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--calcite-app-cap-spacing-minimum);padding:var(--calcite-app-cap-spacing-three-quarters) var(--calcite-app-side-spacing-half);background-color:var(--calcite-app-background);border:none;color:var(--calcite-app-foreground-subtle);line-height:0;cursor:move}.handle:focus{outline-offset:var(--calcite-app-outline-inset)}.handle:focus{outline-offset:var(--calcite-app-outline-inset)}.handle--activated{background-color:var(--calcite-app-background-active);color:var(--calcite-app-foreground-active)}"}};export{a as calcite_handle}; \ No newline at end of file diff --git a/docs/build/p-md5upvmx.entry.js b/docs/build/p-md5upvmx.entry.js deleted file mode 100644 index 6e15af6e..00000000 --- a/docs/build/p-md5upvmx.entry.js +++ /dev/null @@ -1,7 +0,0 @@ -import{r as t,c as n,h as i,g as e}from"./p-24078e83.js";import"./p-6b406261.js";import{a as r}from"./p-cd1553e2.js";import"./p-4d533d6f.js";import"./p-30ecf6c3.js";import{s as o,L as a}from"./p-f4e8b3a1.js"; -/**! - * Sortable 1.10.2 - * @author RubaXa - * @author owenm - * @license MIT - */function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function l(){return(l=Object.assign||function(t){for(var n=1;n=0||(r[i]=t[i]);return r}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function f(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var d=f(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=f(/Edge/i),m=f(/firefox/i),p=f(/safari/i)&&!f(/chrome/i)&&!f(/android/i),g=f(/iP(ad|od|hone)/i),b=f(/chrome/i)&&f(/android/i),w={capture:!1,passive:!1};function E(t,n,i){t.addEventListener(n,i,!d&&w)}function y(t,n,i){t.removeEventListener(n,i,!d&&w)}function I(t,n){if(n){if(">"===n[0]&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch(i){return!1}return!1}}function S(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function T(t,n,i,e){if(t){i=i||document;do{if(null!=n&&(">"===n[0]?t.parentNode===i&&I(t,n):I(t,n))||e&&t===i)return t;if(t===i)break}while(t=S(t))}return null}var M,O=/\s+/g;function x(t,n,i){if(t&&n)if(t.classList)t.classList[i?"add":"remove"](n);else{var e=(" "+t.className+" ").replace(O," ").replace(" "+n+" "," ");t.className=(e+(i?" "+n:"")).replace(O," ")}}function D(t,n,i){var e=t&&t.style;if(e){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===n?i:i[n];n in e||-1!==n.indexOf("webkit")||(n="-webkit-"+n),e[n]=i+("string"==typeof i?"":"px")}}function _(t,n){var i="";if("string"==typeof t)i=t;else do{var e=D(t,"transform");e&&"none"!==e&&(i=e+" "+i)}while(!n&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function C(t,n,i){if(t){var e=t.getElementsByTagName(n),r=0,o=e.length;if(i)for(;r=o:r<=o))return e;if(e===k())break;e=F(e,!1)}return!1}function L(t,n,i){for(var e=0,r=0,o=t.children;r2&&void 0!==arguments[2]?arguments[2]:{},e=i.evt,r=h(i,["evt"]);Y.pluginEvent.bind(Nt)(t,n,c({dragEl:K,parentEl:Z,ghostEl:q,rootEl:J,nextEl:Q,lastDownEl:tt,cloneEl:nt,cloneHidden:it,dragStarted:mt,putSortable:ut,activeSortable:Nt.active,originalEvent:e,oldIndex:et,oldDraggableIndex:ot,newIndex:rt,newDraggableIndex:at,hideGhostForTarget:zt,unhideGhostForTarget:Ht,cloneNowHidden:function(){it=!0},cloneNowShown:function(){it=!1},dispatchSortableEvent:function(t){$({sortable:n,name:t,originalEvent:e})}},r))};function $(t){!function(t){var n=t.sortable,i=t.rootEl,e=t.name,r=t.targetEl,o=t.cloneEl,a=t.toEl,s=t.fromEl,u=t.oldIndex,l=t.newIndex,h=t.oldDraggableIndex,f=t.newDraggableIndex,m=t.originalEvent,p=t.putSortable,g=t.extraEventProperties;if(n=n||i&&i[R]){var b,w=n.options,E="on"+e.charAt(0).toUpperCase()+e.substr(1);!window.CustomEvent||d||v?(b=document.createEvent("Event")).initEvent(e,!0,!0):b=new CustomEvent(e,{bubbles:!0,cancelable:!0}),b.to=a||i,b.from=s||i,b.item=r||i,b.clone=o,b.oldIndex=u,b.newIndex=l,b.oldDraggableIndex=h,b.newDraggableIndex=f,b.originalEvent=m,b.pullMode=p?p.lastPutMode:void 0;var y=c({},g,Y.getEventProperties(e,n));for(var I in y)b[I]=y[I];i&&i.dispatchEvent(b),w[E]&&w[E].call(n,b)}}(c({putSortable:ut,cloneEl:nt,targetEl:K,rootEl:J,oldIndex:et,oldDraggableIndex:ot,newIndex:rt,newDraggableIndex:at},t))}var K,Z,q,J,Q,tt,nt,it,et,rt,ot,at,st,ut,lt,ct,ht,ft,dt,vt,mt,pt,gt,bt,wt,Et=!1,yt=!1,It=[],St=!1,Tt=!1,Mt=[],Ot=!1,xt=[],Dt="undefined"!=typeof document,_t=g,Ct=v||d?"cssFloat":"float",kt=Dt&&!b&&!g&&"draggable"in document.createElement("div"),At=function(){if(Dt){if(d)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),jt=function(t,n){var i=D(t),e=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=L(t,0,n),o=L(t,1,n),a=r&&D(r),s=o&&D(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(r).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(o).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&a.float&&"none"!==a.float?!o||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=e&&"none"===i[Ct]||o&&"none"===i[Ct]&&u+l>e)?"vertical":"horizontal"},Lt=function(t){function n(t,i){return function(e,r,o,a){if(null==t&&(i||e.options.group.name&&r.options.group.name&&e.options.group.name===r.options.group.name))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return n(t(e,r,o,a),i)(e,r,o,a);var s=(i?e:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var i={},e=t.group;e&&"object"==s(e)||(e={name:e}),i.name=e.name,i.checkPull=n(e.pull,!0),i.checkPut=n(e.put),i.revertClone=e.revertClone,t.group=i},zt=function(){!At&&q&&D(q,"display","none")},Ht=function(){!At&&q&&D(q,"display","")};Dt&&document.addEventListener("click",(function(t){if(yt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),yt=!1,!1}),!0);var Ut=function(t){if(K){var n=(r=(t=t.touches?t.touches[0]:t).clientX,o=t.clientY,It.some((function(t){if(!z(t)){var n=A(t),i=t[R].options.emptyInsertThreshold;return i&&r>=n.left-i&&r<=n.right+i&&o>=n.top-i&&o<=n.bottom+i?a=t:void 0}})),a);if(n){var i={};for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[R]._onDragOver(i)}}var r,o,a},Ft=function(t){K&&K.parentNode[R]._isOutsideThisEl(t.target)};function Nt(t,n){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=l({},n),t[R]=this;var i,e,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return jt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,n){t.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Nt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in Y.initializePlugins(this,t,r),r)!(o in n)&&(n[o]=r[o]);for(var a in Lt(n),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!n.forceFallback&&kt,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?E(t,"pointerdown",this._onTapStart):(E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),It.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),l(this,(e=[],{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==D(t,"display")&&t!==Nt.ghost){e.push({target:t,rect:A(t)});var n=c({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=_(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,n){for(var i in t)if(t.hasOwnProperty(i))for(var e in n)if(n.hasOwnProperty(e)&&n[e]===t[i][e])return Number(i);return-1}(e,{target:t}),1)},animateAll:function(t){var n=this;if(!this.options.animation)return clearTimeout(i),void("function"==typeof t&&t());var r=!1,o=0;e.forEach((function(t){var i=0,e=t.target,a=e.fromRect,s=A(e),u=e.prevFromRect,l=e.prevToRect,c=t.rect,h=_(e,!0);h&&(s.top-=h.f,s.left-=h.e),e.toRect=s,e.thisAnimationDuration&&N(u,s)&&!N(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(i=function(t,n,i,e){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*e.animation}(c,u,l,n.options)),N(s,a)||(e.prevFromRect=a,e.prevToRect=s,i||(i=n.options.animation),n.animate(e,c,s,i)),i&&(r=!0,o=Math.max(o,i),clearTimeout(e.animationResetTimer),e.animationResetTimer=setTimeout((function(){e.animationTime=0,e.prevFromRect=null,e.fromRect=null,e.prevToRect=null,e.thisAnimationDuration=null}),i),e.thisAnimationDuration=i)})),clearTimeout(i),r?i=setTimeout((function(){"function"==typeof t&&t()}),o):"function"==typeof t&&t(),e=[]},animate:function(t,n,i,e){if(e){D(t,"transition",""),D(t,"transform","");var r=_(this.el),o=(n.left-i.left)/(r&&r.a||1),a=(n.top-i.top)/(r&&r.d||1);t.animatingX=!!o,t.animatingY=!!a,D(t,"transform","translate3d("+o+"px,"+a+"px,0)"),D(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),D(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){D(t,"transition",""),D(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}))}function Pt(t,n,i,e,r,o,a,s){var u,l,c=t[R],h=c.options.onMove;return!window.CustomEvent||d||v?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=n,u.from=t,u.dragged=i,u.draggedRect=e,u.related=r||n,u.relatedRect=o||A(n),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),h&&(l=h.call(c,u,a)),l}function Bt(t){t.draggable=!1}function Gt(){Ot=!1}function Rt(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,i=n.length,e=0;i--;)e+=n.charCodeAt(i);return e.toString(36)}function Vt(t){return setTimeout(t,0)}function Xt(t){return clearTimeout(t)}Nt.prototype={constructor:Nt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(pt=null)},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,K):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,e=this.options,r=e.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=e.filter;if(function(t){xt.length=0;for(var n=t.getElementsByTagName("input"),i=n.length;i--;){var e=n[i];e.checked&&xt.push(e)}}(i),!K&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||e.disabled||u.isContentEditable||(s=T(s,e.draggable,i,!1))&&s.animated||tt===s)){if(et=H(s),ot=H(s,e.draggable),"function"==typeof l){if(l.call(this,t,s,this))return $({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:i,fromEl:i}),W("filter",n,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(e){if(e=T(u,e.trim(),i,!1))return $({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:i,toEl:i}),W("filter",n,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());e.handle&&!T(u,e.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,n,i){var e,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(i&&!K&&i.parentNode===o){var u=A(i);if(J=o,Z=(K=i).parentNode,Q=K.nextSibling,tt=i,st=a.group,Nt.dragged=K,dt=(lt={target:K,clientX:(n||t).clientX,clientY:(n||t).clientY}).clientX-u.left,vt=lt.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,K.style["will-change"]="all",e=function(){W("delayEnded",r,{evt:t}),Nt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!m&&r.nativeDraggable&&(K.draggable=!0),r._triggerDragStart(t,n),$({sortable:r,name:"choose",originalEvent:t}),x(K,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){C(K,t.trim(),Bt)})),E(s,"dragover",Ut),E(s,"mousemove",Ut),E(s,"touchmove",Ut),E(s,"mouseup",r._onDrop),E(s,"touchend",r._onDrop),E(s,"touchcancel",r._onDrop),m&&this.nativeDraggable&&(this.options.touchStartThreshold=4,K.draggable=!0),W("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!n||this.nativeDraggable&&(v||d))e();else{if(Nt.eventCanceled)return void this._onDrop();E(s,"mouseup",r._disableDelayedDrag),E(s,"touchend",r._disableDelayedDrag),E(s,"touchcancel",r._disableDelayedDrag),E(s,"mousemove",r._delayedDragTouchMoveHandler),E(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&E(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(e,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){K&&Bt(K),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._disableDelayedDrag),y(t,"touchend",this._disableDelayedDrag),y(t,"touchcancel",this._disableDelayedDrag),y(t,"mousemove",this._delayedDragTouchMoveHandler),y(t,"touchmove",this._delayedDragTouchMoveHandler),y(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||"touch"==t.pointerType&&t,!this.nativeDraggable||n?E(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(E(K,"dragend",this),E(J,"dragstart",this._onDragStart));try{document.selection?Vt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(t,n){if(Et=!1,J&&K){W("dragStarted",this,{evt:n}),this.nativeDraggable&&E(document,"dragover",Ft);var i=this.options;!t&&x(K,i.dragClass,!1),x(K,i.ghostClass,!0),Nt.active=this,t&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ct){this._lastX=ct.clientX,this._lastY=ct.clientY,zt();for(var t=document.elementFromPoint(ct.clientX,ct.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ct.clientX,ct.clientY))!==n;)n=t;if(K.parentNode[R]._isOutsideThisEl(t),n)do{if(n[R]&&n[R]._onDragOver({clientX:ct.clientX,clientY:ct.clientY,target:t,rootEl:n})&&!this.options.dragoverBubble)break;t=n}while(n=n.parentNode);Ht()}},_onTouchMove:function(t){if(lt){var n=this.options,i=n.fallbackTolerance,e=n.fallbackOffset,r=t.touches?t.touches[0]:t,o=q&&_(q,!0),a=q&&o&&o.a,s=q&&o&&o.d,u=_t&&wt&&U(wt),l=(r.clientX-lt.clientX+e.x)/(a||1)+(u?u[0]-Mt[0]:0)/(a||1),c=(r.clientY-lt.clientY+e.y)/(s||1)+(u?u[1]-Mt[1]:0)/(s||1);if(!Nt.active&&!Et){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))e.right+10||t.clientX<=e.right&&t.clientY>e.bottom&&t.clientX>=e.left:t.clientX>e.right&&t.clientY>e.top||t.clientX<=e.right&&t.clientY>e.bottom+10}(t,r,this)&&!p.animated){if(p===K)return F(!1);if(p&&o===t.target&&(a=p),a&&(i=A(a)),!1!==Pt(J,o,K,n,a,i,t,!!a))return U(),o.appendChild(K),Z=o,N(),F(!0)}else if(a.parentNode===o){i=A(a);var g,b,w,E=K.parentNode!==o,y=!function(t,n,i){var e=i?t.left:t.top,r=i?n.left:n.top;return e===r||(i?t.right:t.bottom)===(i?n.right:n.bottom)||e+(i?t.width:t.height)/2===r+(i?n.width:n.height)/2}(K.animated&&K.toRect||n,a.animated&&a.toRect||i,r),I=r?"top":"left",S=j(a,"top","top")||j(K,"top","top"),M=S?S.scrollTop:void 0;if(pt!==a&&(b=i[I],St=!1,Tt=!y&&s.invertSwap||E),0!==(g=function(t,n,i,e,r,o,a,s){var u=e?t.clientY:t.clientX,l=e?i.height:i.width,c=e?i.top:i.left,h=e?i.bottom:i.right,f=!1;if(!a)if(s&&btc+l*o/2:uh-bt)return-gt}else if(u>c+l*(1-r)/2&&uh-l*o/2)?u>c+l/2?1:-1:0}(t,a,i,r,y?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Tt,pt===a))){var O=H(K);do{w=Z.children[O-=g]}while(w&&("none"===D(w,"display")||w===q))}if(0===g||w===a)return F(!1);pt=a,gt=g;var _=a.nextElementSibling,C=!1,k=Pt(J,o,K,n,a,i,t,C=1===g);if(!1!==k)return 1!==k&&-1!==k||(C=1===k),Ot=!0,setTimeout(Gt,30),U(),C&&!_?o.appendChild(K):a.parentNode.insertBefore(K,C?_:a),S&&B(S,0,M-S.scrollTop),Z=K.parentNode,void 0===b||Tt||(bt=Math.abs(b-A(a)[I])),N(),F(!0)}if(o.contains(K))return F(!1)}return!1}function L(s,u){W(s,v,c({evt:t,isOwner:h,axis:r?"vertical":"horizontal",revert:e,dragRect:n,targetRect:i,canSort:f,fromSortable:d,target:a,completed:F,onMove:function(i,e){return Pt(J,o,K,n,i,A(i),t,e)},changed:N},u))}function U(){L("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function F(n){return L("dragOverCompleted",{insertion:n}),n&&(h?l._hideClone():l._showClone(v),v!==d&&(x(K,ut?ut.options.ghostClass:l.options.ghostClass,!1),x(K,s.ghostClass,!0)),ut!==v&&v!==Nt.active?ut=v:v===Nt.active&&ut&&(ut=null),d===v&&(v._ignoreWhileAnimating=a),v.animateAll((function(){L("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===K&&!K.animated||a===o&&!a.animated)&&(pt=null),s.dragoverBubble||t.rootEl||a===document||(K.parentNode[R]._isOutsideThisEl(t.target),!n&&Ut(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function N(){rt=H(K),at=H(K,s.draggable),$({sortable:v,name:"change",toEl:o,newIndex:rt,newDraggableIndex:at,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){y(document,"mousemove",this._onTouchMove),y(document,"touchmove",this._onTouchMove),y(document,"pointermove",this._onTouchMove),y(document,"dragover",Ut),y(document,"mousemove",Ut),y(document,"touchmove",Ut)},_offUpEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._onDrop),y(t,"touchend",this._onDrop),y(t,"pointerup",this._onDrop),y(t,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;rt=H(K),at=H(K,i.draggable),W("drop",this,{evt:t}),Z=K&&K.parentNode,rt=H(K),at=H(K,i.draggable),Nt.eventCanceled?this._nulling():(Et=!1,Tt=!1,St=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Xt(this.cloneId),Xt(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&D(document.body,"user-select",""),D(K,"transform",""),t&&(mt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),q&&q.parentNode&&q.parentNode.removeChild(q),(J===Z||ut&&"clone"!==ut.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),K&&(this.nativeDraggable&&y(K,"dragend",this),Bt(K),K.style["will-change"]="",mt&&!Et&&x(K,ut?ut.options.ghostClass:this.options.ghostClass,!1),x(K,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:t}),J!==Z?(rt>=0&&($({rootEl:Z,name:"add",toEl:Z,fromEl:J,originalEvent:t}),$({sortable:this,name:"remove",toEl:Z,originalEvent:t}),$({rootEl:Z,name:"sort",toEl:Z,fromEl:J,originalEvent:t}),$({sortable:this,name:"sort",toEl:Z,originalEvent:t})),ut&&ut.save()):rt!==et&&rt>=0&&($({sortable:this,name:"update",toEl:Z,originalEvent:t}),$({sortable:this,name:"sort",toEl:Z,originalEvent:t})),Nt.active&&(null!=rt&&-1!==rt||(rt=et,at=ot),$({sortable:this,name:"end",toEl:Z,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){W("nulling",this),J=K=Z=q=Q=nt=tt=it=lt=ct=mt=rt=at=et=ot=pt=gt=ut=st=Nt.dragged=Nt.ghost=Nt.clone=Nt.active=null,xt.forEach((function(t){t.checked=!0})),xt.length=ht=ft=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":K&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,n=[],i=this.el.children,e=0,r=i.length,o=this.options;e{const n=t.composedPath().find(t=>{var n;return null===(n=t.dataset)||void 0===n?void 0:n.jsHandle}),i=t.composedPath().find(t=>{var n;return"calcite-value-list-item"===(null===(n=t.tagName)||void 0===n?void 0:n.toLowerCase())});if(!n||!i.handleActivated)return;const e=this.items.length-1,r=i.value,o=this.items.findIndex(t=>t.value===r);let a,s=!1;switch(t.key){case"ArrowUp":t.preventDefault(),0===o?s=!0:a=o-1;break;case"ArrowDown":t.preventDefault(),o===e?a=0:o===e-1?s=!0:a=o+2;break;default:return}s?i.parentElement.appendChild(i):i.parentElement.insertBefore(i,this.items[a]),n.focus(),i.handleActivated=!0},this.calciteListChange=n(this,"calciteListChange",7),this.calciteListOrderChange=n(this,"calciteListOrderChange",7)}connectedCallback(){ln.call(this)}componentDidLoad(){this.setUpDragAndDrop(),cn.call(this)}componentDidUnload(){hn.call(this),this.cleanUpDragAndDrop()}calciteListItemChangeHandler(t){fn.call(this,t)}calciteListItemPropsUpdatedHandler(t){t.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(t){dn.call(this,t)}setUpItems(){vn.call(this,"calcite-value-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpDragAndDrop(){this.dragEnabled&&this.sortables.push(Nt.create(this.el,{group:this.guid,handle:".handle",draggable:"calcite-value-list-item",onUpdate:()=>{this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map(t=>t.value);this.calciteListOrderChange.emit(t)}}))}cleanUpDragAndDrop(){this.dragEnabled&&(this.sortables.forEach(t=>{t.destroy()}),this.sortables=[])}async getSelectedItems(){return this.selectedValues}getIconType(){let t=null;return this.dragEnabled&&(t=sn.grip),t}render(){return i(a,{props:this,onKeyDown:this.keyDownHandler})}get el(){return e(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-app-background-clear);display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:column;flex-flow:column;position:relative}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}header{background-color:var(--calcite-app-background);display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;margin-bottom:var(--calcite-app-cap-spacing-quarter)}header.sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}slot[name=menu-actions]::slotted(calcite-action){padding:0 var(--calcite-app-side-spacing-half)}calcite-filter{-webkit-box-shadow:0 1px 0 var(--calcite-app-border) inset;box-shadow:0 1px 0 var(--calcite-app-border) inset}"}};export{wn as calcite_value_list}; \ No newline at end of file diff --git a/docs/build/p-rdw78vyr.system.entry.js b/docs/build/p-mqb3bw3f.system.entry.js similarity index 99% rename from docs/build/p-rdw78vyr.system.entry.js rename to docs/build/p-mqb3bw3f.system.entry.js index e0b888d9..ba06544a 100644 --- a/docs/build/p-rdw78vyr.system.entry.js +++ b/docs/build/p-mqb3bw3f.system.entry.js @@ -1 +1 @@ -var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]1;var r=e&&t>1;if(!r&&!n){return null}return t1;e.hidden=e!==o}))}if(a){a.menuOpen=false}n.flows=t;if(r!==i){var s=n.getFlowDirection(r,i);n.flowCount=i;n.flowDirection=s}};this.flowItemObserver=new MutationObserver(this.updateFlowProps)}e.prototype.back=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){e=this.el.querySelector("calcite-flow-item:last-child");if(!e){return[2]}t=e.beforeBack?e.beforeBack:function(){return Promise.resolve()};return[2,t.call(e).then((function(){e.remove();return e}))]}))}))};e.prototype.componentWillLoad=function(){this.updateFlowProps()};e.prototype.componentDidLoad=function(){this.flowItemObserver.observe(this.el,{childList:true,subtree:true})};e.prototype.componentDidUnload=function(){this.flowItemObserver.disconnect()};e.prototype.handleCalciteFlowItemBackClick=function(){this.back()};e.prototype.render=function(){var e;var t=this,i=t.flowDirection,o=t.flowCount;var a=(e={},e[d.frameAdvancing]=i==="advancing",e[d.frameRetreating]=i==="retreating",e);return n(r,null,n("div",{key:o,class:l(d.frame,a)},n("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;width:100%;height:100%;overflow:hidden;position:relative}:host .frame{-ms-flex-align:stretch;align-items:stretch;width:100%;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;position:relative}:host .frame--advancing{-webkit-animation:calcite-flow-item-advance var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-flow-item-advance var(--calcite-app-animation-time) var(--calcite-app-easing-function)}:host .frame--retreating{-webkit-animation:calcite-flow-item-retreat var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-flow-item-retreat var(--calcite-app-animation-time) var(--calcite-app-easing-function)}\@-webkit-keyframes calcite-flow-item-advance{0%{opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@keyframes calcite-flow-item-advance{0%{opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@-webkit-keyframes calcite-flow-item-retreat{0%{opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@keyframes calcite-flow-item-retreat{0%{opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}"},enumerable:true,configurable:true});return e}());var h=["calcite-pick-list","calcite-value-list"];var p={header:"header-content",heading:"heading",summary:"summary",backButton:"back-button",footerActions:"footer-actions",headerActions:"header-actions",singleActionContainer:"single-action-container",menuContainer:"menu-container",menuButton:"menu-button",menu:"menu",menuOpen:"menu--open"};var v={back:"Back",open:"Open",close:"Close"};var m={menuActions:"menu-actions",footerActions:"footer-actions"};var y={menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"};var g={container:"container",header:"header",headerLeadingContent:"header-leading-content",headerContent:"header-content",headerTrailingContent:"header-trailing-content",contentContainer:"content-container",footer:"footer"};var b={close:"Close"};var w={close:"x"};var C={headerContent:"header-content",headerLeadingContent:"header-leading-content",headerTrailingContent:"header-trailing-content",footer:"footer"};function k(e,t){return(e+t)%t}var A=["ArrowUp","ArrowDown"];var B=e("calcite_flow_item",function(){function e(e){var n=this;t(this,e);this.disabled=false;this.loading=false;this.menuOpen=false;this.showBackButton=false;this.textBack=v.back;this.textClose=v.close;this.textOpen=v.open;this.toggleMenuOpen=function(){n.menuOpen=!n.menuOpen};this.backButtonClick=function(){n.calciteFlowItemBackClick.emit()};this.menuButtonKeyDown=function(e){var t=e.key;var r=n.menuOpen;if(!n.isValidKey(t,A)){return}var i=n.queryActions();var o=i.length;if(!o){return}e.preventDefault();if(!r){n.menuOpen=true}if(t==="ArrowUp"){var a=i[o-1];s(a)}if(t==="ArrowDown"){var c=i[0];s(c)}};this.menuActionsKeydown=function(e){var t=e.key,r=e.target;if(!n.isValidKey(t,A)){return}var i=n.queryActions();var o=i.length;var a=i.indexOf(r);if(!o||a===-1){return}e.preventDefault();if(t==="ArrowUp"){var c=k(a-1,o);var l=i[c];s(l)}if(t==="ArrowDown"){var c=k(a+1,o);var u=i[c];s(u)}};this.menuActionsContainerKeyDown=function(e){var t=e.key;if(t==="Escape"){n.menuOpen=false}};this.calciteFlowItemBackClick=o(this,"calciteFlowItemBackClick",7)}e.prototype.queryActions=function(){return Array.from(this.el.querySelectorAll("[slot="+m.menuActions+"] calcite-action"))};e.prototype.isValidKey=function(e,t){return!!t.find((function(t){return t===e}))};e.prototype.renderBackButton=function(e){var t=this,r=t.showBackButton,i=t.textBack,o=t.backButtonClick;var a=e?y.backRight:y.backLeft;return r?n("calcite-action",{slot:C.headerLeadingContent,key:"back-button","aria-label":i,text:i,class:p.backButton,onClick:o},n("calcite-icon",{scale:"s",filled:true,icon:a})):null};e.prototype.renderMenuButton=function(){var e=this,t=e.menuOpen,r=e.textOpen,i=e.textClose;var o=t?i:r;return n("calcite-action",{class:p.menuButton,"aria-label":o,text:o,onClick:this.toggleMenuOpen,onKeyDown:this.menuButtonKeyDown},n("calcite-icon",{scale:"s",icon:y.menu}))};e.prototype.renderMenuActions=function(){var e;var t=this.menuOpen;return n("div",{class:l(p.menu,(e={},e[p.menuOpen]=t,e)),onKeyDown:this.menuActionsKeydown},n("slot",{name:m.menuActions}))};e.prototype.renderFooterActions=function(){var e=!!this.el.querySelector("[slot="+m.footerActions+"]");return e?n("div",{slot:C.footer,class:p.footerActions},n("slot",{name:m.footerActions})):null};e.prototype.renderSingleActionContainer=function(){return n("div",{class:p.singleActionContainer},n("slot",{name:m.menuActions}))};e.prototype.renderMenuActionsContainer=function(){return n("div",{class:p.menuContainer,onKeyDown:this.menuActionsContainerKeyDown},this.renderMenuButton(),this.renderMenuActions())};e.prototype.renderHeaderActions=function(){var e=this.el.querySelector("[slot="+m.menuActions+"]");var t=e&&e.closest(h.join(","));var r=!!e&&!t;var i=r?e.childElementCount:0;var o=i===1?this.renderSingleActionContainer():r?this.renderMenuActionsContainer():null;return o?n("div",{slot:C.headerTrailingContent,class:p.headerActions},o):null};e.prototype.renderHeading=function(){var e=this.heading;return e?n("h2",{class:p.heading,slot:C.headerContent},e):null};e.prototype.renderSummary=function(){var e=this.summary;return e?n("span",{class:p.summary},e):null};e.prototype.renderHeader=function(){var e=this.renderHeading();var t=this.renderSummary();return e||t?n("div",{class:p.header,slot:C.headerContent},e,t):null};e.prototype.render=function(){var e;var t=this.el;var i=c(t)==="rtl";return n(r,null,n("calcite-panel",{loading:this.loading,disabled:this.disabled,"height-scale":this.heightScale,class:l((e={},e[u.rtl]=i,e))},this.renderBackButton(i),this.renderHeader(),this.renderHeaderActions(),n("slot",null),this.renderFooterActions()))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{background-color:var(--calcite-app-background-content);display:-ms-flexbox;display:flex;height:100%;width:100%}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-panel{width:100%;height:100%}.header-content{display:block}.header-content .heading{font-size:var(--calcite-app-font-size-1);margin:0 0 var(--calcite-app-cap-spacing-quarter)}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-app-foreground-subtle)}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.header-actions,.menu-container,.single-action-container{display:-ms-flexbox;display:flex}.menu{position:absolute;top:100%;z-index:1;background-color:var(--calcite-app-background);-webkit-box-shadow:var(--calcite-app-shadow-0);box-shadow:var(--calcite-app-shadow-0);padding:0;left:auto;min-width:var(--calcite-app-menu-min-width);right:var(--calcite-app-menu-offset);visibility:visible;-ms-flex-flow:column nowrap;flex-flow:column nowrap;border:1px solid var(--calcite-app-border);-webkit-animation:calcite-app-fade-in-down var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);animation:calcite-app-fade-in-down var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);display:none}.calcite--rtl .menu{left:var(--calcite-app-menu-offset);right:auto}.menu--open{display:block}.footer-actions{display:-ms-flexbox;display:flex;width:100%}"},enumerable:true,configurable:true});return e}());var O=e("calcite_panel",function(){function e(e){var n=this;t(this,e);this.dismissed=false;this.disabled=false;this.dismissible=false;this.loading=false;this.textClose=b.close;this.panelKeyUpHandler=function(e){if(e.key==="Escape"){n.dismiss()}};this.dismiss=function(){n.dismissed=true};this.calcitePanelDismissedChange=o(this,"calcitePanelDismissedChange",7)}e.prototype.dismissedHandler=function(){this.calcitePanelDismissedChange.emit()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){if(e==="dismiss-button"){(t=this.dismissButtonEl)===null||t===void 0?void 0:t.setFocus();return[2]}(n=this.containerEl)===null||n===void 0?void 0:n.focus();return[2]}))}))};e.prototype.renderHeaderLeadingContent=function(){var e=this.el.querySelector("[slot="+C.headerLeadingContent+"]");return e?n("div",{key:"header-leading-content",class:g.headerLeadingContent},n("slot",{name:C.headerLeadingContent})):null};e.prototype.renderHeaderContent=function(){return n("div",{key:"header-content",class:g.headerContent},n("slot",{name:C.headerContent}))};e.prototype.renderHeaderTrailingContent=function(){var e=this;var t=this,r=t.dismiss,i=t.dismissible,o=t.textClose;var a=i?n("calcite-action",{ref:function(t){return e.dismissButtonEl=t},"aria-label":o,text:o,onClick:r},n("calcite-icon",{scale:"s",icon:w.close})):null;var s=n("slot",{name:C.headerTrailingContent});return n("div",{key:"header-trailing-content",class:g.headerTrailingContent},s,a)};e.prototype.renderHeader=function(){var e=this.renderHeaderLeadingContent();var t=this.renderHeaderContent();var r=this.renderHeaderTrailingContent();var i=t||e||r;return i?n("header",{class:g.header},e,t,r):null};e.prototype.renderFooter=function(){var e=this.el;var t=e.querySelector("[slot="+C.footer+"]");return t?n("footer",{class:g.footer},n("slot",{name:C.footer})):null};e.prototype.renderContent=function(){return n("section",{class:g.contentContainer},n("slot",null))};e.prototype.render=function(){var e;var t=this;var i=this,o=i.dismissed,s=i.disabled,d=i.dismissible,f=i.el,h=i.loading,p=i.panelKeyUpHandler;var v=c(f)==="rtl";return n(r,null,n("article",{"aria-busy":h.toString(),onKeyUp:p,tabIndex:d?0:-1,hidden:d&&o,ref:function(e){return t.containerEl=e},class:l(g.container,(e={},e[u.rtl]=v,e))},this.renderHeader(),this.renderContent(),this.renderFooter()),n(a,{loading:h,disabled:s}))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dismissed:["dismissedHandler"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;position:relative;--calcite-app-panel-max-height-small:40vh;--calcite-app-panel-max-height-medium:60vh;--calcite-app-panel-max-height-large:80vh;--calcite-app-panel-min-header-height:calc(var(--calcite-app-icon-size) * 3)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.container{-ms-flex-align:stretch;align-items:stretch;-webkit-transition:max-height var(--calcite-app-animation-time) var(--calcite-app-easing-function);transition:max-height var(--calcite-app-animation-time) var(--calcite-app-easing-function);width:100%;height:100%;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}:host([height-scale=s]) .container{max-height:var(--calcite-app-panel-max-height-small)}:host([height-scale=m]) .container{max-height:var(--calcite-app-panel-max-height-medium)}:host([height-scale=l]) .container{max-height:var(--calcite-app-panel-max-height-large)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;min-height:var(--calcite-app-header-min-height);position:relative;z-index:2;border-bottom:1px solid var(--calcite-app-border);width:100%}.header-content{overflow:hidden;padding:var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing)}.header-leading-content,.header-trailing-content{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.header-leading-content+.header-content{padding-left:var(--calcite-app-side-spacing-half)}.content-container{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex:1 1 auto;flex:1 1 auto;background-color:var(--calcite-app-background-content);overflow:auto}.footer{border-top:1px solid var(--calcite-app-border);display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-pack:space-evenly;justify-content:space-evenly;min-height:var(--calcite-app-footer-min-height);padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}.calcite--rtl .header-leading-content+.header-content{padding-right:var(--calcite-app-side-spacing-half)}.calcite--rtl .header-trailing-content{margin-left:0;margin-right:auto}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file +var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]1;var r=e&&t>1;if(!r&&!n){return null}return t1;e.hidden=e!==o}))}if(a){a.menuOpen=false}n.flows=t;if(r!==i){var s=n.getFlowDirection(r,i);n.flowCount=i;n.flowDirection=s}};this.flowItemObserver=new MutationObserver(this.updateFlowProps)}e.prototype.back=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){e=this.el.querySelector("calcite-flow-item:last-child");if(!e){return[2]}t=e.beforeBack?e.beforeBack:function(){return Promise.resolve()};return[2,t.call(e).then((function(){e.remove();return e}))]}))}))};e.prototype.componentWillLoad=function(){this.updateFlowProps()};e.prototype.componentDidLoad=function(){this.flowItemObserver.observe(this.el,{childList:true,subtree:true})};e.prototype.componentDidUnload=function(){this.flowItemObserver.disconnect()};e.prototype.handleCalciteFlowItemBackClick=function(){this.back()};e.prototype.render=function(){var e;var t=this,i=t.flowDirection,o=t.flowCount;var a=(e={},e[d.frameAdvancing]=i==="advancing",e[d.frameRetreating]=i==="retreating",e);return n(r,null,n("div",{key:o,class:l(d.frame,a)},n("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;width:100%;height:100%;overflow:hidden;position:relative}:host .frame{-ms-flex-align:stretch;align-items:stretch;width:100%;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;position:relative}:host .frame--advancing{-webkit-animation:calcite-flow-item-advance var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-flow-item-advance var(--calcite-app-animation-time) var(--calcite-app-easing-function)}:host .frame--retreating{-webkit-animation:calcite-flow-item-retreat var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-flow-item-retreat var(--calcite-app-animation-time) var(--calcite-app-easing-function)}\@-webkit-keyframes calcite-flow-item-advance{0%{opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@keyframes calcite-flow-item-advance{0%{opacity:0.5;-webkit-transform:translate3d(50px, 0, 0);transform:translate3d(50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@-webkit-keyframes calcite-flow-item-retreat{0%{opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}\@keyframes calcite-flow-item-retreat{0%{opacity:0.5;-webkit-transform:translate3d(-50px, 0, 0);transform:translate3d(-50px, 0, 0)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}"},enumerable:true,configurable:true});return e}());var h=["calcite-pick-list","calcite-value-list"];var p={header:"header-content",heading:"heading",summary:"summary",backButton:"back-button",footerActions:"footer-actions",headerActions:"header-actions",singleActionContainer:"single-action-container",menuContainer:"menu-container",menuButton:"menu-button",menu:"menu",menuOpen:"menu--open"};var v={back:"Back",open:"Open",close:"Close"};var m={menuActions:"menu-actions",footerActions:"footer-actions"};var y={menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"};var g={container:"container",header:"header",headerLeadingContent:"header-leading-content",headerContent:"header-content",headerTrailingContent:"header-trailing-content",contentContainer:"content-container",footer:"footer"};var b={close:"Close"};var w={close:"x"};var C={headerContent:"header-content",headerLeadingContent:"header-leading-content",headerTrailingContent:"header-trailing-content",footer:"footer"};function k(e,t){return(e+t)%t}var A=["ArrowUp","ArrowDown"];var B=e("calcite_flow_item",function(){function e(e){var n=this;t(this,e);this.disabled=false;this.loading=false;this.menuOpen=false;this.showBackButton=false;this.textBack=v.back;this.textClose=v.close;this.textOpen=v.open;this.toggleMenuOpen=function(){n.menuOpen=!n.menuOpen};this.backButtonClick=function(){n.calciteFlowItemBackClick.emit()};this.menuButtonKeyDown=function(e){var t=e.key;var r=n.menuOpen;if(!n.isValidKey(t,A)){return}var i=n.queryActions();var o=i.length;if(!o){return}e.preventDefault();if(!r){n.menuOpen=true}if(t==="ArrowUp"){var a=i[o-1];s(a)}if(t==="ArrowDown"){var c=i[0];s(c)}};this.menuActionsKeydown=function(e){var t=e.key,r=e.target;if(!n.isValidKey(t,A)){return}var i=n.queryActions();var o=i.length;var a=i.indexOf(r);if(!o||a===-1){return}e.preventDefault();if(t==="ArrowUp"){var c=k(a-1,o);var l=i[c];s(l)}if(t==="ArrowDown"){var c=k(a+1,o);var u=i[c];s(u)}};this.menuActionsContainerKeyDown=function(e){var t=e.key;if(t==="Escape"){n.menuOpen=false}};this.calciteFlowItemBackClick=o(this,"calciteFlowItemBackClick",7)}e.prototype.queryActions=function(){return Array.from(this.el.querySelectorAll("[slot="+m.menuActions+"] calcite-action"))};e.prototype.isValidKey=function(e,t){return!!t.find((function(t){return t===e}))};e.prototype.renderBackButton=function(e){var t=this,r=t.showBackButton,i=t.textBack,o=t.backButtonClick;var a=e?y.backRight:y.backLeft;return r?n("calcite-action",{slot:C.headerLeadingContent,key:"back-button","aria-label":i,text:i,class:p.backButton,onClick:o},n("calcite-icon",{scale:"s",filled:true,icon:a})):null};e.prototype.renderMenuButton=function(){var e=this,t=e.menuOpen,r=e.textOpen,i=e.textClose;var o=t?i:r;return n("calcite-action",{class:p.menuButton,"aria-label":o,text:o,onClick:this.toggleMenuOpen,onKeyDown:this.menuButtonKeyDown},n("calcite-icon",{scale:"s",icon:y.menu}))};e.prototype.renderMenuActions=function(){var e;var t=this.menuOpen;return n("div",{class:l(p.menu,(e={},e[p.menuOpen]=t,e)),onKeyDown:this.menuActionsKeydown},n("slot",{name:m.menuActions}))};e.prototype.renderFooterActions=function(){var e=!!this.el.querySelector("[slot="+m.footerActions+"]");return e?n("div",{slot:C.footer,class:p.footerActions},n("slot",{name:m.footerActions})):null};e.prototype.renderSingleActionContainer=function(){return n("div",{class:p.singleActionContainer},n("slot",{name:m.menuActions}))};e.prototype.renderMenuActionsContainer=function(){return n("div",{class:p.menuContainer,onKeyDown:this.menuActionsContainerKeyDown},this.renderMenuButton(),this.renderMenuActions())};e.prototype.renderHeaderActions=function(){var e=this.el.querySelector("[slot="+m.menuActions+"]");var t=e&&e.closest(h.join(","));var r=!!e&&!t;var i=r?e.childElementCount:0;var o=i===1?this.renderSingleActionContainer():r?this.renderMenuActionsContainer():null;return o?n("div",{slot:C.headerTrailingContent,class:p.headerActions},o):null};e.prototype.renderHeading=function(){var e=this.heading;return e?n("h2",{class:p.heading,slot:C.headerContent},e):null};e.prototype.renderSummary=function(){var e=this.summary;return e?n("span",{class:p.summary},e):null};e.prototype.renderHeader=function(){var e=this.renderHeading();var t=this.renderSummary();return e||t?n("div",{class:p.header,slot:C.headerContent},e,t):null};e.prototype.render=function(){var e;var t=this.el;var i=c(t)==="rtl";return n(r,null,n("calcite-panel",{loading:this.loading,disabled:this.disabled,"height-scale":this.heightScale,class:l((e={},e[u.rtl]=i,e))},this.renderBackButton(i),this.renderHeader(),this.renderHeaderActions(),n("slot",null),this.renderFooterActions()))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{background-color:var(--calcite-app-background-content);display:-ms-flexbox;display:flex;height:100%;width:100%}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-panel{width:100%;height:100%}.header-content{display:block}.header-content .heading{font-size:var(--calcite-app-font-size-1);margin:0 0 var(--calcite-app-cap-spacing-quarter)}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-app-foreground-subtle)}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.header-actions,.menu-container,.single-action-container{display:-ms-flexbox;display:flex}.menu{position:absolute;top:100%;z-index:1;background-color:var(--calcite-app-background);-webkit-box-shadow:var(--calcite-app-shadow-0);box-shadow:var(--calcite-app-shadow-0);padding:0;left:auto;min-width:var(--calcite-app-menu-min-width);right:var(--calcite-app-menu-offset);visibility:visible;-ms-flex-flow:column nowrap;flex-flow:column nowrap;border:1px solid var(--calcite-app-border);-webkit-animation:calcite-app-fade-in-down var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);animation:calcite-app-fade-in-down var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);display:none}.calcite--rtl .menu{left:var(--calcite-app-menu-offset);right:auto}.menu--open{display:block}.footer-actions{display:-ms-flexbox;display:flex;width:100%}"},enumerable:true,configurable:true});return e}());var O=e("calcite_panel",function(){function e(e){var n=this;t(this,e);this.dismissed=false;this.disabled=false;this.dismissible=false;this.loading=false;this.textClose=b.close;this.panelKeyUpHandler=function(e){if(e.key==="Escape"){n.dismiss()}};this.dismiss=function(){n.dismissed=true};this.calcitePanelDismissedChange=o(this,"calcitePanelDismissedChange",7)}e.prototype.dismissedHandler=function(){this.calcitePanelDismissedChange.emit()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){if(e==="dismiss-button"){(t=this.dismissButtonEl)===null||t===void 0?void 0:t.setFocus();return[2]}(n=this.containerEl)===null||n===void 0?void 0:n.focus();return[2]}))}))};e.prototype.renderHeaderLeadingContent=function(){var e=this.el.querySelector("[slot="+C.headerLeadingContent+"]");return e?n("div",{key:"header-leading-content",class:g.headerLeadingContent},n("slot",{name:C.headerLeadingContent})):null};e.prototype.renderHeaderContent=function(){return n("div",{key:"header-content",class:g.headerContent},n("slot",{name:C.headerContent}))};e.prototype.renderHeaderTrailingContent=function(){var e=this;var t=this,r=t.dismiss,i=t.dismissible,o=t.textClose;var a=i?n("calcite-action",{ref:function(t){return e.dismissButtonEl=t},"aria-label":o,text:o,onClick:r},n("calcite-icon",{scale:"s",icon:w.close})):null;var s=n("slot",{name:C.headerTrailingContent});return n("div",{key:"header-trailing-content",class:g.headerTrailingContent},s,a)};e.prototype.renderHeader=function(){var e=this.renderHeaderLeadingContent();var t=this.renderHeaderContent();var r=this.renderHeaderTrailingContent();var i=t||e||r;return i?n("header",{class:g.header},e,t,r):null};e.prototype.renderFooter=function(){var e=this.el;var t=e.querySelector("[slot="+C.footer+"]");return t?n("footer",{class:g.footer},n("slot",{name:C.footer})):null};e.prototype.renderContent=function(){return n("section",{class:g.contentContainer},n("slot",null))};e.prototype.render=function(){var e;var t=this;var i=this,o=i.dismissed,s=i.disabled,d=i.dismissible,f=i.el,h=i.loading,p=i.panelKeyUpHandler;var v=c(f)==="rtl";return n(r,null,n("article",{"aria-busy":h.toString(),onKeyUp:p,tabIndex:d?0:-1,hidden:d&&o,ref:function(e){return t.containerEl=e},class:l(g.container,(e={},e[u.rtl]=v,e))},this.renderHeader(),this.renderContent(),this.renderFooter()),n(a,{loading:h,disabled:s}))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dismissed:["dismissedHandler"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;position:relative;--calcite-app-panel-max-height-small:40vh;--calcite-app-panel-max-height-medium:60vh;--calcite-app-panel-max-height-large:80vh;--calcite-app-panel-min-header-height:calc(var(--calcite-app-icon-size) * 3)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.container{-ms-flex-align:stretch;align-items:stretch;-webkit-transition:max-height var(--calcite-app-animation-time) var(--calcite-app-easing-function);transition:max-height var(--calcite-app-animation-time) var(--calcite-app-easing-function);width:100%;height:100%;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}:host([height-scale=s]) .container{max-height:var(--calcite-app-panel-max-height-small)}:host([height-scale=m]) .container{max-height:var(--calcite-app-panel-max-height-medium)}:host([height-scale=l]) .container{max-height:var(--calcite-app-panel-max-height-large)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;min-height:var(--calcite-app-header-min-height);position:relative;z-index:2;border-bottom:1px solid var(--calcite-app-border);width:100%}.header-content{overflow:hidden;padding:var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing)}.header-leading-content,.header-trailing-content{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.header-leading-content+.header-content{padding-left:var(--calcite-app-side-spacing-half)}.content-container{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex:1 1 auto;flex:1 1 auto;background-color:var(--calcite-app-background-content);overflow:auto}.footer{border-top:1px solid var(--calcite-app-border);display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-pack:space-evenly;justify-content:space-evenly;min-height:var(--calcite-app-footer-min-height);padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}.calcite--rtl .header-leading-content+.header-content{padding-right:var(--calcite-app-side-spacing-half)}.calcite--rtl .header-trailing-content{margin-left:0;margin-right:auto}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file diff --git a/docs/build/p-nm3wmvcl.entry.js b/docs/build/p-nm3wmvcl.entry.js new file mode 100644 index 00000000..b007857d --- /dev/null +++ b/docs/build/p-nm3wmvcl.entry.js @@ -0,0 +1 @@ +import{r as t,h as e,H as n,g as a,c as s}from"./p-323e88a0.js";import{g as i}from"./p-88b03842.js";import{c as l}from"./p-840e89a3.js";import{C as o}from"./p-ffc077bf.js";const c=class{constructor(e){t(this,e),this.appearance="solid",this.active=!1,this.compact=!1,this.disabled=!1,this.indicator=!1,this.loading=!1,this.scale="m",this.textEnabled=!1}async setFocus(){this.buttonEl.focus()}renderTextContainer(){const{text:t,textEnabled:n}=this;return t?e("div",{key:"text-container",class:l("text-container",{"text-container--visible":n})},t):null}renderIconContainer(){const{loading:t}=this,n=e("div",{class:l("slot-container",{"slot-container--hidden":t})},e("slot",null)),a=t?e("calcite-loader",{"is-active":!0,inline:!0}):null;return e("div",{key:"icon-container","aria-hidden":"true",class:"icon-container"},n,a)}render(){const{compact:t,disabled:a,loading:s,el:c,textEnabled:r,label:d,text:p}=this,h=d||!r&&p,x="rtl"===i(c);return e(n,null,e("button",{class:l("button",{"button--text-visible":r,"button--compact":t,[o.rtl]:x}),title:h,"aria-label":h,disabled:a,"aria-disabled":a.toString(),"aria-busy":s.toString(),ref:t=>this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer()))}get el(){return a(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;background-color:var(--calcite-app-background-clear)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.button{font-family:var(--calcite-app-font-family);display:-ms-flexbox;display:flex;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground);background-color:var(--calcite-app-background);outline-offset:var(--calcite-app-outline-inset);margin:0;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;border:none;width:auto;cursor:pointer;font-size:var(--calcite-app-font-size--1);line-height:normal;-webkit-transition:color 125ms ease-in-out, fill 125ms ease-in-out, background-color 125ms ease-in-out;transition:color 125ms ease-in-out, fill 125ms ease-in-out, background-color 125ms ease-in-out;text-align:unset;position:relative}.button:hover,.button:focus{background-color:var(--calcite-app-background-hover);color:var(--calcite-app-foreground-hover);fill:var(--calcite-app-foreground-hover)}.button:focus{outline-offset:var(--calcite-app-outline-inset)}.button .icon-container{min-width:var(--calcite-app-icon-size);min-height:var(--calcite-app-icon-size);margin:0;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;pointer-events:none}.button .text-container{line-height:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:0;margin-right:0;opacity:0;width:0;-webkit-transition:opacity var(--calcite-app-animation-time) var(--calcite-app-easing-function), margin var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), width var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:opacity var(--calcite-app-animation-time) var(--calcite-app-easing-function), margin var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), width var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}.button .text-container--visible{-ms-flex:1 1 auto;flex:1 1 auto;margin:0 var(--calcite-app-side-spacing-half);opacity:1;width:auto}:host([scale=s]) .button{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}:host([scale=m]) .button{padding:var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing)}:host([scale=l]) .button{padding:var(--calcite-app-cap-spacing-plus-half) var(--calcite-app-side-spacing-plus-half)}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:var(--calcite-app-side-spacing-quarter);padding-right:var(--calcite-app-side-spacing-quarter)}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{color:var(--calcite-app-foreground-active);fill:var(--calcite-app-foreground-active);background-color:var(--calcite-app-background-active)}:host([appearance=clear]) .button{background-color:var(--calcite-app-background-clear);-webkit-transition:-webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:-webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:var(--calcite-app-background-clear);-webkit-box-shadow:0 0 0 2px var(--calcite-app-border-hover) inset;box-shadow:0 0 0 2px var(--calcite-app-border-hover) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{color:var(--calcite-app-foreground-active);fill:var(--calcite-app-foreground-active);background-color:var(--calcite-app-background-active);-webkit-box-shadow:none;box-shadow:none}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:var(--calcite-app-background-clear)}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-app-background)}:host([loading]) calcite-loader[inline]{color:var(--calcite-app-foreground-subtle);margin-right:0}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-app-disabled-opacity);background-color:var(--calcite-app-background)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{opacity:var(--calcite-app-disabled-opacity);background-color:var(--calcite-app-background-active)}:host([indicator]) .button--text-visible,:host([indicator][scale=s]) .button--text-visible,:host([indicator][scale=l]) .button--text-visible{padding-right:var(--calcite-app-side-spacing)}:host([indicator]) .button::after{content:\"\";border-radius:50%;width:var(--calcite-app-side-spacing-half);height:var(--calcite-app-side-spacing-half);border:var(--calcite-app-side-spacing-eighth) solid var(--calcite-app-background);background-color:var(--calcite-app-foreground-active);position:absolute;bottom:var(--calcite-app-cap-spacing-half);right:var(--calcite-app-side-spacing-half);z-index:1}:host([indicator][scale=s]) .button::after{bottom:var(--calcite-app-cap-spacing-quarter);right:var(--calcite-app-side-spacing-quarter)}:host([indicator][scale=l]) .button::after{bottom:var(--calcite-app-cap-spacing-half);right:var(--calcite-app-side-spacing-half)}:host([indicator]) .calcite--rtl::after{right:unset;left:var(--calcite-app-side-spacing-quarter)}:host([indicator]) .button--text-visible.calcite--rtl{padding-right:var(--calcite-app-side-spacing-three-quarters);padding-left:var(--calcite-app-side-spacing)}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-app-background-hover)}:host([indicator][active]) .button::after{border-color:var(--calcite-app-background-active)}:host([indicator]) .button--text-visible::after,:host([indicator][scale=s]) .button--text-visible::after,:host([indicator][scale=l]) .button--text-visible::after{bottom:unset;right:var(--calcite-app-side-spacing-half)}:host([indicator]) .button--text-visible.calcite--rtl::after,:host([indicator][scale=s]) .button--text-visible.calcite--rtl::after,:host([indicator][scale=l]) .button--text-visible.calcite--rtl::after{right:unset;left:var(--calcite-app-side-spacing-half)}"}};function r({parent:t,expanded:e}){t.querySelectorAll("calcite-action").forEach(t=>t.textEnabled=e)}const d=({expanded:t,textExpand:n,textCollapse:a,toggleExpand:s,el:l,layout:o})=>{const c=t?a:n,r=["chevrons-left","chevrons-right"];"rtl"===i(l)&&r.reverse();const d="trailing"===(o||function(t){const e=t.closest("calcite-shell-panel");if(e)return e.layout}(l)||"leading");return e("calcite-action",{onClick:s,textEnabled:t,text:c},e("calcite-icon",{scale:"s",icon:t?d?r[1]:r[0]:d?r[0]:r[1]}))},p=class{constructor(e){t(this,e),this.expand=!0,this.expanded=!1,this.textExpand="Expand",this.textCollapse="Collapse",this.toggleExpand=()=>{this.expanded=!this.expanded},this.calciteActionBarToggle=s(this,"calciteActionBarToggle",7)}expandHandler(t){t&&r({parent:this.el,expanded:this.expanded})}expandedHandler(t){this.expand&&r({parent:this.el,expanded:t}),this.calciteActionBarToggle.emit()}componentWillLoad(){const{el:t,expand:e,expanded:n}=this;e&&r({parent:t,expanded:n})}renderBottomActionGroup(){const{expanded:t,expand:n,textExpand:a,textCollapse:s,el:i,layout:l,toggleExpand:o}=this,c=n?e(d,{expanded:t,textExpand:a,textCollapse:s,el:i,layout:l,toggleExpand:o}):null;return this.el.querySelector("[slot=bottom-actions]")||c?e("calcite-action-group",{class:"action-group--bottom"},e("slot",{name:"bottom-actions"}),c):null}render(){return e(n,null,e("slot",null),this.renderBottomActionGroup())}get el(){return a(this)}static get watchers(){return{expand:["expandHandler"],expanded:["expandedHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-item-align:stretch;align-self:stretch;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;max-width:15vw;overflow-y:auto;pointer-events:auto}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-bottom:1px solid var(--calcite-app-border)}::slotted(calcite-action-group:last-child){border-bottom:none}.action-group--bottom{padding-bottom:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end}"}},h=class{constructor(e){t(this,e)}render(){return e(n,null,e("slot",null))}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0;padding:var(--calcite-app-cap-spacing-half) 0}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:first-child){padding-top:0}::slotted(calcite-action){display:-ms-flexbox;display:flex;width:100%}"}},x=class{constructor(e){t(this,e),this.expand=!0,this.expanded=!1,this.textExpand="Expand",this.textCollapse="Collapse",this.toggleExpand=()=>{this.expanded=!this.expanded},this.calciteActionPadToggle=s(this,"calciteActionPadToggle",7)}expandHandler(t){t&&r({parent:this.el,expanded:this.expanded})}expandedHandler(t){this.expand&&r({parent:this.el,expanded:t}),this.calciteActionPadToggle.emit()}componentWillLoad(){const{el:t,expand:e,expanded:n}=this;e&&r({parent:t,expanded:n})}renderBottomActionGroup(){const{expanded:t,expand:n,textExpand:a,textCollapse:s,el:i,layout:l,toggleExpand:o}=this,c=n?e(d,{expanded:t,textExpand:a,textCollapse:s,el:i,layout:l,toggleExpand:o}):null;return c?e("calcite-action-group",{class:"action-group--bottom"},c):null}render(){return e(n,null,e("slot",null),this.renderBottomActionGroup())}get el(){return a(this)}static get watchers(){return{expand:["expandHandler"],expanded:["expandedHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:var(--calcite-app-shadow-2);box-shadow:var(--calcite-app-shadow-2);max-width:15vw;overflow-y:auto;-webkit-animation:calcite-app-fade-in var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);animation:calcite-app-fade-in var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-bottom:1px solid var(--calcite-app-border);padding-bottom:0;padding-top:0}::slotted(calcite-action-group:last-child){border-bottom:none}.action-group--bottom{padding-bottom:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end}"}};export{c as calcite_action,p as calcite_action_bar,h as calcite_action_group,x as calcite_action_pad}; \ No newline at end of file diff --git a/docs/build/p-ppvbcdwx.entry.js b/docs/build/p-ppvbcdwx.entry.js new file mode 100644 index 00000000..5656cf7e --- /dev/null +++ b/docs/build/p-ppvbcdwx.entry.js @@ -0,0 +1 @@ +import{r as t,c as e,h as i,g as s}from"./p-323e88a0.js";import"./p-3ce5a533.js";import{T as a,I as c}from"./p-4d533d6f.js";import"./p-30ecf6c3.js";import{s as h,L as l}from"./p-d53c2d71.js";const{mutationObserverCallback:r,initialize:n,initializeObserver:p,cleanUpObserver:o,calciteListItemChangeHandler:m,calciteListItemValueChangeHandler:d,setUpItems:g,deselectSiblingItems:I,selectSiblings:u,handleFilter:L,getItemData:C}=h,b=class{constructor(i){t(this,i),this.compact=!1,this.disabled=!1,this.filterEnabled=!1,this.loading=!1,this.multiple=!1,this.textFilterPlaceholder=a.filterPlaceholder,this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.observer=new MutationObserver(r.bind(this)),this.deselectSiblingItems=I.bind(this),this.selectSiblings=u.bind(this),this.handleFilter=L.bind(this),this.getItemData=C.bind(this),this.calciteListChange=e(this,"calciteListChange",7)}connectedCallback(){n.call(this)}componentDidLoad(){p.call(this)}componentDidUnload(){o.call(this)}calciteListItemChangeHandler(t){m.call(this,t)}calciteListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(t){d.call(this,t)}setUpItems(){g.call(this,"calcite-pick-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}async getSelectedItems(){return this.selectedValues}getIconType(){let t=c.circle;return this.multiple&&(t=c.square),t}render(){return i(l,{props:this})}get el(){return s(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-flow:column;flex-flow:column;padding-bottom:var(--calcite-app-cap-spacing);position:relative}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}header{background-color:var(--calcite-app-background);display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;margin-bottom:var(--calcite-app-cap-spacing-half)}header.sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}calcite-filter{-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset}slot[name=menu-actions]::slotted(calcite-action){padding:0 var(--calcite-app-side-spacing-half)}:host([loading][disabled]){min-height:2rem}"}};export{b as calcite_pick_list}; \ No newline at end of file diff --git a/docs/build/p-pqrkoyb9.entry.js b/docs/build/p-pqrkoyb9.entry.js new file mode 100644 index 00000000..d2891fe4 --- /dev/null +++ b/docs/build/p-pqrkoyb9.entry.js @@ -0,0 +1 @@ +import{r as t,c as s,h as e,H as i,g as a}from"./p-323e88a0.js";import{I as h}from"./p-4d533d6f.js";import{C as c,S as l,I as n}from"./p-0405e6a8.js";const r=class{constructor(e){t(this,e),this.compact=!1,this.disabled=!1,this.disableDeselect=!1,this.icon=null,this.selected=!1,this.pickListClickHandler=t=>{this.disabled||this.disableDeselect&&this.selected||(this.shiftPressed=t.shiftKey,this.selected=!this.selected)},this.pickListKeyDownHandler=t=>{if(" "===t.key){if(t.preventDefault(),this.disableDeselect&&this.selected)return;this.selected=!this.selected}},this.calciteListItemChange=s(this,"calciteListItemChange",7),this.calciteListItemPropsChange=s(this,"calciteListItemPropsChange",7),this.calciteListItemValueChange=s(this,"calciteListItemValueChange",7)}metadataWatchHandler(){this.calciteListItemPropsChange.emit()}selectedWatchHandler(){this.calciteListItemChange.emit({item:this.el,value:this.value,selected:this.selected,shiftPressed:this.shiftPressed}),this.shiftPressed=!1}textDescriptionWatchHandler(){this.calciteListItemPropsChange.emit()}textLabelWatchHandler(){this.calciteListItemPropsChange.emit()}valueWatchHandler(t,s){this.calciteListItemValueChange.emit({oldValue:s,newValue:t})}async toggleSelected(t){this.disabled||(this.selected="boolean"==typeof t?t:!this.selected)}renderIcon(){const{compact:t,icon:s,selected:i}=this;return!s||t?null:e("span",{class:c.icon},e("calcite-icon",{scale:"s",icon:s===h.square?i?n.checked:n.unchecked:i?n.selected:n.unselected}))}renderSecondaryAction(){return this.el.querySelector(`[slot=${l.secondaryAction}]`)?e("div",{class:c.action},e("slot",{name:l.secondaryAction})):null}render(){const t=this.textDescription&&!this.compact?e("span",{class:c.description},this.textDescription):null;return e(i,{role:"menuitemcheckbox","aria-checked":this.selected.toString()},e("label",{class:c.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,tabIndex:0,"aria-label":this.textLabel},this.renderIcon(),e("div",{class:c.textContainer},e("span",{class:c.title},this.textLabel),t)),this.renderSecondaryAction())}get el(){return a(this)}static get watchers(){return{metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],textDescription:["textDescriptionWatchHandler"],textLabel:["textLabelWatchHandler"],value:["valueWatchHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:center;align-items:center;background-color:var(--calcite-app-background-clear);display:-ms-flexbox;display:flex;margin:0;color:var(--calcite-app-foreground);-webkit-transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);-webkit-animation:calcite-app-fade-in var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-app-fade-in var(--calcite-app-animation-time) var(--calcite-app-easing-function)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:hover),:host(:focus){background-color:var(--calcite-app-background-hover)}.icon{color:var(--calcite-app-foreground-link);-ms-flex:0 0 0%;flex:0 0 0%;line-height:0;width:var(--calcite-app-icon-size);margin:0 var(--calcite-app-side-spacing-quarter);opacity:0}:host([selected]) .icon{-webkit-transition:opacity var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:opacity var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);opacity:1}.label{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);-ms-flex-align:center;align-items:center;cursor:pointer}.label:focus{outline-offset:var(--calcite-app-outline-inset)}.text-container{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;overflow:hidden;pointer-events:none;padding:0 var(--calcite-app-side-spacing-quarter)}.title{font-size:var(--calcite-app-font-size-0);display:-webkit-box;overflow:hidden;white-space:pre-wrap;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical}.description{color:var(--calcite-app-foreground-subtle);font-family:var(--calcite-app-font-family-monospace);font-size:var(--calcite-app-font-size--1);margin-top:var(--calcite-app-cap-spacing-quarter);display:-webkit-box;overflow:hidden;white-space:pre-wrap;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical}.action{-ms-flex:0 0 0%;flex:0 0 0%;justify-self:flex-end;margin:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-half)}"}};export{r as calcite_pick_list_item}; \ No newline at end of file diff --git a/docs/build/p-puno4cu5.entry.js b/docs/build/p-puno4cu5.entry.js new file mode 100644 index 00000000..6cb0c07d --- /dev/null +++ b/docs/build/p-puno4cu5.entry.js @@ -0,0 +1 @@ +import{r as t,c as i,h as e,g as s}from"./p-323e88a0.js";import"./p-3ce5a533.js";import{a}from"./p-cd1553e2.js";import"./p-4d533d6f.js";import"./p-30ecf6c3.js";import{s as r,L as l}from"./p-d53c2d71.js";import{S as h}from"./p-bce4e386.js";var n;!function(t){t.grip="grip"}(n||(n={}));const{mutationObserverCallback:c,initialize:o,initializeObserver:p,cleanUpObserver:d,calciteListItemChangeHandler:u,calciteListItemValueChangeHandler:m,setUpItems:g,deselectSiblingItems:v,selectSiblings:b,handleFilter:L,getItemData:I}=r,C=class{constructor(e){t(this,e),this.compact=!1,this.disabled=!1,this.dragEnabled=!1,this.filterEnabled=!1,this.loading=!1,this.multiple=!1,this.textFilterPlaceholder="Filter results",this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.guid=`calcite-value-list-${a()}`,this.observer=new MutationObserver(c.bind(this)),this.sortables=[],this.deselectSiblingItems=v.bind(this),this.selectSiblings=b.bind(this),this.handleFilter=L.bind(this),this.getItemData=I.bind(this),this.keyDownHandler=t=>{const i=t.composedPath().find(t=>{var i;return null===(i=t.dataset)||void 0===i?void 0:i.jsHandle}),e=t.composedPath().find(t=>{var i;return"calcite-value-list-item"===(null===(i=t.tagName)||void 0===i?void 0:i.toLowerCase())});if(!i||!e.handleActivated)return;const s=this.items.length-1,a=e.value,r=this.items.findIndex(t=>t.value===a);let l,h=!1;switch(t.key){case"ArrowUp":t.preventDefault(),0===r?h=!0:l=r-1;break;case"ArrowDown":t.preventDefault(),r===s?l=0:r===s-1?h=!0:l=r+2;break;default:return}h?e.parentElement.appendChild(e):e.parentElement.insertBefore(e,this.items[l]),i.focus(),e.handleActivated=!0},this.calciteListChange=i(this,"calciteListChange",7),this.calciteListOrderChange=i(this,"calciteListOrderChange",7)}connectedCallback(){o.call(this)}componentDidLoad(){this.setUpDragAndDrop(),p.call(this)}componentDidUnload(){d.call(this),this.cleanUpDragAndDrop()}calciteListItemChangeHandler(t){u.call(this,t)}calciteListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(t){m.call(this,t)}setUpItems(){g.call(this,"calcite-value-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpDragAndDrop(){this.dragEnabled&&this.sortables.push(h.create(this.el,{group:this.guid,handle:".handle",draggable:"calcite-value-list-item",onUpdate:()=>{this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map(t=>t.value);this.calciteListOrderChange.emit(t)}}))}cleanUpDragAndDrop(){this.dragEnabled&&(this.sortables.forEach(t=>{t.destroy()}),this.sortables=[])}async getSelectedItems(){return this.selectedValues}getIconType(){let t=null;return this.dragEnabled&&(t=n.grip),t}render(){return e(l,{props:this,onKeyDown:this.keyDownHandler})}get el(){return s(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-app-background-clear);display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:column;flex-flow:column;position:relative}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}header{background-color:var(--calcite-app-background);display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;margin-bottom:var(--calcite-app-cap-spacing-quarter)}header.sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}slot[name=menu-actions]::slotted(calcite-action){padding:0 var(--calcite-app-side-spacing-half)}calcite-filter{-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset}"}};export{C as calcite_value_list}; \ No newline at end of file diff --git a/docs/build/p-qlfbow51.system.entry.js b/docs/build/p-qlfbow51.system.entry.js deleted file mode 100644 index 513df8c5..00000000 --- a/docs/build/p-qlfbow51.system.entry.js +++ /dev/null @@ -1 +0,0 @@ -var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,l){function s(t){try{o(n.next(t))}catch(e){l(e)}}function a(t){try{o(n["throw"](t))}catch(e){l(e)}}function o(t){t.done?i(t.value):r(t.value).then(s,a)}o((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,r,l,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return o([t,e])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(l=s[0]&2?r["return"]:s[0]?r["throw"]||((l=r["return"])&&l.call(r),0):r.next)&&!(l=l.call(r,s[1])).done)return l;if(r=0,l)s=[s[0]&2,l.value];switch(s[0]){case 0:case 1:l=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(l=i.trys,l=l.length>0&&l[l.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!l||s[1]>l[0]&&s[1]{this.dismissed=!0,this.calciteTipDismiss.emit()},this.calciteTipDismiss=s(this,"calciteTipDismiss",7)}renderHeader(){const{nonDismissible:t,hideTip:s,textClose:e,heading:n}=this,c=t?null:i("calcite-action",{text:e,onClick:s,class:"close"},i("calcite-icon",{scale:"s",icon:"x"})),a=n?i("h3",{class:"heading"},n):null;return c||a?i("header",{class:"header"},a,c):null}renderImageFrame(){const{el:t}=this;return t.querySelector("[slot=thumbnail]")?i("div",{class:"image-frame"},i("slot",{name:"thumbnail"})):null}renderInfoNode(){return i("div",{class:"info"},i("slot",null))}renderContent(){return i("div",{class:"content"},this.renderImageFrame(),this.renderInfoNode())}render(){return i(e,null,i("article",{class:"container",hidden:this.dismissed},this.renderHeader(),this.renderContent()))}get el(){return n(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background-color:var(--calcite-app-background-clear)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.container{background-color:var(--calcite-app-background);padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing) var(--calcite-app-cap-spacing);margin:var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing);-webkit-box-shadow:var(--calcite-app-shadow-2);box-shadow:var(--calcite-app-shadow-2);border-radius:var(--calcite-app-border-radius)}:host([selected]) .container{-webkit-box-shadow:none;box-shadow:none;margin:0;padding:0}.header{-ms-flex-pack:end;justify-content:flex-end}.header .heading{padding-left:0;padding-right:0}.container[hidden]{display:none}.content{display:-ms-flexbox;display:flex;padding-top:var(--calcite-app-cap-spacing-half)}.info{padding:0 var(--calcite-app-side-spacing);width:70%}.info:only-child{width:100%;padding-left:0;padding-right:0}::slotted(p){margin-top:0}::slotted(a){color:var(--calcite-app-foreground-link)}.image-frame{width:25%}.image-frame img{max-width:100%}::slotted(img){max-width:100%}"}},l=class{constructor(s){t(this,s),this.textGroupTitle="Tips"}render(){return i("slot",null)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}::slotted(calcite-tip){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}"}},r=class{constructor(i){t(this,i),this.closed=!1,this.textClose="Close",this.textDefaultTitle="Tips",this.textNext="Next",this.textPaginationLabel="Tip",this.textPrevious="Previous",this.groupTitle=this.textDefaultTitle,this.observer=new MutationObserver(()=>this.setUpTips()),this.hideTipManager=()=>{this.closed=!0,this.calciteTipManagerToggle.emit()},this.previousClicked=()=>{this.previousTip()},this.nextClicked=()=>{this.nextTip()},this.tipManagerKeyUpHandler=t=>{if(t.target===this.container)switch(t.key){case"ArrowRight":t.preventDefault(),this.nextTip();break;case"ArrowLeft":t.preventDefault(),this.previousTip();break;case"Home":t.preventDefault(),this.selectedIndex=0;break;case"End":t.preventDefault(),this.selectedIndex=this.total-1}},this.storeContainerRef=t=>{this.container=t},this.calciteTipManagerToggle=s(this,"calciteTipManagerToggle",7)}closedChangeHandler(){this.direction=null,this.calciteTipManagerToggle.emit()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}connectedCallback(){this.setUpTips()}componentDidLoad(){this.observer.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.observer.disconnect()}async nextTip(){this.direction="advancing",this.selectedIndex=(this.selectedIndex+1+this.total)%this.total}async previousTip(){this.direction="retreating",this.selectedIndex=(this.selectedIndex-1+this.total)%this.total}setUpTips(){const t=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=t.length,0===this.total)return;const s=this.el.querySelector("calcite-tip[selected]");this.tips=t,this.selectedIndex=s?t.indexOf(s):0,t.forEach(t=>{t.nonDismissible=!0}),this.showSelectedTip(),this.updateGroupTitle()}showSelectedTip(){this.tips.forEach((t,s)=>{const i=this.selectedIndex===s;t.selected=i,t.hidden=!i})}updateGroupTitle(){const t=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=t&&t.textGroupTitle||this.textDefaultTitle}renderPagination(){const t=c(this.el),{selectedIndex:s,tips:e,total:n}=this;return e.length>1?i("footer",{class:"pagination"},i("calcite-action",{text:this.textPrevious,onClick:this.previousClicked,class:"page-previous"},i("calcite-icon",{scale:"s",icon:"ltr"===t?"chevron-left":"chevron-right"})),i("span",{class:"page-position"},`${this.textPaginationLabel} ${s+1}/${n}`),i("calcite-action",{text:this.textNext,onClick:this.nextClicked,class:"page-next"},i("calcite-icon",{scale:"s",icon:"ltr"===t?"chevron-right":"chevron-left"}))):null}render(){const{closed:t,direction:s,groupTitle:n,selectedIndex:c,textClose:h,total:l}=this;return 0===l?i(e,null):i(e,null,i("div",{class:"container",hidden:t,"aria-hidden":t.toString(),tabIndex:0,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef},i("header",{class:"header"},i("h2",{key:c,class:"heading"},n),i("calcite-action",{text:h,onClick:this.hideTipManager,class:"close"},i("calcite-icon",{scale:"s",icon:"x"}))),i("div",{tabIndex:0,class:a("tip-container",{"tip-container--advancing":!t&&"advancing"===s,"tip-container--retreating":!t&&"retreating"===s}),key:c},i("slot",null)),this.renderPagination()))}get el(){return n(this)}static get watchers(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}\@-webkit-keyframes tip-advance{0%{opacity:0;-webkit-transform:translate3d(50px, 0, 0) scale(0.99);transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@keyframes tip-advance{0%{opacity:0;-webkit-transform:translate3d(50px, 0, 0) scale(0.99);transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@-webkit-keyframes tip-retreat{0%{opacity:0;-webkit-transform:translate3d(-50px, 0, 0) scale(0.99);transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@keyframes tip-retreat{0%{opacity:0;-webkit-transform:translate3d(-50px, 0, 0) scale(0.99);transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}:host{display:block}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host([closed]){display:none}.header .heading{padding-left:var(--calcite-app-side-spacing-half);padding-right:var(--calcite-app-side-spacing-half)}.container{overflow:hidden;position:relative;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) 0;min-height:150px}.tip-container{-webkit-animation-name:none;animation-name:none;-webkit-animation-duration:var(--calcite-app-animation-time);animation-duration:var(--calcite-app-animation-time);-webkit-animation-timing-function:var(--calcite-app-easing-function);animation-timing-function:var(--calcite-app-easing-function);height:18vh;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start}::slotted(calcite-tip-group){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}::slotted(calcite-tip){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}.tip-container--advancing{-webkit-animation-name:tip-advance;animation-name:tip-advance}.tip-container--retreating{-webkit-animation-name:tip-retreat;animation-name:tip-retreat}.pagination{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--calcite-app-cap-spacing-quarter) 0}.page-position{font-size:var(--calcite-app-font-size--1);margin:0 var(--calcite-app-side-spacing-half)}"}};export{h as calcite_tip,l as calcite_tip_group,r as calcite_tip_manager}; \ No newline at end of file +import{r as t,c as s,h as i,H as e,g as n}from"./p-323e88a0.js";import{g as c}from"./p-88b03842.js";import{c as a}from"./p-840e89a3.js";const h=class{constructor(i){t(this,i),this.dismissed=!1,this.nonDismissible=!1,this.textClose="Close",this.hideTip=()=>{this.dismissed=!0,this.calciteTipDismiss.emit()},this.calciteTipDismiss=s(this,"calciteTipDismiss",7)}renderHeader(){const{nonDismissible:t,hideTip:s,textClose:e,heading:n}=this,c=t?null:i("calcite-action",{text:e,onClick:s,class:"close"},i("calcite-icon",{scale:"s",icon:"x"})),a=n?i("h3",{class:"heading"},n):null;return c||a?i("header",{class:"header"},a,c):null}renderImageFrame(){const{el:t}=this;return t.querySelector("[slot=thumbnail]")?i("div",{class:"image-frame"},i("slot",{name:"thumbnail"})):null}renderInfoNode(){return i("div",{class:"info"},i("slot",null))}renderContent(){return i("div",{class:"content"},this.renderImageFrame(),this.renderInfoNode())}render(){return i(e,null,i("article",{class:"container",hidden:this.dismissed},this.renderHeader(),this.renderContent()))}get el(){return n(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background-color:var(--calcite-app-background-clear)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.container{background-color:var(--calcite-app-background);padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing) var(--calcite-app-cap-spacing);margin:var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing);-webkit-box-shadow:var(--calcite-app-shadow-2);box-shadow:var(--calcite-app-shadow-2);border-radius:var(--calcite-app-border-radius)}:host([selected]) .container{-webkit-box-shadow:none;box-shadow:none;margin:0;padding:0}.header{-ms-flex-pack:end;justify-content:flex-end}.header .heading{padding-left:0;padding-right:0}.container[hidden]{display:none}.content{display:-ms-flexbox;display:flex;padding-top:var(--calcite-app-cap-spacing-half)}.info{padding:0 var(--calcite-app-side-spacing);width:70%}.info:only-child{width:100%;padding-left:0;padding-right:0}::slotted(p){margin-top:0}::slotted(a){color:var(--calcite-app-foreground-link)}.image-frame{width:25%}.image-frame img{max-width:100%}::slotted(img){max-width:100%}"}},l=class{constructor(s){t(this,s),this.textGroupTitle="Tips"}render(){return i("slot",null)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}::slotted(calcite-tip){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}"}},r=class{constructor(i){t(this,i),this.closed=!1,this.textClose="Close",this.textDefaultTitle="Tips",this.textNext="Next",this.textPaginationLabel="Tip",this.textPrevious="Previous",this.groupTitle=this.textDefaultTitle,this.observer=new MutationObserver(()=>this.setUpTips()),this.hideTipManager=()=>{this.closed=!0,this.calciteTipManagerToggle.emit()},this.previousClicked=()=>{this.previousTip()},this.nextClicked=()=>{this.nextTip()},this.tipManagerKeyUpHandler=t=>{if(t.target===this.container)switch(t.key){case"ArrowRight":t.preventDefault(),this.nextTip();break;case"ArrowLeft":t.preventDefault(),this.previousTip();break;case"Home":t.preventDefault(),this.selectedIndex=0;break;case"End":t.preventDefault(),this.selectedIndex=this.total-1}},this.storeContainerRef=t=>{this.container=t},this.calciteTipManagerToggle=s(this,"calciteTipManagerToggle",7)}closedChangeHandler(){this.direction=null,this.calciteTipManagerToggle.emit()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}connectedCallback(){this.setUpTips()}componentDidLoad(){this.observer.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.observer.disconnect()}async nextTip(){this.direction="advancing",this.selectedIndex=(this.selectedIndex+1+this.total)%this.total}async previousTip(){this.direction="retreating",this.selectedIndex=(this.selectedIndex-1+this.total)%this.total}setUpTips(){const t=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=t.length,0===this.total)return;const s=this.el.querySelector("calcite-tip[selected]");this.tips=t,this.selectedIndex=s?t.indexOf(s):0,t.forEach(t=>{t.nonDismissible=!0}),this.showSelectedTip(),this.updateGroupTitle()}showSelectedTip(){this.tips.forEach((t,s)=>{const i=this.selectedIndex===s;t.selected=i,t.hidden=!i})}updateGroupTitle(){const t=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=t&&t.textGroupTitle||this.textDefaultTitle}renderPagination(){const t=c(this.el),{selectedIndex:s,tips:e,total:n}=this;return e.length>1?i("footer",{class:"pagination"},i("calcite-action",{text:this.textPrevious,onClick:this.previousClicked,class:"page-previous"},i("calcite-icon",{scale:"s",icon:"ltr"===t?"chevron-left":"chevron-right"})),i("span",{class:"page-position"},`${this.textPaginationLabel} ${s+1}/${n}`),i("calcite-action",{text:this.textNext,onClick:this.nextClicked,class:"page-next"},i("calcite-icon",{scale:"s",icon:"ltr"===t?"chevron-right":"chevron-left"}))):null}render(){const{closed:t,direction:s,groupTitle:n,selectedIndex:c,textClose:h,total:l}=this;return 0===l?i(e,null):i(e,null,i("div",{class:"container",hidden:t,"aria-hidden":t.toString(),tabIndex:0,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef},i("header",{class:"header"},i("h2",{key:c,class:"heading"},n),i("calcite-action",{text:h,onClick:this.hideTipManager,class:"close"},i("calcite-icon",{scale:"s",icon:"x"}))),i("div",{tabIndex:0,class:a("tip-container",{"tip-container--advancing":!t&&"advancing"===s,"tip-container--retreating":!t&&"retreating"===s}),key:c},i("slot",null)),this.renderPagination()))}get el(){return n(this)}static get watchers(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}\@-webkit-keyframes tip-advance{0%{opacity:0;-webkit-transform:translate3d(50px, 0, 0) scale(0.99);transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@keyframes tip-advance{0%{opacity:0;-webkit-transform:translate3d(50px, 0, 0) scale(0.99);transform:translate3d(50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@-webkit-keyframes tip-retreat{0%{opacity:0;-webkit-transform:translate3d(-50px, 0, 0) scale(0.99);transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}\@keyframes tip-retreat{0%{opacity:0;-webkit-transform:translate3d(-50px, 0, 0) scale(0.99);transform:translate3d(-50px, 0, 0) scale(0.99)}100%{opacity:1;-webkit-transform:translate3d(0, 0, 0) scale(1);transform:translate3d(0, 0, 0) scale(1)}}:host{display:block}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host([closed]){display:none}.header .heading{padding-left:var(--calcite-app-side-spacing-half);padding-right:var(--calcite-app-side-spacing-half)}.container{overflow:hidden;position:relative;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) 0;min-height:150px}.tip-container{-webkit-animation-name:none;animation-name:none;-webkit-animation-duration:var(--calcite-app-animation-time);animation-duration:var(--calcite-app-animation-time);-webkit-animation-timing-function:var(--calcite-app-easing-function);animation-timing-function:var(--calcite-app-easing-function);height:18vh;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start}::slotted(calcite-tip-group){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}::slotted(calcite-tip){max-width:540px;padding:0 var(--calcite-app-side-spacing-half)}.tip-container--advancing{-webkit-animation-name:tip-advance;animation-name:tip-advance}.tip-container--retreating{-webkit-animation-name:tip-retreat;animation-name:tip-retreat}.pagination{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--calcite-app-cap-spacing-quarter) 0}.page-position{font-size:var(--calcite-app-font-size--1);margin:0 var(--calcite-app-side-spacing-half)}"}};export{h as calcite_tip,l as calcite_tip_group,r as calcite_tip_manager}; \ No newline at end of file diff --git a/docs/build/p-sxjhlvi9.entry.js b/docs/build/p-sxjhlvi9.entry.js new file mode 100644 index 00000000..55b39b5a --- /dev/null +++ b/docs/build/p-sxjhlvi9.entry.js @@ -0,0 +1 @@ +import{r as t,c as s,h as l,H as e,g as i}from"./p-323e88a0.js";import{C as a}from"./p-3ce5a533.js";import{g as c}from"./p-88b03842.js";import{g as o}from"./p-cd1553e2.js";import{c as n}from"./p-840e89a3.js";const r=class{constructor(l){t(this,l),this.collapsible=!1,this.disabled=!1,this.dragHandle=!1,this.open=!1,this.loading=!1,this.textExpand="Expand",this.textCollapse="Collapse",this.onHeaderClick=()=>{this.open=!this.open,this.calciteBlockToggle.emit()},this.calciteBlockToggle=s(this,"calciteBlockToggle",7)}render(){const{collapsible:t,disabled:s,el:i,heading:c,loading:o,open:n,summary:r,textCollapse:h,textExpand:d}=this,g=n?h:d,p=i.querySelector("[slot=icon]"),u=l("header",{class:"header"},p?l("div",{class:"icon"},l("slot",{name:"icon"})):null,l("div",{class:"title"},l("h3",{class:"heading"},c),r?l("div",{class:"summary"},r):null)),b=i.querySelector("[slot=control]"),m=l("div",{class:"header-container"},this.dragHandle?l("calcite-handle",null):null,t?l("button",{"aria-label":g,class:"toggle",onClick:this.onHeaderClick,title:g},u,b?null:l("calcite-icon",{scale:"s",icon:n?"chevron-up":"chevron-down"})):u,o?l("calcite-loader",{inline:!0,"is-active":!0}):l("slot",{name:"control"}));return l(e,{tabIndex:s?-1:null},l("article",{"aria-expanded":t?n.toString():null,"aria-busy":o},m,l("div",{class:"content",hidden:!n},l(a,{loading:o,disabled:s},l("slot",null)))))}get el(){return i(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-direction:column;flex-direction:column;border-radius:var(--calcite-app-border-radius);margin:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-quarter) 0;-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.header{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:start;justify-content:flex-start}.header-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header-container>.header{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-three-quarters)}:host([disabled]){pointer-events:none;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]) .header-container{opacity:var(--calcite-app-disabled-opacity)}calcite-loader[inline]{color:var(--calcite-app-foreground-subtle)}.title{margin:0}.header .title .heading{padding:0 0 var(--calcite-app-cap-spacing-quarter)}.summary{font-size:var(--calcite-app-font-size--1);padding:0 0 var(--calcite-app-cap-spacing-quarter)}.toggle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-positive:1;flex-grow:1;margin:0;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-three-quarters);background-color:transparent;border:none;cursor:pointer;font-family:var(--calcite-app-font-family);text-align:unset;color:var(--calcite-app-foreground)}.toggle:focus{outline-offset:var(--calcite-app-outline-inset)}.icon{margin-right:var(--calcite-app-side-spacing-third)}.toggle-icon{fill:currentColor;-ms-flex:0 0 var(--calcite-app-icon-size);flex:0 0 var(--calcite-app-icon-size);margin:0 var(--calcite-app-side-spacing-half)}.content{padding:0 var(--calcite-app-side-spacing-three-quarters) var(--calcite-app-cap-spacing-half);position:relative}::slotted([slot=control]){position:absolute;margin:auto;right:var(--calcite-app-side-spacing-three-quarters)}.calcite--rtl ::slotted([slot=control]){left:var(--calcite-app-side-spacing-three-quarters);right:unset}"}},h=class{constructor(l){t(this,l),this.open=!1,this.textExpand="Expand",this.textCollapse="Collapse",this.toggleDisplay="button",this.guid=`calcite-block-section-${o()}`,this.toggleSection=()=>{this.open=!this.open,this.calciteBlockSectionToggle.emit()},this.calciteBlockSectionToggle=s(this,"calciteBlockSectionToggle",7)}render(){const{el:t,guid:s,open:e,text:i,textCollapse:a,textExpand:o,toggleDisplay:r}=this,h=c(t),d=e?"caret-down":"rtl"===h?"caret-left":"caret-right",g=e?a:o,p=`${s}__label`,u="switch"===r?l("label",{"aria-label":g,class:n("toggle","toggle--switch"),id:p},i,l("calcite-switch",{"aria-labelledby":p,switched:e,onChange:this.toggleSection,scale:"s"})):l("calcite-action",{"aria-label":g,class:"toggle",onClick:this.toggleSection,text:i,textEnabled:!0,compact:!0},l("calcite-icon",{scale:"s",icon:d}));return l("section",{"aria-expanded":e.toString()},u,l("div",{class:"content",hidden:!e},l("slot",null)))}get el(){return i(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{border-bottom:1px solid var(--calcite-app-border);display:block}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:last-child){border-bottom:none}.toggle--switch{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--calcite-app-cap-spacing-half) 0;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.toggle--switch calcite-switch{margin:var(--calcite-app-cap-spacing-third) 0 0 var(--calcite-app-side-spacing-half)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:var(--calcite-app-side-spacing-half)}"}};export{r as calcite_block,h as calcite_block_section}; \ No newline at end of file diff --git a/docs/build/p-tf2jtkhh.entry.js b/docs/build/p-tf2jtkhh.entry.js new file mode 100644 index 00000000..5f2e22a9 --- /dev/null +++ b/docs/build/p-tf2jtkhh.entry.js @@ -0,0 +1 @@ +import{r as t,c as s,h as i,H as e,g as h}from"./p-323e88a0.js";import{S as r}from"./p-bce4e386.js";const a=class{constructor(i){t(this,i),this.handleSelector="calcite-handle",this.disabled=!1,this.loading=!1,this.handleActivated=!1,this.items=[],this.observer=new MutationObserver(()=>{this.cleanUpDragAndDrop(),this.items=Array.from(this.el.children),this.setUpDragAndDrop()}),this.calciteListOrderChange=s(this,"calciteListOrderChange",7)}componentDidLoad(){this.items=Array.from(this.el.children),this.setUpDragAndDrop(),this.beginObserving()}componentDidUnload(){this.observer.disconnect(),this.cleanUpDragAndDrop()}calciteHandleNudgeHandler(t){const s=this.items.find(s=>s.contains(t.detail.handle)||t.composedPath().includes(s)),i=this.items.length-1,e=this.items.indexOf(s);let h,r=!1;switch(t.detail.direction){case"up":t.preventDefault(),0===e?r=!0:h=e-1;break;case"down":t.preventDefault(),e===i?h=0:e===i-1?r=!0:h=e+2;break;default:return}this.observer.disconnect(),r?s.parentElement.appendChild(s):s.parentElement.insertBefore(s,this.items[h]),this.items=Array.from(this.el.children),t.detail.handle.activated=!0,t.detail.handle.setFocus(),this.beginObserving()}setUpDragAndDrop(){this.sortable=r.create(this.el,{handle:this.handleSelector,onUpdate:()=>{this.items=Array.from(this.el.children),this.calciteListOrderChange.emit()},onStart:()=>{this.observer.disconnect()},onEnd:()=>{this.beginObserving()}})}cleanUpDragAndDrop(){this.sortable.destroy(),this.sortable=null}beginObserving(){this.observer.observe(this.el,{childList:!0,subtree:!0})}render(){return i(e,null,i("slot",null))}get el(){return h(this)}static get style(){return":host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}"}};export{a as calcite_sortable_list}; \ No newline at end of file diff --git a/docs/build/p-tpumplm2.system.entry.js b/docs/build/p-tpumplm2.system.entry.js new file mode 100644 index 00000000..e33c6fc4 --- /dev/null +++ b/docs/build/p-tpumplm2.system.entry.js @@ -0,0 +1 @@ +System.register(["./p-7b680867.system.js","./p-c73f10ef.system.js","./p-5559af04.system.js","./p-a2bff01d.system.js"],(function(e){"use strict";var t,n,r,i,u,c,s;return{setters:[function(e){t=e.r;n=e.h;r=e.H;i=e.g},function(e){u=e.g},function(e){c=e.c},function(e){s=e.C}],execute:function(){var a={heading:"heading",container:"container",indented:"container--indented"};var o={parentItem:"parent-item"};var l=e("calcite_pick_list_group",function(){function e(e){t(this,e)}e.prototype.render=function(){var e;var t=this,i=t.el,l=t.textGroupTitle;var f=u(i)==="rtl";var p=i.querySelector("[slot="+o.parentItem+"]")!==null;var d=(e={},e[a.indented]=p,e[s.rtl]=f,e);return n(r,null,l?n("h3",{class:a.heading},l):null,n("slot",{name:o.parentItem}),n("section",{class:c(a.container,d)},n("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{background-color:var(--calcite-app-background-clear);display:block;margin-bottom:var(--calcite-app-cap-spacing-quarter)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host(:last-child){margin-bottom:0}h3.heading{font-size:var(--calcite-app-font-size-0);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing)}.container--indented{margin-left:var(--calcite-app-side-spacing-plus-half)}.calcite--rtl.container--indented{margin-left:0;margin-right:var(--calcite-app-side-spacing-plus-half)}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file diff --git a/docs/build/p-umcw37so.system.entry.js b/docs/build/p-umcw37so.system.entry.js deleted file mode 100644 index 16a9295e..00000000 --- a/docs/build/p-umcw37so.system.entry.js +++ /dev/null @@ -1 +0,0 @@ -System.register(["./p-6be4d309.system.js","./p-5a9eb0f4.system.js","./p-c73f10ef.system.js","./p-9b878d06.system.js","./p-5559af04.system.js"],(function(e){"use strict";var t,l,n,o,i,a,c,s,r;return{setters:[function(e){t=e.r;l=e.c;n=e.h;o=e.H;i=e.g},function(e){a=e.C},function(e){c=e.g},function(e){s=e.g},function(e){r=e.c}],execute:function(){var u={content:"content",headerContainer:"header-container",icon:"icon",toggle:"toggle",toggleIcon:"toggle-icon",title:"title",heading:"heading",header:"header",button:"button",summary:"summary",control:"control"};var g={collapse:"Collapse",expand:"Expand"};var d={close:"chevron-up",open:"chevron-down"};var p=e("calcite_block",function(){function e(e){var n=this;t(this,e);this.collapsible=false;this.disabled=false;this.open=false;this.loading=false;this.textExpand=g.expand;this.textCollapse=g.collapse;this.onHeaderClick=function(){n.open=!n.open;n.calciteBlockToggle.emit()};this.calciteBlockToggle=l(this,"calciteBlockToggle",7)}e.prototype.render=function(){var e=this,t=e.collapsible,l=e.disabled,i=e.el,c=e.heading,s=e.loading,r=e.open,g=e.summary,p=e.textCollapse,h=e.textExpand;var b=r?p:h;var f=i.querySelector("[slot="+"icon"+"]");var v=n("header",{class:u.header},f?n("div",{class:u.icon},n("slot",{name:"icon"})):null,n("div",{class:u.title},n("h3",{class:u.heading},c),g?n("div",{class:u.summary},g):null));var m=i.querySelector("[slot="+"control"+"]");var y=n("div",{class:u.headerContainer},t?n("button",{"aria-label":b,class:u.toggle,onClick:this.onHeaderClick,title:b},v,m?null:n("calcite-icon",{scale:"s",icon:r?d.close:d.open})):v,s?n("calcite-loader",{inline:true,"is-active":true}):n("slot",{name:"control"}));return n(o,{tabIndex:l?-1:null},n("article",{"aria-expanded":t?r.toString():null,"aria-busy":s},y,n("div",{class:u.content,hidden:!r},n(a,{loading:s,disabled:l},n("slot",null)))))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-direction:column;flex-direction:column;border-radius:var(--calcite-app-border-radius);margin:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-quarter) 0;-webkit-box-shadow:0 1px 0 var(--calcite-app-border) inset;box-shadow:0 1px 0 var(--calcite-app-border) inset}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}.header{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:start;justify-content:flex-start}.header-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header-container>.header{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-three-quarters)}:host([disabled]){pointer-events:none;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]) .header-container{opacity:var(--calcite-app-disabled-opacity)}calcite-loader[inline]{color:var(--calcite-app-foreground-subtle)}.title{margin:0}.header .title .heading{padding:0 0 var(--calcite-app-cap-spacing-quarter)}.summary{font-size:var(--calcite-app-font-size--1);padding:0 0 var(--calcite-app-cap-spacing-quarter)}.toggle{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-three-quarters);background-color:transparent;border:none;cursor:pointer;display:-ms-flexbox;display:flex;font-family:var(--calcite-app-font-family);-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:0;text-align:unset;width:100%;color:var(--calcite-app-foreground)}.toggle:focus{outline-offset:var(--calcite-app-outline-inset)}.icon{margin-right:var(--calcite-app-side-spacing-third)}.toggle-icon{fill:currentColor;-ms-flex:0 0 var(--calcite-app-icon-size);flex:0 0 var(--calcite-app-icon-size);margin:0 var(--calcite-app-side-spacing-half)}.content{position:relative}::slotted(*){padding:0 var(--calcite-app-side-spacing-three-quarters) var(--calcite-app-cap-spacing-half)}::slotted([slot=control]){padding:unset;position:absolute;margin:auto;right:var(--calcite-app-side-spacing-three-quarters)}.calcite--rtl ::slotted([slot=control]){left:var(--calcite-app-side-spacing-three-quarters);right:unset}"},enumerable:true,configurable:true});return e}());var h={content:"content",toggle:"toggle",toggleSwitch:"toggle--switch"};var b={collapse:"Collapse",expand:"Expand"};var f={menuOpen:"caret-down",menuClosedLeft:"caret-left",menuClosedRight:"caret-right"};var v=e("calcite_block_section",function(){function e(e){var n=this;t(this,e);this.open=false;this.textExpand=b.expand;this.textCollapse=b.collapse;this.toggleDisplay="button";this.guid="calcite-block-section-"+s();this.toggleSection=function(){n.open=!n.open;n.calciteBlockSectionToggle.emit()};this.calciteBlockSectionToggle=l(this,"calciteBlockSectionToggle",7)}e.prototype.render=function(){var e=this,t=e.el,l=e.guid,o=e.open,i=e.text,a=e.textCollapse,s=e.textExpand,u=e.toggleDisplay;var g=c(t);var d=o?f.menuOpen:g==="rtl"?f.menuClosedLeft:f.menuClosedRight;var p=o?a:s;var b=l+"__label";var v=u==="switch"?n("label",{"aria-label":p,class:r(h.toggle,h.toggleSwitch),id:b},i,n("calcite-switch",{"aria-labelledby":b,switched:o,onChange:this.toggleSection,scale:"s"})):n("calcite-action",{"aria-label":p,class:h.toggle,onClick:this.toggleSection,text:i,textEnabled:true,compact:true},n("calcite-icon",{scale:"s",icon:d}));return n("section",{"aria-expanded":o.toString()},v,n("div",{class:h.content,hidden:!o},n("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{border-bottom:1px solid var(--calcite-app-border);display:block}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:last-child){border-bottom:none}.toggle--switch{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--calcite-app-cap-spacing-half) 0;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.toggle--switch calcite-switch{margin:var(--calcite-app-cap-spacing-third) 0 0 var(--calcite-app-side-spacing-half)}.calcite--rtl .toggle--switch calcite-switch{margin-left:0;margin-right:var(--calcite-app-side-spacing-half)}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file diff --git a/docs/build/p-uxcqacai.entry.js b/docs/build/p-uxcqacai.entry.js deleted file mode 100644 index 2f7048fb..00000000 --- a/docs/build/p-uxcqacai.entry.js +++ /dev/null @@ -1 +0,0 @@ -import{r as s,h as t,H as c}from"./p-24078e83.js";const l=class{constructor(t){s(this,t)}render(){return t(c,null,this.textGroupTitle?t("h3",{class:"heading"},this.textGroupTitle):null,t("section",{class:"container"},t("slot",null)))}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{background-color:var(--calcite-app-background-clear);display:block;margin-bottom:var(--calcite-app-cap-spacing)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host(:last-child){margin-bottom:0}h3.heading{font-size:var(--calcite-app-font-size-0);font-weight:var(--calcite-app-font-weight);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}.container{border-radius:var(--calcite-app-border-radius);overflow:hidden;-webkit-box-shadow:0 1px 0 var(--calcite-app-border) inset;box-shadow:0 1px 0 var(--calcite-app-border) inset}"}};export{l as calcite_pick_list_group}; \ No newline at end of file diff --git a/docs/build/p-deugelv9.entry.js b/docs/build/p-vdxyomtr.entry.js similarity index 59% rename from docs/build/p-deugelv9.entry.js rename to docs/build/p-vdxyomtr.entry.js index 648304ac..43030dd0 100644 --- a/docs/build/p-deugelv9.entry.js +++ b/docs/build/p-vdxyomtr.entry.js @@ -1 +1 @@ -import{r as t,h as e,H as l,g as s,c as r}from"./p-24078e83.js";import{c as a}from"./p-840e89a3.js";const n=class{constructor(e){t(this,e)}renderHeader(){return this.el.querySelector("[slot=shell-header]")?e("slot",{name:"shell-header"}):null}renderContent(){return e("div",{class:"content"},e("slot",null))}renderFooter(){return this.el.querySelector("[slot=shell-footer]")?e("div",{class:"footer"},e("slot",{name:"shell-footer"})):null}renderMain(){var t;const l={"main--reversed":"trailing"===(null===(t=this.el.querySelector("[slot=primary-panel]"))||void 0===t?void 0:t.layout)};return e("div",{class:a("main",l)},e("slot",{name:"primary-panel"}),this.renderContent(),e("slot",{name:"contextual-panel"}),e("slot",{name:"tip-manager"}))}render(){return e(l,null,this.renderHeader(),this.renderMain(),this.renderFooter())}get el(){return s(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;--calcite-app-shell-tip-spacing:26vw}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.main{height:100%;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;border-top:1px solid var(--calcite-app-border-subtle);border-bottom:1px solid var(--calcite-app-border-subtle);-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}.main--reversed{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.content{height:100%;width:100%;position:absolute;left:0;right:0;bottom:0;top:0;z-index:0}::slotted(calcite-shell-panel){position:relative;z-index:1}::slotted(calcite-tip-manager){-webkit-animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);border-radius:var(--calcite-app-border-radius);bottom:var(--calcite-app-cap-spacing);-webkit-box-shadow:var(--calcite-app-shadow-2);box-shadow:var(--calcite-app-shadow-2);-webkit-box-sizing:border-box;box-sizing:border-box;left:var(--calcite-app-shell-tip-spacing);position:absolute;right:var(--calcite-app-shell-tip-spacing);z-index:2}.footer{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing)}"}},i=class{constructor(e){t(this,e),this.collapsed=!1,this.detached=!1,this.detachedScale="m",this.layout="leading",this.calciteShellPanelToggle=r(this,"calciteShellPanelToggle",7)}watchHandler(){this.calciteShellPanelToggle.emit()}render(){const{collapsed:t,detached:s,layout:r}=this,n=e("div",{class:a("content",{"content--detached":s}),hidden:t},e("slot",null)),i=[e("slot",{name:"action-bar"}),n];return"trailing"===r&&i.reverse(),e(l,null,i)}static get watchers(){return{collapsed:["watchHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-app-background-transparent);pointer-events:none;--calcite-app-shell-panel-width:20vw;--calcite-app-shell-panel-min-width:240px;--calcite-app-shell-panel-max-width:360px;--calcite-app-shell-panel-min-height:4rem;--calcite-app-shell-panel-max-height-small:35vh;--calcite-app-shell-panel-max-height-medium:55vh;--calcite-app-shell-panel-max-height-large:85vh}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-app-background-content);-ms-flex-flow:column nowrap;flex-flow:column nowrap;display:-ms-flexbox;display:flex;width:var(--calcite-app-shell-panel-width);min-width:var(--calcite-app-shell-panel-min-width);max-width:var(--calcite-app-shell-panel-max-width);min-height:var(--calcite-app-shell-panel-min-height);border-left:1px solid var(--calcite-app-border);border-right:1px solid var(--calcite-app-border);padding:0;pointer-events:auto}.content--detached{border:1px solid var(--calcite-app-border);border-radius:var(--calcite-app-border-radius);-webkit-box-shadow:var(--calcite-app-shadow-0);box-shadow:var(--calcite-app-shadow-0);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) auto;max-height:var(--calcite-app-shell-panel-max-height-medium);overflow:auto}:host([detached-scale=s]) .content--detached{max-height:var(--calcite-app-shell-panel-max-height-small)}:host([detached-scale=l]) .content--detached{max-height:var(--calcite-app-shell-panel-max-height-large)}.content[hidden]{display:none}:host([layout=leading]) slot[name=action-bar]::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}:host([layout=trailing]) slot[name=action-bar]::slotted(calcite-action-bar){border-left:1px solid var(--calcite-app-border)}"}};export{n as calcite_shell,i as calcite_shell_panel}; \ No newline at end of file +import{r as t,h as e,H as l,g as s,c as r}from"./p-323e88a0.js";import{c as a}from"./p-840e89a3.js";const n=class{constructor(e){t(this,e)}renderHeader(){return this.el.querySelector("[slot=shell-header]")?e("slot",{name:"shell-header"}):null}renderContent(){return e("div",{class:"content"},e("slot",null))}renderFooter(){return this.el.querySelector("[slot=shell-footer]")?e("div",{class:"footer"},e("slot",{name:"shell-footer"})):null}renderMain(){var t;const l={"main--reversed":"trailing"===(null===(t=this.el.querySelector("[slot=primary-panel]"))||void 0===t?void 0:t.layout)};return e("div",{class:a("main",l)},e("slot",{name:"primary-panel"}),this.renderContent(),e("slot",{name:"contextual-panel"}),e("slot",{name:"tip-manager"}))}render(){return e(l,null,this.renderHeader(),this.renderMain(),this.renderFooter())}get el(){return s(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;--calcite-app-shell-tip-spacing:26vw}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.main{height:100%;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;border-top:1px solid var(--calcite-app-border-subtle);border-bottom:1px solid var(--calcite-app-border-subtle);-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}.main--reversed{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.content{height:100%;width:100%;position:absolute;left:0;right:0;bottom:0;top:0;z-index:0}::slotted(calcite-shell-panel){position:relative;z-index:1}::slotted(calcite-tip-manager){-webkit-animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);border-radius:var(--calcite-app-border-radius);bottom:var(--calcite-app-cap-spacing);-webkit-box-shadow:var(--calcite-app-shadow-2);box-shadow:var(--calcite-app-shadow-2);-webkit-box-sizing:border-box;box-sizing:border-box;left:var(--calcite-app-shell-tip-spacing);position:absolute;right:var(--calcite-app-shell-tip-spacing);z-index:2}.footer{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing)}"}},i=class{constructor(e){t(this,e),this.collapsed=!1,this.detached=!1,this.detachedScale="m",this.layout="leading",this.calciteShellPanelToggle=r(this,"calciteShellPanelToggle",7)}watchHandler(){this.calciteShellPanelToggle.emit()}render(){const{collapsed:t,detached:s,layout:r}=this,n=e("div",{class:a("content",{"content--detached":s}),hidden:t},e("slot",null)),i=[e("slot",{name:"action-bar"}),n];return"trailing"===r&&i.reverse(),e(l,null,i)}static get watchers(){return{collapsed:["watchHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-app-background-transparent);pointer-events:none;--calcite-app-shell-panel-width:20vw;--calcite-app-shell-panel-min-width:240px;--calcite-app-shell-panel-max-width:360px;--calcite-app-shell-panel-min-height:4rem;--calcite-app-shell-panel-max-height-small:35vh;--calcite-app-shell-panel-max-height-medium:55vh;--calcite-app-shell-panel-max-height-large:85vh}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-app-background-content);-ms-flex-flow:column nowrap;flex-flow:column nowrap;display:-ms-flexbox;display:flex;width:var(--calcite-app-shell-panel-width);min-width:var(--calcite-app-shell-panel-min-width);max-width:var(--calcite-app-shell-panel-max-width);min-height:var(--calcite-app-shell-panel-min-height);border-left:1px solid var(--calcite-app-border);border-right:1px solid var(--calcite-app-border);padding:0;pointer-events:auto}.content--detached{border:1px solid var(--calcite-app-border);border-radius:var(--calcite-app-border-radius);-webkit-box-shadow:var(--calcite-app-shadow-0);box-shadow:var(--calcite-app-shadow-0);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) auto;max-height:var(--calcite-app-shell-panel-max-height-medium);overflow:auto}:host([detached-scale=s]) .content--detached{max-height:var(--calcite-app-shell-panel-max-height-small)}:host([detached-scale=l]) .content--detached{max-height:var(--calcite-app-shell-panel-max-height-large)}.content[hidden]{display:none}:host([layout=leading]) slot[name=action-bar]::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}:host([layout=trailing]) slot[name=action-bar]::slotted(calcite-action-bar){border-left:1px solid var(--calcite-app-border)}"}};export{n as calcite_shell,i as calcite_shell_panel}; \ No newline at end of file diff --git a/docs/build/p-bwqiz0t6.entry.js b/docs/build/p-wlyhrdjt.entry.js similarity index 98% rename from docs/build/p-bwqiz0t6.entry.js rename to docs/build/p-wlyhrdjt.entry.js index e56b154f..72d0ae8e 100644 --- a/docs/build/p-bwqiz0t6.entry.js +++ b/docs/build/p-wlyhrdjt.entry.js @@ -1 +1 @@ -import{r as t,c as s,h as e,H as i,g as a}from"./p-24078e83.js";import{d as c,f as l}from"./p-30ecf6c3.js";const r=class{constructor(e){t(this,e),this.empty=!0,this.filter=c(t=>{const s=new RegExp(t,"ig");if(0===this.data.length)return console.warn("No data was passed to calcite-filter.\n The data property expects an array of objects"),void this.calciteFilterChange.emit([]);const e=(t,s)=>{let i=!1;return l(t,t=>{"function"!=typeof t&&(Array.isArray(t)||"object"==typeof t&&null!==t?e(t,s)&&(i=!0):s.test(t)&&(i=!0))}),i},i=this.data.filter(t=>e(t,s));this.calciteFilterChange.emit(i)},250),this.inputHandler=t=>{const s=t.target;this.empty=""===s.value,this.filter(s.value)},this.clear=()=>{this.el.shadowRoot.querySelector("input").value="",this.empty=!0,this.calciteFilterChange.emit(this.data)},this.calciteFilterChange=s(this,"calciteFilterChange",7)}render(){return e(i,null,e("label",null,e("input",{type:"text",value:"",placeholder:this.textPlaceholder,onInput:this.inputHandler,"aria-label":this.textLabel||"filter"}),e("div",{class:"search-icon"},e("calcite-icon",{scale:"s",icon:"search"}))),this.empty?null:e("button",{onClick:this.clear,class:"clear-button","aria-label":"Clear filter"},e("calcite-icon",{icon:"x"})))}get el(){return a(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;padding:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-half);width:100%}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}label{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-quarter);overflow:hidden;position:relative;width:100%}input[type=text]{background-color:transparent;border:0;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);margin-bottom:calc(var(--calcite-app-cap-spacing-minimum) * 2);padding:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-quarter) var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-plus-half);-webkit-transition:padding var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:padding var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:padding var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:padding var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);width:100%}input[type=text]::-ms-clear{display:none}input[type=text]:focus{border-color:var(--calcite-app-foreground-active);-webkit-box-shadow:0 calc(var(--calcite-app-cap-spacing-minimum) * 2) 0 var(--calcite-app-foreground-active);box-shadow:0 calc(var(--calcite-app-cap-spacing-minimum) * 2) 0 var(--calcite-app-foreground-active);outline:none;padding-left:var(--calcite-app-side-spacing-quarter);padding-right:var(--calcite-app-side-spacing-quarter)}.search-icon{color:var(--calcite-app-foreground-subtle);display:-ms-flexbox;display:flex;left:0;position:absolute;-webkit-transition:left var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), opacity var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:left var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), opacity var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}.clear-button{color:var(--calcite-app-foreground);background:none;border:0;cursor:pointer}.clear-button:hover,.clear-button:focus{color:var(--calcite-app-foreground-hover)}.calcite--rtl input[type=text]{padding-left:var(--calcite-app-side-spacing-quarter);padding-right:var(--calcite-app-side-spacing-plus-half)}.calcite--rtl .search-icon{left:unset;right:0}input[type=text]:focus~.search-icon{left:calc(var(--calcite-app-icon-size) * -1);opacity:0}"}};export{r as calcite_filter}; \ No newline at end of file +import{r as t,c as s,h as e,H as i,g as a}from"./p-323e88a0.js";import{d as c,f as l}from"./p-30ecf6c3.js";const r=class{constructor(e){t(this,e),this.empty=!0,this.filter=c(t=>{const s=new RegExp(t,"ig");if(0===this.data.length)return console.warn("No data was passed to calcite-filter.\n The data property expects an array of objects"),void this.calciteFilterChange.emit([]);const e=(t,s)=>{let i=!1;return l(t,t=>{"function"!=typeof t&&(Array.isArray(t)||"object"==typeof t&&null!==t?e(t,s)&&(i=!0):s.test(t)&&(i=!0))}),i},i=this.data.filter(t=>e(t,s));this.calciteFilterChange.emit(i)},250),this.inputHandler=t=>{const s=t.target;this.empty=""===s.value,this.filter(s.value)},this.clear=()=>{this.el.shadowRoot.querySelector("input").value="",this.empty=!0,this.calciteFilterChange.emit(this.data)},this.calciteFilterChange=s(this,"calciteFilterChange",7)}render(){return e(i,null,e("label",null,e("input",{type:"text",value:"",placeholder:this.textPlaceholder,onInput:this.inputHandler,"aria-label":this.textLabel||"filter"}),e("div",{class:"search-icon"},e("calcite-icon",{scale:"s",icon:"search"}))),this.empty?null:e("button",{onClick:this.clear,class:"clear-button","aria-label":"Clear filter"},e("calcite-icon",{icon:"x"})))}get el(){return a(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;padding:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-half);width:100%}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}label{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-quarter);overflow:hidden;position:relative;width:100%}input[type=text]{background-color:transparent;border:0;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);margin-bottom:calc(var(--calcite-app-cap-spacing-minimum) * 2);padding:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-quarter) var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-plus-half);-webkit-transition:padding var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:padding var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:padding var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:padding var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);width:100%}input[type=text]::-ms-clear{display:none}input[type=text]:focus{border-color:var(--calcite-app-foreground-active);-webkit-box-shadow:0 calc(var(--calcite-app-cap-spacing-minimum) * 2) 0 var(--calcite-app-foreground-active);box-shadow:0 calc(var(--calcite-app-cap-spacing-minimum) * 2) 0 var(--calcite-app-foreground-active);outline:none;padding-left:var(--calcite-app-side-spacing-quarter);padding-right:var(--calcite-app-side-spacing-quarter)}.search-icon{color:var(--calcite-app-foreground-subtle);display:-ms-flexbox;display:flex;left:0;position:absolute;-webkit-transition:left var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), opacity var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:left var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), opacity var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}.clear-button{color:var(--calcite-app-foreground);background:none;border:0;cursor:pointer}.clear-button:hover,.clear-button:focus{color:var(--calcite-app-foreground-hover)}.calcite--rtl input[type=text]{padding-left:var(--calcite-app-side-spacing-quarter);padding-right:var(--calcite-app-side-spacing-plus-half)}.calcite--rtl .search-icon{left:unset;right:0}input[type=text]:focus~.search-icon{left:calc(var(--calcite-app-icon-size) * -1);opacity:0}"}};export{r as calcite_filter}; \ No newline at end of file diff --git a/docs/build/p-xnfq7t4i.entry.js b/docs/build/p-xnfq7t4i.entry.js deleted file mode 100644 index 6abf912d..00000000 --- a/docs/build/p-xnfq7t4i.entry.js +++ /dev/null @@ -1 +0,0 @@ -import{r as t,c as s,h as e,H as i,g as a}from"./p-24078e83.js";import{I as c}from"./p-4d533d6f.js";import{C as h,I as l}from"./p-a138cb96.js";const n=class{constructor(e){t(this,e),this.compact=!1,this.disabled=!1,this.disableDeselect=!1,this.icon=null,this.selected=!1,this.pickListClickHandler=t=>{this.disabled||this.disableDeselect&&this.selected||(this.shiftPressed=t.shiftKey,this.selected=!this.selected)},this.pickListKeyDownHandler=t=>{if(" "===t.key){if(t.preventDefault(),this.disableDeselect&&this.selected)return;this.selected=!this.selected}},this.calciteListItemChange=s(this,"calciteListItemChange",7),this.calciteListItemPropsUpdated=s(this,"calciteListItemPropsUpdated",7),this.calciteListItemValueChange=s(this,"calciteListItemValueChange",7)}metadataWatchHandler(){this.calciteListItemPropsUpdated.emit()}selectedWatchHandler(){this.calciteListItemChange.emit({item:this.el,value:this.value,selected:this.selected,shiftPressed:this.shiftPressed}),this.shiftPressed=!1}textDescriptionWatchHandler(){this.calciteListItemPropsUpdated.emit()}textLabelWatchHandler(){this.calciteListItemPropsUpdated.emit()}valueWatchHandler(t,s){this.calciteListItemValueChange.emit({oldValue:s,newValue:t})}async toggleSelected(t){this.disabled||(this.selected="boolean"==typeof t?t:!this.selected)}renderIcon(){const{compact:t,icon:s,selected:i}=this;return!s||t?null:e("span",{class:h.icon},e("calcite-icon",{scale:"s",icon:s===c.square?i?l.checked:l.unchecked:i?l.selected:l.unselected}))}render(){const t=this.textDescription&&!this.compact?e("span",{class:h.description},this.textDescription):null;return e(i,{role:"menuitemcheckbox","aria-checked":this.selected.toString()},e("label",{class:h.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,tabIndex:0,"aria-label":this.textLabel},this.renderIcon(),e("div",{class:h.textContainer},e("span",{class:h.title},this.textLabel),t)),e("div",{class:h.action},e("slot",{name:"secondary-action"})))}get el(){return a(this)}static get watchers(){return{metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],textDescription:["textDescriptionWatchHandler"],textLabel:["textLabelWatchHandler"],value:["valueWatchHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;margin:0 var(--calcite-app-side-spacing-half) var(--calcite-app-cap-spacing-minimum);color:var(--calcite-app-foreground);-webkit-transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:background-color var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);-webkit-animation:calcite-app-fade-in var(--calcite-app-animation-time) var(--calcite-app-easing-function);animation:calcite-app-fade-in var(--calcite-app-animation-time) var(--calcite-app-easing-function)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:hover),:host(:focus){background-color:var(--calcite-app-background-hover)}:host(:last-child){margin-bottom:0;-webkit-box-shadow:0 1px 0 var(--calcite-app-border) inset;box-shadow:0 1px 0 var(--calcite-app-border) inset}.icon{color:var(--calcite-app-foreground-link);-ms-flex:0 0 0%;flex:0 0 0%;line-height:0;width:var(--calcite-app-icon-size);margin:0 var(--calcite-app-side-spacing-half)}.label{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--calcite-app-cap-spacing-three-quarters) var(--calcite-app-side-spacing-half);-ms-flex-align:center;align-items:center;cursor:pointer}.label:focus{outline-offset:var(--calcite-app-outline-inset)}.text-container{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;overflow:hidden;pointer-events:none;padding:0 var(--calcite-app-side-spacing-half)}.title{font-size:var(--calcite-app-font-size-0);display:-webkit-box;overflow:hidden;white-space:pre-wrap;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical}.description{color:var(--calcite-app-foreground-subtle);font-family:var(--calcite-app-font-family-monospace);font-size:var(--calcite-app-font-size--1);margin-top:var(--calcite-app-cap-spacing-quarter);display:-webkit-box;overflow:hidden;white-space:pre-wrap;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical}.action{-ms-flex:0 0 0%;flex:0 0 0%;justify-self:flex-end;margin:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-half)}"}};export{n as calcite_pick_list_item}; \ No newline at end of file diff --git a/docs/build/p-ypstg1b7.system.entry.js b/docs/build/p-ypstg1b7.system.entry.js deleted file mode 100644 index 06e442a8..00000000 --- a/docs/build/p-ypstg1b7.system.entry.js +++ /dev/null @@ -1,8 +0,0 @@ -var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{s(i.next(e))}catch(t){o(t)}}function l(e){try{s(i["throw"](e))}catch(t){o(t)}}function s(e){e.done?n(e.value):r(e.value).then(a,l)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return s([e,t])}}function s(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1] - * @author owenm - * @license MIT - */ -function s(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){s=function(e){return typeof e}}else{s=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return s(e)}function u(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function c(){c=Object.assign||function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}function h(e,t){if(e==null)return{};var n=d(e,t);var i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,i))continue;n[i]=e[i]}}return n}var p="1.10.2";function v(e){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(e)}}var g=v(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var m=v(/Edge/i);var b=v(/firefox/i);var y=v(/safari/i)&&!v(/chrome/i)&&!v(/android/i);var w=v(/iP(ad|od|hone)/i);var E=v(/chrome/i)&&v(/android/i);var D={capture:false,passive:false};function _(e,t,n){e.addEventListener(t,n,!g&&D)}function S(e,t,n){e.removeEventListener(t,n,!g&&D)}function T(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(n){return false}}return false}function C(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function x(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&T(e,t):T(e,t))||i&&e===n){return e}if(e===n)break}while(e=C(e))}return null}var I=/\s+/g;function O(e,t,n){if(e&&t){if(e.classList){e.classList[n?"add":"remove"](t)}else{var i=(" "+e.className+" ").replace(I," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(I," ")}}}function A(e,t,n){var i=e&&e.style;if(i){if(n===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){n=e.currentStyle}return t===void 0?n:n[t]}else{if(!(t in i)&&t.indexOf("webkit")===-1){t="-webkit-"+t}i[t]=n+(typeof n==="string"?"":"px")}}}function P(e,t){var n="";if(typeof e==="string"){n=e}else{do{var i=A(e,"transform");if(i&&i!=="none"){n=i+" "+n}}while(!t&&(e=e.parentNode))}var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function M(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n){for(;r=o}else{a=r<=o}if(!a)return i;if(i===N())break;i=B(i,false)}return false}function Y(e,t,n){var i=0,r=0,o=e.children;while(r2&&arguments[2]!==undefined?arguments[2]:{},r=i.evt,o=h(i,["evt"]);ee.pluginEvent.bind(Ze)(t,n,f({dragEl:re,parentEl:oe,ghostEl:ae,rootEl:le,nextEl:se,lastDownEl:ue,cloneEl:ce,cloneHidden:fe,dragStarted:xe,putSortable:me,activeSortable:Ze.active,originalEvent:r,oldIndex:de,oldDraggableIndex:pe,newIndex:he,newDraggableIndex:ve,hideGhostForTarget:Ge,unhideGhostForTarget:Ve,cloneNowHidden:function e(){fe=true},cloneNowShown:function e(){fe=false},dispatchSortableEvent:function e(t){ie({sortable:n,name:t,originalEvent:r})}},o))};function ie(e){te(f({putSortable:me,cloneEl:ce,targetEl:re,rootEl:le,oldIndex:de,oldDraggableIndex:pe,newIndex:he,newDraggableIndex:ve},e))}var re,oe,ae,le,se,ue,ce,fe,de,he,pe,ve,ge,me,be=false,ye=false,we=[],Ee,De,_e,Se,Te,Ce,xe,Ie,Oe,Ae=false,Pe=false,Me,Ne,ke=[],Xe=false,Ye=[];var Fe=typeof document!=="undefined",Re=w,Le=m||g?"cssFloat":"float",He=Fe&&!E&&!w&&"draggable"in document.createElement("div"),Be=function(){if(!Fe)return;if(g){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),je=function e(t,n){var i=A(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=Y(t,0,n),a=Y(t,1,n),l=o&&A(o),s=a&&A(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+k(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+k(a).width;if(i.display==="flex"){return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal"}if(i.display==="grid"){return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(o&&l["float"]&&l["float"]!=="none"){var f=l["float"]==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=r&&i[Le]==="none"||a&&i[Le]==="none"&&u+c>r)?"vertical":"horizontal"},Ue=function e(t,n,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,l=i?n.left:n.top,s=i?n.right:n.bottom,u=i?n.width:n.height;return r===l||o===s||r+a/2===l+u/2},We=function e(t,n){var i;we.some((function(e){if(F(e))return;var r=k(e),o=e[K].options.emptyInsertThreshold,a=t>=r.left-o&&t<=r.right+o,l=n>=r.top-o&&n<=r.bottom+o;if(o&&a&&l){return i=e}}));return i},ze=function e(t){function n(e,t){return function(i,r,o,a){var l=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(e==null&&(t||l)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return n(e(i,r,o,a),t)(i,r,o,a)}else{var s=(t?i:r).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var i={};var r=t.group;if(!r||s(r)!="object"){r={name:r}}i.name=r.name;i.checkPull=n(r.pull,true);i.checkPut=n(r.put);i.revertClone=r.revertClone;t.group=i},Ge=function e(){if(!Be&&ae){A(ae,"display","none")}},Ve=function e(){if(!Be&&ae){A(ae,"display","")}};if(Fe){document.addEventListener("click",(function(e){if(ye){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();ye=false;return false}}),true)}var qe=function e(t){if(re){t=t.touches?t.touches[0]:t;var n=We(t.clientX,t.clientY);if(n){var i={};for(var r in t){if(t.hasOwnProperty(r)){i[r]=t[r]}}i.target=i.rootEl=n;i.preventDefault=void 0;i.stopPropagation=void 0;n[K]._onDragOver(i)}}};var Ke=function e(t){if(re){re.parentNode[K]._isOutsideThisEl(t.target)}};function Ze(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=c({},t);e[K]=this;var n={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return je(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,n){t.setData("Text",n.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ze.supportPointer!==false&&"PointerEvent"in window,emptyInsertThreshold:5};ee.initializePlugins(this,e,n);for(var i in n){!(i in t)&&(t[i]=n[i])}ze(t);for(var r in this){if(r.charAt(0)==="_"&&typeof this[r]==="function"){this[r]=this[r].bind(this)}}this.nativeDraggable=t.forceFallback?false:He;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){_(e,"pointerdown",this._onTapStart)}else{_(e,"mousedown",this._onTapStart);_(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){_(e,"dragover",this);_(e,"dragenter",this)}we.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);c(this,Z())}Ze.prototype={constructor:Ze,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){Ie=null}},_getDirection:function e(t,n){return typeof this.options.direction==="function"?this.options.direction.call(this,t,n,re):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var n=this,i=this.el,r=this.options,o=r.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=r.filter;ot(i);if(re){return}if(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled){return}if(u.isContentEditable){return}s=x(s,r.draggable,i,false);if(s&&s.animated){return}if(ue===s){return}de=R(s);pe=R(s,r.draggable);if(typeof c==="function"){if(c.call(this,t,s,this)){ie({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:i,fromEl:i});ne("filter",n,{evt:t});o&&t.cancelable&&t.preventDefault();return}}else if(c){c=c.split(",").some((function(e){e=x(u,e.trim(),i,false);if(e){ie({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:i,toEl:i});ne("filter",n,{evt:t});return true}}));if(c){o&&t.cancelable&&t.preventDefault();return}}if(r.handle&&!x(u,r.handle,i,false)){return}this._prepareDragStart(t,l,s)},_prepareDragStart:function e(t,n,i){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(i&&!re&&i.parentNode===o){var u=k(i);le=o;re=i;oe=re.parentNode;se=re.nextSibling;ue=i;ge=a.group;Ze.dragged=re;Ee={target:re,clientX:(n||t).clientX,clientY:(n||t).clientY};Te=Ee.clientX-u.left;Ce=Ee.clientY-u.top;this._lastX=(n||t).clientX;this._lastY=(n||t).clientY;re.style["will-change"]="all";s=function e(){ne("delayEnded",r,{evt:t});if(Ze.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents();if(!b&&r.nativeDraggable){re.draggable=true}r._triggerDragStart(t,n);ie({sortable:r,name:"choose",originalEvent:t});O(re,a.chosenClass,true)};a.ignore.split(",").forEach((function(e){M(re,e.trim(),Je)}));_(l,"dragover",qe);_(l,"mousemove",qe);_(l,"touchmove",qe);_(l,"mouseup",r._onDrop);_(l,"touchend",r._onDrop);_(l,"touchcancel",r._onDrop);if(b&&this.nativeDraggable){this.options.touchStartThreshold=4;re.draggable=true}ne("delayStart",this,{evt:t});if(a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(m||g))){if(Ze.eventCanceled){this._onDrop();return}_(l,"mouseup",r._disableDelayedDrag);_(l,"touchend",r._disableDelayedDrag);_(l,"touchcancel",r._disableDelayedDrag);_(l,"mousemove",r._delayedDragTouchMoveHandler);_(l,"touchmove",r._delayedDragTouchMoveHandler);a.supportPointer&&_(l,"pointermove",r._delayedDragTouchMoveHandler);r._dragStartTimer=setTimeout(s,a.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var n=t.touches?t.touches[0]:t;if(Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){re&&Je(re);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag);S(t,"touchend",this._disableDelayedDrag);S(t,"touchcancel",this._disableDelayedDrag);S(t,"mousemove",this._delayedDragTouchMoveHandler);S(t,"touchmove",this._delayedDragTouchMoveHandler);S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,n){n=n||t.pointerType=="touch"&&t;if(!this.nativeDraggable||n){if(this.options.supportPointer){_(document,"pointermove",this._onTouchMove)}else if(n){_(document,"touchmove",this._onTouchMove)}else{_(document,"mousemove",this._onTouchMove)}}else{_(re,"dragend",this);_(le,"dragstart",this._onDragStart)}try{if(document.selection){at((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(i){}},_dragStarted:function e(t,n){be=false;if(le&&re){ne("dragStarted",this,{evt:n});if(this.nativeDraggable){_(document,"dragover",Ke)}var i=this.options;!t&&O(re,i.dragClass,false);O(re,i.ghostClass,true);Ze.active=this;t&&this._appendGhost();ie({sortable:this,name:"start",originalEvent:n})}else{this._nulling()}},_emulateDragOver:function e(){if(De){this._lastX=De.clientX;this._lastY=De.clientY;Ge();var t=document.elementFromPoint(De.clientX,De.clientY);var n=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(De.clientX,De.clientY);if(t===n)break;n=t}re.parentNode[K]._isOutsideThisEl(t);if(n){do{if(n[K]){var i=void 0;i=n[K]._onDragOver({clientX:De.clientX,clientY:De.clientY,target:t,rootEl:n});if(i&&!this.options.dragoverBubble){break}}t=n}while(n=n.parentNode)}Ve()}},_onTouchMove:function e(t){if(Ee){var n=this.options,i=n.fallbackTolerance,r=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=ae&&P(ae,true),l=ae&&a&&a.a,s=ae&&a&&a.d,u=Re&&Ne&&L(Ne),c=(o.clientX-Ee.clientX+r.x)/(l||1)+(u?u[0]-ke[0]:0)/(l||1),f=(o.clientY-Ee.clientY+r.y)/(s||1)+(u?u[1]-ke[1]:0)/(s||1);if(!Ze.active&&!be){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0){ie({rootEl:oe,name:"add",toEl:oe,fromEl:le,originalEvent:t});ie({sortable:this,name:"remove",toEl:oe,originalEvent:t});ie({rootEl:oe,name:"sort",toEl:oe,fromEl:le,originalEvent:t});ie({sortable:this,name:"sort",toEl:oe,originalEvent:t})}me&&me.save()}else{if(he!==de){if(he>=0){ie({sortable:this,name:"update",toEl:oe,originalEvent:t});ie({sortable:this,name:"sort",toEl:oe,originalEvent:t})}}}if(Ze.active){if(he==null||he===-1){he=de;ve=pe}ie({sortable:this,name:"end",toEl:oe,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){ne("nulling",this);le=re=oe=ae=se=ce=ue=fe=Ee=De=xe=he=ve=de=pe=Ie=Oe=me=ge=Ze.dragged=Ze.ghost=Ze.clone=Ze.active=null;Ye.forEach((function(e){e.checked=true}));Ye.length=_e=Se=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(re){this._onDragOver(t);Qe(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],n,i=this.el.children,r=0,o=i.length,a=this.options;for(;ri.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}function nt(e,t,n,i,r,o,a,l){var s=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,f=i?n.bottom:n.right,d=false;if(!a){if(l&&Mec+u*o/2:sf-Me){return-Oe}}else{d=true}}else{if(s>c+u*(1-r)/2&&sf-u*o/2){return s>c+u/2?1:-1}}return 0}function it(e){if(R(re)this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer()))}get el(){return a(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;background-color:var(--calcite-app-background-clear)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.button{font-family:var(--calcite-app-font-family);display:-ms-flexbox;display:flex;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground);background-color:var(--calcite-app-background);outline-offset:var(--calcite-app-outline-inset);padding:var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing);margin:0;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;border:none;width:auto;cursor:pointer;font-size:var(--calcite-app-font-size--1);line-height:normal;-webkit-transition:color 125ms ease-in-out, fill 125ms ease-in-out, background-color 125ms ease-in-out;transition:color 125ms ease-in-out, fill 125ms ease-in-out, background-color 125ms ease-in-out;text-align:unset;position:relative}.button.button--compact{padding-left:var(--calcite-app-side-spacing-quarter);padding-right:var(--calcite-app-side-spacing-quarter)}.button:hover,.button:focus{background-color:var(--calcite-app-background-hover);color:var(--calcite-app-foreground-hover);fill:var(--calcite-app-foreground-hover)}.button:focus{outline-offset:var(--calcite-app-outline-inset)}.button .icon-container{max-width:var(--calcite-app-icon-size);max-height:var(--calcite-app-icon-size);margin:0;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;pointer-events:none}.button .text-container{line-height:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:0;margin-right:0;opacity:0;width:0;-webkit-transition:opacity var(--calcite-app-animation-time) var(--calcite-app-easing-function), margin var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), width var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:opacity var(--calcite-app-animation-time) var(--calcite-app-easing-function), margin var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), width var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}.button .text-container--visible{-ms-flex:1 1 auto;flex:1 1 auto;margin:0 var(--calcite-app-side-spacing-half);opacity:1;width:auto}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{color:var(--calcite-app-foreground-active);fill:var(--calcite-app-foreground-active);background-color:var(--calcite-app-background-active)}:host([appearance=clear]) .button{background-color:var(--calcite-app-background-clear);-webkit-transition:-webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:-webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);transition:box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), -webkit-box-shadow var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:var(--calcite-app-background-clear);-webkit-box-shadow:0 0 0 2px var(--calcite-app-border-hover) inset;box-shadow:0 0 0 2px var(--calcite-app-border-hover) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{color:var(--calcite-app-foreground-active);fill:var(--calcite-app-foreground-active);background-color:var(--calcite-app-background-active);-webkit-box-shadow:none;box-shadow:none}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:var(--calcite-app-background-clear)}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-app-background)}:host([loading]) calcite-loader[inline]{color:var(--calcite-app-foreground-subtle);margin-right:0}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-app-disabled-opacity);background-color:var(--calcite-app-background)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{opacity:var(--calcite-app-disabled-opacity);background-color:var(--calcite-app-background-active)}:host([indicator]) .button--text-visible{padding-right:var(--calcite-app-side-spacing)}:host([indicator]) .button::after{content:\"\";border-radius:50%;width:var(--calcite-app-side-spacing-half);height:var(--calcite-app-side-spacing-half);border:var(--calcite-app-side-spacing-eighth) solid var(--calcite-app-background);background-color:var(--calcite-app-foreground-active);position:absolute;bottom:var(--calcite-app-cap-spacing-three-quarters);right:var(--calcite-app-side-spacing-third);z-index:1}:host([indicator]) .calcite--rtl::after{right:unset;left:var(--calcite-app-side-spacing-quarter)}:host([indicator]) .button--text-visible.calcite--rtl{padding-right:var(--calcite-app-side-spacing-three-quarters);padding-left:var(--calcite-app-side-spacing)}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-app-background-hover)}:host([indicator][active]) .button::after{border-color:var(--calcite-app-background-active)}:host([indicator]) .button--text-visible::after{bottom:unset;right:var(--calcite-app-side-spacing-half)}:host([indicator]) .button--text-visible.calcite--rtl::after{right:unset;left:var(--calcite-app-side-spacing-half)}"}};function r({parent:t,expanded:e}){t.querySelectorAll("calcite-action").forEach(t=>t.textEnabled=e)}const d=({expanded:t,textExpand:n,textCollapse:a,toggleExpand:s,el:l,layout:o})=>{const c=t?a:n,r=["chevrons-left","chevrons-right"];"rtl"===i(l)&&r.reverse();const d="trailing"===(o||function(t){const e=t.closest("calcite-shell-panel");if(e)return e.layout}(l)||"leading");return e("calcite-action",{onClick:s,textEnabled:t,text:c},e("calcite-icon",{scale:"s",icon:t?d?r[1]:r[0]:d?r[0]:r[1]}))},p=class{constructor(e){t(this,e),this.expand=!0,this.expanded=!1,this.textExpand="Expand",this.textCollapse="Collapse",this.toggleExpand=()=>{this.expanded=!this.expanded},this.calciteActionBarToggle=s(this,"calciteActionBarToggle",7)}expandHandler(t){t&&r({parent:this.el,expanded:this.expanded})}expandedHandler(t){this.expand&&r({parent:this.el,expanded:t}),this.calciteActionBarToggle.emit()}componentWillLoad(){const{el:t,expand:e,expanded:n}=this;e&&r({parent:t,expanded:n})}renderBottomActionGroup(){const{expanded:t,expand:n,textExpand:a,textCollapse:s,el:i,layout:l,toggleExpand:o}=this,c=n?e(d,{expanded:t,textExpand:a,textCollapse:s,el:i,layout:l,toggleExpand:o}):null;return this.el.querySelector("[slot=bottom-actions]")||c?e("calcite-action-group",{class:"action-group--bottom"},e("slot",{name:"bottom-actions"}),c):null}render(){return e(n,null,e("slot",null),this.renderBottomActionGroup())}get el(){return a(this)}static get watchers(){return{expand:["expandHandler"],expanded:["expandedHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{-ms-flex-item-align:stretch;align-self:stretch;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;max-width:15vw;overflow-y:auto;pointer-events:auto}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-bottom:1px solid var(--calcite-app-border)}::slotted(calcite-action-group:last-child){border-bottom:none}.action-group--bottom{padding-bottom:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end}"}},h=class{constructor(e){t(this,e)}render(){return e(n,null,e("slot",null))}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0;padding:var(--calcite-app-cap-spacing-half) 0}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:first-child){padding-top:0}::slotted(calcite-action){display:-ms-flexbox;display:flex;width:100%}"}},x=class{constructor(e){t(this,e),this.expand=!0,this.expanded=!1,this.textExpand="Expand",this.textCollapse="Collapse",this.toggleExpand=()=>{this.expanded=!this.expanded},this.calciteActionPadToggle=s(this,"calciteActionPadToggle",7)}expandHandler(t){t&&r({parent:this.el,expanded:this.expanded})}expandedHandler(t){this.expand&&r({parent:this.el,expanded:t}),this.calciteActionPadToggle.emit()}componentWillLoad(){const{el:t,expand:e,expanded:n}=this;e&&r({parent:t,expanded:n})}renderBottomActionGroup(){const{expanded:t,expand:n,textExpand:a,textCollapse:s,el:i,layout:l,toggleExpand:o}=this,c=n?e(d,{expanded:t,textExpand:a,textCollapse:s,el:i,layout:l,toggleExpand:o}):null;return c?e("calcite-action-group",{class:"action-group--bottom"},c):null}render(){return e(n,null,e("slot",null),this.renderBottomActionGroup())}get el(){return a(this)}static get watchers(){return{expand:["expandHandler"],expanded:["expandedHandler"]}}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:var(--calcite-app-shadow-2);box-shadow:var(--calcite-app-shadow-2);max-width:15vw;overflow-y:auto;-webkit-animation:calcite-app-fade-in var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function);animation:calcite-app-fade-in var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-bottom:1px solid var(--calcite-app-border);padding-bottom:0;padding-top:0}::slotted(calcite-action-group:last-child){border-bottom:none}.action-group--bottom{padding-bottom:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end}"}};export{c as calcite_action,p as calcite_action_bar,h as calcite_action_group,x as calcite_action_pad}; \ No newline at end of file diff --git a/docs/build/p-zxctfi66.entry.js b/docs/build/p-zxctfi66.entry.js new file mode 100644 index 00000000..c1494a38 --- /dev/null +++ b/docs/build/p-zxctfi66.entry.js @@ -0,0 +1 @@ +import{r as t,h as s,H as e,g as r}from"./p-323e88a0.js";import{g as l}from"./p-88b03842.js";import{c as i}from"./p-840e89a3.js";import{C as n}from"./p-ffc077bf.js";const o=class{constructor(s){t(this,s)}render(){const{el:t,textGroupTitle:r}=this,o="rtl"===l(t),a={"container--indented":null!==t.querySelector("[slot=parent-item]"),[n.rtl]:o};return s(e,null,r?s("h3",{class:"heading"},r):null,s("slot",{name:"parent-item"}),s("section",{class:i("container",a)},s("slot",null)))}get el(){return r(this)}static get style(){return":host{-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{background-color:var(--calcite-app-background-clear);display:block;margin-bottom:var(--calcite-app-cap-spacing-quarter)}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-app-foreground);fill:var(--calcite-app-foreground)}.heading{padding:0;margin:0;font-weight:var(--calcite-app-font-weight-demi)}.header .heading{-ms-flex:1 0 auto;flex:1 0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-3)}h2.heading{font-size:var(--calcite-app-font-size-2)}h3.heading{font-size:var(--calcite-app-font-size-1)}h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host(:last-child){margin-bottom:0}h3.heading{font-size:var(--calcite-app-font-size-0);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing)}.container--indented{margin-left:var(--calcite-app-side-spacing-plus-half)}.calcite--rtl.container--indented{margin-left:0;margin-right:var(--calcite-app-side-spacing-plus-half)}"}};export{o as calcite_pick_list_group}; \ No newline at end of file diff --git a/docs/iframe.html b/docs/iframe.html index 4f7118a4..3fd38edd 100644 --- a/docs/iframe.html +++ b/docs/iframe.html @@ -76,4 +76,4 @@ }

No Preview

Sorry, but you either have no stories or none are selected somehow.

  • Please check the Storybook config.
  • Try reloading the page.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

\ No newline at end of file + }

No Preview

Sorry, but you either have no stories or none are selected somehow.

  • Please check the Storybook config.
  • Try reloading the page.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index cbde1ab4..b9d4aed2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,4 +16,4 @@ }
\ No newline at end of file + }
\ No newline at end of file diff --git a/docs/main.1eb3b4d565b29bfb7b0f.bundle.js b/docs/main.1eb3b4d565b29bfb7b0f.bundle.js new file mode 100644 index 00000000..bfe8ac39 --- /dev/null +++ b/docs/main.1eb3b4d565b29bfb7b0f.bundle.js @@ -0,0 +1,365 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1562:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(module){var _storybook_html__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(205),_storybook_addon_centered_html__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(515),_storybook_addon_centered_html__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_storybook_addon_centered_html__WEBPACK_IMPORTED_MODULE_1__),_theme__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(516);Object(_storybook_html__WEBPACK_IMPORTED_MODULE_0__.addDecorator)(_storybook_addon_centered_html__WEBPACK_IMPORTED_MODULE_1___default.a),Object(_storybook_html__WEBPACK_IMPORTED_MODULE_0__.addParameters)({backgrounds:[{name:"Light",value:"#f8f8f8",default:!0}],options:{theme:_theme__WEBPACK_IMPORTED_MODULE_2__.a,storySort:(a,b)=>{const sectionA=a[1].id.split("-")[0];return b[1].id.split("-")[0].localeCompare(sectionA)}}}),Object(_storybook_html__WEBPACK_IMPORTED_MODULE_0__.configure)(__webpack_require__(1595),module)}.call(this,__webpack_require__(1563)(module))},1595:function(module,exports,__webpack_require__){var map={"./1-introduction.stories.mdx":1596,"./2-getting-started.stories.mdx":1617,"./3-contributing.stories.mdx":1618,"./4-code-of-conduct.stories.mdx":1619,"./5-licensing.stories.mdx":1620,"./components/calcite-action-bar/calcite-action-bar.stories.ts":1621,"./components/calcite-action-pad/calcite-action-pad.stories.ts":1622,"./components/calcite-action/calcite-action.stories.ts":1623,"./components/calcite-block/calcite-block.stories.ts":1611,"./components/calcite-flow/calcite-flow.stories.ts":1610,"./components/calcite-panel/calcite-panel.stories.ts":1612,"./components/calcite-pick-list/calcite-pick-list.stories.ts":1624,"./components/calcite-shell/calcite-shell.stories.ts":1613,"./components/calcite-tip-manager/calcite-tip-manager.stories.ts":1614,"./components/calcite-tip/calcite-tip.stories.ts":1615,"./components/calcite-value-list/calcite-value-list.stories.ts":1625};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=1595},1596:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"__page",(function(){return __page}));__webpack_require__(3),__webpack_require__(50),__webpack_require__(39),__webpack_require__(11),__webpack_require__(4),__webpack_require__(155),__webpack_require__(156),__webpack_require__(5),__webpack_require__(44),__webpack_require__(0);var _mdx_js_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(8),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(41);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _extends(){return(_extends=Object.assign||function(target){for(var source,i=1;i Attributes = () => {\n const group = "Flow";\n\n return [\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue, group)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue, group)\n }\n ];\n};\n\nconst createFlowItemAttributes: (group: string) => Attributes = (group) => {\n return [\n {\n name: "disabled",\n value: boolean("disabled", false, group)\n },\n {\n name: "heading",\n value: text("heading", "Heading", group)\n },\n {\n name: "loading",\n value: boolean("loading", false, group)\n },\n {\n name: "menu-open",\n value: boolean("menuOpen", false, group)\n },\n {\n name: "summary",\n value: text("summary", "Summary", group)\n },\n {\n name: "text-back",\n value: text("textBack", "Back", group)\n },\n {\n name: "text-open",\n value: text("textOpen", "Open", group)\n }\n ];\n};\n\nconst menuActionsHTML = dedent`\n
\n \n \n \n
\n`;\n\nconst footerActionsHTML = dedent`\n Save\n Cancel\n`;\n\nfunction createItemHTML(content: string): string {\n return `${menuActionsHTML}${content}${footerActionsHTML}`;\n}\n\nconst item1HTML = dedent`\n

\n Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae.\n

\n

\n Ipsum nostra tempus etiam augue ullamcorper scelerisque sapien potenti erat nisi gravida. Vehicula sem tristique sed. Nullam, sociis imperdiet ullamcorper? Dapibus fames primis ridiculus vulputate, habitant inceptos! Nunc torquent lorem urna vehicula volutpat donec nec. Orci massa eu nec donec enim fames, faucibus quam aenean. Laoreet tellus tempor quisque ornare lobortis praesent erat senectus natoque consectetur donec imperdiet. Quis sem cum gravida dictumst a pretium purus aptent amet id. Orci habitasse, praesent facilisis condimentum. Nec elit turpis leo.\n

\n

\n Tempus per volutpat diam tempor mauris parturient vulputate leo id libero quisque. Mattis aliquam dictum venenatis fringilla. Taciti venenatis, ultrices sollicitudin consequat. Sapien fusce est iaculis potenti ut auctor potenti. Nisi malesuada feugiat vulputate vitae porttitor. Nullam nullam nullam accumsan quis magna in. Elementum, nascetur gravida cras scelerisque inceptos aenean inceptos potenti. Lobortis condimentum accumsan posuere curabitur fermentum diam, natoque quisque. Eget placerat sed aptent orci urna fusce magnis. Vel lacus magnis nunc.\n

\n

\n Magna ligula neque phasellus. Velit duis auctor etiam nullam sociis nam neque quis. Donec fusce bibendum quam egestas sociosqu orci tempus vulputate egestas penatibus urna sociosqu. Nulla nam potenti diam egestas litora lobortis tristique maecenas pulvinar maecenas vitae tortor. Lacus purus facilisi est accumsan varius gravida facilisis rutrum tortor potenti rhoncus id. Ipsum praesent tristique blandit taciti morbi torquent pharetra fermentum aenean!\n

\n

\n Congue eu duis integer nisl molestie nostra dis auctor lobortis tellus parturient. Porttitor dis curae; maecenas quis praesent ridiculus posuere mus. Dictumst, vivamus fames semper congue fusce! Nunc placerat enim fermentum posuere magna justo habitasse. Tristique placerat mauris, per nulla gravida dui urna ut nec venenatis! Non lacus iaculis quisque, neque erat integer. Duis tortor ad habitant turpis dis eu mollis at facilisis. Tellus nisl amet morbi fringilla mus dui neque himenaeos maecenas platea venenatis. Tristique nisl quisque ad aliquam senectus pulvinar litora.\n

\n`;\n\nconst item2HTML = dedent`\n
    \n
  • Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.
  • \n
  • Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.
  • \n
  • Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.
  • \n
  • Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.
  • \n
\n`;\n\nexport const basic = () =>\n create(\n "calcite-flow",\n createAttributes(),\n `${create("calcite-flow-item", createFlowItemAttributes("Flow Item 1"), createItemHTML(item1HTML))}\n ${create("calcite-flow-item", createFlowItemAttributes("Flow Item 2"), createItemHTML(item2HTML))}`\n );\n',locationsMap:{"components-calcite-flow--basic":{startLoc:{col:21,line:123},endLoc:{col:3,line:129},startBody:{col:21,line:123},endBody:{col:3,line:129}}}},backgrounds:utils.b,docs:{page:utils.d},notes:{flow:Object(utils.c)('# calcite-flow\n\nThe `calcite-flow` component is a series of panels that provides a user with a workflow (eg. editing experience), by which the user can switch from panel to panel of `calcite-flow-item`s.\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Usage\n\n### Basic\n\n#### Basic\n\nRenders a basic flow with a couple `calcite-flow-item`s.\n\n```html\n\n \n \x3c!-- image --\x3e\n \n \n \x3c!-- image --\x3e\n \n\n```\n\n#### Menu-actions and footer-actions\n\nRenders a flow with menu-actions and footer-actions in the form of buttons.\n\n```html\n\n \n
\n \n \n
\n
\n \n \n
\n
\n
\n```\n\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------- | --------- | ----------------------------------------- | ------------------- | ----------- |\n| `theme` | `theme` | Used to set the component\'s color scheme. | `"dark" or "light"` | `undefined` |\n\n\n## Methods\n\n### `back() => Promise`\n\nRemoves the currently active `calcite-flow-item`.\n\n#### Returns\n\nType: `Promise`\n\n\n\n\n## Slots\n\n| Slot | Description |\n| ---- | --------------------------------------------------- |\n| | A slot for adding `calcite-flow-item`s to the flow. |\n\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n'),item:Object(utils.c)('# calcite-flow-item\n\nA `calcite-flow-item` is a child element of `calcite-flow` and lives in a panel with a heading and content.\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ---------------- | ------------------ | ------------------------------------------------------------------------------------------- | --------------------- | ------------ |\n| `beforeBack` | -- | When provided, this method will be called before it is removed from the parent flow. | `() => Promise` | `undefined` |\n| `disabled` | `disabled` | When true, disabled prevents interaction. This state shows items with lower opacity/grayed. | `boolean` | `false` |\n| `heading` | `heading` | Heading text. | `string` | `undefined` |\n| `heightScale` | `height-scale` | Specifies the maxiumum height of the panel that this wraps. | `"l" or "m" or "s"` | `undefined` |\n| `loading` | `loading` | When true, content is waiting to be loaded. This state shows a busy indicator. | `boolean` | `false` |\n| `menuOpen` | `menu-open` | Opens the action menu. | `boolean` | `false` |\n| `showBackButton` | `show-back-button` | Shows a back button in the header. | `boolean` | `false` |\n| `summary` | `summary` | Summary text. A description displayed underneath the heading. | `string` | `undefined` |\n| `textBack` | `text-back` | \'Back\' text string. | `string` | `TEXT.back` |\n| `textClose` | `text-close` | \'Close\' text string for the menu. | `string` | `TEXT.close` |\n| `textOpen` | `text-open` | \'Open\' text string for the menu. | `string` | `TEXT.open` |\n| `theme` | `theme` | Used to set the component\'s color scheme. | `"dark" or "light"` | `undefined` |\n\n\n## Events\n\n| Event | Description | Type |\n| -------------------------- | ---------------------------------------------- | ------------------ |\n| `calciteFlowItemBackClick` | Emitted when the back button has been clicked. | `CustomEvent` |\n\n\n## Slots\n\n| Slot | Description |\n| ------------------ | ------------------------------------------------------------------------------------------------------------------------------- |\n| | A slot for adding content to the flow item. |\n| `"footer-actions"` | A slot for adding `calcite-button`s to the footer. |\n| `"menu-actions"` | A slot for adding `calcite-action`s to a menu under the `...` in the header. These actions are displayed when the menu is open. |\n\n\n## Dependencies\n\n### Depends on\n\n- [calcite-action](../calcite-action)\n- [calcite-panel](../calcite-panel)\n\n### Graph\n```mermaid\ngraph TD;\n calcite-flow-item --\x3e calcite-action\n calcite-flow-item --\x3e calcite-panel\n calcite-panel --\x3e calcite-action\n style calcite-flow-item fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n')}}};const createFlowItemAttributes=group=>[{name:"disabled",value:Object(dist.boolean)("disabled",!1,group)},{name:"heading",value:Object(dist.text)("heading","Heading",group)},{name:"loading",value:Object(dist.boolean)("loading",!1,group)},{name:"menu-open",value:Object(dist.boolean)("menuOpen",!1,group)},{name:"summary",value:Object(dist.text)("summary","Summary",group)},{name:"text-back",value:Object(dist.text)("textBack","Back",group)},{name:"text-open",value:Object(dist.text)("textOpen","Open",group)}],menuActionsHTML=dedent_default.a` +
+ + + +
+`,footerActionsHTML=dedent_default.a` + Save + Cancel +`;function createItemHTML(content){return`${menuActionsHTML}${content}${footerActionsHTML}`}const item1HTML=dedent_default.a` +

+ Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae. +

+

+ Ipsum nostra tempus etiam augue ullamcorper scelerisque sapien potenti erat nisi gravida. Vehicula sem tristique sed. Nullam, sociis imperdiet ullamcorper? Dapibus fames primis ridiculus vulputate, habitant inceptos! Nunc torquent lorem urna vehicula volutpat donec nec. Orci massa eu nec donec enim fames, faucibus quam aenean. Laoreet tellus tempor quisque ornare lobortis praesent erat senectus natoque consectetur donec imperdiet. Quis sem cum gravida dictumst a pretium purus aptent amet id. Orci habitasse, praesent facilisis condimentum. Nec elit turpis leo. +

+

+ Tempus per volutpat diam tempor mauris parturient vulputate leo id libero quisque. Mattis aliquam dictum venenatis fringilla. Taciti venenatis, ultrices sollicitudin consequat. Sapien fusce est iaculis potenti ut auctor potenti. Nisi malesuada feugiat vulputate vitae porttitor. Nullam nullam nullam accumsan quis magna in. Elementum, nascetur gravida cras scelerisque inceptos aenean inceptos potenti. Lobortis condimentum accumsan posuere curabitur fermentum diam, natoque quisque. Eget placerat sed aptent orci urna fusce magnis. Vel lacus magnis nunc. +

+

+ Magna ligula neque phasellus. Velit duis auctor etiam nullam sociis nam neque quis. Donec fusce bibendum quam egestas sociosqu orci tempus vulputate egestas penatibus urna sociosqu. Nulla nam potenti diam egestas litora lobortis tristique maecenas pulvinar maecenas vitae tortor. Lacus purus facilisi est accumsan varius gravida facilisis rutrum tortor potenti rhoncus id. Ipsum praesent tristique blandit taciti morbi torquent pharetra fermentum aenean! +

+

+ Congue eu duis integer nisl molestie nostra dis auctor lobortis tellus parturient. Porttitor dis curae; maecenas quis praesent ridiculus posuere mus. Dictumst, vivamus fames semper congue fusce! Nunc placerat enim fermentum posuere magna justo habitasse. Tristique placerat mauris, per nulla gravida dui urna ut nec venenatis! Non lacus iaculis quisque, neque erat integer. Duis tortor ad habitant turpis dis eu mollis at facilisis. Tellus nisl amet morbi fringilla mus dui neque himenaeos maecenas platea venenatis. Tristique nisl quisque ad aliquam senectus pulvinar litora. +

+`,item2HTML=dedent_default.a` +
    +
  • Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.
  • +
  • Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.
  • +
  • Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.
  • +
  • Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.
  • +
+`,basic=addSourceDecorator(()=>Object(utils.a)("calcite-flow",[{name:"dir",value:Object(dist.select)("dir",dir.values,dir.defaultValue,"Flow")},{name:"theme",value:Object(dist.select)("theme",theme.values,theme.defaultValue,"Flow")}],`${Object(utils.a)("calcite-flow-item",createFlowItemAttributes("Flow Item 1"),createItemHTML(item1HTML))}\n ${Object(utils.a)("calcite-flow-item",createFlowItemAttributes("Flow Item 2"),createItemHTML(item2HTML))}`),{__STORY__:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nconst { dir, theme } = ATTRIBUTES;\nimport readme from "./readme.md";\nimport itemReadme from "../calcite-flow-item/readme.md";\nimport { SLOTS } from "../calcite-flow-item/resources";\nimport dedent from "dedent";\n\nexport default {\n title: "components|calcite-flow",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: {\n flow: parseReadme(readme),\n item: parseReadme(itemReadme)\n }\n }\n};\n\nconst createAttributes: () => Attributes = () => {\n const group = "Flow";\n\n return [\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue, group)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue, group)\n }\n ];\n};\n\nconst createFlowItemAttributes: (group: string) => Attributes = (group) => {\n return [\n {\n name: "disabled",\n value: boolean("disabled", false, group)\n },\n {\n name: "heading",\n value: text("heading", "Heading", group)\n },\n {\n name: "loading",\n value: boolean("loading", false, group)\n },\n {\n name: "menu-open",\n value: boolean("menuOpen", false, group)\n },\n {\n name: "summary",\n value: text("summary", "Summary", group)\n },\n {\n name: "text-back",\n value: text("textBack", "Back", group)\n },\n {\n name: "text-open",\n value: text("textOpen", "Open", group)\n }\n ];\n};\n\nconst menuActionsHTML = dedent`\n
\n \n \n \n
\n`;\n\nconst footerActionsHTML = dedent`\n Save\n Cancel\n`;\n\nfunction createItemHTML(content: string): string {\n return `${menuActionsHTML}${content}${footerActionsHTML}`;\n}\n\nconst item1HTML = dedent`\n

\n Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae.\n

\n

\n Ipsum nostra tempus etiam augue ullamcorper scelerisque sapien potenti erat nisi gravida. Vehicula sem tristique sed. Nullam, sociis imperdiet ullamcorper? Dapibus fames primis ridiculus vulputate, habitant inceptos! Nunc torquent lorem urna vehicula volutpat donec nec. Orci massa eu nec donec enim fames, faucibus quam aenean. Laoreet tellus tempor quisque ornare lobortis praesent erat senectus natoque consectetur donec imperdiet. Quis sem cum gravida dictumst a pretium purus aptent amet id. Orci habitasse, praesent facilisis condimentum. Nec elit turpis leo.\n

\n

\n Tempus per volutpat diam tempor mauris parturient vulputate leo id libero quisque. Mattis aliquam dictum venenatis fringilla. Taciti venenatis, ultrices sollicitudin consequat. Sapien fusce est iaculis potenti ut auctor potenti. Nisi malesuada feugiat vulputate vitae porttitor. Nullam nullam nullam accumsan quis magna in. Elementum, nascetur gravida cras scelerisque inceptos aenean inceptos potenti. Lobortis condimentum accumsan posuere curabitur fermentum diam, natoque quisque. Eget placerat sed aptent orci urna fusce magnis. Vel lacus magnis nunc.\n

\n

\n Magna ligula neque phasellus. Velit duis auctor etiam nullam sociis nam neque quis. Donec fusce bibendum quam egestas sociosqu orci tempus vulputate egestas penatibus urna sociosqu. Nulla nam potenti diam egestas litora lobortis tristique maecenas pulvinar maecenas vitae tortor. Lacus purus facilisi est accumsan varius gravida facilisis rutrum tortor potenti rhoncus id. Ipsum praesent tristique blandit taciti morbi torquent pharetra fermentum aenean!\n

\n

\n Congue eu duis integer nisl molestie nostra dis auctor lobortis tellus parturient. Porttitor dis curae; maecenas quis praesent ridiculus posuere mus. Dictumst, vivamus fames semper congue fusce! Nunc placerat enim fermentum posuere magna justo habitasse. Tristique placerat mauris, per nulla gravida dui urna ut nec venenatis! Non lacus iaculis quisque, neque erat integer. Duis tortor ad habitant turpis dis eu mollis at facilisis. Tellus nisl amet morbi fringilla mus dui neque himenaeos maecenas platea venenatis. Tristique nisl quisque ad aliquam senectus pulvinar litora.\n

\n`;\n\nconst item2HTML = dedent`\n
    \n
  • Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.
  • \n
  • Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.
  • \n
  • Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.
  • \n
  • Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.
  • \n
\n`;\n\nexport const basic = () =>\n create(\n "calcite-flow",\n createAttributes(),\n `${create("calcite-flow-item", createFlowItemAttributes("Flow Item 1"), createItemHTML(item1HTML))}\n ${create("calcite-flow-item", createFlowItemAttributes("Flow Item 2"), createItemHTML(item2HTML))}`\n );\n',__ADDS_MAP__:{"components-calcite-flow--basic":{startLoc:{col:21,line:123},endLoc:{col:3,line:129},startBody:{col:21,line:123},endBody:{col:3,line:129}}},__MAIN_FILE_LOCATION__:"/calcite-flow.stories.ts",__MODULE_DEPENDENCIES__:[],__LOCAL_DEPENDENCIES__:{},__SOURCE_PREFIX__:"/Users/juan6600/dev/projects/calcite-app-components/src/components/calcite-flow",__IDS_TO_FRAMEWORKS__:{}})},1611:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var dist=__webpack_require__(1),utils=__webpack_require__(2),resources=__webpack_require__(38),dedent=__webpack_require__(12),dedent_default=__webpack_require__.n(dedent);__webpack_require__.d(__webpack_exports__,"basic",(function(){return basic})),__webpack_require__.d(__webpack_exports__,"withHeaderControl",(function(){return withHeaderControl})),__webpack_require__.d(__webpack_exports__,"withIconAndHeader",(function(){return withIconAndHeader}));__webpack_require__(37).withSource;var addSourceDecorator=__webpack_require__(37).addSource,__SOURCE_PREFIX__="/Users/juan6600/dev/projects/calcite-app-components/src/components/calcite-block",__STORY__='import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attribute,\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport blockReadme from "./readme.md";\nimport sectionReadme from "../calcite-block-section/readme.md";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nimport dedent from "dedent";\n\nexport default {\n title: "components|calcite-block",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: {\n block: parseReadme(blockReadme),\n section: parseReadme(sectionReadme)\n }\n }\n};\n\nconst createBlockAttributes: (options?: { except: string[] }) => Attributes = ({ except } = { except: [] }) => {\n const group = "block";\n const { dir, theme } = ATTRIBUTES;\n\n interface DeferredAttribute {\n name: string;\n commit: () => Attribute;\n }\n\n return ([\n {\n name: "heading",\n commit() {\n this.value = text("heading", "Heading", group);\n delete this.build;\n return this;\n }\n },\n {\n name: "dir",\n commit() {\n this.value = select("dir", dir.values, dir.defaultValue, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "summary",\n commit() {\n this.value = text("summary", "summary", group);\n delete this.build;\n return this;\n }\n },\n {\n name: "open",\n commit() {\n this.value = boolean("open", true, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "collapsible",\n commit() {\n this.value = boolean("collapsible", true, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "loading",\n commit() {\n this.value = boolean("loading", false, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "disabled",\n commit() {\n this.value = boolean("disabled", false, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "theme",\n commit() {\n this.value = select("theme", theme.values, theme.defaultValue, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "text-collapse",\n commit() {\n this.value = text("textCollapse", "Collapse", group);\n delete this.build;\n return this;\n }\n },\n {\n name: "text-expand",\n commit() {\n this.value = text("textExpand", "Expand", group);\n delete this.build;\n return this;\n }\n }\n ] as DeferredAttribute[])\n .filter((attr) => !except.find((excluded) => excluded === attr.name))\n .map((attr) => attr.commit());\n};\n\nconst createSectionAttributes: () => Attributes = () => {\n const group = "section (animals)";\n const toggleDisplayOptions = ["button", "switch"];\n\n return [\n {\n name: "text",\n value: text("text", "Animals", group)\n },\n {\n name: "open",\n value: boolean("open", true, group)\n },\n {\n name: "toggle-display",\n value: select("toggleDisplay", toggleDisplayOptions, toggleDisplayOptions[0], group)\n },\n {\n name: "text-collapse",\n value: text("textCollapse", "Collapse", group)\n },\n {\n name: "text-expand",\n value: text("textExpand", "Expand", group)\n }\n ];\n};\n\nexport const basic = () =>\n create(\n "calcite-block",\n createBlockAttributes(),\n dedent`\n ${create(\n "calcite-block-section",\n createSectionAttributes(),\n `demo`\n )}\n\n \n demo\n \n `\n );\n\nexport const withHeaderControl = () =>\n create(\n "calcite-block",\n createBlockAttributes({ except: ["open", "collapsible"] }),\n ``\n );\n\nexport const withIconAndHeader = () =>\n create("calcite-block", createBlockAttributes({ except: ["open", "collapsible"] }), `
`);\n',__ADDS_MAP__={"components-calcite-block--basic":{startLoc:{col:21,line:153},endLoc:{col:3,line:168},startBody:{col:21,line:153},endBody:{col:3,line:168}},"components-calcite-block--with-header-control":{startLoc:{col:33,line:170},endLoc:{col:3,line:175},startBody:{col:33,line:170},endBody:{col:3,line:175}},"components-calcite-block--with-icon-and-header":{startLoc:{col:33,line:177},endLoc:{col:113,line:178},startBody:{col:33,line:177},endBody:{col:113,line:178}}},__MODULE_DEPENDENCIES__=[],__LOCAL_DEPENDENCIES__={},__IDS_TO_FRAMEWORKS__={};__webpack_exports__.default={title:"components|calcite-block",decorators:[dist.withKnobs],parameters:{storySource:{source:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attribute,\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport blockReadme from "./readme.md";\nimport sectionReadme from "../calcite-block-section/readme.md";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nimport dedent from "dedent";\n\nexport default {\n title: "components|calcite-block",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: {\n block: parseReadme(blockReadme),\n section: parseReadme(sectionReadme)\n }\n }\n};\n\nconst createBlockAttributes: (options?: { except: string[] }) => Attributes = ({ except } = { except: [] }) => {\n const group = "block";\n const { dir, theme } = ATTRIBUTES;\n\n interface DeferredAttribute {\n name: string;\n commit: () => Attribute;\n }\n\n return ([\n {\n name: "heading",\n commit() {\n this.value = text("heading", "Heading", group);\n delete this.build;\n return this;\n }\n },\n {\n name: "dir",\n commit() {\n this.value = select("dir", dir.values, dir.defaultValue, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "summary",\n commit() {\n this.value = text("summary", "summary", group);\n delete this.build;\n return this;\n }\n },\n {\n name: "open",\n commit() {\n this.value = boolean("open", true, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "collapsible",\n commit() {\n this.value = boolean("collapsible", true, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "loading",\n commit() {\n this.value = boolean("loading", false, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "disabled",\n commit() {\n this.value = boolean("disabled", false, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "theme",\n commit() {\n this.value = select("theme", theme.values, theme.defaultValue, group);\n delete this.build;\n return this;\n }\n },\n {\n name: "text-collapse",\n commit() {\n this.value = text("textCollapse", "Collapse", group);\n delete this.build;\n return this;\n }\n },\n {\n name: "text-expand",\n commit() {\n this.value = text("textExpand", "Expand", group);\n delete this.build;\n return this;\n }\n }\n ] as DeferredAttribute[])\n .filter((attr) => !except.find((excluded) => excluded === attr.name))\n .map((attr) => attr.commit());\n};\n\nconst createSectionAttributes: () => Attributes = () => {\n const group = "section (animals)";\n const toggleDisplayOptions = ["button", "switch"];\n\n return [\n {\n name: "text",\n value: text("text", "Animals", group)\n },\n {\n name: "open",\n value: boolean("open", true, group)\n },\n {\n name: "toggle-display",\n value: select("toggleDisplay", toggleDisplayOptions, toggleDisplayOptions[0], group)\n },\n {\n name: "text-collapse",\n value: text("textCollapse", "Collapse", group)\n },\n {\n name: "text-expand",\n value: text("textExpand", "Expand", group)\n }\n ];\n};\n\nexport const basic = () =>\n create(\n "calcite-block",\n createBlockAttributes(),\n dedent`\n ${create(\n "calcite-block-section",\n createSectionAttributes(),\n `demo`\n )}\n\n \n demo\n \n `\n );\n\nexport const withHeaderControl = () =>\n create(\n "calcite-block",\n createBlockAttributes({ except: ["open", "collapsible"] }),\n ``\n );\n\nexport const withIconAndHeader = () =>\n create("calcite-block", createBlockAttributes({ except: ["open", "collapsible"] }), `
`);\n',locationsMap:{"components-calcite-block--basic":{startLoc:{col:21,line:153},endLoc:{col:3,line:168},startBody:{col:21,line:153},endBody:{col:3,line:168}},"components-calcite-block--with-header-control":{startLoc:{col:33,line:170},endLoc:{col:3,line:175},startBody:{col:33,line:170},endBody:{col:3,line:175}},"components-calcite-block--with-icon-and-header":{startLoc:{col:33,line:177},endLoc:{col:113,line:178},startBody:{col:33,line:177},endBody:{col:113,line:178}}}},backgrounds:utils.b,docs:{page:utils.d},notes:{block:Object(utils.c)('# calcite-block\n\nThe `calcite-block` component is intended for displaying a heading and content. Content can also include stacked, collapsible `calcite-block-section`s typically housed in a panel.\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Usage\n\n### Basic\n\n#### Default (non-collapsible)\n\n```html\n \n```\n\n#### Header with control\n\nRenders a header and control with a slot for adding a single HTML element (in the header).\n\n```html\n\n
\n\n```\n\n#### Header with Icon\n\nRenders a header and icon with the icon.\n\n```html\n\n
🤯
\n
\n```\n\n#### Header with content (always open)\n\nRenders a header and content that remains open - no collapsible option.\n\n```html\n\n
Father or Son?
\n
\n```\n\n#### Header with content (collapsible)\n\nRenders a header with a clickable icon to toggle the block open and closed.\n\n```html\n\n \n\n```\n\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------- | --------------- | ------------------------------------------------------------------------------------------- | ------------------- | --------------- |\n| `collapsible` | `collapsible` | When true, this block will be collapsible. | `boolean` | `false` |\n| `disabled` | `disabled` | When true, disabled prevents interaction. This state shows items with lower opacity/grayed. | `boolean` | `false` |\n| `dragHandle` | `drag-handle` | When true, displays a drag handle in the header. | `boolean` | `false` |\n| `heading` | `heading` | Block heading. | `string` | `undefined` |\n| `loading` | `loading` | When true, content is waiting to be loaded. This state shows a busy indicator. | `boolean` | `false` |\n| `open` | `open` | When true, the block\'s content will be displayed. | `boolean` | `false` |\n| `summary` | `summary` | Block summary. | `string` | `undefined` |\n| `textCollapse` | `text-collapse` | Tooltip used for the toggle when expanded. | `string` | `TEXT.collapse` |\n| `textExpand` | `text-expand` | Tooltip used for the toggle when collapsed. | `string` | `TEXT.expand` |\n| `theme` | `theme` | Used to set the component\'s color scheme. | `"dark" or "light"` | `undefined` |\n\n\n## Events\n\n| Event | Description | Type |\n| -------------------- | ----------------------------------------- | ------------------ |\n| `calciteBlockToggle` | Emitted when the header has been clicked. | `CustomEvent` |\n\n\n## Slots\n\n| Slot | Description |\n| ----------- | ---------------------------------------------------------- |\n| | A slot for adding content to the block. |\n| `"control"` | A slot for adding a single HTML input element in a header. |\n| `"icon"` | A slot for adding a trailing header icon. |\n\n\n## Dependencies\n\n### Depends on\n\n- [calcite-handle](../calcite-handle)\n\n### Graph\n```mermaid\ngraph TD;\n calcite-block --\x3e calcite-handle\n style calcite-block fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n'),section:Object(utils.c)('# calcite-block-section\n\nThe `calcite-block-section` component is a child element of `calcite-block`. Sections can have their own header and content and can be toggled open or closed.\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | --------------- |\n| `open` | `open` | When true, the block\'s section content will be displayed. | `boolean` | `false` |\n| `text` | `text` | Text displayed in the button. | `string` | `undefined` |\n| `textCollapse` | `text-collapse` | Tooltip used for the toggle when expanded. | `string` | `TEXT.collapse` |\n| `textExpand` | `text-expand` | Tooltip used for the toggle when collapsed. | `string` | `TEXT.expand` |\n| `toggleDisplay` | `toggle-display` | This property determines the look of the section toggle. If the value is "switch", a toggle-switch will be displayed. If the value is "button", a clickable header is displayed. | `"button" or "switch"` | `"button"` |\n\n\n## Events\n\n| Event | Description | Type |\n| --------------------------- | ----------------------------------------- | ------------------ |\n| `calciteBlockSectionToggle` | Emitted when the header has been clicked. | `CustomEvent` |\n\n\n## Slots\n\n| Slot | Description |\n| ---- | ----------------------------------------------- |\n| | A slot for adding content to the block section. |\n\n\n## Dependencies\n\n### Depends on\n\n- [calcite-action](../calcite-action)\n\n### Graph\n```mermaid\ngraph TD;\n calcite-block-section --\x3e calcite-action\n style calcite-block-section fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n')}}};const createBlockAttributes=({except:except}={except:[]})=>{const group="block",{dir:dir,theme:theme}=resources.a;return[{name:"heading",commit(){return this.value=Object(dist.text)("heading","Heading",group),delete this.build,this}},{name:"dir",commit(){return this.value=Object(dist.select)("dir",dir.values,dir.defaultValue,group),delete this.build,this}},{name:"summary",commit(){return this.value=Object(dist.text)("summary","summary",group),delete this.build,this}},{name:"open",commit(){return this.value=Object(dist.boolean)("open",!0,group),delete this.build,this}},{name:"collapsible",commit(){return this.value=Object(dist.boolean)("collapsible",!0,group),delete this.build,this}},{name:"loading",commit(){return this.value=Object(dist.boolean)("loading",!1,group),delete this.build,this}},{name:"disabled",commit(){return this.value=Object(dist.boolean)("disabled",!1,group),delete this.build,this}},{name:"theme",commit(){return this.value=Object(dist.select)("theme",theme.values,theme.defaultValue,group),delete this.build,this}},{name:"text-collapse",commit(){return this.value=Object(dist.text)("textCollapse","Collapse",group),delete this.build,this}},{name:"text-expand",commit(){return this.value=Object(dist.text)("textExpand","Expand",group),delete this.build,this}}].filter(attr=>!except.find(excluded=>excluded===attr.name)).map(attr=>attr.commit())},basic=addSourceDecorator(()=>Object(utils.a)("calcite-block",createBlockAttributes(),dedent_default.a` + ${Object(utils.a)("calcite-block-section",(()=>{const group="section (animals)",toggleDisplayOptions=["button","switch"];return[{name:"text",value:Object(dist.text)("text","Animals",group)},{name:"open",value:Object(dist.boolean)("open",!0,group)},{name:"toggle-display",value:Object(dist.select)("toggleDisplay",toggleDisplayOptions,toggleDisplayOptions[0],group)},{name:"text-collapse",value:Object(dist.text)("textCollapse","Collapse",group)},{name:"text-expand",value:Object(dist.text)("textExpand","Expand",group)}]})(),'demo')} + + + demo + + `),{__STORY__:__STORY__,__ADDS_MAP__:__ADDS_MAP__,__MAIN_FILE_LOCATION__:"/calcite-block.stories.ts",__MODULE_DEPENDENCIES__:__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__:__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__:__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__:__IDS_TO_FRAMEWORKS__}),withHeaderControl=addSourceDecorator(()=>Object(utils.a)("calcite-block",createBlockAttributes({except:["open","collapsible"]}),''),{__STORY__:__STORY__,__ADDS_MAP__:__ADDS_MAP__,__MAIN_FILE_LOCATION__:"/calcite-block.stories.ts",__MODULE_DEPENDENCIES__:__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__:__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__:__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__:__IDS_TO_FRAMEWORKS__}),withIconAndHeader=addSourceDecorator(()=>Object(utils.a)("calcite-block",createBlockAttributes({except:["open","collapsible"]}),'
'),{__STORY__:__STORY__,__ADDS_MAP__:__ADDS_MAP__,__MAIN_FILE_LOCATION__:"/calcite-block.stories.ts",__MODULE_DEPENDENCIES__:__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__:__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__:__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__:__IDS_TO_FRAMEWORKS__})},1612:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var dist=__webpack_require__(1),utils=__webpack_require__(2),resources=__webpack_require__(38);const SLOTS_headerContent="header-content",SLOTS_headerLeadingContent="header-leading-content",SLOTS_headerTrailingContent="header-trailing-content",SLOTS_footer="footer";var dedent=__webpack_require__(12),dedent_default=__webpack_require__.n(dedent);__webpack_require__.d(__webpack_exports__,"basic",(function(){return basic}));__webpack_require__(37).withSource;var addSourceDecorator=__webpack_require__(37).addSource;const{dir:dir,theme:theme,scale:scale}=resources.a;__webpack_exports__.default={title:"components|calcite-panel",decorators:[dist.withKnobs],parameters:{storySource:{source:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nconst { dir, theme, scale } = ATTRIBUTES;\nimport readme from "./readme.md";\nimport { SLOTS } from "./resources";\nimport dedent from "dedent";\n\nexport default {\n title: "components|calcite-panel",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: parseReadme(readme)\n }\n};\n\nconst createAttributes: () => Attributes = () => [\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue)\n },\n {\n name: "dismissed",\n value: boolean("dismissed", false)\n },\n {\n name: "disabled",\n value: boolean("disabled", false)\n },\n {\n name: "dismissible",\n value: boolean("dismissible", false)\n },\n {\n name: "height-scale",\n value: select("heightScale", scale.values, scale.defaultValue)\n },\n {\n name: "loading",\n value: boolean("loading", false)\n },\n {\n name: "text-close",\n value: text("textClose", "Close")\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue)\n }\n];\n\nconst headerHTML = `

Heading

`;\n\nconst contentHTML = dedent`\n

\n Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae.\n

\n

\n Ipsum nostra tempus etiam augue ullamcorper scelerisque sapien potenti erat nisi gravida. Vehicula sem tristique sed. Nullam, sociis imperdiet ullamcorper? Dapibus fames primis ridiculus vulputate, habitant inceptos! Nunc torquent lorem urna vehicula volutpat donec nec. Orci massa eu nec donec enim fames, faucibus quam aenean. Laoreet tellus tempor quisque ornare lobortis praesent erat senectus natoque consectetur donec imperdiet. Quis sem cum gravida dictumst a pretium purus aptent amet id. Orci habitasse, praesent facilisis condimentum. Nec elit turpis leo.\n

\n

\n Tempus per volutpat diam tempor mauris parturient vulputate leo id libero quisque. Mattis aliquam dictum venenatis fringilla. Taciti venenatis, ultrices sollicitudin consequat. Sapien fusce est iaculis potenti ut auctor potenti. Nisi malesuada feugiat vulputate vitae porttitor. Nullam nullam nullam accumsan quis magna in. Elementum, nascetur gravida cras scelerisque inceptos aenean inceptos potenti. Lobortis condimentum accumsan posuere curabitur fermentum diam, natoque quisque. Eget placerat sed aptent orci urna fusce magnis. Vel lacus magnis nunc.\n

\n`;\n\nconst footerHTML = dedent`\n Yeah!\n Naw.\n`;\n\nexport const basic = () =>\n create(\n "calcite-panel",\n createAttributes(),\n `${headerHTML}\n \n \n ${contentHTML}\n ${footerHTML}`\n );\n',locationsMap:{"components-calcite-panel--basic":{startLoc:{col:21,line:81},endLoc:{col:3,line:90},startBody:{col:21,line:81},endBody:{col:3,line:90}}}},backgrounds:utils.b,docs:{page:utils.d},notes:Object(utils.c)('# calcite-panel\n\nThe `calcite-panel` component is a container for a header, content and optional footer. The header will have centered content as well as optional leading and trailing content. The panel can also be setup to be dismissible which allows it to be closed by a user.\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Usage\n\n### Basic\n\n#### Basic\n\nRenders a basic panel with a header.\n\n```html\n\n
Header!
\n

Slotted content!

\n
\n```\n\n#### With footer\n\nRenders a panel with a header and a footer.\n\n```html\n\n
Header!
\n

I have a footer.

\n
Footer!
\n
\n```\n\n#### Header with actions\n\nRenders a panel with leading and trailing `calcite-action`s.\n\n```html\n\n
\n \n \n \n
\n
Header!
\n
\n \n \n \n
\n

Actions are in the top left and right.

\n
\n```\n\n#### Dismissible panel\n\nRenders a panel that is dismissible with a click of the "x".\n\n```html\n\n
Dismissible Header
\n

Click the X and I go away!

\n
\n```\n\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ------------- | -------------- | --------------------------------------------------------------------------------------------------------- | ------------------- | ------------ |\n| `disabled` | `disabled` | When true, disabled prevents interaction. This state shows items with lower opacity/grayed. | `boolean` | `false` |\n| `dismissed` | `dismissed` | Hides the panel. | `boolean` | `false` |\n| `dismissible` | `dismissible` | Displays a close button in the trailing side of the header. | `boolean` | `false` |\n| `heightScale` | `height-scale` | Specifies the maxiumum height of the panel. | `"l" or "m" or "s"` | `undefined` |\n| `loading` | `loading` | When true, content is waiting to be loaded. This state shows a busy indicator. | `boolean` | `false` |\n| `textClose` | `text-close` | \'Close\' text string for the close button. The close button will only be shown when \'dismissible\' is true. | `string` | `TEXT.close` |\n| `theme` | `theme` | Used to set the component\'s color scheme. | `"dark" or "light"` | `undefined` |\n\n\n## Events\n\n| Event | Description | Type |\n| ----------------------------- | ----------------------------------------------- | ------------------ |\n| `calcitePanelDismissedChange` | Emitted when the close button has been clicked. | `CustomEvent` |\n\n\n## Methods\n\n### `setFocus(focusId?: "dismiss-button") => Promise`\n\n\n\n#### Returns\n\nType: `Promise`\n\n\n\n\n## Slots\n\n| Slot | Description |\n| --------------------------- | ------------------------------------------------------------------------ |\n| | A slot for adding content to the panel. |\n| `"footer"` | A slot for adding `calcite-button`s to the footer. |\n| `"header-content"` | A slot for adding content in the center of the header. |\n| `"header-leading-content"` | A slot for adding a `calcite-action` on the leading side of the header. |\n| `"header-trailing-content"` | A slot for adding a `calcite-action` on the trailing side of the header. |\n\n\n## Dependencies\n\n### Used by\n\n - [calcite-flow-item](../calcite-flow-item)\n\n### Depends on\n\n- [calcite-action](../calcite-action)\n\n### Graph\n```mermaid\ngraph TD;\n calcite-panel --\x3e calcite-action\n calcite-flow-item --\x3e calcite-panel\n style calcite-panel fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n')}};const headerHTML=`

Heading

`,contentHTML=dedent_default.a` +

+ Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae. +

+

+ Ipsum nostra tempus etiam augue ullamcorper scelerisque sapien potenti erat nisi gravida. Vehicula sem tristique sed. Nullam, sociis imperdiet ullamcorper? Dapibus fames primis ridiculus vulputate, habitant inceptos! Nunc torquent lorem urna vehicula volutpat donec nec. Orci massa eu nec donec enim fames, faucibus quam aenean. Laoreet tellus tempor quisque ornare lobortis praesent erat senectus natoque consectetur donec imperdiet. Quis sem cum gravida dictumst a pretium purus aptent amet id. Orci habitasse, praesent facilisis condimentum. Nec elit turpis leo. +

+

+ Tempus per volutpat diam tempor mauris parturient vulputate leo id libero quisque. Mattis aliquam dictum venenatis fringilla. Taciti venenatis, ultrices sollicitudin consequat. Sapien fusce est iaculis potenti ut auctor potenti. Nisi malesuada feugiat vulputate vitae porttitor. Nullam nullam nullam accumsan quis magna in. Elementum, nascetur gravida cras scelerisque inceptos aenean inceptos potenti. Lobortis condimentum accumsan posuere curabitur fermentum diam, natoque quisque. Eget placerat sed aptent orci urna fusce magnis. Vel lacus magnis nunc. +

+`,footerHTML=dedent_default.a` + Yeah! + Naw. +`,basic=addSourceDecorator(()=>Object(utils.a)("calcite-panel",[{name:"dir",value:Object(dist.select)("dir",dir.values,dir.defaultValue)},{name:"dismissed",value:Object(dist.boolean)("dismissed",!1)},{name:"disabled",value:Object(dist.boolean)("disabled",!1)},{name:"dismissible",value:Object(dist.boolean)("dismissible",!1)},{name:"height-scale",value:Object(dist.select)("heightScale",scale.values,scale.defaultValue)},{name:"loading",value:Object(dist.boolean)("loading",!1)},{name:"text-close",value:Object(dist.text)("textClose","Close")},{name:"theme",value:Object(dist.select)("theme",theme.values,theme.defaultValue)}],`${headerHTML}\n \n \n ${contentHTML}\n ${footerHTML}`),{__STORY__:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nconst { dir, theme, scale } = ATTRIBUTES;\nimport readme from "./readme.md";\nimport { SLOTS } from "./resources";\nimport dedent from "dedent";\n\nexport default {\n title: "components|calcite-panel",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: parseReadme(readme)\n }\n};\n\nconst createAttributes: () => Attributes = () => [\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue)\n },\n {\n name: "dismissed",\n value: boolean("dismissed", false)\n },\n {\n name: "disabled",\n value: boolean("disabled", false)\n },\n {\n name: "dismissible",\n value: boolean("dismissible", false)\n },\n {\n name: "height-scale",\n value: select("heightScale", scale.values, scale.defaultValue)\n },\n {\n name: "loading",\n value: boolean("loading", false)\n },\n {\n name: "text-close",\n value: text("textClose", "Close")\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue)\n }\n];\n\nconst headerHTML = `

Heading

`;\n\nconst contentHTML = dedent`\n

\n Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae.\n

\n

\n Ipsum nostra tempus etiam augue ullamcorper scelerisque sapien potenti erat nisi gravida. Vehicula sem tristique sed. Nullam, sociis imperdiet ullamcorper? Dapibus fames primis ridiculus vulputate, habitant inceptos! Nunc torquent lorem urna vehicula volutpat donec nec. Orci massa eu nec donec enim fames, faucibus quam aenean. Laoreet tellus tempor quisque ornare lobortis praesent erat senectus natoque consectetur donec imperdiet. Quis sem cum gravida dictumst a pretium purus aptent amet id. Orci habitasse, praesent facilisis condimentum. Nec elit turpis leo.\n

\n

\n Tempus per volutpat diam tempor mauris parturient vulputate leo id libero quisque. Mattis aliquam dictum venenatis fringilla. Taciti venenatis, ultrices sollicitudin consequat. Sapien fusce est iaculis potenti ut auctor potenti. Nisi malesuada feugiat vulputate vitae porttitor. Nullam nullam nullam accumsan quis magna in. Elementum, nascetur gravida cras scelerisque inceptos aenean inceptos potenti. Lobortis condimentum accumsan posuere curabitur fermentum diam, natoque quisque. Eget placerat sed aptent orci urna fusce magnis. Vel lacus magnis nunc.\n

\n`;\n\nconst footerHTML = dedent`\n Yeah!\n Naw.\n`;\n\nexport const basic = () =>\n create(\n "calcite-panel",\n createAttributes(),\n `${headerHTML}\n \n \n ${contentHTML}\n ${footerHTML}`\n );\n',__ADDS_MAP__:{"components-calcite-panel--basic":{startLoc:{col:21,line:81},endLoc:{col:3,line:90},startBody:{col:21,line:81},endBody:{col:3,line:90}}},__MAIN_FILE_LOCATION__:"/calcite-panel.stories.ts",__MODULE_DEPENDENCIES__:[],__LOCAL_DEPENDENCIES__:{},__SOURCE_PREFIX__:"/Users/juan6600/dev/projects/calcite-app-components/src/components/calcite-panel",__IDS_TO_FRAMEWORKS__:{}})},1613:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var dist=__webpack_require__(1),utils=__webpack_require__(2),resources=__webpack_require__(38),dedent=__webpack_require__(12),dedent_default=__webpack_require__.n(dedent);__webpack_require__.d(__webpack_exports__,"basic",(function(){return basic})),__webpack_require__.d(__webpack_exports__,"advanced",(function(){return advanced}));__webpack_require__(37).withSource;var addSourceDecorator=__webpack_require__(37).addSource,__SOURCE_PREFIX__="/Users/juan6600/dev/projects/calcite-app-components/src/components/calcite-shell",__STORY__='import { boolean, select, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nconst { dir, layout, scale, theme } = ATTRIBUTES;\nimport readme from "./readme.md";\nimport panelReadme from "../calcite-shell-panel/readme.md";\nimport dedent from "dedent";\n\nexport default {\n title: "components|calcite-shell",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: {\n shell: parseReadme(readme),\n panel: parseReadme(panelReadme)\n }\n }\n};\n\nconst createAttributes: (group: string) => Attributes = (group) => {\n return [\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue, group)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue, group)\n }\n ];\n};\n\nconst createShellPanelAttributes: (group: "Leading Panel" | "Trailing Panel") => Attributes = (group) => {\n return [\n {\n name: "slot",\n value: group === "Leading Panel" ? "primary-panel" : "contextual-panel"\n },\n {\n name: "collapsed",\n value: boolean("collapsed", false, group)\n },\n {\n name: "detached",\n value: boolean("detached", false, group)\n },\n {\n name: "detached-scale",\n value: select("detachedScale", scale.values, scale.defaultValue, group)\n },\n {\n name: "layout",\n value: select("layout", layout.values, group === "Leading Panel" ? layout.values[0] : layout.values[1], group)\n }\n ];\n};\n\nconst actionBarPrimaryContentHTML = dedent`\n \n \n \n \n \n \n \n`;\n\nconst actionBarContextualContentHTML = dedent`\n \n \n \n \n \n \n \n`;\n\nconst actionBarPrimaryHTML = dedent`\n \n ${actionBarPrimaryContentHTML}\n \n`;\n\nconst actionBarContextualHTML = dedent`\n \n ${actionBarContextualContentHTML}\n \n`;\n\nconst leadingPanelHTML = dedent`\n ${actionBarPrimaryHTML}\n

My Leading Panel

\n`;\n\nconst trailingPanelHTML = dedent`\n ${actionBarContextualHTML}\n

My Trailing Panel

\n`;\n\nconst headerHTML = dedent`\n
\n

My Shell Header

\n
\n`;\n\nconst footerHTML = `
My Shell Footer
`;\n\nconst contentHTML = dedent`\n
\n`;\n\nconst tipManagerHTML = dedent`\n \n \n \n This is an image.\n

\n This tip is how a tip should really look. It has a landscape or square image and a small amount of text\n content. This paragraph is in an "info" slot.\n

\n

\n This is another paragraph in a subsequent "info" slot. In publishing and graphic design, Lorem ipsum is\n a placeholder text commonly used to demonstrate the visual form of a document without relying on\n meaningful content (also called greeking). Replacing the actual content with placeholder text allows\n designers to design the form of the content before the content itself has been produced.\n

\n This is the "link" slot.\n
\n \n This is an image.\n

\n This tip has an image that is a pretty tall. And the text will run out before the end of the image.\n

\n

In astronomy, the terms object and body are often used interchangeably.

\n View Esri\n
\n
\n \n This is an image.\n

\n This tip has an image that is square. And the text will run out before the end of the image.\n

\n

In astronomy, the terms object and body are often used interchangeably.

\n

\n In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the\n visual form of a document without relying on meaningful content (also called greeking). Replacing the\n actual content with placeholder text allows designers to design the form of the content before the content\n itself has been produced.\n

\n View Esri\n
\n \n

\n This tip has no image. As such, the content area will take up the entire width of the tip.\n

\n

\n This is the next paragraph and should show how wide the content area is now. Of course, the width of the\n overall tip will affect things. In astronomy, the terms object and body are often used interchangeably.\n

\n View Esri\n
\n
\n`;\n\nexport const basic = () =>\n create(\n "calcite-shell",\n createAttributes("Shell"),\n dedent`\n ${headerHTML}\n ${create("calcite-shell-panel", createShellPanelAttributes("Leading Panel"), leadingPanelHTML)}\n ${contentHTML}\n ${create("calcite-shell-panel", createShellPanelAttributes("Trailing Panel"), trailingPanelHTML)}\n ${footerHTML}\n `\n );\n\n// TODO: UPDATE\nconst advancedLeadingPanelHTML = dedent`\n ${actionBarPrimaryHTML}\n \n \n \n \n \n \n \n \n \n
\n

Cool thing.

\n
\n
\n
\n \n \n
\n

Cool thing.

\n
\n
\n
\n \n \n
\n

Cool thang.

\n
\n
\n
\n`;\n\n// TODO: UPDATE\nconst advancedTrailingPanelHTMl = dedent`\n ${actionBarContextualHTML}\n \n \n
\n \n \n \n
\n \n \n demo\n \n \n \n \n \n \n \n \n \n \n \n \n Save\n Cancel\n
\n \n \n \n \n \n \n \n \n demo\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n demo\n \n \n \n \n \n \n \n Save\n Cancel\n \n
\n`;\n\nexport const advanced = () =>\n create(\n "calcite-shell",\n createAttributes("Shell"),\n dedent`\n ${headerHTML}\n ${create("calcite-shell-panel", createShellPanelAttributes("Leading Panel"), advancedLeadingPanelHTML)}\n ${contentHTML}\n ${create("calcite-shell-panel", createShellPanelAttributes("Trailing Panel"), advancedTrailingPanelHTMl)}\n ${tipManagerHTML}\n ${footerHTML}\n `\n );\n',__ADDS_MAP__={"components-calcite-shell--basic":{startLoc:{col:21,line:184},endLoc:{col:3,line:195},startBody:{col:21,line:184},endBody:{col:3,line:195}},"components-calcite-shell--advanced":{startLoc:{col:24,line:295},endLoc:{col:3,line:307},startBody:{col:24,line:295},endBody:{col:3,line:307}}},__MODULE_DEPENDENCIES__=[],__LOCAL_DEPENDENCIES__={},__IDS_TO_FRAMEWORKS__={};const{dir:dir,layout:layout,scale:scale,theme:theme}=resources.a;__webpack_exports__.default={title:"components|calcite-shell",decorators:[dist.withKnobs],parameters:{storySource:{source:'import { boolean, select, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nconst { dir, layout, scale, theme } = ATTRIBUTES;\nimport readme from "./readme.md";\nimport panelReadme from "../calcite-shell-panel/readme.md";\nimport dedent from "dedent";\n\nexport default {\n title: "components|calcite-shell",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: {\n shell: parseReadme(readme),\n panel: parseReadme(panelReadme)\n }\n }\n};\n\nconst createAttributes: (group: string) => Attributes = (group) => {\n return [\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue, group)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue, group)\n }\n ];\n};\n\nconst createShellPanelAttributes: (group: "Leading Panel" | "Trailing Panel") => Attributes = (group) => {\n return [\n {\n name: "slot",\n value: group === "Leading Panel" ? "primary-panel" : "contextual-panel"\n },\n {\n name: "collapsed",\n value: boolean("collapsed", false, group)\n },\n {\n name: "detached",\n value: boolean("detached", false, group)\n },\n {\n name: "detached-scale",\n value: select("detachedScale", scale.values, scale.defaultValue, group)\n },\n {\n name: "layout",\n value: select("layout", layout.values, group === "Leading Panel" ? layout.values[0] : layout.values[1], group)\n }\n ];\n};\n\nconst actionBarPrimaryContentHTML = dedent`\n \n \n \n \n \n \n \n`;\n\nconst actionBarContextualContentHTML = dedent`\n \n \n \n \n \n \n \n`;\n\nconst actionBarPrimaryHTML = dedent`\n \n ${actionBarPrimaryContentHTML}\n \n`;\n\nconst actionBarContextualHTML = dedent`\n \n ${actionBarContextualContentHTML}\n \n`;\n\nconst leadingPanelHTML = dedent`\n ${actionBarPrimaryHTML}\n

My Leading Panel

\n`;\n\nconst trailingPanelHTML = dedent`\n ${actionBarContextualHTML}\n

My Trailing Panel

\n`;\n\nconst headerHTML = dedent`\n
\n

My Shell Header

\n
\n`;\n\nconst footerHTML = `
My Shell Footer
`;\n\nconst contentHTML = dedent`\n
\n`;\n\nconst tipManagerHTML = dedent`\n \n \n \n This is an image.\n

\n This tip is how a tip should really look. It has a landscape or square image and a small amount of text\n content. This paragraph is in an "info" slot.\n

\n

\n This is another paragraph in a subsequent "info" slot. In publishing and graphic design, Lorem ipsum is\n a placeholder text commonly used to demonstrate the visual form of a document without relying on\n meaningful content (also called greeking). Replacing the actual content with placeholder text allows\n designers to design the form of the content before the content itself has been produced.\n

\n This is the "link" slot.\n
\n \n This is an image.\n

\n This tip has an image that is a pretty tall. And the text will run out before the end of the image.\n

\n

In astronomy, the terms object and body are often used interchangeably.

\n View Esri\n
\n
\n \n This is an image.\n

\n This tip has an image that is square. And the text will run out before the end of the image.\n

\n

In astronomy, the terms object and body are often used interchangeably.

\n

\n In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the\n visual form of a document without relying on meaningful content (also called greeking). Replacing the\n actual content with placeholder text allows designers to design the form of the content before the content\n itself has been produced.\n

\n View Esri\n
\n \n

\n This tip has no image. As such, the content area will take up the entire width of the tip.\n

\n

\n This is the next paragraph and should show how wide the content area is now. Of course, the width of the\n overall tip will affect things. In astronomy, the terms object and body are often used interchangeably.\n

\n View Esri\n
\n
\n`;\n\nexport const basic = () =>\n create(\n "calcite-shell",\n createAttributes("Shell"),\n dedent`\n ${headerHTML}\n ${create("calcite-shell-panel", createShellPanelAttributes("Leading Panel"), leadingPanelHTML)}\n ${contentHTML}\n ${create("calcite-shell-panel", createShellPanelAttributes("Trailing Panel"), trailingPanelHTML)}\n ${footerHTML}\n `\n );\n\n// TODO: UPDATE\nconst advancedLeadingPanelHTML = dedent`\n ${actionBarPrimaryHTML}\n \n \n \n \n \n \n \n \n \n
\n

Cool thing.

\n
\n
\n
\n \n \n
\n

Cool thing.

\n
\n
\n
\n \n \n
\n

Cool thang.

\n
\n
\n
\n`;\n\n// TODO: UPDATE\nconst advancedTrailingPanelHTMl = dedent`\n ${actionBarContextualHTML}\n \n \n
\n \n \n \n
\n \n \n demo\n \n \n \n \n \n \n \n \n \n \n \n \n Save\n Cancel\n
\n \n \n \n \n \n \n \n \n demo\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n demo\n \n \n \n \n \n \n \n Save\n Cancel\n \n
\n`;\n\nexport const advanced = () =>\n create(\n "calcite-shell",\n createAttributes("Shell"),\n dedent`\n ${headerHTML}\n ${create("calcite-shell-panel", createShellPanelAttributes("Leading Panel"), advancedLeadingPanelHTML)}\n ${contentHTML}\n ${create("calcite-shell-panel", createShellPanelAttributes("Trailing Panel"), advancedTrailingPanelHTMl)}\n ${tipManagerHTML}\n ${footerHTML}\n `\n );\n',locationsMap:{"components-calcite-shell--basic":{startLoc:{col:21,line:184},endLoc:{col:3,line:195},startBody:{col:21,line:184},endBody:{col:3,line:195}},"components-calcite-shell--advanced":{startLoc:{col:24,line:295},endLoc:{col:3,line:307},startBody:{col:24,line:295},endBody:{col:3,line:307}}}},backgrounds:utils.b,docs:{page:utils.d},notes:{shell:Object(utils.c)('# calcite-shell\n\nThe `calcite-shell` component is used for application layout management. It is a container for the view as well as other calcite app components like `calcite-shell-panel` and `calcite-tip-manager`.\n\n_note: calcite-shell supports tablet as the smallest screen size_\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Usage\n\n### Advanced\n\n#### Advanced\n\nRenders a shell with leading and trailing floating panels, action bar/pad, block, flow, tip manager, footer.\nnote: calcite-icon is pulled in from [calcite-components](https://esri.github.io/calcite-components/).\\_\n\n```html\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n

Cool thing.

\n
\n
\n
\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Footer
\n
\n```\n\n\n### Basic\n\n#### Basic\n\nRenders a basic shell with a header and a footer.\n\n```html\n\n
\n
\n

Shell Header: My App

\n
\n
\n

Shell Content

\n \x3c!-- insert map or fillable content here --\x3e\n
Footer
\n
\n```\n\n#### With panels\n\nRenders a shell with a header and panels on the left and right sides of the app.\n\n```html\n\n \n Leading panel! (on the left side, since this is a LTR app)\n \n \n Trailing panel! (right side)\n \n
\n
\n

Shell Header: My App

\n
\n
\n

Shell Content

\n \x3c!-- insert map or fillable content here --\x3e\n
\n```\n\n#### Panel with action bar\n\nRenders a single panel with actions in an action bar.\n\n```html\n\n \n placeholder\n \n \n \n \n \n \n \n \n \n \n \n \n\n```\n\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------- | --------- | ----------------------------------------- | ------------------- | ----------- |\n| `theme` | `theme` | Used to set the component\'s color scheme. | `"dark" or "light"` | `undefined` |\n\n\n## Slots\n\n| Slot | Description |\n| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| | A slot for adding content to the shell. This content will appear between any leading and trailing panels added to the shell. (eg. a map) |\n| `"contextual-panel"` | A slot for adding the trailing `calcite-shell-panel`. |\n| `"primary-panel"` | A slot for adding the leading `calcite-shell-panel`. |\n| `"shell-footer"` | A slot for adding footer content. This content will be positioned at the bottom of the shell. |\n| `"shell-header"` | A slot for adding header content. This content will be positioned at the top of the shell. |\n| `"tip-manager"` | A slot for adding a `calcite-tip-manager`. This component will be absolutely positioned. |\n\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n'),panel:Object(utils.c)('# calcite-shell-panel\n\nThe `calcite-shell-panel` is a child component of `calcite-shell` used as a container to display other components like `calcite-block` and `calcite-flow`.\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Usage\n\n### Basic\n\n#### Basic\n\nRenders a basic shell panel with text content.\n\n```html\n\n

Primary Content

\n
\n```\n\n#### With action bar\n\nRenders a panel with an action bar.\n\n```html\n\n \n \n \n \n \n \n \n \n \n \n \n\n```\n\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------- | ---------------- | --------------------------------------------------------------------------------------- | ------------------------- | ----------- |\n| `collapsed` | `collapsed` | Hide the content panel. | `boolean` | `false` |\n| `detached` | `detached` | This property makes the content area appear like a "floating" panel. | `boolean` | `false` |\n| `detachedScale` | `detached-scale` | This sets limits the height of the content area. It only applies when detached is true. | `"l" or "m" or "s"` | `"m"` |\n| `layout` | `layout` | Arrangement of the component. | `"leading" or "trailing"` | `"leading"` |\n\n\n## Events\n\n| Event | Description | Type |\n| ------------------------- | --------------------------------------- | ------------------ |\n| `calciteShellPanelToggle` | Emitted when collapse has been toggled. | `CustomEvent` |\n\n\n## Slots\n\n| Slot | Description |\n| -------------- | ------------------------------------------------------ |\n| | A slot for adding content to the shell panel. |\n| `"action-bar"` | A slot for adding a `calcite-action-bar` to the panel. |\n\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n')}}};const createAttributes=group=>[{name:"dir",value:Object(dist.select)("dir",dir.values,dir.defaultValue,group)},{name:"theme",value:Object(dist.select)("theme",theme.values,theme.defaultValue,group)}],createShellPanelAttributes=group=>[{name:"slot",value:"Leading Panel"===group?"primary-panel":"contextual-panel"},{name:"collapsed",value:Object(dist.boolean)("collapsed",!1,group)},{name:"detached",value:Object(dist.boolean)("detached",!1,group)},{name:"detached-scale",value:Object(dist.select)("detachedScale",scale.values,scale.defaultValue,group)},{name:"layout",value:Object(dist.select)("layout",layout.values,"Leading Panel"===group?layout.values[0]:layout.values[1],group)}],actionBarPrimaryContentHTML=dedent_default.a` + + + + + + + +`,actionBarContextualContentHTML=dedent_default.a` + + + + + + + +`,actionBarPrimaryHTML=dedent_default.a` + + ${actionBarPrimaryContentHTML} + +`,actionBarContextualHTML=dedent_default.a` + + ${actionBarContextualContentHTML} + +`,leadingPanelHTML=dedent_default.a` + ${actionBarPrimaryHTML} +

My Leading Panel

+`,trailingPanelHTML=dedent_default.a` + ${actionBarContextualHTML} +

My Trailing Panel

+`,headerHTML=dedent_default.a` +
+

My Shell Header

+
+`,footerHTML='
My Shell Footer
',contentHTML=dedent_default.a` +
+`,tipManagerHTML=dedent_default.a` + + + + This is an image. +

+ This tip is how a tip should really look. It has a landscape or square image and a small amount of text + content. This paragraph is in an "info" slot. +

+

+ This is another paragraph in a subsequent "info" slot. In publishing and graphic design, Lorem ipsum is + a placeholder text commonly used to demonstrate the visual form of a document without relying on + meaningful content (also called greeking). Replacing the actual content with placeholder text allows + designers to design the form of the content before the content itself has been produced. +

+ This is the "link" slot. +
+ + This is an image. +

+ This tip has an image that is a pretty tall. And the text will run out before the end of the image. +

+

In astronomy, the terms object and body are often used interchangeably.

+ View Esri +
+
+ + This is an image. +

+ This tip has an image that is square. And the text will run out before the end of the image. +

+

In astronomy, the terms object and body are often used interchangeably.

+

+ In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the + visual form of a document without relying on meaningful content (also called greeking). Replacing the + actual content with placeholder text allows designers to design the form of the content before the content + itself has been produced. +

+ View Esri +
+ +

+ This tip has no image. As such, the content area will take up the entire width of the tip. +

+

+ This is the next paragraph and should show how wide the content area is now. Of course, the width of the + overall tip will affect things. In astronomy, the terms object and body are often used interchangeably. +

+ View Esri +
+
+`,basic=addSourceDecorator(()=>Object(utils.a)("calcite-shell",createAttributes("Shell"),dedent_default.a` + ${headerHTML} + ${Object(utils.a)("calcite-shell-panel",createShellPanelAttributes("Leading Panel"),leadingPanelHTML)} + ${contentHTML} + ${Object(utils.a)("calcite-shell-panel",createShellPanelAttributes("Trailing Panel"),trailingPanelHTML)} + ${footerHTML} + `),{__STORY__:__STORY__,__ADDS_MAP__:__ADDS_MAP__,__MAIN_FILE_LOCATION__:"/calcite-shell.stories.ts",__MODULE_DEPENDENCIES__:__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__:__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__:__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__:__IDS_TO_FRAMEWORKS__}),advancedLeadingPanelHTML=dedent_default.a` + ${actionBarPrimaryHTML} + + + + + + + + + +
+

Cool thing.

+
+
+
+ + +
+

Cool thing.

+
+
+
+ + +
+

Cool thang.

+
+
+
+`,advancedTrailingPanelHTMl=dedent_default.a` + ${actionBarContextualHTML} + + +
+ + + +
+ + + demo + + + + + + + + + + + + + Save + Cancel +
+ + + + + + + + + demo + + + + + + + + + + + + + + + demo + + + + + + + + Save + Cancel + +
+`,advanced=addSourceDecorator(()=>Object(utils.a)("calcite-shell",createAttributes("Shell"),dedent_default.a` + ${headerHTML} + ${Object(utils.a)("calcite-shell-panel",createShellPanelAttributes("Leading Panel"),advancedLeadingPanelHTML)} + ${contentHTML} + ${Object(utils.a)("calcite-shell-panel",createShellPanelAttributes("Trailing Panel"),advancedTrailingPanelHTMl)} + ${tipManagerHTML} + ${footerHTML} + `),{__STORY__:__STORY__,__ADDS_MAP__:__ADDS_MAP__,__MAIN_FILE_LOCATION__:"/calcite-shell.stories.ts",__MODULE_DEPENDENCIES__:__MODULE_DEPENDENCIES__,__LOCAL_DEPENDENCIES__:__LOCAL_DEPENDENCIES__,__SOURCE_PREFIX__:__SOURCE_PREFIX__,__IDS_TO_FRAMEWORKS__:__IDS_TO_FRAMEWORKS__})},1614:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var dist=__webpack_require__(1),utils=__webpack_require__(2);const TEXT_defaultGroupTitle="Tips",TEXT_defaultPaginationLabel="Tip",TEXT_close="Close",TEXT_previous="Previous",TEXT_next="Next";var resources=__webpack_require__(38),dedent=__webpack_require__(12),dedent_default=__webpack_require__.n(dedent);__webpack_require__.d(__webpack_exports__,"basic",(function(){return basic}));__webpack_require__(37).withSource;var addSourceDecorator=__webpack_require__(37).addSource;const{dir:dir,theme:theme}=resources.a;__webpack_exports__.default={title:"components|calcite-tip-manager",decorators:[dist.withKnobs],parameters:{storySource:{source:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport readme from "./readme.md";\nimport { TEXT } from "./resources";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nimport dedent from "dedent";\nconst { dir, theme } = ATTRIBUTES;\n\nexport default {\n title: "components|calcite-tip-manager",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: parseReadme(readme)\n }\n};\n\nconst createAttributes: () => Attributes = () => [\n {\n name: "closed",\n value: boolean("closed", false)\n },\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue)\n },\n {\n name: "text-close",\n value: text("textClose", TEXT.close)\n },\n {\n name: "text-defalut-title",\n value: text("textDefaultTitle", TEXT.defaultGroupTitle)\n },\n {\n name: "text-pagination-label",\n value: text("textPaginationLabel", TEXT.defaultPaginationLabel)\n },\n {\n name: "text-next",\n value: text("textNext", TEXT.next)\n },\n {\n name: "text-previous",\n value: text("textPrevious", TEXT.previous)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue)\n }\n];\n\nexport const basic = () =>\n create(\n "calcite-tip-manager",\n createAttributes(),\n dedent`\n \n \n This is an image.\n

\n This tip is how a tip should really look. It has a landscape or square image and a small amount of text\n content. This paragraph is in an "info" slot.\n

\n

\n This is another paragraph in a subsequent "info" slot. In publishing and graphic design, Lorem ipsum is\n a placeholder text commonly used to demonstrate the visual form of a document without relying on\n meaningful content (also called greeking). Replacing the actual content with placeholder text allows\n designers to design the form of the content before the content itself has been produced.\n

\n This is the "link" slot.\n
\n \n This is an image.\n

\n This tip has an image that is a pretty tall. And the text will run out before the end of the image.\n

\n

In astronomy, the terms object and body are often used interchangeably.

\n View Esri\n
\n
\n \n This is an image.\n

\n This tip has an image that is square. And the text will run out before the end of the image.\n

\n

In astronomy, the terms object and body are often used interchangeably.

\n

\n In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the\n visual form of a document without relying on meaningful content (also called greeking). Replacing the\n actual content with placeholder text allows designers to design the form of the content before the content\n itself has been produced.\n

\n View Esri\n
\n \n

\n This tip has no image. As such, the content area will take up the entire width of the tip.\n

\n

\n This is the next paragraph and should show how wide the content area is now. Of course, the width of the\n overall tip will affect things. In astronomy, the terms object and body are often used interchangeably.\n

\n View Esri\n
\n `\n );\n',locationsMap:{"components-calcite-tip-manager--basic":{startLoc:{col:21,line:62},endLoc:{col:3,line:116},startBody:{col:21,line:62},endBody:{col:3,line:116}}}},backgrounds:utils.b,docs:{page:utils.d},notes:Object(utils.c)('# calcite-tip-manager\n\nThe `calcite-tip-manager` component contains multiple `calcite-tip`s that a user can view through via interactive arrows to go back and forth through the tips in the deck.\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Usage\n\n### Basic\n\n#### Basic\n\nRenders a tip manager using a group of tips as well as a single tip.\n\n```html\n\n \n \n

\n Usually depicted as pure white, Pegasus is the offspring of the Olympian god Poseidon. He was foaled by the\n Gorgon Medusa upon her death, when the hero Perseus decapitated her.\n

\n Magical flying horsey\n \n \n

\n The creature resided in the twisting maze of the labyrinth where it was offfered a regular sacrifice of youths\n and maidens to satisfy its cannibalistic hunger.\n

\n Bull headed man\n \n
\n \n

\n Dangerous creatures who lured nearby sailors with their enchanting music and singing voices to shipwreck on the\n rocky coast of their island.\n

\n Sexy bird lady\n \n
\n```\n\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------------- | ----------------------- | ------------------------------------------------------ | ------------------- | ----------------------------- |\n| `closed` | `closed` | Alternate text for closing the `calcite-tip-manager`. | `boolean` | `false` |\n| `textClose` | `text-close` | Alternate text for closing the `calcite-tip-manager`. | `string` | `TEXT.close` |\n| `textDefaultTitle` | `text-default-title` | The default group title for the `calcite-tip-manager`. | `string` | `TEXT.defaultGroupTitle` |\n| `textNext` | `text-next` | Alternate text for navigating to the next tip. | `string` | `TEXT.next` |\n| `textPaginationLabel` | `text-pagination-label` | Label that appears on hover of pagination icon. | `string` | `TEXT.defaultPaginationLabel` |\n| `textPrevious` | `text-previous` | Alternate text for navigating to the previous tip. | `string` | `TEXT.previous` |\n| `theme` | `theme` | Used to set the component\'s color scheme. | `"dark" or "light"` | `undefined` |\n\n\n## Events\n\n| Event | Description | Type |\n| ------------------------- | ----------------------------------------------------------------------- | ------------------ |\n| `calciteTipManagerToggle` | Emitted when the `calcite-tip-manager` has been toggled open or closed. | `CustomEvent` |\n\n\n## Methods\n\n### `nextTip() => Promise`\n\n\n\n#### Returns\n\nType: `Promise`\n\n\n\n### `previousTip() => Promise`\n\n\n\n#### Returns\n\nType: `Promise`\n\n\n\n\n## Slots\n\n| Slot | Description |\n| ---- | --------------------------------- |\n| | A slot for adding `calcite-tip`s. |\n\n\n## Dependencies\n\n### Depends on\n\n- [calcite-action](../calcite-action)\n\n### Graph\n```mermaid\ngraph TD;\n calcite-tip-manager --\x3e calcite-action\n style calcite-tip-manager fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n')}};const basic=addSourceDecorator(()=>Object(utils.a)("calcite-tip-manager",[{name:"closed",value:Object(dist.boolean)("closed",!1)},{name:"dir",value:Object(dist.select)("dir",dir.values,dir.defaultValue)},{name:"text-close",value:Object(dist.text)("textClose",TEXT_close)},{name:"text-defalut-title",value:Object(dist.text)("textDefaultTitle",TEXT_defaultGroupTitle)},{name:"text-pagination-label",value:Object(dist.text)("textPaginationLabel",TEXT_defaultPaginationLabel)},{name:"text-next",value:Object(dist.text)("textNext",TEXT_next)},{name:"text-previous",value:Object(dist.text)("textPrevious",TEXT_previous)},{name:"theme",value:Object(dist.select)("theme",theme.values,theme.defaultValue)}],dedent_default.a` + + + This is an image. +

+ This tip is how a tip should really look. It has a landscape or square image and a small amount of text + content. This paragraph is in an "info" slot. +

+

+ This is another paragraph in a subsequent "info" slot. In publishing and graphic design, Lorem ipsum is + a placeholder text commonly used to demonstrate the visual form of a document without relying on + meaningful content (also called greeking). Replacing the actual content with placeholder text allows + designers to design the form of the content before the content itself has been produced. +

+ This is the "link" slot. +
+ + This is an image. +

+ This tip has an image that is a pretty tall. And the text will run out before the end of the image. +

+

In astronomy, the terms object and body are often used interchangeably.

+ View Esri +
+
+ + This is an image. +

+ This tip has an image that is square. And the text will run out before the end of the image. +

+

In astronomy, the terms object and body are often used interchangeably.

+

+ In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the + visual form of a document without relying on meaningful content (also called greeking). Replacing the + actual content with placeholder text allows designers to design the form of the content before the content + itself has been produced. +

+ View Esri +
+ +

+ This tip has no image. As such, the content area will take up the entire width of the tip. +

+

+ This is the next paragraph and should show how wide the content area is now. Of course, the width of the + overall tip will affect things. In astronomy, the terms object and body are often used interchangeably. +

+ View Esri +
+ `),{__STORY__:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport readme from "./readme.md";\nimport { TEXT } from "./resources";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\nimport dedent from "dedent";\nconst { dir, theme } = ATTRIBUTES;\n\nexport default {\n title: "components|calcite-tip-manager",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: parseReadme(readme)\n }\n};\n\nconst createAttributes: () => Attributes = () => [\n {\n name: "closed",\n value: boolean("closed", false)\n },\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue)\n },\n {\n name: "text-close",\n value: text("textClose", TEXT.close)\n },\n {\n name: "text-defalut-title",\n value: text("textDefaultTitle", TEXT.defaultGroupTitle)\n },\n {\n name: "text-pagination-label",\n value: text("textPaginationLabel", TEXT.defaultPaginationLabel)\n },\n {\n name: "text-next",\n value: text("textNext", TEXT.next)\n },\n {\n name: "text-previous",\n value: text("textPrevious", TEXT.previous)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue)\n }\n];\n\nexport const basic = () =>\n create(\n "calcite-tip-manager",\n createAttributes(),\n dedent`\n \n \n This is an image.\n

\n This tip is how a tip should really look. It has a landscape or square image and a small amount of text\n content. This paragraph is in an "info" slot.\n

\n

\n This is another paragraph in a subsequent "info" slot. In publishing and graphic design, Lorem ipsum is\n a placeholder text commonly used to demonstrate the visual form of a document without relying on\n meaningful content (also called greeking). Replacing the actual content with placeholder text allows\n designers to design the form of the content before the content itself has been produced.\n

\n This is the "link" slot.\n
\n \n This is an image.\n

\n This tip has an image that is a pretty tall. And the text will run out before the end of the image.\n

\n

In astronomy, the terms object and body are often used interchangeably.

\n View Esri\n
\n
\n \n This is an image.\n

\n This tip has an image that is square. And the text will run out before the end of the image.\n

\n

In astronomy, the terms object and body are often used interchangeably.

\n

\n In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the\n visual form of a document without relying on meaningful content (also called greeking). Replacing the\n actual content with placeholder text allows designers to design the form of the content before the content\n itself has been produced.\n

\n View Esri\n
\n \n

\n This tip has no image. As such, the content area will take up the entire width of the tip.\n

\n

\n This is the next paragraph and should show how wide the content area is now. Of course, the width of the\n overall tip will affect things. In astronomy, the terms object and body are often used interchangeably.\n

\n View Esri\n
\n `\n );\n',__ADDS_MAP__:{"components-calcite-tip-manager--basic":{startLoc:{col:21,line:62},endLoc:{col:3,line:116},startBody:{col:21,line:62},endBody:{col:3,line:116}}},__MAIN_FILE_LOCATION__:"/calcite-tip-manager.stories.ts",__MODULE_DEPENDENCIES__:[],__LOCAL_DEPENDENCIES__:{},__SOURCE_PREFIX__:"/Users/juan6600/dev/projects/calcite-app-components/src/components/calcite-tip-manager",__IDS_TO_FRAMEWORKS__:{}})},1615:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var dist=__webpack_require__(1),utils=__webpack_require__(2);const TEXT_close="Close";var resources=__webpack_require__(38);__webpack_require__.d(__webpack_exports__,"basic",(function(){return basic}));__webpack_require__(37).withSource;var addSourceDecorator=__webpack_require__(37).addSource;__webpack_exports__.default={title:"components|calcite-tip",decorators:[dist.withKnobs],parameters:{storySource:{source:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport readme from "./readme.md";\nimport { TEXT } from "./resources";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\n\nexport default {\n title: "components|calcite-tip",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: parseReadme(readme)\n }\n};\n\nconst { dir, theme } = ATTRIBUTES;\n\nconst createAttributes: () => Attributes = () => [\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue)\n },\n {\n name: "dismissed",\n value: boolean("dismissed", false)\n },\n {\n name: "non-dismissible",\n value: boolean("nonDismissible", false)\n },\n {\n name: "heading",\n value: text("heading", "My Tip")\n },\n {\n name: "text-close",\n value: text("textClose", TEXT.close)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue)\n }\n];\n\nconst html = `This is an image.Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae.
This is a "link".`;\n\nexport const basic = () => create("calcite-tip", createAttributes(), html);\n',locationsMap:{"components-calcite-tip--basic":{startLoc:{col:21,line:56},endLoc:{col:74,line:56},startBody:{col:21,line:56},endBody:{col:74,line:56}}}},backgrounds:utils.b,docs:{page:utils.d},notes:Object(utils.c)('# calcite-tip\n\nThe `calcite-tip` component can comprise of an image, text and hyperlink to give helpful hints to a user about using the platform.\n\n\x3c!-- Auto Generated Below --\x3e\n\n\n## Usage\n\n### Basic\n\n#### Basic\n\nRenders a non-dismissible tip with a heading, thumbnail, info and a link.\n\n```html\n\n This is an image of nature.\n

\n Normal tip with a landscape or square image and a small amount of text in the "info" slot.\n

\n Put a link hurr!\n
\n```\n\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ---------------- | ----------------- | --------------------------------------------------------------------------------- | ------------------- | ------------ |\n| `dismissed` | `dismissed` | No longer displays the tip. | `boolean` | `false` |\n| `heading` | `heading` | The heading of the tip. | `string` | `undefined` |\n| `nonDismissible` | `non-dismissible` | Indicates whether the tip can be dismissed. | `boolean` | `false` |\n| `selected` | `selected` | The selected state of the tip if it is being used inside a `calcite-tip-manager`. | `boolean` | `undefined` |\n| `textClose` | `text-close` | Alternate text for closing the tip. | `string` | `TEXT.close` |\n| `theme` | `theme` | Used to set the component\'s color scheme. | `"dark" or "light"` | `undefined` |\n\n\n## Events\n\n| Event | Description | Type |\n| ------------------- | ---------------------------------------------- | ------------------ |\n| `calciteTipDismiss` | Emitted when the component has been dismissed. | `CustomEvent` |\n\n\n## Slots\n\n| Slot | Description |\n| ------------- | --------------------------------------------------- |\n| `"thumbnail"` | A slot for adding an HTML image element to the tip. |\n\n\n## Dependencies\n\n### Depends on\n\n- [calcite-action](../calcite-action)\n\n### Graph\n```mermaid\ngraph TD;\n calcite-tip --\x3e calcite-action\n style calcite-tip fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n')}};const{dir:dir,theme:theme}=resources.a,basic=addSourceDecorator(()=>Object(utils.a)("calcite-tip",[{name:"dir",value:Object(dist.select)("dir",dir.values,dir.defaultValue)},{name:"dismissed",value:Object(dist.boolean)("dismissed",!1)},{name:"non-dismissible",value:Object(dist.boolean)("nonDismissible",!1)},{name:"heading",value:Object(dist.text)("heading","My Tip")},{name:"text-close",value:Object(dist.text)("textClose",TEXT_close)},{name:"theme",value:Object(dist.select)("theme",theme.values,theme.defaultValue)}],'This is an image.Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae.This is a "link".'),{__STORY__:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport {\n Attributes,\n createComponentHTML as create,\n darkBackground,\n parseReadme,\n titlelessDocsPage\n} from "../../../.storybook/utils";\nimport readme from "./readme.md";\nimport { TEXT } from "./resources";\nimport { ATTRIBUTES } from "../../../.storybook/resources";\n\nexport default {\n title: "components|calcite-tip",\n decorators: [withKnobs],\n parameters: {\n backgrounds: darkBackground,\n docs: {\n page: titlelessDocsPage\n },\n notes: parseReadme(readme)\n }\n};\n\nconst { dir, theme } = ATTRIBUTES;\n\nconst createAttributes: () => Attributes = () => [\n {\n name: "dir",\n value: select("dir", dir.values, dir.defaultValue)\n },\n {\n name: "dismissed",\n value: boolean("dismissed", false)\n },\n {\n name: "non-dismissible",\n value: boolean("nonDismissible", false)\n },\n {\n name: "heading",\n value: text("heading", "My Tip")\n },\n {\n name: "text-close",\n value: text("textClose", TEXT.close)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue)\n }\n];\n\nconst html = `This is an image.Enim nascetur erat faucibus ornare varius arcu fames bibendum habitant felis elit ante. Nibh morbi massa curae; leo semper diam aenean congue taciti eu porta. Varius faucibus ridiculus donec. Montes sit ligula purus porta ante lacus habitasse libero cubilia purus! In quis congue arcu maecenas felis cursus pellentesque nascetur porta donec non. Quisque, rutrum ligula pharetra justo habitasse facilisis rutrum neque. Magnis nostra nec nulla dictumst taciti consectetur. Non porttitor tempor orci dictumst magna porta vitae.This is a "link".`;\n\nexport const basic = () => create("calcite-tip", createAttributes(), html);\n',__ADDS_MAP__:{"components-calcite-tip--basic":{startLoc:{col:21,line:56},endLoc:{col:74,line:56},startBody:{col:21,line:56},endBody:{col:74,line:56}}},__MAIN_FILE_LOCATION__:"/calcite-tip.stories.ts",__MODULE_DEPENDENCIES__:[],__LOCAL_DEPENDENCIES__:{},__SOURCE_PREFIX__:"/Users/juan6600/dev/projects/calcite-app-components/src/components/calcite-tip",__IDS_TO_FRAMEWORKS__:{}})},1617:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__(3),__webpack_require__(50),__webpack_require__(39),__webpack_require__(11),__webpack_require__(4),__webpack_require__(155),__webpack_require__(156),__webpack_require__(5),__webpack_require__(44),__webpack_require__(0);var esm=__webpack_require__(8),blocks=__webpack_require__(41);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _extends(){return(_extends=Object.assign||function(target){for(var source,i=1;i` tags in the head of your HTML document:\n\n```html\n