@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
package/hydrate/index.js
CHANGED
|
@@ -5676,7 +5676,7 @@ const CSS_UTILITY = {
|
|
|
5676
5676
|
lightTheme,
|
|
5677
5677
|
rtl: "calcite--rtl"
|
|
5678
5678
|
};
|
|
5679
|
-
const TEXT$
|
|
5679
|
+
const TEXT$r = {
|
|
5680
5680
|
loading: "Loading"
|
|
5681
5681
|
};
|
|
5682
5682
|
|
|
@@ -6001,7 +6001,7 @@ const CSS$P = {
|
|
|
6001
6001
|
textContainer: "text-container",
|
|
6002
6002
|
textContainerVisible: "text-container--visible"
|
|
6003
6003
|
};
|
|
6004
|
-
const TEXT$
|
|
6004
|
+
const TEXT$q = {
|
|
6005
6005
|
loading: "Loading"
|
|
6006
6006
|
};
|
|
6007
6007
|
|
|
@@ -6051,7 +6051,7 @@ class CalciteAction {
|
|
|
6051
6051
|
/** string to override English loading text
|
|
6052
6052
|
* @default "Loading"
|
|
6053
6053
|
*/
|
|
6054
|
-
this.intlLoading = TEXT$
|
|
6054
|
+
this.intlLoading = TEXT$q.loading;
|
|
6055
6055
|
/**
|
|
6056
6056
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
6057
6057
|
*/
|
|
@@ -6178,7 +6178,7 @@ const SLOTS$o = {
|
|
|
6178
6178
|
menuActions: "menu-actions",
|
|
6179
6179
|
menuTooltip: "menu-tooltip"
|
|
6180
6180
|
};
|
|
6181
|
-
const TEXT$
|
|
6181
|
+
const TEXT$p = {
|
|
6182
6182
|
more: "More"
|
|
6183
6183
|
};
|
|
6184
6184
|
const ICONS$e = {
|
|
@@ -6269,7 +6269,7 @@ const SLOTS$n = {
|
|
|
6269
6269
|
bottomActions: "bottom-actions",
|
|
6270
6270
|
expandTooltip: "expand-tooltip"
|
|
6271
6271
|
};
|
|
6272
|
-
const TEXT$
|
|
6272
|
+
const TEXT$o = {
|
|
6273
6273
|
expand: "Expand",
|
|
6274
6274
|
collapse: "Collapse"
|
|
6275
6275
|
};
|
|
@@ -7537,26 +7537,36 @@ function throttle$1(func, wait, options) {
|
|
|
7537
7537
|
});
|
|
7538
7538
|
}
|
|
7539
7539
|
|
|
7540
|
-
const
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
}
|
|
7544
|
-
const eventType = "slotchange";
|
|
7540
|
+
const observed = new Set();
|
|
7541
|
+
let mutationObserver;
|
|
7542
|
+
const observerOptions = { childList: true };
|
|
7545
7543
|
/**
|
|
7546
7544
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
7547
7545
|
*/
|
|
7548
7546
|
function connectConditionalSlotComponent(component) {
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7547
|
+
if (!mutationObserver) {
|
|
7548
|
+
mutationObserver = createObserver();
|
|
7549
|
+
}
|
|
7550
|
+
mutationObserver.observe(component.el, observerOptions);
|
|
7552
7551
|
}
|
|
7553
7552
|
/**
|
|
7554
7553
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
7555
7554
|
*/
|
|
7556
7555
|
function disconnectConditionalSlotComponent(component) {
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7556
|
+
observed.delete(component.el);
|
|
7557
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
7558
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
7559
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
7560
|
+
processMutations(mutationObserver.takeRecords());
|
|
7561
|
+
mutationObserver.disconnect();
|
|
7562
|
+
for (const [element] of observed.entries()) {
|
|
7563
|
+
mutationObserver.observe(element, observerOptions);
|
|
7564
|
+
}
|
|
7565
|
+
}
|
|
7566
|
+
function processMutations(mutations) {
|
|
7567
|
+
mutations.forEach(({ target }) => {
|
|
7568
|
+
forceUpdate$1(target);
|
|
7569
|
+
});
|
|
7560
7570
|
}
|
|
7561
7571
|
|
|
7562
7572
|
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*/.sc-calcite-action-bar: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*/.calcite-animate.sc-calcite-action-bar{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*/.calcite-animate__in.sc-calcite-action-bar{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-action-bar{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-action-bar{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-action-bar{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:host*/.sc-calcite-action-bar-h{-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 **/.sc-calcite-action-bar-h *.sc-calcite-action-bar{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:root*/.sc-calcite-action-bar:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-action-bar-h{display:none}/*!@:host*/.sc-calcite-action-bar-h{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-actions-disabled].sc-calcite-action-bar-h{overflow-y:auto}/*!@:host([expanded])*/[expanded].sc-calcite-action-bar-h{max-width:20vw}/*!@::slotted(calcite-action-group)*/.sc-calcite-action-bar-s>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)*/.sc-calcite-action-bar-s>calcite-action-group:last-child{border-bottom-width:0px}/*!@.action-group--bottom*/.action-group--bottom.sc-calcite-action-bar{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
@@ -7719,8 +7729,8 @@ class CalciteActionBar {
|
|
|
7719
7729
|
renderBottomActionGroup() {
|
|
7720
7730
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
7721
7731
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
7722
|
-
const expandLabel = intlExpand || TEXT$
|
|
7723
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
7732
|
+
const expandLabel = intlExpand || TEXT$o.expand;
|
|
7733
|
+
const collapseLabel = intlCollapse || TEXT$o.collapse;
|
|
7724
7734
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
7725
7735
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.bottomActions }), hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
7726
7736
|
}
|
|
@@ -7795,6 +7805,17 @@ class CalciteActionGroup {
|
|
|
7795
7805
|
}
|
|
7796
7806
|
// --------------------------------------------------------------------------
|
|
7797
7807
|
//
|
|
7808
|
+
// Lifecycle
|
|
7809
|
+
//
|
|
7810
|
+
// --------------------------------------------------------------------------
|
|
7811
|
+
connectedCallback() {
|
|
7812
|
+
connectConditionalSlotComponent(this);
|
|
7813
|
+
}
|
|
7814
|
+
disconnectedCallback() {
|
|
7815
|
+
disconnectConditionalSlotComponent(this);
|
|
7816
|
+
}
|
|
7817
|
+
// --------------------------------------------------------------------------
|
|
7818
|
+
//
|
|
7798
7819
|
// Component Methods
|
|
7799
7820
|
//
|
|
7800
7821
|
// --------------------------------------------------------------------------
|
|
@@ -7806,7 +7827,7 @@ class CalciteActionGroup {
|
|
|
7806
7827
|
renderMenu() {
|
|
7807
7828
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
7808
7829
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
7809
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
7830
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$p.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$p.trigger, text: intlMore || TEXT$p.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
7810
7831
|
}
|
|
7811
7832
|
render() {
|
|
7812
7833
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -8052,11 +8073,13 @@ class CalciteActionMenu {
|
|
|
8052
8073
|
var _a;
|
|
8053
8074
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
8054
8075
|
this.getActions();
|
|
8076
|
+
connectConditionalSlotComponent(this);
|
|
8055
8077
|
}
|
|
8056
8078
|
disconnectedCallback() {
|
|
8057
8079
|
var _a;
|
|
8058
8080
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
8059
8081
|
this.disconnectMenuButtonEl();
|
|
8082
|
+
disconnectConditionalSlotComponent(this);
|
|
8060
8083
|
}
|
|
8061
8084
|
expandedHandler() {
|
|
8062
8085
|
this.open = false;
|
|
@@ -8141,7 +8164,7 @@ const CSS$M = {
|
|
|
8141
8164
|
actionGroupBottom: "action-group--bottom",
|
|
8142
8165
|
container: "container"
|
|
8143
8166
|
};
|
|
8144
|
-
const TEXT$
|
|
8167
|
+
const TEXT$n = {
|
|
8145
8168
|
expand: "Expand",
|
|
8146
8169
|
collapse: "Collapse"
|
|
8147
8170
|
};
|
|
@@ -8214,6 +8237,12 @@ class CalciteActionPad {
|
|
|
8214
8237
|
// Lifecycle
|
|
8215
8238
|
//
|
|
8216
8239
|
// --------------------------------------------------------------------------
|
|
8240
|
+
connectedCallback() {
|
|
8241
|
+
connectConditionalSlotComponent(this);
|
|
8242
|
+
}
|
|
8243
|
+
disconnectedCallback() {
|
|
8244
|
+
disconnectConditionalSlotComponent(this);
|
|
8245
|
+
}
|
|
8217
8246
|
componentWillLoad() {
|
|
8218
8247
|
const { el, expandDisabled, expanded } = this;
|
|
8219
8248
|
if (!expandDisabled) {
|
|
@@ -8241,8 +8270,8 @@ class CalciteActionPad {
|
|
|
8241
8270
|
renderBottomActionGroup() {
|
|
8242
8271
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
8243
8272
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
8244
|
-
const expandLabel = intlExpand || TEXT$
|
|
8245
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
8273
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
8274
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
8246
8275
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8247
8276
|
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
8248
8277
|
}
|
|
@@ -8274,7 +8303,7 @@ class CalciteActionPad {
|
|
|
8274
8303
|
}; }
|
|
8275
8304
|
}
|
|
8276
8305
|
|
|
8277
|
-
const TEXT$
|
|
8306
|
+
const TEXT$m = {
|
|
8278
8307
|
intlClose: "Close"
|
|
8279
8308
|
};
|
|
8280
8309
|
const DURATIONS = {
|
|
@@ -8329,7 +8358,7 @@ class CalciteAlert {
|
|
|
8329
8358
|
/** string to override English close text
|
|
8330
8359
|
* @default "Close"
|
|
8331
8360
|
*/
|
|
8332
|
-
this.intlClose = TEXT$
|
|
8361
|
+
this.intlClose = TEXT$m.intlClose;
|
|
8333
8362
|
/** specify the placement of the alert */
|
|
8334
8363
|
this.placement = "bottom";
|
|
8335
8364
|
/** specify the scale of the alert, defaults to m */
|
|
@@ -8347,6 +8376,7 @@ class CalciteAlert {
|
|
|
8347
8376
|
this.queued = false;
|
|
8348
8377
|
this.autoDismissTimeoutId = null;
|
|
8349
8378
|
this.trackTimer = Date.now();
|
|
8379
|
+
this.activeTransitionProp = "opacity";
|
|
8350
8380
|
/** close and emit the closed alert and the queue */
|
|
8351
8381
|
this.closeAlert = () => {
|
|
8352
8382
|
this.autoDismissTimeoutId = null;
|
|
@@ -8355,10 +8385,19 @@ class CalciteAlert {
|
|
|
8355
8385
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
8356
8386
|
this.determineActiveAlert();
|
|
8357
8387
|
this.calciteAlertSync.emit({ queue: this.queue });
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8388
|
+
};
|
|
8389
|
+
this.transitionEnd = (event) => {
|
|
8390
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
8391
|
+
this.active
|
|
8392
|
+
? this.calciteAlertOpen.emit({
|
|
8393
|
+
el: this.el,
|
|
8394
|
+
queue: this.queue
|
|
8395
|
+
})
|
|
8396
|
+
: this.calciteAlertClose.emit({
|
|
8397
|
+
el: this.el,
|
|
8398
|
+
queue: this.queue
|
|
8399
|
+
});
|
|
8400
|
+
}
|
|
8362
8401
|
};
|
|
8363
8402
|
}
|
|
8364
8403
|
watchActive() {
|
|
@@ -8409,7 +8448,7 @@ class CalciteAlert {
|
|
|
8409
8448
|
container: true,
|
|
8410
8449
|
queued,
|
|
8411
8450
|
[placement]: true
|
|
8412
|
-
} }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8451
|
+
}, onTransitionEnd: this.transitionEnd }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
8413
8452
|
}
|
|
8414
8453
|
// when an alert is opened or closed, update queue and determine active alert
|
|
8415
8454
|
alertSync(event) {
|
|
@@ -8468,10 +8507,6 @@ class CalciteAlert {
|
|
|
8468
8507
|
openAlert() {
|
|
8469
8508
|
window.clearTimeout(this.queueTimeout);
|
|
8470
8509
|
this.queueTimeout = window.setTimeout(() => (this.queued = false), 300);
|
|
8471
|
-
this.calciteAlertOpen.emit({
|
|
8472
|
-
el: this.el,
|
|
8473
|
-
queue: this.queue
|
|
8474
|
-
});
|
|
8475
8510
|
}
|
|
8476
8511
|
get el() { return getElement(this); }
|
|
8477
8512
|
static get watchers() { return {
|
|
@@ -8778,7 +8813,7 @@ const CSS$L = {
|
|
|
8778
8813
|
invalid: "invalid",
|
|
8779
8814
|
loading: "loading"
|
|
8780
8815
|
};
|
|
8781
|
-
const TEXT$
|
|
8816
|
+
const TEXT$l = {
|
|
8782
8817
|
collapse: "Collapse",
|
|
8783
8818
|
expand: "Expand",
|
|
8784
8819
|
loading: "Loading",
|
|
@@ -8839,11 +8874,11 @@ class CalciteBlock {
|
|
|
8839
8874
|
/** string to override English loading text
|
|
8840
8875
|
* @default "Loading"
|
|
8841
8876
|
*/
|
|
8842
|
-
this.intlLoading = TEXT$
|
|
8877
|
+
this.intlLoading = TEXT$l.loading;
|
|
8843
8878
|
/** Text string used for the actions menu
|
|
8844
8879
|
* @default "Options"
|
|
8845
8880
|
*/
|
|
8846
|
-
this.intlOptions = TEXT$
|
|
8881
|
+
this.intlOptions = TEXT$l.options;
|
|
8847
8882
|
/**
|
|
8848
8883
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
8849
8884
|
*/
|
|
@@ -8864,6 +8899,17 @@ class CalciteBlock {
|
|
|
8864
8899
|
}
|
|
8865
8900
|
// --------------------------------------------------------------------------
|
|
8866
8901
|
//
|
|
8902
|
+
// Lifecycle
|
|
8903
|
+
//
|
|
8904
|
+
// --------------------------------------------------------------------------
|
|
8905
|
+
connectedCallback() {
|
|
8906
|
+
connectConditionalSlotComponent(this);
|
|
8907
|
+
}
|
|
8908
|
+
disconnectedCallback() {
|
|
8909
|
+
disconnectConditionalSlotComponent(this);
|
|
8910
|
+
}
|
|
8911
|
+
// --------------------------------------------------------------------------
|
|
8912
|
+
//
|
|
8867
8913
|
// Render Methods
|
|
8868
8914
|
//
|
|
8869
8915
|
// --------------------------------------------------------------------------
|
|
@@ -8877,7 +8923,7 @@ class CalciteBlock {
|
|
|
8877
8923
|
const showingLoadingStatus = this.loading && !this.open;
|
|
8878
8924
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
8879
8925
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
8880
|
-
const iconEl = !statusIcon ? (hAsync("slot", { name: SLOTS$k.icon })) : (hAsync("calcite-icon", { class: {
|
|
8926
|
+
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$k.icon })) : (hAsync("calcite-icon", { class: {
|
|
8881
8927
|
[CSS$L.statusIcon]: true,
|
|
8882
8928
|
[CSS$L.valid]: status == "valid",
|
|
8883
8929
|
[CSS$L.invalid]: status == "invalid",
|
|
@@ -8891,12 +8937,12 @@ class CalciteBlock {
|
|
|
8891
8937
|
}
|
|
8892
8938
|
render() {
|
|
8893
8939
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
8894
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
8940
|
+
const toggleLabel = open ? intlCollapse || TEXT$l.collapse : intlExpand || TEXT$l.expand;
|
|
8895
8941
|
const headerContent = (hAsync("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
8896
8942
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
8897
8943
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
8898
8944
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
8899
|
-
const headerNode = (hAsync("div", { class: CSS$L.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$L.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
8945
|
+
const headerNode = (hAsync("div", { class: CSS$L.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$L.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$l.options }, hAsync("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
8900
8946
|
return (hAsync(Host, { tabIndex: disabled ? -1 : null }, hAsync("article", { "aria-busy": loading.toString(), class: {
|
|
8901
8947
|
[CSS$L.article]: true
|
|
8902
8948
|
} }, headerNode, hAsync("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -8939,7 +8985,7 @@ const CSS$K = {
|
|
|
8939
8985
|
statusIcon: "status-icon",
|
|
8940
8986
|
valid: "valid"
|
|
8941
8987
|
};
|
|
8942
|
-
const TEXT$
|
|
8988
|
+
const TEXT$k = {
|
|
8943
8989
|
collapse: "Collapse",
|
|
8944
8990
|
expand: "Expand"
|
|
8945
8991
|
};
|
|
@@ -9011,7 +9057,7 @@ class CalciteBlockSection {
|
|
|
9011
9057
|
: dir === "rtl"
|
|
9012
9058
|
? ICONS$b.menuClosedLeft
|
|
9013
9059
|
: ICONS$b.menuClosedRight;
|
|
9014
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
9060
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
9015
9061
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-label": toggleLabel, class: {
|
|
9016
9062
|
[CSS$K.toggle]: true,
|
|
9017
9063
|
[CSS$K.toggleSwitch]: true
|
|
@@ -9080,7 +9126,7 @@ const CSS$J = {
|
|
|
9080
9126
|
iconStartEmpty: "icon-start-empty",
|
|
9081
9127
|
iconEndEmpty: "icon-end-empty"
|
|
9082
9128
|
};
|
|
9083
|
-
const TEXT$
|
|
9129
|
+
const TEXT$j = {
|
|
9084
9130
|
loading: "Loading"
|
|
9085
9131
|
};
|
|
9086
9132
|
|
|
@@ -9187,7 +9233,7 @@ class CalciteButton {
|
|
|
9187
9233
|
/** string to override English loading text
|
|
9188
9234
|
* @default "Loading"
|
|
9189
9235
|
*/
|
|
9190
|
-
this.intlLoading = TEXT$
|
|
9236
|
+
this.intlLoading = TEXT$j.loading;
|
|
9191
9237
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
9192
9238
|
this.loading = false;
|
|
9193
9239
|
/** optionally add a round style to the button */
|
|
@@ -9352,7 +9398,7 @@ const SLOTS$j = {
|
|
|
9352
9398
|
footerLeading: "footer-leading",
|
|
9353
9399
|
footerTrailing: "footer-trailing"
|
|
9354
9400
|
};
|
|
9355
|
-
const TEXT$
|
|
9401
|
+
const TEXT$i = {
|
|
9356
9402
|
select: "Select",
|
|
9357
9403
|
deselect: "Deselect",
|
|
9358
9404
|
loading: "Loading"
|
|
@@ -9389,15 +9435,15 @@ class CalciteCard {
|
|
|
9389
9435
|
/** string to override English loading text
|
|
9390
9436
|
* @default "Loading"
|
|
9391
9437
|
*/
|
|
9392
|
-
this.intlLoading = TEXT$
|
|
9438
|
+
this.intlLoading = TEXT$i.loading;
|
|
9393
9439
|
/** string to override English select text for checkbox when selectable is true
|
|
9394
9440
|
* @default "Select"
|
|
9395
9441
|
*/
|
|
9396
|
-
this.intlSelect = TEXT$
|
|
9442
|
+
this.intlSelect = TEXT$i.select;
|
|
9397
9443
|
/** string to override English deselect text for checkbox when selectable is true
|
|
9398
9444
|
* @default "Deselect"
|
|
9399
9445
|
*/
|
|
9400
|
-
this.intlDeselect = TEXT$
|
|
9446
|
+
this.intlDeselect = TEXT$i.deselect;
|
|
9401
9447
|
//--------------------------------------------------------------------------
|
|
9402
9448
|
//
|
|
9403
9449
|
// Private State/Props
|
|
@@ -9781,7 +9827,7 @@ const CSS$H = {
|
|
|
9781
9827
|
chipImageContainer: "chip-image-container",
|
|
9782
9828
|
calciteChipIcon: "calcite-chip--icon"
|
|
9783
9829
|
};
|
|
9784
|
-
const TEXT$
|
|
9830
|
+
const TEXT$h = {
|
|
9785
9831
|
close: "Close"
|
|
9786
9832
|
};
|
|
9787
9833
|
const SLOTS$i = {
|
|
@@ -9815,7 +9861,7 @@ class CalciteChip {
|
|
|
9815
9861
|
/** Aria label for the "x" button
|
|
9816
9862
|
* @default "Close"
|
|
9817
9863
|
*/
|
|
9818
|
-
this.dismissLabel = TEXT$
|
|
9864
|
+
this.dismissLabel = TEXT$h.close;
|
|
9819
9865
|
/** flip the icon in rtl */
|
|
9820
9866
|
this.iconFlipRtl = false;
|
|
9821
9867
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -9831,6 +9877,17 @@ class CalciteChip {
|
|
|
9831
9877
|
};
|
|
9832
9878
|
this.guid = guid();
|
|
9833
9879
|
}
|
|
9880
|
+
// --------------------------------------------------------------------------
|
|
9881
|
+
//
|
|
9882
|
+
// Lifecycle
|
|
9883
|
+
//
|
|
9884
|
+
// --------------------------------------------------------------------------
|
|
9885
|
+
connectedCallback() {
|
|
9886
|
+
connectConditionalSlotComponent(this);
|
|
9887
|
+
}
|
|
9888
|
+
disconnectedCallback() {
|
|
9889
|
+
disconnectConditionalSlotComponent(this);
|
|
9890
|
+
}
|
|
9834
9891
|
//--------------------------------------------------------------------------
|
|
9835
9892
|
//
|
|
9836
9893
|
// Public Methods
|
|
@@ -9849,7 +9906,7 @@ class CalciteChip {
|
|
|
9849
9906
|
renderChipImage() {
|
|
9850
9907
|
const { el } = this;
|
|
9851
9908
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
9852
|
-
return hasChipImage ? (hAsync("div", { class: CSS$H.chipImageContainer }, hAsync("slot", { name: SLOTS$i.image }))) : null;
|
|
9909
|
+
return hasChipImage ? (hAsync("div", { class: CSS$H.chipImageContainer, key: "image" }, hAsync("slot", { name: SLOTS$i.image }))) : null;
|
|
9853
9910
|
}
|
|
9854
9911
|
render() {
|
|
9855
9912
|
const iconEl = (hAsync("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
@@ -12035,7 +12092,7 @@ const HSV_LIMITS = {
|
|
|
12035
12092
|
s: 100,
|
|
12036
12093
|
v: 100
|
|
12037
12094
|
};
|
|
12038
|
-
const TEXT$
|
|
12095
|
+
const TEXT$g = {
|
|
12039
12096
|
b: "B",
|
|
12040
12097
|
blue: "Blue",
|
|
12041
12098
|
deleteColor: "Delete color",
|
|
@@ -12156,80 +12213,80 @@ class CalciteColorPicker {
|
|
|
12156
12213
|
/** Label used for the blue channel
|
|
12157
12214
|
* @default "B"
|
|
12158
12215
|
*/
|
|
12159
|
-
this.intlB = TEXT$
|
|
12216
|
+
this.intlB = TEXT$g.b;
|
|
12160
12217
|
/** Label used for the blue channel description
|
|
12161
12218
|
* @default "Blue"
|
|
12162
12219
|
*/
|
|
12163
|
-
this.intlBlue = TEXT$
|
|
12220
|
+
this.intlBlue = TEXT$g.blue;
|
|
12164
12221
|
/** Label used for the delete color button.
|
|
12165
12222
|
* @default "Delete color"
|
|
12166
12223
|
*/
|
|
12167
|
-
this.intlDeleteColor = TEXT$
|
|
12224
|
+
this.intlDeleteColor = TEXT$g.deleteColor;
|
|
12168
12225
|
/** Label used for the green channel
|
|
12169
12226
|
* @default "G"
|
|
12170
12227
|
*/
|
|
12171
|
-
this.intlG = TEXT$
|
|
12228
|
+
this.intlG = TEXT$g.g;
|
|
12172
12229
|
/** Label used for the green channel description
|
|
12173
12230
|
* @default "Green"
|
|
12174
12231
|
*/
|
|
12175
|
-
this.intlGreen = TEXT$
|
|
12232
|
+
this.intlGreen = TEXT$g.green;
|
|
12176
12233
|
/** Label used for the hue channel
|
|
12177
12234
|
* @default "H"
|
|
12178
12235
|
*/
|
|
12179
|
-
this.intlH = TEXT$
|
|
12236
|
+
this.intlH = TEXT$g.h;
|
|
12180
12237
|
/** Label used for the HSV mode
|
|
12181
12238
|
* @default "HSV"
|
|
12182
12239
|
*/
|
|
12183
|
-
this.intlHsv = TEXT$
|
|
12240
|
+
this.intlHsv = TEXT$g.hsv;
|
|
12184
12241
|
/** Label used for the hex input
|
|
12185
12242
|
* @default "Hex"
|
|
12186
12243
|
*/
|
|
12187
|
-
this.intlHex = TEXT$
|
|
12244
|
+
this.intlHex = TEXT$g.hex;
|
|
12188
12245
|
/** Label used for the hue channel description
|
|
12189
12246
|
* @default "Hue"
|
|
12190
12247
|
*/
|
|
12191
|
-
this.intlHue = TEXT$
|
|
12248
|
+
this.intlHue = TEXT$g.hue;
|
|
12192
12249
|
/**
|
|
12193
12250
|
* Label used for the hex input when there is no color selected.
|
|
12194
12251
|
* @default "No color"
|
|
12195
12252
|
*/
|
|
12196
|
-
this.intlNoColor = TEXT$
|
|
12253
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
12197
12254
|
/** Label used for the red channel
|
|
12198
12255
|
* @default "R"
|
|
12199
12256
|
*/
|
|
12200
|
-
this.intlR = TEXT$
|
|
12257
|
+
this.intlR = TEXT$g.r;
|
|
12201
12258
|
/** Label used for the red channel description
|
|
12202
12259
|
* @default "Red"
|
|
12203
12260
|
*/
|
|
12204
|
-
this.intlRed = TEXT$
|
|
12261
|
+
this.intlRed = TEXT$g.red;
|
|
12205
12262
|
/** Label used for the RGB mode
|
|
12206
12263
|
* @default "RGB"
|
|
12207
12264
|
*/
|
|
12208
|
-
this.intlRgb = TEXT$
|
|
12265
|
+
this.intlRgb = TEXT$g.rgb;
|
|
12209
12266
|
/** Label used for the saturation channel
|
|
12210
12267
|
* @default "S"
|
|
12211
12268
|
*/
|
|
12212
|
-
this.intlS = TEXT$
|
|
12269
|
+
this.intlS = TEXT$g.s;
|
|
12213
12270
|
/** Label used for the saturation channel description
|
|
12214
12271
|
* @default "Saturation"
|
|
12215
12272
|
*/
|
|
12216
|
-
this.intlSaturation = TEXT$
|
|
12273
|
+
this.intlSaturation = TEXT$g.saturation;
|
|
12217
12274
|
/** Label used for the save color button.
|
|
12218
12275
|
* @default "Save color"
|
|
12219
12276
|
*/
|
|
12220
|
-
this.intlSaveColor = TEXT$
|
|
12277
|
+
this.intlSaveColor = TEXT$g.saveColor;
|
|
12221
12278
|
/** Label used for the saved colors section
|
|
12222
12279
|
* @default "Saved"
|
|
12223
12280
|
*/
|
|
12224
|
-
this.intlSaved = TEXT$
|
|
12281
|
+
this.intlSaved = TEXT$g.saved;
|
|
12225
12282
|
/** Label used for the value channel
|
|
12226
12283
|
* @default "V"
|
|
12227
12284
|
*/
|
|
12228
|
-
this.intlV = TEXT$
|
|
12285
|
+
this.intlV = TEXT$g.v;
|
|
12229
12286
|
/** Label used for the
|
|
12230
12287
|
* @default "Value"
|
|
12231
12288
|
*/
|
|
12232
|
-
this.intlValue = TEXT$
|
|
12289
|
+
this.intlValue = TEXT$g.value;
|
|
12233
12290
|
/**
|
|
12234
12291
|
* The scale of the color picker.
|
|
12235
12292
|
*/
|
|
@@ -12952,12 +13009,12 @@ class CalciteColorPickerHexInput {
|
|
|
12952
13009
|
* Label used for the hex input.
|
|
12953
13010
|
* @default "Hex"
|
|
12954
13011
|
*/
|
|
12955
|
-
this.intlHex = TEXT$
|
|
13012
|
+
this.intlHex = TEXT$g.hex;
|
|
12956
13013
|
/**
|
|
12957
13014
|
* Label used for the hex input when there is no color selected.
|
|
12958
13015
|
* @default "No color"
|
|
12959
13016
|
*/
|
|
12960
|
-
this.intlNoColor = TEXT$
|
|
13017
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
12961
13018
|
/**
|
|
12962
13019
|
* The component's scale.
|
|
12963
13020
|
*/
|
|
@@ -15058,6 +15115,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
15058
15115
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
15059
15116
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
15060
15117
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
15118
|
+
const TEXT$f = {
|
|
15119
|
+
removeTag: "Remove tag"
|
|
15120
|
+
};
|
|
15061
15121
|
|
|
15062
15122
|
function getAncestors(element) {
|
|
15063
15123
|
var _a, _b;
|
|
@@ -15085,6 +15145,11 @@ function getDepth(element) {
|
|
|
15085
15145
|
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*/.sc-calcite-combobox: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*/.calcite-animate.sc-calcite-combobox{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*/.calcite-animate__in.sc-calcite-combobox{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-combobox{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-combobox{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-combobox{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-combobox:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-combobox-h{display:none}/*!@:host*/.sc-calcite-combobox-h{position:relative;display:block}/*!@:host([disabled])*/[disabled].sc-calcite-combobox-h{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}/*!@:host([scale=s])*/[scale=s].sc-calcite-combobox-h{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])*/[scale=m].sc-calcite-combobox-h{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])*/[scale=l].sc-calcite-combobox-h{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*/.wrapper.sc-calcite-combobox{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*/.sc-calcite-combobox-h:focus-within .wrapper.sc-calcite-combobox,.wrapper--active.sc-calcite-combobox{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.wrapper--single*/.wrapper--single.sc-calcite-combobox{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}/*!@.grid-input*/.grid-input.sc-calcite-combobox{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*/.input.sc-calcite-combobox{-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*/.input.sc-calcite-combobox:focus{outline:2px solid transparent;outline-offset:2px}/*!@.input--transparent*/.input--transparent.sc-calcite-combobox{opacity:0}/*!@.input--single*/.input--single.sc-calcite-combobox{margin-bottom:0px;margin-top:0px;padding:0px}/*!@.wrapper--active .input-single*/.wrapper--active.sc-calcite-combobox .input-single.sc-calcite-combobox{cursor:text}/*!@.input--hidden*/.input--hidden.sc-calcite-combobox{pointer-events:none;width:0px;min-width:0px;opacity:0}/*!@.input--icon*/.input--icon.sc-calcite-combobox{padding:0 var(--calcite-combobox-item-spacing-unit-l)}/*!@.input-wrap*/.input-wrap.sc-calcite-combobox{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}/*!@.input-wrap--single*/.input-wrap--single.sc-calcite-combobox{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}/*!@.label*/.label.sc-calcite-combobox{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*/.label--spaced.sc-calcite-combobox{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*/.icon-end.sc-calcite-combobox,.icon-start.sc-calcite-combobox{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}/*!@.icon-end*/.icon-end.sc-calcite-combobox{-ms-flex:none;flex:none}/*!@.popper-container*/.popper-container.sc-calcite-combobox{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*/.popper-container.sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{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*/.popper-container[data-popper-placement^=bottom].sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{-webkit-transform:translateY(-5px);transform:translateY(-5px)}/*!@.popper-container[data-popper-placement^=top] .calcite-popper-anim*/.popper-container[data-popper-placement^=top].sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{-webkit-transform:translateY(5px);transform:translateY(5px)}/*!@.popper-container[data-popper-placement^=left] .calcite-popper-anim*/.popper-container[data-popper-placement^=left].sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{-webkit-transform:translateX(5px);transform:translateX(5px)}/*!@.popper-container[data-popper-placement^=right] .calcite-popper-anim*/.popper-container[data-popper-placement^=right].sc-calcite-combobox .calcite-popper-anim.sc-calcite-combobox{-webkit-transform:translateX(-5px);transform:translateX(-5px)}/*!@.popper-container[data-popper-placement] .calcite-popper-anim--active*/.popper-container[data-popper-placement].sc-calcite-combobox .calcite-popper-anim--active.sc-calcite-combobox{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}/*!@.popper-container--active*/.popper-container--active.sc-calcite-combobox{pointer-events:initial;visibility:visible}/*!@.screen-readers-only*/.screen-readers-only.sc-calcite-combobox{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*/.list-container.sc-calcite-combobox{max-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}/*!@.list*/.list.sc-calcite-combobox{margin:0px;display:block;padding:0px}/*!@.list--hide*/.list--hide.sc-calcite-combobox{height:0px;overflow:hidden}/*!@.chip*/.chip.sc-calcite-combobox{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*/.chip--active.sc-calcite-combobox{background-color:var(--calcite-ui-foreground-3)}/*!@.chip:last-of-type*/.chip.sc-calcite-combobox:last-of-type{-webkit-margin-end:0;margin-inline-end:0}/*!@.item*/.item.sc-calcite-combobox{display:block}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-combobox-s>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}";
|
|
15086
15146
|
|
|
15087
15147
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
15148
|
+
const itemUidPrefix = "combobox-item-";
|
|
15149
|
+
const chipUidPrefix = "combobox-chip-";
|
|
15150
|
+
const labelUidPrefix = "combobox-label-";
|
|
15151
|
+
const listboxUidPrefix = "combobox-listbox-";
|
|
15152
|
+
const inputUidPrefix = "combobox-input-";
|
|
15088
15153
|
/**
|
|
15089
15154
|
* @slot - A slot for adding `calcite-combobox-item`s.
|
|
15090
15155
|
*/
|
|
@@ -15126,6 +15191,10 @@ class CalciteCombobox {
|
|
|
15126
15191
|
this.scale = "m";
|
|
15127
15192
|
/** The value(s) of the selectedItem(s) */
|
|
15128
15193
|
this.value = null;
|
|
15194
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
15195
|
+
* @default "Remove tag"
|
|
15196
|
+
*/
|
|
15197
|
+
this.intlRemoveTag = TEXT$f.removeTag;
|
|
15129
15198
|
//--------------------------------------------------------------------------
|
|
15130
15199
|
//
|
|
15131
15200
|
// Private State/Props
|
|
@@ -15635,7 +15704,7 @@ class CalciteCombobox {
|
|
|
15635
15704
|
const item = document.createElement(ComboboxItem);
|
|
15636
15705
|
item.value = value;
|
|
15637
15706
|
item.textLabel = value;
|
|
15638
|
-
item.guid = guid()
|
|
15707
|
+
item.guid = `${chipUidPrefix}${guid()}`;
|
|
15639
15708
|
item.selected = true;
|
|
15640
15709
|
this.el.appendChild(item);
|
|
15641
15710
|
this.resetText();
|
|
@@ -15685,7 +15754,7 @@ class CalciteCombobox {
|
|
|
15685
15754
|
focusChip() {
|
|
15686
15755
|
var _a;
|
|
15687
15756
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
15688
|
-
const chip = this.referenceEl.querySelector(
|
|
15757
|
+
const chip = this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`);
|
|
15689
15758
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
15690
15759
|
}
|
|
15691
15760
|
shiftActiveItemIndex(delta) {
|
|
@@ -15731,7 +15800,7 @@ class CalciteCombobox {
|
|
|
15731
15800
|
//
|
|
15732
15801
|
//--------------------------------------------------------------------------
|
|
15733
15802
|
renderChips() {
|
|
15734
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
15803
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
15735
15804
|
return this.selectedItems.map((item, i) => {
|
|
15736
15805
|
const chipClasses = {
|
|
15737
15806
|
chip: true,
|
|
@@ -15740,11 +15809,11 @@ class CalciteCombobox {
|
|
|
15740
15809
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
15741
15810
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
15742
15811
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
15743
|
-
return (hAsync("calcite-chip", {
|
|
15812
|
+
return (hAsync("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));
|
|
15744
15813
|
});
|
|
15745
15814
|
}
|
|
15746
15815
|
renderInput() {
|
|
15747
|
-
const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
15816
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
15748
15817
|
const single = selectionMode === "single";
|
|
15749
15818
|
const selectedItem = selectedItems[0];
|
|
15750
15819
|
const showLabel = !active && single && !!selectedItem;
|
|
@@ -15754,16 +15823,16 @@ class CalciteCombobox {
|
|
|
15754
15823
|
} }, showLabel && (hAsync("span", { class: {
|
|
15755
15824
|
label: true,
|
|
15756
15825
|
"label--spaced": needsIcon
|
|
15757
|
-
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), hAsync("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": guid
|
|
15826
|
+
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), hAsync("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
15758
15827
|
input: true,
|
|
15759
15828
|
"input--single": true,
|
|
15760
15829
|
"input--transparent": this.activeChipIndex > -1,
|
|
15761
15830
|
"input--hidden": showLabel,
|
|
15762
15831
|
"input--icon": single && needsIcon
|
|
15763
|
-
}, disabled: disabled, id: `${guid}
|
|
15832
|
+
}, 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" })));
|
|
15764
15833
|
}
|
|
15765
15834
|
renderListBoxOptions() {
|
|
15766
|
-
return this.visibleItems.map((item) => (hAsync("li", { "aria-selected": (!!item.selected).toString(), id: item.guid
|
|
15835
|
+
return this.visibleItems.map((item) => (hAsync("li", { "aria-selected": (!!item.selected).toString(), id: `${itemUidPrefix}${item.guid}`, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
15767
15836
|
}
|
|
15768
15837
|
renderPopperContainer() {
|
|
15769
15838
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -15789,12 +15858,11 @@ class CalciteCombobox {
|
|
|
15789
15858
|
render() {
|
|
15790
15859
|
const { guid, open, label } = this;
|
|
15791
15860
|
const single = this.selectionMode === "single";
|
|
15792
|
-
|
|
15793
|
-
return (hAsync(Host, { onKeyDown: this.keydownHandler }, hAsync("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": labelId, "aria-owns": guid, class: {
|
|
15861
|
+
return (hAsync(Host, { onKeyDown: this.keydownHandler }, hAsync("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
15794
15862
|
wrapper: true,
|
|
15795
15863
|
"wrapper--single": single || !this.selectedItems.length,
|
|
15796
15864
|
"wrapper--active": open
|
|
15797
|
-
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, hAsync("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), hAsync("label", { class: "screen-readers-only", htmlFor: `${guid}
|
|
15865
|
+
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, hAsync("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), hAsync("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), hAsync("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
15798
15866
|
}
|
|
15799
15867
|
get el() { return getElement(this); }
|
|
15800
15868
|
static get watchers() { return {
|
|
@@ -15821,6 +15889,7 @@ class CalciteCombobox {
|
|
|
15821
15889
|
"selectionMode": [513, "selection-mode"],
|
|
15822
15890
|
"scale": [513],
|
|
15823
15891
|
"value": [1025],
|
|
15892
|
+
"intlRemoveTag": [1, "intl-remove-tag"],
|
|
15824
15893
|
"items": [32],
|
|
15825
15894
|
"groupItems": [32],
|
|
15826
15895
|
"selectedItems": [32],
|
|
@@ -18943,7 +19012,7 @@ class CalciteInput {
|
|
|
18943
19012
|
* string to override English loading text
|
|
18944
19013
|
* @default "Loading"
|
|
18945
19014
|
*/
|
|
18946
|
-
this.intlLoading = TEXT$
|
|
19015
|
+
this.intlLoading = TEXT$r.loading;
|
|
18947
19016
|
/** flip the icon in rtl */
|
|
18948
19017
|
this.iconFlipRtl = false;
|
|
18949
19018
|
/** specify if the input is in loading state */
|
|
@@ -19118,6 +19187,9 @@ class CalciteInput {
|
|
|
19118
19187
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
19119
19188
|
const valueNudgeDelayInMs = 100;
|
|
19120
19189
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
19190
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
19191
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
19192
|
+
}
|
|
19121
19193
|
let firstValueNudge = true;
|
|
19122
19194
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
19123
19195
|
if (firstValueNudge) {
|
|
@@ -20444,6 +20516,11 @@ class CalciteLink {
|
|
|
20444
20516
|
//--------------------------------------------------------------------------
|
|
20445
20517
|
/** is the link disabled */
|
|
20446
20518
|
this.disabled = false;
|
|
20519
|
+
/** Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
|
|
20520
|
+
* Without a value, the browser will suggest a filename/extension
|
|
20521
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
20522
|
+
*/
|
|
20523
|
+
this.download = false;
|
|
20447
20524
|
/** the node type of the rendered child element */
|
|
20448
20525
|
this.childElType = "span";
|
|
20449
20526
|
//--------------------------------------------------------------------------
|
|
@@ -20467,13 +20544,19 @@ class CalciteLink {
|
|
|
20467
20544
|
this.childElType = this.href ? "a" : "span";
|
|
20468
20545
|
}
|
|
20469
20546
|
render() {
|
|
20470
|
-
const
|
|
20547
|
+
const { download, el } = this;
|
|
20548
|
+
const dir = getElementDir(el);
|
|
20471
20549
|
const iconStartEl = (hAsync("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
20472
20550
|
const iconEndEl = (hAsync("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
20473
20551
|
const Tag = this.childElType;
|
|
20474
20552
|
const role = this.childElType === "span" ? "link" : null;
|
|
20475
20553
|
const tabIndex = this.disabled ? -1 : this.childElType === "span" ? 0 : null;
|
|
20476
|
-
return (hAsync(Host, { role: "presentation" }, hAsync(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
20554
|
+
return (hAsync(Host, { role: "presentation" }, hAsync(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
20555
|
+
/*
|
|
20556
|
+
When the 'download' property of type 'boolean | string' is set to true, the value is "".
|
|
20557
|
+
This works around that issue for now.
|
|
20558
|
+
*/
|
|
20559
|
+
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, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
20477
20560
|
}
|
|
20478
20561
|
//--------------------------------------------------------------------------
|
|
20479
20562
|
//
|
|
@@ -20494,6 +20577,7 @@ class CalciteLink {
|
|
|
20494
20577
|
"$tagName$": "calcite-link",
|
|
20495
20578
|
"$members$": {
|
|
20496
20579
|
"disabled": [516],
|
|
20580
|
+
"download": [520],
|
|
20497
20581
|
"href": [513],
|
|
20498
20582
|
"iconEnd": [513, "icon-end"],
|
|
20499
20583
|
"iconFlipRtl": [513, "icon-flip-rtl"],
|
|
@@ -20505,7 +20589,7 @@ class CalciteLink {
|
|
|
20505
20589
|
},
|
|
20506
20590
|
"$listeners$": undefined,
|
|
20507
20591
|
"$lazyBundleId$": "-",
|
|
20508
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["href", "href"], ["iconEnd", "icon-end"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"]]
|
|
20592
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["download", "download"], ["href", "href"], ["iconEnd", "icon-end"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"]]
|
|
20509
20593
|
}; }
|
|
20510
20594
|
}
|
|
20511
20595
|
|
|
@@ -20604,6 +20688,17 @@ class CalciteListItem {
|
|
|
20604
20688
|
}
|
|
20605
20689
|
// --------------------------------------------------------------------------
|
|
20606
20690
|
//
|
|
20691
|
+
// Lifecycle
|
|
20692
|
+
//
|
|
20693
|
+
// --------------------------------------------------------------------------
|
|
20694
|
+
connectedCallback() {
|
|
20695
|
+
connectConditionalSlotComponent(this);
|
|
20696
|
+
}
|
|
20697
|
+
disconnectedCallback() {
|
|
20698
|
+
disconnectConditionalSlotComponent(this);
|
|
20699
|
+
}
|
|
20700
|
+
// --------------------------------------------------------------------------
|
|
20701
|
+
//
|
|
20607
20702
|
// Public Methods
|
|
20608
20703
|
//
|
|
20609
20704
|
// --------------------------------------------------------------------------
|
|
@@ -21039,11 +21134,13 @@ class CalciteModal {
|
|
|
21039
21134
|
var _a;
|
|
21040
21135
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
21041
21136
|
this.updateFooterVisibility();
|
|
21137
|
+
connectConditionalSlotComponent(this);
|
|
21042
21138
|
}
|
|
21043
21139
|
disconnectedCallback() {
|
|
21044
21140
|
var _a;
|
|
21045
21141
|
this.removeOverflowHiddenClass();
|
|
21046
21142
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
21143
|
+
disconnectConditionalSlotComponent(this);
|
|
21047
21144
|
}
|
|
21048
21145
|
render() {
|
|
21049
21146
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: "modal", onTransitionEnd: this.transitionEnd }, hAsync("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), hAsync("div", { class: CSS$n.header }, this.renderCloseButton(), hAsync("header", { class: CSS$n.title }, hAsync("slot", { name: CSS$n.header }))), hAsync("div", { class: {
|
|
@@ -21053,10 +21150,10 @@ class CalciteModal {
|
|
|
21053
21150
|
}, ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderFooter(), hAsync("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
21054
21151
|
}
|
|
21055
21152
|
renderFooter() {
|
|
21056
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$n.footer }, hAsync("span", { class: CSS$n.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$n.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$n.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
21153
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$n.footer, key: "footer" }, hAsync("span", { class: CSS$n.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$n.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$n.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
21057
21154
|
}
|
|
21058
21155
|
renderCloseButton() {
|
|
21059
|
-
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
21156
|
+
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$n.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
21060
21157
|
}
|
|
21061
21158
|
renderStyle() {
|
|
21062
21159
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -21257,6 +21354,12 @@ class CalciteNotice {
|
|
|
21257
21354
|
// Lifecycle
|
|
21258
21355
|
//
|
|
21259
21356
|
//--------------------------------------------------------------------------
|
|
21357
|
+
connectedCallback() {
|
|
21358
|
+
connectConditionalSlotComponent(this);
|
|
21359
|
+
}
|
|
21360
|
+
disconnectedCallback() {
|
|
21361
|
+
disconnectConditionalSlotComponent(this);
|
|
21362
|
+
}
|
|
21260
21363
|
componentWillLoad() {
|
|
21261
21364
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
21262
21365
|
}
|
|
@@ -21755,6 +21858,17 @@ class CalcitePanel {
|
|
|
21755
21858
|
}
|
|
21756
21859
|
// --------------------------------------------------------------------------
|
|
21757
21860
|
//
|
|
21861
|
+
// Lifecycle
|
|
21862
|
+
//
|
|
21863
|
+
// --------------------------------------------------------------------------
|
|
21864
|
+
connectedCallback() {
|
|
21865
|
+
connectConditionalSlotComponent(this);
|
|
21866
|
+
}
|
|
21867
|
+
disconnectedCallback() {
|
|
21868
|
+
disconnectConditionalSlotComponent(this);
|
|
21869
|
+
}
|
|
21870
|
+
// --------------------------------------------------------------------------
|
|
21871
|
+
//
|
|
21758
21872
|
// Methods
|
|
21759
21873
|
//
|
|
21760
21874
|
// --------------------------------------------------------------------------
|
|
@@ -21794,7 +21908,7 @@ class CalcitePanel {
|
|
|
21794
21908
|
* Allows user to override the entire header-content node.
|
|
21795
21909
|
*/
|
|
21796
21910
|
renderHeaderSlottedContent() {
|
|
21797
|
-
return (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21911
|
+
return (hAsync("div", { class: CSS$k.headerContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21798
21912
|
}
|
|
21799
21913
|
renderHeaderStartActions() {
|
|
21800
21914
|
const { el } = this;
|
|
@@ -21812,7 +21926,7 @@ class CalcitePanel {
|
|
|
21812
21926
|
renderMenu() {
|
|
21813
21927
|
const { el, intlOptions, menuOpen } = this;
|
|
21814
21928
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
21815
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
21929
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
21816
21930
|
}
|
|
21817
21931
|
renderHeaderNode() {
|
|
21818
21932
|
const { el, showBackButton } = this;
|
|
@@ -21830,18 +21944,11 @@ class CalcitePanel {
|
|
|
21830
21944
|
headerMenuNode ||
|
|
21831
21945
|
showBackButton ? (hAsync("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
21832
21946
|
}
|
|
21833
|
-
|
|
21834
|
-
* Allows user to override the entire footer node.
|
|
21835
|
-
*/
|
|
21836
|
-
renderFooterSlottedContent() {
|
|
21947
|
+
renderFooterNode() {
|
|
21837
21948
|
const { el } = this;
|
|
21838
21949
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
21839
|
-
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footer }))) : null;
|
|
21840
|
-
}
|
|
21841
|
-
renderFooterActions() {
|
|
21842
|
-
const { el } = this;
|
|
21843
21950
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
21844
|
-
return hasFooterActions ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
21951
|
+
return hasFooterSlottedContent || hasFooterActions ? (hAsync("footer", { class: CSS$k.footer, key: "footer" }, hasFooterSlottedContent ? hAsync("slot", { key: "footer-slot", name: SLOTS$c.footer }) : null, hasFooterActions ? hAsync("slot", { key: "footer-actions-slot", name: SLOTS$c.footerActions }) : null)) : null;
|
|
21845
21952
|
}
|
|
21846
21953
|
renderContent() {
|
|
21847
21954
|
const { el } = this;
|
|
@@ -21853,7 +21960,7 @@ class CalcitePanel {
|
|
|
21853
21960
|
}
|
|
21854
21961
|
render() {
|
|
21855
21962
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
21856
|
-
const panelNode = (hAsync("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.
|
|
21963
|
+
const panelNode = (hAsync("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()));
|
|
21857
21964
|
return (hAsync(Fragment, null, loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
21858
21965
|
}
|
|
21859
21966
|
get el() { return getElement(this); }
|
|
@@ -22353,6 +22460,17 @@ class CalcitePickListGroup {
|
|
|
22353
22460
|
}
|
|
22354
22461
|
// --------------------------------------------------------------------------
|
|
22355
22462
|
//
|
|
22463
|
+
// Lifecycle
|
|
22464
|
+
//
|
|
22465
|
+
// --------------------------------------------------------------------------
|
|
22466
|
+
connectedCallback() {
|
|
22467
|
+
connectConditionalSlotComponent(this);
|
|
22468
|
+
}
|
|
22469
|
+
disconnectedCallback() {
|
|
22470
|
+
disconnectConditionalSlotComponent(this);
|
|
22471
|
+
}
|
|
22472
|
+
// --------------------------------------------------------------------------
|
|
22473
|
+
//
|
|
22356
22474
|
// Render Methods
|
|
22357
22475
|
//
|
|
22358
22476
|
// --------------------------------------------------------------------------
|
|
@@ -22503,6 +22621,17 @@ class CalcitePickListItem {
|
|
|
22503
22621
|
}
|
|
22504
22622
|
// --------------------------------------------------------------------------
|
|
22505
22623
|
//
|
|
22624
|
+
// Lifecycle
|
|
22625
|
+
//
|
|
22626
|
+
// --------------------------------------------------------------------------
|
|
22627
|
+
connectedCallback() {
|
|
22628
|
+
connectConditionalSlotComponent(this);
|
|
22629
|
+
}
|
|
22630
|
+
disconnectedCallback() {
|
|
22631
|
+
disconnectConditionalSlotComponent(this);
|
|
22632
|
+
}
|
|
22633
|
+
// --------------------------------------------------------------------------
|
|
22634
|
+
//
|
|
22506
22635
|
// Public Methods
|
|
22507
22636
|
//
|
|
22508
22637
|
// --------------------------------------------------------------------------
|
|
@@ -24134,12 +24263,23 @@ class CalciteShell {
|
|
|
24134
24263
|
}
|
|
24135
24264
|
// --------------------------------------------------------------------------
|
|
24136
24265
|
//
|
|
24266
|
+
// Lifecycle
|
|
24267
|
+
//
|
|
24268
|
+
// --------------------------------------------------------------------------
|
|
24269
|
+
connectedCallback() {
|
|
24270
|
+
connectConditionalSlotComponent(this);
|
|
24271
|
+
}
|
|
24272
|
+
disconnectedCallback() {
|
|
24273
|
+
disconnectConditionalSlotComponent(this);
|
|
24274
|
+
}
|
|
24275
|
+
// --------------------------------------------------------------------------
|
|
24276
|
+
//
|
|
24137
24277
|
// Render Methods
|
|
24138
24278
|
//
|
|
24139
24279
|
// --------------------------------------------------------------------------
|
|
24140
24280
|
renderHeader() {
|
|
24141
24281
|
const hasHeader = !!getSlotted(this.el, SLOTS$7.header);
|
|
24142
|
-
return hasHeader ? hAsync("slot", { name: SLOTS$7.header }) : null;
|
|
24282
|
+
return hasHeader ? hAsync("slot", { key: "header", name: SLOTS$7.header }) : null;
|
|
24143
24283
|
}
|
|
24144
24284
|
renderContent() {
|
|
24145
24285
|
const content = !!this.contentBehind
|
|
@@ -24157,7 +24297,7 @@ class CalciteShell {
|
|
|
24157
24297
|
}
|
|
24158
24298
|
renderFooter() {
|
|
24159
24299
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
24160
|
-
return hasFooter ? (hAsync("div", { class: CSS$b.footer }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24300
|
+
return hasFooter ? (hAsync("div", { class: CSS$b.footer, key: "footer" }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24161
24301
|
}
|
|
24162
24302
|
renderMain() {
|
|
24163
24303
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
@@ -24221,6 +24361,17 @@ class CalciteShellCenterRow {
|
|
|
24221
24361
|
}
|
|
24222
24362
|
// --------------------------------------------------------------------------
|
|
24223
24363
|
//
|
|
24364
|
+
// Lifecycle
|
|
24365
|
+
//
|
|
24366
|
+
// --------------------------------------------------------------------------
|
|
24367
|
+
connectedCallback() {
|
|
24368
|
+
connectConditionalSlotComponent(this);
|
|
24369
|
+
}
|
|
24370
|
+
disconnectedCallback() {
|
|
24371
|
+
disconnectConditionalSlotComponent(this);
|
|
24372
|
+
}
|
|
24373
|
+
// --------------------------------------------------------------------------
|
|
24374
|
+
//
|
|
24224
24375
|
// Render Methods
|
|
24225
24376
|
//
|
|
24226
24377
|
// --------------------------------------------------------------------------
|
|
@@ -24228,7 +24379,7 @@ class CalciteShellCenterRow {
|
|
|
24228
24379
|
const { el } = this;
|
|
24229
24380
|
const contentNode = (hAsync("div", { class: CSS$a.content }, hAsync("slot", null)));
|
|
24230
24381
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
24231
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24382
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24232
24383
|
const children = [actionBarNode, contentNode];
|
|
24233
24384
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
24234
24385
|
children.reverse();
|
|
@@ -24416,7 +24567,11 @@ class CalciteShellPanel {
|
|
|
24416
24567
|
// Lifecycle
|
|
24417
24568
|
//
|
|
24418
24569
|
//--------------------------------------------------------------------------
|
|
24570
|
+
connectedCallback() {
|
|
24571
|
+
connectConditionalSlotComponent(this);
|
|
24572
|
+
}
|
|
24419
24573
|
disconnectedCallback() {
|
|
24574
|
+
disconnectConditionalSlotComponent(this);
|
|
24420
24575
|
this.disconnectSeparator();
|
|
24421
24576
|
}
|
|
24422
24577
|
componentDidLoad() {
|
|
@@ -24430,14 +24585,14 @@ class CalciteShellPanel {
|
|
|
24430
24585
|
renderHeader() {
|
|
24431
24586
|
const { el } = this;
|
|
24432
24587
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
24433
|
-
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24588
|
+
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader, key: "header" }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24434
24589
|
}
|
|
24435
24590
|
render() {
|
|
24436
24591
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
24437
24592
|
const allowResizing = !detached && resizable;
|
|
24438
|
-
const contentNode = (hAsync("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$9.contentBody }, hAsync("slot", null))));
|
|
24439
|
-
const separatorNode = allowResizing ? (hAsync("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;
|
|
24440
|
-
const actionBarNode = hAsync("slot", { name: SLOTS$5.actionBar });
|
|
24593
|
+
const contentNode = (hAsync("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(), hAsync("div", { class: CSS$9.contentBody }, hAsync("slot", null))));
|
|
24594
|
+
const separatorNode = allowResizing ? (hAsync("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;
|
|
24595
|
+
const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$5.actionBar });
|
|
24441
24596
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
24442
24597
|
if (position === "end") {
|
|
24443
24598
|
mainNodes.reverse();
|
|
@@ -29772,6 +29927,17 @@ class CalciteTile {
|
|
|
29772
29927
|
}
|
|
29773
29928
|
// --------------------------------------------------------------------------
|
|
29774
29929
|
//
|
|
29930
|
+
// Lifecycle
|
|
29931
|
+
//
|
|
29932
|
+
// --------------------------------------------------------------------------
|
|
29933
|
+
connectedCallback() {
|
|
29934
|
+
connectConditionalSlotComponent(this);
|
|
29935
|
+
}
|
|
29936
|
+
disconnectedCallback() {
|
|
29937
|
+
disconnectConditionalSlotComponent(this);
|
|
29938
|
+
}
|
|
29939
|
+
// --------------------------------------------------------------------------
|
|
29940
|
+
//
|
|
29775
29941
|
// Render Methods
|
|
29776
29942
|
//
|
|
29777
29943
|
// --------------------------------------------------------------------------
|
|
@@ -30802,6 +30968,17 @@ class CalciteTip {
|
|
|
30802
30968
|
}
|
|
30803
30969
|
// --------------------------------------------------------------------------
|
|
30804
30970
|
//
|
|
30971
|
+
// Lifecycle
|
|
30972
|
+
//
|
|
30973
|
+
// --------------------------------------------------------------------------
|
|
30974
|
+
connectedCallback() {
|
|
30975
|
+
connectConditionalSlotComponent(this);
|
|
30976
|
+
}
|
|
30977
|
+
disconnectedCallback() {
|
|
30978
|
+
disconnectConditionalSlotComponent(this);
|
|
30979
|
+
}
|
|
30980
|
+
// --------------------------------------------------------------------------
|
|
30981
|
+
//
|
|
30805
30982
|
// Render Methods
|
|
30806
30983
|
//
|
|
30807
30984
|
// --------------------------------------------------------------------------
|
|
@@ -30820,7 +30997,7 @@ class CalciteTip {
|
|
|
30820
30997
|
}
|
|
30821
30998
|
renderImageFrame() {
|
|
30822
30999
|
const { el } = this;
|
|
30823
|
-
return getSlotted(el, SLOTS$2.thumbnail) ? (hAsync("div", { class: CSS$3.imageFrame }, hAsync("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
31000
|
+
return getSlotted(el, SLOTS$2.thumbnail) ? (hAsync("div", { class: CSS$3.imageFrame, key: "thumbnail" }, hAsync("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
30824
31001
|
}
|
|
30825
31002
|
renderInfoNode() {
|
|
30826
31003
|
return (hAsync("div", { class: CSS$3.info }, hAsync("slot", null)));
|
|
@@ -31731,6 +31908,10 @@ class CalciteTreeItem {
|
|
|
31731
31908
|
const { expanded } = this.parentTreeItem;
|
|
31732
31909
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
31733
31910
|
}
|
|
31911
|
+
connectConditionalSlotComponent(this);
|
|
31912
|
+
}
|
|
31913
|
+
disconnectedCallback() {
|
|
31914
|
+
disconnectConditionalSlotComponent(this);
|
|
31734
31915
|
}
|
|
31735
31916
|
componentWillRender() {
|
|
31736
31917
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -32215,6 +32396,17 @@ class CalciteValueListItem {
|
|
|
32215
32396
|
}
|
|
32216
32397
|
// --------------------------------------------------------------------------
|
|
32217
32398
|
//
|
|
32399
|
+
// Lifecycle
|
|
32400
|
+
//
|
|
32401
|
+
// --------------------------------------------------------------------------
|
|
32402
|
+
connectedCallback() {
|
|
32403
|
+
connectConditionalSlotComponent(this);
|
|
32404
|
+
}
|
|
32405
|
+
disconnectedCallback() {
|
|
32406
|
+
disconnectConditionalSlotComponent(this);
|
|
32407
|
+
}
|
|
32408
|
+
// --------------------------------------------------------------------------
|
|
32409
|
+
//
|
|
32218
32410
|
// Public Methods
|
|
32219
32411
|
//
|
|
32220
32412
|
// --------------------------------------------------------------------------
|