@esri/calcite-components 1.0.0-next.364 → 1.0.0-next.368
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/p-0282fd8b.system.entry.js +5 -0
- package/dist/calcite/p-050ff462.entry.js +5 -0
- package/dist/calcite/p-05b03971.system.entry.js +5 -0
- package/dist/calcite/p-08847812.entry.js +5 -0
- package/dist/calcite/p-0aa85495.system.entry.js +5 -0
- package/dist/calcite/{p-409d0a3f.entry.js → p-1855547f.entry.js} +1 -1
- package/dist/calcite/p-1bcce6c9.entry.js +5 -0
- package/dist/calcite/p-1ef9235e.system.entry.js +5 -0
- package/dist/calcite/p-25ed6059.entry.js +5 -0
- package/dist/calcite/p-40cbbd20.entry.js +5 -0
- package/dist/calcite/p-4347fde9.system.entry.js +5 -0
- package/dist/calcite/p-43cd4b9b.entry.js +5 -0
- package/dist/calcite/{p-e6d14bc5.system.entry.js → p-4dcae709.system.entry.js} +1 -1
- package/dist/calcite/p-55e2658e.entry.js +5 -0
- package/dist/calcite/p-5682a918.entry.js +5 -0
- package/dist/calcite/p-597b782e.system.entry.js +5 -0
- package/dist/calcite/p-60e4f404.entry.js +5 -0
- package/dist/calcite/p-660c8077.js +5 -0
- package/dist/calcite/p-7279ccf9.entry.js +5 -0
- package/dist/calcite/p-832d7f68.system.entry.js +5 -0
- package/dist/calcite/p-888a152c.system.entry.js +5 -0
- package/dist/calcite/p-946c3bed.system.entry.js +5 -0
- package/dist/calcite/p-94717214.entry.js +5 -0
- package/dist/calcite/p-953259af.entry.js +5 -0
- package/dist/calcite/p-96808ed2.entry.js +5 -0
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9b723fdd.system.entry.js +5 -0
- package/dist/calcite/p-9fe77a88.system.entry.js +5 -0
- package/dist/calcite/p-a52288cd.system.entry.js +5 -0
- package/dist/calcite/p-a71d17b4.entry.js +5 -0
- package/dist/calcite/p-aea7c650.system.entry.js +5 -0
- package/dist/calcite/p-af7ed41f.system.entry.js +5 -0
- package/dist/calcite/p-b14e0be5.system.entry.js +5 -0
- package/dist/calcite/p-b53b28e3.system.js +5 -0
- package/dist/calcite/p-b88d7391.entry.js +5 -0
- package/dist/calcite/p-ba000c59.entry.js +5 -0
- package/dist/calcite/p-ba915998.entry.js +5 -0
- package/dist/calcite/p-cf2be87e.entry.js +5 -0
- package/dist/calcite/p-dd4457cd.entry.js +5 -0
- package/dist/calcite/p-eff2fb8c.system.entry.js +5 -0
- package/dist/calcite/p-f4614b28.system.entry.js +5 -0
- package/dist/calcite/{p-8b145872.system.entry.js → p-f94619be.system.entry.js} +1 -1
- package/dist/calcite/p-fd57beb5.system.entry.js +5 -0
- package/dist/cjs/calcite-action-bar.cjs.entry.js +3 -24
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -0
- package/dist/cjs/calcite-action-menu.cjs.entry.js +3 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js +8 -0
- package/dist/cjs/calcite-alert.cjs.entry.js +15 -9
- package/dist/cjs/calcite-block_2.cjs.entry.js +14 -1
- package/dist/cjs/calcite-chip.cjs.entry.js +14 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -10
- package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-link.cjs.entry.js +13 -2
- package/dist/cjs/calcite-list_3.cjs.entry.js +13 -0
- package/dist/cjs/calcite-modal.cjs.entry.js +5 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -0
- package/dist/cjs/calcite-panel.cjs.entry.js +18 -12
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +23 -0
- package/dist/cjs/calcite-shell_3.cjs.entry.js +35 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +13 -0
- package/dist/cjs/calcite-tip_3.cjs.entry.js +13 -1
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -0
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -0
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/conditionalSlot-e874fbb0.js +43 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +3 -0
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
- package/dist/collection/components/calcite-alert/calcite-alert.js +15 -9
- package/dist/collection/components/calcite-block/calcite-block.js +13 -1
- package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +15 -11
- package/dist/collection/components/calcite-link/calcite-link.js +31 -2
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
- package/dist/collection/components/calcite-modal/calcite-modal.js +5 -2
- package/dist/collection/components/calcite-notice/calcite-notice.js +7 -0
- package/dist/collection/components/calcite-panel/calcite-panel.js +19 -14
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +12 -0
- package/dist/collection/components/calcite-shell/calcite-shell.js +14 -2
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
- package/dist/collection/components/calcite-slider/calcite-slider.css +3 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +2 -2
- package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
- package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +5 -0
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
- package/dist/collection/utils/conditionalSlot.js +22 -11
- package/dist/components/calcite-action-bar.js +2 -23
- package/dist/components/calcite-action-group2.js +12 -0
- package/dist/components/calcite-action-menu2.js +3 -0
- package/dist/components/calcite-action-pad.js +7 -0
- package/dist/components/calcite-alert.js +15 -9
- package/dist/components/calcite-block.js +13 -1
- package/dist/components/calcite-chip2.js +13 -1
- package/dist/components/calcite-combobox.js +14 -10
- package/dist/components/calcite-link2.js +14 -2
- package/dist/components/calcite-list-item.js +12 -0
- package/dist/components/calcite-modal.js +5 -2
- package/dist/components/calcite-notice.js +7 -0
- package/dist/components/calcite-panel.js +17 -12
- package/dist/components/calcite-pick-list-group.js +12 -0
- package/dist/components/calcite-pick-list-item2.js +12 -0
- package/dist/components/calcite-shell-center-row.js +13 -1
- package/dist/components/calcite-shell-panel.js +9 -4
- package/dist/components/calcite-shell.js +14 -2
- package/dist/components/calcite-slider.js +3 -3
- package/dist/components/calcite-tile2.js +12 -0
- package/dist/components/calcite-tip.js +13 -1
- package/dist/components/calcite-tree-item.js +5 -0
- package/dist/components/calcite-value-list-item.js +12 -0
- package/dist/components/conditionalSlot.js +40 -0
- package/dist/custom-elements/index.js +240 -60
- package/dist/esm/calcite-action-bar.entry.js +2 -23
- package/dist/esm/calcite-action-group.entry.js +13 -0
- package/dist/esm/calcite-action-menu.entry.js +3 -0
- package/dist/esm/calcite-action-pad.entry.js +8 -0
- package/dist/esm/calcite-alert.entry.js +15 -9
- package/dist/esm/calcite-block_2.entry.js +14 -1
- package/dist/esm/calcite-chip.entry.js +14 -1
- package/dist/esm/calcite-combobox_3.entry.js +14 -10
- package/dist/esm/calcite-graph_2.entry.js +3 -3
- package/dist/esm/calcite-link.entry.js +13 -2
- package/dist/esm/calcite-list_3.entry.js +13 -0
- package/dist/esm/calcite-modal.entry.js +5 -2
- package/dist/esm/calcite-notice.entry.js +8 -0
- package/dist/esm/calcite-panel.entry.js +18 -12
- package/dist/esm/calcite-pick-list_3.entry.js +23 -0
- package/dist/esm/calcite-shell_3.entry.js +35 -7
- package/dist/esm/calcite-tile.entry.js +13 -0
- package/dist/esm/calcite-tip_3.entry.js +13 -1
- package/dist/esm/calcite-tree_2.entry.js +6 -0
- package/dist/esm/calcite-value-list_2.entry.js +12 -0
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/conditionalSlot-0c4ea23a.js +40 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/conditionalSlot-0c4ea23a.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/extras/docs-json.json +21 -1
- package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +4 -1
- package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +2 -1
- package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +4 -1
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -0
- package/dist/types/components/calcite-block/calcite-block.d.ts +4 -1
- package/dist/types/components/calcite-chip/calcite-chip.d.ts +4 -1
- package/dist/types/components/calcite-link/calcite-link.d.ts +5 -0
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -1
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +4 -1
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +5 -6
- package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +4 -1
- package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +4 -1
- package/dist/types/components/calcite-shell/calcite-shell.d.ts +4 -1
- package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +4 -1
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +3 -1
- package/dist/types/components/calcite-tile/calcite-tile.d.ts +4 -1
- package/dist/types/components/calcite-tip/calcite-tip.d.ts +4 -1
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
- package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +4 -1
- package/dist/types/components.d.ts +8 -0
- package/hydrate/index.js +241 -60
- package/package.json +1 -2
- package/readme.md +0 -30
- package/dist/calcite/p-0af820bf.entry.js +0 -5
- package/dist/calcite/p-0cf878ed.system.entry.js +0 -5
- package/dist/calcite/p-1a5dae4a.entry.js +0 -5
- package/dist/calcite/p-1d7a9909.system.entry.js +0 -5
- package/dist/calcite/p-253efee4.entry.js +0 -5
- package/dist/calcite/p-2618de8a.entry.js +0 -5
- package/dist/calcite/p-273cd5ab.entry.js +0 -5
- package/dist/calcite/p-2a8938c7.system.entry.js +0 -5
- package/dist/calcite/p-2c954eaa.system.entry.js +0 -5
- package/dist/calcite/p-320ef3e6.system.entry.js +0 -5
- package/dist/calcite/p-37bddb73.system.entry.js +0 -5
- package/dist/calcite/p-3ab992ff.system.entry.js +0 -5
- package/dist/calcite/p-3b73b785.system.entry.js +0 -5
- package/dist/calcite/p-4659df78.entry.js +0 -5
- package/dist/calcite/p-54e271c9.system.entry.js +0 -5
- package/dist/calcite/p-57558d4b.entry.js +0 -5
- package/dist/calcite/p-5df1936f.entry.js +0 -5
- package/dist/calcite/p-698167ac.entry.js +0 -5
- package/dist/calcite/p-7d355abe.system.entry.js +0 -5
- package/dist/calcite/p-8d36bc7c.entry.js +0 -5
- package/dist/calcite/p-9bfe6679.system.entry.js +0 -5
- package/dist/calcite/p-9d81d229.entry.js +0 -5
- package/dist/calcite/p-a0043c61.entry.js +0 -5
- package/dist/calcite/p-a1f65f6e.entry.js +0 -5
- package/dist/calcite/p-a4dec1f6.system.entry.js +0 -5
- package/dist/calcite/p-a9c50960.system.entry.js +0 -5
- package/dist/calcite/p-aaed1677.entry.js +0 -5
- package/dist/calcite/p-ac778725.system.entry.js +0 -5
- package/dist/calcite/p-ac8cf248.entry.js +0 -5
- package/dist/calcite/p-b4d3f1c1.entry.js +0 -5
- package/dist/calcite/p-c0ed9eff.entry.js +0 -5
- package/dist/calcite/p-cb9cd28c.system.entry.js +0 -5
- package/dist/calcite/p-d578e568.system.entry.js +0 -5
- package/dist/calcite/p-e564004a.system.entry.js +0 -5
- package/dist/calcite/p-f6559122.entry.js +0 -5
- package/dist/calcite/p-f6fc151d.system.entry.js +0 -5
- package/dist/calcite/p-f73124d0.entry.js +0 -5
|
@@ -1979,26 +1979,36 @@ function throttle$1(func, wait, options) {
|
|
|
1979
1979
|
});
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
|
-
const
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
}
|
|
1986
|
-
const eventType = "slotchange";
|
|
1982
|
+
const observed = new Set();
|
|
1983
|
+
let mutationObserver;
|
|
1984
|
+
const observerOptions = { childList: true };
|
|
1987
1985
|
/**
|
|
1988
1986
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
1989
1987
|
*/
|
|
1990
1988
|
function connectConditionalSlotComponent(component) {
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1989
|
+
if (!mutationObserver) {
|
|
1990
|
+
mutationObserver = createObserver("mutation", processMutations);
|
|
1991
|
+
}
|
|
1992
|
+
mutationObserver.observe(component.el, observerOptions);
|
|
1994
1993
|
}
|
|
1995
1994
|
/**
|
|
1996
1995
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
1997
1996
|
*/
|
|
1998
1997
|
function disconnectConditionalSlotComponent(component) {
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1998
|
+
observed.delete(component.el);
|
|
1999
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
2000
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
2001
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
2002
|
+
processMutations(mutationObserver.takeRecords());
|
|
2003
|
+
mutationObserver.disconnect();
|
|
2004
|
+
for (const [element] of observed.entries()) {
|
|
2005
|
+
mutationObserver.observe(element, observerOptions);
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
function processMutations(mutations) {
|
|
2009
|
+
mutations.forEach(({ target }) => {
|
|
2010
|
+
forceUpdate(target);
|
|
2011
|
+
});
|
|
2002
2012
|
}
|
|
2003
2013
|
|
|
2004
2014
|
const calciteActionBarCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-group:last-child){border-bottom-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
@@ -2217,6 +2227,17 @@ let CalciteActionGroup$1 = class extends HTMLElement$1 {
|
|
|
2217
2227
|
}
|
|
2218
2228
|
// --------------------------------------------------------------------------
|
|
2219
2229
|
//
|
|
2230
|
+
// Lifecycle
|
|
2231
|
+
//
|
|
2232
|
+
// --------------------------------------------------------------------------
|
|
2233
|
+
connectedCallback() {
|
|
2234
|
+
connectConditionalSlotComponent(this);
|
|
2235
|
+
}
|
|
2236
|
+
disconnectedCallback() {
|
|
2237
|
+
disconnectConditionalSlotComponent(this);
|
|
2238
|
+
}
|
|
2239
|
+
// --------------------------------------------------------------------------
|
|
2240
|
+
//
|
|
2220
2241
|
// Component Methods
|
|
2221
2242
|
//
|
|
2222
2243
|
// --------------------------------------------------------------------------
|
|
@@ -2456,11 +2477,13 @@ let CalciteActionMenu$1 = class extends HTMLElement$1 {
|
|
|
2456
2477
|
var _a;
|
|
2457
2478
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
2458
2479
|
this.getActions();
|
|
2480
|
+
connectConditionalSlotComponent(this);
|
|
2459
2481
|
}
|
|
2460
2482
|
disconnectedCallback() {
|
|
2461
2483
|
var _a;
|
|
2462
2484
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
2463
2485
|
this.disconnectMenuButtonEl();
|
|
2486
|
+
disconnectConditionalSlotComponent(this);
|
|
2464
2487
|
}
|
|
2465
2488
|
expandedHandler() {
|
|
2466
2489
|
this.open = false;
|
|
@@ -2598,6 +2621,12 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2598
2621
|
// Lifecycle
|
|
2599
2622
|
//
|
|
2600
2623
|
// --------------------------------------------------------------------------
|
|
2624
|
+
connectedCallback() {
|
|
2625
|
+
connectConditionalSlotComponent(this);
|
|
2626
|
+
}
|
|
2627
|
+
disconnectedCallback() {
|
|
2628
|
+
disconnectConditionalSlotComponent(this);
|
|
2629
|
+
}
|
|
2601
2630
|
componentWillLoad() {
|
|
2602
2631
|
const { el, expandDisabled, expanded } = this;
|
|
2603
2632
|
if (!expandDisabled) {
|
|
@@ -2708,6 +2737,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2708
2737
|
this.queued = false;
|
|
2709
2738
|
this.autoDismissTimeoutId = null;
|
|
2710
2739
|
this.trackTimer = Date.now();
|
|
2740
|
+
this.activeTransitionProp = "opacity";
|
|
2711
2741
|
/** close and emit the closed alert and the queue */
|
|
2712
2742
|
this.closeAlert = () => {
|
|
2713
2743
|
this.autoDismissTimeoutId = null;
|
|
@@ -2716,10 +2746,19 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2716
2746
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
2717
2747
|
this.determineActiveAlert();
|
|
2718
2748
|
this.calciteAlertSync.emit({ queue: this.queue });
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2749
|
+
};
|
|
2750
|
+
this.transitionEnd = (event) => {
|
|
2751
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
2752
|
+
this.active
|
|
2753
|
+
? this.calciteAlertOpen.emit({
|
|
2754
|
+
el: this.el,
|
|
2755
|
+
queue: this.queue
|
|
2756
|
+
})
|
|
2757
|
+
: this.calciteAlertClose.emit({
|
|
2758
|
+
el: this.el,
|
|
2759
|
+
queue: this.queue
|
|
2760
|
+
});
|
|
2761
|
+
}
|
|
2723
2762
|
};
|
|
2724
2763
|
}
|
|
2725
2764
|
watchActive() {
|
|
@@ -2770,7 +2809,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2770
2809
|
container: true,
|
|
2771
2810
|
queued,
|
|
2772
2811
|
[placement]: true
|
|
2773
|
-
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2812
|
+
}, onTransitionEnd: this.transitionEnd }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2774
2813
|
}
|
|
2775
2814
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2776
2815
|
alertSync(event) {
|
|
@@ -2829,10 +2868,6 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2829
2868
|
openAlert() {
|
|
2830
2869
|
window.clearTimeout(this.queueTimeout);
|
|
2831
2870
|
this.queueTimeout = window.setTimeout(() => (this.queued = false), 300);
|
|
2832
|
-
this.calciteAlertOpen.emit({
|
|
2833
|
-
el: this.el,
|
|
2834
|
-
queue: this.queue
|
|
2835
|
-
});
|
|
2836
2871
|
}
|
|
2837
2872
|
get el() { return this; }
|
|
2838
2873
|
static get watchers() { return {
|
|
@@ -3185,6 +3220,17 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3185
3220
|
}
|
|
3186
3221
|
// --------------------------------------------------------------------------
|
|
3187
3222
|
//
|
|
3223
|
+
// Lifecycle
|
|
3224
|
+
//
|
|
3225
|
+
// --------------------------------------------------------------------------
|
|
3226
|
+
connectedCallback() {
|
|
3227
|
+
connectConditionalSlotComponent(this);
|
|
3228
|
+
}
|
|
3229
|
+
disconnectedCallback() {
|
|
3230
|
+
disconnectConditionalSlotComponent(this);
|
|
3231
|
+
}
|
|
3232
|
+
// --------------------------------------------------------------------------
|
|
3233
|
+
//
|
|
3188
3234
|
// Render Methods
|
|
3189
3235
|
//
|
|
3190
3236
|
// --------------------------------------------------------------------------
|
|
@@ -3198,7 +3244,7 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3198
3244
|
const showingLoadingStatus = this.loading && !this.open;
|
|
3199
3245
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
3200
3246
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
3201
|
-
const iconEl = !statusIcon ? (h("slot", { name: SLOTS$k.icon })) : (h("calcite-icon", { class: {
|
|
3247
|
+
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS$k.icon })) : (h("calcite-icon", { class: {
|
|
3202
3248
|
[CSS$L.statusIcon]: true,
|
|
3203
3249
|
[CSS$L.valid]: status == "valid",
|
|
3204
3250
|
[CSS$L.invalid]: status == "invalid",
|
|
@@ -4042,6 +4088,17 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4042
4088
|
};
|
|
4043
4089
|
this.guid = guid();
|
|
4044
4090
|
}
|
|
4091
|
+
// --------------------------------------------------------------------------
|
|
4092
|
+
//
|
|
4093
|
+
// Lifecycle
|
|
4094
|
+
//
|
|
4095
|
+
// --------------------------------------------------------------------------
|
|
4096
|
+
connectedCallback() {
|
|
4097
|
+
connectConditionalSlotComponent(this);
|
|
4098
|
+
}
|
|
4099
|
+
disconnectedCallback() {
|
|
4100
|
+
disconnectConditionalSlotComponent(this);
|
|
4101
|
+
}
|
|
4045
4102
|
//--------------------------------------------------------------------------
|
|
4046
4103
|
//
|
|
4047
4104
|
// Public Methods
|
|
@@ -4060,7 +4117,7 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4060
4117
|
renderChipImage() {
|
|
4061
4118
|
const { el } = this;
|
|
4062
4119
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
4063
|
-
return hasChipImage ? (h("div", { class: CSS$H.chipImageContainer }, h("slot", { name: SLOTS$i.image }))) : null;
|
|
4120
|
+
return hasChipImage ? (h("div", { class: CSS$H.chipImageContainer, key: "image" }, h("slot", { name: SLOTS$i.image }))) : null;
|
|
4064
4121
|
}
|
|
4065
4122
|
render() {
|
|
4066
4123
|
const iconEl = (h("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
@@ -9212,6 +9269,11 @@ function getDepth(element) {
|
|
|
9212
9269
|
const calciteComboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0px;margin-top:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0px;padding-bottom:0px;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{height:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.chip:last-of-type{-webkit-margin-end:0;margin-inline-end:0}.item{display:block}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
9213
9270
|
|
|
9214
9271
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
9272
|
+
const itemUidPrefix = "combobox-item-";
|
|
9273
|
+
const chipUidPrefix = "combobox-chip-";
|
|
9274
|
+
const labelUidPrefix = "combobox-label-";
|
|
9275
|
+
const listboxUidPrefix = "combobox-listbox-";
|
|
9276
|
+
const inputUidPrefix = "combobox-input-";
|
|
9215
9277
|
let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
9216
9278
|
constructor() {
|
|
9217
9279
|
super();
|
|
@@ -9765,7 +9827,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9765
9827
|
const item = document.createElement(ComboboxItem);
|
|
9766
9828
|
item.value = value;
|
|
9767
9829
|
item.textLabel = value;
|
|
9768
|
-
item.guid = guid()
|
|
9830
|
+
item.guid = `${chipUidPrefix}${guid()}`;
|
|
9769
9831
|
item.selected = true;
|
|
9770
9832
|
this.el.appendChild(item);
|
|
9771
9833
|
this.resetText();
|
|
@@ -9815,7 +9877,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9815
9877
|
focusChip() {
|
|
9816
9878
|
var _a;
|
|
9817
9879
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
9818
|
-
const chip = this.referenceEl.querySelector(
|
|
9880
|
+
const chip = this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`);
|
|
9819
9881
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
9820
9882
|
}
|
|
9821
9883
|
shiftActiveItemIndex(delta) {
|
|
@@ -9870,11 +9932,11 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9870
9932
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
9871
9933
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
9872
9934
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
9873
|
-
return (h("calcite-chip", {
|
|
9935
|
+
return (h("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `${chipUidPrefix}${item.guid}`, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
|
|
9874
9936
|
});
|
|
9875
9937
|
}
|
|
9876
9938
|
renderInput() {
|
|
9877
|
-
const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
9939
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
9878
9940
|
const single = selectionMode === "single";
|
|
9879
9941
|
const selectedItem = selectedItems[0];
|
|
9880
9942
|
const showLabel = !active && single && !!selectedItem;
|
|
@@ -9884,16 +9946,16 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9884
9946
|
} }, showLabel && (h("span", { class: {
|
|
9885
9947
|
label: true,
|
|
9886
9948
|
"label--spaced": needsIcon
|
|
9887
|
-
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": guid
|
|
9949
|
+
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
9888
9950
|
input: true,
|
|
9889
9951
|
"input--single": true,
|
|
9890
9952
|
"input--transparent": this.activeChipIndex > -1,
|
|
9891
9953
|
"input--hidden": showLabel,
|
|
9892
9954
|
"input--icon": single && needsIcon
|
|
9893
|
-
}, disabled: disabled, id: `${guid}
|
|
9955
|
+
}, disabled: disabled, id: `${inputUidPrefix}${guid}`, key: "input", onBlur: this.comboboxBlurHandler, onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, ref: (el) => (this.textInput = el), type: "text" })));
|
|
9894
9956
|
}
|
|
9895
9957
|
renderListBoxOptions() {
|
|
9896
|
-
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid
|
|
9958
|
+
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: `${itemUidPrefix}${item.guid}`, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
9897
9959
|
}
|
|
9898
9960
|
renderPopperContainer() {
|
|
9899
9961
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -9919,12 +9981,11 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9919
9981
|
render() {
|
|
9920
9982
|
const { guid, open, label } = this;
|
|
9921
9983
|
const single = this.selectionMode === "single";
|
|
9922
|
-
|
|
9923
|
-
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": labelId, "aria-owns": guid, class: {
|
|
9984
|
+
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
9924
9985
|
wrapper: true,
|
|
9925
9986
|
"wrapper--single": single || !this.selectedItems.length,
|
|
9926
9987
|
"wrapper--active": open
|
|
9927
|
-
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${guid}
|
|
9988
|
+
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), h(HiddenFormInputSlot, { component: this })));
|
|
9928
9989
|
}
|
|
9929
9990
|
get el() { return this; }
|
|
9930
9991
|
static get watchers() { return {
|
|
@@ -14292,6 +14353,11 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14292
14353
|
//--------------------------------------------------------------------------
|
|
14293
14354
|
/** is the link disabled */
|
|
14294
14355
|
this.disabled = false;
|
|
14356
|
+
/** Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
14357
|
+
* Without a value, the browser will suggest a filename/extension
|
|
14358
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
14359
|
+
*/
|
|
14360
|
+
this.download = false;
|
|
14295
14361
|
/** the node type of the rendered child element */
|
|
14296
14362
|
this.childElType = "span";
|
|
14297
14363
|
//--------------------------------------------------------------------------
|
|
@@ -14315,13 +14381,19 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14315
14381
|
this.childElType = this.href ? "a" : "span";
|
|
14316
14382
|
}
|
|
14317
14383
|
render() {
|
|
14318
|
-
const
|
|
14384
|
+
const { download, el } = this;
|
|
14385
|
+
const dir = getElementDir(el);
|
|
14319
14386
|
const iconStartEl = (h("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
14320
14387
|
const iconEndEl = (h("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
14321
14388
|
const Tag = this.childElType;
|
|
14322
14389
|
const role = this.childElType === "span" ? "link" : null;
|
|
14323
14390
|
const tabIndex = this.disabled ? -1 : this.childElType === "span" ? 0 : null;
|
|
14324
|
-
return (h(Host, { role: "presentation" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
14391
|
+
return (h(Host, { role: "presentation" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
14392
|
+
/*
|
|
14393
|
+
When the 'download' property of type 'boolean | string' is set to true, the value is "".
|
|
14394
|
+
This works around that issue for now.
|
|
14395
|
+
*/
|
|
14396
|
+
download: Tag === "a" && (download === "" || download) ? download : null, href: Tag === "a" && this.href, ref: this.storeTagRef, rel: Tag === "a" && this.rel, role: role, tabIndex: tabIndex, target: Tag === "a" && this.target }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
14325
14397
|
}
|
|
14326
14398
|
//--------------------------------------------------------------------------
|
|
14327
14399
|
//
|
|
@@ -14416,6 +14488,17 @@ let CalciteListItem$1 = class extends HTMLElement$1 {
|
|
|
14416
14488
|
}
|
|
14417
14489
|
// --------------------------------------------------------------------------
|
|
14418
14490
|
//
|
|
14491
|
+
// Lifecycle
|
|
14492
|
+
//
|
|
14493
|
+
// --------------------------------------------------------------------------
|
|
14494
|
+
connectedCallback() {
|
|
14495
|
+
connectConditionalSlotComponent(this);
|
|
14496
|
+
}
|
|
14497
|
+
disconnectedCallback() {
|
|
14498
|
+
disconnectConditionalSlotComponent(this);
|
|
14499
|
+
}
|
|
14500
|
+
// --------------------------------------------------------------------------
|
|
14501
|
+
//
|
|
14419
14502
|
// Public Methods
|
|
14420
14503
|
//
|
|
14421
14504
|
// --------------------------------------------------------------------------
|
|
@@ -14805,11 +14888,13 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14805
14888
|
var _a;
|
|
14806
14889
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
14807
14890
|
this.updateFooterVisibility();
|
|
14891
|
+
connectConditionalSlotComponent(this);
|
|
14808
14892
|
}
|
|
14809
14893
|
disconnectedCallback() {
|
|
14810
14894
|
var _a;
|
|
14811
14895
|
this.removeOverflowHiddenClass();
|
|
14812
14896
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
14897
|
+
disconnectConditionalSlotComponent(this);
|
|
14813
14898
|
}
|
|
14814
14899
|
render() {
|
|
14815
14900
|
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: "modal", onTransitionEnd: this.transitionEnd }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS$n.header }, this.renderCloseButton(), h("header", { class: CSS$n.title }, h("slot", { name: CSS$n.header }))), h("div", { class: {
|
|
@@ -14819,10 +14904,10 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14819
14904
|
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$e.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
14820
14905
|
}
|
|
14821
14906
|
renderFooter() {
|
|
14822
|
-
return this.hasFooter ? (h("div", { class: CSS$n.footer }, h("span", { class: CSS$n.back }, h("slot", { name: SLOTS$e.back })), h("span", { class: CSS$n.secondary }, h("slot", { name: SLOTS$e.secondary })), h("span", { class: CSS$n.primary }, h("slot", { name: SLOTS$e.primary })))) : null;
|
|
14907
|
+
return this.hasFooter ? (h("div", { class: CSS$n.footer, key: "footer" }, h("span", { class: CSS$n.back }, h("slot", { name: SLOTS$e.back })), h("span", { class: CSS$n.secondary }, h("slot", { name: SLOTS$e.secondary })), h("span", { class: CSS$n.primary }, h("slot", { name: SLOTS$e.primary })))) : null;
|
|
14823
14908
|
}
|
|
14824
14909
|
renderCloseButton() {
|
|
14825
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
14910
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$n.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
14826
14911
|
}
|
|
14827
14912
|
renderStyle() {
|
|
14828
14913
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -14987,6 +15072,12 @@ let CalciteNotice$1 = class extends HTMLElement$1 {
|
|
|
14987
15072
|
// Lifecycle
|
|
14988
15073
|
//
|
|
14989
15074
|
//--------------------------------------------------------------------------
|
|
15075
|
+
connectedCallback() {
|
|
15076
|
+
connectConditionalSlotComponent(this);
|
|
15077
|
+
}
|
|
15078
|
+
disconnectedCallback() {
|
|
15079
|
+
disconnectConditionalSlotComponent(this);
|
|
15080
|
+
}
|
|
14990
15081
|
componentWillLoad() {
|
|
14991
15082
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
14992
15083
|
}
|
|
@@ -15425,6 +15516,17 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15425
15516
|
}
|
|
15426
15517
|
// --------------------------------------------------------------------------
|
|
15427
15518
|
//
|
|
15519
|
+
// Lifecycle
|
|
15520
|
+
//
|
|
15521
|
+
// --------------------------------------------------------------------------
|
|
15522
|
+
connectedCallback() {
|
|
15523
|
+
connectConditionalSlotComponent(this);
|
|
15524
|
+
}
|
|
15525
|
+
disconnectedCallback() {
|
|
15526
|
+
disconnectConditionalSlotComponent(this);
|
|
15527
|
+
}
|
|
15528
|
+
// --------------------------------------------------------------------------
|
|
15529
|
+
//
|
|
15428
15530
|
// Methods
|
|
15429
15531
|
//
|
|
15430
15532
|
// --------------------------------------------------------------------------
|
|
@@ -15464,7 +15566,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15464
15566
|
* Allows user to override the entire header-content node.
|
|
15465
15567
|
*/
|
|
15466
15568
|
renderHeaderSlottedContent() {
|
|
15467
|
-
return (h("div", { class: CSS$k.headerContent, key: "header-content" }, h("slot", { name: SLOTS$c.headerContent })));
|
|
15569
|
+
return (h("div", { class: CSS$k.headerContent, key: "slotted-header-content" }, h("slot", { name: SLOTS$c.headerContent })));
|
|
15468
15570
|
}
|
|
15469
15571
|
renderHeaderStartActions() {
|
|
15470
15572
|
const { el } = this;
|
|
@@ -15482,7 +15584,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15482
15584
|
renderMenu() {
|
|
15483
15585
|
const { el, intlOptions, menuOpen } = this;
|
|
15484
15586
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
15485
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
15587
|
+
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
15486
15588
|
}
|
|
15487
15589
|
renderHeaderNode() {
|
|
15488
15590
|
const { el, showBackButton } = this;
|
|
@@ -15500,18 +15602,11 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15500
15602
|
headerMenuNode ||
|
|
15501
15603
|
showBackButton ? (h("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
15502
15604
|
}
|
|
15503
|
-
|
|
15504
|
-
* Allows user to override the entire footer node.
|
|
15505
|
-
*/
|
|
15506
|
-
renderFooterSlottedContent() {
|
|
15605
|
+
renderFooterNode() {
|
|
15507
15606
|
const { el } = this;
|
|
15508
15607
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
15509
|
-
return hasFooterSlottedContent ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footer }))) : null;
|
|
15510
|
-
}
|
|
15511
|
-
renderFooterActions() {
|
|
15512
|
-
const { el } = this;
|
|
15513
15608
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
15514
|
-
return hasFooterActions ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
15609
|
+
return hasFooterSlottedContent || hasFooterActions ? (h("footer", { class: CSS$k.footer, key: "footer" }, hasFooterSlottedContent ? h("slot", { key: "footer-slot", name: SLOTS$c.footer }) : null, hasFooterActions ? h("slot", { key: "footer-actions-slot", name: SLOTS$c.footerActions }) : null)) : null;
|
|
15515
15610
|
}
|
|
15516
15611
|
renderContent() {
|
|
15517
15612
|
const { el } = this;
|
|
@@ -15523,7 +15618,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15523
15618
|
}
|
|
15524
15619
|
render() {
|
|
15525
15620
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
15526
|
-
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.
|
|
15621
|
+
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
15527
15622
|
return (h(Fragment, null, loading || disabled ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
15528
15623
|
}
|
|
15529
15624
|
get el() { return this; }
|
|
@@ -15975,6 +16070,17 @@ let CalcitePickListGroup$1 = class extends HTMLElement$1 {
|
|
|
15975
16070
|
}
|
|
15976
16071
|
// --------------------------------------------------------------------------
|
|
15977
16072
|
//
|
|
16073
|
+
// Lifecycle
|
|
16074
|
+
//
|
|
16075
|
+
// --------------------------------------------------------------------------
|
|
16076
|
+
connectedCallback() {
|
|
16077
|
+
connectConditionalSlotComponent(this);
|
|
16078
|
+
}
|
|
16079
|
+
disconnectedCallback() {
|
|
16080
|
+
disconnectConditionalSlotComponent(this);
|
|
16081
|
+
}
|
|
16082
|
+
// --------------------------------------------------------------------------
|
|
16083
|
+
//
|
|
15978
16084
|
// Render Methods
|
|
15979
16085
|
//
|
|
15980
16086
|
// --------------------------------------------------------------------------
|
|
@@ -16112,6 +16218,17 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
16112
16218
|
}
|
|
16113
16219
|
// --------------------------------------------------------------------------
|
|
16114
16220
|
//
|
|
16221
|
+
// Lifecycle
|
|
16222
|
+
//
|
|
16223
|
+
// --------------------------------------------------------------------------
|
|
16224
|
+
connectedCallback() {
|
|
16225
|
+
connectConditionalSlotComponent(this);
|
|
16226
|
+
}
|
|
16227
|
+
disconnectedCallback() {
|
|
16228
|
+
disconnectConditionalSlotComponent(this);
|
|
16229
|
+
}
|
|
16230
|
+
// --------------------------------------------------------------------------
|
|
16231
|
+
//
|
|
16115
16232
|
// Public Methods
|
|
16116
16233
|
//
|
|
16117
16234
|
// --------------------------------------------------------------------------
|
|
@@ -17544,12 +17661,23 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17544
17661
|
}
|
|
17545
17662
|
// --------------------------------------------------------------------------
|
|
17546
17663
|
//
|
|
17664
|
+
// Lifecycle
|
|
17665
|
+
//
|
|
17666
|
+
// --------------------------------------------------------------------------
|
|
17667
|
+
connectedCallback() {
|
|
17668
|
+
connectConditionalSlotComponent(this);
|
|
17669
|
+
}
|
|
17670
|
+
disconnectedCallback() {
|
|
17671
|
+
disconnectConditionalSlotComponent(this);
|
|
17672
|
+
}
|
|
17673
|
+
// --------------------------------------------------------------------------
|
|
17674
|
+
//
|
|
17547
17675
|
// Render Methods
|
|
17548
17676
|
//
|
|
17549
17677
|
// --------------------------------------------------------------------------
|
|
17550
17678
|
renderHeader() {
|
|
17551
17679
|
const hasHeader = !!getSlotted(this.el, SLOTS$7.header);
|
|
17552
|
-
return hasHeader ? h("slot", { name: SLOTS$7.header }) : null;
|
|
17680
|
+
return hasHeader ? h("slot", { key: "header", name: SLOTS$7.header }) : null;
|
|
17553
17681
|
}
|
|
17554
17682
|
renderContent() {
|
|
17555
17683
|
const content = !!this.contentBehind
|
|
@@ -17567,7 +17695,7 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17567
17695
|
}
|
|
17568
17696
|
renderFooter() {
|
|
17569
17697
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
17570
|
-
return hasFooter ? (h("div", { class: CSS$b.footer }, h("slot", { name: SLOTS$7.footer }))) : null;
|
|
17698
|
+
return hasFooter ? (h("div", { class: CSS$b.footer, key: "footer" }, h("slot", { name: SLOTS$7.footer }))) : null;
|
|
17571
17699
|
}
|
|
17572
17700
|
renderMain() {
|
|
17573
17701
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
@@ -17619,6 +17747,17 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17619
17747
|
}
|
|
17620
17748
|
// --------------------------------------------------------------------------
|
|
17621
17749
|
//
|
|
17750
|
+
// Lifecycle
|
|
17751
|
+
//
|
|
17752
|
+
// --------------------------------------------------------------------------
|
|
17753
|
+
connectedCallback() {
|
|
17754
|
+
connectConditionalSlotComponent(this);
|
|
17755
|
+
}
|
|
17756
|
+
disconnectedCallback() {
|
|
17757
|
+
disconnectConditionalSlotComponent(this);
|
|
17758
|
+
}
|
|
17759
|
+
// --------------------------------------------------------------------------
|
|
17760
|
+
//
|
|
17622
17761
|
// Render Methods
|
|
17623
17762
|
//
|
|
17624
17763
|
// --------------------------------------------------------------------------
|
|
@@ -17626,7 +17765,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17626
17765
|
const { el } = this;
|
|
17627
17766
|
const contentNode = (h("div", { class: CSS$a.content }, h("slot", null)));
|
|
17628
17767
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
17629
|
-
const actionBarNode = actionBar ? (h("div", { class: CSS$a.actionBarContainer }, h("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
17768
|
+
const actionBarNode = actionBar ? (h("div", { class: CSS$a.actionBarContainer, key: "action-bar" }, h("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
17630
17769
|
const children = [actionBarNode, contentNode];
|
|
17631
17770
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
17632
17771
|
children.reverse();
|
|
@@ -17800,7 +17939,11 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17800
17939
|
// Lifecycle
|
|
17801
17940
|
//
|
|
17802
17941
|
//--------------------------------------------------------------------------
|
|
17942
|
+
connectedCallback() {
|
|
17943
|
+
connectConditionalSlotComponent(this);
|
|
17944
|
+
}
|
|
17803
17945
|
disconnectedCallback() {
|
|
17946
|
+
disconnectConditionalSlotComponent(this);
|
|
17804
17947
|
this.disconnectSeparator();
|
|
17805
17948
|
}
|
|
17806
17949
|
componentDidLoad() {
|
|
@@ -17814,14 +17957,14 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17814
17957
|
renderHeader() {
|
|
17815
17958
|
const { el } = this;
|
|
17816
17959
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
17817
|
-
return hasHeader ? (h("div", { class: CSS$9.contentHeader }, h("slot", { name: SLOTS$5.header }))) : null;
|
|
17960
|
+
return hasHeader ? (h("div", { class: CSS$9.contentHeader, key: "header" }, h("slot", { name: SLOTS$5.header }))) : null;
|
|
17818
17961
|
}
|
|
17819
17962
|
render() {
|
|
17820
17963
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
17821
17964
|
const allowResizing = !detached && resizable;
|
|
17822
|
-
const contentNode = (h("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$9.contentBody }, h("slot", null))));
|
|
17823
|
-
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
17824
|
-
const actionBarNode = h("slot", { name: SLOTS$5.actionBar });
|
|
17965
|
+
const contentNode = (h("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$9.contentBody }, h("slot", null))));
|
|
17966
|
+
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
17967
|
+
const actionBarNode = h("slot", { key: "action-bar", name: SLOTS$5.actionBar });
|
|
17825
17968
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
17826
17969
|
if (position === "end") {
|
|
17827
17970
|
mainNodes.reverse();
|
|
@@ -17868,7 +18011,7 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17868
18011
|
static get style() { return calciteShellPanelCss; }
|
|
17869
18012
|
};
|
|
17870
18013
|
|
|
17871
|
-
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
18014
|
+
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle__label.hyphen--wrap{display:-ms-flexbox;display:flex}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
17872
18015
|
|
|
17873
18016
|
let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
17874
18017
|
constructor() {
|
|
@@ -18432,7 +18575,7 @@ let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
|
18432
18575
|
const hyphenLabel = leftValueLabel;
|
|
18433
18576
|
const labelOffset = labelFontSize / 2;
|
|
18434
18577
|
if (labelTransformedOverlap > 0) {
|
|
18435
|
-
hyphenLabel.classList.add("hyphen");
|
|
18578
|
+
hyphenLabel.classList.add("hyphen", "hyphen--wrap");
|
|
18436
18579
|
if (rightValueLabelStaticHostOffset === 0 && leftValueLabelStaticHostOffset === 0) {
|
|
18437
18580
|
// Neither handle overlaps the host boundary
|
|
18438
18581
|
let leftValueLabelTranslate = labelTransformedOverlap / 2 - labelOffset;
|
|
@@ -18478,7 +18621,7 @@ let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
|
18478
18621
|
}
|
|
18479
18622
|
}
|
|
18480
18623
|
else {
|
|
18481
|
-
hyphenLabel.classList.remove("hyphen");
|
|
18624
|
+
hyphenLabel.classList.remove("hyphen", "hyphen--wrap");
|
|
18482
18625
|
leftValueLabel.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
|
|
18483
18626
|
leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
|
|
18484
18627
|
rightValueLabel.style.transform = `translateX(${rightValueLabelStaticHostOffset}px)`;
|
|
@@ -22933,6 +23076,17 @@ let CalciteTile$1 = class extends HTMLElement$1 {
|
|
|
22933
23076
|
}
|
|
22934
23077
|
// --------------------------------------------------------------------------
|
|
22935
23078
|
//
|
|
23079
|
+
// Lifecycle
|
|
23080
|
+
//
|
|
23081
|
+
// --------------------------------------------------------------------------
|
|
23082
|
+
connectedCallback() {
|
|
23083
|
+
connectConditionalSlotComponent(this);
|
|
23084
|
+
}
|
|
23085
|
+
disconnectedCallback() {
|
|
23086
|
+
disconnectConditionalSlotComponent(this);
|
|
23087
|
+
}
|
|
23088
|
+
// --------------------------------------------------------------------------
|
|
23089
|
+
//
|
|
22936
23090
|
// Render Methods
|
|
22937
23091
|
//
|
|
22938
23092
|
// --------------------------------------------------------------------------
|
|
@@ -23871,6 +24025,17 @@ let CalciteTip$1 = class extends HTMLElement$1 {
|
|
|
23871
24025
|
}
|
|
23872
24026
|
// --------------------------------------------------------------------------
|
|
23873
24027
|
//
|
|
24028
|
+
// Lifecycle
|
|
24029
|
+
//
|
|
24030
|
+
// --------------------------------------------------------------------------
|
|
24031
|
+
connectedCallback() {
|
|
24032
|
+
connectConditionalSlotComponent(this);
|
|
24033
|
+
}
|
|
24034
|
+
disconnectedCallback() {
|
|
24035
|
+
disconnectConditionalSlotComponent(this);
|
|
24036
|
+
}
|
|
24037
|
+
// --------------------------------------------------------------------------
|
|
24038
|
+
//
|
|
23874
24039
|
// Render Methods
|
|
23875
24040
|
//
|
|
23876
24041
|
// --------------------------------------------------------------------------
|
|
@@ -23889,7 +24054,7 @@ let CalciteTip$1 = class extends HTMLElement$1 {
|
|
|
23889
24054
|
}
|
|
23890
24055
|
renderImageFrame() {
|
|
23891
24056
|
const { el } = this;
|
|
23892
|
-
return getSlotted(el, SLOTS$2.thumbnail) ? (h("div", { class: CSS$3.imageFrame }, h("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
24057
|
+
return getSlotted(el, SLOTS$2.thumbnail) ? (h("div", { class: CSS$3.imageFrame, key: "thumbnail" }, h("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
23893
24058
|
}
|
|
23894
24059
|
renderInfoNode() {
|
|
23895
24060
|
return (h("div", { class: CSS$3.info }, h("slot", null)));
|
|
@@ -24703,6 +24868,10 @@ let CalciteTreeItem$1 = class extends HTMLElement$1 {
|
|
|
24703
24868
|
const { expanded } = this.parentTreeItem;
|
|
24704
24869
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
24705
24870
|
}
|
|
24871
|
+
connectConditionalSlotComponent(this);
|
|
24872
|
+
}
|
|
24873
|
+
disconnectedCallback() {
|
|
24874
|
+
disconnectConditionalSlotComponent(this);
|
|
24706
24875
|
}
|
|
24707
24876
|
componentWillRender() {
|
|
24708
24877
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -25143,6 +25312,17 @@ let CalciteValueListItem$1 = class extends HTMLElement$1 {
|
|
|
25143
25312
|
}
|
|
25144
25313
|
// --------------------------------------------------------------------------
|
|
25145
25314
|
//
|
|
25315
|
+
// Lifecycle
|
|
25316
|
+
//
|
|
25317
|
+
// --------------------------------------------------------------------------
|
|
25318
|
+
connectedCallback() {
|
|
25319
|
+
connectConditionalSlotComponent(this);
|
|
25320
|
+
}
|
|
25321
|
+
disconnectedCallback() {
|
|
25322
|
+
disconnectConditionalSlotComponent(this);
|
|
25323
|
+
}
|
|
25324
|
+
// --------------------------------------------------------------------------
|
|
25325
|
+
//
|
|
25146
25326
|
// Public Methods
|
|
25147
25327
|
//
|
|
25148
25328
|
// --------------------------------------------------------------------------
|
|
@@ -25233,7 +25413,7 @@ const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(CalciteInputDateP
|
|
|
25233
25413
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(CalciteInputMessage$1, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
25234
25414
|
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(CalciteInputTimePicker$1, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"calciteTimePickerBlur","timePickerBlurHandler"],[0,"calciteTimePickerFocus","timePickerFocusHandler"]]]);
|
|
25235
25415
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(CalciteLabel$1, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disableSpacing":[4,"disable-spacing"],"disabled":[516]}]);
|
|
25236
|
-
const CalciteLink = /*@__PURE__*/proxyCustomElement(CalciteLink$1, [1,"calcite-link",{"disabled":[516],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1],"childElType":[32]}]);
|
|
25416
|
+
const CalciteLink = /*@__PURE__*/proxyCustomElement(CalciteLink$1, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1],"childElType":[32]}]);
|
|
25237
25417
|
const CalciteList = /*@__PURE__*/proxyCustomElement(CalciteList$1, [1,"calcite-list",{"headingLevel":[2,"heading-level"]}]);
|
|
25238
25418
|
const CalciteListItem = /*@__PURE__*/proxyCustomElement(CalciteListItem$1, [1,"calcite-list-item",{"nonInteractive":[516,"non-interactive"],"description":[1],"disabled":[516],"label":[1]}]);
|
|
25239
25419
|
const CalciteListItemGroup = /*@__PURE__*/proxyCustomElement(CalciteListItemGroup$1, [1,"calcite-list-item-group",{"heading":[513],"headingLevel":[2,"heading-level"]}]);
|