diff --git a/CHANGELOG.md b/CHANGELOG.md index b94e063f..7e7ff650 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ This document maintains a list of released versions and changes introduced by them. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) +### [6.1.1](https://github.com/Esri/calcite-app-components/compare/v6.1.0...v6.1.1) (2020-07-21) + +### Bug Fixes + +- **action:** fixed icon scales ([e873db2](https://github.com/Esri/calcite-app-components/commit/e873db24ec4ddb317a1fe73dc7d4d80bbdf2268f)), closes [#1034](https://github.com/Esri/calcite-app-components/issues/1034) +- **shell-center-row:** Error when no action-bar is provided ([#1032](https://github.com/Esri/calcite-app-components/issues/1032)) ([2181e34](https://github.com/Esri/calcite-app-components/commit/2181e34eb71f8cbcd52d3432fe6263bae72fd326)) + ## [6.1.0](https://github.com/Esri/calcite-app-components/compare/v6.0.0...v6.1.0) (2020-07-09) ### Features diff --git a/docs/build/calcite-app.esm.js b/docs/build/calcite-app.esm.js index 6fcbc746..dc5b0397 100644 --- a/docs/build/calcite-app.esm.js +++ b/docs/build/calcite-app.esm.js @@ -1 +1 @@ -import{b as e}from"./p-75b1a4f0.js";import{p as t}from"./p-eed318ce.js";t().then(t=>e([["p-4270b25d",[[1,"calcite-tip",{dismissed:[1028],nonDismissible:[516,"non-dismissible"],heading:[1],selected:[516],intlClose:[1,"intl-close"],theme:[513]}],[1,"calcite-tip-manager",{closed:[516],intlClose:[1,"intl-close"],intlDefaultTitle:[1,"intl-default-title"],intlNext:[1,"intl-next"],intlPaginationLabel:[1,"intl-pagination-label"],intlPrevious:[1,"intl-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}],[1,"calcite-tip-group",{textGroupTitle:[1,"text-group-title"]}]]],["p-9a230400",[[1,"calcite-block",{collapsible:[4],disabled:[516],dragHandle:[516,"drag-handle"],heading:[1],intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],loading:[516],open:[516],summary:[1],theme:[513]}],[1,"calcite-block-section",{intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],open:[516],text:[1],toggleDisplay:[513,"toggle-display"]}]]],["p-244ae975",[[1,"calcite-value-list-item",{disabled:[516],disableDeselect:[4,"disable-deselect"],handleActivated:[1028,"handle-activated"],icon:[513],metadata:[16],removable:[516],selected:[1540],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]]],["p-1372d4e2",[[1,"calcite-pick-list",{disabled:[516],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-f2619e2d",[[1,"calcite-value-list",{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],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-90dd35c8",[[1,"calcite-shell",{theme:[513]}],[1,"calcite-shell-panel",{collapsed:[516],detached:[516],detachedScale:[1,"detached-scale"],position:[513]}]]],["p-d65faa31",[[1,"calcite-fab",{appearance:[513],color:[513],disabled:[516],icon:[1],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-280cc70f",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-d6b108d1",[[1,"calcite-shell-center-row",{detached:[516],heightScale:[513,"height-scale"],position:[513]}]]],["p-ac70cb3e",[[1,"calcite-sortable-list",{handleSelector:[1,"handle-selector"],disabled:[516],loading:[516],handleActivated:[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]]],["p-1d6850ae",[[1,"calcite-action-bar",{expand:[516],expanded:[516],tooltipExpand:[16],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513],theme:[513]}],[1,"calcite-action-pad",{layout:[513],expand:[516],expanded:[516],tooltipExpand:[16],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513],theme:[513]}],[1,"calcite-action-group"],[1,"calcite-action",{appearance:[513],active:[516],compact:[516],disabled:[516],icon:[1],indicator:[516],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-5a147189",[[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],intlBack:[1,"intl-back"],intlClose:[1,"intl-close"],intlOpen:[1,"intl-open"],theme:[513]},[[0,"calcitePanelScroll","handleCalcitePanelScroll"]]],[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],intlClose:[1,"intl-close"],theme:[513],setFocus:[64]}]]],["p-4c75be95",[[1,"calcite-pick-list-item",{disabled:[516],disableDeselect:[4,"disable-deselect"],icon:[513],metadata:[16],removable:[516],selected:[1540],textDescription:[513,"text-description"],textLabel:[513,"text-label"],textRemove:[513,"text-remove"],value:[513],toggleSelected:[64],setFocus:[64]}]]],["p-3a6ecbac",[[1,"calcite-handle",{activated:[1540],textTitle:[513,"text-title"],setFocus:[64]}]]],["p-0ba6d30d",[[1,"calcite-filter",{data:[16],intlClear:[1,"intl-clear"],intlLabel:[1,"intl-label"],placeholder:[1],empty:[32]}]]]],t)); \ No newline at end of file +import{b as e}from"./p-1b507203.js";import{p as t}from"./p-e11bdceb.js";t().then(t=>e([["p-16795ffe",[[1,"calcite-tip",{dismissed:[1028],nonDismissible:[516,"non-dismissible"],heading:[1],selected:[516],intlClose:[1,"intl-close"],theme:[513]}],[1,"calcite-tip-manager",{closed:[516],intlClose:[1,"intl-close"],intlDefaultTitle:[1,"intl-default-title"],intlNext:[1,"intl-next"],intlPaginationLabel:[1,"intl-pagination-label"],intlPrevious:[1,"intl-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}],[1,"calcite-tip-group",{textGroupTitle:[1,"text-group-title"]}]]],["p-9e56388b",[[1,"calcite-block",{collapsible:[4],disabled:[516],dragHandle:[516,"drag-handle"],heading:[1],intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],loading:[516],open:[516],summary:[1],theme:[513]}],[1,"calcite-block-section",{intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],open:[516],text:[1],toggleDisplay:[513,"toggle-display"]}]]],["p-17bde2eb",[[1,"calcite-value-list-item",{disabled:[516],disableDeselect:[4,"disable-deselect"],handleActivated:[1028,"handle-activated"],icon:[513],metadata:[16],removable:[516],selected:[1540],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]]],["p-40df3238",[[1,"calcite-pick-list",{disabled:[516],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-2e9a1023",[[1,"calcite-value-list",{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],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-d2356baa",[[1,"calcite-shell",{theme:[513]}],[1,"calcite-shell-panel",{collapsed:[516],detached:[516],detachedScale:[1,"detached-scale"],position:[513]}]]],["p-88794b38",[[1,"calcite-fab",{appearance:[513],color:[513],disabled:[516],icon:[1],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-317576fb",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-cccd3f20",[[1,"calcite-shell-center-row",{detached:[516],heightScale:[513,"height-scale"],position:[513]}]]],["p-a8d43763",[[1,"calcite-sortable-list",{handleSelector:[1,"handle-selector"],disabled:[516],loading:[516],handleActivated:[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]]],["p-acd315a3",[[1,"calcite-action-bar",{expand:[516],expanded:[516],tooltipExpand:[16],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513],theme:[513]}],[1,"calcite-action-pad",{layout:[513],expand:[516],expanded:[516],tooltipExpand:[16],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513],theme:[513]}],[1,"calcite-action-group"],[1,"calcite-action",{appearance:[513],active:[516],compact:[516],disabled:[516],icon:[1],indicator:[516],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-3e14414f",[[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],intlBack:[1,"intl-back"],intlClose:[1,"intl-close"],intlOpen:[1,"intl-open"],theme:[513]},[[0,"calcitePanelScroll","handleCalcitePanelScroll"]]],[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],intlClose:[1,"intl-close"],theme:[513],setFocus:[64]}]]],["p-9f66fed4",[[1,"calcite-pick-list-item",{disabled:[516],disableDeselect:[4,"disable-deselect"],icon:[513],metadata:[16],removable:[516],selected:[1540],textDescription:[513,"text-description"],textLabel:[513,"text-label"],textRemove:[513,"text-remove"],value:[513],toggleSelected:[64],setFocus:[64]}]]],["p-d2707a8a",[[1,"calcite-handle",{activated:[1540],textTitle:[513,"text-title"],setFocus:[64]}]]],["p-296645d4",[[1,"calcite-filter",{data:[16],intlClear:[1,"intl-clear"],intlLabel:[1,"intl-label"],placeholder:[1],empty:[32]}]]]],t)); \ No newline at end of file diff --git a/docs/build/calcite-app.js b/docs/build/calcite-app.js index a96d58c7..ad9d326d 100644 --- a/docs/build/calcite-app.js +++ b/docs/build/calcite-app.js @@ -125,7 +125,7 @@ var StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent= var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : ''; var start = function() { - var url = new URL('./p-acbf52ad.system.js', new URL(resourcesUrl, window.location.origin)); + var url = new URL('./p-7d3473c4.system.js', new URL(resourcesUrl, window.location.origin)); System.import(url.href); }; diff --git a/docs/build/p-04111149.system.js b/docs/build/p-02f9b874.system.js similarity index 99% rename from docs/build/p-04111149.system.js rename to docs/build/p-02f9b874.system.js index 83eebff3..7f796d81 100644 --- a/docs/build/p-04111149.system.js +++ b/docs/build/p-02f9b874.system.js @@ -1 +1 @@ -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{o(n.next(e))}catch(r){i(r)}}function l(e){try{o(n["throw"](e))}catch(r){i(r)}}function o(e){e.done?t(e.value):a(e.value).then(s,l)}o((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:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(r){return o([e,r])}}function o(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]-1}();var g=e("a",(function(e){return Promise.resolve(e)}));var y=function(){try{new CSSStyleSheet;return true}catch(e){}return false}();var b=function(e,r,t,n){if(t){t.map((function(t){var n=t[0],a=t[1],i=t[2];var s=e;var l=w(r,i);var o=N(n);p.ael(s,a,l,o);(r.$rmListeners$=r.$rmListeners$||[]).push((function(){return p.rel(s,a,l,o)}))}))}};var w=function(e,r){return function(t){{if(e.$flags$&256){e.$lazyInstance$[r](t)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([r,t])}}}};var N=function(e){return(e&2)!==0};var R="{visibility:hidden}.hydrated{visibility:inherit}";var S="http://www.w3.org/1999/xlink";var _=function(e,r){if(r===void 0){r=""}{return function(){return}}};var x=function(e,r){{return function(){return}}};var k=new WeakMap;var C=function(e,r,t){var n=Ke.get(e);if(y&&t){n=n||new CSSStyleSheet;n.replace(r)}else{n=r}Ke.set(e,n)};var T=function(e,r,t,n){var a=P(r);var i=Ke.get(a);e=e.nodeType===11?e:h;if(i){if(typeof i==="string"){e=e.head||e;var s=k.get(e);var l=void 0;if(!s){k.set(e,s=new Set)}if(!s.has(a)){{if(p.$cssShim$){l=p.$cssShim$.createHostStyle(n,a,i,!!(r.$flags$&10));var o=l["s-sc"];if(o){a=o;s=null}}else{l=h.createElement("style");l.innerHTML=i}e.insertBefore(l,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArrays(e.adoptedStyleSheets,[i])}}return a};var L=function(e){var r=e.$cmpMeta$;var t=e.$hostElement$;var n=r.$flags$;var a=_("attachStyles",r.$tagName$);var i=T(m&&t.shadowRoot?t.shadowRoot:t.getRootNode(),r,e.$modeName$,t);if(n&10){t["s-sc"]=i;t.classList.add(i+"-h")}a()};var P=function(e,r){return"sc-"+e.$tagName$};var j={};var E=function(e){return e!=null};var A=function(){};var I=function(e){e=typeof e;return e==="object"||e==="function"};var M=typeof Deno!=="undefined";var O=!M&&typeof global!=="undefined"&&typeof require==="function"&&!!global.process&&typeof __filename==="string"&&(!global.origin||typeof global.origin!=="string");var B=M&&Deno.build.os==="windows";var z=O?process.cwd:M?Deno.cwd:function(){return"/"};var q=O?process.exit:M?Deno.exit:A;var U=e("h",(function(e,r){var t=[];for(var n=2;n0){c.$children$=f}{c.$key$=i}{c.$name$=s}return c}));var H=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 D=e("H",{});var V=function(e){return e&&e.$tag$===D};var W={forEach:function(e,r){return e.map(G).forEach(r)},map:function(e,r){return e.map(G).map(r).map(F)}};var G=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var F=function(e){var r=H(e.vtag,e.vtext);r.$attrs$=e.vattrs;r.$children$=e.vchildren;r.$key$=e.vkey;r.$name$=e.vname;return r};var Q=function(e,r,t,n,a,i){if(t!==n){var s=Ge(e,r);var l=r.toLowerCase();if(r==="class"){var o=e.classList;var f=K(t);var $=K(n);o.remove.apply(o,f.filter((function(e){return e&&!$.includes(e)})));o.add.apply(o,$.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(Ge(v,l)){r=l.slice(2)}else{r=l[2]+r.slice(3)}if(t){p.rel(e,r,t,false)}if(n){p.ael(e,r,n,false)}}else{var c=I(n);if((s||c&&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(l!==(l=l.replace(/^xlink\:?/,""))){r=l;h=true}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){if(h){e.removeAttributeNS(S,r)}else{e.removeAttribute(r)}}}else if((!s||i&4||a)&&!c){n=n===true?"":n;if(h){e.setAttributeNS(S,r,n)}else{e.setAttribute(r,n)}}}}};var J=/\s/;var K=function(e){return!e?[]:e.split(J)};var X=function(e,r,t,n){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||j;var s=r.$attrs$||j;{for(n in i){if(!(n in s)){Q(a,n,i[n],undefined,t,r.$flags$)}}}for(n in s){Q(a,n,i[n],s[n],t,r.$flags$)}};var Y=function(e,r,t,n){var o=r.$children$[t];var u=0;var c;var v;var d;if(!l){f=true;if(o.$tag$==="slot"){if(a){n.classList.add(a+"-s")}o.$flags$|=o.$children$?2:1}}if(o.$text$!==null){c=o.$elm$=h.createTextNode(o.$text$)}else if(o.$flags$&1){c=o.$elm$=h.createTextNode("")}else{c=o.$elm$=h.createElement(o.$flags$&2?"slot-fb":o.$tag$);{X(null,o,$)}if(E(a)&&c["s-si"]!==a){c.classList.add(c["s-si"]=a)}if(o.$children$){for(u=0;u=0;n--){var a=t[n];if(a["s-hn"]!==s&&a["s-ol"]){ie(a).insertBefore(a,ae(a));a["s-ol"].remove();a["s-ol"]=undefined;f=true}if(r){Z(a,r)}}p.$flags$&=~1};var ee=function(e,r,t,n,a,i){var l=e["s-cr"]&&e["s-cr"].parentNode||e;var o;if(l.shadowRoot&&l.tagName===s){l=l.shadowRoot}for(;a<=i;++a){if(n[a]){o=Y(null,t,a,e);if(o){n[a].$elm$=o;l.insertBefore(o,ae(r))}}}};var re=function(e,r,t,n,a){for(;r<=t;++r){if(n=e[r]){a=n.$elm$;ue(n);{o=true;if(a["s-ol"]){a["s-ol"].remove()}else{Z(a,true)}}a.remove()}}};var te=function(e,r,t,n){var a=0;var i=0;var s=0;var l=0;var o=r.length-1;var f=r[0];var $=r[o];var u=n.length-1;var c=n[0];var v=n[u];var d;var h;while(a<=o&&i<=u){if(f==null){f=r[++a]}else if($==null){$=r[--o]}else if(c==null){c=n[++i]}else if(v==null){v=n[--u]}else if(ne(f,c)){se(f,c);f=r[++a];c=n[++i]}else if(ne($,v)){se($,v);$=r[--o];v=n[--u]}else if(ne(f,v)){if(f.$tag$==="slot"||v.$tag$==="slot"){Z(f.$elm$.parentNode,false)}se(f,v);e.insertBefore(f.$elm$,$.$elm$.nextSibling);f=r[++a];v=n[--u]}else if(ne($,c)){if(f.$tag$==="slot"||v.$tag$==="slot"){Z($.$elm$.parentNode,false)}se($,c);e.insertBefore($.$elm$,f.$elm$);$=r[--o];c=n[++i]}else{s=-1;{for(l=a;l<=o;++l){if(r[l]&&r[l].$key$!==null&&r[l].$key$===c.$key$){s=l;break}}}if(s>=0){h=r[s];if(h.$tag$!==c.$tag$){d=Y(r&&r[i],t,s,e)}else{se(h,c);r[s]=undefined;d=h.$elm$}c=n[++i]}else{d=Y(r&&r[i],t,i,e);c=n[++i]}if(d){{ie(f.$elm$).insertBefore(d,ae(f.$elm$))}}}}if(a>o){ee(e,n[u+1]==null?null:n[u+1].$elm$,t,n,i,u)}else if(i>u){re(r,a,o)}};var ne=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 ae=function(e){return e&&e["s-ol"]||e};var ie=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var se=function(e,r){var t=r.$elm$=e.$elm$;var n=e.$children$;var a=r.$children$;var i=r.$tag$;var s=r.$text$;var l;if(s===null){{if(i==="slot");else{X(e,r,$)}}if(n!==null&&a!==null){te(t,n,r,a)}else if(a!==null){if(e.$text$!==null){t.textContent=""}ee(t,null,r,a,0,a.length-1)}else if(n!==null){re(n,0,n.length-1)}}else if(l=t["s-cr"]){l.parentNode.textContent=s}else if(e.$text$!==s){t.data=s}};var le=function(e){var r=e.childNodes;var t;var n;var a;var i;var s;var l;for(n=0,a=r.length;n=0;s--){t=n[s];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"]){if($e(t,a)){i=oe.find((function(e){return e.$nodeToRelocate$===t}));o=true;t["s-sn"]=t["s-sn"]||a;if(i){i.$slotRefNode$=r}else{oe.push({$slotRefNode$:r,$nodeToRelocate$:t})}if(t["s-sr"]){oe.map((function(e){if($e(e.$nodeToRelocate$,t["s-sn"])){i=oe.find((function(e){return e.$nodeToRelocate$===t}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!oe.some((function(e){return e.$nodeToRelocate$===t}))){oe.push({$nodeToRelocate$:t})}}}}if(r.nodeType===1){fe(r)}}};var $e=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var ue=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(ue)}};var ce=function(e,r){var t=e.$hostElement$;var n=e.$cmpMeta$;var $=e.$vnode$||H(null,null);var u=V(r)?r:U(null,null,r);s=t.tagName;if(n.$attrsToReflect$){u.$attrs$=u.$attrs$||{};n.$attrsToReflect$.map((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"];l=m&&(n.$flags$&1)!==0;o=false}se($,u);{p.$flags$|=1;if(f){fe(u.$elm$);var c=void 0;var v=void 0;var d=void 0;var g=void 0;var y=void 0;var b=void 0;var w=0;for(;w0){Ze.push.apply(Ze,Ye);Ye.length=0}if(c=Xe.length+Ye.length+Ze.length>0){p.raf(nr)}else{u=0}}};var ar=function(e){return g().then(e)};var ir=er(Ye,true)}}})); \ No newline at end of file +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{o(n.next(e))}catch(r){i(r)}}function l(e){try{o(n["throw"](e))}catch(r){i(r)}}function o(e){e.done?t(e.value):a(e.value).then(s,l)}o((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:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(r){return o([e,r])}}function o(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]-1}();var g=e("a",(function(e){return Promise.resolve(e)}));var y=function(){try{new CSSStyleSheet;return true}catch(e){}return false}();var b=function(e,r,t,n){if(t){t.map((function(t){var n=t[0],a=t[1],i=t[2];var s=e;var l=w(r,i);var o=N(n);p.ael(s,a,l,o);(r.$rmListeners$=r.$rmListeners$||[]).push((function(){return p.rel(s,a,l,o)}))}))}};var w=function(e,r){return function(t){{if(e.$flags$&256){e.$lazyInstance$[r](t)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([r,t])}}}};var N=function(e){return(e&2)!==0};var R="{visibility:hidden}.hydrated{visibility:inherit}";var S="http://www.w3.org/1999/xlink";var _=function(e,r){if(r===void 0){r=""}{return function(){return}}};var x=function(e,r){{return function(){return}}};var k=new WeakMap;var C=function(e,r,t){var n=Ke.get(e);if(y&&t){n=n||new CSSStyleSheet;n.replace(r)}else{n=r}Ke.set(e,n)};var T=function(e,r,t,n){var a=P(r);var i=Ke.get(a);e=e.nodeType===11?e:h;if(i){if(typeof i==="string"){e=e.head||e;var s=k.get(e);var l=void 0;if(!s){k.set(e,s=new Set)}if(!s.has(a)){{if(p.$cssShim$){l=p.$cssShim$.createHostStyle(n,a,i,!!(r.$flags$&10));var o=l["s-sc"];if(o){a=o;s=null}}else{l=h.createElement("style");l.innerHTML=i}e.insertBefore(l,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArrays(e.adoptedStyleSheets,[i])}}return a};var L=function(e){var r=e.$cmpMeta$;var t=e.$hostElement$;var n=r.$flags$;var a=_("attachStyles",r.$tagName$);var i=T(m&&t.shadowRoot?t.shadowRoot:t.getRootNode(),r,e.$modeName$,t);if(n&10){t["s-sc"]=i;t.classList.add(i+"-h")}a()};var P=function(e,r){return"sc-"+e.$tagName$};var j={};var E=function(e){return e!=null};var A=function(){};var I=function(e){e=typeof e;return e==="object"||e==="function"};var M=typeof Deno!=="undefined";var O=!M&&typeof global!=="undefined"&&typeof require==="function"&&!!global.process&&typeof __filename==="string"&&(!global.origin||typeof global.origin!=="string");var B=M&&Deno.build.os==="windows";var z=O?process.cwd:M?Deno.cwd:function(){return"/"};var q=O?process.exit:M?Deno.exit:A;var U=e("h",(function(e,r){var t=[];for(var n=2;n0){c.$children$=f}{c.$key$=i}{c.$name$=s}return c}));var H=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 D=e("H",{});var V=function(e){return e&&e.$tag$===D};var W={forEach:function(e,r){return e.map(G).forEach(r)},map:function(e,r){return e.map(G).map(r).map(F)}};var G=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var F=function(e){var r=H(e.vtag,e.vtext);r.$attrs$=e.vattrs;r.$children$=e.vchildren;r.$key$=e.vkey;r.$name$=e.vname;return r};var Q=function(e,r,t,n,a,i){if(t!==n){var s=Ge(e,r);var l=r.toLowerCase();if(r==="class"){var o=e.classList;var f=K(t);var $=K(n);o.remove.apply(o,f.filter((function(e){return e&&!$.includes(e)})));o.add.apply(o,$.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(Ge(v,l)){r=l.slice(2)}else{r=l[2]+r.slice(3)}if(t){p.rel(e,r,t,false)}if(n){p.ael(e,r,n,false)}}else{var c=I(n);if((s||c&&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(l!==(l=l.replace(/^xlink\:?/,""))){r=l;h=true}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){if(h){e.removeAttributeNS(S,r)}else{e.removeAttribute(r)}}}else if((!s||i&4||a)&&!c){n=n===true?"":n;if(h){e.setAttributeNS(S,r,n)}else{e.setAttribute(r,n)}}}}};var J=/\s/;var K=function(e){return!e?[]:e.split(J)};var X=function(e,r,t,n){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||j;var s=r.$attrs$||j;{for(n in i){if(!(n in s)){Q(a,n,i[n],undefined,t,r.$flags$)}}}for(n in s){Q(a,n,i[n],s[n],t,r.$flags$)}};var Y=function(e,r,t,n){var o=r.$children$[t];var u=0;var c;var v;var d;if(!l){f=true;if(o.$tag$==="slot"){if(a){n.classList.add(a+"-s")}o.$flags$|=o.$children$?2:1}}if(o.$text$!==null){c=o.$elm$=h.createTextNode(o.$text$)}else if(o.$flags$&1){c=o.$elm$=h.createTextNode("")}else{c=o.$elm$=h.createElement(o.$flags$&2?"slot-fb":o.$tag$);{X(null,o,$)}if(E(a)&&c["s-si"]!==a){c.classList.add(c["s-si"]=a)}if(o.$children$){for(u=0;u=0;n--){var a=t[n];if(a["s-hn"]!==s&&a["s-ol"]){ie(a).insertBefore(a,ae(a));a["s-ol"].remove();a["s-ol"]=undefined;f=true}if(r){Z(a,r)}}p.$flags$&=~1};var ee=function(e,r,t,n,a,i){var l=e["s-cr"]&&e["s-cr"].parentNode||e;var o;if(l.shadowRoot&&l.tagName===s){l=l.shadowRoot}for(;a<=i;++a){if(n[a]){o=Y(null,t,a,e);if(o){n[a].$elm$=o;l.insertBefore(o,ae(r))}}}};var re=function(e,r,t,n,a){for(;r<=t;++r){if(n=e[r]){a=n.$elm$;ue(n);{o=true;if(a["s-ol"]){a["s-ol"].remove()}else{Z(a,true)}}a.remove()}}};var te=function(e,r,t,n){var a=0;var i=0;var s=0;var l=0;var o=r.length-1;var f=r[0];var $=r[o];var u=n.length-1;var c=n[0];var v=n[u];var d;var h;while(a<=o&&i<=u){if(f==null){f=r[++a]}else if($==null){$=r[--o]}else if(c==null){c=n[++i]}else if(v==null){v=n[--u]}else if(ne(f,c)){se(f,c);f=r[++a];c=n[++i]}else if(ne($,v)){se($,v);$=r[--o];v=n[--u]}else if(ne(f,v)){if(f.$tag$==="slot"||v.$tag$==="slot"){Z(f.$elm$.parentNode,false)}se(f,v);e.insertBefore(f.$elm$,$.$elm$.nextSibling);f=r[++a];v=n[--u]}else if(ne($,c)){if(f.$tag$==="slot"||v.$tag$==="slot"){Z($.$elm$.parentNode,false)}se($,c);e.insertBefore($.$elm$,f.$elm$);$=r[--o];c=n[++i]}else{s=-1;{for(l=a;l<=o;++l){if(r[l]&&r[l].$key$!==null&&r[l].$key$===c.$key$){s=l;break}}}if(s>=0){h=r[s];if(h.$tag$!==c.$tag$){d=Y(r&&r[i],t,s,e)}else{se(h,c);r[s]=undefined;d=h.$elm$}c=n[++i]}else{d=Y(r&&r[i],t,i,e);c=n[++i]}if(d){{ie(f.$elm$).insertBefore(d,ae(f.$elm$))}}}}if(a>o){ee(e,n[u+1]==null?null:n[u+1].$elm$,t,n,i,u)}else if(i>u){re(r,a,o)}};var ne=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 ae=function(e){return e&&e["s-ol"]||e};var ie=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var se=function(e,r){var t=r.$elm$=e.$elm$;var n=e.$children$;var a=r.$children$;var i=r.$tag$;var s=r.$text$;var l;if(s===null){{if(i==="slot");else{X(e,r,$)}}if(n!==null&&a!==null){te(t,n,r,a)}else if(a!==null){if(e.$text$!==null){t.textContent=""}ee(t,null,r,a,0,a.length-1)}else if(n!==null){re(n,0,n.length-1)}}else if(l=t["s-cr"]){l.parentNode.textContent=s}else if(e.$text$!==s){t.data=s}};var le=function(e){var r=e.childNodes;var t;var n;var a;var i;var s;var l;for(n=0,a=r.length;n=0;s--){t=n[s];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"]){if($e(t,a)){i=oe.find((function(e){return e.$nodeToRelocate$===t}));o=true;t["s-sn"]=t["s-sn"]||a;if(i){i.$slotRefNode$=r}else{oe.push({$slotRefNode$:r,$nodeToRelocate$:t})}if(t["s-sr"]){oe.map((function(e){if($e(e.$nodeToRelocate$,t["s-sn"])){i=oe.find((function(e){return e.$nodeToRelocate$===t}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!oe.some((function(e){return e.$nodeToRelocate$===t}))){oe.push({$nodeToRelocate$:t})}}}}if(r.nodeType===1){fe(r)}}};var $e=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var ue=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(ue)}};var ce=function(e,r){var t=e.$hostElement$;var n=e.$cmpMeta$;var $=e.$vnode$||H(null,null);var u=V(r)?r:U(null,null,r);s=t.tagName;if(n.$attrsToReflect$){u.$attrs$=u.$attrs$||{};n.$attrsToReflect$.map((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"];l=m&&(n.$flags$&1)!==0;o=false}se($,u);{p.$flags$|=1;if(f){fe(u.$elm$);var c=void 0;var v=void 0;var d=void 0;var g=void 0;var y=void 0;var b=void 0;var w=0;for(;w0){Ze.push.apply(Ze,Ye);Ye.length=0}if(c=Xe.length+Ye.length+Ze.length>0){p.raf(nr)}else{u=0}}};var ar=function(e){return g().then(e)};var ir=er(Ye,true)}}})); \ No newline at end of file diff --git a/docs/build/p-4270b25d.entry.js b/docs/build/p-16795ffe.entry.js similarity index 99% rename from docs/build/p-4270b25d.entry.js rename to docs/build/p-16795ffe.entry.js index 10f2f09d..a55d5a1e 100644 --- a/docs/build/p-4270b25d.entry.js +++ b/docs/build/p-16795ffe.entry.js @@ -1 +1 @@ -import{r as a,c as e,h as t,H as i,g as c}from"./p-75b1a4f0.js";import{a as n,b as o}from"./p-27f3f0d7.js";const r=class{constructor(t){a(this,t),this.calciteTipDismiss=e(this,"calciteTipDismiss",7),this.dismissed=!1,this.nonDismissible=!1,this.hideTip=()=>{this.dismissed=!0,this.calciteTipDismiss.emit()}}renderHeader(){const{nonDismissible:a,hideTip:e,intlClose:i,heading:c}=this,n=a?null:t("calcite-action",{text:i||"Close",onClick:e,class:"close",icon:"x"}),o=c?t("h3",{class:"heading"},c):null;return n||o?t("header",{class:"header"},o,n):null}renderImageFrame(){const{el:a}=this;return n(a,"thumbnail")?t("div",{class:"image-frame"},t("slot",{name:"thumbnail"})):null}renderInfoNode(){return t("div",{class:"info"},t("slot",null))}renderContent(){return t("div",{class:"content"},this.renderImageFrame(),this.renderInfoNode())}render(){return t(i,null,t("article",{class:"container",hidden:this.dismissed},this.renderHeader(),this.renderContent()))}get el(){return c(this)}};r.style=":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:#00619b;--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)}.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);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}::slotted(a:focus){outline:2px solid var(--calcite-ui-blue-1);outline-offset:2px}.image-frame{width:25%}.image-frame img{max-width:100%}::slotted(img){max-width:100%}";const l=class{constructor(e){a(this,e)}render(){return t("slot",null)}};l.style=":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:#00619b;--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)}";const p=class{constructor(t){a(this,t),this.calciteTipManagerToggle=e(this,"calciteTipManagerToggle",7),this.closed=!1,this.observer=new MutationObserver(()=>this.setUpTips()),this.hideTipManager=()=>{this.closed=!0,this.calciteTipManagerToggle.emit()},this.previousClicked=()=>{this.previousTip()},this.nextClicked=()=>{this.nextTip()},this.tipManagerKeyUpHandler=a=>{if(a.target===this.container)switch(a.key){case"ArrowRight":a.preventDefault(),this.nextTip();break;case"ArrowLeft":a.preventDefault(),this.previousTip();break;case"Home":a.preventDefault(),this.selectedIndex=0;break;case"End":a.preventDefault(),this.selectedIndex=this.total-1}},this.storeContainerRef=a=>{this.container=a}}closedChangeHandler(){this.direction=null,this.calciteTipManagerToggle.emit()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}connectedCallback(){this.setUpTips(),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 a=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=a.length,0===this.total)return;const e=this.el.querySelector("calcite-tip[selected]");this.tips=a,this.selectedIndex=e?a.indexOf(e):0,a.forEach(a=>{a.nonDismissible=!0}),this.showSelectedTip(),this.updateGroupTitle()}showSelectedTip(){this.tips.forEach((a,e)=>{const t=this.selectedIndex===e;a.selected=t,a.hidden=!t})}updateGroupTitle(){const a=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=(null==a?void 0:a.textGroupTitle)||this.intlDefaultTitle||"Tips"}renderPagination(){const a=o(this.el),{selectedIndex:e,tips:i,total:c,intlNext:n,intlPrevious:r,intlPaginationLabel:l}=this,p=n||"Next",s=l||"Tip";return i.length>1?t("footer",{class:"pagination"},t("calcite-action",{text:r||"Previous",onClick:this.previousClicked,class:"page-previous",icon:"ltr"===a?"chevron-left":"chevron-right"}),t("span",{class:"page-position"},`${s} ${e+1}/${c}`),t("calcite-action",{text:p,onClick:this.nextClicked,class:"page-next",icon:"ltr"===a?"chevron-right":"chevron-left"})):null}render(){const{closed:a,direction:e,groupTitle:c,selectedIndex:n,intlClose:o,total:r}=this,l=o||"Close";return 0===r?t(i,null):t(i,null,t("section",{class:"container",hidden:a,"aria-hidden":a.toString(),tabIndex:0,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef},t("header",{class:"header"},t("h2",{key:n,class:"heading"},c),t("calcite-action",{text:l,onClick:this.hideTipManager,class:"close",icon:"x"})),t("div",{tabIndex:0,class:{"tip-container":!0,"tip-container--advancing":!a&&"advancing"===e,"tip-container--retreating":!a&&"retreating"===e},key:n},t("slot",null)),this.renderPagination()))}get el(){return c(this)}static get watchers(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}}};p.style=":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:#00619b;--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)}.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;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.container:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:2px}.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;margin-top:var(--calcite-app-cap-spacing-quarter);overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.tip-container:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:2px}::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{r as calcite_tip,l as calcite_tip_group,p as calcite_tip_manager} \ No newline at end of file +import{r as a,c as e,h as t,H as i,g as c}from"./p-1b507203.js";import{a as n,b as o}from"./p-27f3f0d7.js";const r=class{constructor(t){a(this,t),this.calciteTipDismiss=e(this,"calciteTipDismiss",7),this.dismissed=!1,this.nonDismissible=!1,this.hideTip=()=>{this.dismissed=!0,this.calciteTipDismiss.emit()}}renderHeader(){const{nonDismissible:a,hideTip:e,intlClose:i,heading:c}=this,n=a?null:t("calcite-action",{text:i||"Close",onClick:e,class:"close",icon:"x"}),o=c?t("h3",{class:"heading"},c):null;return n||o?t("header",{class:"header"},o,n):null}renderImageFrame(){const{el:a}=this;return n(a,"thumbnail")?t("div",{class:"image-frame"},t("slot",{name:"thumbnail"})):null}renderInfoNode(){return t("div",{class:"info"},t("slot",null))}renderContent(){return t("div",{class:"content"},this.renderImageFrame(),this.renderInfoNode())}render(){return t(i,null,t("article",{class:"container",hidden:this.dismissed},this.renderHeader(),this.renderContent()))}get el(){return c(this)}};r.style=":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:#00619b;--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)}.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);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}::slotted(a:focus){outline:2px solid var(--calcite-ui-blue-1);outline-offset:2px}.image-frame{width:25%}.image-frame img{max-width:100%}::slotted(img){max-width:100%}";const l=class{constructor(e){a(this,e)}render(){return t("slot",null)}};l.style=":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:#00619b;--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)}";const p=class{constructor(t){a(this,t),this.calciteTipManagerToggle=e(this,"calciteTipManagerToggle",7),this.closed=!1,this.observer=new MutationObserver(()=>this.setUpTips()),this.hideTipManager=()=>{this.closed=!0,this.calciteTipManagerToggle.emit()},this.previousClicked=()=>{this.previousTip()},this.nextClicked=()=>{this.nextTip()},this.tipManagerKeyUpHandler=a=>{if(a.target===this.container)switch(a.key){case"ArrowRight":a.preventDefault(),this.nextTip();break;case"ArrowLeft":a.preventDefault(),this.previousTip();break;case"Home":a.preventDefault(),this.selectedIndex=0;break;case"End":a.preventDefault(),this.selectedIndex=this.total-1}},this.storeContainerRef=a=>{this.container=a}}closedChangeHandler(){this.direction=null,this.calciteTipManagerToggle.emit()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}connectedCallback(){this.setUpTips(),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 a=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=a.length,0===this.total)return;const e=this.el.querySelector("calcite-tip[selected]");this.tips=a,this.selectedIndex=e?a.indexOf(e):0,a.forEach(a=>{a.nonDismissible=!0}),this.showSelectedTip(),this.updateGroupTitle()}showSelectedTip(){this.tips.forEach((a,e)=>{const t=this.selectedIndex===e;a.selected=t,a.hidden=!t})}updateGroupTitle(){const a=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=(null==a?void 0:a.textGroupTitle)||this.intlDefaultTitle||"Tips"}renderPagination(){const a=o(this.el),{selectedIndex:e,tips:i,total:c,intlNext:n,intlPrevious:r,intlPaginationLabel:l}=this,p=n||"Next",s=l||"Tip";return i.length>1?t("footer",{class:"pagination"},t("calcite-action",{text:r||"Previous",onClick:this.previousClicked,class:"page-previous",icon:"ltr"===a?"chevron-left":"chevron-right"}),t("span",{class:"page-position"},`${s} ${e+1}/${c}`),t("calcite-action",{text:p,onClick:this.nextClicked,class:"page-next",icon:"ltr"===a?"chevron-right":"chevron-left"})):null}render(){const{closed:a,direction:e,groupTitle:c,selectedIndex:n,intlClose:o,total:r}=this,l=o||"Close";return 0===r?t(i,null):t(i,null,t("section",{class:"container",hidden:a,"aria-hidden":a.toString(),tabIndex:0,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef},t("header",{class:"header"},t("h2",{key:n,class:"heading"},c),t("calcite-action",{text:l,onClick:this.hideTipManager,class:"close",icon:"x"})),t("div",{tabIndex:0,class:{"tip-container":!0,"tip-container--advancing":!a&&"advancing"===e,"tip-container--retreating":!a&&"retreating"===e},key:n},t("slot",null)),this.renderPagination()))}get el(){return c(this)}static get watchers(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}}};p.style=":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:#00619b;--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)}.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;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.container:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:2px}.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;margin-top:var(--calcite-app-cap-spacing-quarter);overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.tip-container:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:2px}::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{r as calcite_tip,l as calcite_tip_group,p as calcite_tip_manager} \ No newline at end of file diff --git a/docs/build/p-244ae975.entry.js b/docs/build/p-17bde2eb.entry.js similarity index 98% rename from docs/build/p-244ae975.entry.js rename to docs/build/p-17bde2eb.entry.js index bb2a98c9..7995bbf8 100644 --- a/docs/build/p-244ae975.entry.js +++ b/docs/build/p-17bde2eb.entry.js @@ -1 +1 @@ -import{r as a,h as t,H as e,g as i}from"./p-75b1a4f0.js";import{g as c}from"./p-36390f92.js";import{I as o}from"./p-c55f1634.js";import{C as r}from"./p-78a4c1a4.js";const n=class{constructor(t){a(this,t),this.disabled=!1,this.disableDeselect=!1,this.handleActivated=!1,this.icon=null,this.removable=!1,this.selected=!1,this.pickListItem=null,this.guid="calcite-value-list-item-"+c(),this.getPickListRef=a=>this.pickListItem=a,this.handleKeyDown=a=>{" "===a.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1},this.handleSelectChange=a=>{this.selected=a.detail.selected}}async toggleSelected(a){this.pickListItem.toggleSelected(a)}async setFocus(){var a;null===(a=this.pickListItem)||void 0===a||a.setFocus()}calciteListItemChangeHandler(a){a.detail.item=this.el}renderHandle(){const{icon:a}=this;if(a===o.grip)return t("span",{role:"button",class:{[r.handle]:!0,[r.handleActivated]:this.handleActivated},tabindex:"0","data-js-handle":"true","aria-pressed":this.handleActivated.toString(),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur},t("calcite-icon",{scale:"s",icon:"drag"}))}render(){return t(e,{"data-id":this.guid},this.renderHandle(),t("calcite-pick-list-item",{ref:this.getPickListRef,disabled:this.disabled,disableDeselect:this.disableDeselect,selected:this.selected,metadata:this.metadata,removable:this.removable,textLabel:this.textLabel,textDescription:this.textDescription,onCalciteListItemChange:this.handleSelectChange,value:this.value},t("slot",{name:"secondary-action",slot:"secondary-action"})))}get el(){return i(this)}};n.style=":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;-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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:hover){background-color:var(--calcite-app-background-hover)}calcite-pick-list-item{-webkit-box-shadow:none;box-shadow:none;-ms-flex-positive:1;flex-grow:1;position:relative;margin:0}: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}:host([selected]) calcite-pick-list-item:hover{background-color:var(--calcite-app-background-clear)}.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-quarter);background-color:var(--calcite-app-background-clear);border:none;color:var(--calcite-app-border);line-height:0;cursor:move;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.handle:hover,.handle:focus{background-color:var(--calcite-app-background-hover);outline-offset:var(--calcite-app-outline-inset);color:var(--calcite-app-foreground)}.handle:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}.handle--activated{background-color:var(--calcite-app-background-active);color:var(--calcite-app-foreground-active)}:host(:last-child) .handle{margin-bottom:0}";export{n as calcite_value_list_item} \ No newline at end of file +import{r as a,h as t,H as e,g as i}from"./p-1b507203.js";import{g as c}from"./p-36390f92.js";import{I as o}from"./p-c55f1634.js";import{C as r}from"./p-78a4c1a4.js";const n=class{constructor(t){a(this,t),this.disabled=!1,this.disableDeselect=!1,this.handleActivated=!1,this.icon=null,this.removable=!1,this.selected=!1,this.pickListItem=null,this.guid="calcite-value-list-item-"+c(),this.getPickListRef=a=>this.pickListItem=a,this.handleKeyDown=a=>{" "===a.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1},this.handleSelectChange=a=>{this.selected=a.detail.selected}}async toggleSelected(a){this.pickListItem.toggleSelected(a)}async setFocus(){var a;null===(a=this.pickListItem)||void 0===a||a.setFocus()}calciteListItemChangeHandler(a){a.detail.item=this.el}renderHandle(){const{icon:a}=this;if(a===o.grip)return t("span",{role:"button",class:{[r.handle]:!0,[r.handleActivated]:this.handleActivated},tabindex:"0","data-js-handle":"true","aria-pressed":this.handleActivated.toString(),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur},t("calcite-icon",{scale:"s",icon:"drag"}))}render(){return t(e,{"data-id":this.guid},this.renderHandle(),t("calcite-pick-list-item",{ref:this.getPickListRef,disabled:this.disabled,disableDeselect:this.disableDeselect,selected:this.selected,metadata:this.metadata,removable:this.removable,textLabel:this.textLabel,textDescription:this.textDescription,onCalciteListItemChange:this.handleSelectChange,value:this.value},t("slot",{name:"secondary-action",slot:"secondary-action"})))}get el(){return i(this)}};n.style=":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;-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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:hover){background-color:var(--calcite-app-background-hover)}calcite-pick-list-item{-webkit-box-shadow:none;box-shadow:none;-ms-flex-positive:1;flex-grow:1;position:relative;margin:0}: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}:host([selected]) calcite-pick-list-item:hover{background-color:var(--calcite-app-background-clear)}.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-quarter);background-color:var(--calcite-app-background-clear);border:none;color:var(--calcite-app-border);line-height:0;cursor:move;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.handle:hover,.handle:focus{background-color:var(--calcite-app-background-hover);outline-offset:var(--calcite-app-outline-inset);color:var(--calcite-app-foreground)}.handle:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}.handle--activated{background-color:var(--calcite-app-background-active);color:var(--calcite-app-foreground-active)}:host(:last-child) .handle{margin-bottom:0}";export{n as calcite_value_list_item} \ No newline at end of file diff --git a/docs/build/p-75b1a4f0.js b/docs/build/p-1b507203.js similarity index 99% rename from docs/build/p-75b1a4f0.js rename to docs/build/p-1b507203.js index 7bca7a5a..1e05ea7e 100644 --- a/docs/build/p-75b1a4f0.js +++ b/docs/build/p-1b507203.js @@ -1 +1 @@ -const e="calcite-app";let t,n,l,o=!1,s=!1,r=!1,i=0,c=!1;const a="undefined"!=typeof window?window:{},f=a.CSS,u=a.document||{head:{}},d={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l)},p=(()=>(u.head.attachShadow+"").indexOf("[native")>-1)(),h=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,!0}catch(e){}return!1})(),m=(e,t,n)=>{n&&n.map(([n,l,o])=>{const s=e,r=y(t,o),i=b(n);d.ael(s,l,r,i),(t.o=t.o||[]).push(()=>d.rel(s,l,r,i))})},y=(e,t)=>n=>{256&e.t?e.s[t](n):(e.i=e.i||[]).push([t,n])},b=e=>0!=(2&e),w="http://www.w3.org/1999/xlink",g=new WeakMap,v=e=>"sc-"+e.u,k={},j=e=>"object"==(e=typeof e)||"function"===e,_="undefined"!=typeof Deno,O=!(_||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),M=(_&&Deno,O?process:_&&Deno,O?process:_&&Deno,(e,t,...n)=>{let l=null,o=null,s=null,r=!1,i=!1,c=[];const a=t=>{for(let n=0;ne[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,x);const f=S(e,null);return f.h=t,c.length>0&&(f.$=c),f.m=o,f.g=s,f}),S=(e,t)=>({t:0,v:e,p:t,k:null,$:null,h:null,m:null,g:null}),C={},x={forEach:(e,t)=>e.map(D).forEach(t),map:(e,t)=>e.map(D).map(t).map(R)},D=e=>({vattrs:e.h,vchildren:e.$,vkey:e.m,vname:e.g,vtag:e.v,vtext:e.p}),R=e=>{const t=S(e.vtag,e.vtext);return t.h=e.vattrs,t.$=e.vchildren,t.m=e.vkey,t.g=e.vname,t},E=(e,t,n,l,o,s)=>{if(n!==l){let i=ve(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=P(n),s=P(l);t.remove(...o.filter(e=>e&&!s.includes(e))),t.add(...s.filter(e=>e&&!o.includes(e)))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const a=j(l);if((i||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(r){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(w,t):e.removeAttribute(t)):(!i||4&s||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(w,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ve(a,c)?c.slice(2):c[2]+t.slice(3),n&&d.rel(e,t,n,!1),l&&d.ael(e,t,l,!1)}},N=/\s/,P=e=>e?e.split(N):[],T=(e,t,n,l)=>{const o=11===t.k.nodeType&&t.k.host?t.k.host:t.k,s=e&&e.h||k,r=t.h||k;for(l in s)l in r||E(o,l,s[l],void 0,n,t.t);for(l in r)E(o,l,s[l],r[l],n,t.t)},L=(e,s,i,c)=>{let a,f,d,p=s.$[i],h=0;if(o||(r=!0,"slot"===p.v&&(t&&c.classList.add(t+"-s"),p.t|=p.$?2:1)),null!==p.p)a=p.k=u.createTextNode(p.p);else if(1&p.t)a=p.k=u.createTextNode("");else if(a=p.k=u.createElement(2&p.t?"slot-fb":p.v),T(null,p,!1),null!=t&&a["s-si"]!==t&&a.classList.add(a["s-si"]=t),p.$)for(h=0;h{d.t|=1;const n=e.childNodes;for(let o=n.length-1;o>=0;o--){const e=n[o];e["s-hn"]!==l&&e["s-ol"]&&(F(e).insertBefore(e,H(e)),e["s-ol"].remove(),e["s-ol"]=void 0,r=!0),t&&U(e,t)}d.t&=-2},A=(e,t,n,o,s,r)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===l&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=L(null,n,s,e),i&&(o[s].k=i,c.insertBefore(i,H(t))))},W=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.k,J(l),s=!0,o["s-ol"]?o["s-ol"].remove():U(o,!0),o.remove())},q=(e,t)=>e.v===t.v&&("slot"===e.v?e.g===t.g:e.m===t.m),H=e=>e&&e["s-ol"]||e,F=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,V=(e,t)=>{const n=t.k=e.k,l=e.$,o=t.$,s=t.p;let r;null===s?("slot"===t.v||T(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s,r=0,i=0,c=0,a=0,f=t.length-1,u=t[0],d=t[f],p=l.length-1,h=l[0],$=l[p];for(;r<=f&&i<=p;)if(null==u)u=t[++r];else if(null==d)d=t[--f];else if(null==h)h=l[++i];else if(null==$)$=l[--p];else if(q(u,h))V(u,h),u=t[++r],h=l[++i];else if(q(d,$))V(d,$),d=t[--f],$=l[--p];else if(q(u,$))"slot"!==u.v&&"slot"!==$.v||U(u.k.parentNode,!1),V(u,$),e.insertBefore(u.k,d.k.nextSibling),u=t[++r],$=l[--p];else if(q(d,h))"slot"!==u.v&&"slot"!==$.v||U(d.k.parentNode,!1),V(d,h),e.insertBefore(d.k,u.k),d=t[--f],h=l[++i];else{for(c=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===h.m){c=a;break}c>=0?(s=t[c],s.v!==h.v?o=L(t&&t[i],n,c,e):(V(s,h),t[c]=void 0,o=s.k),h=l[++i]):(o=L(t&&t[i],n,i,e),h=l[++i]),o&&F(u.k).insertBefore(o,H(u.k))}r>f?A(e,null==l[p+1]?null:l[p+1].k,n,l,i,p):i>p&&W(t,r,f)})(n,l,t,o):null!==o?(null!==e.p&&(n.textContent=""),A(n,null,t,o,0,o.length-1)):null!==l&&W(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:e.p!==s&&(n.data=s)},z=e=>{let t,n,l,o,s,r,i=e.childNodes;for(n=0,l=i.length;n{let t,n,l,o,r,i,c=0,a=e.childNodes,f=a.length;for(;c=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(I(n,o)?(r=B.find(e=>e.j===n),s=!0,n["s-sn"]=n["s-sn"]||o,r?r._=t:B.push({_:t,j:n}),n["s-sr"]&&B.map(e=>{I(e.j,n["s-sn"])&&(r=B.find(e=>e.j===n),r&&!e._&&(e._=r._))})):B.some(e=>e.j===n)||B.push({j:n}));1===t.nodeType&&G(t)}},I=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.h&&e.h.ref&&e.h.ref(null),e.$&&e.$.map(J)},K=e=>be(e).O,Q=(e,t,n)=>{const l=K(e);return{emit:e=>X(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},X=(e,t,n)=>{const l=new CustomEvent(t,n);return e.dispatchEvent(l),l},Y=(e,t)=>{t&&!e.M&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.M=t))},Z=(e,t)=>{if(e.t|=16,!(4&e.t))return Y(e,e.S),Ne(()=>ee(e,t));e.t|=512},ee=(e,t)=>{const n=e.s;let l;return t&&(e.t|=256,e.i&&(e.i.map(([e,t])=>re(n,e,t)),e.i=null),l=re(n,"componentWillLoad")),ie(l,()=>te(e,n,t))},te=(e,i,c)=>{const a=e.O,f=a["s-rc"];c&&(e=>{const t=e.C,n=e.O,l=t.t,o=((e,t)=>{let n=v(t),l=Oe.get(n);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let t,o=g.get(e=e.head||e);o||g.set(e,o=new Set),o.has(n)||(t=u.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(p&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);((e,i)=>{const c=e.O,a=e.C,f=e.D||S(null,null),h=(e=>e&&e.v===C)(i)?i:M(null,null,i);if(l=c.tagName,a.R&&(h.h=h.h||{},a.R.map(([e,t])=>h.h[t]=c[e])),h.v=null,h.t|=4,e.D=h,h.k=f.k=c.shadowRoot||c,t=c["s-sc"],n=c["s-cr"],o=p&&0!=(1&a.t),s=!1,V(f,h),d.t|=1,r){let e,t,n,l,o,s;G(h.k);let r=0;for(;re()),a["s-rc"]=void 0);{const t=a["s-p"],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},ne=(e,t)=>{try{t=t.render(),e.t&=-17,e.t|=2}catch(n){ke(n)}return t},le=e=>{const t=e.O,n=e.s,l=e.S;64&e.t||(e.t|=64,ce(t),re(n,"componentDidLoad"),e.N(t),l||se()),e.P(t),e.M&&(e.M(),e.M=void 0),512&e.t&&Ee(()=>Z(e,!1)),e.t&=-517},oe=e=>{{const t=be(e),n=t.O.isConnected;return n&&2==(18&t.t)&&Z(t,!1),n}},se=()=>{ce(u.documentElement),d.t|=2,Ee(()=>X(a,"appload",{detail:{namespace:"calcite-app"}}))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(l){ke(l)}},ie=(e,t)=>e&&e.then?e.then(t):t(),ce=e=>e.classList.add("hydrated"),ae=(e,t,n)=>{if(t.T){e.watchers&&(t.L=e.watchers);const l=Object.entries(t.T),o=e.prototype;if(l.map(([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>be(this).U.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=be(e),s=o.U.get(t),r=o.t,i=o.s;if(n=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.T[t][0]),!(8&r&&void 0!==s||n===s)&&(o.U.set(t,n),i)){if(l.L&&128&r){const e=l.L[t];e&&e.map(e=>{try{i[e](n,s,t)}catch(l){ke(l)}})}2==(18&r)&&Z(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=be(this);return n.A.then(()=>n.s[e](...t))}})}),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){d.jmp(()=>{const t=n.get(e);this[t]=(null!==l||"boolean"!=typeof this[t])&&l})},e.observedAttributes=l.filter(([e,t])=>15&t[0]).map(([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.R.push([e,o]),o})}}return e},fe=e=>{re(e,"connectedCallback")},ue=e=>{e.__appendChild=e.appendChild,e.appendChild=function(e){const t=e["s-sn"]=pe(e),n=he(this.childNodes,t);if(n){const l=$e(n,t),o=l[l.length-1];return o.parentNode.insertBefore(e,o.nextSibling)}return this.__appendChild(e)}},de=(e,t)=>{class n extends Array{item(e){return this[e]}}if(8&t.t){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map(e=>1===e.nodeType)}}),Object.defineProperty(e,"childElementCount",{get:()=>e.children.length}),Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if(0==(1&d.t)&&2&be(this).t){const t=new n;for(let n=0;ne["s-sn"]||1===e.nodeType&&e.getAttribute("slot")||"",he=(e,t)=>{let n,l=0;for(;l{const n=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)n.push(e);return n},me=(e,t={})=>{const n=[],l=t.exclude||[],o=a.customElements,s=u.head,r=s.querySelector("meta[charset]"),i=u.createElement("style"),c=[];let f,h=!0;Object.assign(d,t),d.l=new URL(t.resourcesUrl||"./",u.baseURI).href,t.syncQueue&&(d.t|=4),e.map(e=>e[1].map(t=>{const s={t:t[0],u:t[1],T:t[2],W:t[3]};s.T=t[2],s.W=t[3],s.R=[],s.L={},!p&&1&s.t&&(s.t|=8);const r=s.u,i=class extends HTMLElement{constructor(e){super(e),ge(e=this,s),1&s.t&&(p?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e)),de(e,s)}connectedCallback(){f&&(clearTimeout(f),f=null),h?c.push(this):d.jmp(()=>(e=>{if(0==(1&d.t)){const t=be(e),n=t.C,l=()=>{};if(1&t.t)m(e,t,n.W),fe(t.s);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.S=n);break}}n.T&&Object.entries(n.T).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),Ee(()=>(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=_e(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.L=o.watchers,ae(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(i){ke(i)}t.t&=-9,t.t|=128,e(),fe(t.s)}if(o.style){let e=o.style;const t=v(n);if(!Oe.has(t)){const l=()=>{};8&n.t&&(e=await __sc_import_calcite_app("./p-ae551da3.js").then(n=>n.scopeCss(e,t,!1))),((e,t,n)=>{let l=Oe.get(e);$&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Oe.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.S,r=()=>Z(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n))}l()}})(this))}disconnectedCallback(){d.jmp(()=>(()=>{if(0==(1&d.t)){const e=be(this),t=e.s;e.o&&(e.o.map(e=>e()),e.o=void 0),re(t,"componentDidUnload")}})())}forceUpdate(){oe(this)}componentOnReady(){return be(this).q}};ue(i.prototype),s.H=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ae(i,s,1)))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,r?r.nextSibling:s.firstChild),h=!1,c.length?c.map(e=>e.connectedCallback()):d.jmp(()=>f=setTimeout(se,30))},ye=new WeakMap,be=e=>ye.get(e),we=(e,t)=>ye.set(t.s=e,t),ge=(e,t)=>{const n={t:0,O:e,C:t,U:new Map};return n.A=new Promise(e=>n.P=e),n.q=new Promise(e=>n.N=e),e["s-p"]=[],e["s-rc"]=[],m(e,n,t.W),ye.set(e,n)},ve=(e,t)=>t in e,ke=e=>console.error(e),je=new Map,_e=e=>{const t=e.u.replace(/-/g,"_"),n=e.H,l=je.get(n);return l?l[t]:__sc_import_calcite_app(`./${n}.entry.js`).then(e=>(je.set(n,e),e[t]),ke)},Oe=new Map,Me=[],Se=[],Ce=[],xe=(e,t)=>n=>{e.push(n),c||(c=!0,t&&4&d.t?Ee(Re):d.raf(Re))},De=(e,t)=>{let n=0,l=0;for(;n{i++,(e=>{for(let n=0;n0&&(Ce.push(...Se),Se.length=0),(c=Me.length+Se.length+Ce.length>0)?d.raf(Re):i=0}},Ee=e=>h().then(e),Ne=xe(Se,!0);export{f as C,C as H,e as N,h as a,me as b,Q as c,u as d,oe as f,K as g,M as h,d as p,we as r,a as w} \ No newline at end of file +const e="calcite-app";let t,n,l,o=!1,s=!1,r=!1,i=0,c=!1;const a="undefined"!=typeof window?window:{},f=a.CSS,u=a.document||{head:{}},d={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l)},p=(()=>(u.head.attachShadow+"").indexOf("[native")>-1)(),h=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,!0}catch(e){}return!1})(),m=(e,t,n)=>{n&&n.map(([n,l,o])=>{const s=e,r=y(t,o),i=b(n);d.ael(s,l,r,i),(t.o=t.o||[]).push(()=>d.rel(s,l,r,i))})},y=(e,t)=>n=>{256&e.t?e.s[t](n):(e.i=e.i||[]).push([t,n])},b=e=>0!=(2&e),w="http://www.w3.org/1999/xlink",g=new WeakMap,v=e=>"sc-"+e.u,k={},j=e=>"object"==(e=typeof e)||"function"===e,_="undefined"!=typeof Deno,O=!(_||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),M=(_&&Deno,O?process:_&&Deno,O?process:_&&Deno,(e,t,...n)=>{let l=null,o=null,s=null,r=!1,i=!1,c=[];const a=t=>{for(let n=0;ne[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,x);const f=S(e,null);return f.h=t,c.length>0&&(f.$=c),f.m=o,f.g=s,f}),S=(e,t)=>({t:0,v:e,p:t,k:null,$:null,h:null,m:null,g:null}),C={},x={forEach:(e,t)=>e.map(D).forEach(t),map:(e,t)=>e.map(D).map(t).map(R)},D=e=>({vattrs:e.h,vchildren:e.$,vkey:e.m,vname:e.g,vtag:e.v,vtext:e.p}),R=e=>{const t=S(e.vtag,e.vtext);return t.h=e.vattrs,t.$=e.vchildren,t.m=e.vkey,t.g=e.vname,t},E=(e,t,n,l,o,s)=>{if(n!==l){let i=ve(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=P(n),s=P(l);t.remove(...o.filter(e=>e&&!s.includes(e))),t.add(...s.filter(e=>e&&!o.includes(e)))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const a=j(l);if((i||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(r){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(w,t):e.removeAttribute(t)):(!i||4&s||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(w,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ve(a,c)?c.slice(2):c[2]+t.slice(3),n&&d.rel(e,t,n,!1),l&&d.ael(e,t,l,!1)}},N=/\s/,P=e=>e?e.split(N):[],T=(e,t,n,l)=>{const o=11===t.k.nodeType&&t.k.host?t.k.host:t.k,s=e&&e.h||k,r=t.h||k;for(l in s)l in r||E(o,l,s[l],void 0,n,t.t);for(l in r)E(o,l,s[l],r[l],n,t.t)},L=(e,s,i,c)=>{let a,f,d,p=s.$[i],h=0;if(o||(r=!0,"slot"===p.v&&(t&&c.classList.add(t+"-s"),p.t|=p.$?2:1)),null!==p.p)a=p.k=u.createTextNode(p.p);else if(1&p.t)a=p.k=u.createTextNode("");else if(a=p.k=u.createElement(2&p.t?"slot-fb":p.v),T(null,p,!1),null!=t&&a["s-si"]!==t&&a.classList.add(a["s-si"]=t),p.$)for(h=0;h{d.t|=1;const n=e.childNodes;for(let o=n.length-1;o>=0;o--){const e=n[o];e["s-hn"]!==l&&e["s-ol"]&&(F(e).insertBefore(e,H(e)),e["s-ol"].remove(),e["s-ol"]=void 0,r=!0),t&&U(e,t)}d.t&=-2},A=(e,t,n,o,s,r)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===l&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=L(null,n,s,e),i&&(o[s].k=i,c.insertBefore(i,H(t))))},W=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(o=l.k,J(l),s=!0,o["s-ol"]?o["s-ol"].remove():U(o,!0),o.remove())},q=(e,t)=>e.v===t.v&&("slot"===e.v?e.g===t.g:e.m===t.m),H=e=>e&&e["s-ol"]||e,F=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,V=(e,t)=>{const n=t.k=e.k,l=e.$,o=t.$,s=t.p;let r;null===s?("slot"===t.v||T(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s,r=0,i=0,c=0,a=0,f=t.length-1,u=t[0],d=t[f],p=l.length-1,h=l[0],$=l[p];for(;r<=f&&i<=p;)if(null==u)u=t[++r];else if(null==d)d=t[--f];else if(null==h)h=l[++i];else if(null==$)$=l[--p];else if(q(u,h))V(u,h),u=t[++r],h=l[++i];else if(q(d,$))V(d,$),d=t[--f],$=l[--p];else if(q(u,$))"slot"!==u.v&&"slot"!==$.v||U(u.k.parentNode,!1),V(u,$),e.insertBefore(u.k,d.k.nextSibling),u=t[++r],$=l[--p];else if(q(d,h))"slot"!==u.v&&"slot"!==$.v||U(d.k.parentNode,!1),V(d,h),e.insertBefore(d.k,u.k),d=t[--f],h=l[++i];else{for(c=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===h.m){c=a;break}c>=0?(s=t[c],s.v!==h.v?o=L(t&&t[i],n,c,e):(V(s,h),t[c]=void 0,o=s.k),h=l[++i]):(o=L(t&&t[i],n,i,e),h=l[++i]),o&&F(u.k).insertBefore(o,H(u.k))}r>f?A(e,null==l[p+1]?null:l[p+1].k,n,l,i,p):i>p&&W(t,r,f)})(n,l,t,o):null!==o?(null!==e.p&&(n.textContent=""),A(n,null,t,o,0,o.length-1)):null!==l&&W(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:e.p!==s&&(n.data=s)},z=e=>{let t,n,l,o,s,r,i=e.childNodes;for(n=0,l=i.length;n{let t,n,l,o,r,i,c=0,a=e.childNodes,f=a.length;for(;c=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(I(n,o)?(r=B.find(e=>e.j===n),s=!0,n["s-sn"]=n["s-sn"]||o,r?r._=t:B.push({_:t,j:n}),n["s-sr"]&&B.map(e=>{I(e.j,n["s-sn"])&&(r=B.find(e=>e.j===n),r&&!e._&&(e._=r._))})):B.some(e=>e.j===n)||B.push({j:n}));1===t.nodeType&&G(t)}},I=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.h&&e.h.ref&&e.h.ref(null),e.$&&e.$.map(J)},K=e=>be(e).O,Q=(e,t,n)=>{const l=K(e);return{emit:e=>X(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},X=(e,t,n)=>{const l=new CustomEvent(t,n);return e.dispatchEvent(l),l},Y=(e,t)=>{t&&!e.M&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.M=t))},Z=(e,t)=>{if(e.t|=16,!(4&e.t))return Y(e,e.S),Ne(()=>ee(e,t));e.t|=512},ee=(e,t)=>{const n=e.s;let l;return t&&(e.t|=256,e.i&&(e.i.map(([e,t])=>re(n,e,t)),e.i=null),l=re(n,"componentWillLoad")),ie(l,()=>te(e,n,t))},te=(e,i,c)=>{const a=e.O,f=a["s-rc"];c&&(e=>{const t=e.C,n=e.O,l=t.t,o=((e,t)=>{let n=v(t),l=Oe.get(n);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let t,o=g.get(e=e.head||e);o||g.set(e,o=new Set),o.has(n)||(t=u.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(p&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);((e,i)=>{const c=e.O,a=e.C,f=e.D||S(null,null),h=(e=>e&&e.v===C)(i)?i:M(null,null,i);if(l=c.tagName,a.R&&(h.h=h.h||{},a.R.map(([e,t])=>h.h[t]=c[e])),h.v=null,h.t|=4,e.D=h,h.k=f.k=c.shadowRoot||c,t=c["s-sc"],n=c["s-cr"],o=p&&0!=(1&a.t),s=!1,V(f,h),d.t|=1,r){let e,t,n,l,o,s;G(h.k);let r=0;for(;re()),a["s-rc"]=void 0);{const t=a["s-p"],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},ne=(e,t)=>{try{t=t.render(),e.t&=-17,e.t|=2}catch(n){ke(n)}return t},le=e=>{const t=e.O,n=e.s,l=e.S;64&e.t||(e.t|=64,ce(t),re(n,"componentDidLoad"),e.N(t),l||se()),e.P(t),e.M&&(e.M(),e.M=void 0),512&e.t&&Ee(()=>Z(e,!1)),e.t&=-517},oe=e=>{{const t=be(e),n=t.O.isConnected;return n&&2==(18&t.t)&&Z(t,!1),n}},se=()=>{ce(u.documentElement),d.t|=2,Ee(()=>X(a,"appload",{detail:{namespace:"calcite-app"}}))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(l){ke(l)}},ie=(e,t)=>e&&e.then?e.then(t):t(),ce=e=>e.classList.add("hydrated"),ae=(e,t,n)=>{if(t.T){e.watchers&&(t.L=e.watchers);const l=Object.entries(t.T),o=e.prototype;if(l.map(([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>be(this).U.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=be(e),s=o.U.get(t),r=o.t,i=o.s;if(n=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.T[t][0]),!(8&r&&void 0!==s||n===s)&&(o.U.set(t,n),i)){if(l.L&&128&r){const e=l.L[t];e&&e.map(e=>{try{i[e](n,s,t)}catch(l){ke(l)}})}2==(18&r)&&Z(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=be(this);return n.A.then(()=>n.s[e](...t))}})}),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){d.jmp(()=>{const t=n.get(e);this[t]=(null!==l||"boolean"!=typeof this[t])&&l})},e.observedAttributes=l.filter(([e,t])=>15&t[0]).map(([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.R.push([e,o]),o})}}return e},fe=e=>{re(e,"connectedCallback")},ue=e=>{e.__appendChild=e.appendChild,e.appendChild=function(e){const t=e["s-sn"]=pe(e),n=he(this.childNodes,t);if(n){const l=$e(n,t),o=l[l.length-1];return o.parentNode.insertBefore(e,o.nextSibling)}return this.__appendChild(e)}},de=(e,t)=>{class n extends Array{item(e){return this[e]}}if(8&t.t){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map(e=>1===e.nodeType)}}),Object.defineProperty(e,"childElementCount",{get:()=>e.children.length}),Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if(0==(1&d.t)&&2&be(this).t){const t=new n;for(let n=0;ne["s-sn"]||1===e.nodeType&&e.getAttribute("slot")||"",he=(e,t)=>{let n,l=0;for(;l{const n=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)n.push(e);return n},me=(e,t={})=>{const n=[],l=t.exclude||[],o=a.customElements,s=u.head,r=s.querySelector("meta[charset]"),i=u.createElement("style"),c=[];let f,h=!0;Object.assign(d,t),d.l=new URL(t.resourcesUrl||"./",u.baseURI).href,t.syncQueue&&(d.t|=4),e.map(e=>e[1].map(t=>{const s={t:t[0],u:t[1],T:t[2],W:t[3]};s.T=t[2],s.W=t[3],s.R=[],s.L={},!p&&1&s.t&&(s.t|=8);const r=s.u,i=class extends HTMLElement{constructor(e){super(e),ge(e=this,s),1&s.t&&(p?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e)),de(e,s)}connectedCallback(){f&&(clearTimeout(f),f=null),h?c.push(this):d.jmp(()=>(e=>{if(0==(1&d.t)){const t=be(e),n=t.C,l=()=>{};if(1&t.t)m(e,t,n.W),fe(t.s);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.S=n);break}}n.T&&Object.entries(n.T).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),Ee(()=>(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=_e(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.L=o.watchers,ae(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(i){ke(i)}t.t&=-9,t.t|=128,e(),fe(t.s)}if(o.style){let e=o.style;const t=v(n);if(!Oe.has(t)){const l=()=>{};8&n.t&&(e=await __sc_import_calcite_app("./p-593ec7f9.js").then(n=>n.scopeCss(e,t,!1))),((e,t,n)=>{let l=Oe.get(e);$&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Oe.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.S,r=()=>Z(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n))}l()}})(this))}disconnectedCallback(){d.jmp(()=>(()=>{if(0==(1&d.t)){const e=be(this),t=e.s;e.o&&(e.o.map(e=>e()),e.o=void 0),re(t,"componentDidUnload")}})())}forceUpdate(){oe(this)}componentOnReady(){return be(this).q}};ue(i.prototype),s.H=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,ae(i,s,1)))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,r?r.nextSibling:s.firstChild),h=!1,c.length?c.map(e=>e.connectedCallback()):d.jmp(()=>f=setTimeout(se,30))},ye=new WeakMap,be=e=>ye.get(e),we=(e,t)=>ye.set(t.s=e,t),ge=(e,t)=>{const n={t:0,O:e,C:t,U:new Map};return n.A=new Promise(e=>n.P=e),n.q=new Promise(e=>n.N=e),e["s-p"]=[],e["s-rc"]=[],m(e,n,t.W),ye.set(e,n)},ve=(e,t)=>t in e,ke=e=>console.error(e),je=new Map,_e=e=>{const t=e.u.replace(/-/g,"_"),n=e.H,l=je.get(n);return l?l[t]:__sc_import_calcite_app(`./${n}.entry.js`).then(e=>(je.set(n,e),e[t]),ke)},Oe=new Map,Me=[],Se=[],Ce=[],xe=(e,t)=>n=>{e.push(n),c||(c=!0,t&&4&d.t?Ee(Re):d.raf(Re))},De=(e,t)=>{let n=0,l=0;for(;n{i++,(e=>{for(let n=0;n0&&(Ce.push(...Se),Se.length=0),(c=Me.length+Se.length+Ce.length>0)?d.raf(Re):i=0}},Ee=e=>h().then(e),Ne=xe(Se,!0);export{f as C,C as H,e as N,h as a,me as b,Q as c,u as d,oe as f,K as g,M as h,d as p,we as r,a as w} \ No newline at end of file diff --git a/docs/build/p-df0d5ccf.system.entry.js b/docs/build/p-1cb8f54a.system.entry.js similarity index 98% rename from docs/build/p-df0d5ccf.system.entry.js rename to docs/build/p-1cb8f54a.system.entry.js index ea7f3059..0081b13c 100644 --- a/docs/build/p-df0d5ccf.system.entry.js +++ b/docs/build/p-1cb8f54a.system.entry.js @@ -1 +1 @@ -var __awaiter=this&&this.__awaiter||function(e,a,t,r){function n(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,c){function i(e){try{l(r.next(e))}catch(a){c(a)}}function o(e){try{l(r["throw"](e))}catch(a){c(a)}}function l(e){e.done?t(e.value):n(e.value).then(i,o)}l((r=r.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,n,c,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(e){return function(a){return l([e,a])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(t)try{if(r=1,n&&(c=i[0]&2?n["return"]:i[0]?n["throw"]||((c=n["return"])&&c.call(n),0):n.next)&&!(c=c.call(n,i[1])).done)return c;if(n=0,c)i=[i[0]&2,c.value];switch(i[0]){case 0:case 1:c=i;break;case 4:t.label++;return{value:i[1],done:false};case 5:t.label++;n=i[1];i=[0];continue;case 7:i=t.ops.pop();t.trys.pop();continue;default:if(!(c=t.trys,c=c.length>0&&c[c.length-1])&&(i[0]===6||i[0]===2)){t=0;continue}if(i[0]===3&&(!c||i[1]>c[0]&&i[1]0&&c[c.length-1])&&(i[0]===6||i[0]===2)){t=0;continue}if(i[0]===3&&(!c||i[1]>c[0]&&i[1]-1&&a%1==0&&a-1&&a%1==0&&a<=9007199254740991}var m=Object.prototype;function x(a){return l(a)&&"[object Arguments]"==p(a)}var y=Object.prototype,k=y.hasOwnProperty,j=y.propertyIsEnumerable,w=x(function(){return arguments}())?x:function(a){return l(a)&&k.call(a,"callee")&&!j.call(a,"callee")},z="object"==typeof exports&&exports&&!exports.nodeType&&exports,q=z&&"object"==typeof module&&module&&!module.nodeType&&module,O=q&&q.exports===z?s.Buffer:void 0,A=(O?O.isBuffer:void 0)||function(){return!1},C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Arguments]"]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object Boolean]"]=C["[object DataView]"]=C["[object Date]"]=C["[object Error]"]=C["[object Function]"]=C["[object Map]"]=C["[object Number]"]=C["[object Object]"]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object WeakMap]"]=!1;var F,E="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=E&&"object"==typeof module&&module&&!module.nodeType&&module,H=G&&G.exports===E&&f.process,I=function(){try{return G&&G.require&&G.require("util").types||H&&H.binding&&H.binding("util")}catch(a){}}(),L=I&&I.isTypedArray,N=L?(F=L,function(a){return F(a)}):function(a){return l(a)&&h(a.length)&&!!C[p(a)]},P=Object.prototype.hasOwnProperty;var R=Object.prototype.hasOwnProperty;function S(a){return null!=(t=a)&&h(t.length)&&!function(a){if(!o(a))return!1;var t=p(a);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(t)?function(a,t){var e=d(a),i=!e&&w(a),c=!e&&!i&&A(a),r=!e&&!i&&!c&&N(a),n=e||i||c||r,o=n?function(a,t){for(var e=-1,i=Array(a);++e{const t=new RegExp(a,"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=(a,t)=>{let i=!1;return T(a,a=>{"function"!=typeof a&&(Array.isArray(a)||"object"==typeof a&&null!==a?e(a,t)&&(i=!0):t.test(a)&&(i=!0))}),i},i=this.data.filter(a=>e(a,t));this.calciteFilterChange.emit(i)},250),this.inputHandler=a=>{const t=a.target;this.empty=""===t.value,this.filter(t.value)},this.clear=()=>{this.textInput.value="",this.empty=!0,this.calciteFilterChange.emit(this.data)}}render(){const a="rtl"===n(this.el);return e(i,null,e("label",{class:a?r.rtl:null},e("input",{type:"text",value:"",placeholder:this.placeholder,onInput:this.inputHandler,"aria-label":this.intlLabel||"filter",ref:a=>{this.textInput=a}}),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":this.intlClear||"Clear filter"},e("calcite-icon",{icon:"x"})))}get el(){return c(this)}};$.style=":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-half) 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:#00619b;--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:0 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}.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), right 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), right var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), opacity var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}.calcite--rtl .search-icon{left:unset;right:0}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)}input[type=text]:focus~.search-icon{left:calc(var(--calcite-app-icon-size) * -1);opacity:0}.calcite--rtl input[type=text]{padding-left:var(--calcite-app-side-spacing-quarter);padding-right:var(--calcite-app-side-spacing-plus-half)}.calcite--rtl input[type=text]:focus{padding-right:var(--calcite-app-side-spacing-plus-quarter)}.calcite--rtl input[type=text]:focus~.search-icon{right:calc(var(--calcite-app-icon-size) * -1)}.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)}";export{$ as calcite_filter} \ No newline at end of file +import{r as a,c as t,h as e,H as i,g as c}from"./p-1b507203.js";import{C as r}from"./p-eb15fcdb.js";import{b as n}from"./p-27f3f0d7.js";import{i as o,b as p,a as l,r as s,f,d as u}from"./p-fc8feabd.js";var d=Array.isArray;function b(a){return a}var v=/^(?:0|[1-9]\d*)$/;function g(a,t){var e=typeof a;return!!(t=null==t?9007199254740991:t)&&("number"==e||"symbol"!=e&&v.test(a))&&a>-1&&a%1==0&&a-1&&a%1==0&&a<=9007199254740991}var m=Object.prototype;function x(a){return l(a)&&"[object Arguments]"==p(a)}var y=Object.prototype,k=y.hasOwnProperty,j=y.propertyIsEnumerable,w=x(function(){return arguments}())?x:function(a){return l(a)&&k.call(a,"callee")&&!j.call(a,"callee")},z="object"==typeof exports&&exports&&!exports.nodeType&&exports,q=z&&"object"==typeof module&&module&&!module.nodeType&&module,O=q&&q.exports===z?s.Buffer:void 0,A=(O?O.isBuffer:void 0)||function(){return!1},C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Arguments]"]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object Boolean]"]=C["[object DataView]"]=C["[object Date]"]=C["[object Error]"]=C["[object Function]"]=C["[object Map]"]=C["[object Number]"]=C["[object Object]"]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object WeakMap]"]=!1;var F,E="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=E&&"object"==typeof module&&module&&!module.nodeType&&module,H=G&&G.exports===E&&f.process,I=function(){try{return G&&G.require&&G.require("util").types||H&&H.binding&&H.binding("util")}catch(a){}}(),L=I&&I.isTypedArray,N=L?(F=L,function(a){return F(a)}):function(a){return l(a)&&h(a.length)&&!!C[p(a)]},P=Object.prototype.hasOwnProperty;var R=Object.prototype.hasOwnProperty;function S(a){return null!=(t=a)&&h(t.length)&&!function(a){if(!o(a))return!1;var t=p(a);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(t)?function(a,t){var e=d(a),i=!e&&w(a),c=!e&&!i&&A(a),r=!e&&!i&&!c&&N(a),n=e||i||c||r,o=n?function(a,t){for(var e=-1,i=Array(a);++e{const t=new RegExp(a,"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=(a,t)=>{let i=!1;return T(a,a=>{"function"!=typeof a&&(Array.isArray(a)||"object"==typeof a&&null!==a?e(a,t)&&(i=!0):t.test(a)&&(i=!0))}),i},i=this.data.filter(a=>e(a,t));this.calciteFilterChange.emit(i)},250),this.inputHandler=a=>{const t=a.target;this.empty=""===t.value,this.filter(t.value)},this.clear=()=>{this.textInput.value="",this.empty=!0,this.calciteFilterChange.emit(this.data)}}render(){const a="rtl"===n(this.el);return e(i,null,e("label",{class:a?r.rtl:null},e("input",{type:"text",value:"",placeholder:this.placeholder,onInput:this.inputHandler,"aria-label":this.intlLabel||"filter",ref:a=>{this.textInput=a}}),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":this.intlClear||"Clear filter"},e("calcite-icon",{icon:"x"})))}get el(){return c(this)}};$.style=":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-half) 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:#00619b;--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:0 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}.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), right 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), right var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function), opacity var(--calcite-app-animation-time-fast) var(--calcite-app-easing-function)}.calcite--rtl .search-icon{left:unset;right:0}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)}input[type=text]:focus~.search-icon{left:calc(var(--calcite-app-icon-size) * -1);opacity:0}.calcite--rtl input[type=text]{padding-left:var(--calcite-app-side-spacing-quarter);padding-right:var(--calcite-app-side-spacing-plus-half)}.calcite--rtl input[type=text]:focus{padding-right:var(--calcite-app-side-spacing-plus-quarter)}.calcite--rtl input[type=text]:focus~.search-icon{right:calc(var(--calcite-app-icon-size) * -1)}.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)}";export{$ as calcite_filter} \ No newline at end of file diff --git a/docs/build/p-f2619e2d.entry.js b/docs/build/p-2e9a1023.entry.js similarity index 97% rename from docs/build/p-f2619e2d.entry.js rename to docs/build/p-2e9a1023.entry.js index 72dc80b8..92f3bed4 100644 --- a/docs/build/p-f2619e2d.entry.js +++ b/docs/build/p-2e9a1023.entry.js @@ -1 +1 @@ -import{r as e,c as t,h as a,g as i}from"./p-75b1a4f0.js";import"./p-27f3f0d7.js";import{g as c}from"./p-cf80779e.js";import"./p-c55f1634.js";import"./p-fc8feabd.js";import{m as s,d as o,s as r,h as l,g as n,k as p,i as d,a as h,c as b,b as f,e as u,f as g,j as m,L as v}from"./p-60ab4e38.js";import{S as x}from"./p-14b00fa9.js";var k;!function(e){e.grip="grip"}(k||(k={}));const w=class{constructor(a){e(this,a),this.calciteListChange=t(this,"calciteListChange",7),this.calciteListOrderChange=t(this,"calciteListOrderChange",7),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.observer=new MutationObserver(s.bind(this)),this.deselectSiblingItems=o.bind(this),this.selectSiblings=r.bind(this),this.handleFilter=l.bind(this),this.getItemData=n.bind(this),this.keyDownHandler=e=>{const t=e.composedPath().find(e=>{var t;return null===(t=e.dataset)||void 0===t?void 0:t.jsHandle}),a=e.composedPath().find(e=>{var t;return"calcite-value-list-item"===(null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase())});if(!t||!a.handleActivated)return void p.call(this,e);if("ArrowUp"!==e.key&&"ArrowDown"!==e.key)return;e.preventDefault();const{el:i,items:s}=this,o="ArrowDown"===e.key?1:-1,r=s.indexOf(a),l=c(r+o,s.length);if(l===s.length-1)i.appendChild(a);else{const e=i.children[l];i.insertBefore(a,e===a.nextElementSibling?e.nextElementSibling:e)}requestAnimationFrame(()=>t.focus()),a.handleActivated=!0}}connectedCallback(){d.call(this),h.call(this)}componentDidLoad(){this.setUpDragAndDrop()}componentDidUnload(){b.call(this),this.cleanUpDragAndDrop()}calciteListItemChangeHandler(e){f.call(this,e)}calciteListItemPropsChangeHandler(e){e.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(e){u.call(this,e)}setUpItems(){g.call(this,"calcite-value-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpDragAndDrop(){this.dragEnabled&&(this.sortable=x.create(this.el,{handle:".handle",draggable:"calcite-value-list-item",onUpdate:()=>{this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const e=this.items.map(e=>e.value);this.calciteListOrderChange.emit(e)}}))}cleanUpDragAndDrop(){this.dragEnabled&&this.sortable.destroy()}async getSelectedItems(){return this.selectedValues}async setFocus(){return m.call(this)}getIconType(){let e=null;return this.dragEnabled&&(e=k.grip),e}render(){return a(v,{props:this,onKeyDown:this.keyDownHandler})}get el(){return i(this)}};w.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-value-list-item:last-of-type{-webkit-box-shadow:none;box-shadow:none}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);-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset}header.sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}calcite-filter{margin-bottom:1px}calcite-scrim{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:column;flex-flow:column;pointer-events:none}slot[name=menu-actions]::slotted(calcite-action){padding:0 var(--calcite-app-side-spacing-half)}";export{w as calcite_value_list} \ No newline at end of file +import{r as e,c as t,h as a,g as i}from"./p-1b507203.js";import"./p-27f3f0d7.js";import{g as c}from"./p-cf80779e.js";import"./p-c55f1634.js";import"./p-fc8feabd.js";import{m as s,d as o,s as r,h as l,g as n,k as p,i as d,a as h,c as b,b as f,e as u,f as g,j as m,L as v}from"./p-f2ce65d8.js";import{S as x}from"./p-14b00fa9.js";var k;!function(e){e.grip="grip"}(k||(k={}));const w=class{constructor(a){e(this,a),this.calciteListChange=t(this,"calciteListChange",7),this.calciteListOrderChange=t(this,"calciteListOrderChange",7),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.observer=new MutationObserver(s.bind(this)),this.deselectSiblingItems=o.bind(this),this.selectSiblings=r.bind(this),this.handleFilter=l.bind(this),this.getItemData=n.bind(this),this.keyDownHandler=e=>{const t=e.composedPath().find(e=>{var t;return null===(t=e.dataset)||void 0===t?void 0:t.jsHandle}),a=e.composedPath().find(e=>{var t;return"calcite-value-list-item"===(null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase())});if(!t||!a.handleActivated)return void p.call(this,e);if("ArrowUp"!==e.key&&"ArrowDown"!==e.key)return;e.preventDefault();const{el:i,items:s}=this,o="ArrowDown"===e.key?1:-1,r=s.indexOf(a),l=c(r+o,s.length);if(l===s.length-1)i.appendChild(a);else{const e=i.children[l];i.insertBefore(a,e===a.nextElementSibling?e.nextElementSibling:e)}requestAnimationFrame(()=>t.focus()),a.handleActivated=!0}}connectedCallback(){d.call(this),h.call(this)}componentDidLoad(){this.setUpDragAndDrop()}componentDidUnload(){b.call(this),this.cleanUpDragAndDrop()}calciteListItemChangeHandler(e){f.call(this,e)}calciteListItemPropsChangeHandler(e){e.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(e){u.call(this,e)}setUpItems(){g.call(this,"calcite-value-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpDragAndDrop(){this.dragEnabled&&(this.sortable=x.create(this.el,{handle:".handle",draggable:"calcite-value-list-item",onUpdate:()=>{this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const e=this.items.map(e=>e.value);this.calciteListOrderChange.emit(e)}}))}cleanUpDragAndDrop(){this.dragEnabled&&this.sortable.destroy()}async getSelectedItems(){return this.selectedValues}async setFocus(){return m.call(this)}getIconType(){let e=null;return this.dragEnabled&&(e=k.grip),e}render(){return a(v,{props:this,onKeyDown:this.keyDownHandler})}get el(){return i(this)}};w.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-value-list-item:last-of-type{-webkit-box-shadow:none;box-shadow:none}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);-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset}header.sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}calcite-filter{margin-bottom:1px}calcite-scrim{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:column;flex-flow:column;pointer-events:none}slot[name=menu-actions]::slotted(calcite-action){padding:0 var(--calcite-app-side-spacing-half)}";export{w as calcite_value_list} \ No newline at end of file diff --git a/docs/build/p-38b93dd5.system.js b/docs/build/p-2eed7e25.system.js similarity index 89% rename from docs/build/p-38b93dd5.system.js rename to docs/build/p-2eed7e25.system.js index 90b4756c..797690ed 100644 --- a/docs/build/p-38b93dd5.system.js +++ b/docs/build/p-2eed7e25.system.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js"],(function(r,e){"use strict";var t,n,o,s,i,c;return{setters:[function(r){t=r.C;n=r.p;o=r.w;s=r.a;i=r.d;c=r.N}],execute:function(){var a=function(){};var u=typeof Deno!=="undefined";var f=!u&&typeof global!=="undefined"&&typeof require==="function"&&!!global.process&&typeof __filename==="string"&&(!global.origin||typeof global.origin!=="string");var p=u&&Deno.build.os==="windows";var l=f?process.cwd:u?Deno.cwd:function(){return"/"};var m=f?process.exit:u?Deno.exit:a;var d=function(r){return"__sc_import_"+r.replace(/\s|-/g,"_")};var v=r("a",(function(){if(!(t&&t.supports&&t.supports("color","var(--c)"))){return e.import("./p-dd650c87.system.js").then((function(){if(n.$cssShim$=o.__cssshim){return n.$cssShim$.i()}else{return 0}}))}return s()}));var w=r("p",(function(){{n.$cssShim$=o.__cssshim}var r=Array.from(i.querySelectorAll("script")).find((function(r){return new RegExp("/"+c+"(\\.esm)?\\.js($|\\?|#)").test(r.src)||r.getAttribute("data-stencil-namespace")===c}));var t=r["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{t.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,o.location.href)).href;{g(t.resourcesUrl,r)}if(!o.customElements){return e.import("./p-03f91178.system.js").then((function(){return t}))}}return s(t)}));var g=function(r,e){var t=d(c);try{o[t]=new Function("w","return import(w);//"+Math.random())}catch(s){var n=new Map;o[t]=function(s){var c=new URL(s,r).href;var a=n.get(c);if(!a){var u=i.createElement("script");u.type="module";u.crossOrigin=e.crossOrigin;u.src=URL.createObjectURL(new Blob(["import * as m from '"+c+"'; window."+t+".m = m;"],{type:"application/javascript"}));a=new Promise((function(r){u.onload=function(){r(o[t].m);u.remove()}}));n.set(c,a);i.head.appendChild(u)}return a}}}}}})); \ No newline at end of file +System.register(["./p-02f9b874.system.js"],(function(r,e){"use strict";var t,n,o,s,i,c;return{setters:[function(r){t=r.C;n=r.p;o=r.w;s=r.a;i=r.d;c=r.N}],execute:function(){var a=function(){};var u=typeof Deno!=="undefined";var f=!u&&typeof global!=="undefined"&&typeof require==="function"&&!!global.process&&typeof __filename==="string"&&(!global.origin||typeof global.origin!=="string");var p=u&&Deno.build.os==="windows";var l=f?process.cwd:u?Deno.cwd:function(){return"/"};var m=f?process.exit:u?Deno.exit:a;var d=function(r){return"__sc_import_"+r.replace(/\s|-/g,"_")};var v=r("a",(function(){if(!(t&&t.supports&&t.supports("color","var(--c)"))){return e.import("./p-41388819.system.js").then((function(){if(n.$cssShim$=o.__cssshim){return n.$cssShim$.i()}else{return 0}}))}return s()}));var w=r("p",(function(){{n.$cssShim$=o.__cssshim}var r=Array.from(i.querySelectorAll("script")).find((function(r){return new RegExp("/"+c+"(\\.esm)?\\.js($|\\?|#)").test(r.src)||r.getAttribute("data-stencil-namespace")===c}));var t=r["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{t.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,o.location.href)).href;{g(t.resourcesUrl,r)}if(!o.customElements){return e.import("./p-7f6820a6.system.js").then((function(){return t}))}}return s(t)}));var g=function(r,e){var t=d(c);try{o[t]=new Function("w","return import(w);//"+Math.random())}catch(s){var n=new Map;o[t]=function(s){var c=new URL(s,r).href;var a=n.get(c);if(!a){var u=i.createElement("script");u.type="module";u.crossOrigin=e.crossOrigin;u.src=URL.createObjectURL(new Blob(["import * as m from '"+c+"'; window."+t+".m = m;"],{type:"application/javascript"}));a=new Promise((function(r){u.onload=function(){r(o[t].m);u.remove()}}));n.set(c,a);i.head.appendChild(u)}return a}}}}}})); \ No newline at end of file diff --git a/docs/build/p-280cc70f.entry.js b/docs/build/p-317576fb.entry.js similarity index 97% rename from docs/build/p-280cc70f.entry.js rename to docs/build/p-317576fb.entry.js index f34117ac..7089eabc 100644 --- a/docs/build/p-280cc70f.entry.js +++ b/docs/build/p-317576fb.entry.js @@ -1 +1 @@ -import{r as a,h as e,H as c,g as i}from"./p-75b1a4f0.js";import{C as t}from"./p-eb15fcdb.js";import{b as r,a as p}from"./p-27f3f0d7.js";const o=class{constructor(e){a(this,e)}render(){const{el:a,textGroupTitle:i}=this,o="rtl"===r(a),n={container:!0,"container--indented":null!==p(a,"parent-item"),[t.rtl]:o};return e(c,null,i?e("h3",{class:"heading"},i):null,e("slot",{name:"parent-item"}),e("section",{class:n},e("slot",null)))}get el(){return i(this)}};o.style=":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:#00619b;--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)}.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 +import{r as a,h as e,H as c,g as i}from"./p-1b507203.js";import{C as t}from"./p-eb15fcdb.js";import{b as r,a as p}from"./p-27f3f0d7.js";const o=class{constructor(e){a(this,e)}render(){const{el:a,textGroupTitle:i}=this,o="rtl"===r(a),n={container:!0,"container--indented":null!==p(a,"parent-item"),[t.rtl]:o};return e(c,null,i?e("h3",{class:"heading"},i):null,e("slot",{name:"parent-item"}),e("section",{class:n},e("slot",null)))}get el(){return i(this)}};o.style=":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:#00619b;--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)}.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/build/p-30b35b90.system.entry.js b/docs/build/p-3d25f837.system.entry.js similarity index 91% rename from docs/build/p-30b35b90.system.entry.js rename to docs/build/p-3d25f837.system.entry.js index 9785aefd..18a20aae 100644 --- a/docs/build/p-30b35b90.system.entry.js +++ b/docs/build/p-3d25f837.system.entry.js @@ -1 +1 @@ -var __awaiter=this&&this.__awaiter||function(e,t,a,r){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function c(e){try{l(r.next(e))}catch(t){n(t)}}function i(e){try{l(r["throw"](e))}catch(t){n(t)}}function l(e){e.done?a(e.value):o(e.value).then(c,i)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,o,n,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(e){return function(t){return l([e,t])}}function l(c){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,o&&(n=c[0]&2?o["return"]:c[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,c[1])).done)return n;if(o=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:a.label++;return{value:c[1],done:false};case 5:a.label++;o=c[1];c=[0];continue;case 7:c=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]0&&n[n.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]e&&a>1||e>1?a{const{flows:e}=this,a=Array.from(this.el.querySelectorAll("calcite-flow-item")),t=e.length,i=a.length,n=a[i-1],c=a[i-2];if(i&&n&&a.forEach(e=>{e.showBackButton=i>1,e.hidden=e!==n}),c&&(c.menuOpen=!1),this.flows=a,t!==i){const e=this.getFlowDirection(t,i);this.flowCount=i,this.flowDirection=e}},this.flowItemObserver=new MutationObserver(this.updateFlowProps)}async back(){const e=this.el.querySelector("calcite-flow-item:last-child");if(e)return(e.beforeBack?e.beforeBack:()=>Promise.resolve()).call(e).then(()=>(e.remove(),e))}connectedCallback(){this.flowItemObserver.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}componentDidUnload(){this.flowItemObserver.disconnect()}handleCalciteFlowItemBackClick(){this.back()}render(){const{flowDirection:e,flowCount:i}=this;return a(t,null,a("div",{key:i,class:{frame:!0,"frame--advancing":"advancing"===e,"frame--retreating":"retreating"===e}},a("slot",null)))}get el(){return i(this)}};d.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}";const h=["ArrowUp","ArrowDown"],f=class{constructor(a){e(this,a),this.calciteFlowItemBackClick=n(this,"calciteFlowItemBackClick",7),this.calciteFlowItemScroll=n(this,"calciteFlowItemScroll",7),this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.showBackButton=!1,this.toggleMenuOpen=()=>{this.menuOpen=!this.menuOpen},this.backButtonClick=()=>{this.calciteFlowItemBackClick.emit()},this.menuButtonKeyDown=e=>{const{key:a}=e,{menuOpen:t}=this;if(!this.isValidKey(a,h))return;const i=this.queryActions(),{length:n}=i;n&&(e.preventDefault(),t||(this.menuOpen=!0),"ArrowUp"===a&&r(i[n-1]),"ArrowDown"===a&&r(i[0]))},this.menuActionsKeydown=e=>{const{key:a,target:t}=e;if(!this.isValidKey(a,h))return;const i=this.queryActions(),{length:n}=i,c=i.indexOf(t);if(n&&-1!==c){if(e.preventDefault(),"ArrowUp"===a){const e=p(c-1,n);r(i[e])}if("ArrowDown"===a){const e=p(c+1,n);r(i[e])}}},this.menuActionsContainerKeyDown=e=>{const{key:a}=e;"Escape"===a&&(this.menuOpen=!1)}}handleCalcitePanelScroll(e){e.stopPropagation(),this.calciteFlowItemScroll.emit()}queryActions(){return o(this.el,"menu-actions",{all:!0})}isValidKey(e,a){return!!a.find(a=>a===e)}renderBackButton(e){const{showBackButton:t,intlBack:i,backButtonClick:n}=this,c=i||"Back";return t?a("calcite-action",{slot:"header-leading-content",key:"back-button","aria-label":c,text:c,class:"back-button",onClick:n,icon:e?"chevron-right":"chevron-left"}):null}renderMenuButton(){const{menuOpen:e,intlOpen:t,intlClose:i}=this,n=e?i||"Close":t||"Open";return a("calcite-action",{class:"menu-button","aria-label":n,text:n,ref:e=>this.menuButtonEl=e,onClick:this.toggleMenuOpen,onKeyDown:this.menuButtonKeyDown,icon:"ellipsis"})}renderMenuActions(){const{el:e,menuOpen:t,menuButtonEl:i}=this;return a("calcite-popover",{referenceElement:i,theme:l(e),open:t,offsetDistance:0,disablePointer:!0,placement:"bottom-end",flipPlacements:["bottom-end","top-end"],onKeyDown:this.menuActionsKeydown},a("div",{class:"menu"},a("slot",{name:"menu-actions"})))}renderFooterActions(){return o(this.el,"footer-actions")?a("div",{slot:"footer",class:"footer-actions"},a("slot",{name:"footer-actions"})):null}renderSingleActionContainer(){return a("div",{class:"single-action-container"},a("slot",{name:"menu-actions"}))}renderMenuActionsContainer(){return a("div",{class:"menu-container",onKeyDown:this.menuActionsContainerKeyDown},this.renderMenuButton(),this.renderMenuActions())}renderHeaderLeadingContent(){return o(this.el,"leading-actions")?a("div",{slot:"header-leading-content",class:"leading-actions"},a("slot",{name:"leading-actions"})):null}renderHeaderActions(){const e=o(this.el,"menu-actions",{all:!0}).length,t=1===e?this.renderSingleActionContainer():e?this.renderMenuActionsContainer():null;return t?a("div",{slot:"header-trailing-content",class:"header-actions"},t):null}renderHeading(){const{heading:e}=this;return e?a("h2",{class:"heading",slot:"header-content"},e):null}renderSummary(){const{summary:e}=this;return e?a("span",{class:"summary"},e):null}renderHeader(){const e=this.renderHeading(),t=this.renderSummary();return e||t?a("div",{class:"header-content",slot:"header-content"},e,t):null}renderFab(){return o(this.el,"fab")?a("div",{class:"fab-container",slot:"fab"},a("slot",{name:"fab"})):null}render(){const{el:e}=this,i=s(e);return a(t,null,a("calcite-panel",{loading:this.loading,disabled:this.disabled,theme:l(e),"height-scale":this.heightScale,dir:i},this.renderBackButton("rtl"===i),this.renderHeaderLeadingContent(),this.renderHeader(),this.renderHeaderActions(),a("slot",null),this.renderFooterActions(),this.renderFab()))}get el(){return i(this)}};f.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-panel{width:100%;height:100%}.leading-actions{display:-ms-flexbox;display:flex}.header-content{display:block}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.header-content .heading{font-size:var(--calcite-app-font-size-1);font-weight:var(--calcite-app-font-weight-demi);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);font-size:var(--calcite-app-font-size--1)}.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,.single-action-container{display:-ms-flexbox;display:flex}.menu{min-width:var(--calcite-app-menu-min-width);-ms-flex-flow:column nowrap;flex-flow:column nowrap}.footer-actions{display:-ms-flexbox;display:flex;width:100%}.fab-container{display:inline-block}";const b=class{constructor(a){e(this,a),this.calcitePanelDismissedChange=n(this,"calcitePanelDismissedChange",7),this.calcitePanelScroll=n(this,"calcitePanelScroll",7),this.dismissed=!1,this.disabled=!1,this.dismissible=!1,this.loading=!1,this.panelKeyUpHandler=e=>{"Escape"===e.key&&this.dismiss()},this.dismiss=()=>{this.dismissed=!0},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()}}dismissedHandler(){this.calcitePanelDismissedChange.emit()}async setFocus(e){var a,t;"dismiss-button"!==e?null===(t=this.containerEl)||void 0===t||t.focus():null===(a=this.dismissButtonEl)||void 0===a||a.setFocus()}renderHeaderLeadingContent(){return o(this.el,"header-leading-content")?a("div",{key:"header-leading-content",class:"header-leading-content"},a("slot",{name:"header-leading-content"})):null}renderHeaderContent(){return a("div",{key:"header-content",class:"header-content"},a("slot",{name:"header-content"}))}renderHeaderTrailingContent(){const{dismiss:e,dismissible:t,intlClose:i}=this,n=i||"Close",c=t?a("calcite-action",{ref:e=>this.dismissButtonEl=e,"aria-label":n,text:n,onClick:e,icon:"x"}):null,r=a("slot",{name:"header-trailing-content"});return a("div",{key:"header-trailing-content",class:"header-trailing-content"},r,c)}renderHeader(){const e=this.renderHeaderLeadingContent(),t=this.renderHeaderContent(),i=this.renderHeaderTrailingContent();return t||e||i?a("header",{class:"header"},e,t,i):null}renderFooter(){const{el:e}=this;return o(e,"footer")?a("footer",{class:"footer"},a("slot",{name:"footer"})):null}renderContent(){return a("section",{tabIndex:0,class:"content-container",onScroll:this.panelScrollHandler},a("div",{class:"slot-container"},a("slot",null)),this.renderFab())}renderFab(){return o(this.el,"fab")?a("div",{class:"fab-container"},a("slot",{name:"fab"})):null}render(){const{dismissed:e,disabled:i,dismissible:n,el:r,loading:o,panelKeyUpHandler:p}=this,d="rtl"===s(r),h=a("article",{"aria-busy":o.toString(),onKeyUp:p,tabIndex:n?0:-1,hidden:n&&e,ref:e=>this.containerEl=e,class:{container:!0,[c.rtl]:d}},this.renderHeader(),this.renderContent(),this.renderFooter());return a(t,null,o||i?a("calcite-scrim",{theme:l(r),loading:o},h):h)}get el(){return i(this)}static get watchers(){return{dismissed:["dismissedHandler"]}}};b.style=":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:#00619b;--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)}.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}calcite-scrim{-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;pointer-events:none}: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:0 0 auto;flex:0 0 auto;-ms-flex-pack:start;justify-content:flex-start;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-trailing-content{margin-left:auto}.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}.fab-container{position:-webkit-sticky;position:sticky;z-index:1;bottom:0;display:inline-block;margin:0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);left:0;right:0}.slot-container{position:relative;z-index:0}";export{d as calcite_flow,f as calcite_flow_item,b as calcite_panel} \ No newline at end of file +import{r as e,h as a,H as t,g as i,c as n}from"./p-1b507203.js";import{C as c}from"./p-eb15fcdb.js";import{f as r,a as o,g as l,b as s}from"./p-27f3f0d7.js";import{g as p}from"./p-cf80779e.js";const d=class{constructor(a){e(this,a),this.flowCount=0,this.flowDirection=null,this.flows=[],this.getFlowDirection=(e,a)=>e&&a>1||e>1?a{const{flows:e}=this,a=Array.from(this.el.querySelectorAll("calcite-flow-item")),t=e.length,i=a.length,n=a[i-1],c=a[i-2];if(i&&n&&a.forEach(e=>{e.showBackButton=i>1,e.hidden=e!==n}),c&&(c.menuOpen=!1),this.flows=a,t!==i){const e=this.getFlowDirection(t,i);this.flowCount=i,this.flowDirection=e}},this.flowItemObserver=new MutationObserver(this.updateFlowProps)}async back(){const e=this.el.querySelector("calcite-flow-item:last-child");if(e)return(e.beforeBack?e.beforeBack:()=>Promise.resolve()).call(e).then(()=>(e.remove(),e))}connectedCallback(){this.flowItemObserver.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}componentDidUnload(){this.flowItemObserver.disconnect()}handleCalciteFlowItemBackClick(){this.back()}render(){const{flowDirection:e,flowCount:i}=this;return a(t,null,a("div",{key:i,class:{frame:!0,"frame--advancing":"advancing"===e,"frame--retreating":"retreating"===e}},a("slot",null)))}get el(){return i(this)}};d.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}";const h=["ArrowUp","ArrowDown"],f=class{constructor(a){e(this,a),this.calciteFlowItemBackClick=n(this,"calciteFlowItemBackClick",7),this.calciteFlowItemScroll=n(this,"calciteFlowItemScroll",7),this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.showBackButton=!1,this.toggleMenuOpen=()=>{this.menuOpen=!this.menuOpen},this.backButtonClick=()=>{this.calciteFlowItemBackClick.emit()},this.menuButtonKeyDown=e=>{const{key:a}=e,{menuOpen:t}=this;if(!this.isValidKey(a,h))return;const i=this.queryActions(),{length:n}=i;n&&(e.preventDefault(),t||(this.menuOpen=!0),"ArrowUp"===a&&r(i[n-1]),"ArrowDown"===a&&r(i[0]))},this.menuActionsKeydown=e=>{const{key:a,target:t}=e;if(!this.isValidKey(a,h))return;const i=this.queryActions(),{length:n}=i,c=i.indexOf(t);if(n&&-1!==c){if(e.preventDefault(),"ArrowUp"===a){const e=p(c-1,n);r(i[e])}if("ArrowDown"===a){const e=p(c+1,n);r(i[e])}}},this.menuActionsContainerKeyDown=e=>{const{key:a}=e;"Escape"===a&&(this.menuOpen=!1)}}handleCalcitePanelScroll(e){e.stopPropagation(),this.calciteFlowItemScroll.emit()}queryActions(){return o(this.el,"menu-actions",{all:!0})}isValidKey(e,a){return!!a.find(a=>a===e)}renderBackButton(e){const{showBackButton:t,intlBack:i,backButtonClick:n}=this,c=i||"Back";return t?a("calcite-action",{slot:"header-leading-content",key:"back-button","aria-label":c,text:c,class:"back-button",onClick:n,icon:e?"chevron-right":"chevron-left"}):null}renderMenuButton(){const{menuOpen:e,intlOpen:t,intlClose:i}=this,n=e?i||"Close":t||"Open";return a("calcite-action",{class:"menu-button","aria-label":n,text:n,ref:e=>this.menuButtonEl=e,onClick:this.toggleMenuOpen,onKeyDown:this.menuButtonKeyDown,icon:"ellipsis"})}renderMenuActions(){const{el:e,menuOpen:t,menuButtonEl:i}=this;return a("calcite-popover",{referenceElement:i,theme:l(e),open:t,offsetDistance:0,disablePointer:!0,placement:"bottom-end",flipPlacements:["bottom-end","top-end"],onKeyDown:this.menuActionsKeydown},a("div",{class:"menu"},a("slot",{name:"menu-actions"})))}renderFooterActions(){return o(this.el,"footer-actions")?a("div",{slot:"footer",class:"footer-actions"},a("slot",{name:"footer-actions"})):null}renderSingleActionContainer(){return a("div",{class:"single-action-container"},a("slot",{name:"menu-actions"}))}renderMenuActionsContainer(){return a("div",{class:"menu-container",onKeyDown:this.menuActionsContainerKeyDown},this.renderMenuButton(),this.renderMenuActions())}renderHeaderLeadingContent(){return o(this.el,"leading-actions")?a("div",{slot:"header-leading-content",class:"leading-actions"},a("slot",{name:"leading-actions"})):null}renderHeaderActions(){const e=o(this.el,"menu-actions",{all:!0}).length,t=1===e?this.renderSingleActionContainer():e?this.renderMenuActionsContainer():null;return t?a("div",{slot:"header-trailing-content",class:"header-actions"},t):null}renderHeading(){const{heading:e}=this;return e?a("h2",{class:"heading",slot:"header-content"},e):null}renderSummary(){const{summary:e}=this;return e?a("span",{class:"summary"},e):null}renderHeader(){const e=this.renderHeading(),t=this.renderSummary();return e||t?a("div",{class:"header-content",slot:"header-content"},e,t):null}renderFab(){return o(this.el,"fab")?a("div",{class:"fab-container",slot:"fab"},a("slot",{name:"fab"})):null}render(){const{el:e}=this,i=s(e);return a(t,null,a("calcite-panel",{loading:this.loading,disabled:this.disabled,theme:l(e),"height-scale":this.heightScale,dir:i},this.renderBackButton("rtl"===i),this.renderHeaderLeadingContent(),this.renderHeader(),this.renderHeaderActions(),a("slot",null),this.renderFooterActions(),this.renderFab()))}get el(){return i(this)}};f.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-panel{width:100%;height:100%}.leading-actions{display:-ms-flexbox;display:flex}.header-content{display:block}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.header-content .heading{font-size:var(--calcite-app-font-size-1);font-weight:var(--calcite-app-font-weight-demi);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);font-size:var(--calcite-app-font-size--1)}.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,.single-action-container{display:-ms-flexbox;display:flex}.menu{min-width:var(--calcite-app-menu-min-width);-ms-flex-flow:column nowrap;flex-flow:column nowrap}.footer-actions{display:-ms-flexbox;display:flex;width:100%}.fab-container{display:inline-block}";const b=class{constructor(a){e(this,a),this.calcitePanelDismissedChange=n(this,"calcitePanelDismissedChange",7),this.calcitePanelScroll=n(this,"calcitePanelScroll",7),this.dismissed=!1,this.disabled=!1,this.dismissible=!1,this.loading=!1,this.panelKeyUpHandler=e=>{"Escape"===e.key&&this.dismiss()},this.dismiss=()=>{this.dismissed=!0},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()}}dismissedHandler(){this.calcitePanelDismissedChange.emit()}async setFocus(e){var a,t;"dismiss-button"!==e?null===(t=this.containerEl)||void 0===t||t.focus():null===(a=this.dismissButtonEl)||void 0===a||a.setFocus()}renderHeaderLeadingContent(){return o(this.el,"header-leading-content")?a("div",{key:"header-leading-content",class:"header-leading-content"},a("slot",{name:"header-leading-content"})):null}renderHeaderContent(){return a("div",{key:"header-content",class:"header-content"},a("slot",{name:"header-content"}))}renderHeaderTrailingContent(){const{dismiss:e,dismissible:t,intlClose:i}=this,n=i||"Close",c=t?a("calcite-action",{ref:e=>this.dismissButtonEl=e,"aria-label":n,text:n,onClick:e,icon:"x"}):null,r=a("slot",{name:"header-trailing-content"});return a("div",{key:"header-trailing-content",class:"header-trailing-content"},r,c)}renderHeader(){const e=this.renderHeaderLeadingContent(),t=this.renderHeaderContent(),i=this.renderHeaderTrailingContent();return t||e||i?a("header",{class:"header"},e,t,i):null}renderFooter(){const{el:e}=this;return o(e,"footer")?a("footer",{class:"footer"},a("slot",{name:"footer"})):null}renderContent(){return a("section",{tabIndex:0,class:"content-container",onScroll:this.panelScrollHandler},a("div",{class:"slot-container"},a("slot",null)),this.renderFab())}renderFab(){return o(this.el,"fab")?a("div",{class:"fab-container"},a("slot",{name:"fab"})):null}render(){const{dismissed:e,disabled:i,dismissible:n,el:r,loading:o,panelKeyUpHandler:p}=this,d="rtl"===s(r),h=a("article",{"aria-busy":o.toString(),onKeyUp:p,tabIndex:n?0:-1,hidden:n&&e,ref:e=>this.containerEl=e,class:{container:!0,[c.rtl]:d}},this.renderHeader(),this.renderContent(),this.renderFooter());return a(t,null,o||i?a("calcite-scrim",{theme:l(r),loading:o},h):h)}get el(){return i(this)}static get watchers(){return{dismissed:["dismissedHandler"]}}};b.style=":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:#00619b;--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)}.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}calcite-scrim{-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;pointer-events:none}: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:0 0 auto;flex:0 0 auto;-ms-flex-pack:start;justify-content:flex-start;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-trailing-content{margin-left:auto}.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}.fab-container{position:-webkit-sticky;position:sticky;z-index:1;bottom:0;display:inline-block;margin:0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);left:0;right:0}.slot-container{position:relative;z-index:0}";export{d as calcite_flow,f as calcite_flow_item,b as calcite_panel} \ No newline at end of file diff --git a/docs/build/p-1372d4e2.entry.js b/docs/build/p-40df3238.entry.js similarity index 89% rename from docs/build/p-1372d4e2.entry.js rename to docs/build/p-40df3238.entry.js index 801c9fae..1e4d88d5 100644 --- a/docs/build/p-1372d4e2.entry.js +++ b/docs/build/p-40df3238.entry.js @@ -1 +1 @@ -import{r as a,c as e,h as t,g as i}from"./p-75b1a4f0.js";import"./p-27f3f0d7.js";import"./p-cf80779e.js";import{T as c,I as s}from"./p-c55f1634.js";import"./p-fc8feabd.js";import{m as o,d as r,s as p,h as l,g as n,k as d,i as b,a as f,c as h,b as g,e as m,f as u,j as x,L as k}from"./p-60ab4e38.js";const v=class{constructor(t){a(this,t),this.calciteListChange=e(this,"calciteListChange",7),this.disabled=!1,this.filterEnabled=!1,this.loading=!1,this.multiple=!1,this.textFilterPlaceholder=c.filterPlaceholder,this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.observer=new MutationObserver(o.bind(this)),this.deselectSiblingItems=r.bind(this),this.selectSiblings=p.bind(this),this.handleFilter=l.bind(this),this.getItemData=n.bind(this),this.keyDownHandler=d.bind(this)}connectedCallback(){b.call(this),f.call(this)}componentDidUnload(){h.call(this)}calciteListItemChangeHandler(a){g.call(this,a)}calciteListItemPropsChangeHandler(a){a.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(a){m.call(this,a)}setUpItems(){u.call(this,"calcite-pick-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}async getSelectedItems(){return this.selectedValues}async setFocus(){return x.call(this)}getIconType(){return this.multiple?s.square:s.circle}render(){return t(k,{props:this,onKeyDown:this.keyDownHandler})}get el(){return i(this)}};v.style=":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:#00619b;--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);-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset}header.sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}calcite-filter{margin-bottom:1px}calcite-scrim{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:column;flex-flow:column;pointer-events:none}slot[name=menu-actions]::slotted(calcite-action){padding:0 var(--calcite-app-side-spacing-half)}:host([loading][disabled]){min-height:2rem}";export{v as calcite_pick_list} \ No newline at end of file +import{r as e,c as a,h as t,g as i}from"./p-1b507203.js";import"./p-27f3f0d7.js";import"./p-cf80779e.js";import{T as c,I as s}from"./p-c55f1634.js";import"./p-fc8feabd.js";import{m as o,d as r,s as p,h as l,g as n,k as d,i as b,a as f,c as h,b as g,e as m,f as u,j as x,L as k}from"./p-f2ce65d8.js";const v=class{constructor(t){e(this,t),this.calciteListChange=a(this,"calciteListChange",7),this.disabled=!1,this.filterEnabled=!1,this.loading=!1,this.multiple=!1,this.textFilterPlaceholder=c.filterPlaceholder,this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.observer=new MutationObserver(o.bind(this)),this.deselectSiblingItems=r.bind(this),this.selectSiblings=p.bind(this),this.handleFilter=l.bind(this),this.getItemData=n.bind(this),this.keyDownHandler=d.bind(this)}connectedCallback(){b.call(this),f.call(this)}componentDidUnload(){h.call(this)}calciteListItemChangeHandler(e){g.call(this,e)}calciteListItemPropsChangeHandler(e){e.stopPropagation(),this.setUpFilter()}calciteListItemValueChangeHandler(e){m.call(this,e)}setUpItems(){u.call(this,"calcite-pick-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}async getSelectedItems(){return this.selectedValues}async setFocus(){return x.call(this)}getIconType(){return this.multiple?s.square:s.circle}render(){return t(k,{props:this,onKeyDown:this.keyDownHandler})}get el(){return i(this)}};v.style=":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:#00619b;--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);-webkit-box-shadow:0 -1px 0 var(--calcite-app-border) inset;box-shadow:0 -1px 0 var(--calcite-app-border) inset}header.sticky{position:-webkit-sticky;position:sticky;top:0;z-index:1}calcite-filter{margin-bottom:1px}calcite-scrim{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:column;flex-flow:column;pointer-events:none}slot[name=menu-actions]::slotted(calcite-action){padding:0 var(--calcite-app-side-spacing-half)}:host([loading][disabled]){min-height:2rem}";export{v as calcite_pick_list} \ No newline at end of file diff --git a/docs/build/p-dd650c87.system.js b/docs/build/p-41388819.system.js similarity index 100% rename from docs/build/p-dd650c87.system.js rename to docs/build/p-41388819.system.js diff --git a/docs/build/p-ae551da3.js b/docs/build/p-593ec7f9.js similarity index 100% rename from docs/build/p-ae551da3.js rename to docs/build/p-593ec7f9.js diff --git a/docs/build/p-571c1cfa.system.entry.js b/docs/build/p-63c57ac6.system.entry.js similarity index 93% rename from docs/build/p-571c1cfa.system.entry.js rename to docs/build/p-63c57ac6.system.entry.js index e2def4f5..89ebb129 100644 --- a/docs/build/p-571c1cfa.system.entry.js +++ b/docs/build/p-63c57ac6.system.entry.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js","./p-58a8921b.system.js","./p-598b7fa2.system.js"],(function(e){"use strict";var a,t,i,r,c,o,l;return{setters:[function(e){a=e.r;t=e.h;i=e.g;r=e.H},function(e){c=e.C},function(e){o=e.b;l=e.a}],execute:function(){var n={actionBarContainer:"action-bar-container",content:"content"};var p={actionBar:"action-bar"};var s=":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;overflow:hidden;-webkit-transition:height var(--calcite-app-animation-time) ease-in-out;transition:height var(--calcite-app-animation-time) ease-in-out;background-color:var(--calcite-app-background-clear);border-left:1px solid var(--calcite-app-border);border-right:1px solid var(--calcite-app-border);--calcite-app-shell-center-row-height-small:33%;--calcite-app-shell-center-row-height-medium:70%;--calcite-app-shell-center-row-height-large: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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.content{display:-ms-flexbox;display:flex;-ms-flex:1 0 0px;flex:1 0 0;height:100%;margin:0;overflow:hidden;width:100%}.action-bar-container{display:-ms-flexbox;display:flex}:host([detached]){-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:none;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) var(--calcite-app-cap-spacing-plus-half)}:host([position=end]){-ms-flex-item-align:end;align-self:flex-end}:host([position=start]){-ms-flex-item-align:start;align-self:flex-start}:host([height-scale=s]){height:var(--calcite-app-shell-center-row-height-small)}:host([height-scale=m]){height:var(--calcite-app-shell-center-row-height-medium)}:host([height-scale=l]){height:var(--calcite-app-shell-center-row-height-large)}:host([height-scale=l][detached]){height:calc(var(--calcite-app-shell-center-row-height-large) - var(--calcite-app-cap-spacing-double))}::slotted(calcite-panel){width:100%;height:100%}::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}::slotted(calcite-action-bar[position=end]){border-right:none;border-left:1px solid var(--calcite-app-border)}.calcite--rtl ::slotted(calcite-action-bar){border-right:none;border-left:1px solid var(--calcite-app-border)}.calcite--rtl ::slotted(calcite-action-bar[position=end]){border-left:none;border-right:1px solid var(--calcite-app-border)}";var d=e("calcite_shell_center_row",function(){function e(e){a(this,e);this.detached=false;this.heightScale="s";this.position="end"}e.prototype.render=function(){var e,a;var i=this.el;var s=o(i)==="rtl";var d=t("div",{class:(e={},e[n.content]=true,e[c.rtl]=s,e)},t("slot",null));var b=l(i,p.actionBar);var h=b?t("div",{class:(a={},a[n.actionBarContainer]=true,a[c.rtl]=s,a)},t("slot",{name:p.actionBar})):null;var f=[h,d];if(b.position==="end"){f.reverse()}return t(r,null,f)};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=s}}})); \ No newline at end of file +System.register(["./p-02f9b874.system.js","./p-58a8921b.system.js","./p-598b7fa2.system.js"],(function(e){"use strict";var a,t,i,r,c,o,l;return{setters:[function(e){a=e.r;t=e.h;i=e.g;r=e.H},function(e){c=e.C},function(e){o=e.b;l=e.a}],execute:function(){var n={actionBarContainer:"action-bar-container",content:"content"};var p={actionBar:"action-bar"};var s=":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;overflow:hidden;-webkit-transition:height var(--calcite-app-animation-time) ease-in-out;transition:height var(--calcite-app-animation-time) ease-in-out;background-color:var(--calcite-app-background-clear);border-left:1px solid var(--calcite-app-border);border-right:1px solid var(--calcite-app-border);--calcite-app-shell-center-row-height-small:33%;--calcite-app-shell-center-row-height-medium:70%;--calcite-app-shell-center-row-height-large: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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.content{display:-ms-flexbox;display:flex;-ms-flex:1 0 0px;flex:1 0 0;height:100%;margin:0;overflow:hidden;width:100%}.action-bar-container{display:-ms-flexbox;display:flex}:host([detached]){-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:none;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) var(--calcite-app-cap-spacing-plus-half)}:host([position=end]){-ms-flex-item-align:end;align-self:flex-end}:host([position=start]){-ms-flex-item-align:start;align-self:flex-start}:host([height-scale=s]){height:var(--calcite-app-shell-center-row-height-small)}:host([height-scale=m]){height:var(--calcite-app-shell-center-row-height-medium)}:host([height-scale=l]){height:var(--calcite-app-shell-center-row-height-large)}:host([height-scale=l][detached]){height:calc(var(--calcite-app-shell-center-row-height-large) - var(--calcite-app-cap-spacing-double))}::slotted(calcite-panel){width:100%;height:100%}::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}::slotted(calcite-action-bar[position=end]){border-right:none;border-left:1px solid var(--calcite-app-border)}.calcite--rtl ::slotted(calcite-action-bar){border-right:none;border-left:1px solid var(--calcite-app-border)}.calcite--rtl ::slotted(calcite-action-bar[position=end]){border-left:none;border-right:1px solid var(--calcite-app-border)}";var d=e("calcite_shell_center_row",function(){function e(e){a(this,e);this.detached=false;this.heightScale="s";this.position="end"}e.prototype.render=function(){var e,a;var i=this.el;var s=o(i)==="rtl";var d=t("div",{class:(e={},e[n.content]=true,e[c.rtl]=s,e)},t("slot",null));var b=l(i,p.actionBar);var h=b?t("div",{class:(a={},a[n.actionBarContainer]=true,a[c.rtl]=s,a)},t("slot",{name:p.actionBar})):null;var f=[h,d];if((b===null||b===void 0?void 0:b.position)==="end"){f.reverse()}return t(r,null,f)};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=s}}})); \ No newline at end of file diff --git a/docs/build/p-e4622e95.system.entry.js b/docs/build/p-72070c0e.system.entry.js similarity index 99% rename from docs/build/p-e4622e95.system.entry.js rename to docs/build/p-72070c0e.system.entry.js index 89e2cadf..04c4131f 100644 --- a/docs/build/p-e4622e95.system.entry.js +++ b/docs/build/p-72070c0e.system.entry.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js","./p-58a8921b.system.js","./p-598b7fa2.system.js","./p-597da005.system.js"],(function(a){"use strict";var t,e,r,i,c,n,o,p,l,u,s,f,b;return{setters:[function(a){t=a.r;e=a.c;r=a.h;i=a.H;c=a.g},function(a){n=a.C},function(a){o=a.b},function(a){p=a.i;l=a.b;u=a.a;s=a.r;f=a.f;b=a.d}],execute:function(){var v=Array.isArray;function d(a){return a}var g="[object AsyncFunction]",h="[object Function]",y="[object GeneratorFunction]",m="[object Proxy]";function j(a){if(!p(a)){return false}var t=l(a);return t==h||t==y||t==g||t==m}var x=9007199254740991;var w=/^(?:0|[1-9]\d*)$/;function k(a,t){var e=typeof a;t=t==null?x:t;return!!t&&(e=="number"||e!="symbol"&&w.test(a))&&(a>-1&&a%1==0&&a-1&&a%1==0&&a<=A}function F(a){return a!=null&&O(a.length)&&!j(a)}var q=Object.prototype;function z(a){var t=a&&a.constructor,e=typeof t=="function"&&t.prototype||q;return a===e}function C(a,t){var e=-1,r=Array(a);while(++e-1&&a%1==0&&a-1&&a%1==0&&a<=A}function F(a){return a!=null&&O(a.length)&&!j(a)}var q=Object.prototype;function z(a){var t=a&&a.constructor,e=typeof t=="function"&&t.prototype||q;return a===e}function C(a,t){var e=-1,r=Array(a);while(++e0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]1?i("footer",{class:b.pagination},i("calcite-action",{text:d,onClick:this.previousClicked,class:b.pagePrevious,icon:e==="ltr"?v.chevronLeft:v.chevronRight}),i("span",{class:b.pagePosition},f+" "+(t+1)+"/"+r),i("calcite-action",{text:s,onClick:this.nextClicked,class:b.pageNext,icon:e==="ltr"?v.chevronRight:v.chevronLeft})):null};e.prototype.render=function(){var e;var a=this,t=a.closed,r=a.direction,o=a.groupTitle,c=a.selectedIndex,l=a.intlClose,p=a.total;var s=l||m.close;if(p===0){return i(n,null)}return i(n,null,i("section",{class:b.container,hidden:t,"aria-hidden":t.toString(),tabIndex:0,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef},i("header",{class:b.header},i("h2",{key:c,class:b.heading},o),i("calcite-action",{text:s,onClick:this.hideTipManager,class:b.close,icon:v.close})),i("div",{tabIndex:0,class:(e={},e[b.tipContainer]=true,e[b.tipContainerAdvancing]=!t&&r==="advancing",e[b.tipContainerRetreating]=!t&&r==="retreating",e),key:c},i("slot",null)),this.renderPagination()))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}},enumerable:false,configurable:true});return e}());k.style=x}}})); \ No newline at end of file +var __awaiter=this&&this.__awaiter||function(e,a,t,i){function n(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,r){function o(e){try{l(i.next(e))}catch(a){r(a)}}function c(e){try{l(i["throw"](e))}catch(a){r(a)}}function l(e){e.done?t(e.value):n(e.value).then(o,c)}l((i=i.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(a){return l([e,a])}}function l(o){if(i)throw new TypeError("Generator is already executing.");while(t)try{if(i=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;n=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]1?i("footer",{class:b.pagination},i("calcite-action",{text:d,onClick:this.previousClicked,class:b.pagePrevious,icon:e==="ltr"?v.chevronLeft:v.chevronRight}),i("span",{class:b.pagePosition},f+" "+(t+1)+"/"+r),i("calcite-action",{text:s,onClick:this.nextClicked,class:b.pageNext,icon:e==="ltr"?v.chevronRight:v.chevronLeft})):null};e.prototype.render=function(){var e;var a=this,t=a.closed,r=a.direction,o=a.groupTitle,c=a.selectedIndex,l=a.intlClose,p=a.total;var s=l||m.close;if(p===0){return i(n,null)}return i(n,null,i("section",{class:b.container,hidden:t,"aria-hidden":t.toString(),tabIndex:0,onKeyUp:this.tipManagerKeyUpHandler,ref:this.storeContainerRef},i("header",{class:b.header},i("h2",{key:c,class:b.heading},o),i("calcite-action",{text:s,onClick:this.hideTipManager,class:b.close,icon:v.close})),i("div",{tabIndex:0,class:(e={},e[b.tipContainer]=true,e[b.tipContainerAdvancing]=!t&&r==="advancing",e[b.tipContainerRetreating]=!t&&r==="retreating",e),key:c},i("slot",null)),this.renderPagination()))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{closed:["closedChangeHandler"],selectedIndex:["selectedChangeHandler"]}},enumerable:false,configurable:true});return e}());k.style=x}}})); \ No newline at end of file diff --git a/docs/build/p-acbf52ad.system.js b/docs/build/p-7d3473c4.system.js similarity index 78% rename from docs/build/p-acbf52ad.system.js rename to docs/build/p-7d3473c4.system.js index d4de0250..4b2f218b 100644 --- a/docs/build/p-acbf52ad.system.js +++ b/docs/build/p-7d3473c4.system.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js","./p-38b93dd5.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p}],execute:function(){t().then((function(t){return e([["p-43d866b0.system",[[1,"calcite-tip",{dismissed:[1028],nonDismissible:[516,"non-dismissible"],heading:[1],selected:[516],intlClose:[1,"intl-close"],theme:[513]}],[1,"calcite-tip-manager",{closed:[516],intlClose:[1,"intl-close"],intlDefaultTitle:[1,"intl-default-title"],intlNext:[1,"intl-next"],intlPaginationLabel:[1,"intl-pagination-label"],intlPrevious:[1,"intl-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}],[1,"calcite-tip-group",{textGroupTitle:[1,"text-group-title"]}]]],["p-e775c38e.system",[[1,"calcite-block",{collapsible:[4],disabled:[516],dragHandle:[516,"drag-handle"],heading:[1],intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],loading:[516],open:[516],summary:[1],theme:[513]}],[1,"calcite-block-section",{intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],open:[516],text:[1],toggleDisplay:[513,"toggle-display"]}]]],["p-d9aa66f0.system",[[1,"calcite-value-list-item",{disabled:[516],disableDeselect:[4,"disable-deselect"],handleActivated:[1028,"handle-activated"],icon:[513],metadata:[16],removable:[516],selected:[1540],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]]],["p-7d4f1745.system",[[1,"calcite-pick-list",{disabled:[516],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-e583c1c9.system",[[1,"calcite-value-list",{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],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-7b42a96e.system",[[1,"calcite-shell",{theme:[513]}],[1,"calcite-shell-panel",{collapsed:[516],detached:[516],detachedScale:[1,"detached-scale"],position:[513]}]]],["p-30b35b90.system",[[1,"calcite-fab",{appearance:[513],color:[513],disabled:[516],icon:[1],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-6cc182bf.system",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-571c1cfa.system",[[1,"calcite-shell-center-row",{detached:[516],heightScale:[513,"height-scale"],position:[513]}]]],["p-8a8e6e98.system",[[1,"calcite-sortable-list",{handleSelector:[1,"handle-selector"],disabled:[516],loading:[516],handleActivated:[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]]],["p-25b99abd.system",[[1,"calcite-action-bar",{expand:[516],expanded:[516],tooltipExpand:[16],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513],theme:[513]}],[1,"calcite-action-pad",{layout:[513],expand:[516],expanded:[516],tooltipExpand:[16],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513],theme:[513]}],[1,"calcite-action-group"],[1,"calcite-action",{appearance:[513],active:[516],compact:[516],disabled:[516],icon:[1],indicator:[516],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-f9ffcb52.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],intlBack:[1,"intl-back"],intlClose:[1,"intl-close"],intlOpen:[1,"intl-open"],theme:[513]},[[0,"calcitePanelScroll","handleCalcitePanelScroll"]]],[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],intlClose:[1,"intl-close"],theme:[513],setFocus:[64]}]]],["p-9670b872.system",[[1,"calcite-pick-list-item",{disabled:[516],disableDeselect:[4,"disable-deselect"],icon:[513],metadata:[16],removable:[516],selected:[1540],textDescription:[513,"text-description"],textLabel:[513,"text-label"],textRemove:[513,"text-remove"],value:[513],toggleSelected:[64],setFocus:[64]}]]],["p-df0d5ccf.system",[[1,"calcite-handle",{activated:[1540],textTitle:[513,"text-title"],setFocus:[64]}]]],["p-e4622e95.system",[[1,"calcite-filter",{data:[16],intlClear:[1,"intl-clear"],intlLabel:[1,"intl-label"],placeholder:[1],empty:[32]}]]]],t)}))}}})); \ No newline at end of file +System.register(["./p-02f9b874.system.js","./p-2eed7e25.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p}],execute:function(){t().then((function(t){return e([["p-7673eb04.system",[[1,"calcite-tip",{dismissed:[1028],nonDismissible:[516,"non-dismissible"],heading:[1],selected:[516],intlClose:[1,"intl-close"],theme:[513]}],[1,"calcite-tip-manager",{closed:[516],intlClose:[1,"intl-close"],intlDefaultTitle:[1,"intl-default-title"],intlNext:[1,"intl-next"],intlPaginationLabel:[1,"intl-pagination-label"],intlPrevious:[1,"intl-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}],[1,"calcite-tip-group",{textGroupTitle:[1,"text-group-title"]}]]],["p-8f4206e9.system",[[1,"calcite-block",{collapsible:[4],disabled:[516],dragHandle:[516,"drag-handle"],heading:[1],intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],loading:[516],open:[516],summary:[1],theme:[513]}],[1,"calcite-block-section",{intlCollapse:[1,"intl-collapse"],intlExpand:[1,"intl-expand"],open:[516],text:[1],toggleDisplay:[513,"toggle-display"]}]]],["p-bb85e32d.system",[[1,"calcite-value-list-item",{disabled:[516],disableDeselect:[4,"disable-deselect"],handleActivated:[1028,"handle-activated"],icon:[513],metadata:[16],removable:[516],selected:[1540],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]]],["p-c75aae47.system",[[1,"calcite-pick-list",{disabled:[516],filterEnabled:[516,"filter-enabled"],loading:[516],multiple:[516],textFilterPlaceholder:[513,"text-filter-placeholder"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-761a6f40.system",[[1,"calcite-value-list",{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],setFocus:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteListItemPropsChange","calciteListItemPropsChangeHandler"],[0,"calciteListItemValueChange","calciteListItemValueChangeHandler"]]]]],["p-86a9989a.system",[[1,"calcite-shell",{theme:[513]}],[1,"calcite-shell-panel",{collapsed:[516],detached:[516],detachedScale:[1,"detached-scale"],position:[513]}]]],["p-3d25f837.system",[[1,"calcite-fab",{appearance:[513],color:[513],disabled:[516],icon:[1],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-971f26e3.system",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-63c57ac6.system",[[1,"calcite-shell-center-row",{detached:[516],heightScale:[513,"height-scale"],position:[513]}]]],["p-b2edaf5c.system",[[1,"calcite-sortable-list",{handleSelector:[1,"handle-selector"],disabled:[516],loading:[516],handleActivated:[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]]],["p-e299bc55.system",[[1,"calcite-action-bar",{expand:[516],expanded:[516],tooltipExpand:[16],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513],theme:[513]}],[1,"calcite-action-pad",{layout:[513],expand:[516],expanded:[516],tooltipExpand:[16],intlExpand:[1,"intl-expand"],intlCollapse:[1,"intl-collapse"],position:[513],theme:[513]}],[1,"calcite-action-group"],[1,"calcite-action",{appearance:[513],active:[516],compact:[516],disabled:[516],icon:[1],indicator:[516],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],theme:[513],setFocus:[64]}]]],["p-d927ba94.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],intlBack:[1,"intl-back"],intlClose:[1,"intl-close"],intlOpen:[1,"intl-open"],theme:[513]},[[0,"calcitePanelScroll","handleCalcitePanelScroll"]]],[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],intlClose:[1,"intl-close"],theme:[513],setFocus:[64]}]]],["p-d0b92741.system",[[1,"calcite-pick-list-item",{disabled:[516],disableDeselect:[4,"disable-deselect"],icon:[513],metadata:[16],removable:[516],selected:[1540],textDescription:[513,"text-description"],textLabel:[513,"text-label"],textRemove:[513,"text-remove"],value:[513],toggleSelected:[64],setFocus:[64]}]]],["p-1cb8f54a.system",[[1,"calcite-handle",{activated:[1540],textTitle:[513,"text-title"],setFocus:[64]}]]],["p-72070c0e.system",[[1,"calcite-filter",{data:[16],intlClear:[1,"intl-clear"],intlLabel:[1,"intl-label"],placeholder:[1],empty:[32]}]]]],t)}))}}})); \ No newline at end of file diff --git a/docs/build/p-03f91178.system.js b/docs/build/p-7f6820a6.system.js similarity index 100% rename from docs/build/p-03f91178.system.js rename to docs/build/p-7f6820a6.system.js diff --git a/docs/build/p-7b42a96e.system.entry.js b/docs/build/p-86a9989a.system.entry.js similarity index 99% rename from docs/build/p-7b42a96e.system.entry.js rename to docs/build/p-86a9989a.system.entry.js index 68e07946..5c9d7b41 100644 --- a/docs/build/p-7b42a96e.system.entry.js +++ b/docs/build/p-86a9989a.system.entry.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js","./p-598b7fa2.system.js"],(function(e){"use strict";var a,t,c,i,r,o;return{setters:[function(e){a=e.r;t=e.h;c=e.H;i=e.g;r=e.c},function(e){o=e.a}],execute:function(){var l={main:"main",mainReversed:"main--reversed",content:"content",footer:"footer"};var n={centerRow:"center-row",primaryPanel:"primary-panel",contextualPanel:"contextual-panel",header:"shell-header",footer:"shell-footer"};var p=":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:#00619b;--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(.header .heading){font-weight:var(--calcite-app-font-weight);font-size:var(--calcite-app-font-size-1)}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){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-plus-half);-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)}";var d=e("calcite_shell",function(){function e(e){a(this,e)}e.prototype.renderHeader=function(){var e=!!o(this.el,n.header);return e?t("slot",{name:n.header}):null};e.prototype.renderContent=function(){return t("div",{class:l.content},t("slot",null))};e.prototype.renderFooter=function(){var e=!!o(this.el,n.footer);return e?t("div",{class:l.footer},t("slot",{name:n.footer})):null};e.prototype.renderMain=function(){var e;var a=o(this.el,n.primaryPanel);var c=(e={},e[l.main]=true,e[l.mainReversed]=(a===null||a===void 0?void 0:a.position)==="end",e);return t("div",{class:c},t("slot",{name:n.primaryPanel}),this.renderContent(),t("slot",{name:n.centerRow}),t("slot",{name:n.contextualPanel}))};e.prototype.render=function(){return t(c,null,this.renderHeader(),this.renderMain(),this.renderFooter())};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=p;var s={content:"content",contentDetached:"content--detached"};var h={actionBar:"action-bar"};var b=":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:80vh}: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:#00619b;--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);padding:0;pointer-events:auto}.content--detached{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([position=start]) slot[name=action-bar]::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar){border-left:1px solid var(--calcite-app-border)}";var f=e("calcite_shell_panel",function(){function e(e){a(this,e);this.calciteShellPanelToggle=r(this,"calciteShellPanelToggle",7);this.collapsed=false;this.detached=false;this.detachedScale="m"}e.prototype.watchHandler=function(){this.calciteShellPanelToggle.emit()};e.prototype.render=function(){var e;var a=this,i=a.collapsed,r=a.detached,o=a.position;var l=t("div",{class:(e={},e[s.content]=true,e[s.contentDetached]=r,e),hidden:i},t("slot",null));var n=t("slot",{name:h.actionBar});var p=[n,l];if(o==="end"){p.reverse()}return t(c,null,p)};Object.defineProperty(e,"watchers",{get:function(){return{collapsed:["watchHandler"]}},enumerable:false,configurable:true});return e}());f.style=b}}})); \ No newline at end of file +System.register(["./p-02f9b874.system.js","./p-598b7fa2.system.js"],(function(e){"use strict";var a,t,c,i,r,o;return{setters:[function(e){a=e.r;t=e.h;c=e.H;i=e.g;r=e.c},function(e){o=e.a}],execute:function(){var l={main:"main",mainReversed:"main--reversed",content:"content",footer:"footer"};var n={centerRow:"center-row",primaryPanel:"primary-panel",contextualPanel:"contextual-panel",header:"shell-header",footer:"shell-footer"};var p=":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:#00619b;--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(.header .heading){font-weight:var(--calcite-app-font-weight);font-size:var(--calcite-app-font-size-1)}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){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-plus-half);-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)}";var d=e("calcite_shell",function(){function e(e){a(this,e)}e.prototype.renderHeader=function(){var e=!!o(this.el,n.header);return e?t("slot",{name:n.header}):null};e.prototype.renderContent=function(){return t("div",{class:l.content},t("slot",null))};e.prototype.renderFooter=function(){var e=!!o(this.el,n.footer);return e?t("div",{class:l.footer},t("slot",{name:n.footer})):null};e.prototype.renderMain=function(){var e;var a=o(this.el,n.primaryPanel);var c=(e={},e[l.main]=true,e[l.mainReversed]=(a===null||a===void 0?void 0:a.position)==="end",e);return t("div",{class:c},t("slot",{name:n.primaryPanel}),this.renderContent(),t("slot",{name:n.centerRow}),t("slot",{name:n.contextualPanel}))};e.prototype.render=function(){return t(c,null,this.renderHeader(),this.renderMain(),this.renderFooter())};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=p;var s={content:"content",contentDetached:"content--detached"};var h={actionBar:"action-bar"};var b=":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:80vh}: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:#00619b;--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);padding:0;pointer-events:auto}.content--detached{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([position=start]) slot[name=action-bar]::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar){border-left:1px solid var(--calcite-app-border)}";var f=e("calcite_shell_panel",function(){function e(e){a(this,e);this.calciteShellPanelToggle=r(this,"calciteShellPanelToggle",7);this.collapsed=false;this.detached=false;this.detachedScale="m"}e.prototype.watchHandler=function(){this.calciteShellPanelToggle.emit()};e.prototype.render=function(){var e;var a=this,i=a.collapsed,r=a.detached,o=a.position;var l=t("div",{class:(e={},e[s.content]=true,e[s.contentDetached]=r,e),hidden:i},t("slot",null));var n=t("slot",{name:h.actionBar});var p=[n,l];if(o==="end"){p.reverse()}return t(c,null,p)};Object.defineProperty(e,"watchers",{get:function(){return{collapsed:["watchHandler"]}},enumerable:false,configurable:true});return e}());f.style=b}}})); \ No newline at end of file diff --git a/docs/build/p-88794b38.entry.js b/docs/build/p-88794b38.entry.js new file mode 100644 index 00000000..31be12cf --- /dev/null +++ b/docs/build/p-88794b38.entry.js @@ -0,0 +1 @@ +import{r as a,h as e,H as c,g as t}from"./p-1b507203.js";import{f as o,b as r}from"./p-27f3f0d7.js";const i=class{constructor(e){a(this,e),this.appearance="outline",this.color="light",this.disabled=!1,this.icon="plus",this.loading=!1,this.scale="s",this.textEnabled=!1}async setFocus(){o(this.buttonEl)}render(){const{appearance:a,color:t,disabled:o,el:i,loading:p,scale:l,theme:b,textEnabled:n,icon:s,label:d,text:f}=this,h=d||!n&&f,u=r(i);return e(c,null,e("calcite-button",{class:"button",loading:p,disabled:o,title:h,"aria-label":d,theme:b,dir:u,scale:l,"icon-start":s,round:!0,width:"auto",appearance:a,color:t,ref:a=>{this.buttonEl=a}},this.textEnabled?this.text:null))}get el(){return t(this)}};i.style=":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-transparent)}calcite-button{-webkit-box-shadow:var(--calcite-app-shadow-1);box-shadow:var(--calcite-app-shadow-1)}: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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}";export{i as calcite_fab} \ No newline at end of file diff --git a/docs/build/p-e775c38e.system.entry.js b/docs/build/p-8f4206e9.system.entry.js similarity index 94% rename from docs/build/p-e775c38e.system.entry.js rename to docs/build/p-8f4206e9.system.entry.js index 31bf5a77..6ef53c31 100644 --- a/docs/build/p-e775c38e.system.entry.js +++ b/docs/build/p-8f4206e9.system.entry.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js","./p-58a8921b.system.js","./p-598b7fa2.system.js","./p-d2a76775.system.js"],(function(e){"use strict";var a,t,i,c,r,o,n,l,p,s;return{setters:[function(e){a=e.r;t=e.c;i=e.h;c=e.H;r=e.g},function(e){o=e.C},function(e){n=e.g;l=e.a;p=e.b},function(e){s=e.g}],execute:function(){var d={content:"content",headerContainer:"header-container",icon:"icon",toggle:"toggle",toggleIcon:"toggle-icon",title:"title",heading:"heading",header:"header",button:"button",summary:"summary",controlContainer:"control-container"};var g={collapse:"Collapse",expand:"Expand"};var f={icon:"icon",control:"control"};var b=':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;padding:0;border-top:1px solid var(--calcite-app-border);-webkit-transition:margin var(--calcite-app-animation-time) ease-in-out;transition:margin var(--calcite-app-animation-time) ease-in-out;--calcite-app-block-header-min-height:2.5rem}: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:#00619b;--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)}.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-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;grid-template:auto/auto 1fr auto;grid-template-areas:"handle header control";grid-column:header-start/control-end;grid-row:1/2;-ms-flex-align:stretch;align-items:stretch}.header-container>.header{padding:var(--calcite-app-cap-spacing-three-quarters) 0}.toggle{line-height:var(--calcite-app-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:0;padding:var(--calcite-app-cap-spacing-three-quarters) 0;background-color:transparent;border:none;cursor:pointer;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);text-align:unset;color:var(--calcite-app-foreground);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.toggle:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}calcite-loader[inline]{color:var(--calcite-app-foreground-subtle);grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding:0 var(--calcite-app-side-spacing-three-quarters)}.header .title .heading{padding:0;font-size:var(--calcite-app-font-size-0);word-break:break-all}.summary{color:var(--calcite-app-foreground-subtle);font-size:var(--calcite-app-font-size--1);padding:0;line-height:var(--calcite-app-line-height);word-break:break-all}.icon{margin-left:var(--calcite-app-side-spacing-three-quarters)}.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) 0 0}.content{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);position:relative}.control-container{grid-area:control;display:-ms-flexbox;display:flex;margin:0}calcite-scrim{pointer-events:none}.calcite--rtl .icon{margin-left:0;margin-right:var(--calcite-app-side-spacing-three-quarters)}:host([open]){margin-top:var(--calcite-app-cap-spacing-quarter);margin-bottom:var(--calcite-app-cap-spacing-quarter)}:host([open]) .header-container{border-bottom:1px solid var(--calcite-app-border)}: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)}:host([collapsible]) .header-container:hover{background-color:var(--calcite-app-background-hover-opacity)}:host([drag-handle]) .title{padding-left:var(--calcite-app-side-spacing-quarter)}:host([drag-handle]) .icon{margin-left:0;margin-right:var(--calcite-app-side-spacing-half)}:host([drag-handle]) .calcite--rtl .title{padding-left:0;padding-right:var(--calcite-app-side-spacing-quarter)}:host([drag-handle]) .calcite--rtl .icon{margin-right:0;margin-left:var(--calcite-app-side-spacing-quarter)}';var h=e("calcite_block",function(){function e(e){var i=this;a(this,e);this.calciteBlockToggle=t(this,"calciteBlockToggle",7);this.collapsible=false;this.disabled=false;this.dragHandle=false;this.loading=false;this.open=false;this.onHeaderClick=function(){i.open=!i.open;i.calciteBlockToggle.emit()}}e.prototype.renderScrim=function(){var e=this,a=e.disabled,t=e.loading,c=e.el;var r=i("slot",null);return t||a?i("calcite-scrim",{theme:n(c),loading:t},r):r};e.prototype.render=function(){var e=this,a=e.collapsible,t=e.disabled,r=e.el,n=e.heading,s=e.intlCollapse,b=e.intlExpand,h=e.loading,u=e.open,v=e.summary;var m=u?s||g.collapse:b||g.expand;var x=l(r,f.icon);var k=i("header",{class:d.header},x?i("div",{class:d.icon},i("slot",{name:f.icon})):null,i("div",{class:d.title},i("h3",{class:d.heading},n),v?i("div",{class:d.summary},v):null));var y=l(r,f.control);var w=i("div",{class:d.headerContainer},this.dragHandle?i("calcite-handle",null):null,a?i("button",{"aria-label":m,class:d.toggle,onClick:this.onHeaderClick,title:m},k):k,h?i("calcite-loader",{inline:true,"is-active":true}):y?i("div",{class:d.controlContainer},i("slot",{name:f.control})):null);var z=p(r)==="rtl";return i(c,{tabIndex:t?-1:null},i("article",{"aria-expanded":a?u.toString():null,"aria-busy":h.toString(),class:z?o.rtl:null},w,i("div",{class:d.content,hidden:!u},this.renderScrim())))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());h.style=b;var u={content:"content",toggle:"toggle",toggleSwitch:"toggle--switch"};var v={collapse:"Collapse",expand:"Expand"};var m={menuOpen:"chevron-down",menuClosedLeft:"chevron-left",menuClosedRight:"chevron-right"};var x=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:last-child){border-bottom:none}.toggle--switch{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:var(--calcite-app-cap-spacing-quarter) 0;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{pointer-events:none;margin:0 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)}";var k=e("calcite_block_section",function(){function e(e){var i=this;a(this,e);this.calciteBlockSectionToggle=t(this,"calciteBlockSectionToggle",7);this.open=false;this.toggleDisplay="button";this.guid="calcite-block-section-"+s();this.toggleSection=function(){i.open=!i.open;i.calciteBlockSectionToggle.emit()}}e.prototype.handleHeaderLabelKeyDown=function(e){if(e.key===" "||e.key==="Enter"){e.preventDefault();e.stopPropagation();this.click()}};e.prototype.render=function(){var e,a;var t=this,c=t.el,r=t.guid,n=t.intlCollapse,l=t.intlExpand,s=t.open,d=t.text,g=t.toggleDisplay;var f=p(c);var b=s?m.menuOpen:f==="rtl"?m.menuClosedLeft:m.menuClosedRight;var h=s?n||v.collapse:l||v.expand;var x=r+"__label";var k=g==="switch"?i("label",{"aria-label":h,class:(e={},e[u.toggle]=true,e[u.toggleSwitch]=true,e),id:x,onKeyDown:this.handleHeaderLabelKeyDown,tabIndex:0},d,i("calcite-switch",{"aria-labelledby":x,switched:s,onChange:this.toggleSection,scale:"s",tabIndex:-1})):i("calcite-action",{"aria-label":h,class:u.toggle,onClick:this.toggleSection,text:d,textEnabled:true,compact:true,icon:b});return i("section",{"aria-expanded":s.toString(),class:(a={},a[o.rtl]=f==="rtl",a)},k,i("div",{class:u.content,hidden:!s},i("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());k.style=x}}})); \ No newline at end of file +System.register(["./p-02f9b874.system.js","./p-58a8921b.system.js","./p-598b7fa2.system.js","./p-d2a76775.system.js"],(function(e){"use strict";var a,t,i,c,r,o,n,l,p,s;return{setters:[function(e){a=e.r;t=e.c;i=e.h;c=e.H;r=e.g},function(e){o=e.C},function(e){n=e.g;l=e.a;p=e.b},function(e){s=e.g}],execute:function(){var d={content:"content",headerContainer:"header-container",icon:"icon",toggle:"toggle",toggleIcon:"toggle-icon",title:"title",heading:"heading",header:"header",button:"button",summary:"summary",controlContainer:"control-container"};var g={collapse:"Collapse",expand:"Expand"};var f={icon:"icon",control:"control"};var b=':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;padding:0;border-top:1px solid var(--calcite-app-border);-webkit-transition:margin var(--calcite-app-animation-time) ease-in-out;transition:margin var(--calcite-app-animation-time) ease-in-out;--calcite-app-block-header-min-height:2.5rem}: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:#00619b;--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)}.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-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;grid-template:auto/auto 1fr auto;grid-template-areas:"handle header control";grid-column:header-start/control-end;grid-row:1/2;-ms-flex-align:stretch;align-items:stretch}.header-container>.header{padding:var(--calcite-app-cap-spacing-three-quarters) 0}.toggle{line-height:var(--calcite-app-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:0;padding:var(--calcite-app-cap-spacing-three-quarters) 0;background-color:transparent;border:none;cursor:pointer;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);text-align:unset;color:var(--calcite-app-foreground);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.toggle:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}calcite-loader[inline]{color:var(--calcite-app-foreground-subtle);grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding:0 var(--calcite-app-side-spacing-three-quarters)}.header .title .heading{padding:0;font-size:var(--calcite-app-font-size-0);word-break:break-all}.summary{color:var(--calcite-app-foreground-subtle);font-size:var(--calcite-app-font-size--1);padding:0;line-height:var(--calcite-app-line-height);word-break:break-all}.icon{margin-left:var(--calcite-app-side-spacing-three-quarters)}.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) 0 0}.content{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);position:relative}.control-container{grid-area:control;display:-ms-flexbox;display:flex;margin:0}calcite-scrim{pointer-events:none}.calcite--rtl .icon{margin-left:0;margin-right:var(--calcite-app-side-spacing-three-quarters)}:host([open]){margin-top:var(--calcite-app-cap-spacing-quarter);margin-bottom:var(--calcite-app-cap-spacing-quarter)}:host([open]) .header-container{border-bottom:1px solid var(--calcite-app-border)}: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)}:host([collapsible]) .header-container:hover{background-color:var(--calcite-app-background-hover-opacity)}:host([drag-handle]) .title{padding-left:var(--calcite-app-side-spacing-quarter)}:host([drag-handle]) .icon{margin-left:0;margin-right:var(--calcite-app-side-spacing-half)}:host([drag-handle]) .calcite--rtl .title{padding-left:0;padding-right:var(--calcite-app-side-spacing-quarter)}:host([drag-handle]) .calcite--rtl .icon{margin-right:0;margin-left:var(--calcite-app-side-spacing-quarter)}';var h=e("calcite_block",function(){function e(e){var i=this;a(this,e);this.calciteBlockToggle=t(this,"calciteBlockToggle",7);this.collapsible=false;this.disabled=false;this.dragHandle=false;this.loading=false;this.open=false;this.onHeaderClick=function(){i.open=!i.open;i.calciteBlockToggle.emit()}}e.prototype.renderScrim=function(){var e=this,a=e.disabled,t=e.loading,c=e.el;var r=i("slot",null);return t||a?i("calcite-scrim",{theme:n(c),loading:t},r):r};e.prototype.render=function(){var e=this,a=e.collapsible,t=e.disabled,r=e.el,n=e.heading,s=e.intlCollapse,b=e.intlExpand,h=e.loading,u=e.open,v=e.summary;var m=u?s||g.collapse:b||g.expand;var x=l(r,f.icon);var k=i("header",{class:d.header},x?i("div",{class:d.icon},i("slot",{name:f.icon})):null,i("div",{class:d.title},i("h3",{class:d.heading},n),v?i("div",{class:d.summary},v):null));var y=l(r,f.control);var w=i("div",{class:d.headerContainer},this.dragHandle?i("calcite-handle",null):null,a?i("button",{"aria-label":m,class:d.toggle,onClick:this.onHeaderClick,title:m},k):k,h?i("calcite-loader",{inline:true,"is-active":true}):y?i("div",{class:d.controlContainer},i("slot",{name:f.control})):null);var z=p(r)==="rtl";return i(c,{tabIndex:t?-1:null},i("article",{"aria-expanded":a?u.toString():null,"aria-busy":h.toString(),class:z?o.rtl:null},w,i("div",{class:d.content,hidden:!u},this.renderScrim())))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());h.style=b;var u={content:"content",toggle:"toggle",toggleSwitch:"toggle--switch"};var v={collapse:"Collapse",expand:"Expand"};var m={menuOpen:"chevron-down",menuClosedLeft:"chevron-left",menuClosedRight:"chevron-right"};var x=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:last-child){border-bottom:none}.toggle--switch{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:var(--calcite-app-cap-spacing-quarter) 0;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{pointer-events:none;margin:0 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)}";var k=e("calcite_block_section",function(){function e(e){var i=this;a(this,e);this.calciteBlockSectionToggle=t(this,"calciteBlockSectionToggle",7);this.open=false;this.toggleDisplay="button";this.guid="calcite-block-section-"+s();this.toggleSection=function(){i.open=!i.open;i.calciteBlockSectionToggle.emit()}}e.prototype.handleHeaderLabelKeyDown=function(e){if(e.key===" "||e.key==="Enter"){e.preventDefault();e.stopPropagation();this.click()}};e.prototype.render=function(){var e,a;var t=this,c=t.el,r=t.guid,n=t.intlCollapse,l=t.intlExpand,s=t.open,d=t.text,g=t.toggleDisplay;var f=p(c);var b=s?m.menuOpen:f==="rtl"?m.menuClosedLeft:m.menuClosedRight;var h=s?n||v.collapse:l||v.expand;var x=r+"__label";var k=g==="switch"?i("label",{"aria-label":h,class:(e={},e[u.toggle]=true,e[u.toggleSwitch]=true,e),id:x,onKeyDown:this.handleHeaderLabelKeyDown,tabIndex:0},d,i("calcite-switch",{"aria-labelledby":x,switched:s,onCalciteSwitchChange:this.toggleSection,scale:"s",tabIndex:-1})):i("calcite-action",{"aria-label":h,class:u.toggle,onClick:this.toggleSection,text:d,textEnabled:true,compact:true,icon:b});return i("section",{"aria-expanded":s.toString(),class:(a={},a[o.rtl]=f==="rtl",a)},k,i("div",{class:u.content,hidden:!s},i("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());k.style=x}}})); \ No newline at end of file diff --git a/docs/build/p-6cc182bf.system.entry.js b/docs/build/p-971f26e3.system.entry.js similarity index 89% rename from docs/build/p-6cc182bf.system.entry.js rename to docs/build/p-971f26e3.system.entry.js index 2f62171b..0ab9b289 100644 --- a/docs/build/p-6cc182bf.system.entry.js +++ b/docs/build/p-971f26e3.system.entry.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js","./p-58a8921b.system.js","./p-598b7fa2.system.js"],(function(a){"use strict";var e,t,c,i,r,n,p;return{setters:[function(a){e=a.r;t=a.h;c=a.H;i=a.g},function(a){r=a.C},function(a){n=a.b;p=a.a}],execute:function(){var o={heading:"heading",container:"container",indented:"container--indented"};var l={parentItem:"parent-item"};var d=":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:#00619b;--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)}.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)}";var s=a("calcite_pick_list_group",function(){function a(a){e(this,a)}a.prototype.render=function(){var a;var e=this,i=e.el,d=e.textGroupTitle;var s=n(i)==="rtl";var f=p(i,l.parentItem)!==null;var b=(a={},a[o.container]=true,a[o.indented]=f,a[r.rtl]=s,a);return t(c,null,d?t("h3",{class:o.heading},d):null,t("slot",{name:l.parentItem}),t("section",{class:b},t("slot",null)))};Object.defineProperty(a.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return a}());s.style=d}}})); \ No newline at end of file +System.register(["./p-02f9b874.system.js","./p-58a8921b.system.js","./p-598b7fa2.system.js"],(function(a){"use strict";var e,t,c,i,r,n,p;return{setters:[function(a){e=a.r;t=a.h;c=a.H;i=a.g},function(a){r=a.C},function(a){n=a.b;p=a.a}],execute:function(){var o={heading:"heading",container:"container",indented:"container--indented"};var l={parentItem:"parent-item"};var d=":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:#00619b;--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)}.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)}";var f=a("calcite_pick_list_group",function(){function a(a){e(this,a)}a.prototype.render=function(){var a;var e=this,i=e.el,d=e.textGroupTitle;var f=n(i)==="rtl";var s=p(i,l.parentItem)!==null;var b=(a={},a[o.container]=true,a[o.indented]=s,a[r.rtl]=f,a);return t(c,null,d?t("h3",{class:o.heading},d):null,t("slot",{name:l.parentItem}),t("section",{class:b},t("slot",null)))};Object.defineProperty(a.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return a}());f.style=d}}})); \ No newline at end of file diff --git a/docs/build/p-9a230400.entry.js b/docs/build/p-9e56388b.entry.js similarity index 74% rename from docs/build/p-9a230400.entry.js rename to docs/build/p-9e56388b.entry.js index 9646bd87..c5fc29c5 100644 --- a/docs/build/p-9a230400.entry.js +++ b/docs/build/p-9e56388b.entry.js @@ -1 +1 @@ -import{r as a,c as e,h as t,H as i,g as c}from"./p-75b1a4f0.js";import{C as r}from"./p-eb15fcdb.js";import{g as l,a as o,b as n}from"./p-27f3f0d7.js";import{g as p}from"./p-36390f92.js";const s=class{constructor(t){a(this,t),this.calciteBlockToggle=e(this,"calciteBlockToggle",7),this.collapsible=!1,this.disabled=!1,this.dragHandle=!1,this.loading=!1,this.open=!1,this.onHeaderClick=()=>{this.open=!this.open,this.calciteBlockToggle.emit()}}renderScrim(){const{disabled:a,loading:e,el:i}=this,c=t("slot",null);return e||a?t("calcite-scrim",{theme:l(i),loading:e},c):c}render(){const{collapsible:a,disabled:e,el:c,heading:l,intlCollapse:p,intlExpand:s,loading:d,open:g,summary:b}=this,f=g?p||"Collapse":s||"Expand",h=o(c,"icon"),u=t("header",{class:"header"},h?t("div",{class:"icon"},t("slot",{name:"icon"})):null,t("div",{class:"title"},t("h3",{class:"heading"},l),b?t("div",{class:"summary"},b):null)),m=o(c,"control"),v=t("div",{class:"header-container"},this.dragHandle?t("calcite-handle",null):null,a?t("button",{"aria-label":f,class:"toggle",onClick:this.onHeaderClick,title:f},u):u,d?t("calcite-loader",{inline:!0,"is-active":!0}):m?t("div",{class:"control-container"},t("slot",{name:"control"})):null),x="rtl"===n(c);return t(i,{tabIndex:e?-1:null},t("article",{"aria-expanded":a?g.toString():null,"aria-busy":d.toString(),class:x?r.rtl:null},v,t("div",{class:"content",hidden:!g},this.renderScrim())))}get el(){return c(this)}};s.style=':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;padding:0;border-top:1px solid var(--calcite-app-border);-webkit-transition:margin var(--calcite-app-animation-time) ease-in-out;transition:margin var(--calcite-app-animation-time) ease-in-out;--calcite-app-block-header-min-height:2.5rem}: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:#00619b;--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)}.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-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;grid-template:auto/auto 1fr auto;grid-template-areas:"handle header control";grid-column:header-start/control-end;grid-row:1/2;-ms-flex-align:stretch;align-items:stretch}.header-container>.header{padding:var(--calcite-app-cap-spacing-three-quarters) 0}.toggle{line-height:var(--calcite-app-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:0;padding:var(--calcite-app-cap-spacing-three-quarters) 0;background-color:transparent;border:none;cursor:pointer;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);text-align:unset;color:var(--calcite-app-foreground);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.toggle:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}calcite-loader[inline]{color:var(--calcite-app-foreground-subtle);grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding:0 var(--calcite-app-side-spacing-three-quarters)}.header .title .heading{padding:0;font-size:var(--calcite-app-font-size-0);word-break:break-all}.summary{color:var(--calcite-app-foreground-subtle);font-size:var(--calcite-app-font-size--1);padding:0;line-height:var(--calcite-app-line-height);word-break:break-all}.icon{margin-left:var(--calcite-app-side-spacing-three-quarters)}.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) 0 0}.content{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);position:relative}.control-container{grid-area:control;display:-ms-flexbox;display:flex;margin:0}calcite-scrim{pointer-events:none}.calcite--rtl .icon{margin-left:0;margin-right:var(--calcite-app-side-spacing-three-quarters)}:host([open]){margin-top:var(--calcite-app-cap-spacing-quarter);margin-bottom:var(--calcite-app-cap-spacing-quarter)}:host([open]) .header-container{border-bottom:1px solid var(--calcite-app-border)}: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)}:host([collapsible]) .header-container:hover{background-color:var(--calcite-app-background-hover-opacity)}:host([drag-handle]) .title{padding-left:var(--calcite-app-side-spacing-quarter)}:host([drag-handle]) .icon{margin-left:0;margin-right:var(--calcite-app-side-spacing-half)}:host([drag-handle]) .calcite--rtl .title{padding-left:0;padding-right:var(--calcite-app-side-spacing-quarter)}:host([drag-handle]) .calcite--rtl .icon{margin-right:0;margin-left:var(--calcite-app-side-spacing-quarter)}';const d=class{constructor(t){a(this,t),this.calciteBlockSectionToggle=e(this,"calciteBlockSectionToggle",7),this.open=!1,this.toggleDisplay="button",this.guid="calcite-block-section-"+p(),this.toggleSection=()=>{this.open=!this.open,this.calciteBlockSectionToggle.emit()}}handleHeaderLabelKeyDown(a){" "!==a.key&&"Enter"!==a.key||(a.preventDefault(),a.stopPropagation(),this.click())}render(){const{el:a,guid:e,intlCollapse:i,intlExpand:c,open:l,text:o,toggleDisplay:p}=this,s=n(a),d=l?"chevron-down":"rtl"===s?"chevron-left":"chevron-right",g=l?i||"Collapse":c||"Expand",b=e+"__label",f="switch"===p?t("label",{"aria-label":g,class:{toggle:!0,"toggle--switch":!0},id:b,onKeyDown:this.handleHeaderLabelKeyDown,tabIndex:0},o,t("calcite-switch",{"aria-labelledby":b,switched:l,onChange:this.toggleSection,scale:"s",tabIndex:-1})):t("calcite-action",{"aria-label":g,class:"toggle",onClick:this.toggleSection,text:o,textEnabled:!0,compact:!0,icon:d});return t("section",{"aria-expanded":l.toString(),class:{[r.rtl]:"rtl"===s}},f,t("div",{class:"content",hidden:!l},t("slot",null)))}get el(){return c(this)}};d.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:last-child){border-bottom:none}.toggle--switch{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:var(--calcite-app-cap-spacing-quarter) 0;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{pointer-events:none;margin:0 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{s as calcite_block,d as calcite_block_section} \ No newline at end of file +import{r as a,c as e,h as t,H as i,g as c}from"./p-1b507203.js";import{C as r}from"./p-eb15fcdb.js";import{g as l,a as o,b as n}from"./p-27f3f0d7.js";import{g as p}from"./p-36390f92.js";const s=class{constructor(t){a(this,t),this.calciteBlockToggle=e(this,"calciteBlockToggle",7),this.collapsible=!1,this.disabled=!1,this.dragHandle=!1,this.loading=!1,this.open=!1,this.onHeaderClick=()=>{this.open=!this.open,this.calciteBlockToggle.emit()}}renderScrim(){const{disabled:a,loading:e,el:i}=this,c=t("slot",null);return e||a?t("calcite-scrim",{theme:l(i),loading:e},c):c}render(){const{collapsible:a,disabled:e,el:c,heading:l,intlCollapse:p,intlExpand:s,loading:d,open:g,summary:b}=this,f=g?p||"Collapse":s||"Expand",h=o(c,"icon"),u=t("header",{class:"header"},h?t("div",{class:"icon"},t("slot",{name:"icon"})):null,t("div",{class:"title"},t("h3",{class:"heading"},l),b?t("div",{class:"summary"},b):null)),m=o(c,"control"),v=t("div",{class:"header-container"},this.dragHandle?t("calcite-handle",null):null,a?t("button",{"aria-label":f,class:"toggle",onClick:this.onHeaderClick,title:f},u):u,d?t("calcite-loader",{inline:!0,"is-active":!0}):m?t("div",{class:"control-container"},t("slot",{name:"control"})):null),x="rtl"===n(c);return t(i,{tabIndex:e?-1:null},t("article",{"aria-expanded":a?g.toString():null,"aria-busy":d.toString(),class:x?r.rtl:null},v,t("div",{class:"content",hidden:!g},this.renderScrim())))}get el(){return c(this)}};s.style=':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;padding:0;border-top:1px solid var(--calcite-app-border);-webkit-transition:margin var(--calcite-app-animation-time) ease-in-out;transition:margin var(--calcite-app-animation-time) ease-in-out;--calcite-app-block-header-min-height:2.5rem}: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:#00619b;--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)}.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-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;grid-template:auto/auto 1fr auto;grid-template-areas:"handle header control";grid-column:header-start/control-end;grid-row:1/2;-ms-flex-align:stretch;align-items:stretch}.header-container>.header{padding:var(--calcite-app-cap-spacing-three-quarters) 0}.toggle{line-height:var(--calcite-app-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin:0;padding:var(--calcite-app-cap-spacing-three-quarters) 0;background-color:transparent;border:none;cursor:pointer;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);text-align:unset;color:var(--calcite-app-foreground);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.toggle:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}calcite-loader[inline]{color:var(--calcite-app-foreground-subtle);grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding:0 var(--calcite-app-side-spacing-three-quarters)}.header .title .heading{padding:0;font-size:var(--calcite-app-font-size-0);word-break:break-all}.summary{color:var(--calcite-app-foreground-subtle);font-size:var(--calcite-app-font-size--1);padding:0;line-height:var(--calcite-app-line-height);word-break:break-all}.icon{margin-left:var(--calcite-app-side-spacing-three-quarters)}.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) 0 0}.content{padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);position:relative}.control-container{grid-area:control;display:-ms-flexbox;display:flex;margin:0}calcite-scrim{pointer-events:none}.calcite--rtl .icon{margin-left:0;margin-right:var(--calcite-app-side-spacing-three-quarters)}:host([open]){margin-top:var(--calcite-app-cap-spacing-quarter);margin-bottom:var(--calcite-app-cap-spacing-quarter)}:host([open]) .header-container{border-bottom:1px solid var(--calcite-app-border)}: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)}:host([collapsible]) .header-container:hover{background-color:var(--calcite-app-background-hover-opacity)}:host([drag-handle]) .title{padding-left:var(--calcite-app-side-spacing-quarter)}:host([drag-handle]) .icon{margin-left:0;margin-right:var(--calcite-app-side-spacing-half)}:host([drag-handle]) .calcite--rtl .title{padding-left:0;padding-right:var(--calcite-app-side-spacing-quarter)}:host([drag-handle]) .calcite--rtl .icon{margin-right:0;margin-left:var(--calcite-app-side-spacing-quarter)}';const d=class{constructor(t){a(this,t),this.calciteBlockSectionToggle=e(this,"calciteBlockSectionToggle",7),this.open=!1,this.toggleDisplay="button",this.guid="calcite-block-section-"+p(),this.toggleSection=()=>{this.open=!this.open,this.calciteBlockSectionToggle.emit()}}handleHeaderLabelKeyDown(a){" "!==a.key&&"Enter"!==a.key||(a.preventDefault(),a.stopPropagation(),this.click())}render(){const{el:a,guid:e,intlCollapse:i,intlExpand:c,open:l,text:o,toggleDisplay:p}=this,s=n(a),d=l?"chevron-down":"rtl"===s?"chevron-left":"chevron-right",g=l?i||"Collapse":c||"Expand",b=e+"__label",f="switch"===p?t("label",{"aria-label":g,class:{toggle:!0,"toggle--switch":!0},id:b,onKeyDown:this.handleHeaderLabelKeyDown,tabIndex:0},o,t("calcite-switch",{"aria-labelledby":b,switched:l,onCalciteSwitchChange:this.toggleSection,scale:"s",tabIndex:-1})):t("calcite-action",{"aria-label":g,class:"toggle",onClick:this.toggleSection,text:o,textEnabled:!0,compact:!0,icon:d});return t("section",{"aria-expanded":l.toString(),class:{[r.rtl]:"rtl"===s}},f,t("div",{class:"content",hidden:!l},t("slot",null)))}get el(){return c(this)}};d.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host(:last-child){border-bottom:none}.toggle--switch{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:var(--calcite-app-cap-spacing-quarter) 0;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{pointer-events:none;margin:0 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{s as calcite_block,d as calcite_block_section} \ No newline at end of file diff --git a/docs/build/p-4c75be95.entry.js b/docs/build/p-9f66fed4.entry.js similarity index 99% rename from docs/build/p-4c75be95.entry.js rename to docs/build/p-9f66fed4.entry.js index f1501c72..17ff98f9 100644 --- a/docs/build/p-4c75be95.entry.js +++ b/docs/build/p-9f66fed4.entry.js @@ -1 +1 @@ -import{r as a,c as e,h as t,H as i,g as c}from"./p-75b1a4f0.js";import{a as o}from"./p-27f3f0d7.js";import{I as r}from"./p-c55f1634.js";import{T as n,C as s,S as l,I as p}from"./p-78a4c1a4.js";const d=class{constructor(t){a(this,t),this.calciteListItemChange=e(this,"calciteListItemChange",7),this.calciteListItemRemove=e(this,"calciteListItemRemove",7),this.calciteListItemPropsChange=e(this,"calciteListItemPropsChange",7),this.calciteListItemValueChange=e(this,"calciteListItemValueChange",7),this.disabled=!1,this.disableDeselect=!1,this.icon=null,this.removable=!1,this.selected=!1,this.textRemove=n.remove,this.pickListClickHandler=a=>{this.disabled||this.disableDeselect&&this.selected||(this.shiftPressed=a.shiftKey,this.selected=!this.selected)},this.pickListKeyDownHandler=a=>{if(" "===a.key){if(a.preventDefault(),this.disableDeselect&&this.selected)return;this.selected=!this.selected}},this.removeClickHandler=()=>{this.calciteListItemRemove.emit()}}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(a,e){this.calciteListItemValueChange.emit({oldValue:e,newValue:a})}async toggleSelected(a){this.disabled||(this.selected="boolean"==typeof a?a:!this.selected)}async setFocus(){var a;null===(a=this.focusEl)||void 0===a||a.focus()}renderIcon(){const{icon:a}=this;return a?t("span",{class:s.icon},t("calcite-icon",{scale:"s",icon:a===r.circle?p.circle:p.checked})):null}renderRemoveAction(){return this.removable?t("calcite-action",{scale:"s",class:s.remove,icon:p.remove,text:this.textRemove,onClick:this.removeClickHandler}):null}renderSecondaryAction(){return o(this.el,l.secondaryAction)||this.removable?t("div",{class:s.action},t("slot",{name:l.secondaryAction},this.renderRemoveAction())):null}render(){const a=this.textDescription?t("span",{class:s.description},this.textDescription):null;return t(i,{role:"menuitemcheckbox","aria-checked":this.selected.toString()},t("label",{class:s.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,tabIndex:0,ref:a=>this.focusEl=a,"aria-label":this.textLabel},this.renderIcon(),t("div",{class:s.textContainer},t("span",{class:s.title},this.textLabel),a)),this.renderSecondaryAction())}get el(){return c(this)}static get watchers(){return{metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],textDescription:["textDescriptionWatchHandler"],textLabel:["textLabelWatchHandler"],value:["valueWatchHandler"]}}};d.style=":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;-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:#00619b;--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-quarter);-ms-flex-align:center;align-items:center;cursor:pointer;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.label:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}.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--1);word-wrap:break-word;word-break:break-word}.description{color:var(--calcite-app-foreground-subtle);font-family:var(--calcite-app-font-family-monospace);font-size:var(--calcite-app-font-size--2);margin-top:var(--calcite-app-cap-spacing-quarter);word-wrap:break-word;word-break:break-word}.action{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;justify-self:flex-end;margin:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-half)}";export{d as calcite_pick_list_item} \ No newline at end of file +import{r as a,c as e,h as t,H as i,g as c}from"./p-1b507203.js";import{a as o}from"./p-27f3f0d7.js";import{I as r}from"./p-c55f1634.js";import{T as n,C as s,S as l,I as p}from"./p-78a4c1a4.js";const d=class{constructor(t){a(this,t),this.calciteListItemChange=e(this,"calciteListItemChange",7),this.calciteListItemRemove=e(this,"calciteListItemRemove",7),this.calciteListItemPropsChange=e(this,"calciteListItemPropsChange",7),this.calciteListItemValueChange=e(this,"calciteListItemValueChange",7),this.disabled=!1,this.disableDeselect=!1,this.icon=null,this.removable=!1,this.selected=!1,this.textRemove=n.remove,this.pickListClickHandler=a=>{this.disabled||this.disableDeselect&&this.selected||(this.shiftPressed=a.shiftKey,this.selected=!this.selected)},this.pickListKeyDownHandler=a=>{if(" "===a.key){if(a.preventDefault(),this.disableDeselect&&this.selected)return;this.selected=!this.selected}},this.removeClickHandler=()=>{this.calciteListItemRemove.emit()}}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(a,e){this.calciteListItemValueChange.emit({oldValue:e,newValue:a})}async toggleSelected(a){this.disabled||(this.selected="boolean"==typeof a?a:!this.selected)}async setFocus(){var a;null===(a=this.focusEl)||void 0===a||a.focus()}renderIcon(){const{icon:a}=this;return a?t("span",{class:s.icon},t("calcite-icon",{scale:"s",icon:a===r.circle?p.circle:p.checked})):null}renderRemoveAction(){return this.removable?t("calcite-action",{scale:"s",class:s.remove,icon:p.remove,text:this.textRemove,onClick:this.removeClickHandler}):null}renderSecondaryAction(){return o(this.el,l.secondaryAction)||this.removable?t("div",{class:s.action},t("slot",{name:l.secondaryAction},this.renderRemoveAction())):null}render(){const a=this.textDescription?t("span",{class:s.description},this.textDescription):null;return t(i,{role:"menuitemcheckbox","aria-checked":this.selected.toString()},t("label",{class:s.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,tabIndex:0,ref:a=>this.focusEl=a,"aria-label":this.textLabel},this.renderIcon(),t("div",{class:s.textContainer},t("span",{class:s.title},this.textLabel),a)),this.renderSecondaryAction())}get el(){return c(this)}static get watchers(){return{metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],textDescription:["textDescriptionWatchHandler"],textLabel:["textLabelWatchHandler"],value:["valueWatchHandler"]}}};d.style=":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;-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:#00619b;--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-quarter);-ms-flex-align:center;align-items:center;cursor:pointer;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.label:focus{outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}.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--1);word-wrap:break-word;word-break:break-word}.description{color:var(--calcite-app-foreground-subtle);font-family:var(--calcite-app-font-family-monospace);font-size:var(--calcite-app-font-size--2);margin-top:var(--calcite-app-cap-spacing-quarter);word-wrap:break-word;word-break:break-word}.action{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;justify-self:flex-end;margin:var(--calcite-app-cap-spacing-quarter) var(--calcite-app-side-spacing-half)}";export{d as calcite_pick_list_item} \ No newline at end of file diff --git a/docs/build/p-ac70cb3e.entry.js b/docs/build/p-a8d43763.entry.js similarity index 97% rename from docs/build/p-ac70cb3e.entry.js rename to docs/build/p-a8d43763.entry.js index b78d51c6..1fc02474 100644 --- a/docs/build/p-ac70cb3e.entry.js +++ b/docs/build/p-a8d43763.entry.js @@ -1 +1 @@ -import{r as a,c as t,h as e,H as c,g as i}from"./p-75b1a4f0.js";import{S as r}from"./p-14b00fa9.js";const s=class{constructor(e){a(this,e),this.calciteListOrderChange=t(this,"calciteListOrderChange",7),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()})}connectedCallback(){this.items=Array.from(this.el.children),this.setUpDragAndDrop(),this.beginObserving()}componentDidUnload(){this.observer.disconnect(),this.cleanUpDragAndDrop()}calciteHandleNudgeHandler(a){const t=this.items.find(t=>t.contains(a.detail.handle)||a.composedPath().includes(t)),e=this.items.length-1,c=this.items.indexOf(t);let i,r=!1;switch(a.detail.direction){case"up":a.preventDefault(),0===c?r=!0:i=c-1;break;case"down":a.preventDefault(),c===e?i=0:c===e-1?r=!0:i=c+2;break;default:return}this.observer.disconnect(),r?t.parentElement.appendChild(t):t.parentElement.insertBefore(t,this.items[i]),this.items=Array.from(this.el.children),a.detail.handle.activated=!0,a.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 e(c,null,e("slot",null))}get el(){return i(this)}};s.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}";export{s as calcite_sortable_list} \ No newline at end of file +import{r as a,c as t,h as e,H as c,g as i}from"./p-1b507203.js";import{S as r}from"./p-14b00fa9.js";const s=class{constructor(e){a(this,e),this.calciteListOrderChange=t(this,"calciteListOrderChange",7),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()})}connectedCallback(){this.items=Array.from(this.el.children),this.setUpDragAndDrop(),this.beginObserving()}componentDidUnload(){this.observer.disconnect(),this.cleanUpDragAndDrop()}calciteHandleNudgeHandler(a){const t=this.items.find(t=>t.contains(a.detail.handle)||a.composedPath().includes(t)),e=this.items.length-1,c=this.items.indexOf(t);let i,r=!1;switch(a.detail.direction){case"up":a.preventDefault(),0===c?r=!0:i=c-1;break;case"down":a.preventDefault(),c===e?i=0:c===e-1?r=!0:i=c+2;break;default:return}this.observer.disconnect(),r?t.parentElement.appendChild(t):t.parentElement.insertBefore(t,this.items[i]),this.items=Array.from(this.el.children),a.detail.handle.activated=!0,a.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 e(c,null,e("slot",null))}get el(){return i(this)}};s.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}";export{s as calcite_sortable_list} \ No newline at end of file diff --git a/docs/build/p-1d6850ae.entry.js b/docs/build/p-acd315a3.entry.js similarity index 99% rename from docs/build/p-1d6850ae.entry.js rename to docs/build/p-acd315a3.entry.js index b2e5c758..7ae2c515 100644 --- a/docs/build/p-1d6850ae.entry.js +++ b/docs/build/p-acd315a3.entry.js @@ -1 +1 @@ -import{r as a,f as t,h as e,H as i,g as o,c}from"./p-75b1a4f0.js";import{C as n}from"./p-eb15fcdb.js";import{b as r,a as l}from"./p-27f3f0d7.js";const p=class{constructor(e){a(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,this.observer=new MutationObserver(()=>t(this))}connectedCallback(){this.observer.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.observer.disconnect()}async setFocus(){this.buttonEl.focus()}renderTextContainer(){const{text:a,textEnabled:t}=this;return a?e("div",{key:"text-container",class:{"text-container":!0,"text-container--visible":t}},a):null}renderIconContainer(){var a;const{loading:t,icon:i,scale:o,el:c}=this,n="l"===o?"l":"m",r=t?e("calcite-loader",{"is-active":!0,inline:!0}):null,l=i?e("calcite-icon",{icon:i,scale:n}):null,p=r||l,s=p||(null===(a=c.children)||void 0===a?void 0:a.length),d=e("div",{class:{"slot-container":!0,"slot-container--hidden":t}},e("slot",null));return s?e("div",{key:"icon-container","aria-hidden":"true",class:"icon-container"},p,d):null}render(){const{compact:a,disabled:t,loading:o,el:c,textEnabled:l,label:p,text:s}=this,d=p||s,b="rtl"===r(c);return e(i,null,e("button",{class:{button:!0,"button--text-visible":l,"button--compact":a,[n.rtl]:b},"aria-label":d,disabled:t,"aria-disabled":t.toString(),"aria-busy":o.toString(),ref:a=>this.buttonEl=a},this.renderIconContainer(),this.renderTextContainer()))}get el(){return o(this)}};p.style=':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([disabled]){pointer-events:none}: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:#00619b;--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;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.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:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}.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: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;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:0;padding-right:0}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}.button--text-visible .icon-container{margin:0 var(--calcite-app-side-spacing-half) 0 0}.button--text-visible .text-container--visible{margin:0 var(--calcite-app-side-spacing-half) 0 0}.button--text-visible.calcite--rtl .icon-container{margin:0 0 0 var(--calcite-app-side-spacing-half)}.button--text-visible.calcite--rtl .text-container--visible{margin:0 0 0 var(--calcite-app-side-spacing-half)}: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 s({parent:a,expanded:t}){a.querySelectorAll("calcite-action").forEach(a=>a.textEnabled=t)}const d=({expanded:a,intlExpand:t,intlCollapse:i,toggleExpand:o,el:c,position:n,tooltipExpand:l})=>{const p="rtl"===r(c),s=a?i:t,d=["chevrons-left","chevrons-right"];p&&d.reverse();const b="end"===function(a,t){var e;return a||(null===(e=t.closest("calcite-shell-panel"))||void 0===e?void 0:e.position)||"start"}(n,c),u=e("calcite-action",{ref:t=>((a,t,e)=>(a&&(a.referenceElement=!e&&t),t))(l,t,a),onClick:o,textEnabled:a,text:s,icon:a?b?d[1]:d[0]:b?d[0]:d[1]});return l?e("calcite-tooltip-manager",null,u):u},b=class{constructor(t){a(this,t),this.calciteActionBarToggle=c(this,"calciteActionBarToggle",7),this.expand=!0,this.expanded=!1,this.observer=new MutationObserver(()=>{const{el:a,expanded:t}=this;s({parent:a,expanded:t})}),this.toggleExpand=()=>{this.expanded=!this.expanded}}expandHandler(a){a&&s({parent:this.el,expanded:this.expanded})}expandedHandler(a){this.expand&&s({parent:this.el,expanded:a}),this.calciteActionBarToggle.emit()}componentWillLoad(){const{el:a,expand:t,expanded:e}=this;t&&s({parent:a,expanded:e}),this.observer.observe(a,{childList:!0})}componentDidUnload(){this.observer.disconnect()}renderBottomActionGroup(){const{expanded:a,expand:t,intlExpand:i,intlCollapse:o,el:c,position:n,toggleExpand:r,tooltipExpand:p}=this,s=t?e(d,{expanded:a,intlExpand:i||"Expand",intlCollapse:o||"Collapse",el:c,position:n,toggleExpand:r,tooltipExpand:p}):null;return l(c,"bottom-actions")||s?e("calcite-action-group",{class:"action-group--bottom"},e("slot",{name:"bottom-actions"}),s):null}render(){return e(i,null,e("slot",null),this.renderBottomActionGroup())}get el(){return o(this)}static get watchers(){return{expand:["expandHandler"],expanded:["expandedHandler"]}}};b.style=":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:#00619b;--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}";const u=class{constructor(t){a(this,t)}render(){return e(i,null,e("slot",null))}};u.style=":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: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:#00619b;--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%}";const f=class{constructor(t){a(this,t),this.calciteActionPadToggle=c(this,"calciteActionPadToggle",7),this.layout="vertical",this.expand=!0,this.expanded=!1,this.toggleExpand=()=>{this.expanded=!this.expanded}}expandHandler(a){a&&s({parent:this.el,expanded:this.expanded})}expandedHandler(a){this.expand&&s({parent:this.el,expanded:a}),this.calciteActionPadToggle.emit()}componentWillLoad(){const{el:a,expand:t,expanded:e}=this;t&&s({parent:a,expanded:e})}renderBottomActionGroup(){const{expanded:a,expand:t,intlExpand:i,intlCollapse:o,el:c,position:n,toggleExpand:r,tooltipExpand:l}=this,p=t?e(d,{expanded:a,intlExpand:i||"Expand",intlCollapse:o||"Collapse",el:c,position:n,toggleExpand:r,tooltipExpand:l}):null;return p?e("calcite-action-group",{class:"action-group--bottom"},p):null}render(){const a="rtl"===r(this.el);return e(i,null,e("div",{class:{container:!0,[n.rtl]:a}},e("slot",null),this.renderBottomActionGroup()))}get el(){return o(this)}static get watchers(){return{expand:["expandHandler"],expanded:["expandedHandler"]}}};f.style=":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-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:#00619b;--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}.container{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}.action-group--bottom{padding-bottom:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end}:host([layout=horizontal]) .container{-ms-flex-direction:row;flex-direction:row;max-width:unset}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-right:1px solid var(--calcite-app-border);border-bottom:none;-ms-flex-direction:row;flex-direction:row;padding:0}:host([layout=horizontal]) .container.calcite--rtl ::slotted(calcite-action-group){border-right:none;border-left:1px solid var(--calcite-app-border)}::slotted(calcite-action-group:last-child){border-bottom:none}";export{p as calcite_action,b as calcite_action_bar,u as calcite_action_group,f as calcite_action_pad} \ No newline at end of file +import{r as a,f as t,h as e,H as i,g as o,c}from"./p-1b507203.js";import{C as n}from"./p-eb15fcdb.js";import{b as r,a as l}from"./p-27f3f0d7.js";const p=class{constructor(e){a(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,this.observer=new MutationObserver(()=>t(this))}connectedCallback(){this.observer.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.observer.disconnect()}async setFocus(){this.buttonEl.focus()}renderTextContainer(){const{text:a,textEnabled:t}=this;return a?e("div",{key:"text-container",class:{"text-container":!0,"text-container--visible":t}},a):null}renderIconContainer(){var a;const{loading:t,icon:i,scale:o,el:c}=this,n="l"===o?"m":"s",r=t?e("calcite-loader",{"is-active":!0,inline:!0}):null,l=i?e("calcite-icon",{icon:i,scale:n}):null,p=r||l,s=p||(null===(a=c.children)||void 0===a?void 0:a.length),d=e("div",{class:{"slot-container":!0,"slot-container--hidden":t}},e("slot",null));return s?e("div",{key:"icon-container","aria-hidden":"true",class:"icon-container"},p,d):null}render(){const{compact:a,disabled:t,loading:o,el:c,textEnabled:l,label:p,text:s}=this,d=p||s,b="rtl"===r(c);return e(i,null,e("button",{class:{button:!0,"button--text-visible":l,"button--compact":a,[n.rtl]:b},"aria-label":d,disabled:t,"aria-disabled":t.toString(),"aria-busy":o.toString(),ref:a=>this.buttonEl=a},this.renderIconContainer(),this.renderTextContainer()))}get el(){return o(this)}};p.style=':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([disabled]){pointer-events:none}: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:#00619b;--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;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.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:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}.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: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;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:0;padding-right:0}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}.button--text-visible .icon-container{margin:0 var(--calcite-app-side-spacing-half) 0 0}.button--text-visible .text-container--visible{margin:0 var(--calcite-app-side-spacing-half) 0 0}.button--text-visible.calcite--rtl .icon-container{margin:0 0 0 var(--calcite-app-side-spacing-half)}.button--text-visible.calcite--rtl .text-container--visible{margin:0 0 0 var(--calcite-app-side-spacing-half)}: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 s({parent:a,expanded:t}){a.querySelectorAll("calcite-action").forEach(a=>a.textEnabled=t)}const d=({expanded:a,intlExpand:t,intlCollapse:i,toggleExpand:o,el:c,position:n,tooltipExpand:l})=>{const p="rtl"===r(c),s=a?i:t,d=["chevrons-left","chevrons-right"];p&&d.reverse();const b="end"===function(a,t){var e;return a||(null===(e=t.closest("calcite-shell-panel"))||void 0===e?void 0:e.position)||"start"}(n,c),u=e("calcite-action",{ref:t=>((a,t,e)=>(a&&(a.referenceElement=!e&&t),t))(l,t,a),onClick:o,textEnabled:a,text:s,icon:a?b?d[1]:d[0]:b?d[0]:d[1]});return l?e("calcite-tooltip-manager",null,u):u},b=class{constructor(t){a(this,t),this.calciteActionBarToggle=c(this,"calciteActionBarToggle",7),this.expand=!0,this.expanded=!1,this.observer=new MutationObserver(()=>{const{el:a,expanded:t}=this;s({parent:a,expanded:t})}),this.toggleExpand=()=>{this.expanded=!this.expanded}}expandHandler(a){a&&s({parent:this.el,expanded:this.expanded})}expandedHandler(a){this.expand&&s({parent:this.el,expanded:a}),this.calciteActionBarToggle.emit()}componentWillLoad(){const{el:a,expand:t,expanded:e}=this;t&&s({parent:a,expanded:e}),this.observer.observe(a,{childList:!0})}componentDidUnload(){this.observer.disconnect()}renderBottomActionGroup(){const{expanded:a,expand:t,intlExpand:i,intlCollapse:o,el:c,position:n,toggleExpand:r,tooltipExpand:p}=this,s=t?e(d,{expanded:a,intlExpand:i||"Expand",intlCollapse:o||"Collapse",el:c,position:n,toggleExpand:r,tooltipExpand:p}):null;return l(c,"bottom-actions")||s?e("calcite-action-group",{class:"action-group--bottom"},e("slot",{name:"bottom-actions"}),s):null}render(){return e(i,null,e("slot",null),this.renderBottomActionGroup())}get el(){return o(this)}static get watchers(){return{expand:["expandHandler"],expanded:["expandedHandler"]}}};b.style=":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:#00619b;--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}";const u=class{constructor(t){a(this,t)}render(){return e(i,null,e("slot",null))}};u.style=":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: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:#00619b;--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%}";const f=class{constructor(t){a(this,t),this.calciteActionPadToggle=c(this,"calciteActionPadToggle",7),this.layout="vertical",this.expand=!0,this.expanded=!1,this.toggleExpand=()=>{this.expanded=!this.expanded}}expandHandler(a){a&&s({parent:this.el,expanded:this.expanded})}expandedHandler(a){this.expand&&s({parent:this.el,expanded:a}),this.calciteActionPadToggle.emit()}componentWillLoad(){const{el:a,expand:t,expanded:e}=this;t&&s({parent:a,expanded:e})}renderBottomActionGroup(){const{expanded:a,expand:t,intlExpand:i,intlCollapse:o,el:c,position:n,toggleExpand:r,tooltipExpand:l}=this,p=t?e(d,{expanded:a,intlExpand:i||"Expand",intlCollapse:o||"Collapse",el:c,position:n,toggleExpand:r,tooltipExpand:l}):null;return p?e("calcite-action-group",{class:"action-group--bottom"},p):null}render(){const a="rtl"===r(this.el);return e(i,null,e("div",{class:{container:!0,[n.rtl]:a}},e("slot",null),this.renderBottomActionGroup()))}get el(){return o(this)}static get watchers(){return{expand:["expandHandler"],expanded:["expandedHandler"]}}};f.style=":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-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:#00619b;--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}.container{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}.action-group--bottom{padding-bottom:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end}:host([layout=horizontal]) .container{-ms-flex-direction:row;flex-direction:row;max-width:unset}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group){border-right:1px solid var(--calcite-app-border);border-bottom:none;-ms-flex-direction:row;flex-direction:row;padding:0}:host([layout=horizontal]) .container.calcite--rtl ::slotted(calcite-action-group){border-right:none;border-left:1px solid var(--calcite-app-border)}::slotted(calcite-action-group:last-child){border-bottom:none}";export{p as calcite_action,b as calcite_action_bar,u as calcite_action_group,f as calcite_action_pad} \ No newline at end of file diff --git a/docs/build/p-da7d5cb7.system.js b/docs/build/p-af0d7947.system.js similarity index 100% rename from docs/build/p-da7d5cb7.system.js rename to docs/build/p-af0d7947.system.js diff --git a/docs/build/p-8a8e6e98.system.entry.js b/docs/build/p-b2edaf5c.system.entry.js similarity index 98% rename from docs/build/p-8a8e6e98.system.entry.js rename to docs/build/p-b2edaf5c.system.entry.js index 85e9c760..f02c153a 100644 --- a/docs/build/p-8a8e6e98.system.entry.js +++ b/docs/build/p-b2edaf5c.system.entry.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js","./p-c74e42b7.system.js"],(function(e){"use strict";var t,r,a,i,n,c;return{setters:[function(e){t=e.r;r=e.c;a=e.h;i=e.H;n=e.g},function(e){c=e.S}],execute:function(){var o=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}";var s=e("calcite_sortable_list",function(){function e(e){var a=this;t(this,e);this.calciteListOrderChange=r(this,"calciteListOrderChange",7);this.handleSelector="calcite-handle";this.disabled=false;this.loading=false;this.handleActivated=false;this.items=[];this.observer=new MutationObserver((function(){a.cleanUpDragAndDrop();a.items=Array.from(a.el.children);a.setUpDragAndDrop()}))}e.prototype.connectedCallback=function(){this.items=Array.from(this.el.children);this.setUpDragAndDrop();this.beginObserving()};e.prototype.componentDidUnload=function(){this.observer.disconnect();this.cleanUpDragAndDrop()};e.prototype.calciteHandleNudgeHandler=function(e){var t=this.items.find((function(t){return t.contains(e.detail.handle)||e.composedPath().includes(t)}));var r=this.items.length-1;var a=this.items.indexOf(t);var i=false;var n;switch(e.detail.direction){case"up":e.preventDefault();if(a===0){i=true}else{n=a-1}break;case"down":e.preventDefault();if(a===r){n=0}else if(a===r-1){i=true}else{n=a+2}break;default:return}this.observer.disconnect();if(i){t.parentElement.appendChild(t)}else{t.parentElement.insertBefore(t,this.items[n])}this.items=Array.from(this.el.children);e.detail.handle.activated=true;e.detail.handle.setFocus();this.beginObserving()};e.prototype.setUpDragAndDrop=function(){var e=this;this.sortable=c.create(this.el,{handle:this.handleSelector,onUpdate:function(){e.items=Array.from(e.el.children);e.calciteListOrderChange.emit()},onStart:function(){e.observer.disconnect()},onEnd:function(){e.beginObserving()}})};e.prototype.cleanUpDragAndDrop=function(){this.sortable.destroy();this.sortable=null};e.prototype.beginObserving=function(){this.observer.observe(this.el,{childList:true,subtree:true})};e.prototype.render=function(){return a(i,null,a("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());s.style=o}}})); \ No newline at end of file +System.register(["./p-02f9b874.system.js","./p-c74e42b7.system.js"],(function(e){"use strict";var t,r,a,i,n,c;return{setters:[function(e){t=e.r;r=e.c;a=e.h;i=e.H;n=e.g},function(e){c=e.S}],execute:function(){var o=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}";var s=e("calcite_sortable_list",function(){function e(e){var a=this;t(this,e);this.calciteListOrderChange=r(this,"calciteListOrderChange",7);this.handleSelector="calcite-handle";this.disabled=false;this.loading=false;this.handleActivated=false;this.items=[];this.observer=new MutationObserver((function(){a.cleanUpDragAndDrop();a.items=Array.from(a.el.children);a.setUpDragAndDrop()}))}e.prototype.connectedCallback=function(){this.items=Array.from(this.el.children);this.setUpDragAndDrop();this.beginObserving()};e.prototype.componentDidUnload=function(){this.observer.disconnect();this.cleanUpDragAndDrop()};e.prototype.calciteHandleNudgeHandler=function(e){var t=this.items.find((function(t){return t.contains(e.detail.handle)||e.composedPath().includes(t)}));var r=this.items.length-1;var a=this.items.indexOf(t);var i=false;var n;switch(e.detail.direction){case"up":e.preventDefault();if(a===0){i=true}else{n=a-1}break;case"down":e.preventDefault();if(a===r){n=0}else if(a===r-1){i=true}else{n=a+2}break;default:return}this.observer.disconnect();if(i){t.parentElement.appendChild(t)}else{t.parentElement.insertBefore(t,this.items[n])}this.items=Array.from(this.el.children);e.detail.handle.activated=true;e.detail.handle.setFocus();this.beginObserving()};e.prototype.setUpDragAndDrop=function(){var e=this;this.sortable=c.create(this.el,{handle:this.handleSelector,onUpdate:function(){e.items=Array.from(e.el.children);e.calciteListOrderChange.emit()},onStart:function(){e.observer.disconnect()},onEnd:function(){e.beginObserving()}})};e.prototype.cleanUpDragAndDrop=function(){this.sortable.destroy();this.sortable=null};e.prototype.beginObserving=function(){this.observer.observe(this.el,{childList:true,subtree:true})};e.prototype.render=function(){return a(i,null,a("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());s.style=o}}})); \ No newline at end of file diff --git a/docs/build/p-4ed70255.system.js b/docs/build/p-b9d8d969.system.js similarity index 98% rename from docs/build/p-4ed70255.system.js rename to docs/build/p-b9d8d969.system.js index b809a21d..63b59c70 100644 --- a/docs/build/p-4ed70255.system.js +++ b/docs/build/p-b9d8d969.system.js @@ -1 +1 @@ -System.register(["./p-04111149.system.js","./p-598b7fa2.system.js","./p-83545f41.system.js","./p-141eda4d.system.js","./p-597da005.system.js"],(function(e){"use strict";var t,i,r,n,s,a,l,u,c;return{setters:[function(e){t=e.h;i=e.H},function(e){r=e.f;n=e.a;s=e.b;a=e.g},function(e){l=e.g},function(e){u=e.C},function(e){c=e.d}],execute:function(){e({a:h,b:m,c:v,d:O,e:p,f:j,g:F,h:w,i:d,j:x,k:g,m:f,s:I});function f(){this.setUpItems();this.setUpFilter()}var o=["ArrowUp","ArrowDown"];function d(){this.setUpItems();this.setUpFilter();this.emitCalciteListChange=c(y.bind(this),0)}function h(){this.observer.observe(this.el,{childList:true,subtree:true})}function v(){this.observer.disconnect()}function m(e){var t=this.selectedValues;var i=e.detail,r=i.item,n=i.value,s=i.selected,a=i.shiftPressed;if(s){if(!this.multiple){this.deselectSiblingItems(r)}if(this.multiple&&a){this.selectSiblings(r)}t.set(n,r)}else{t.delete(n);if(this.multiple&&a){this.selectSiblings(r,true)}}if(!this.multiple){S(r,s)}this.lastSelectedItem=r;this.emitCalciteListChange()}function p(e){e.stopPropagation();var t=e.detail.oldValue;var i=this.selectedValues;if(i.has(t)){var r=i.get(t);i.delete(t);i.set(e.detail.newValue,r)}}function b(e){return!!o.find((function(t){return t===e}))}function g(e){var t=e.key,i=e.target;if(!b(t)){return}var n=this,s=n.items,a=n.multiple;var u=s.length;var c=s.indexOf(i);if(!u||c===-1){return}e.preventDefault();var f=l(c+(t==="ArrowUp"?-1:1),u);var o=s[f];S(o,true);r(o);if(!a){o.selected=true}}function y(){this.calciteListChange.emit(this.selectedValues)}function S(e,t){if(t){e.removeAttribute("tabindex")}else{e.setAttribute("tabindex","-1")}}function x(){var e=this,t=e.multiple,i=e.items;if(i.length===0){return}if(t){return i[0].setFocus()}var r=i.find((function(e){return e.selected}));return(r?r:i[0]).setFocus()}function j(e){var t=this;this.items=Array.from(this.el.querySelectorAll(e));var i=false;var r=this.items;r.forEach((function(e){e.icon=t.getIconType();if(!t.multiple){e.disableDeselect=true;S(e,false)}if(e.selected){i=true;S(e,true);t.selectedValues.set(e.value,e)}}));var n=r[0];if(!i&&n){S(n,true)}}function O(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)}}}))}function I(e,t){var i=this;if(t===void 0){t=false}if(!this.lastSelectedItem){return}var r=this.items;var n=r.findIndex((function(e){return e.value===i.lastSelectedItem.value}));var s=r.findIndex((function(t){return t.value===e.value}));r.slice(Math.min(n,s),Math.max(n,s)).forEach((function(e){e.toggleSelected(!t);if(!t){i.selectedValues.set(e.value,e)}else{i.selectedValues.delete(e.value)}}))}var V;function w(e){var t=e.detail;var i=t.map((function(e){return e.value}));if(!V){V=new Set}var r=this.items.filter((function(e){var t=e.parentElement;var r=t.matches("calcite-pick-list-group");if(r){V.add(t)}var n=i.includes(e.value);e.hidden=!n;return n}));V.forEach((function(e){var t=r.some((function(t){return e.contains(t)}));e.hidden=!t;if(!t){return}var i=n(e,"parent-item");if(i){i.hidden=false;if(r.includes(i)){Array.from(e.children).forEach((function(e){return e.hidden=false}))}}}));V.clear()}function F(){return this.items.map((function(e){return{label:e.textLabel,description:e.textDescription,metadata:e.metadata,value:e.value}}))}var A=undefined&&undefined.__rest||function(e,t){var i={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)i[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n0&&c[c.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!c||o[1]>c[0]&&o[1]0&&c[c.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!c||o[1]>c[0]&&o[1]0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]0&&n[n.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]0&&n[n.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]{switch(a.key){case" ":this.activated=!this.activated;break;case"ArrowUp":case"ArrowDown":if(!this.activated)return;const e=a.key.toLowerCase().replace("arrow","");this.calciteHandleNudge.emit({handle:this.el,direction:e})}},this.handleBlur=()=>{this.activated=!1}}async setFocus(){this.handleButton.focus()}render(){return t("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:a=>{this.handleButton=a}},t("calcite-icon",{scale:"s",icon:"drag"}))}get el(){return c(this)}};r.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host{display:-ms-flexbox;display:flex}.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;padding:var(--calcite-app-cap-spacing-three-quarters) var(--calcite-app-side-spacing-quarter);background-color:var(--calcite-app-background);background-color:transparent;border:none;color:var(--calcite-app-border);line-height:0;cursor:move;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.handle:hover{background-color:var(--calcite-app-background-hover);color:var(--calcite-app-foreground)}.handle:focus{color:var(--calcite-app-foreground);outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}.handle--activated{background-color:var(--calcite-app-background-active);color:var(--calcite-app-foreground-active)}";export{r as calcite_handle} \ No newline at end of file +import{r as a,c as e,h as t,g as c}from"./p-1b507203.js";const r=class{constructor(t){a(this,t),this.calciteHandleNudge=e(this,"calciteHandleNudge",7),this.activated=!1,this.textTitle="handle",this.handleKeyDown=a=>{switch(a.key){case" ":this.activated=!this.activated;break;case"ArrowUp":case"ArrowDown":if(!this.activated)return;const e=a.key.toLowerCase().replace("arrow","");this.calciteHandleNudge.emit({handle:this.el,direction:e})}},this.handleBlur=()=>{this.activated=!1}}async setFocus(){this.handleButton.focus()}render(){return t("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:a=>{this.handleButton=a}},t("calcite-icon",{scale:"s",icon:"drag"}))}get el(){return c(this)}};r.style=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}:host{display:-ms-flexbox;display:flex}.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;padding:var(--calcite-app-cap-spacing-three-quarters) var(--calcite-app-side-spacing-quarter);background-color:var(--calcite-app-background);background-color:transparent;border:none;color:var(--calcite-app-border);line-height:0;cursor:move;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out;transition:outline-offset var(--calcite-app-animation-time-fast) ease-in-out, outline-color var(--calcite-app-animation-time-fast) ease-in-out}.handle:hover{background-color:var(--calcite-app-background-hover);color:var(--calcite-app-foreground)}.handle:focus{color:var(--calcite-app-foreground);outline:2px solid var(--calcite-ui-blue-1);outline-offset:-2px}.handle--activated{background-color:var(--calcite-app-background-active);color:var(--calcite-app-foreground-active)}";export{r as calcite_handle} \ No newline at end of file diff --git a/docs/build/p-d65faa31.entry.js b/docs/build/p-d65faa31.entry.js deleted file mode 100644 index f991a7aa..00000000 --- a/docs/build/p-d65faa31.entry.js +++ /dev/null @@ -1 +0,0 @@ -import{r as a,h as e,H as c,g as t}from"./p-75b1a4f0.js";import{f as o,b as r}from"./p-27f3f0d7.js";const i=class{constructor(e){a(this,e),this.appearance="outline",this.color="light",this.disabled=!1,this.icon="plus",this.loading=!1,this.scale="s",this.textEnabled=!1}async setFocus(){o(this.buttonEl)}render(){const{appearance:a,color:t,disabled:o,el:i,loading:p,scale:l,theme:b,textEnabled:n,icon:s,label:d,text:f}=this,h=d||!n&&f,u=r(i);return e(c,null,e("calcite-button",{class:"button",loading:p,disabled:o,title:h,"aria-label":d,theme:b,dir:u,scale:l,icon:s,round:!0,width:"auto",appearance:a,color:t,ref:a=>{this.buttonEl=a}},this.textEnabled?this.text:null))}get el(){return t(this)}};i.style=":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-transparent)}calcite-button{-webkit-box-shadow:var(--calcite-app-shadow-1);box-shadow:var(--calcite-app-shadow-1)}: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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}";export{i as calcite_fab} \ No newline at end of file diff --git a/docs/build/p-d6b108d1.entry.js b/docs/build/p-d6b108d1.entry.js deleted file mode 100644 index 1df9ca97..00000000 --- a/docs/build/p-d6b108d1.entry.js +++ /dev/null @@ -1 +0,0 @@ -import{r as a,h as e,g as t,H as i}from"./p-75b1a4f0.js";import{C as c}from"./p-eb15fcdb.js";import{b as r,a as o}from"./p-27f3f0d7.js";const l=class{constructor(e){a(this,e),this.detached=!1,this.heightScale="s",this.position="end"}render(){const{el:a}=this,t="rtl"===r(a),l=e("div",{class:{content:!0,[c.rtl]:t}},e("slot",null)),p=o(a,"action-bar"),n=[p?e("div",{class:{"action-bar-container":!0,[c.rtl]:t}},e("slot",{name:"action-bar"})):null,l];return"end"===p.position&&n.reverse(),e(i,null,n)}get el(){return t(this)}};l.style=":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;overflow:hidden;-webkit-transition:height var(--calcite-app-animation-time) ease-in-out;transition:height var(--calcite-app-animation-time) ease-in-out;background-color:var(--calcite-app-background-clear);border-left:1px solid var(--calcite-app-border);border-right:1px solid var(--calcite-app-border);--calcite-app-shell-center-row-height-small:33%;--calcite-app-shell-center-row-height-medium:70%;--calcite-app-shell-center-row-height-large: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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.content{display:-ms-flexbox;display:flex;-ms-flex:1 0 0px;flex:1 0 0;height:100%;margin:0;overflow:hidden;width:100%}.action-bar-container{display:-ms-flexbox;display:flex}:host([detached]){-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:none;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) var(--calcite-app-cap-spacing-plus-half)}:host([position=end]){-ms-flex-item-align:end;align-self:flex-end}:host([position=start]){-ms-flex-item-align:start;align-self:flex-start}:host([height-scale=s]){height:var(--calcite-app-shell-center-row-height-small)}:host([height-scale=m]){height:var(--calcite-app-shell-center-row-height-medium)}:host([height-scale=l]){height:var(--calcite-app-shell-center-row-height-large)}:host([height-scale=l][detached]){height:calc(var(--calcite-app-shell-center-row-height-large) - var(--calcite-app-cap-spacing-double))}::slotted(calcite-panel){width:100%;height:100%}::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}::slotted(calcite-action-bar[position=end]){border-right:none;border-left:1px solid var(--calcite-app-border)}.calcite--rtl ::slotted(calcite-action-bar){border-right:none;border-left:1px solid var(--calcite-app-border)}.calcite--rtl ::slotted(calcite-action-bar[position=end]){border-left:none;border-right:1px solid var(--calcite-app-border)}";export{l as calcite_shell_center_row} \ No newline at end of file diff --git a/docs/build/p-f9ffcb52.system.entry.js b/docs/build/p-d927ba94.system.entry.js similarity index 99% rename from docs/build/p-f9ffcb52.system.entry.js rename to docs/build/p-d927ba94.system.entry.js index f8857c5d..56b506de 100644 --- a/docs/build/p-f9ffcb52.system.entry.js +++ b/docs/build/p-d927ba94.system.entry.js @@ -1 +1 @@ -var __awaiter=this&&this.__awaiter||function(e,t,a,n){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function o(e){try{l(n.next(e))}catch(t){r(t)}}function c(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?a(e.value):i(e.value).then(o,c)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]1;var n=e&&t>1;if(!n&&!a){return null}return t1;e.hidden=e!==r}))}if(o){o.menuOpen=false}a.flows=t;if(n!==i){var c=a.getFlowDirection(n,i);a.flowCount=i;a.flowDirection=c}};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(a){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.connectedCallback=function(){this.flowItemObserver.observe(this.el,{childList:true,subtree:true});this.updateFlowProps()};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,r=t.flowCount;var o=(e={},e[f.frame]=true,e[f.frameAdvancing]=i==="advancing",e[f.frameRetreating]=i==="retreating",e);return a(n,null,a("div",{key:r,class:o},a("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());h.style=u;var b={header:"header-content",heading:"heading",summary:"summary",backButton:"back-button",footerActions:"footer-actions",headerActions:"header-actions",leadingActions:"leading-actions",singleActionContainer:"single-action-container",menuContainer:"menu-container",menuButton:"menu-button",menu:"menu",menuOpen:"menu--open",fabContainer:"fab-container"};var g={leadingActions:"leading-actions",menuActions:"menu-actions",fab:"fab",footerActions:"footer-actions"};var m={menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"};var v={back:"Back",open:"Open",close:"Close"};var y={container:"container",header:"header",headerLeadingContent:"header-leading-content",headerContent:"header-content",headerTrailingContent:"header-trailing-content",contentContainer:"content-container",fabContainer:"fab-container",slotContainer:"slot-container",footer:"footer"};var x={close:"x"};var w={headerContent:"header-content",headerLeadingContent:"header-leading-content",headerTrailingContent:"header-trailing-content",fab:"fab",footer:"footer"};var k={close:"Close"};var C=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-panel{width:100%;height:100%}.leading-actions{display:-ms-flexbox;display:flex}.header-content{display:block}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.header-content .heading{font-size:var(--calcite-app-font-size-1);font-weight:var(--calcite-app-font-weight-demi);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);font-size:var(--calcite-app-font-size--1)}.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,.single-action-container{display:-ms-flexbox;display:flex}.menu{min-width:var(--calcite-app-menu-min-width);-ms-flex-flow:column nowrap;flex-flow:column nowrap}.footer-actions{display:-ms-flexbox;display:flex;width:100%}.fab-container{display:inline-block}";var A=["ArrowUp","ArrowDown"];var z=e("calcite_flow_item",function(){function e(e){var a=this;t(this,e);this.calciteFlowItemBackClick=r(this,"calciteFlowItemBackClick",7);this.calciteFlowItemScroll=r(this,"calciteFlowItemScroll",7);this.disabled=false;this.loading=false;this.menuOpen=false;this.showBackButton=false;this.toggleMenuOpen=function(){a.menuOpen=!a.menuOpen};this.backButtonClick=function(){a.calciteFlowItemBackClick.emit()};this.menuButtonKeyDown=function(e){var t=e.key;var n=a.menuOpen;if(!a.isValidKey(t,A)){return}var i=a.queryActions();var r=i.length;if(!r){return}e.preventDefault();if(!n){a.menuOpen=true}if(t==="ArrowUp"){var o=i[r-1];c(o)}if(t==="ArrowDown"){var l=i[0];c(l)}};this.menuActionsKeydown=function(e){var t=e.key,n=e.target;if(!a.isValidKey(t,A)){return}var i=a.queryActions();var r=i.length;var o=i.indexOf(n);if(!r||o===-1){return}e.preventDefault();if(t==="ArrowUp"){var l=d(o-1,r);var s=i[l];c(s)}if(t==="ArrowDown"){var l=d(o+1,r);var p=i[l];c(p)}};this.menuActionsContainerKeyDown=function(e){var t=e.key;if(t==="Escape"){a.menuOpen=false}}}e.prototype.handleCalcitePanelScroll=function(e){e.stopPropagation();this.calciteFlowItemScroll.emit()};e.prototype.queryActions=function(){return l(this.el,g.menuActions,{all:true})};e.prototype.isValidKey=function(e,t){return!!t.find((function(t){return t===e}))};e.prototype.renderBackButton=function(e){var t=this,n=t.showBackButton,i=t.intlBack,r=t.backButtonClick;var o=i||v.back;var c=e?m.backRight:m.backLeft;return n?a("calcite-action",{slot:w.headerLeadingContent,key:"back-button","aria-label":o,text:o,class:b.backButton,onClick:r,icon:c}):null};e.prototype.renderMenuButton=function(){var e=this;var t=this,n=t.menuOpen,i=t.intlOpen,r=t.intlClose;var o=r||v.close;var c=i||v.open;var l=n?o:c;return a("calcite-action",{class:b.menuButton,"aria-label":l,text:l,ref:function(t){return e.menuButtonEl=t},onClick:this.toggleMenuOpen,onKeyDown:this.menuButtonKeyDown,icon:m.menu})};e.prototype.renderMenuActions=function(){var e=this,t=e.el,n=e.menuOpen,i=e.menuButtonEl;return a("calcite-popover",{referenceElement:i,theme:s(t),open:n,offsetDistance:0,disablePointer:true,placement:"bottom-end",flipPlacements:["bottom-end","top-end"],onKeyDown:this.menuActionsKeydown},a("div",{class:b.menu},a("slot",{name:g.menuActions})))};e.prototype.renderFooterActions=function(){var e=!!l(this.el,g.footerActions);return e?a("div",{slot:w.footer,class:b.footerActions},a("slot",{name:g.footerActions})):null};e.prototype.renderSingleActionContainer=function(){return a("div",{class:b.singleActionContainer},a("slot",{name:g.menuActions}))};e.prototype.renderMenuActionsContainer=function(){return a("div",{class:b.menuContainer,onKeyDown:this.menuActionsContainerKeyDown},this.renderMenuButton(),this.renderMenuActions())};e.prototype.renderHeaderLeadingContent=function(){var e=l(this.el,g.leadingActions);return e?a("div",{slot:w.headerLeadingContent,class:b.leadingActions},a("slot",{name:g.leadingActions})):null};e.prototype.renderHeaderActions=function(){var e=l(this.el,g.menuActions,{all:true});var t=e.length;var n=t===1?this.renderSingleActionContainer():t?this.renderMenuActionsContainer():null;return n?a("div",{slot:w.headerTrailingContent,class:b.headerActions},n):null};e.prototype.renderHeading=function(){var e=this.heading;return e?a("h2",{class:b.heading,slot:w.headerContent},e):null};e.prototype.renderSummary=function(){var e=this.summary;return e?a("span",{class:b.summary},e):null};e.prototype.renderHeader=function(){var e=this.renderHeading();var t=this.renderSummary();return e||t?a("div",{class:b.header,slot:w.headerContent},e,t):null};e.prototype.renderFab=function(){var e=l(this.el,g.fab);return e?a("div",{class:b.fabContainer,slot:w.fab},a("slot",{name:g.fab})):null};e.prototype.render=function(){var e=this.el;var t=p(e);return a(n,null,a("calcite-panel",{loading:this.loading,disabled:this.disabled,theme:s(e),"height-scale":this.heightScale,dir:t},this.renderBackButton(t==="rtl"),this.renderHeaderLeadingContent(),this.renderHeader(),this.renderHeaderActions(),a("slot",null),this.renderFooterActions(),this.renderFab()))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());z.style=C;var B=":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:#00619b;--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)}.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}calcite-scrim{-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;pointer-events:none}: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:0 0 auto;flex:0 0 auto;-ms-flex-pack:start;justify-content:flex-start;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-trailing-content{margin-left:auto}.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}.fab-container{position:-webkit-sticky;position:sticky;z-index:1;bottom:0;display:inline-block;margin:0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);left:0;right:0}.slot-container{position:relative;z-index:0}";var H=e("calcite_panel",function(){function e(e){var a=this;t(this,e);this.calcitePanelDismissedChange=r(this,"calcitePanelDismissedChange",7);this.calcitePanelScroll=r(this,"calcitePanelScroll",7);this.dismissed=false;this.disabled=false;this.dismissible=false;this.loading=false;this.panelKeyUpHandler=function(e){if(e.key==="Escape"){a.dismiss()}};this.dismiss=function(){a.dismissed=true};this.panelScrollHandler=function(){a.calcitePanelScroll.emit()}}e.prototype.dismissedHandler=function(){this.calcitePanelDismissedChange.emit()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t,a;return __generator(this,(function(n){if(e==="dismiss-button"){(t=this.dismissButtonEl)===null||t===void 0?void 0:t.setFocus();return[2]}(a=this.containerEl)===null||a===void 0?void 0:a.focus();return[2]}))}))};e.prototype.renderHeaderLeadingContent=function(){var e=l(this.el,w.headerLeadingContent);return e?a("div",{key:"header-leading-content",class:y.headerLeadingContent},a("slot",{name:w.headerLeadingContent})):null};e.prototype.renderHeaderContent=function(){return a("div",{key:"header-content",class:y.headerContent},a("slot",{name:w.headerContent}))};e.prototype.renderHeaderTrailingContent=function(){var e=this;var t=this,n=t.dismiss,i=t.dismissible,r=t.intlClose;var o=r||k.close;var c=i?a("calcite-action",{ref:function(t){return e.dismissButtonEl=t},"aria-label":o,text:o,onClick:n,icon:x.close}):null;var l=a("slot",{name:w.headerTrailingContent});return a("div",{key:"header-trailing-content",class:y.headerTrailingContent},l,c)};e.prototype.renderHeader=function(){var e=this.renderHeaderLeadingContent();var t=this.renderHeaderContent();var n=this.renderHeaderTrailingContent();var i=t||e||n;return i?a("header",{class:y.header},e,t,n):null};e.prototype.renderFooter=function(){var e=this.el;var t=l(e,w.footer);return t?a("footer",{class:y.footer},a("slot",{name:w.footer})):null};e.prototype.renderContent=function(){return a("section",{tabIndex:0,class:y.contentContainer,onScroll:this.panelScrollHandler},a("div",{class:y.slotContainer},a("slot",null)),this.renderFab())};e.prototype.renderFab=function(){var e=l(this.el,w.fab);return e?a("div",{class:y.fabContainer},a("slot",{name:w.fab})):null};e.prototype.render=function(){var e;var t=this;var i=this,r=i.dismissed,c=i.disabled,l=i.dismissible,d=i.el,f=i.loading,u=i.panelKeyUpHandler;var h=p(d)==="rtl";var b=a("article",{"aria-busy":f.toString(),onKeyUp:u,tabIndex:l?0:-1,hidden:l&&r,ref:function(e){return t.containerEl=e},class:(e={},e[y.container]=true,e[o.rtl]=h,e)},this.renderHeader(),this.renderContent(),this.renderFooter());return a(n,null,f||c?a("calcite-scrim",{theme:s(d),loading:f},b):b)};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dismissed:["dismissedHandler"]}},enumerable:false,configurable:true});return e}());H.style=B}}})); \ No newline at end of file +var __awaiter=this&&this.__awaiter||function(e,t,a,n){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function o(e){try{l(n.next(e))}catch(t){r(t)}}function c(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?a(e.value):i(e.value).then(o,c)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]1;var n=e&&t>1;if(!n&&!a){return null}return t1;e.hidden=e!==r}))}if(o){o.menuOpen=false}a.flows=t;if(n!==i){var c=a.getFlowDirection(n,i);a.flowCount=i;a.flowDirection=c}};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(a){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.connectedCallback=function(){this.flowItemObserver.observe(this.el,{childList:true,subtree:true});this.updateFlowProps()};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,r=t.flowCount;var o=(e={},e[f.frame]=true,e[f.frameAdvancing]=i==="advancing",e[f.frameRetreating]=i==="retreating",e);return a(n,null,a("div",{key:r,class:o},a("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());h.style=u;var b={header:"header-content",heading:"heading",summary:"summary",backButton:"back-button",footerActions:"footer-actions",headerActions:"header-actions",leadingActions:"leading-actions",singleActionContainer:"single-action-container",menuContainer:"menu-container",menuButton:"menu-button",menu:"menu",menuOpen:"menu--open",fabContainer:"fab-container"};var g={leadingActions:"leading-actions",menuActions:"menu-actions",fab:"fab",footerActions:"footer-actions"};var m={menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"};var v={back:"Back",open:"Open",close:"Close"};var y={container:"container",header:"header",headerLeadingContent:"header-leading-content",headerContent:"header-content",headerTrailingContent:"header-trailing-content",contentContainer:"content-container",fabContainer:"fab-container",slotContainer:"slot-container",footer:"footer"};var x={close:"x"};var w={headerContent:"header-content",headerLeadingContent:"header-leading-content",headerTrailingContent:"header-trailing-content",fab:"fab",footer:"footer"};var k={close:"Close"};var C=":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:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}calcite-panel{width:100%;height:100%}.leading-actions{display:-ms-flexbox;display:flex}.header-content{display:block}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.header-content .heading{font-size:var(--calcite-app-font-size-1);font-weight:var(--calcite-app-font-weight-demi);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);font-size:var(--calcite-app-font-size--1)}.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,.single-action-container{display:-ms-flexbox;display:flex}.menu{min-width:var(--calcite-app-menu-min-width);-ms-flex-flow:column nowrap;flex-flow:column nowrap}.footer-actions{display:-ms-flexbox;display:flex;width:100%}.fab-container{display:inline-block}";var A=["ArrowUp","ArrowDown"];var z=e("calcite_flow_item",function(){function e(e){var a=this;t(this,e);this.calciteFlowItemBackClick=r(this,"calciteFlowItemBackClick",7);this.calciteFlowItemScroll=r(this,"calciteFlowItemScroll",7);this.disabled=false;this.loading=false;this.menuOpen=false;this.showBackButton=false;this.toggleMenuOpen=function(){a.menuOpen=!a.menuOpen};this.backButtonClick=function(){a.calciteFlowItemBackClick.emit()};this.menuButtonKeyDown=function(e){var t=e.key;var n=a.menuOpen;if(!a.isValidKey(t,A)){return}var i=a.queryActions();var r=i.length;if(!r){return}e.preventDefault();if(!n){a.menuOpen=true}if(t==="ArrowUp"){var o=i[r-1];c(o)}if(t==="ArrowDown"){var l=i[0];c(l)}};this.menuActionsKeydown=function(e){var t=e.key,n=e.target;if(!a.isValidKey(t,A)){return}var i=a.queryActions();var r=i.length;var o=i.indexOf(n);if(!r||o===-1){return}e.preventDefault();if(t==="ArrowUp"){var l=d(o-1,r);var s=i[l];c(s)}if(t==="ArrowDown"){var l=d(o+1,r);var p=i[l];c(p)}};this.menuActionsContainerKeyDown=function(e){var t=e.key;if(t==="Escape"){a.menuOpen=false}}}e.prototype.handleCalcitePanelScroll=function(e){e.stopPropagation();this.calciteFlowItemScroll.emit()};e.prototype.queryActions=function(){return l(this.el,g.menuActions,{all:true})};e.prototype.isValidKey=function(e,t){return!!t.find((function(t){return t===e}))};e.prototype.renderBackButton=function(e){var t=this,n=t.showBackButton,i=t.intlBack,r=t.backButtonClick;var o=i||v.back;var c=e?m.backRight:m.backLeft;return n?a("calcite-action",{slot:w.headerLeadingContent,key:"back-button","aria-label":o,text:o,class:b.backButton,onClick:r,icon:c}):null};e.prototype.renderMenuButton=function(){var e=this;var t=this,n=t.menuOpen,i=t.intlOpen,r=t.intlClose;var o=r||v.close;var c=i||v.open;var l=n?o:c;return a("calcite-action",{class:b.menuButton,"aria-label":l,text:l,ref:function(t){return e.menuButtonEl=t},onClick:this.toggleMenuOpen,onKeyDown:this.menuButtonKeyDown,icon:m.menu})};e.prototype.renderMenuActions=function(){var e=this,t=e.el,n=e.menuOpen,i=e.menuButtonEl;return a("calcite-popover",{referenceElement:i,theme:s(t),open:n,offsetDistance:0,disablePointer:true,placement:"bottom-end",flipPlacements:["bottom-end","top-end"],onKeyDown:this.menuActionsKeydown},a("div",{class:b.menu},a("slot",{name:g.menuActions})))};e.prototype.renderFooterActions=function(){var e=!!l(this.el,g.footerActions);return e?a("div",{slot:w.footer,class:b.footerActions},a("slot",{name:g.footerActions})):null};e.prototype.renderSingleActionContainer=function(){return a("div",{class:b.singleActionContainer},a("slot",{name:g.menuActions}))};e.prototype.renderMenuActionsContainer=function(){return a("div",{class:b.menuContainer,onKeyDown:this.menuActionsContainerKeyDown},this.renderMenuButton(),this.renderMenuActions())};e.prototype.renderHeaderLeadingContent=function(){var e=l(this.el,g.leadingActions);return e?a("div",{slot:w.headerLeadingContent,class:b.leadingActions},a("slot",{name:g.leadingActions})):null};e.prototype.renderHeaderActions=function(){var e=l(this.el,g.menuActions,{all:true});var t=e.length;var n=t===1?this.renderSingleActionContainer():t?this.renderMenuActionsContainer():null;return n?a("div",{slot:w.headerTrailingContent,class:b.headerActions},n):null};e.prototype.renderHeading=function(){var e=this.heading;return e?a("h2",{class:b.heading,slot:w.headerContent},e):null};e.prototype.renderSummary=function(){var e=this.summary;return e?a("span",{class:b.summary},e):null};e.prototype.renderHeader=function(){var e=this.renderHeading();var t=this.renderSummary();return e||t?a("div",{class:b.header,slot:w.headerContent},e,t):null};e.prototype.renderFab=function(){var e=l(this.el,g.fab);return e?a("div",{class:b.fabContainer,slot:w.fab},a("slot",{name:g.fab})):null};e.prototype.render=function(){var e=this.el;var t=p(e);return a(n,null,a("calcite-panel",{loading:this.loading,disabled:this.disabled,theme:s(e),"height-scale":this.heightScale,dir:t},this.renderBackButton(t==="rtl"),this.renderHeaderLeadingContent(),this.renderHeader(),this.renderHeaderActions(),a("slot",null),this.renderFooterActions(),this.renderFab()))};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());z.style=C;var B=":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:#00619b;--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)}.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}calcite-scrim{-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;pointer-events:none}: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:0 0 auto;flex:0 0 auto;-ms-flex-pack:start;justify-content:flex-start;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-trailing-content{margin-left:auto}.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}.fab-container{position:-webkit-sticky;position:sticky;z-index:1;bottom:0;display:inline-block;margin:0 auto;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half);left:0;right:0}.slot-container{position:relative;z-index:0}";var H=e("calcite_panel",function(){function e(e){var a=this;t(this,e);this.calcitePanelDismissedChange=r(this,"calcitePanelDismissedChange",7);this.calcitePanelScroll=r(this,"calcitePanelScroll",7);this.dismissed=false;this.disabled=false;this.dismissible=false;this.loading=false;this.panelKeyUpHandler=function(e){if(e.key==="Escape"){a.dismiss()}};this.dismiss=function(){a.dismissed=true};this.panelScrollHandler=function(){a.calcitePanelScroll.emit()}}e.prototype.dismissedHandler=function(){this.calcitePanelDismissedChange.emit()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t,a;return __generator(this,(function(n){if(e==="dismiss-button"){(t=this.dismissButtonEl)===null||t===void 0?void 0:t.setFocus();return[2]}(a=this.containerEl)===null||a===void 0?void 0:a.focus();return[2]}))}))};e.prototype.renderHeaderLeadingContent=function(){var e=l(this.el,w.headerLeadingContent);return e?a("div",{key:"header-leading-content",class:y.headerLeadingContent},a("slot",{name:w.headerLeadingContent})):null};e.prototype.renderHeaderContent=function(){return a("div",{key:"header-content",class:y.headerContent},a("slot",{name:w.headerContent}))};e.prototype.renderHeaderTrailingContent=function(){var e=this;var t=this,n=t.dismiss,i=t.dismissible,r=t.intlClose;var o=r||k.close;var c=i?a("calcite-action",{ref:function(t){return e.dismissButtonEl=t},"aria-label":o,text:o,onClick:n,icon:x.close}):null;var l=a("slot",{name:w.headerTrailingContent});return a("div",{key:"header-trailing-content",class:y.headerTrailingContent},l,c)};e.prototype.renderHeader=function(){var e=this.renderHeaderLeadingContent();var t=this.renderHeaderContent();var n=this.renderHeaderTrailingContent();var i=t||e||n;return i?a("header",{class:y.header},e,t,n):null};e.prototype.renderFooter=function(){var e=this.el;var t=l(e,w.footer);return t?a("footer",{class:y.footer},a("slot",{name:w.footer})):null};e.prototype.renderContent=function(){return a("section",{tabIndex:0,class:y.contentContainer,onScroll:this.panelScrollHandler},a("div",{class:y.slotContainer},a("slot",null)),this.renderFab())};e.prototype.renderFab=function(){var e=l(this.el,w.fab);return e?a("div",{class:y.fabContainer},a("slot",{name:w.fab})):null};e.prototype.render=function(){var e;var t=this;var i=this,r=i.dismissed,c=i.disabled,l=i.dismissible,d=i.el,f=i.loading,u=i.panelKeyUpHandler;var h=p(d)==="rtl";var b=a("article",{"aria-busy":f.toString(),onKeyUp:u,tabIndex:l?0:-1,hidden:l&&r,ref:function(e){return t.containerEl=e},class:(e={},e[y.container]=true,e[o.rtl]=h,e)},this.renderHeader(),this.renderContent(),this.renderFooter());return a(n,null,f||c?a("calcite-scrim",{theme:s(d),loading:f},b):b)};Object.defineProperty(e.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dismissed:["dismissedHandler"]}},enumerable:false,configurable:true});return e}());H.style=B}}})); \ No newline at end of file diff --git a/docs/build/p-eed318ce.js b/docs/build/p-e11bdceb.js similarity index 82% rename from docs/build/p-eed318ce.js rename to docs/build/p-e11bdceb.js index 269dc3df..af389982 100644 --- a/docs/build/p-eed318ce.js +++ b/docs/build/p-e11bdceb.js @@ -1 +1 @@ -import{C as e,p as o,w as t,a as s,d as a,N as n}from"./p-75b1a4f0.js";const r="undefined"!=typeof Deno,p=!(r||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),c=(r&&Deno,p?process:r&&Deno,p?process:r&&Deno,()=>e&&e.supports&&e.supports("color","var(--c)")?s():__sc_import_calcite_app("./p-514b3755.js").then(()=>(o.o=t.__cssshim)?(!1).i():0)),i=()=>{o.o=t.__cssshim;const e=Array.from(a.querySelectorAll("script")).find(e=>RegExp(`/${n}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===n),r=e["data-opts"]||{};return"onbeforeload"in e&&!history.scrollRestoration?{then(){}}:(r.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,t.location.href)).href,l(r.resourcesUrl,e),t.customElements?s(r):__sc_import_calcite_app("./p-c95129be.js").then(()=>r))},l=(e,o)=>{const s="__sc_import_"+n.replace(/\s|-/g,"_");try{t[s]=Function("w","return import(w);//"+Math.random())}catch(r){const n=new Map;t[s]=r=>{const p=new URL(r,e).href;let c=n.get(p);if(!c){const e=a.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${p}'; window.${s}.m = m;`],{type:"application/javascript"})),c=new Promise(o=>{e.onload=()=>{o(t[s].m),e.remove()}}),n.set(p,c),a.head.appendChild(e)}return c}}};export{c as a,i as p} \ No newline at end of file +import{C as e,p as o,w as t,a as s,d as a,N as n}from"./p-1b507203.js";const r="undefined"!=typeof Deno,p=!(r||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),c=(r&&Deno,p?process:r&&Deno,p?process:r&&Deno,()=>e&&e.supports&&e.supports("color","var(--c)")?s():__sc_import_calcite_app("./p-756c96ca.js").then(()=>(o.o=t.__cssshim)?(!1).i():0)),i=()=>{o.o=t.__cssshim;const e=Array.from(a.querySelectorAll("script")).find(e=>RegExp(`/${n}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===n),r=e["data-opts"]||{};return"onbeforeload"in e&&!history.scrollRestoration?{then(){}}:(r.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,t.location.href)).href,l(r.resourcesUrl,e),t.customElements?s(r):__sc_import_calcite_app("./p-1d10a408.js").then(()=>r))},l=(e,o)=>{const s="__sc_import_"+n.replace(/\s|-/g,"_");try{t[s]=Function("w","return import(w);//"+Math.random())}catch(r){const n=new Map;t[s]=r=>{const p=new URL(r,e).href;let c=n.get(p);if(!c){const e=a.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${p}'; window.${s}.m = m;`],{type:"application/javascript"})),c=new Promise(o=>{e.onload=()=>{o(t[s].m),e.remove()}}),n.set(p,c),a.head.appendChild(e)}return c}}};export{c as a,i as p} \ No newline at end of file diff --git a/docs/build/p-25b99abd.system.entry.js b/docs/build/p-e299bc55.system.entry.js similarity index 99% rename from docs/build/p-25b99abd.system.entry.js rename to docs/build/p-e299bc55.system.entry.js index 821fe82b..fd269285 100644 --- a/docs/build/p-25b99abd.system.entry.js +++ b/docs/build/p-e299bc55.system.entry.js @@ -1 +1 @@ -var __awaiter=this&&this.__awaiter||function(t,a,e,o){function i(t){return t instanceof e?t:new e((function(a){a(t)}))}return new(e||(e=Promise))((function(e,n){function c(t){try{l(o.next(t))}catch(a){n(a)}}function r(t){try{l(o["throw"](t))}catch(a){n(a)}}function l(t){t.done?e(t.value):i(t.value).then(c,r)}l((o=o.apply(t,a||[])).next())}))};var __generator=this&&this.__generator||function(t,a){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,c;return c={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function r(t){return function(a){return l([t,a])}}function l(c){if(o)throw new TypeError("Generator is already executing.");while(e)try{if(o=1,i&&(n=c[0]&2?i["return"]:c[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,c[1])).done)return n;if(i=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:e.label++;return{value:c[1],done:false};case 5:e.label++;i=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(n=e.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]0&&n[n.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]s===t)}(s))return;const{items:e,multiple:r}=this,{length:o}=e,c=e.indexOf(n);if(!o||-1===c)return;t.preventDefault();const h=e[a(c+("ArrowUp"===s?-1:1),o)];g(h,!0),i(h),r||(h.selected=!0)}function j(){this.calciteListChange.emit(this.selectedValues)}function g(t,s){s?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1")}function v(){const{multiple:t,items:s}=this;if(0===s.length)return;if(t)return s[0].setFocus();return(s.find(t=>t.selected)||s[0]).setFocus()}function w(t){this.items=Array.from(this.el.querySelectorAll(t));let s=!1;const{items:i}=this;i.forEach(t=>{t.icon=this.getIconType(),this.multiple||(t.disableDeselect=!0,g(t,!1)),t.selected&&(s=!0,g(t,!0),this.selectedValues.set(t.value,t))});const[n]=i;!s&&n&&g(n,!0)}function y(t){this.items.forEach(s=>{s.value!==t.value&&(s.toggleSelected(!1),this.selectedValues.has(s.value)&&this.selectedValues.delete(s.value))})}function A(t,s=!1){if(!this.lastSelectedItem)return;const{items:i}=this,n=i.findIndex(t=>t.value===this.lastSelectedItem.value),e=i.findIndex(s=>s.value===t.value);i.slice(Math.min(n,e),Math.max(n,e)).forEach(t=>{t.toggleSelected(!s),s?this.selectedValues.delete(t.value):this.selectedValues.set(t.value,t)})}let F;function O(t){const s=t.detail.map(t=>t.value);F||(F=new Set);const i=this.items.filter(t=>{const i=t.parentElement;i.matches("calcite-pick-list-group")&&F.add(i);const n=s.includes(t.value);return t.hidden=!n,n});F.forEach(t=>{const s=i.some(s=>t.contains(s));if(t.hidden=!s,!s)return;const e=n(t,"parent-item");e&&(e.hidden=!1,i.includes(e)&&Array.from(t.children).forEach(t=>t.hidden=!1))}),F.clear()}function x(){return this.items.map(t=>({label:t.textLabel,description:t.textDescription,metadata:t.metadata,value:t.value}))}const k=i=>{var{props:n}=i,a=function(t,s){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&s.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(n=Object.getOwnPropertySymbols(t);es===t)}(s))return;const{items:e,multiple:r}=this,{length:o}=e,c=e.indexOf(n);if(!o||-1===c)return;t.preventDefault();const h=e[a(c+("ArrowUp"===s?-1:1),o)];g(h,!0),i(h),r||(h.selected=!0)}function j(){this.calciteListChange.emit(this.selectedValues)}function g(t,s){s?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1")}function v(){const{multiple:t,items:s}=this;if(0===s.length)return;if(t)return s[0].setFocus();return(s.find(t=>t.selected)||s[0]).setFocus()}function w(t){this.items=Array.from(this.el.querySelectorAll(t));let s=!1;const{items:i}=this;i.forEach(t=>{t.icon=this.getIconType(),this.multiple||(t.disableDeselect=!0,g(t,!1)),t.selected&&(s=!0,g(t,!0),this.selectedValues.set(t.value,t))});const[n]=i;!s&&n&&g(n,!0)}function y(t){this.items.forEach(s=>{s.value!==t.value&&(s.toggleSelected(!1),this.selectedValues.has(s.value)&&this.selectedValues.delete(s.value))})}function A(t,s=!1){if(!this.lastSelectedItem)return;const{items:i}=this,n=i.findIndex(t=>t.value===this.lastSelectedItem.value),e=i.findIndex(s=>s.value===t.value);i.slice(Math.min(n,e),Math.max(n,e)).forEach(t=>{t.toggleSelected(!s),s?this.selectedValues.delete(t.value):this.selectedValues.set(t.value,t)})}let F;function O(t){const s=t.detail.map(t=>t.value);F||(F=new Set);const i=this.items.filter(t=>{const i=t.parentElement;i.matches("calcite-pick-list-group")&&F.add(i);const n=s.includes(t.value);return t.hidden=!n,n});F.forEach(t=>{const s=i.some(s=>t.contains(s));if(t.hidden=!s,!s)return;const e=n(t,"parent-item");e&&(e.hidden=!1,i.includes(e)&&Array.from(t.children).forEach(t=>t.hidden=!1))}),F.clear()}function x(){return this.items.map(t=>({label:t.textLabel,description:t.textDescription,metadata:t.metadata,value:t.value}))}const k=i=>{var{props:n}=i,a=function(t,s){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&s.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(n=Object.getOwnPropertySymbols(t);e

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 d94ff2ea..2116d6ef 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.9b7396cf3bfd798a6f3b.bundle.js b/docs/main.29f3e509f15465e771ac.bundle.js similarity index 81% rename from docs/main.9b7396cf3bfd798a6f3b.bundle.js rename to docs/main.29f3e509f15465e771ac.bundle.js index 4f69b986..fcef3534 100644 --- a/docs/main.9b7396cf3bfd798a6f3b.bundle.js +++ b/docs/main.29f3e509f15465e771ac.bundle.js @@ -320,7 +320,7 @@

View Esri - `),{__STORY__:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport { withA11y } from "@storybook/addon-a11y";\nimport { Attributes, createComponentHTML as create, darkBackground, parseReadme } 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, withA11y],\n parameters: {\n backgrounds: darkBackground,\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: "intl-close",\n value: text("intlClose", TEXT.close)\n },\n {\n name: "text-defalut-title",\n value: text("textDefaultTitle", TEXT.defaultGroupTitle)\n },\n {\n name: "intl-pagination-label",\n value: text("intlPaginationLabel", TEXT.defaultPaginationLabel)\n },\n {\n name: "intl-next",\n value: text("intlNext", TEXT.next)\n },\n {\n name: "intl-previous",\n value: text("intlPrevious", TEXT.previous)\n },\n {\n name: "theme",\n value: select("theme", theme.values, theme.defaultValue)\n }\n];\n\nexport const basic = (): string =>\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:54},endLoc:{col:3,line:108},startBody:{col:21,line:54},endBody:{col:3,line:108}}},__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__:{}})},1628:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"basic",(function(){return basic}));var dist=__webpack_require__(1),addon_a11y_dist=__webpack_require__(29),utils=__webpack_require__(2);const TEXT_close="Close";var resources=__webpack_require__(30),addSourceDecorator=(__webpack_require__(28).withSource,__webpack_require__(28).addSource);__webpack_exports__.default={title:"components|calcite-tip",decorators:[dist.withKnobs,addon_a11y_dist.withA11y],parameters:{storySource:{source:'import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";\nimport { withA11y } from "@storybook/addon-a11y";\nimport { Attributes, createComponentHTML as create, darkBackground, parseReadme } 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, withA11y],\n parameters: {\n backgrounds: darkBackground,\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: "intl-close",\n value: text("intlClose", 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 = (): string => create("calcite-tip", createAttributes(), html);\n',locationsMap:{"components-calcite-tip--basic":{startLoc:{col:21,line:48},endLoc:{col:82,line:48},startBody:{col:21,line:48},endBody:{col:82,line:48}}}},backgrounds:utils.b,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| `intlClose` | `intl-close` | Alternate text for closing 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| `theme` | `theme` | Used to set the component\'s color scheme. | `"dark" \\| "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:"intl-close",value:Object(dist.text)("intlClose",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 { withA11y } from "@storybook/addon-a11y";\nimport { Attributes, createComponentHTML as create, darkBackground, parseReadme } 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, withA11y],\n parameters: {\n backgrounds: darkBackground,\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: "intl-close",\n value: text("intlClose", 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 = (): string => create("calcite-tip", createAttributes(), html);\n',__ADDS_MAP__:{"components-calcite-tip--basic":{startLoc:{col:21,line:48},endLoc:{col:82,line:48},startBody:{col:21,line:48},endBody:{col:82,line:48}}},__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__:{}})},1630:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var client=__webpack_require__(159),html=__webpack_require__(519),html_default=__webpack_require__.n(html),dist=__webpack_require__(9),logo=__webpack_require__(520),logo_default=__webpack_require__.n(logo),theme=Object(dist.create)({base:"light",brandTitle:"Calcite App Components",brandUrl:"./",brandImage:logo_default.a,addonNotesTheme:{code:{whiteSpace:"normal"},pre:{code:{whiteSpace:"pre"}}}}),utils=__webpack_require__(2);Object(client.addDecorator)(html_default.a),Object(client.addParameters)({backgrounds:[{name:"Light",value:"#f8f8f8",default:!0}],options:{theme:theme,storySort:(a,b)=>{const sectionA=a[1].id.split("-")[0];return b[1].id.split("-")[0].localeCompare(sectionA)}},docs:{page:utils.d,extractComponentDescription:(_component,{notes:notes})=>notes?"string"==typeof notes?notes:Object.keys(notes).map(section=>notes[section]).join("\n"):null}})},1631: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__(51),__webpack_require__(39),__webpack_require__(12),__webpack_require__(4),__webpack_require__(157),__webpack_require__(158),__webpack_require__(6),__webpack_require__(46),__webpack_require__(0);var esm=__webpack_require__(5),blocks=__webpack_require__(43);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