From a3840dc170ca52a6c2c7be302f0c74fad8ce1707 Mon Sep 17 00:00:00 2001 From: Harry Robbins Date: Wed, 9 Oct 2019 11:53:05 -0700 Subject: [PATCH] 4.1.1 --- docs/build/calcite-app.esm.js | 2 +- docs/build/p-4c6jx5ot.entry.js | 1 + docs/build/p-5iikia5x.system.entry.js | 1 - docs/build/p-6ce807db.system.js | 2 +- docs/build/{p-6uyfc50r.entry.js => p-brdwhomy.entry.js} | 2 +- docs/build/p-fhzgahgk.system.entry.js | 1 + docs/build/p-ggngkqqo.system.entry.js | 1 - docs/build/p-oh6jz4x5.system.entry.js | 1 + docs/build/p-rpd9v1zi.entry.js | 1 - docs/build/p-w38ma14b.entry.js | 1 + ...-1czs57l8.system.entry.js => p-x4mwtmzp.system.entry.js} | 2 +- docs/build/p-z4n141jy.entry.js | 1 - package-lock.json | 2 +- package.json | 2 +- src/components/calcite-pick-list/readme.md | 6 ++++++ src/components/calcite-value-list/readme.md | 6 ++++++ 16 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 docs/build/p-4c6jx5ot.entry.js delete mode 100644 docs/build/p-5iikia5x.system.entry.js rename docs/build/{p-6uyfc50r.entry.js => p-brdwhomy.entry.js} (86%) create mode 100644 docs/build/p-fhzgahgk.system.entry.js delete mode 100644 docs/build/p-ggngkqqo.system.entry.js create mode 100644 docs/build/p-oh6jz4x5.system.entry.js delete mode 100644 docs/build/p-rpd9v1zi.entry.js create mode 100644 docs/build/p-w38ma14b.entry.js rename docs/build/{p-1czs57l8.system.entry.js => p-x4mwtmzp.system.entry.js} (87%) delete mode 100644 docs/build/p-z4n141jy.entry.js diff --git a/docs/build/calcite-app.esm.js b/docs/build/calcite-app.esm.js index c5a831a6..01b8d5e9 100644 --- a/docs/build/calcite-app.esm.js +++ b/docs/build/calcite-app.esm.js @@ -1 +1 @@ -import{p as e,b as t}from"./p-e8b78b45.js";e().then(e=>t([["p-rpd9v1zi",[[1,"calcite-pick-list",{dragEnabled:[516,"drag-enabled"],filterEnabled:[516,"filter-enabled"],mode:[513],multiple:[516],textHeading:[513,"text-heading"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]]],["p-6uyfc50r",[[1,"calcite-value-list",{dragEnabled:[516,"drag-enabled"],filterEnabled:[516,"filter-enabled"],multiple:[516],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]]],["p-jav8txwd",[[1,"calcite-value-list-item",{disabled:[516],icon:[513],metadata:[16],selected:[4],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64]}]]],["p-4inpudcb",[[1,"calcite-action-pad",{theme:[513]}]]],["p-g1ozdf35",[[1,"calcite-block",{collapsible:[4],heading:[1],open:[516],summary:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],theme:[513]}]]],["p-z2urxxib",[[1,"calcite-demo-nav",{pageId:[1,"page-id"],open:[32]}]]],["p-zmqr6fst",[[1,"calcite-example",{someProp:[4,"some-prop"],textMyString:[1,"text-my-string"],internalRenderableProp:[32],publicMethod:[64]},[[0,"someEvent","handleSomeEvent"]]]]],["p-z4n141jy",[[1,"calcite-flow",{theme:[513],flowCount:[32],flowDirection:[32],flows:[32],back:[64]}]]],["p-ajdsu1te",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-allvpwdl",[[1,"calcite-shell",{theme:[513]}]]],["p-qmkkvlt5",[[1,"calcite-shell-panel",{collapsed:[516],layout:[513]}]]],["p-0ljfjvlx",[[1,"calcite-tip-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-gralfj5m",[[1,"calcite-action-group"]]],["p-0bzl4ehu",[[1,"calcite-pick-list-item",{disabled:[516],icon:[513],metadata:[16],selected:[4],textHeading:[513,"text-heading"],textDescription:[513,"text-description"],textLabel:[513,"text-label"],value:[513],isSelected:[32],toggleSelected:[64]}]]],["p-izumjlav",[[1,"calcite-filter",{data:[16],textLabel:[1,"text-label"],textPlaceholder:[1,"text-placeholder"]}]]],["p-chl1meur",[[1,"calcite-action",{active:[516],compact:[516],disabled:[516],indicator:[516],label:[1],text:[1],textEnabled:[4,"text-enabled"],textDisplay:[513,"text-display"],theme:[513]}]]],["p-fjoik2es",[[1,"calcite-action-bar",{expand:[516],expanded:[516],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],layout:[513],theme:[513]}]]],["p-n5hpyx6l",[[1,"calcite-block-section",{open:[516],text:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],toggleDisplay:[513,"toggle-display"]}]]],["p-7y90ifdy",[[1,"calcite-tip-manager",{textClose:[1,"text-close"],textDefaultTitle:[513,"text-default-title"],textNext:[1,"text-next"],textPaginationLabel:[513,"text-pagination-label"],textPrevious:[1,"text-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}]]],["p-6tsxdefw",[[1,"calcite-panel",{dismissed:[1540],dismissible:[516],textClose:[1,"text-close"],theme:[513]}]]],["p-geaprppx",[[1,"calcite-flow-item",{heading:[1],menuOpen:[516,"menu-open"],showBackButton:[4,"show-back-button"],textBack:[1,"text-back"],textClose:[1,"text-close"],textOpen:[1,"text-open"],theme:[513]}]]],["p-ewiw71ae",[[1,"calcite-tip",{storageId:[1,"storage-id"],nonDismissible:[516,"non-dismissible"],heading:[1],textClose:[1,"text-close"],textThumbnail:[1,"text-thumbnail"],thumbnail:[1],theme:[513],dismissed:[32]}]]]],e)); \ No newline at end of file +import{p as e,b as t}from"./p-e8b78b45.js";e().then(e=>t([["p-w38ma14b",[[1,"calcite-pick-list",{dragEnabled:[516,"drag-enabled"],filterEnabled:[516,"filter-enabled"],mode:[513],multiple:[516],textHeading:[513,"text-heading"],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]]],["p-brdwhomy",[[1,"calcite-value-list",{dragEnabled:[516,"drag-enabled"],filterEnabled:[516,"filter-enabled"],multiple:[516],selectedValues:[32],dataForFilter:[32],getSelectedItems:[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]]]],["p-jav8txwd",[[1,"calcite-value-list-item",{disabled:[516],icon:[513],metadata:[16],selected:[4],textLabel:[513,"text-label"],textDescription:[513,"text-description"],value:[513],toggleSelected:[64]}]]],["p-4inpudcb",[[1,"calcite-action-pad",{theme:[513]}]]],["p-g1ozdf35",[[1,"calcite-block",{collapsible:[4],heading:[1],open:[516],summary:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],theme:[513]}]]],["p-z2urxxib",[[1,"calcite-demo-nav",{pageId:[1,"page-id"],open:[32]}]]],["p-zmqr6fst",[[1,"calcite-example",{someProp:[4,"some-prop"],textMyString:[1,"text-my-string"],internalRenderableProp:[32],publicMethod:[64]},[[0,"someEvent","handleSomeEvent"]]]]],["p-4c6jx5ot",[[1,"calcite-flow",{theme:[513],flowCount:[32],flowDirection:[32],flows:[32],back:[64]}]]],["p-ajdsu1te",[[1,"calcite-pick-list-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-allvpwdl",[[1,"calcite-shell",{theme:[513]}]]],["p-qmkkvlt5",[[1,"calcite-shell-panel",{collapsed:[516],layout:[513]}]]],["p-0ljfjvlx",[[1,"calcite-tip-group",{textGroupTitle:[513,"text-group-title"]}]]],["p-gralfj5m",[[1,"calcite-action-group"]]],["p-0bzl4ehu",[[1,"calcite-pick-list-item",{disabled:[516],icon:[513],metadata:[16],selected:[4],textHeading:[513,"text-heading"],textDescription:[513,"text-description"],textLabel:[513,"text-label"],value:[513],isSelected:[32],toggleSelected:[64]}]]],["p-izumjlav",[[1,"calcite-filter",{data:[16],textLabel:[1,"text-label"],textPlaceholder:[1,"text-placeholder"]}]]],["p-chl1meur",[[1,"calcite-action",{active:[516],compact:[516],disabled:[516],indicator:[516],label:[1],text:[1],textEnabled:[4,"text-enabled"],textDisplay:[513,"text-display"],theme:[513]}]]],["p-fjoik2es",[[1,"calcite-action-bar",{expand:[516],expanded:[516],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],layout:[513],theme:[513]}]]],["p-n5hpyx6l",[[1,"calcite-block-section",{open:[516],text:[1],textExpand:[1,"text-expand"],textCollapse:[1,"text-collapse"],toggleDisplay:[513,"toggle-display"]}]]],["p-7y90ifdy",[[1,"calcite-tip-manager",{textClose:[1,"text-close"],textDefaultTitle:[513,"text-default-title"],textNext:[1,"text-next"],textPaginationLabel:[513,"text-pagination-label"],textPrevious:[1,"text-previous"],theme:[513],selectedIndex:[32],tips:[32],total:[32],direction:[32],groupTitle:[32],nextTip:[64],previousTip:[64]}]]],["p-6tsxdefw",[[1,"calcite-panel",{dismissed:[1540],dismissible:[516],textClose:[1,"text-close"],theme:[513]}]]],["p-geaprppx",[[1,"calcite-flow-item",{heading:[1],menuOpen:[516,"menu-open"],showBackButton:[4,"show-back-button"],textBack:[1,"text-back"],textClose:[1,"text-close"],textOpen:[1,"text-open"],theme:[513]}]]],["p-ewiw71ae",[[1,"calcite-tip",{storageId:[1,"storage-id"],nonDismissible:[516,"non-dismissible"],heading:[1],textClose:[1,"text-close"],textThumbnail:[1,"text-thumbnail"],thumbnail:[1],theme:[513],dismissed:[32]}]]]],e)); \ No newline at end of file diff --git a/docs/build/p-4c6jx5ot.entry.js b/docs/build/p-4c6jx5ot.entry.js new file mode 100644 index 00000000..290dcecf --- /dev/null +++ b/docs/build/p-4c6jx5ot.entry.js @@ -0,0 +1 @@ +import{r as t,h as i,H as s,g as e}from"./p-e8b78b45.js";const n=class{constructor(i){t(this,i),this.flowCount=0,this.flowDirection=null,this.flows=[],this.getFlowDirection=(t,i)=>t!==i&&(t&&i>1||t>1)?i{const{flows:t}=this,i=Array.from(this.el.querySelectorAll("calcite-flow-item")),s=i.length,e=this.getFlowDirection(t.length,s),n=i[s-1],a=i[s-2];s&&n&&i.forEach(t=>{t.showBackButton=s>1,t.hidden=t!==n}),a&&(a.menuOpen=!1),this.flows=i,this.flowCount=s,this.flowDirection=e},this.flowItemObserver=new MutationObserver(this.updateFlowProps)}componentWillLoad(){this.updateFlowProps()}componentDidLoad(){this.flowItemObserver.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.flowItemObserver.disconnect()}async back(){const t=this.el.querySelector("calcite-flow-item:last-child");t&&t.remove()}render(){const{flowDirection:t,flowCount:e}=this;return i(s,null,i("div",{key:e,class:`frame ${"advancing"===t?"frame--advancing":"retreating"===t?"frame--retreating":""}`},i("slot",null)))}get el(){return e(this)}static get style(){return":root{--calcite-app-line-height:1.3rem;--calcite-app-base-font-size:14px;--calcite-app-font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif;--calcite-app-font-family-monospace:\"Lucida Console\",Monaco,monospace;--calcite-app-font-size-2:1.429rem;--calcite-app-font-size-1:1.143rem;--calcite-app-font-size-0:1rem;--calcite-app-font-size--1:0.858rem;--calcite-app-font-weight:400;--calcite-app-font-weight-heading:600;--calcite-app-font-weight-demi:600;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height);--calcite-app-side-spacing:15px;--calcite-app-cap-spacing:15px;--calcite-app-side-spacing-three-quarters:11px;--calcite-app-cap-spacing-three-quarters:11px;--calcite-app-side-spacing-half:7px;--calcite-app-cap-spacing-half:7px;--calcite-app-side-spacing-third:5px;--calcite-app-cap-spacing-third:5px;--calcite-app-side-spacing-quarter:3px;--calcite-app-cap-spacing-quarter:3px;--calcite-app-side-spacing-eighth:2px;--calcite-app-cap-spacing-eighth:2px;--calcite-app-cap-spacing-minimum:1px;--calcite-app-side-spacing-plus-half:22px;--calcite-app-cap-spacing-plus-half:22px;--calcite-app-side-spacing-double:30px;--calcite-app-cap-spacing-double:30px;--calcite-app-menu-min-width:10rem;--calcite-app-menu-offset:0px;--calcite-app-icon-size:16px;--calcite-app-border-radius:3px;--calcite-app-shadow-0:0 2px 4px rgba(0,0,0,0.1);--calcite-app-shadow-1:0 0 12px 0 rgba(0,0,0,0.05);--calcite-app-shadow-1-hover:0 0 16px 0 rgba(0,0,0,0.1);--calcite-app-shadow-1--press:0 0 16px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2:0 0 16px 0 rgba(0,0,0,0.15);--calcite-app-shadow-2-hover:0 0 20px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2-press:0 0 20px 0 rgba(0,0,0,0.3);--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}: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-subtle:#2b2b2b}:host([theme=light]){--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}:root{--calcite-app-animation-time:250ms;--calcite-app-animation-time-fast:83ms;--calcite-app-animation-time-slow:500ms;--calcite-app-easing-function:ease-in-out}\@-webkit-keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@-webkit-keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}:host{background-color:var(--calcite-app-background);color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height)}:host([hidden]){display:none}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.heading{padding:0;margin:0}.header .heading{-ms-flex:1;flex:1;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-2);font-weight:var(--calcite-app-font-weight)}h2.heading{font-size:var(--calcite-app-font-size-1)}h2.heading,h3.heading,h4.heading,h5.heading{font-weight:var(--calcite-app-font-weight-demi)}h3.heading,h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host{overflow:hidden}:host,:host .frame{display:-ms-flexbox;display:flex;height:100%}:host .frame{width:100%;padding:0;margin:0;-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:.5;-webkit-transform:translate3d(50px,0,0) scale(.99);transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@keyframes calcite-flow-item-advance{0%{opacity:.5;-webkit-transform:translate3d(50px,0,0) scale(.99);transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@-webkit-keyframes calcite-flow-item-retreat{0%{opacity:.5;-webkit-transform:translate3d(-50px,0,0) scale(.99);transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@keyframes calcite-flow-item-retreat{0%{opacity:.5;-webkit-transform:translate3d(-50px,0,0) scale(.99);transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}"}};export{n as calcite_flow}; \ No newline at end of file diff --git a/docs/build/p-5iikia5x.system.entry.js b/docs/build/p-5iikia5x.system.entry.js deleted file mode 100644 index 78a017ea..00000000 --- a/docs/build/p-5iikia5x.system.entry.js +++ /dev/null @@ -1 +0,0 @@ -var __awaiter=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{u(n.next(e))}catch(t){i(t)}}function l(e){try{u(n["throw"](e))}catch(t){i(t)}}function u(e){e.done?r(e.value):o(e.value).then(a,l)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;o=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]1;var a=o>1;var l=a&&n||i?o * @author owenm * @license MIT - */function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function s(){return(s=Object.assign||function(t){for(var n=1;n=0||(r[i]=t[i]);return r}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function c(t){return!!navigator.userAgent.match(t)}var h=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),f=c(/Edge/i),d=c(/firefox/i),v=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),m=c(/iP(ad|od|hone)/i),g=c(/chrome/i)&&c(/android/i),p={capture:!1,passive:!1};function b(t,n,i){t.addEventListener(n,i,!h&&p)}function w(t,n,i){t.removeEventListener(n,i,!h&&p)}function E(t,n){if(n){if(">"===n[0]&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch(i){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function S(t,n,i,e){if(t){i=i||document;do{if(null!=n&&(">"===n[0]?t.parentNode===i&&E(t,n):E(t,n))||e&&t===i)return t;if(t===i)break}while(t=y(t))}return null}var I,T=/\s+/g;function M(t,n,i){if(t&&n)if(t.classList)t.classList[i?"add":"remove"](n);else{var e=(" "+t.className+" ").replace(T," ").replace(" "+n+" "," ");t.className=(e+(i?" "+n:"")).replace(T," ")}}function x(t,n,i){var e=t&&t.style;if(e){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===n?i:i[n];n in e||-1!==n.indexOf("webkit")||(n="-webkit-"+n),e[n]=i+("string"==typeof i?"":"px")}}function O(t,n){var i="";if("string"==typeof t)i=t;else do{var e=x(t,"transform");e&&"none"!==e&&(i=e+" "+i)}while(!n&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return r&&new r(i)}function D(t,n,i){if(t){var e=t.getElementsByTagName(n),r=0,o=e.length;if(i)for(;r=o:r<=o))return e;if(e===_())break;e=P(e,!1)}return!1}function A(t,n,i){for(var e=0,r=0,o=t.children;r2&&void 0!==arguments[2]?arguments[2]:{},e=i.evt,r=l(i,["evt"]);X.pluginEvent.bind(Pt)(t,n,u({dragEl:W,parentEl:$,ghostEl:q,rootEl:Z,nextEl:J,lastDownEl:K,cloneEl:Q,cloneHidden:tt,dragStarted:dt,putSortable:at,activeSortable:Pt.active,originalEvent:e,oldIndex:nt,oldDraggableIndex:et,newIndex:it,newDraggableIndex:rt,hideGhostForTarget:At,unhideGhostForTarget:jt,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(t){V({sortable:n,name:t,originalEvent:e})}},r))};function V(t){!function(t){var n=t.sortable,i=t.rootEl,e=t.name,r=t.targetEl,o=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,v=t.newDraggableIndex,m=t.originalEvent,g=t.putSortable,p=t.extraEventProperties;if(n=n||i&&i[B]){var b,w=n.options,E="on"+e.charAt(0).toUpperCase()+e.substr(1);!window.CustomEvent||h||f?(b=document.createEvent("Event")).initEvent(e,!0,!0):b=new CustomEvent(e,{bubbles:!0,cancelable:!0}),b.to=a||i,b.from=s||i,b.item=r||i,b.clone=o,b.oldIndex=l,b.newIndex=c,b.oldDraggableIndex=d,b.newDraggableIndex=v,b.originalEvent=m,b.pullMode=g?g.lastPutMode:void 0;var y=u({},p,X.getEventProperties(e,n));for(var S in y)b[S]=y[S];i&&i.dispatchEvent(b),w[E]&&w[E].call(n,b)}}(u({putSortable:at,cloneEl:Q,targetEl:W,rootEl:Z,oldIndex:nt,oldDraggableIndex:et,newIndex:it,newDraggableIndex:rt},t))}if("undefined"==typeof window||!window.document)throw new Error("Sortable.js requires a window with a document");var W,$,q,Z,J,K,Q,tt,nt,it,et,rt,ot,at,st,ut,lt,ct,ht,ft,dt,vt,mt,gt,pt,bt=!1,wt=!1,Et=[],yt=!1,St=!1,It=[],Tt=!1,Mt=[],xt=m,Ot=f||h?"cssFloat":"float",Dt=!g&&!m&&"draggable"in document.createElement("div"),_t=function(){if(h)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),Ct=function(t,n){var i=x(t),e=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=A(t,0,n),o=A(t,1,n),a=r&&x(r),s=o&&x(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+C(r).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+C(o).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&a.float&&"none"!==a.float?!o||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=e&&"none"===i[Ot]||o&&"none"===i[Ot]&&u+l>e)?"vertical":"horizontal"},kt=function(t){function n(t,i){return function(e,r,o,a){if(null==t&&(i||e.options.group.name&&r.options.group.name&&e.options.group.name===r.options.group.name))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return n(t(e,r,o,a),i)(e,r,o,a);var s=(i?e:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var i={},e=t.group;e&&"object"==o(e)||(e={name:e}),i.name=e.name,i.checkPull=n(e.pull,!0),i.checkPut=n(e.put),i.revertClone=e.revertClone,t.group=i},At=function(){!_t&&q&&x(q,"display","none")},jt=function(){!_t&&q&&x(q,"display","")};document.addEventListener("click",(function(t){if(wt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),wt=!1,!1}),!0);var zt=function(t){if(W){var n=(r=(t=t.touches?t.touches[0]:t).clientX,o=t.clientY,Et.some((function(t){if(!j(t)){var n=C(t),i=t[B].options.emptyInsertThreshold;return i&&r>=n.left-i&&r<=n.right+i&&o>=n.top-i&&o<=n.bottom+i?a=t:void 0}})),a);if(n){var i={};for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[B]._onDragOver(i)}}var r,o,a},Lt=function(t){W&&W.parentNode[B]._isOutsideThisEl(t.target)};function Pt(t,n){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=s({},n),t[B]=this;var i,e,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ct(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,n){t.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Pt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in X.initializePlugins(this,t,r),r)!(o in n)&&(n[o]=r[o]);for(var a in kt(n),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!n.forceFallback&&Dt,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Et.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),s(this,(e=[],{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==x(t,"display")&&t!==Pt.ghost){e.push({target:t,rect:C(t)});var n=u({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=O(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,n){for(var i in t)if(t.hasOwnProperty(i))for(var e in n)if(n.hasOwnProperty(e)&&n[e]===t[i][e])return Number(i);return-1}(e,{target:t}),1)},animateAll:function(t){var n=this;if(!this.options.animation)return clearTimeout(i),void("function"==typeof t&&t());var r=!1,o=0;e.forEach((function(t){var i=0,e=t.target,a=e.fromRect,s=C(e),u=e.prevFromRect,l=e.prevToRect,c=t.rect,h=O(e,!0);h&&(s.top-=h.f,s.left-=h.e),e.toRect=s,e.thisAnimationDuration&&F(u,s)&&!F(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(i=function(t,n,i,e){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*e.animation}(c,u,l,n.options)),F(s,a)||(e.prevFromRect=a,e.prevToRect=s,i||(i=n.options.animation),n.animate(e,c,s,i)),i&&(r=!0,o=Math.max(o,i),clearTimeout(e.animationResetTimer),e.animationResetTimer=setTimeout((function(){e.animationTime=0,e.prevFromRect=null,e.fromRect=null,e.prevToRect=null,e.thisAnimationDuration=null}),i),e.thisAnimationDuration=i)})),clearTimeout(i),r?i=setTimeout((function(){"function"==typeof t&&t()}),o):"function"==typeof t&&t(),e=[]},animate:function(t,n,i,e){if(e){x(t,"transition",""),x(t,"transform","");var r=O(this.el),o=(n.left-i.left)/(r&&r.a||1),a=(n.top-i.top)/(r&&r.d||1);t.animatingX=!!o,t.animatingY=!!a,x(t,"transform","translate3d("+o+"px,"+a+"px,0)"),x(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),x(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){x(t,"transition",""),x(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}))}function Ft(t,n,i,e,r,o,a,s){var u,l,c=t[B],d=c.options.onMove;return!window.CustomEvent||h||f?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=n,u.from=t,u.dragged=i,u.draggedRect=e,u.related=r||n,u.relatedRect=o||C(n),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),d&&(l=d.call(c,u,a)),l}function Nt(t){t.draggable=!1}function Ht(){Tt=!1}function Ut(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,i=n.length,e=0;i--;)e+=n.charCodeAt(i);return e.toString(36)}function Bt(t){return setTimeout(t,0)}function Gt(t){return clearTimeout(t)}Pt.prototype={constructor:Pt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,W):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,e=this.options,r=e.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=e.filter;if(function(t){Mt.length=0;for(var n=t.getElementsByTagName("input"),i=n.length;i--;){var e=n[i];e.checked&&Mt.push(e)}}(i),!W&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||e.disabled||u.isContentEditable||(s=S(s,e.draggable,i,!1))&&s.animated||K===s)){if(nt=z(s),et=z(s,e.draggable),"function"==typeof l){if(l.call(this,t,s,this))return V({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:i,fromEl:i}),Y("filter",n,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(e){if(e=S(u,e.trim(),i,!1))return V({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:i,toEl:i}),Y("filter",n,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());e.handle&&!S(u,e.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,n,i){var e,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(i&&!W&&i.parentNode===o){var u=C(i);if(Z=o,$=(W=i).parentNode,J=W.nextSibling,K=i,ot=a.group,Pt.dragged=W,ht=(st={target:W,clientX:(n||t).clientX,clientY:(n||t).clientY}).clientX-u.left,ft=st.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,W.style["will-change"]="all",e=function(){Y("delayEnded",r,{evt:t}),Pt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!d&&r.nativeDraggable&&(W.draggable=!0),r._triggerDragStart(t,n),V({sortable:r,name:"choose",originalEvent:t}),M(W,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){D(W,t.trim(),Nt)})),b(s,"dragover",zt),b(s,"mousemove",zt),b(s,"touchmove",zt),b(s,"mouseup",r._onDrop),b(s,"touchend",r._onDrop),b(s,"touchcancel",r._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,W.draggable=!0),Y("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!n||this.nativeDraggable&&(f||h))e();else{if(Pt.eventCanceled)return void this._onDrop();b(s,"mouseup",r._disableDelayedDrag),b(s,"touchend",r._disableDelayedDrag),b(s,"touchcancel",r._disableDelayedDrag),b(s,"mousemove",r._delayedDragTouchMoveHandler),b(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&b(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(e,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){W&&Nt(W),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._disableDelayedDrag),w(t,"touchend",this._disableDelayedDrag),w(t,"touchcancel",this._disableDelayedDrag),w(t,"mousemove",this._delayedDragTouchMoveHandler),w(t,"touchmove",this._delayedDragTouchMoveHandler),w(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||"touch"==t.pointerType&&t,!this.nativeDraggable||n?b(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(b(W,"dragend",this),b(Z,"dragstart",this._onDragStart));try{document.selection?Bt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(t,n){if(bt=!1,Z&&W){Y("dragStarted",this,{evt:n}),this.nativeDraggable&&b(document,"dragover",Lt);var i=this.options;!t&&M(W,i.dragClass,!1),M(W,i.ghostClass,!0),Pt.active=this,t&&this._appendGhost(),V({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,At();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY))!==n;)n=t;if(W.parentNode[B]._isOutsideThisEl(t),n)do{if(n[B]&&n[B]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:n})&&!this.options.dragoverBubble)break;t=n}while(n=n.parentNode);jt()}},_onTouchMove:function(t){if(st){var n=this.options,i=n.fallbackTolerance,e=n.fallbackOffset,r=t.touches?t.touches[0]:t,o=q&&O(q),a=q&&o&&o.a,s=q&&o&&o.d,u=xt&&pt&&L(pt),l=(r.clientX-st.clientX+e.x)/(a||1)+(u?u[0]-It[0]:0)/(a||1),c=(r.clientY-st.clientY+e.y)/(s||1)+(u?u[1]-It[1]:0)/(s||1);if(!Pt.active&&!bt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))e.right+10||t.clientX<=e.right&&t.clientY>e.bottom&&t.clientX>=e.left:t.clientX>e.right&&t.clientY>e.top||t.clientX<=e.right&&t.clientY>e.bottom+10}(t,r,this)&&!g.animated){if(g===W)return N(!1);if(g&&o===t.target&&(a=g),a&&(i=C(a)),!1!==Ft(Z,o,W,n,a,i,t,!!a))return F(),o.appendChild(W),$=o,U(),N(!0)}else if(a.parentNode===o){i=C(a);var p,b,w,E=W.parentNode!==o,y=!function(t,n,i){var e=i?t.left:t.top,r=i?n.left:n.top;return e===r||(i?t.right:t.bottom)===(i?n.right:n.bottom)||e+(i?t.width:t.height)/2===r+(i?n.width:n.height)/2}(W.animated&&W.toRect||n,a.animated&&a.toRect||i,r),I=r?"top":"left",T=k(a,"top","top")||k(W,"top","top"),O=T?T.scrollTop:void 0;if(vt!==a&&(b=i[I],yt=!1,St=!y&&s.invertSwap||E),0!==(p=function(t,n,i,e,r,o,a,s){var u=e?t.clientY:t.clientX,l=e?i.height:i.width,c=e?i.top:i.left,h=e?i.bottom:i.right,f=!1;if(!a)if(s&>c+l*o/2:uh-gt)return-mt}else if(u>c+l*(1-r)/2&&uh-l*o/2)?u>c+l/2?1:-1:0}(t,a,i,r,y?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,St,vt===a))){var D=z(W);do{w=$.children[D-=p]}while(w&&("none"===x(w,"display")||w===q))}if(0===p||w===a)return N(!1);vt=a,mt=p;var _=a.nextElementSibling,A=!1,L=Ft(Z,o,W,n,a,i,t,A=1===p);if(!1!==L)return 1!==L&&-1!==L||(A=1===L),Tt=!0,setTimeout(Ht,30),F(),A&&!_?o.appendChild(W):a.parentNode.insertBefore(W,A?_:a),T&&H(T,0,O-T.scrollTop),$=W.parentNode,void 0===b||St||(gt=Math.abs(b-C(a)[I])),U(),N(!0)}if(o.contains(W))return N(!1)}return!1}function P(s,l){Y(s,v,u({evt:t,isOwner:h,axis:r?"vertical":"horizontal",revert:e,dragRect:n,targetRect:i,canSort:f,fromSortable:d,target:a,completed:N,onMove:function(i,e){return Ft(Z,o,W,n,i,C(i),t,e)},changed:U},l))}function F(){P("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function N(n){return P("dragOverCompleted",{insertion:n}),n&&(h?c._hideClone():c._showClone(v),v!==d&&(M(W,at?at.options.ghostClass:c.options.ghostClass,!1),M(W,s.ghostClass,!0)),at!==v&&v!==Pt.active?at=v:v===Pt.active&&at&&(at=null),d===v&&(v._ignoreWhileAnimating=a),v.animateAll((function(){P("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===W&&!W.animated||a===o&&!a.animated)&&(vt=null),s.dragoverBubble||t.rootEl||a===document||(W.parentNode[B]._isOutsideThisEl(t.target),!n&&zt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function U(){it=z(W),rt=z(W,s.draggable),V({sortable:v,name:"change",toEl:o,newIndex:it,newDraggableIndex:rt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",zt),w(document,"mousemove",zt),w(document,"touchmove",zt)},_offUpEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._onDrop),w(t,"touchend",this._onDrop),w(t,"pointerup",this._onDrop),w(t,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;it=z(W),rt=z(W,i.draggable),Y("drop",this,{evt:t}),$=W&&W.parentNode,it=z(W),rt=z(W,i.draggable),Pt.eventCanceled?this._nulling():(bt=!1,St=!1,yt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Gt(this.cloneId),Gt(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),v&&x(document.body,"user-select",""),t&&(dt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),q&&q.parentNode&&q.parentNode.removeChild(q),(Z===$||at&&"clone"!==at.lastPutMode)&&Q&&Q.parentNode&&Q.parentNode.removeChild(Q),W&&(this.nativeDraggable&&w(W,"dragend",this),Nt(W),W.style["will-change"]="",dt&&!bt&&M(W,at?at.options.ghostClass:this.options.ghostClass,!1),M(W,this.options.chosenClass,!1),V({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),Z!==$?(it>=0&&(V({rootEl:$,name:"add",toEl:$,fromEl:Z,originalEvent:t}),V({sortable:this,name:"remove",toEl:$,originalEvent:t}),V({rootEl:$,name:"sort",toEl:$,fromEl:Z,originalEvent:t}),V({sortable:this,name:"sort",toEl:$,originalEvent:t})),at&&at.save()):it!==nt&&it>=0&&(V({sortable:this,name:"update",toEl:$,originalEvent:t}),V({sortable:this,name:"sort",toEl:$,originalEvent:t})),Pt.active&&(null!=it&&-1!==it||(it=nt,rt=et),V({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){Y("nulling",this),Z=W=$=q=J=Q=K=tt=st=ut=dt=it=rt=nt=et=vt=mt=at=ot=Pt.dragged=Pt.ghost=Pt.clone=Pt.active=null,Mt.forEach((function(t){t.checked=!0})),Mt.length=lt=ct=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":W&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,n=[],i=this.el.children,e=0,r=i.length,o=this.options;e[2,1,1,1,3].map(t=>{let n="";for(let i=0;ithis.setUpItems()),this.sortables=[],this.handleFilter=t=>{const n=t.detail.map(t=>t.value);this.items.forEach(t=>{-1===n.indexOf(t.value)?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.calciteListChange=n(this,"calciteListChange",7),this.calciteListOrderChange=n(this,"calciteListOrderChange",7)}connectedCallback(){this.setUpItems()}componentDidLoad(){this.items.forEach(t=>{t.hasAttribute("selected")&&this.selectedValues.set(t.getAttribute("value"),t)}),this.observer.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.observer.disconnect(),this.dragEnabled&&this.cleanUpDragAndDrop()}calciteListItemChangeHandler(t){const{selectedValues:n}=this,{value:i,selected:e,shiftPressed:r}=t.detail,o=t.target;e?(this.multiple||this.deselectSiblingItems(o),this.multiple&&r&&this.selectSiblings(o),n.set(i,o)):n.delete(i),this.lastSelectedItem=o,this.calciteListChange.emit(n)}setUpItems(){this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item")),this.items.forEach(t=>{const n=this.getIconType();n?t.setAttribute("icon",n):t.removeAttribute("icon"),t.hasAttribute("selected")&&this.selectedValues.set(t.getAttribute("value"),t)}),this.dragEnabled&&this.setUpDragAndDrop(),this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpDragAndDrop(){this.sortables.push(Pt.create(this.el,{group:this.guid,handle:".handle",draggable:"calcite-value-list-item",onUpdate:()=>{this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map(t=>t.value);this.calciteListOrderChange.emit(t)}}))}cleanUpDragAndDrop(){this.sortables.forEach(t=>{t.destroy()}),this.sortables=[]}deselectSiblingItems(t){this.items.forEach(n=>{n!==t&&(n.toggleSelected(!1),this.selectedValues.has(n.value)&&this.selectedValues.delete(n.value))})}selectSiblings(t){if(!this.lastSelectedItem)return;const{items:n}=this,i=n.indexOf(this.lastSelectedItem),e=n.indexOf(t);n.slice(Math.min(i,e),Math.max(i,e)).forEach(t=>{t.toggleSelected(!0),this.selectedValues.set(t.value,t)})}getItemData(){const t=[];return this.items.forEach(n=>{const i={};Array.from(n.attributes).forEach(t=>{i[t.name]=t.value}),i.metadata=n.metadata,t.push(i)}),t}async getSelectedItems(){return this.selectedValues}getIconType(){let t=null;return this.dragEnabled&&(t=rn.grip),t}render(){return i(e,null,i("header",null,this.filterEnabled?i("calcite-filter",{data:this.dataForFilter,textPlaceholder:"Filter results","aria-label":"Filter results",onCalciteFilterChange:this.handleFilter}):null,i("slot",{name:"action"})),i("slot",null))}get el(){return r(this)}static get style(){return":root{--calcite-app-line-height:1.3rem;--calcite-app-base-font-size:14px;--calcite-app-font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif;--calcite-app-font-family-monospace:\"Lucida Console\",Monaco,monospace;--calcite-app-font-size-2:1.429rem;--calcite-app-font-size-1:1.143rem;--calcite-app-font-size-0:1rem;--calcite-app-font-size--1:0.858rem;--calcite-app-font-weight:400;--calcite-app-font-weight-heading:600;--calcite-app-font-weight-demi:600;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height);--calcite-app-side-spacing:15px;--calcite-app-cap-spacing:15px;--calcite-app-side-spacing-three-quarters:11px;--calcite-app-cap-spacing-three-quarters:11px;--calcite-app-side-spacing-half:7px;--calcite-app-cap-spacing-half:7px;--calcite-app-side-spacing-third:5px;--calcite-app-cap-spacing-third:5px;--calcite-app-side-spacing-quarter:3px;--calcite-app-cap-spacing-quarter:3px;--calcite-app-side-spacing-eighth:2px;--calcite-app-cap-spacing-eighth:2px;--calcite-app-cap-spacing-minimum:1px;--calcite-app-side-spacing-plus-half:22px;--calcite-app-cap-spacing-plus-half:22px;--calcite-app-side-spacing-double:30px;--calcite-app-cap-spacing-double:30px;--calcite-app-menu-min-width:10rem;--calcite-app-menu-offset:0px;--calcite-app-icon-size:16px;--calcite-app-border-radius:3px;--calcite-app-shadow-0:0 2px 4px rgba(0,0,0,0.1);--calcite-app-shadow-1:0 0 12px 0 rgba(0,0,0,0.05);--calcite-app-shadow-1-hover:0 0 16px 0 rgba(0,0,0,0.1);--calcite-app-shadow-1--press:0 0 16px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2:0 0 16px 0 rgba(0,0,0,0.15);--calcite-app-shadow-2-hover:0 0 20px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2-press:0 0 20px 0 rgba(0,0,0,0.3);--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}: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-subtle:#2b2b2b}:host([theme=light]){--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}:root{--calcite-app-animation-time:250ms;--calcite-app-animation-time-fast:83ms;--calcite-app-animation-time-slow:500ms;--calcite-app-easing-function:ease-in-out}\@-webkit-keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@-webkit-keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}:host{background-color:var(--calcite-app-background);color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height)}:host([hidden]){display:none}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.heading{padding:0;margin:0}.header .heading{-ms-flex:1;flex:1;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-2);font-weight:var(--calcite-app-font-weight)}h2.heading{font-size:var(--calcite-app-font-size-1)}h2.heading,h3.heading,h4.heading,h5.heading{font-weight:var(--calcite-app-font-weight-demi)}h3.heading,h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host{-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex-flow:column;flex-flow:column;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}:host,header{display:-ms-flexbox;display:flex}calcite-filter{margin-bottom:var(--calcite-app-cap-spacing-quarter);-webkit-box-shadow:0 1px 0 var(--calcite-app-border);box-shadow:0 1px 0 var(--calcite-app-border)}"}};export{on as calcite_value_list}; \ No newline at end of file + */function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function s(){return(s=Object.assign||function(t){for(var n=1;n=0||(r[i]=t[i]);return r}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function c(t){return!!navigator.userAgent.match(t)}var h=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),f=c(/Edge/i),d=c(/firefox/i),v=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),m=c(/iP(ad|od|hone)/i),g=c(/chrome/i)&&c(/android/i),p={capture:!1,passive:!1};function b(t,n,i){t.addEventListener(n,i,!h&&p)}function w(t,n,i){t.removeEventListener(n,i,!h&&p)}function E(t,n){if(n){if(">"===n[0]&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch(i){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function S(t,n,i,e){if(t){i=i||document;do{if(null!=n&&(">"===n[0]?t.parentNode===i&&E(t,n):E(t,n))||e&&t===i)return t;if(t===i)break}while(t=y(t))}return null}var I,T=/\s+/g;function M(t,n,i){if(t&&n)if(t.classList)t.classList[i?"add":"remove"](n);else{var e=(" "+t.className+" ").replace(T," ").replace(" "+n+" "," ");t.className=(e+(i?" "+n:"")).replace(T," ")}}function x(t,n,i){var e=t&&t.style;if(e){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===n?i:i[n];n in e||-1!==n.indexOf("webkit")||(n="-webkit-"+n),e[n]=i+("string"==typeof i?"":"px")}}function O(t,n){var i="";if("string"==typeof t)i=t;else do{var e=x(t,"transform");e&&"none"!==e&&(i=e+" "+i)}while(!n&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return r&&new r(i)}function D(t,n,i){if(t){var e=t.getElementsByTagName(n),r=0,o=e.length;if(i)for(;r=o:r<=o))return e;if(e===_())break;e=P(e,!1)}return!1}function A(t,n,i){for(var e=0,r=0,o=t.children;r2&&void 0!==arguments[2]?arguments[2]:{},e=i.evt,r=l(i,["evt"]);X.pluginEvent.bind(Pt)(t,n,u({dragEl:W,parentEl:$,ghostEl:q,rootEl:Z,nextEl:J,lastDownEl:K,cloneEl:Q,cloneHidden:tt,dragStarted:dt,putSortable:at,activeSortable:Pt.active,originalEvent:e,oldIndex:nt,oldDraggableIndex:et,newIndex:it,newDraggableIndex:rt,hideGhostForTarget:At,unhideGhostForTarget:jt,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(t){V({sortable:n,name:t,originalEvent:e})}},r))};function V(t){!function(t){var n=t.sortable,i=t.rootEl,e=t.name,r=t.targetEl,o=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,v=t.newDraggableIndex,m=t.originalEvent,g=t.putSortable,p=t.extraEventProperties;if(n=n||i&&i[B]){var b,w=n.options,E="on"+e.charAt(0).toUpperCase()+e.substr(1);!window.CustomEvent||h||f?(b=document.createEvent("Event")).initEvent(e,!0,!0):b=new CustomEvent(e,{bubbles:!0,cancelable:!0}),b.to=a||i,b.from=s||i,b.item=r||i,b.clone=o,b.oldIndex=l,b.newIndex=c,b.oldDraggableIndex=d,b.newDraggableIndex=v,b.originalEvent=m,b.pullMode=g?g.lastPutMode:void 0;var y=u({},p,X.getEventProperties(e,n));for(var S in y)b[S]=y[S];i&&i.dispatchEvent(b),w[E]&&w[E].call(n,b)}}(u({putSortable:at,cloneEl:Q,targetEl:W,rootEl:Z,oldIndex:nt,oldDraggableIndex:et,newIndex:it,newDraggableIndex:rt},t))}if("undefined"==typeof window||!window.document)throw new Error("Sortable.js requires a window with a document");var W,$,q,Z,J,K,Q,tt,nt,it,et,rt,ot,at,st,ut,lt,ct,ht,ft,dt,vt,mt,gt,pt,bt=!1,wt=!1,Et=[],yt=!1,St=!1,It=[],Tt=!1,Mt=[],xt=m,Ot=f||h?"cssFloat":"float",Dt=!g&&!m&&"draggable"in document.createElement("div"),_t=function(){if(h)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),Ct=function(t,n){var i=x(t),e=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=A(t,0,n),o=A(t,1,n),a=r&&x(r),s=o&&x(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+C(r).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+C(o).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&a.float&&"none"!==a.float?!o||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=e&&"none"===i[Ot]||o&&"none"===i[Ot]&&u+l>e)?"vertical":"horizontal"},kt=function(t){function n(t,i){return function(e,r,o,a){if(null==t&&(i||e.options.group.name&&r.options.group.name&&e.options.group.name===r.options.group.name))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return n(t(e,r,o,a),i)(e,r,o,a);var s=(i?e:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var i={},e=t.group;e&&"object"==o(e)||(e={name:e}),i.name=e.name,i.checkPull=n(e.pull,!0),i.checkPut=n(e.put),i.revertClone=e.revertClone,t.group=i},At=function(){!_t&&q&&x(q,"display","none")},jt=function(){!_t&&q&&x(q,"display","")};document.addEventListener("click",(function(t){if(wt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),wt=!1,!1}),!0);var zt=function(t){if(W){var n=(r=(t=t.touches?t.touches[0]:t).clientX,o=t.clientY,Et.some((function(t){if(!j(t)){var n=C(t),i=t[B].options.emptyInsertThreshold;return i&&r>=n.left-i&&r<=n.right+i&&o>=n.top-i&&o<=n.bottom+i?a=t:void 0}})),a);if(n){var i={};for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[B]._onDragOver(i)}}var r,o,a},Lt=function(t){W&&W.parentNode[B]._isOutsideThisEl(t.target)};function Pt(t,n){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=s({},n),t[B]=this;var i,e,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ct(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,n){t.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Pt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in X.initializePlugins(this,t,r),r)!(o in n)&&(n[o]=r[o]);for(var a in kt(n),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!n.forceFallback&&Dt,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Et.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),s(this,(e=[],{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==x(t,"display")&&t!==Pt.ghost){e.push({target:t,rect:C(t)});var n=u({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=O(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,n){for(var i in t)if(t.hasOwnProperty(i))for(var e in n)if(n.hasOwnProperty(e)&&n[e]===t[i][e])return Number(i);return-1}(e,{target:t}),1)},animateAll:function(t){var n=this;if(!this.options.animation)return clearTimeout(i),void("function"==typeof t&&t());var r=!1,o=0;e.forEach((function(t){var i=0,e=t.target,a=e.fromRect,s=C(e),u=e.prevFromRect,l=e.prevToRect,c=t.rect,h=O(e,!0);h&&(s.top-=h.f,s.left-=h.e),e.toRect=s,e.thisAnimationDuration&&F(u,s)&&!F(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(i=function(t,n,i,e){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*e.animation}(c,u,l,n.options)),F(s,a)||(e.prevFromRect=a,e.prevToRect=s,i||(i=n.options.animation),n.animate(e,c,s,i)),i&&(r=!0,o=Math.max(o,i),clearTimeout(e.animationResetTimer),e.animationResetTimer=setTimeout((function(){e.animationTime=0,e.prevFromRect=null,e.fromRect=null,e.prevToRect=null,e.thisAnimationDuration=null}),i),e.thisAnimationDuration=i)})),clearTimeout(i),r?i=setTimeout((function(){"function"==typeof t&&t()}),o):"function"==typeof t&&t(),e=[]},animate:function(t,n,i,e){if(e){x(t,"transition",""),x(t,"transform","");var r=O(this.el),o=(n.left-i.left)/(r&&r.a||1),a=(n.top-i.top)/(r&&r.d||1);t.animatingX=!!o,t.animatingY=!!a,x(t,"transform","translate3d("+o+"px,"+a+"px,0)"),x(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),x(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){x(t,"transition",""),x(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}))}function Ft(t,n,i,e,r,o,a,s){var u,l,c=t[B],d=c.options.onMove;return!window.CustomEvent||h||f?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=n,u.from=t,u.dragged=i,u.draggedRect=e,u.related=r||n,u.relatedRect=o||C(n),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),d&&(l=d.call(c,u,a)),l}function Nt(t){t.draggable=!1}function Ht(){Tt=!1}function Ut(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,i=n.length,e=0;i--;)e+=n.charCodeAt(i);return e.toString(36)}function Bt(t){return setTimeout(t,0)}function Gt(t){return clearTimeout(t)}Pt.prototype={constructor:Pt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,W):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,e=this.options,r=e.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=e.filter;if(function(t){Mt.length=0;for(var n=t.getElementsByTagName("input"),i=n.length;i--;){var e=n[i];e.checked&&Mt.push(e)}}(i),!W&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||e.disabled||u.isContentEditable||(s=S(s,e.draggable,i,!1))&&s.animated||K===s)){if(nt=z(s),et=z(s,e.draggable),"function"==typeof l){if(l.call(this,t,s,this))return V({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:i,fromEl:i}),Y("filter",n,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(e){if(e=S(u,e.trim(),i,!1))return V({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:i,toEl:i}),Y("filter",n,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());e.handle&&!S(u,e.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,n,i){var e,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(i&&!W&&i.parentNode===o){var u=C(i);if(Z=o,$=(W=i).parentNode,J=W.nextSibling,K=i,ot=a.group,Pt.dragged=W,ht=(st={target:W,clientX:(n||t).clientX,clientY:(n||t).clientY}).clientX-u.left,ft=st.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,W.style["will-change"]="all",e=function(){Y("delayEnded",r,{evt:t}),Pt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!d&&r.nativeDraggable&&(W.draggable=!0),r._triggerDragStart(t,n),V({sortable:r,name:"choose",originalEvent:t}),M(W,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){D(W,t.trim(),Nt)})),b(s,"dragover",zt),b(s,"mousemove",zt),b(s,"touchmove",zt),b(s,"mouseup",r._onDrop),b(s,"touchend",r._onDrop),b(s,"touchcancel",r._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,W.draggable=!0),Y("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!n||this.nativeDraggable&&(f||h))e();else{if(Pt.eventCanceled)return void this._onDrop();b(s,"mouseup",r._disableDelayedDrag),b(s,"touchend",r._disableDelayedDrag),b(s,"touchcancel",r._disableDelayedDrag),b(s,"mousemove",r._delayedDragTouchMoveHandler),b(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&b(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(e,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){W&&Nt(W),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._disableDelayedDrag),w(t,"touchend",this._disableDelayedDrag),w(t,"touchcancel",this._disableDelayedDrag),w(t,"mousemove",this._delayedDragTouchMoveHandler),w(t,"touchmove",this._delayedDragTouchMoveHandler),w(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||"touch"==t.pointerType&&t,!this.nativeDraggable||n?b(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(b(W,"dragend",this),b(Z,"dragstart",this._onDragStart));try{document.selection?Bt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(t,n){if(bt=!1,Z&&W){Y("dragStarted",this,{evt:n}),this.nativeDraggable&&b(document,"dragover",Lt);var i=this.options;!t&&M(W,i.dragClass,!1),M(W,i.ghostClass,!0),Pt.active=this,t&&this._appendGhost(),V({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,At();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY))!==n;)n=t;if(W.parentNode[B]._isOutsideThisEl(t),n)do{if(n[B]&&n[B]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:n})&&!this.options.dragoverBubble)break;t=n}while(n=n.parentNode);jt()}},_onTouchMove:function(t){if(st){var n=this.options,i=n.fallbackTolerance,e=n.fallbackOffset,r=t.touches?t.touches[0]:t,o=q&&O(q),a=q&&o&&o.a,s=q&&o&&o.d,u=xt&&pt&&L(pt),l=(r.clientX-st.clientX+e.x)/(a||1)+(u?u[0]-It[0]:0)/(a||1),c=(r.clientY-st.clientY+e.y)/(s||1)+(u?u[1]-It[1]:0)/(s||1);if(!Pt.active&&!bt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))e.right+10||t.clientX<=e.right&&t.clientY>e.bottom&&t.clientX>=e.left:t.clientX>e.right&&t.clientY>e.top||t.clientX<=e.right&&t.clientY>e.bottom+10}(t,r,this)&&!g.animated){if(g===W)return N(!1);if(g&&o===t.target&&(a=g),a&&(i=C(a)),!1!==Ft(Z,o,W,n,a,i,t,!!a))return F(),o.appendChild(W),$=o,U(),N(!0)}else if(a.parentNode===o){i=C(a);var p,b,w,E=W.parentNode!==o,y=!function(t,n,i){var e=i?t.left:t.top,r=i?n.left:n.top;return e===r||(i?t.right:t.bottom)===(i?n.right:n.bottom)||e+(i?t.width:t.height)/2===r+(i?n.width:n.height)/2}(W.animated&&W.toRect||n,a.animated&&a.toRect||i,r),I=r?"top":"left",T=k(a,"top","top")||k(W,"top","top"),O=T?T.scrollTop:void 0;if(vt!==a&&(b=i[I],yt=!1,St=!y&&s.invertSwap||E),0!==(p=function(t,n,i,e,r,o,a,s){var u=e?t.clientY:t.clientX,l=e?i.height:i.width,c=e?i.top:i.left,h=e?i.bottom:i.right,f=!1;if(!a)if(s&>c+l*o/2:uh-gt)return-mt}else if(u>c+l*(1-r)/2&&uh-l*o/2)?u>c+l/2?1:-1:0}(t,a,i,r,y?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,St,vt===a))){var D=z(W);do{w=$.children[D-=p]}while(w&&("none"===x(w,"display")||w===q))}if(0===p||w===a)return N(!1);vt=a,mt=p;var _=a.nextElementSibling,A=!1,L=Ft(Z,o,W,n,a,i,t,A=1===p);if(!1!==L)return 1!==L&&-1!==L||(A=1===L),Tt=!0,setTimeout(Ht,30),F(),A&&!_?o.appendChild(W):a.parentNode.insertBefore(W,A?_:a),T&&H(T,0,O-T.scrollTop),$=W.parentNode,void 0===b||St||(gt=Math.abs(b-C(a)[I])),U(),N(!0)}if(o.contains(W))return N(!1)}return!1}function P(s,l){Y(s,v,u({evt:t,isOwner:h,axis:r?"vertical":"horizontal",revert:e,dragRect:n,targetRect:i,canSort:f,fromSortable:d,target:a,completed:N,onMove:function(i,e){return Ft(Z,o,W,n,i,C(i),t,e)},changed:U},l))}function F(){P("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function N(n){return P("dragOverCompleted",{insertion:n}),n&&(h?c._hideClone():c._showClone(v),v!==d&&(M(W,at?at.options.ghostClass:c.options.ghostClass,!1),M(W,s.ghostClass,!0)),at!==v&&v!==Pt.active?at=v:v===Pt.active&&at&&(at=null),d===v&&(v._ignoreWhileAnimating=a),v.animateAll((function(){P("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===W&&!W.animated||a===o&&!a.animated)&&(vt=null),s.dragoverBubble||t.rootEl||a===document||(W.parentNode[B]._isOutsideThisEl(t.target),!n&&zt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function U(){it=z(W),rt=z(W,s.draggable),V({sortable:v,name:"change",toEl:o,newIndex:it,newDraggableIndex:rt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",zt),w(document,"mousemove",zt),w(document,"touchmove",zt)},_offUpEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._onDrop),w(t,"touchend",this._onDrop),w(t,"pointerup",this._onDrop),w(t,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;it=z(W),rt=z(W,i.draggable),Y("drop",this,{evt:t}),$=W&&W.parentNode,it=z(W),rt=z(W,i.draggable),Pt.eventCanceled?this._nulling():(bt=!1,St=!1,yt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Gt(this.cloneId),Gt(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),v&&x(document.body,"user-select",""),t&&(dt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),q&&q.parentNode&&q.parentNode.removeChild(q),(Z===$||at&&"clone"!==at.lastPutMode)&&Q&&Q.parentNode&&Q.parentNode.removeChild(Q),W&&(this.nativeDraggable&&w(W,"dragend",this),Nt(W),W.style["will-change"]="",dt&&!bt&&M(W,at?at.options.ghostClass:this.options.ghostClass,!1),M(W,this.options.chosenClass,!1),V({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),Z!==$?(it>=0&&(V({rootEl:$,name:"add",toEl:$,fromEl:Z,originalEvent:t}),V({sortable:this,name:"remove",toEl:$,originalEvent:t}),V({rootEl:$,name:"sort",toEl:$,fromEl:Z,originalEvent:t}),V({sortable:this,name:"sort",toEl:$,originalEvent:t})),at&&at.save()):it!==nt&&it>=0&&(V({sortable:this,name:"update",toEl:$,originalEvent:t}),V({sortable:this,name:"sort",toEl:$,originalEvent:t})),Pt.active&&(null!=it&&-1!==it||(it=nt,rt=et),V({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){Y("nulling",this),Z=W=$=q=J=Q=K=tt=st=ut=dt=it=rt=nt=et=vt=mt=at=ot=Pt.dragged=Pt.ghost=Pt.clone=Pt.active=null,Mt.forEach((function(t){t.checked=!0})),Mt.length=lt=ct=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":W&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,n=[],i=this.el.children,e=0,r=i.length,o=this.options;e[2,1,1,1,3].map(t=>{let n="";for(let i=0;ithis.setUpItems()),this.sortables=[],this.handleFilter=t=>{const n=t.detail.map(t=>t.value);this.items.forEach(t=>{-1===n.indexOf(t.value)?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.calciteListChange=n(this,"calciteListChange",7),this.calciteListOrderChange=n(this,"calciteListOrderChange",7)}connectedCallback(){this.setUpItems()}componentDidLoad(){this.items.forEach(t=>{t.hasAttribute("selected")&&this.selectedValues.set(t.getAttribute("value"),t)}),this.observer.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.observer.disconnect(),this.dragEnabled&&this.cleanUpDragAndDrop()}calciteListItemChangeHandler(t){const{selectedValues:n}=this,{value:i,selected:e,shiftPressed:r}=t.detail,o=t.target;e?(this.multiple||this.deselectSiblingItems(o),this.multiple&&r&&this.selectSiblings(o),n.set(i,o)):n.delete(i),this.lastSelectedItem=o,this.calciteListChange.emit(n)}setUpItems(){this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item")),this.items.forEach(t=>{const n=this.getIconType();n?t.setAttribute("icon",n):t.removeAttribute("icon"),t.hasAttribute("selected")&&this.selectedValues.set(t.getAttribute("value"),t)}),this.dragEnabled&&this.setUpDragAndDrop(),this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpDragAndDrop(){this.sortables.push(Pt.create(this.el,{group:this.guid,handle:".handle",draggable:"calcite-value-list-item",onUpdate:()=>{this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map(t=>t.value);this.calciteListOrderChange.emit(t)}}))}cleanUpDragAndDrop(){this.sortables.forEach(t=>{t.destroy()}),this.sortables=[]}deselectSiblingItems(t){this.items.forEach(n=>{n!==t&&(n.toggleSelected(!1),this.selectedValues.has(n.value)&&this.selectedValues.delete(n.value))})}selectSiblings(t){if(!this.lastSelectedItem)return;const{items:n}=this,i=n.indexOf(this.lastSelectedItem),e=n.indexOf(t);n.slice(Math.min(i,e),Math.max(i,e)).forEach(t=>{t.toggleSelected(!0),this.selectedValues.set(t.value,t)})}getItemData(){const t=[];return this.items.forEach(n=>{const i={};Array.from(n.attributes).forEach(t=>{i[t.name]=t.value}),i.metadata=n.metadata,t.push(i)}),t}async getSelectedItems(){return this.selectedValues}getIconType(){let t=null;return this.dragEnabled&&(t=rn.grip),t}render(){return i(e,null,i("header",null,this.filterEnabled?i("calcite-filter",{data:this.dataForFilter,textPlaceholder:"Filter results","aria-label":"Filter results",onCalciteFilterChange:this.handleFilter}):null,i("slot",{name:"menu-actions"})),i("slot",null))}get el(){return r(this)}static get style(){return":root{--calcite-app-line-height:1.3rem;--calcite-app-base-font-size:14px;--calcite-app-font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif;--calcite-app-font-family-monospace:\"Lucida Console\",Monaco,monospace;--calcite-app-font-size-2:1.429rem;--calcite-app-font-size-1:1.143rem;--calcite-app-font-size-0:1rem;--calcite-app-font-size--1:0.858rem;--calcite-app-font-weight:400;--calcite-app-font-weight-heading:600;--calcite-app-font-weight-demi:600;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height);--calcite-app-side-spacing:15px;--calcite-app-cap-spacing:15px;--calcite-app-side-spacing-three-quarters:11px;--calcite-app-cap-spacing-three-quarters:11px;--calcite-app-side-spacing-half:7px;--calcite-app-cap-spacing-half:7px;--calcite-app-side-spacing-third:5px;--calcite-app-cap-spacing-third:5px;--calcite-app-side-spacing-quarter:3px;--calcite-app-cap-spacing-quarter:3px;--calcite-app-side-spacing-eighth:2px;--calcite-app-cap-spacing-eighth:2px;--calcite-app-cap-spacing-minimum:1px;--calcite-app-side-spacing-plus-half:22px;--calcite-app-cap-spacing-plus-half:22px;--calcite-app-side-spacing-double:30px;--calcite-app-cap-spacing-double:30px;--calcite-app-menu-min-width:10rem;--calcite-app-menu-offset:0px;--calcite-app-icon-size:16px;--calcite-app-border-radius:3px;--calcite-app-shadow-0:0 2px 4px rgba(0,0,0,0.1);--calcite-app-shadow-1:0 0 12px 0 rgba(0,0,0,0.05);--calcite-app-shadow-1-hover:0 0 16px 0 rgba(0,0,0,0.1);--calcite-app-shadow-1--press:0 0 16px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2:0 0 16px 0 rgba(0,0,0,0.15);--calcite-app-shadow-2-hover:0 0 20px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2-press:0 0 20px 0 rgba(0,0,0,0.3);--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}: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-subtle:#2b2b2b}:host([theme=light]){--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}:root{--calcite-app-animation-time:250ms;--calcite-app-animation-time-fast:83ms;--calcite-app-animation-time-slow:500ms;--calcite-app-easing-function:ease-in-out}\@-webkit-keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@-webkit-keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}:host{background-color:var(--calcite-app-background);color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height)}:host([hidden]){display:none}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.heading{padding:0;margin:0}.header .heading{-ms-flex:1;flex:1;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-2);font-weight:var(--calcite-app-font-weight)}h2.heading{font-size:var(--calcite-app-font-size-1)}h2.heading,h3.heading,h4.heading,h5.heading{font-weight:var(--calcite-app-font-weight-demi)}h3.heading,h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host{-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex-flow:column;flex-flow:column;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}:host,header{display:-ms-flexbox;display:flex}calcite-filter{margin-bottom:var(--calcite-app-cap-spacing-quarter);-webkit-box-shadow:0 1px 0 var(--calcite-app-border);box-shadow:0 1px 0 var(--calcite-app-border)}"}};export{on as calcite_value_list}; \ No newline at end of file diff --git a/docs/build/p-fhzgahgk.system.entry.js b/docs/build/p-fhzgahgk.system.entry.js new file mode 100644 index 00000000..179ab4e7 --- /dev/null +++ b/docs/build/p-fhzgahgk.system.entry.js @@ -0,0 +1 @@ +var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function l(e){try{c(n.next(e))}catch(t){a(t)}}function s(e){try{c(n["throw"](e))}catch(t){a(t)}}function c(e){e.done?i(e.value):r(e.value).then(l,s)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return c([e,t])}}function c(l){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(a=l[0]&2?r["return"]:l[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;if(r=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;r=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]1;var o=e&&t>1;if(!o&&!n){return null}return t1;e.hidden=e!==a}))}if(l){l.menuOpen=false}r.flows=t;r.flowCount=o;r.flowDirection=i};this.flowItemObserver=new MutationObserver(this.updateFlowProps)}e.prototype.componentWillLoad=function(){this.updateFlowProps()};e.prototype.componentDidLoad=function(){this.flowItemObserver.observe(this.el,{childList:true,subtree:true})};e.prototype.componentDidUnload=function(){this.flowItemObserver.disconnect()};e.prototype.back=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.el.querySelector("calcite-flow-item:last-child");e&&e.remove();return[2]}))}))};e.prototype.render=function(){var e=this,t=e.flowDirection,o=e.flowCount;var a=t==="advancing"?i.frameAdvancing:t==="retreating"?i.frameRetreating:"";return r(n,null,r("div",{key:o,class:i.frame+" "+a},r("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return":root{--calcite-app-line-height:1.3rem;--calcite-app-base-font-size:14px;--calcite-app-font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif;--calcite-app-font-family-monospace:\"Lucida Console\",Monaco,monospace;--calcite-app-font-size-2:1.429rem;--calcite-app-font-size-1:1.143rem;--calcite-app-font-size-0:1rem;--calcite-app-font-size--1:0.858rem;--calcite-app-font-weight:400;--calcite-app-font-weight-heading:600;--calcite-app-font-weight-demi:600;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height);--calcite-app-side-spacing:15px;--calcite-app-cap-spacing:15px;--calcite-app-side-spacing-three-quarters:11px;--calcite-app-cap-spacing-three-quarters:11px;--calcite-app-side-spacing-half:7px;--calcite-app-cap-spacing-half:7px;--calcite-app-side-spacing-third:5px;--calcite-app-cap-spacing-third:5px;--calcite-app-side-spacing-quarter:3px;--calcite-app-cap-spacing-quarter:3px;--calcite-app-side-spacing-eighth:2px;--calcite-app-cap-spacing-eighth:2px;--calcite-app-cap-spacing-minimum:1px;--calcite-app-side-spacing-plus-half:22px;--calcite-app-cap-spacing-plus-half:22px;--calcite-app-side-spacing-double:30px;--calcite-app-cap-spacing-double:30px;--calcite-app-menu-min-width:10rem;--calcite-app-menu-offset:0px;--calcite-app-icon-size:16px;--calcite-app-border-radius:3px;--calcite-app-shadow-0:0 2px 4px rgba(0,0,0,0.1);--calcite-app-shadow-1:0 0 12px 0 rgba(0,0,0,0.05);--calcite-app-shadow-1-hover:0 0 16px 0 rgba(0,0,0,0.1);--calcite-app-shadow-1--press:0 0 16px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2:0 0 16px 0 rgba(0,0,0,0.15);--calcite-app-shadow-2-hover:0 0 20px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2-press:0 0 20px 0 rgba(0,0,0,0.3);--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}: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-subtle:#2b2b2b}:host([theme=light]){--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}:root{--calcite-app-animation-time:250ms;--calcite-app-animation-time-fast:83ms;--calcite-app-animation-time-slow:500ms;--calcite-app-easing-function:ease-in-out}\@-webkit-keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@-webkit-keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}:host{background-color:var(--calcite-app-background);color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height)}:host([hidden]){display:none}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.heading{padding:0;margin:0}.header .heading{-ms-flex:1;flex:1;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-2);font-weight:var(--calcite-app-font-weight)}h2.heading{font-size:var(--calcite-app-font-size-1)}h2.heading,h3.heading,h4.heading,h5.heading{font-weight:var(--calcite-app-font-weight-demi)}h3.heading,h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host{overflow:hidden}:host,:host .frame{display:-ms-flexbox;display:flex;height:100%}:host .frame{width:100%;padding:0;margin:0;-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:.5;-webkit-transform:translate3d(50px,0,0) scale(.99);transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@keyframes calcite-flow-item-advance{0%{opacity:.5;-webkit-transform:translate3d(50px,0,0) scale(.99);transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@-webkit-keyframes calcite-flow-item-retreat{0%{opacity:.5;-webkit-transform:translate3d(-50px,0,0) scale(.99);transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@keyframes calcite-flow-item-retreat{0%{opacity:.5;-webkit-transform:translate3d(-50px,0,0) scale(.99);transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}"},enumerable:true,configurable:true});return e}())}}})); \ No newline at end of file diff --git a/docs/build/p-rpd9v1zi.entry.js b/docs/build/p-rpd9v1zi.entry.js deleted file mode 100644 index 3fb9bd04..00000000 --- a/docs/build/p-rpd9v1zi.entry.js +++ /dev/null @@ -1 +0,0 @@ -import{r as t,c as s,h as i,H as e,g as h}from"./p-e8b78b45.js";import{I as l,T as c}from"./p-13d9ee89.js";const a=class{constructor(i){t(this,i),this.dragEnabled=!1,this.filterEnabled=!1,this.mode="selection",this.multiple=!1,this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.observer=new MutationObserver(()=>this.setUpItems()),this.handleFilter=t=>{const s=t.detail.map(t=>t.value);this.items.forEach(t=>{-1===s.indexOf(t.value)?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.calciteListChange=s(this,"calciteListChange",7),this.calcitePickListSelectionChange=s(this,"calcitePickListSelectionChange",7)}connectedCallback(){this.setUpItems()}componentDidLoad(){this.items.forEach(t=>{t.hasAttribute("selected")&&this.selectedValues.set(t.getAttribute("value"),t)}),this.observer.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.observer.disconnect()}calciteListItemChangeHandler(t){const{selectedValues:s}=this,{item:i,value:e,selected:h,shiftPressed:l}=t.detail;h?(this.multiple||this.deselectSiblingItems(i),this.multiple&&l&&this.selectSiblings(i),s.set(e,i)):s.delete(e),this.lastSelectedItem=i,this.calciteListChange.emit(s),this.calcitePickListSelectionChange.emit(s)}setUpItems(){this.items=Array.from(this.el.querySelectorAll("calcite-pick-list-item")),this.items.forEach(t=>{const s=this.getIconType();t.setAttribute("icon",s),t.hasAttribute("selected")&&this.selectedValues.set(t.getAttribute("value"),t)}),this.filterEnabled&&(this.dataForFilter=this.getItemData())}deselectSiblingItems(t){this.items.forEach(s=>{s!==t&&(s.toggleSelected(!1),this.selectedValues.has(s.value)&&this.selectedValues.delete(s.value))})}selectSiblings(t){if(!this.lastSelectedItem)return;const{items:s}=this,i=s.indexOf(this.lastSelectedItem),e=s.indexOf(t);s.slice(Math.min(i,e),Math.max(i,e)).forEach(t=>{t.toggleSelected(!0),this.selectedValues.set(t.value,t)})}getItemData(){const t=[];return this.items.forEach(s=>{const i={};Array.from(s.attributes).forEach(t=>{i[t.name]=t.value}),i.metadata=s.metadata,t.push(i)}),t}async getSelectedItems(){return this.selectedValues}getIconType(){let t=l.circle;return this.multiple&&(t=l.square),t}render(){return i(e,null,i("header",null,this.filterEnabled?i("calcite-filter",{data:this.dataForFilter,textPlaceholder:c.filterPlaceholder,"aria-label":c.filterPlaceholder,onCalciteFilterChange:this.handleFilter}):null,i("slot",{name:"action"})),i("slot",null))}get el(){return h(this)}static get style(){return":root{--calcite-app-line-height:1.3rem;--calcite-app-base-font-size:14px;--calcite-app-font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif;--calcite-app-font-family-monospace:\"Lucida Console\",Monaco,monospace;--calcite-app-font-size-2:1.429rem;--calcite-app-font-size-1:1.143rem;--calcite-app-font-size-0:1rem;--calcite-app-font-size--1:0.858rem;--calcite-app-font-weight:400;--calcite-app-font-weight-heading:600;--calcite-app-font-weight-demi:600;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height);--calcite-app-side-spacing:15px;--calcite-app-cap-spacing:15px;--calcite-app-side-spacing-three-quarters:11px;--calcite-app-cap-spacing-three-quarters:11px;--calcite-app-side-spacing-half:7px;--calcite-app-cap-spacing-half:7px;--calcite-app-side-spacing-third:5px;--calcite-app-cap-spacing-third:5px;--calcite-app-side-spacing-quarter:3px;--calcite-app-cap-spacing-quarter:3px;--calcite-app-side-spacing-eighth:2px;--calcite-app-cap-spacing-eighth:2px;--calcite-app-cap-spacing-minimum:1px;--calcite-app-side-spacing-plus-half:22px;--calcite-app-cap-spacing-plus-half:22px;--calcite-app-side-spacing-double:30px;--calcite-app-cap-spacing-double:30px;--calcite-app-menu-min-width:10rem;--calcite-app-menu-offset:0px;--calcite-app-icon-size:16px;--calcite-app-border-radius:3px;--calcite-app-shadow-0:0 2px 4px rgba(0,0,0,0.1);--calcite-app-shadow-1:0 0 12px 0 rgba(0,0,0,0.05);--calcite-app-shadow-1-hover:0 0 16px 0 rgba(0,0,0,0.1);--calcite-app-shadow-1--press:0 0 16px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2:0 0 16px 0 rgba(0,0,0,0.15);--calcite-app-shadow-2-hover:0 0 20px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2-press:0 0 20px 0 rgba(0,0,0,0.3);--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}: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-subtle:#2b2b2b}:host([theme=light]){--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}:root{--calcite-app-animation-time:250ms;--calcite-app-animation-time-fast:83ms;--calcite-app-animation-time-slow:500ms;--calcite-app-easing-function:ease-in-out}\@-webkit-keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@-webkit-keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}:host{background-color:var(--calcite-app-background);color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height)}:host([hidden]){display:none}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.heading{padding:0;margin:0}.header .heading{-ms-flex:1;flex:1;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-2);font-weight:var(--calcite-app-font-weight)}h2.heading{font-size:var(--calcite-app-font-size-1)}h2.heading,h3.heading,h4.heading,h5.heading{font-weight:var(--calcite-app-font-weight-demi)}h3.heading,h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host{-ms-flex-align:stretch;align-items:stretch;-ms-flex-flow:column;flex-flow:column;padding-bottom:var(--calcite-app-cap-spacing-half)}:host,header{display:-ms-flexbox;display:flex}calcite-filter{margin-bottom:var(--calcite-app-cap-spacing-half);-webkit-box-shadow:0 1px 0 var(--calcite-app-border);box-shadow:0 1px 0 var(--calcite-app-border)}"}};export{a as calcite_pick_list}; \ No newline at end of file diff --git a/docs/build/p-w38ma14b.entry.js b/docs/build/p-w38ma14b.entry.js new file mode 100644 index 00000000..4a2f3a04 --- /dev/null +++ b/docs/build/p-w38ma14b.entry.js @@ -0,0 +1 @@ +import{r as t,c as s,h as e,H as i,g as h}from"./p-e8b78b45.js";import{I as l,T as c}from"./p-13d9ee89.js";const n=class{constructor(e){t(this,e),this.dragEnabled=!1,this.filterEnabled=!1,this.mode="selection",this.multiple=!1,this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.observer=new MutationObserver(()=>this.setUpItems()),this.handleFilter=t=>{const s=t.detail.map(t=>t.value);this.items.forEach(t=>{-1===s.indexOf(t.value)?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.calciteListChange=s(this,"calciteListChange",7),this.calcitePickListSelectionChange=s(this,"calcitePickListSelectionChange",7)}connectedCallback(){this.setUpItems()}componentDidLoad(){this.items.forEach(t=>{t.hasAttribute("selected")&&this.selectedValues.set(t.getAttribute("value"),t)}),this.observer.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.observer.disconnect()}calciteListItemChangeHandler(t){const{selectedValues:s}=this,{item:e,value:i,selected:h,shiftPressed:l}=t.detail;h?(this.multiple||this.deselectSiblingItems(e),this.multiple&&l&&this.selectSiblings(e),s.set(i,e)):s.delete(i),this.lastSelectedItem=e,this.calciteListChange.emit(s),this.calcitePickListSelectionChange.emit(s)}setUpItems(){this.items=Array.from(this.el.querySelectorAll("calcite-pick-list-item")),this.items.forEach(t=>{const s=this.getIconType();t.setAttribute("icon",s),t.hasAttribute("selected")&&this.selectedValues.set(t.getAttribute("value"),t)}),this.filterEnabled&&(this.dataForFilter=this.getItemData())}deselectSiblingItems(t){this.items.forEach(s=>{s!==t&&(s.toggleSelected(!1),this.selectedValues.has(s.value)&&this.selectedValues.delete(s.value))})}selectSiblings(t){if(!this.lastSelectedItem)return;const{items:s}=this,e=s.indexOf(this.lastSelectedItem),i=s.indexOf(t);s.slice(Math.min(e,i),Math.max(e,i)).forEach(t=>{t.toggleSelected(!0),this.selectedValues.set(t.value,t)})}getItemData(){const t=[];return this.items.forEach(s=>{const e={};Array.from(s.attributes).forEach(t=>{e[t.name]=t.value}),e.metadata=s.metadata,t.push(e)}),t}async getSelectedItems(){return this.selectedValues}getIconType(){let t=l.circle;return this.multiple&&(t=l.square),t}render(){return e(i,null,e("header",null,this.filterEnabled?e("calcite-filter",{data:this.dataForFilter,textPlaceholder:c.filterPlaceholder,"aria-label":c.filterPlaceholder,onCalciteFilterChange:this.handleFilter}):null,e("slot",{name:"menu-actions"})),e("slot",null))}get el(){return h(this)}static get style(){return":root{--calcite-app-line-height:1.3rem;--calcite-app-base-font-size:14px;--calcite-app-font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif;--calcite-app-font-family-monospace:\"Lucida Console\",Monaco,monospace;--calcite-app-font-size-2:1.429rem;--calcite-app-font-size-1:1.143rem;--calcite-app-font-size-0:1rem;--calcite-app-font-size--1:0.858rem;--calcite-app-font-weight:400;--calcite-app-font-weight-heading:600;--calcite-app-font-weight-demi:600;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height);--calcite-app-side-spacing:15px;--calcite-app-cap-spacing:15px;--calcite-app-side-spacing-three-quarters:11px;--calcite-app-cap-spacing-three-quarters:11px;--calcite-app-side-spacing-half:7px;--calcite-app-cap-spacing-half:7px;--calcite-app-side-spacing-third:5px;--calcite-app-cap-spacing-third:5px;--calcite-app-side-spacing-quarter:3px;--calcite-app-cap-spacing-quarter:3px;--calcite-app-side-spacing-eighth:2px;--calcite-app-cap-spacing-eighth:2px;--calcite-app-cap-spacing-minimum:1px;--calcite-app-side-spacing-plus-half:22px;--calcite-app-cap-spacing-plus-half:22px;--calcite-app-side-spacing-double:30px;--calcite-app-cap-spacing-double:30px;--calcite-app-menu-min-width:10rem;--calcite-app-menu-offset:0px;--calcite-app-icon-size:16px;--calcite-app-border-radius:3px;--calcite-app-shadow-0:0 2px 4px rgba(0,0,0,0.1);--calcite-app-shadow-1:0 0 12px 0 rgba(0,0,0,0.05);--calcite-app-shadow-1-hover:0 0 16px 0 rgba(0,0,0,0.1);--calcite-app-shadow-1--press:0 0 16px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2:0 0 16px 0 rgba(0,0,0,0.15);--calcite-app-shadow-2-hover:0 0 20px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2-press:0 0 20px 0 rgba(0,0,0,0.3);--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}: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-subtle:#2b2b2b}:host([theme=light]){--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}:root{--calcite-app-animation-time:250ms;--calcite-app-animation-time-fast:83ms;--calcite-app-animation-time-slow:500ms;--calcite-app-easing-function:ease-in-out}\@-webkit-keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@-webkit-keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}:host{background-color:var(--calcite-app-background);color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height)}:host([hidden]){display:none}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.heading{padding:0;margin:0}.header .heading{-ms-flex:1;flex:1;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-2);font-weight:var(--calcite-app-font-weight)}h2.heading{font-size:var(--calcite-app-font-size-1)}h2.heading,h3.heading,h4.heading,h5.heading{font-weight:var(--calcite-app-font-weight-demi)}h3.heading,h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host{-ms-flex-align:stretch;align-items:stretch;-ms-flex-flow:column;flex-flow:column;padding-bottom:var(--calcite-app-cap-spacing-half)}:host,header{display:-ms-flexbox;display:flex}calcite-filter{margin-bottom:var(--calcite-app-cap-spacing-half);-webkit-box-shadow:0 1px 0 var(--calcite-app-border);box-shadow:0 1px 0 var(--calcite-app-border)}"}};export{n as calcite_pick_list}; \ No newline at end of file diff --git a/docs/build/p-1czs57l8.system.entry.js b/docs/build/p-x4mwtmzp.system.entry.js similarity index 87% rename from docs/build/p-1czs57l8.system.entry.js rename to docs/build/p-x4mwtmzp.system.entry.js index ee331f75..6902f5f2 100644 --- a/docs/build/p-1czs57l8.system.entry.js +++ b/docs/build/p-x4mwtmzp.system.entry.js @@ -5,4 +5,4 @@ var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e ins * @author owenm * @license MIT */ -function a(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){a=function(e){return typeof e}}else{a=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return a(e)}function l(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function s(){s=Object.assign||function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}function f(e,t){if(e==null)return{};var n=c(e,t);var i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,i))continue;n[i]=e[i]}}return n}var d="1.10.0";function h(e){return!!navigator.userAgent.match(e)}var p=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var v=h(/Edge/i);var g=h(/firefox/i);var m=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i);var b=h(/iP(ad|od|hone)/i);var y=h(/chrome/i)&&h(/android/i);var w={capture:false,passive:false};function E(e,t,n){e.addEventListener(t,n,!p&&w)}function _(e,t,n){e.removeEventListener(t,n,!p&&w)}function S(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(n){return false}}return false}function D(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function T(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&S(e,t):S(e,t))||i&&e===n){return e}if(e===n)break}while(e=D(e))}return null}var C=/\s+/g;function x(e,t,n){if(e&&t){if(e.classList){e.classList[n?"add":"remove"](t)}else{var i=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(C," ")}}}function I(e,t,n){var i=e&&e.style;if(i){if(n===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){n=e.currentStyle}return t===void 0?n:n[t]}else{if(!(t in i)&&t.indexOf("webkit")===-1){t="-webkit-"+t}i[t]=n+(typeof n==="string"?"":"px")}}}function O(e,t){var n="";if(typeof e==="string"){n=e}else{do{var i=I(e,"transform");if(i&&i!=="none"){n=i+" "+n}}while(!t&&(e=e.parentNode))}var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return r&&new r(n)}function A(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n){for(;r=o}else{a=r<=o}if(!a)return i;if(i===M())break;i=L(i,false)}return false}function k(e,t,n){var i=0,r=0,o=e.children;while(r2&&arguments[2]!==undefined?arguments[2]:{},r=i.evt,o=f(i,["evt"]);$.pluginEvent.bind(Ge)(t,n,u({dragEl:ne,parentEl:ie,ghostEl:re,rootEl:oe,nextEl:ae,lastDownEl:le,cloneEl:se,cloneHidden:ue,dragStarted:Te,putSortable:ve,activeSortable:Ge.active,originalEvent:r,oldIndex:ce,oldDraggableIndex:de,newIndex:fe,newDraggableIndex:he,hideGhostForTarget:We,unhideGhostForTarget:ze,cloneNowHidden:function e(){ue=true},cloneNowShown:function e(){ue=false},dispatchSortableEvent:function e(t){te({sortable:n,name:t,originalEvent:r})}},o))};function te(e){J(u({putSortable:ve,cloneEl:se,targetEl:ne,rootEl:oe,oldIndex:ce,oldDraggableIndex:de,newIndex:fe,newDraggableIndex:he},e))}if(typeof window==="undefined"||!window.document){throw new Error("Sortable.js requires a window with a document")}var ne,ie,re,oe,ae,le,se,ue,ce,fe,de,he,pe,ve,ge=false,me=false,be=[],ye,we,Ee,_e,Se,De,Te,Ce,xe,Ie=false,Oe=false,Ae,Me,Pe=[],Ne=false,ke=[];var Xe=b,Ye=v||p?"cssFloat":"float",Fe=!y&&!b&&"draggable"in document.createElement("div"),Re=function(){if(p){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),Le=function e(t,n){var i=I(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=k(t,0,n),a=k(t,1,n),l=o&&I(o),s=a&&I(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+P(a).width;if(i.display==="flex"){return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal"}if(i.display==="grid"){return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(o&&l["float"]&&l["float"]!=="none"){var f=l["float"]==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=r&&i[Ye]==="none"||a&&i[Ye]==="none"&&u+c>r)?"vertical":"horizontal"},Be=function e(t,n,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,l=i?n.left:n.top,s=i?n.right:n.bottom,u=i?n.width:n.height;return r===l||o===s||r+a/2===l+u/2},He=function e(t,n){var i;be.some((function(e){if(X(e))return;var r=P(e),o=e[G].options.emptyInsertThreshold,a=t>=r.left-o&&t<=r.right+o,l=n>=r.top-o&&n<=r.bottom+o;if(o&&a&&l){return i=e}}));return i},je=function e(t){function n(e,t){return function(i,r,o,a){var l=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(e==null&&(t||l)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return n(e(i,r,o,a),t)(i,r,o,a)}else{var s=(t?i:r).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var i={};var r=t.group;if(!r||a(r)!="object"){r={name:r}}i.name=r.name;i.checkPull=n(r.pull,true);i.checkPut=n(r.put);i.revertClone=r.revertClone;t.group=i},We=function e(){if(!Re&&re){I(re,"display","none")}},ze=function e(){if(!Re&&re){I(re,"display","")}};document.addEventListener("click",(function(e){if(me){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();me=false;return false}}),true);var Ue=function e(t){if(ne){t=t.touches?t.touches[0]:t;var n=He(t.clientX,t.clientY);if(n){var i={};for(var r in t){if(t.hasOwnProperty(r)){i[r]=t[r]}}i.target=i.rootEl=n;i.preventDefault=void 0;i.stopPropagation=void 0;n[G]._onDragOver(i)}}};var Ve=function e(t){if(ne){ne.parentNode[G]._isOutsideThisEl(t.target)}};function Ge(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=s({},t);e[G]=this;var n={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,n){t.setData("Text",n.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ge.supportPointer!==false&&"PointerEvent"in window,emptyInsertThreshold:5};$.initializePlugins(this,e,n);for(var i in n){!(i in t)&&(t[i]=n[i])}je(t);for(var r in this){if(r.charAt(0)==="_"&&typeof this[r]==="function"){this[r]=this[r].bind(this)}}this.nativeDraggable=t.forceFallback?false:Fe;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){E(e,"pointerdown",this._onTapStart)}else{E(e,"mousedown",this._onTapStart);E(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){E(e,"dragover",this);E(e,"dragenter",this)}be.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);s(this,q())}Ge.prototype={constructor:Ge,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){Ce=null}},_getDirection:function e(t,n){return typeof this.options.direction==="function"?this.options.direction.call(this,t,n,ne):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var n=this,i=this.el,r=this.options,o=r.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=r.filter;nt(i);if(ne){return}if(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled){return}if(u.isContentEditable){return}s=T(s,r.draggable,i,false);if(s&&s.animated){return}if(le===s){return}ce=Y(s);de=Y(s,r.draggable);if(typeof c==="function"){if(c.call(this,t,s,this)){te({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:i,fromEl:i});ee("filter",n,{evt:t});o&&t.cancelable&&t.preventDefault();return}}else if(c){c=c.split(",").some((function(e){e=T(u,e.trim(),i,false);if(e){te({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:i,toEl:i});ee("filter",n,{evt:t});return true}}));if(c){o&&t.cancelable&&t.preventDefault();return}}if(r.handle&&!T(u,r.handle,i,false)){return}this._prepareDragStart(t,l,s)},_prepareDragStart:function e(t,n,i){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(i&&!ne&&i.parentNode===o){var u=P(i);oe=o;ne=i;ie=ne.parentNode;ae=ne.nextSibling;le=i;pe=a.group;Ge.dragged=ne;ye={target:ne,clientX:(n||t).clientX,clientY:(n||t).clientY};Se=ye.clientX-u.left;De=ye.clientY-u.top;this._lastX=(n||t).clientX;this._lastY=(n||t).clientY;ne.style["will-change"]="all";s=function e(){ee("delayEnded",r,{evt:t});if(Ge.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents();if(!g&&r.nativeDraggable){ne.draggable=true}r._triggerDragStart(t,n);te({sortable:r,name:"choose",originalEvent:t});x(ne,a.chosenClass,true)};a.ignore.split(",").forEach((function(e){A(ne,e.trim(),Ke)}));E(l,"dragover",Ue);E(l,"mousemove",Ue);E(l,"touchmove",Ue);E(l,"mouseup",r._onDrop);E(l,"touchend",r._onDrop);E(l,"touchcancel",r._onDrop);if(g&&this.nativeDraggable){this.options.touchStartThreshold=4;ne.draggable=true}ee("delayStart",this,{evt:t});if(a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(v||p))){if(Ge.eventCanceled){this._onDrop();return}E(l,"mouseup",r._disableDelayedDrag);E(l,"touchend",r._disableDelayedDrag);E(l,"touchcancel",r._disableDelayedDrag);E(l,"mousemove",r._delayedDragTouchMoveHandler);E(l,"touchmove",r._delayedDragTouchMoveHandler);a.supportPointer&&E(l,"pointermove",r._delayedDragTouchMoveHandler);r._dragStartTimer=setTimeout(s,a.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var n=t.touches?t.touches[0]:t;if(Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){ne&&Ke(ne);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag);_(t,"touchend",this._disableDelayedDrag);_(t,"touchcancel",this._disableDelayedDrag);_(t,"mousemove",this._delayedDragTouchMoveHandler);_(t,"touchmove",this._delayedDragTouchMoveHandler);_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,n){n=n||t.pointerType=="touch"&&t;if(!this.nativeDraggable||n){if(this.options.supportPointer){E(document,"pointermove",this._onTouchMove)}else if(n){E(document,"touchmove",this._onTouchMove)}else{E(document,"mousemove",this._onTouchMove)}}else{E(ne,"dragend",this);E(oe,"dragstart",this._onDragStart)}try{if(document.selection){it((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(i){}},_dragStarted:function e(t,n){ge=false;if(oe&&ne){ee("dragStarted",this,{evt:n});if(this.nativeDraggable){E(document,"dragover",Ve)}var i=this.options;!t&&x(ne,i.dragClass,false);x(ne,i.ghostClass,true);Ge.active=this;t&&this._appendGhost();te({sortable:this,name:"start",originalEvent:n})}else{this._nulling()}},_emulateDragOver:function e(){if(we){this._lastX=we.clientX;this._lastY=we.clientY;We();var t=document.elementFromPoint(we.clientX,we.clientY);var n=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(we.clientX,we.clientY);if(t===n)break;n=t}ne.parentNode[G]._isOutsideThisEl(t);if(n){do{if(n[G]){var i=void 0;i=n[G]._onDragOver({clientX:we.clientX,clientY:we.clientY,target:t,rootEl:n});if(i&&!this.options.dragoverBubble){break}}t=n}while(n=n.parentNode)}ze()}},_onTouchMove:function e(t){if(ye){var n=this.options,i=n.fallbackTolerance,r=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=re&&O(re),l=re&&a&&a.a,s=re&&a&&a.d,u=Xe&&Me&&F(Me),c=(o.clientX-ye.clientX+r.x)/(l||1)+(u?u[0]-Pe[0]:0)/(l||1),f=(o.clientY-ye.clientY+r.y)/(s||1)+(u?u[1]-Pe[1]:0)/(s||1);if(!Ge.active&&!ge){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0){te({rootEl:ie,name:"add",toEl:ie,fromEl:oe,originalEvent:t});te({sortable:this,name:"remove",toEl:ie,originalEvent:t});te({rootEl:ie,name:"sort",toEl:ie,fromEl:oe,originalEvent:t});te({sortable:this,name:"sort",toEl:ie,originalEvent:t})}ve&&ve.save()}else{if(fe!==ce){if(fe>=0){te({sortable:this,name:"update",toEl:ie,originalEvent:t});te({sortable:this,name:"sort",toEl:ie,originalEvent:t})}}}if(Ge.active){if(fe==null||fe===-1){fe=ce;he=de}te({sortable:this,name:"end",toEl:ie,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){ee("nulling",this);oe=ne=ie=re=ae=se=le=ue=ye=we=Te=fe=he=ce=de=Ce=xe=ve=pe=Ge.dragged=Ge.ghost=Ge.clone=Ge.active=null;ke.forEach((function(e){e.checked=true}));ke.length=Ee=_e=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(ne){this._onDragOver(t);qe(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],n,i=this.el.children,r=0,o=i.length,a=this.options;for(;ri.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}function Je(e,t,n,i,r,o,a,l){var s=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,f=i?n.bottom:n.right,d=false;if(!a){if(l&&Aec+u*o/2:sf-Ae){return-xe}}else{d=true}}else{if(s>c+u*(1-r)/2&&sf-u*o/2){return s>c+u/2?1:-1}}return 0}function et(e){if(Y(ne)=0)continue;n[r]=e[r]}return n}function f(e,t){if(e==null)return{};var n=c(e,t);var i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,i))continue;n[i]=e[i]}}return n}var d="1.10.0";function h(e){return!!navigator.userAgent.match(e)}var p=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var v=h(/Edge/i);var g=h(/firefox/i);var m=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i);var b=h(/iP(ad|od|hone)/i);var y=h(/chrome/i)&&h(/android/i);var w={capture:false,passive:false};function E(e,t,n){e.addEventListener(t,n,!p&&w)}function _(e,t,n){e.removeEventListener(t,n,!p&&w)}function S(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(n){return false}}return false}function D(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function T(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&S(e,t):S(e,t))||i&&e===n){return e}if(e===n)break}while(e=D(e))}return null}var C=/\s+/g;function x(e,t,n){if(e&&t){if(e.classList){e.classList[n?"add":"remove"](t)}else{var i=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(C," ")}}}function I(e,t,n){var i=e&&e.style;if(i){if(n===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){n=e.currentStyle}return t===void 0?n:n[t]}else{if(!(t in i)&&t.indexOf("webkit")===-1){t="-webkit-"+t}i[t]=n+(typeof n==="string"?"":"px")}}}function O(e,t){var n="";if(typeof e==="string"){n=e}else{do{var i=I(e,"transform");if(i&&i!=="none"){n=i+" "+n}}while(!t&&(e=e.parentNode))}var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return r&&new r(n)}function A(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n){for(;r=o}else{a=r<=o}if(!a)return i;if(i===M())break;i=L(i,false)}return false}function k(e,t,n){var i=0,r=0,o=e.children;while(r2&&arguments[2]!==undefined?arguments[2]:{},r=i.evt,o=f(i,["evt"]);$.pluginEvent.bind(Ge)(t,n,u({dragEl:ne,parentEl:ie,ghostEl:re,rootEl:oe,nextEl:ae,lastDownEl:le,cloneEl:se,cloneHidden:ue,dragStarted:Te,putSortable:ve,activeSortable:Ge.active,originalEvent:r,oldIndex:ce,oldDraggableIndex:de,newIndex:fe,newDraggableIndex:he,hideGhostForTarget:We,unhideGhostForTarget:ze,cloneNowHidden:function e(){ue=true},cloneNowShown:function e(){ue=false},dispatchSortableEvent:function e(t){te({sortable:n,name:t,originalEvent:r})}},o))};function te(e){J(u({putSortable:ve,cloneEl:se,targetEl:ne,rootEl:oe,oldIndex:ce,oldDraggableIndex:de,newIndex:fe,newDraggableIndex:he},e))}if(typeof window==="undefined"||!window.document){throw new Error("Sortable.js requires a window with a document")}var ne,ie,re,oe,ae,le,se,ue,ce,fe,de,he,pe,ve,ge=false,me=false,be=[],ye,we,Ee,_e,Se,De,Te,Ce,xe,Ie=false,Oe=false,Ae,Me,Pe=[],Ne=false,ke=[];var Xe=b,Ye=v||p?"cssFloat":"float",Fe=!y&&!b&&"draggable"in document.createElement("div"),Re=function(){if(p){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),Le=function e(t,n){var i=I(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=k(t,0,n),a=k(t,1,n),l=o&&I(o),s=a&&I(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+P(a).width;if(i.display==="flex"){return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal"}if(i.display==="grid"){return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(o&&l["float"]&&l["float"]!=="none"){var f=l["float"]==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=r&&i[Ye]==="none"||a&&i[Ye]==="none"&&u+c>r)?"vertical":"horizontal"},Be=function e(t,n,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,l=i?n.left:n.top,s=i?n.right:n.bottom,u=i?n.width:n.height;return r===l||o===s||r+a/2===l+u/2},He=function e(t,n){var i;be.some((function(e){if(X(e))return;var r=P(e),o=e[G].options.emptyInsertThreshold,a=t>=r.left-o&&t<=r.right+o,l=n>=r.top-o&&n<=r.bottom+o;if(o&&a&&l){return i=e}}));return i},je=function e(t){function n(e,t){return function(i,r,o,a){var l=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(e==null&&(t||l)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return n(e(i,r,o,a),t)(i,r,o,a)}else{var s=(t?i:r).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var i={};var r=t.group;if(!r||a(r)!="object"){r={name:r}}i.name=r.name;i.checkPull=n(r.pull,true);i.checkPut=n(r.put);i.revertClone=r.revertClone;t.group=i},We=function e(){if(!Re&&re){I(re,"display","none")}},ze=function e(){if(!Re&&re){I(re,"display","")}};document.addEventListener("click",(function(e){if(me){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();me=false;return false}}),true);var Ue=function e(t){if(ne){t=t.touches?t.touches[0]:t;var n=He(t.clientX,t.clientY);if(n){var i={};for(var r in t){if(t.hasOwnProperty(r)){i[r]=t[r]}}i.target=i.rootEl=n;i.preventDefault=void 0;i.stopPropagation=void 0;n[G]._onDragOver(i)}}};var Ve=function e(t){if(ne){ne.parentNode[G]._isOutsideThisEl(t.target)}};function Ge(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=s({},t);e[G]=this;var n={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,n){t.setData("Text",n.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ge.supportPointer!==false&&"PointerEvent"in window,emptyInsertThreshold:5};$.initializePlugins(this,e,n);for(var i in n){!(i in t)&&(t[i]=n[i])}je(t);for(var r in this){if(r.charAt(0)==="_"&&typeof this[r]==="function"){this[r]=this[r].bind(this)}}this.nativeDraggable=t.forceFallback?false:Fe;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){E(e,"pointerdown",this._onTapStart)}else{E(e,"mousedown",this._onTapStart);E(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){E(e,"dragover",this);E(e,"dragenter",this)}be.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);s(this,q())}Ge.prototype={constructor:Ge,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){Ce=null}},_getDirection:function e(t,n){return typeof this.options.direction==="function"?this.options.direction.call(this,t,n,ne):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var n=this,i=this.el,r=this.options,o=r.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=r.filter;nt(i);if(ne){return}if(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled){return}if(u.isContentEditable){return}s=T(s,r.draggable,i,false);if(s&&s.animated){return}if(le===s){return}ce=Y(s);de=Y(s,r.draggable);if(typeof c==="function"){if(c.call(this,t,s,this)){te({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:i,fromEl:i});ee("filter",n,{evt:t});o&&t.cancelable&&t.preventDefault();return}}else if(c){c=c.split(",").some((function(e){e=T(u,e.trim(),i,false);if(e){te({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:i,toEl:i});ee("filter",n,{evt:t});return true}}));if(c){o&&t.cancelable&&t.preventDefault();return}}if(r.handle&&!T(u,r.handle,i,false)){return}this._prepareDragStart(t,l,s)},_prepareDragStart:function e(t,n,i){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(i&&!ne&&i.parentNode===o){var u=P(i);oe=o;ne=i;ie=ne.parentNode;ae=ne.nextSibling;le=i;pe=a.group;Ge.dragged=ne;ye={target:ne,clientX:(n||t).clientX,clientY:(n||t).clientY};Se=ye.clientX-u.left;De=ye.clientY-u.top;this._lastX=(n||t).clientX;this._lastY=(n||t).clientY;ne.style["will-change"]="all";s=function e(){ee("delayEnded",r,{evt:t});if(Ge.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents();if(!g&&r.nativeDraggable){ne.draggable=true}r._triggerDragStart(t,n);te({sortable:r,name:"choose",originalEvent:t});x(ne,a.chosenClass,true)};a.ignore.split(",").forEach((function(e){A(ne,e.trim(),Ke)}));E(l,"dragover",Ue);E(l,"mousemove",Ue);E(l,"touchmove",Ue);E(l,"mouseup",r._onDrop);E(l,"touchend",r._onDrop);E(l,"touchcancel",r._onDrop);if(g&&this.nativeDraggable){this.options.touchStartThreshold=4;ne.draggable=true}ee("delayStart",this,{evt:t});if(a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(v||p))){if(Ge.eventCanceled){this._onDrop();return}E(l,"mouseup",r._disableDelayedDrag);E(l,"touchend",r._disableDelayedDrag);E(l,"touchcancel",r._disableDelayedDrag);E(l,"mousemove",r._delayedDragTouchMoveHandler);E(l,"touchmove",r._delayedDragTouchMoveHandler);a.supportPointer&&E(l,"pointermove",r._delayedDragTouchMoveHandler);r._dragStartTimer=setTimeout(s,a.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var n=t.touches?t.touches[0]:t;if(Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){ne&&Ke(ne);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag);_(t,"touchend",this._disableDelayedDrag);_(t,"touchcancel",this._disableDelayedDrag);_(t,"mousemove",this._delayedDragTouchMoveHandler);_(t,"touchmove",this._delayedDragTouchMoveHandler);_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,n){n=n||t.pointerType=="touch"&&t;if(!this.nativeDraggable||n){if(this.options.supportPointer){E(document,"pointermove",this._onTouchMove)}else if(n){E(document,"touchmove",this._onTouchMove)}else{E(document,"mousemove",this._onTouchMove)}}else{E(ne,"dragend",this);E(oe,"dragstart",this._onDragStart)}try{if(document.selection){it((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(i){}},_dragStarted:function e(t,n){ge=false;if(oe&&ne){ee("dragStarted",this,{evt:n});if(this.nativeDraggable){E(document,"dragover",Ve)}var i=this.options;!t&&x(ne,i.dragClass,false);x(ne,i.ghostClass,true);Ge.active=this;t&&this._appendGhost();te({sortable:this,name:"start",originalEvent:n})}else{this._nulling()}},_emulateDragOver:function e(){if(we){this._lastX=we.clientX;this._lastY=we.clientY;We();var t=document.elementFromPoint(we.clientX,we.clientY);var n=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(we.clientX,we.clientY);if(t===n)break;n=t}ne.parentNode[G]._isOutsideThisEl(t);if(n){do{if(n[G]){var i=void 0;i=n[G]._onDragOver({clientX:we.clientX,clientY:we.clientY,target:t,rootEl:n});if(i&&!this.options.dragoverBubble){break}}t=n}while(n=n.parentNode)}ze()}},_onTouchMove:function e(t){if(ye){var n=this.options,i=n.fallbackTolerance,r=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=re&&O(re),l=re&&a&&a.a,s=re&&a&&a.d,u=Xe&&Me&&F(Me),c=(o.clientX-ye.clientX+r.x)/(l||1)+(u?u[0]-Pe[0]:0)/(l||1),f=(o.clientY-ye.clientY+r.y)/(s||1)+(u?u[1]-Pe[1]:0)/(s||1);if(!Ge.active&&!ge){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0){te({rootEl:ie,name:"add",toEl:ie,fromEl:oe,originalEvent:t});te({sortable:this,name:"remove",toEl:ie,originalEvent:t});te({rootEl:ie,name:"sort",toEl:ie,fromEl:oe,originalEvent:t});te({sortable:this,name:"sort",toEl:ie,originalEvent:t})}ve&&ve.save()}else{if(fe!==ce){if(fe>=0){te({sortable:this,name:"update",toEl:ie,originalEvent:t});te({sortable:this,name:"sort",toEl:ie,originalEvent:t})}}}if(Ge.active){if(fe==null||fe===-1){fe=ce;he=de}te({sortable:this,name:"end",toEl:ie,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){ee("nulling",this);oe=ne=ie=re=ae=se=le=ue=ye=we=Te=fe=he=ce=de=Ce=xe=ve=pe=Ge.dragged=Ge.ghost=Ge.clone=Ge.active=null;ke.forEach((function(e){e.checked=true}));ke.length=Ee=_e=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(ne){this._onDragOver(t);qe(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],n,i=this.el.children,r=0,o=i.length,a=this.options;for(;ri.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}function Je(e,t,n,i,r,o,a,l){var s=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,f=i?n.bottom:n.right,d=false;if(!a){if(l&&Aec+u*o/2:sf-Ae){return-xe}}else{d=true}}else{if(s>c+u*(1-r)/2&&sf-u*o/2){return s>c+u/2?1:-1}}return 0}function et(e){if(Y(ne){const{flows:t}=this,i=Array.from(this.el.querySelectorAll("calcite-flow-item")),s=t.length,e=i.length,n=e>1,a=n&&s||s>1?e{t.showBackButton=n,t.hidden=t!==l}),o&&(o.menuOpen=!1),this.flows=i,this.flowCount=e,this.flowDirection=a},this.flowItemObserver=new MutationObserver(this.updateFlowProps)}componentWillLoad(){this.updateFlowProps()}componentDidLoad(){this.flowItemObserver.observe(this.el,{childList:!0,subtree:!0})}componentDidUnload(){this.flowItemObserver.disconnect()}async back(){const t=this.el.querySelector("calcite-flow-item:last-child");t&&t.remove()}render(){const{flowDirection:t,flowCount:e}=this;return i(s,null,i("div",{key:e,class:`frame ${"advancing"===t?"frame--advancing":"retreating"===t?"frame--retreating":""}`},i("slot",null)))}get el(){return e(this)}static get style(){return":root{--calcite-app-line-height:1.3rem;--calcite-app-base-font-size:14px;--calcite-app-font-family:Avenir Next W01,Avenir Next W00,Avenir Next,Avenir,Helvetica Neue,sans-serif;--calcite-app-font-family-monospace:\"Lucida Console\",Monaco,monospace;--calcite-app-font-size-2:1.429rem;--calcite-app-font-size-1:1.143rem;--calcite-app-font-size-0:1rem;--calcite-app-font-size--1:0.858rem;--calcite-app-font-weight:400;--calcite-app-font-weight-heading:600;--calcite-app-font-weight-demi:600;font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height);--calcite-app-side-spacing:15px;--calcite-app-cap-spacing:15px;--calcite-app-side-spacing-three-quarters:11px;--calcite-app-cap-spacing-three-quarters:11px;--calcite-app-side-spacing-half:7px;--calcite-app-cap-spacing-half:7px;--calcite-app-side-spacing-third:5px;--calcite-app-cap-spacing-third:5px;--calcite-app-side-spacing-quarter:3px;--calcite-app-cap-spacing-quarter:3px;--calcite-app-side-spacing-eighth:2px;--calcite-app-cap-spacing-eighth:2px;--calcite-app-cap-spacing-minimum:1px;--calcite-app-side-spacing-plus-half:22px;--calcite-app-cap-spacing-plus-half:22px;--calcite-app-side-spacing-double:30px;--calcite-app-cap-spacing-double:30px;--calcite-app-menu-min-width:10rem;--calcite-app-menu-offset:0px;--calcite-app-icon-size:16px;--calcite-app-border-radius:3px;--calcite-app-shadow-0:0 2px 4px rgba(0,0,0,0.1);--calcite-app-shadow-1:0 0 12px 0 rgba(0,0,0,0.05);--calcite-app-shadow-1-hover:0 0 16px 0 rgba(0,0,0,0.1);--calcite-app-shadow-1--press:0 0 16px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2:0 0 16px 0 rgba(0,0,0,0.15);--calcite-app-shadow-2-hover:0 0 20px 0 rgba(0,0,0,0.2);--calcite-app-shadow-2-press:0 0 20px 0 rgba(0,0,0,0.3);--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}: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-subtle:#2b2b2b}:host([theme=light]){--calcite-app-background:#fff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#dfeffa;--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-border:#eaeaea;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#007ac2;--calcite-app-disabled-opacity:0.25}:root{--calcite-app-animation-time:250ms;--calcite-app-animation-time-fast:83ms;--calcite-app-animation-time-slow:500ms;--calcite-app-easing-function:ease-in-out}\@-webkit-keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@keyframes calcite-app-fade-in{0%{opacity:0}to{opacity:1}}\@-webkit-keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-down{0%{opacity:0;-webkit-transform:translate3D(0,-5px,0);transform:translate3D(0,-5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@keyframes calcite-app-fade-in-up{0%{opacity:0;-webkit-transform:translate3D(0,5px,0);transform:translate3D(0,5px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}\@-webkit-keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}\@keyframes calcite-app-fade-in-scale{0%{opacity:0;-webkit-transform:scale3D(.95,.95,1);transform:scale3D(.95,.95,1)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}:host{background-color:var(--calcite-app-background);color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-base-font-size);line-height:var(--calcite-app-line-height)}:host([hidden]){display:none}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.heading{padding:0;margin:0}.header .heading{-ms-flex:1;flex:1;padding:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half)}h1.heading{font-size:var(--calcite-app-font-size-2);font-weight:var(--calcite-app-font-weight)}h2.heading{font-size:var(--calcite-app-font-size-1)}h2.heading,h3.heading,h4.heading,h5.heading{font-weight:var(--calcite-app-font-weight-demi)}h3.heading,h4.heading,h5.heading{font-size:var(--calcite-app-font-size-0)}:host{overflow:hidden}:host,:host .frame{display:-ms-flexbox;display:flex;height:100%}:host .frame{width:100%;padding:0;margin:0;-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:.5;-webkit-transform:translate3d(50px,0,0) scale(.99);transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@keyframes calcite-flow-item-advance{0%{opacity:.5;-webkit-transform:translate3d(50px,0,0) scale(.99);transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@-webkit-keyframes calcite-flow-item-retreat{0%{opacity:.5;-webkit-transform:translate3d(-50px,0,0) scale(.99);transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}\@keyframes calcite-flow-item-retreat{0%{opacity:.5;-webkit-transform:translate3d(-50px,0,0) scale(.99);transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}}"}};export{n as calcite_flow}; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 46085fb9..91425831 100755 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@esri/calcite-app-components", - "version": "4.1.0", + "version": "4.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f3d4c053..5490f22a 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@esri/calcite-app-components", - "version": "4.1.0", + "version": "4.1.1", "description": "A collection of web components for building single-page applications.", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/src/components/calcite-pick-list/readme.md b/src/components/calcite-pick-list/readme.md index 1b8faf1c..ae45ec41 100644 --- a/src/components/calcite-pick-list/readme.md +++ b/src/components/calcite-pick-list/readme.md @@ -27,6 +27,12 @@ Type: `Promise` +## Slots + +| Slot | Description | +| ---------------- | ---------------------------------------------------------------------------- | +| `"menu-actions"` | A slot for adding a button + menu combo for performing actions like sorting. | + ## Dependencies ### Depends on diff --git a/src/components/calcite-value-list/readme.md b/src/components/calcite-value-list/readme.md index 5b15aa50..e3a4fe2e 100644 --- a/src/components/calcite-value-list/readme.md +++ b/src/components/calcite-value-list/readme.md @@ -25,6 +25,12 @@ Type: `Promise` +## Slots + +| Slot | Description | +| ---------------- | ---------------------------------------------------------------------------- | +| `"menu-actions"` | A slot for adding a button + menu combo for performing actions like sorting. | + ## Dependencies ### Depends on