@esri/calcite-components 1.0.0-next.363 → 1.0.0-next.367
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-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-0b0ce9b2.system.entry.js → p-3280f0ac.system.entry.js} +1 -1
- 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-9f349c92.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 +22 -11
- package/dist/cjs/calcite-input.cjs.entry.js +3 -0
- 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 +42 -13
- package/dist/collection/components/calcite-combobox/resources.js +3 -0
- package/dist/collection/components/calcite-input/calcite-input.js +3 -0
- 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-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 +21 -12
- package/dist/components/calcite-input2.js +3 -0
- 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-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/components/utils2.js +4 -1
- package/dist/custom-elements/index.js +300 -110
- 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 +22 -11
- package/dist/esm/calcite-input.entry.js +3 -0
- 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-input.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 +43 -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-combobox/calcite-combobox.d.ts +4 -0
- package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
- 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 +18 -0
- package/hydrate/index.js +301 -109
- package/package.json +1 -2
- 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-1b3a66ec.system.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-28adfebc.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-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-85fb7bc0.entry.js +0 -5
- package/dist/calcite/p-8d36bc7c.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-f6fc151d.system.entry.js +0 -5
- package/dist/calcite/p-f73124d0.entry.js +0 -5
|
@@ -152,7 +152,7 @@ const CSS_UTILITY = {
|
|
|
152
152
|
lightTheme,
|
|
153
153
|
rtl: "calcite--rtl"
|
|
154
154
|
};
|
|
155
|
-
const TEXT$
|
|
155
|
+
const TEXT$r = {
|
|
156
156
|
loading: "Loading"
|
|
157
157
|
};
|
|
158
158
|
|
|
@@ -463,7 +463,7 @@ const CSS$P = {
|
|
|
463
463
|
textContainer: "text-container",
|
|
464
464
|
textContainerVisible: "text-container--visible"
|
|
465
465
|
};
|
|
466
|
-
const TEXT$
|
|
466
|
+
const TEXT$q = {
|
|
467
467
|
loading: "Loading"
|
|
468
468
|
};
|
|
469
469
|
|
|
@@ -516,7 +516,7 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
516
516
|
/** string to override English loading text
|
|
517
517
|
* @default "Loading"
|
|
518
518
|
*/
|
|
519
|
-
this.intlLoading = TEXT$
|
|
519
|
+
this.intlLoading = TEXT$q.loading;
|
|
520
520
|
/**
|
|
521
521
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
522
522
|
*/
|
|
@@ -620,7 +620,7 @@ const SLOTS$o = {
|
|
|
620
620
|
menuActions: "menu-actions",
|
|
621
621
|
menuTooltip: "menu-tooltip"
|
|
622
622
|
};
|
|
623
|
-
const TEXT$
|
|
623
|
+
const TEXT$p = {
|
|
624
624
|
more: "More"
|
|
625
625
|
};
|
|
626
626
|
const ICONS$e = {
|
|
@@ -711,7 +711,7 @@ const SLOTS$n = {
|
|
|
711
711
|
bottomActions: "bottom-actions",
|
|
712
712
|
expandTooltip: "expand-tooltip"
|
|
713
713
|
};
|
|
714
|
-
const TEXT$
|
|
714
|
+
const TEXT$o = {
|
|
715
715
|
expand: "Expand",
|
|
716
716
|
collapse: "Collapse"
|
|
717
717
|
};
|
|
@@ -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}";
|
|
@@ -2162,8 +2172,8 @@ let CalciteActionBar$1 = class extends HTMLElement$1 {
|
|
|
2162
2172
|
renderBottomActionGroup() {
|
|
2163
2173
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2164
2174
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
2165
|
-
const expandLabel = intlExpand || TEXT$
|
|
2166
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2175
|
+
const expandLabel = intlExpand || TEXT$o.expand;
|
|
2176
|
+
const collapseLabel = intlCollapse || TEXT$o.collapse;
|
|
2167
2177
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2168
2178
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$n.bottomActions }), h("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
2169
2179
|
}
|
|
@@ -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
|
// --------------------------------------------------------------------------
|
|
@@ -2228,7 +2249,7 @@ let CalciteActionGroup$1 = class extends HTMLElement$1 {
|
|
|
2228
2249
|
renderMenu() {
|
|
2229
2250
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
2230
2251
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
2231
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2252
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$p.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, h("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$p.trigger, text: intlMore || TEXT$p.more, textEnabled: expanded }), h("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
2232
2253
|
}
|
|
2233
2254
|
render() {
|
|
2234
2255
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -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;
|
|
@@ -2527,7 +2550,7 @@ const CSS$M = {
|
|
|
2527
2550
|
actionGroupBottom: "action-group--bottom",
|
|
2528
2551
|
container: "container"
|
|
2529
2552
|
};
|
|
2530
|
-
const TEXT$
|
|
2553
|
+
const TEXT$n = {
|
|
2531
2554
|
expand: "Expand",
|
|
2532
2555
|
collapse: "Collapse"
|
|
2533
2556
|
};
|
|
@@ -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) {
|
|
@@ -2625,8 +2654,8 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2625
2654
|
renderBottomActionGroup() {
|
|
2626
2655
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2627
2656
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
2628
|
-
const expandLabel = intlExpand || TEXT$
|
|
2629
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2657
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
2658
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
2630
2659
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2631
2660
|
return expandToggleNode ? (h("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
2632
2661
|
}
|
|
@@ -2641,7 +2670,7 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2641
2670
|
static get style() { return calciteActionPadCss; }
|
|
2642
2671
|
};
|
|
2643
2672
|
|
|
2644
|
-
const TEXT$
|
|
2673
|
+
const TEXT$m = {
|
|
2645
2674
|
intlClose: "Close"
|
|
2646
2675
|
};
|
|
2647
2676
|
const DURATIONS = {
|
|
@@ -2690,7 +2719,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2690
2719
|
/** string to override English close text
|
|
2691
2720
|
* @default "Close"
|
|
2692
2721
|
*/
|
|
2693
|
-
this.intlClose = TEXT$
|
|
2722
|
+
this.intlClose = TEXT$m.intlClose;
|
|
2694
2723
|
/** specify the placement of the alert */
|
|
2695
2724
|
this.placement = "bottom";
|
|
2696
2725
|
/** specify the scale of the alert, defaults to m */
|
|
@@ -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 {
|
|
@@ -3103,7 +3138,7 @@ const CSS$L = {
|
|
|
3103
3138
|
invalid: "invalid",
|
|
3104
3139
|
loading: "loading"
|
|
3105
3140
|
};
|
|
3106
|
-
const TEXT$
|
|
3141
|
+
const TEXT$l = {
|
|
3107
3142
|
collapse: "Collapse",
|
|
3108
3143
|
expand: "Expand",
|
|
3109
3144
|
loading: "Loading",
|
|
@@ -3160,11 +3195,11 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3160
3195
|
/** string to override English loading text
|
|
3161
3196
|
* @default "Loading"
|
|
3162
3197
|
*/
|
|
3163
|
-
this.intlLoading = TEXT$
|
|
3198
|
+
this.intlLoading = TEXT$l.loading;
|
|
3164
3199
|
/** Text string used for the actions menu
|
|
3165
3200
|
* @default "Options"
|
|
3166
3201
|
*/
|
|
3167
|
-
this.intlOptions = TEXT$
|
|
3202
|
+
this.intlOptions = TEXT$l.options;
|
|
3168
3203
|
/**
|
|
3169
3204
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3170
3205
|
*/
|
|
@@ -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",
|
|
@@ -3212,12 +3258,12 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3212
3258
|
}
|
|
3213
3259
|
render() {
|
|
3214
3260
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3215
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3261
|
+
const toggleLabel = open ? intlCollapse || TEXT$l.collapse : intlExpand || TEXT$l.expand;
|
|
3216
3262
|
const headerContent = (h("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
3217
3263
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
3218
3264
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
3219
3265
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3220
|
-
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
3266
|
+
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$l.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3221
3267
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
3222
3268
|
[CSS$L.article]: true
|
|
3223
3269
|
} }, headerNode, h("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -3238,7 +3284,7 @@ const CSS$K = {
|
|
|
3238
3284
|
statusIcon: "status-icon",
|
|
3239
3285
|
valid: "valid"
|
|
3240
3286
|
};
|
|
3241
|
-
const TEXT$
|
|
3287
|
+
const TEXT$k = {
|
|
3242
3288
|
collapse: "Collapse",
|
|
3243
3289
|
expand: "Expand"
|
|
3244
3290
|
};
|
|
@@ -3309,7 +3355,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3309
3355
|
: dir === "rtl"
|
|
3310
3356
|
? ICONS$b.menuClosedLeft
|
|
3311
3357
|
: ICONS$b.menuClosedRight;
|
|
3312
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3358
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
3313
3359
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-label": toggleLabel, class: {
|
|
3314
3360
|
[CSS$K.toggle]: true,
|
|
3315
3361
|
[CSS$K.toggleSwitch]: true
|
|
@@ -3363,7 +3409,7 @@ const CSS$J = {
|
|
|
3363
3409
|
iconStartEmpty: "icon-start-empty",
|
|
3364
3410
|
iconEndEmpty: "icon-end-empty"
|
|
3365
3411
|
};
|
|
3366
|
-
const TEXT$
|
|
3412
|
+
const TEXT$j = {
|
|
3367
3413
|
loading: "Loading"
|
|
3368
3414
|
};
|
|
3369
3415
|
|
|
@@ -3469,7 +3515,7 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3469
3515
|
/** string to override English loading text
|
|
3470
3516
|
* @default "Loading"
|
|
3471
3517
|
*/
|
|
3472
|
-
this.intlLoading = TEXT$
|
|
3518
|
+
this.intlLoading = TEXT$j.loading;
|
|
3473
3519
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
3474
3520
|
this.loading = false;
|
|
3475
3521
|
/** optionally add a round style to the button */
|
|
@@ -3607,7 +3653,7 @@ const SLOTS$j = {
|
|
|
3607
3653
|
footerLeading: "footer-leading",
|
|
3608
3654
|
footerTrailing: "footer-trailing"
|
|
3609
3655
|
};
|
|
3610
|
-
const TEXT$
|
|
3656
|
+
const TEXT$i = {
|
|
3611
3657
|
select: "Select",
|
|
3612
3658
|
deselect: "Deselect",
|
|
3613
3659
|
loading: "Loading"
|
|
@@ -3635,15 +3681,15 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3635
3681
|
/** string to override English loading text
|
|
3636
3682
|
* @default "Loading"
|
|
3637
3683
|
*/
|
|
3638
|
-
this.intlLoading = TEXT$
|
|
3684
|
+
this.intlLoading = TEXT$i.loading;
|
|
3639
3685
|
/** string to override English select text for checkbox when selectable is true
|
|
3640
3686
|
* @default "Select"
|
|
3641
3687
|
*/
|
|
3642
|
-
this.intlSelect = TEXT$
|
|
3688
|
+
this.intlSelect = TEXT$i.select;
|
|
3643
3689
|
/** string to override English deselect text for checkbox when selectable is true
|
|
3644
3690
|
* @default "Deselect"
|
|
3645
3691
|
*/
|
|
3646
|
-
this.intlDeselect = TEXT$
|
|
3692
|
+
this.intlDeselect = TEXT$i.deselect;
|
|
3647
3693
|
//--------------------------------------------------------------------------
|
|
3648
3694
|
//
|
|
3649
3695
|
// Private State/Props
|
|
@@ -3994,7 +4040,7 @@ const CSS$H = {
|
|
|
3994
4040
|
chipImageContainer: "chip-image-container",
|
|
3995
4041
|
calciteChipIcon: "calcite-chip--icon"
|
|
3996
4042
|
};
|
|
3997
|
-
const TEXT$
|
|
4043
|
+
const TEXT$h = {
|
|
3998
4044
|
close: "Close"
|
|
3999
4045
|
};
|
|
4000
4046
|
const SLOTS$i = {
|
|
@@ -4026,7 +4072,7 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4026
4072
|
/** Aria label for the "x" button
|
|
4027
4073
|
* @default "Close"
|
|
4028
4074
|
*/
|
|
4029
|
-
this.dismissLabel = TEXT$
|
|
4075
|
+
this.dismissLabel = TEXT$h.close;
|
|
4030
4076
|
/** flip the icon in rtl */
|
|
4031
4077
|
this.iconFlipRtl = false;
|
|
4032
4078
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -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" }));
|
|
@@ -6228,7 +6285,7 @@ const HSV_LIMITS = {
|
|
|
6228
6285
|
s: 100,
|
|
6229
6286
|
v: 100
|
|
6230
6287
|
};
|
|
6231
|
-
const TEXT$
|
|
6288
|
+
const TEXT$g = {
|
|
6232
6289
|
b: "B",
|
|
6233
6290
|
blue: "Blue",
|
|
6234
6291
|
deleteColor: "Delete color",
|
|
@@ -6351,80 +6408,80 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6351
6408
|
/** Label used for the blue channel
|
|
6352
6409
|
* @default "B"
|
|
6353
6410
|
*/
|
|
6354
|
-
this.intlB = TEXT$
|
|
6411
|
+
this.intlB = TEXT$g.b;
|
|
6355
6412
|
/** Label used for the blue channel description
|
|
6356
6413
|
* @default "Blue"
|
|
6357
6414
|
*/
|
|
6358
|
-
this.intlBlue = TEXT$
|
|
6415
|
+
this.intlBlue = TEXT$g.blue;
|
|
6359
6416
|
/** Label used for the delete color button.
|
|
6360
6417
|
* @default "Delete color"
|
|
6361
6418
|
*/
|
|
6362
|
-
this.intlDeleteColor = TEXT$
|
|
6419
|
+
this.intlDeleteColor = TEXT$g.deleteColor;
|
|
6363
6420
|
/** Label used for the green channel
|
|
6364
6421
|
* @default "G"
|
|
6365
6422
|
*/
|
|
6366
|
-
this.intlG = TEXT$
|
|
6423
|
+
this.intlG = TEXT$g.g;
|
|
6367
6424
|
/** Label used for the green channel description
|
|
6368
6425
|
* @default "Green"
|
|
6369
6426
|
*/
|
|
6370
|
-
this.intlGreen = TEXT$
|
|
6427
|
+
this.intlGreen = TEXT$g.green;
|
|
6371
6428
|
/** Label used for the hue channel
|
|
6372
6429
|
* @default "H"
|
|
6373
6430
|
*/
|
|
6374
|
-
this.intlH = TEXT$
|
|
6431
|
+
this.intlH = TEXT$g.h;
|
|
6375
6432
|
/** Label used for the HSV mode
|
|
6376
6433
|
* @default "HSV"
|
|
6377
6434
|
*/
|
|
6378
|
-
this.intlHsv = TEXT$
|
|
6435
|
+
this.intlHsv = TEXT$g.hsv;
|
|
6379
6436
|
/** Label used for the hex input
|
|
6380
6437
|
* @default "Hex"
|
|
6381
6438
|
*/
|
|
6382
|
-
this.intlHex = TEXT$
|
|
6439
|
+
this.intlHex = TEXT$g.hex;
|
|
6383
6440
|
/** Label used for the hue channel description
|
|
6384
6441
|
* @default "Hue"
|
|
6385
6442
|
*/
|
|
6386
|
-
this.intlHue = TEXT$
|
|
6443
|
+
this.intlHue = TEXT$g.hue;
|
|
6387
6444
|
/**
|
|
6388
6445
|
* Label used for the hex input when there is no color selected.
|
|
6389
6446
|
* @default "No color"
|
|
6390
6447
|
*/
|
|
6391
|
-
this.intlNoColor = TEXT$
|
|
6448
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
6392
6449
|
/** Label used for the red channel
|
|
6393
6450
|
* @default "R"
|
|
6394
6451
|
*/
|
|
6395
|
-
this.intlR = TEXT$
|
|
6452
|
+
this.intlR = TEXT$g.r;
|
|
6396
6453
|
/** Label used for the red channel description
|
|
6397
6454
|
* @default "Red"
|
|
6398
6455
|
*/
|
|
6399
|
-
this.intlRed = TEXT$
|
|
6456
|
+
this.intlRed = TEXT$g.red;
|
|
6400
6457
|
/** Label used for the RGB mode
|
|
6401
6458
|
* @default "RGB"
|
|
6402
6459
|
*/
|
|
6403
|
-
this.intlRgb = TEXT$
|
|
6460
|
+
this.intlRgb = TEXT$g.rgb;
|
|
6404
6461
|
/** Label used for the saturation channel
|
|
6405
6462
|
* @default "S"
|
|
6406
6463
|
*/
|
|
6407
|
-
this.intlS = TEXT$
|
|
6464
|
+
this.intlS = TEXT$g.s;
|
|
6408
6465
|
/** Label used for the saturation channel description
|
|
6409
6466
|
* @default "Saturation"
|
|
6410
6467
|
*/
|
|
6411
|
-
this.intlSaturation = TEXT$
|
|
6468
|
+
this.intlSaturation = TEXT$g.saturation;
|
|
6412
6469
|
/** Label used for the save color button.
|
|
6413
6470
|
* @default "Save color"
|
|
6414
6471
|
*/
|
|
6415
|
-
this.intlSaveColor = TEXT$
|
|
6472
|
+
this.intlSaveColor = TEXT$g.saveColor;
|
|
6416
6473
|
/** Label used for the saved colors section
|
|
6417
6474
|
* @default "Saved"
|
|
6418
6475
|
*/
|
|
6419
|
-
this.intlSaved = TEXT$
|
|
6476
|
+
this.intlSaved = TEXT$g.saved;
|
|
6420
6477
|
/** Label used for the value channel
|
|
6421
6478
|
* @default "V"
|
|
6422
6479
|
*/
|
|
6423
|
-
this.intlV = TEXT$
|
|
6480
|
+
this.intlV = TEXT$g.v;
|
|
6424
6481
|
/** Label used for the
|
|
6425
6482
|
* @default "Value"
|
|
6426
6483
|
*/
|
|
6427
|
-
this.intlValue = TEXT$
|
|
6484
|
+
this.intlValue = TEXT$g.value;
|
|
6428
6485
|
/**
|
|
6429
6486
|
* The scale of the color picker.
|
|
6430
6487
|
*/
|
|
@@ -7100,12 +7157,12 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7100
7157
|
* Label used for the hex input.
|
|
7101
7158
|
* @default "Hex"
|
|
7102
7159
|
*/
|
|
7103
|
-
this.intlHex = TEXT$
|
|
7160
|
+
this.intlHex = TEXT$g.hex;
|
|
7104
7161
|
/**
|
|
7105
7162
|
* Label used for the hex input when there is no color selected.
|
|
7106
7163
|
* @default "No color"
|
|
7107
7164
|
*/
|
|
7108
|
-
this.intlNoColor = TEXT$
|
|
7165
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
7109
7166
|
/**
|
|
7110
7167
|
* The component's scale.
|
|
7111
7168
|
*/
|
|
@@ -9180,6 +9237,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
9180
9237
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9181
9238
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
9182
9239
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
9240
|
+
const TEXT$f = {
|
|
9241
|
+
removeTag: "Remove tag"
|
|
9242
|
+
};
|
|
9183
9243
|
|
|
9184
9244
|
function getAncestors(element) {
|
|
9185
9245
|
var _a, _b;
|
|
@@ -9209,6 +9269,11 @@ function getDepth(element) {
|
|
|
9209
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}";
|
|
9210
9270
|
|
|
9211
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-";
|
|
9212
9277
|
let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
9213
9278
|
constructor() {
|
|
9214
9279
|
super();
|
|
@@ -9249,6 +9314,10 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9249
9314
|
this.scale = "m";
|
|
9250
9315
|
/** The value(s) of the selectedItem(s) */
|
|
9251
9316
|
this.value = null;
|
|
9317
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
9318
|
+
* @default "Remove tag"
|
|
9319
|
+
*/
|
|
9320
|
+
this.intlRemoveTag = TEXT$f.removeTag;
|
|
9252
9321
|
//--------------------------------------------------------------------------
|
|
9253
9322
|
//
|
|
9254
9323
|
// Private State/Props
|
|
@@ -9758,7 +9827,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9758
9827
|
const item = document.createElement(ComboboxItem);
|
|
9759
9828
|
item.value = value;
|
|
9760
9829
|
item.textLabel = value;
|
|
9761
|
-
item.guid = guid()
|
|
9830
|
+
item.guid = `${chipUidPrefix}${guid()}`;
|
|
9762
9831
|
item.selected = true;
|
|
9763
9832
|
this.el.appendChild(item);
|
|
9764
9833
|
this.resetText();
|
|
@@ -9808,7 +9877,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9808
9877
|
focusChip() {
|
|
9809
9878
|
var _a;
|
|
9810
9879
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
9811
|
-
const chip = this.referenceEl.querySelector(
|
|
9880
|
+
const chip = this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`);
|
|
9812
9881
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
9813
9882
|
}
|
|
9814
9883
|
shiftActiveItemIndex(delta) {
|
|
@@ -9854,7 +9923,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9854
9923
|
//
|
|
9855
9924
|
//--------------------------------------------------------------------------
|
|
9856
9925
|
renderChips() {
|
|
9857
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
9926
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
9858
9927
|
return this.selectedItems.map((item, i) => {
|
|
9859
9928
|
const chipClasses = {
|
|
9860
9929
|
chip: true,
|
|
@@ -9863,11 +9932,11 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9863
9932
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
9864
9933
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
9865
9934
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
9866
|
-
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));
|
|
9867
9936
|
});
|
|
9868
9937
|
}
|
|
9869
9938
|
renderInput() {
|
|
9870
|
-
const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
9939
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
9871
9940
|
const single = selectionMode === "single";
|
|
9872
9941
|
const selectedItem = selectedItems[0];
|
|
9873
9942
|
const showLabel = !active && single && !!selectedItem;
|
|
@@ -9877,16 +9946,16 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9877
9946
|
} }, showLabel && (h("span", { class: {
|
|
9878
9947
|
label: true,
|
|
9879
9948
|
"label--spaced": needsIcon
|
|
9880
|
-
}, 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: {
|
|
9881
9950
|
input: true,
|
|
9882
9951
|
"input--single": true,
|
|
9883
9952
|
"input--transparent": this.activeChipIndex > -1,
|
|
9884
9953
|
"input--hidden": showLabel,
|
|
9885
9954
|
"input--icon": single && needsIcon
|
|
9886
|
-
}, 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" })));
|
|
9887
9956
|
}
|
|
9888
9957
|
renderListBoxOptions() {
|
|
9889
|
-
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)));
|
|
9890
9959
|
}
|
|
9891
9960
|
renderPopperContainer() {
|
|
9892
9961
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -9912,12 +9981,11 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9912
9981
|
render() {
|
|
9913
9982
|
const { guid, open, label } = this;
|
|
9914
9983
|
const single = this.selectionMode === "single";
|
|
9915
|
-
|
|
9916
|
-
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: {
|
|
9917
9985
|
wrapper: true,
|
|
9918
9986
|
"wrapper--single": single || !this.selectedItems.length,
|
|
9919
9987
|
"wrapper--active": open
|
|
9920
|
-
}, 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 })));
|
|
9921
9989
|
}
|
|
9922
9990
|
get el() { return this; }
|
|
9923
9991
|
static get watchers() { return {
|
|
@@ -12919,7 +12987,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12919
12987
|
* string to override English loading text
|
|
12920
12988
|
* @default "Loading"
|
|
12921
12989
|
*/
|
|
12922
|
-
this.intlLoading = TEXT$
|
|
12990
|
+
this.intlLoading = TEXT$r.loading;
|
|
12923
12991
|
/** flip the icon in rtl */
|
|
12924
12992
|
this.iconFlipRtl = false;
|
|
12925
12993
|
/** specify if the input is in loading state */
|
|
@@ -13094,6 +13162,9 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13094
13162
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
13095
13163
|
const valueNudgeDelayInMs = 100;
|
|
13096
13164
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
13165
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
13166
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
13167
|
+
}
|
|
13097
13168
|
let firstValueNudge = true;
|
|
13098
13169
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
13099
13170
|
if (firstValueNudge) {
|
|
@@ -14282,6 +14353,11 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14282
14353
|
//--------------------------------------------------------------------------
|
|
14283
14354
|
/** is the link disabled */
|
|
14284
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;
|
|
14285
14361
|
/** the node type of the rendered child element */
|
|
14286
14362
|
this.childElType = "span";
|
|
14287
14363
|
//--------------------------------------------------------------------------
|
|
@@ -14305,13 +14381,19 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14305
14381
|
this.childElType = this.href ? "a" : "span";
|
|
14306
14382
|
}
|
|
14307
14383
|
render() {
|
|
14308
|
-
const
|
|
14384
|
+
const { download, el } = this;
|
|
14385
|
+
const dir = getElementDir(el);
|
|
14309
14386
|
const iconStartEl = (h("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
14310
14387
|
const iconEndEl = (h("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
14311
14388
|
const Tag = this.childElType;
|
|
14312
14389
|
const role = this.childElType === "span" ? "link" : null;
|
|
14313
14390
|
const tabIndex = this.disabled ? -1 : this.childElType === "span" ? 0 : null;
|
|
14314
|
-
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)));
|
|
14315
14397
|
}
|
|
14316
14398
|
//--------------------------------------------------------------------------
|
|
14317
14399
|
//
|
|
@@ -14406,6 +14488,17 @@ let CalciteListItem$1 = class extends HTMLElement$1 {
|
|
|
14406
14488
|
}
|
|
14407
14489
|
// --------------------------------------------------------------------------
|
|
14408
14490
|
//
|
|
14491
|
+
// Lifecycle
|
|
14492
|
+
//
|
|
14493
|
+
// --------------------------------------------------------------------------
|
|
14494
|
+
connectedCallback() {
|
|
14495
|
+
connectConditionalSlotComponent(this);
|
|
14496
|
+
}
|
|
14497
|
+
disconnectedCallback() {
|
|
14498
|
+
disconnectConditionalSlotComponent(this);
|
|
14499
|
+
}
|
|
14500
|
+
// --------------------------------------------------------------------------
|
|
14501
|
+
//
|
|
14409
14502
|
// Public Methods
|
|
14410
14503
|
//
|
|
14411
14504
|
// --------------------------------------------------------------------------
|
|
@@ -14795,11 +14888,13 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14795
14888
|
var _a;
|
|
14796
14889
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
14797
14890
|
this.updateFooterVisibility();
|
|
14891
|
+
connectConditionalSlotComponent(this);
|
|
14798
14892
|
}
|
|
14799
14893
|
disconnectedCallback() {
|
|
14800
14894
|
var _a;
|
|
14801
14895
|
this.removeOverflowHiddenClass();
|
|
14802
14896
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
14897
|
+
disconnectConditionalSlotComponent(this);
|
|
14803
14898
|
}
|
|
14804
14899
|
render() {
|
|
14805
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: {
|
|
@@ -14809,10 +14904,10 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14809
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" }))));
|
|
14810
14905
|
}
|
|
14811
14906
|
renderFooter() {
|
|
14812
|
-
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;
|
|
14813
14908
|
}
|
|
14814
14909
|
renderCloseButton() {
|
|
14815
|
-
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;
|
|
14816
14911
|
}
|
|
14817
14912
|
renderStyle() {
|
|
14818
14913
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -14977,6 +15072,12 @@ let CalciteNotice$1 = class extends HTMLElement$1 {
|
|
|
14977
15072
|
// Lifecycle
|
|
14978
15073
|
//
|
|
14979
15074
|
//--------------------------------------------------------------------------
|
|
15075
|
+
connectedCallback() {
|
|
15076
|
+
connectConditionalSlotComponent(this);
|
|
15077
|
+
}
|
|
15078
|
+
disconnectedCallback() {
|
|
15079
|
+
disconnectConditionalSlotComponent(this);
|
|
15080
|
+
}
|
|
14980
15081
|
componentWillLoad() {
|
|
14981
15082
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
14982
15083
|
}
|
|
@@ -15415,6 +15516,17 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15415
15516
|
}
|
|
15416
15517
|
// --------------------------------------------------------------------------
|
|
15417
15518
|
//
|
|
15519
|
+
// Lifecycle
|
|
15520
|
+
//
|
|
15521
|
+
// --------------------------------------------------------------------------
|
|
15522
|
+
connectedCallback() {
|
|
15523
|
+
connectConditionalSlotComponent(this);
|
|
15524
|
+
}
|
|
15525
|
+
disconnectedCallback() {
|
|
15526
|
+
disconnectConditionalSlotComponent(this);
|
|
15527
|
+
}
|
|
15528
|
+
// --------------------------------------------------------------------------
|
|
15529
|
+
//
|
|
15418
15530
|
// Methods
|
|
15419
15531
|
//
|
|
15420
15532
|
// --------------------------------------------------------------------------
|
|
@@ -15454,7 +15566,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15454
15566
|
* Allows user to override the entire header-content node.
|
|
15455
15567
|
*/
|
|
15456
15568
|
renderHeaderSlottedContent() {
|
|
15457
|
-
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 })));
|
|
15458
15570
|
}
|
|
15459
15571
|
renderHeaderStartActions() {
|
|
15460
15572
|
const { el } = this;
|
|
@@ -15472,7 +15584,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15472
15584
|
renderMenu() {
|
|
15473
15585
|
const { el, intlOptions, menuOpen } = this;
|
|
15474
15586
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
15475
|
-
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;
|
|
15476
15588
|
}
|
|
15477
15589
|
renderHeaderNode() {
|
|
15478
15590
|
const { el, showBackButton } = this;
|
|
@@ -15490,18 +15602,11 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15490
15602
|
headerMenuNode ||
|
|
15491
15603
|
showBackButton ? (h("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
15492
15604
|
}
|
|
15493
|
-
|
|
15494
|
-
* Allows user to override the entire footer node.
|
|
15495
|
-
*/
|
|
15496
|
-
renderFooterSlottedContent() {
|
|
15605
|
+
renderFooterNode() {
|
|
15497
15606
|
const { el } = this;
|
|
15498
15607
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
15499
|
-
return hasFooterSlottedContent ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footer }))) : null;
|
|
15500
|
-
}
|
|
15501
|
-
renderFooterActions() {
|
|
15502
|
-
const { el } = this;
|
|
15503
15608
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
15504
|
-
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;
|
|
15505
15610
|
}
|
|
15506
15611
|
renderContent() {
|
|
15507
15612
|
const { el } = this;
|
|
@@ -15513,7 +15618,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15513
15618
|
}
|
|
15514
15619
|
render() {
|
|
15515
15620
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
15516
|
-
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()));
|
|
15517
15622
|
return (h(Fragment, null, loading || disabled ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
15518
15623
|
}
|
|
15519
15624
|
get el() { return this; }
|
|
@@ -15965,6 +16070,17 @@ let CalcitePickListGroup$1 = class extends HTMLElement$1 {
|
|
|
15965
16070
|
}
|
|
15966
16071
|
// --------------------------------------------------------------------------
|
|
15967
16072
|
//
|
|
16073
|
+
// Lifecycle
|
|
16074
|
+
//
|
|
16075
|
+
// --------------------------------------------------------------------------
|
|
16076
|
+
connectedCallback() {
|
|
16077
|
+
connectConditionalSlotComponent(this);
|
|
16078
|
+
}
|
|
16079
|
+
disconnectedCallback() {
|
|
16080
|
+
disconnectConditionalSlotComponent(this);
|
|
16081
|
+
}
|
|
16082
|
+
// --------------------------------------------------------------------------
|
|
16083
|
+
//
|
|
15968
16084
|
// Render Methods
|
|
15969
16085
|
//
|
|
15970
16086
|
// --------------------------------------------------------------------------
|
|
@@ -16102,6 +16218,17 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
16102
16218
|
}
|
|
16103
16219
|
// --------------------------------------------------------------------------
|
|
16104
16220
|
//
|
|
16221
|
+
// Lifecycle
|
|
16222
|
+
//
|
|
16223
|
+
// --------------------------------------------------------------------------
|
|
16224
|
+
connectedCallback() {
|
|
16225
|
+
connectConditionalSlotComponent(this);
|
|
16226
|
+
}
|
|
16227
|
+
disconnectedCallback() {
|
|
16228
|
+
disconnectConditionalSlotComponent(this);
|
|
16229
|
+
}
|
|
16230
|
+
// --------------------------------------------------------------------------
|
|
16231
|
+
//
|
|
16105
16232
|
// Public Methods
|
|
16106
16233
|
//
|
|
16107
16234
|
// --------------------------------------------------------------------------
|
|
@@ -17534,12 +17661,23 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17534
17661
|
}
|
|
17535
17662
|
// --------------------------------------------------------------------------
|
|
17536
17663
|
//
|
|
17664
|
+
// Lifecycle
|
|
17665
|
+
//
|
|
17666
|
+
// --------------------------------------------------------------------------
|
|
17667
|
+
connectedCallback() {
|
|
17668
|
+
connectConditionalSlotComponent(this);
|
|
17669
|
+
}
|
|
17670
|
+
disconnectedCallback() {
|
|
17671
|
+
disconnectConditionalSlotComponent(this);
|
|
17672
|
+
}
|
|
17673
|
+
// --------------------------------------------------------------------------
|
|
17674
|
+
//
|
|
17537
17675
|
// Render Methods
|
|
17538
17676
|
//
|
|
17539
17677
|
// --------------------------------------------------------------------------
|
|
17540
17678
|
renderHeader() {
|
|
17541
17679
|
const hasHeader = !!getSlotted(this.el, SLOTS$7.header);
|
|
17542
|
-
return hasHeader ? h("slot", { name: SLOTS$7.header }) : null;
|
|
17680
|
+
return hasHeader ? h("slot", { key: "header", name: SLOTS$7.header }) : null;
|
|
17543
17681
|
}
|
|
17544
17682
|
renderContent() {
|
|
17545
17683
|
const content = !!this.contentBehind
|
|
@@ -17557,7 +17695,7 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17557
17695
|
}
|
|
17558
17696
|
renderFooter() {
|
|
17559
17697
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
17560
|
-
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;
|
|
17561
17699
|
}
|
|
17562
17700
|
renderMain() {
|
|
17563
17701
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
@@ -17609,6 +17747,17 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17609
17747
|
}
|
|
17610
17748
|
// --------------------------------------------------------------------------
|
|
17611
17749
|
//
|
|
17750
|
+
// Lifecycle
|
|
17751
|
+
//
|
|
17752
|
+
// --------------------------------------------------------------------------
|
|
17753
|
+
connectedCallback() {
|
|
17754
|
+
connectConditionalSlotComponent(this);
|
|
17755
|
+
}
|
|
17756
|
+
disconnectedCallback() {
|
|
17757
|
+
disconnectConditionalSlotComponent(this);
|
|
17758
|
+
}
|
|
17759
|
+
// --------------------------------------------------------------------------
|
|
17760
|
+
//
|
|
17612
17761
|
// Render Methods
|
|
17613
17762
|
//
|
|
17614
17763
|
// --------------------------------------------------------------------------
|
|
@@ -17616,7 +17765,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17616
17765
|
const { el } = this;
|
|
17617
17766
|
const contentNode = (h("div", { class: CSS$a.content }, h("slot", null)));
|
|
17618
17767
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
17619
|
-
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;
|
|
17620
17769
|
const children = [actionBarNode, contentNode];
|
|
17621
17770
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
17622
17771
|
children.reverse();
|
|
@@ -17790,7 +17939,11 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17790
17939
|
// Lifecycle
|
|
17791
17940
|
//
|
|
17792
17941
|
//--------------------------------------------------------------------------
|
|
17942
|
+
connectedCallback() {
|
|
17943
|
+
connectConditionalSlotComponent(this);
|
|
17944
|
+
}
|
|
17793
17945
|
disconnectedCallback() {
|
|
17946
|
+
disconnectConditionalSlotComponent(this);
|
|
17794
17947
|
this.disconnectSeparator();
|
|
17795
17948
|
}
|
|
17796
17949
|
componentDidLoad() {
|
|
@@ -17804,14 +17957,14 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17804
17957
|
renderHeader() {
|
|
17805
17958
|
const { el } = this;
|
|
17806
17959
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
17807
|
-
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;
|
|
17808
17961
|
}
|
|
17809
17962
|
render() {
|
|
17810
17963
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
17811
17964
|
const allowResizing = !detached && resizable;
|
|
17812
|
-
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))));
|
|
17813
|
-
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;
|
|
17814
|
-
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 });
|
|
17815
17968
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
17816
17969
|
if (position === "end") {
|
|
17817
17970
|
mainNodes.reverse();
|
|
@@ -22923,6 +23076,17 @@ let CalciteTile$1 = class extends HTMLElement$1 {
|
|
|
22923
23076
|
}
|
|
22924
23077
|
// --------------------------------------------------------------------------
|
|
22925
23078
|
//
|
|
23079
|
+
// Lifecycle
|
|
23080
|
+
//
|
|
23081
|
+
// --------------------------------------------------------------------------
|
|
23082
|
+
connectedCallback() {
|
|
23083
|
+
connectConditionalSlotComponent(this);
|
|
23084
|
+
}
|
|
23085
|
+
disconnectedCallback() {
|
|
23086
|
+
disconnectConditionalSlotComponent(this);
|
|
23087
|
+
}
|
|
23088
|
+
// --------------------------------------------------------------------------
|
|
23089
|
+
//
|
|
22926
23090
|
// Render Methods
|
|
22927
23091
|
//
|
|
22928
23092
|
// --------------------------------------------------------------------------
|
|
@@ -23861,6 +24025,17 @@ let CalciteTip$1 = class extends HTMLElement$1 {
|
|
|
23861
24025
|
}
|
|
23862
24026
|
// --------------------------------------------------------------------------
|
|
23863
24027
|
//
|
|
24028
|
+
// Lifecycle
|
|
24029
|
+
//
|
|
24030
|
+
// --------------------------------------------------------------------------
|
|
24031
|
+
connectedCallback() {
|
|
24032
|
+
connectConditionalSlotComponent(this);
|
|
24033
|
+
}
|
|
24034
|
+
disconnectedCallback() {
|
|
24035
|
+
disconnectConditionalSlotComponent(this);
|
|
24036
|
+
}
|
|
24037
|
+
// --------------------------------------------------------------------------
|
|
24038
|
+
//
|
|
23864
24039
|
// Render Methods
|
|
23865
24040
|
//
|
|
23866
24041
|
// --------------------------------------------------------------------------
|
|
@@ -23879,7 +24054,7 @@ let CalciteTip$1 = class extends HTMLElement$1 {
|
|
|
23879
24054
|
}
|
|
23880
24055
|
renderImageFrame() {
|
|
23881
24056
|
const { el } = this;
|
|
23882
|
-
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;
|
|
23883
24058
|
}
|
|
23884
24059
|
renderInfoNode() {
|
|
23885
24060
|
return (h("div", { class: CSS$3.info }, h("slot", null)));
|
|
@@ -24693,6 +24868,10 @@ let CalciteTreeItem$1 = class extends HTMLElement$1 {
|
|
|
24693
24868
|
const { expanded } = this.parentTreeItem;
|
|
24694
24869
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
24695
24870
|
}
|
|
24871
|
+
connectConditionalSlotComponent(this);
|
|
24872
|
+
}
|
|
24873
|
+
disconnectedCallback() {
|
|
24874
|
+
disconnectConditionalSlotComponent(this);
|
|
24696
24875
|
}
|
|
24697
24876
|
componentWillRender() {
|
|
24698
24877
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -25133,6 +25312,17 @@ let CalciteValueListItem$1 = class extends HTMLElement$1 {
|
|
|
25133
25312
|
}
|
|
25134
25313
|
// --------------------------------------------------------------------------
|
|
25135
25314
|
//
|
|
25315
|
+
// Lifecycle
|
|
25316
|
+
//
|
|
25317
|
+
// --------------------------------------------------------------------------
|
|
25318
|
+
connectedCallback() {
|
|
25319
|
+
connectConditionalSlotComponent(this);
|
|
25320
|
+
}
|
|
25321
|
+
disconnectedCallback() {
|
|
25322
|
+
disconnectConditionalSlotComponent(this);
|
|
25323
|
+
}
|
|
25324
|
+
// --------------------------------------------------------------------------
|
|
25325
|
+
//
|
|
25136
25326
|
// Public Methods
|
|
25137
25327
|
//
|
|
25138
25328
|
// --------------------------------------------------------------------------
|
|
@@ -25201,7 +25391,7 @@ const CalciteChip = /*@__PURE__*/proxyCustomElement(CalciteChip$1, [1,"calcite-c
|
|
|
25201
25391
|
const CalciteColorPicker = /*@__PURE__*/proxyCustomElement(CalciteColorPicker$1, [1,"calcite-color-picker",{"allowEmpty":[4,"allow-empty"],"appearance":[513],"color":[1040],"format":[1],"hideHex":[4,"hide-hex"],"hideChannels":[4,"hide-channels"],"hideSaved":[4,"hide-saved"],"intlB":[1,"intl-b"],"intlBlue":[1,"intl-blue"],"intlDeleteColor":[1,"intl-delete-color"],"intlG":[1,"intl-g"],"intlGreen":[1,"intl-green"],"intlH":[1,"intl-h"],"intlHsv":[1,"intl-hsv"],"intlHex":[1,"intl-hex"],"intlHue":[1,"intl-hue"],"intlNoColor":[1,"intl-no-color"],"intlR":[1,"intl-r"],"intlRed":[1,"intl-red"],"intlRgb":[1,"intl-rgb"],"intlS":[1,"intl-s"],"intlSaturation":[1,"intl-saturation"],"intlSaveColor":[1,"intl-save-color"],"intlSaved":[1,"intl-saved"],"intlV":[1,"intl-v"],"intlValue":[1,"intl-value"],"scale":[513],"storageId":[1,"storage-id"],"value":[1025],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]);
|
|
25202
25392
|
const CalciteColorPickerHexInput = /*@__PURE__*/proxyCustomElement(CalciteColorPickerHexInput$1, [1,"calcite-color-picker-hex-input",{"allowEmpty":[4,"allow-empty"],"intlHex":[1,"intl-hex"],"intlNoColor":[1,"intl-no-color"],"scale":[513],"value":[1537],"internalColor":[32]},[[2,"keydown","onInputKeyDown"]]]);
|
|
25203
25393
|
const CalciteColorPickerSwatch = /*@__PURE__*/proxyCustomElement(CalciteColorPickerSwatch$1, [1,"calcite-color-picker-swatch",{"active":[516],"color":[1],"scale":[513]}]);
|
|
25204
|
-
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
25394
|
+
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"intlRemoveTag":[1,"intl-remove-tag"],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
25205
25395
|
const CalciteComboboxItem = /*@__PURE__*/proxyCustomElement(CalciteComboboxItem$1, [1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[4],"ancestors":[1040],"guid":[1],"icon":[1],"textLabel":[513,"text-label"],"value":[8],"constant":[516]}]);
|
|
25206
25396
|
const CalciteComboboxItemGroup = /*@__PURE__*/proxyCustomElement(CalciteComboboxItemGroup$1, [1,"calcite-combobox-item-group",{"ancestors":[1040],"label":[1]}]);
|
|
25207
25397
|
const CalciteDatePicker = /*@__PURE__*/proxyCustomElement(CalciteDatePicker$1, [1,"calcite-date-picker",{"activeRange":[1,"active-range"],"value":[1025],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"range":[516],"start":[1025],"end":[1025],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"activeDate":[32],"activeStartDate":[32],"activeEndDate":[32],"localeData":[32],"hoverRange":[32]}]);
|
|
@@ -25223,7 +25413,7 @@ const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(CalciteInputDateP
|
|
|
25223
25413
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(CalciteInputMessage$1, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
25224
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"]]]);
|
|
25225
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]}]);
|
|
25226
|
-
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]}]);
|
|
25227
25417
|
const CalciteList = /*@__PURE__*/proxyCustomElement(CalciteList$1, [1,"calcite-list",{"headingLevel":[2,"heading-level"]}]);
|
|
25228
25418
|
const CalciteListItem = /*@__PURE__*/proxyCustomElement(CalciteListItem$1, [1,"calcite-list-item",{"nonInteractive":[516,"non-interactive"],"description":[1],"disabled":[516],"label":[1]}]);
|
|
25229
25419
|
const CalciteListItemGroup = /*@__PURE__*/proxyCustomElement(CalciteListItemGroup$1, [1,"calcite-list-item-group",{"heading":[513],"headingLevel":[2,"heading-level"]}]);
|