@esri/calcite-components 1.0.0-next.362 → 1.0.0-next.366
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-26fd946c.entry.js +5 -0
- package/dist/calcite/{p-0b0ce9b2.system.entry.js → p-3280f0ac.system.entry.js} +1 -1
- package/dist/calcite/p-409d0a3f.entry.js +5 -0
- package/dist/calcite/p-40cbbd20.entry.js +5 -0
- package/dist/calcite/p-4347fde9.system.entry.js +5 -0
- package/dist/calcite/p-43cd4b9b.entry.js +5 -0
- package/dist/calcite/p-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-7ed5b78e.system.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-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9b723fdd.system.entry.js +5 -0
- package/dist/calcite/p-9bfe6679.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-graph_2.cjs.entry.js +15 -8
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input.cjs.entry.js +3 -0
- 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-graph/calcite-graph.css +3 -5
- package/dist/collection/components/calcite-graph/calcite-graph.js +13 -42
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +15 -21
- package/dist/collection/components/calcite-input/calcite-input.js +3 -0
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
- package/dist/collection/components/calcite-modal/calcite-modal.js +5 -2
- package/dist/collection/components/calcite-notice/calcite-notice.js +7 -0
- package/dist/collection/components/calcite-panel/calcite-panel.js +19 -14
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +12 -0
- package/dist/collection/components/calcite-shell/calcite-shell.js +14 -2
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
- package/dist/collection/components/calcite-slider/calcite-slider.css +1 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +1 -2
- package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
- package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +5 -0
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
- package/dist/collection/utils/conditionalSlot.js +22 -11
- package/dist/components/calcite-action-bar.js +2 -23
- package/dist/components/calcite-action-group2.js +12 -0
- package/dist/components/calcite-action-menu2.js +3 -0
- package/dist/components/calcite-action-pad.js +7 -0
- package/dist/components/calcite-alert.js +15 -9
- package/dist/components/calcite-block.js +13 -1
- package/dist/components/calcite-chip2.js +13 -1
- package/dist/components/calcite-combobox.js +21 -12
- package/dist/components/calcite-graph2.js +14 -9
- package/dist/components/calcite-inline-editable.js +5 -5
- package/dist/components/calcite-input2.js +3 -0
- package/dist/components/calcite-list-item.js +12 -0
- package/dist/components/calcite-modal.js +5 -2
- package/dist/components/calcite-notice.js +7 -0
- package/dist/components/calcite-panel.js +17 -12
- package/dist/components/calcite-pick-list-group.js +12 -0
- package/dist/components/calcite-pick-list-item2.js +12 -0
- package/dist/components/calcite-shell-center-row.js +13 -1
- package/dist/components/calcite-shell-panel.js +9 -4
- package/dist/components/calcite-shell.js +14 -2
- package/dist/components/calcite-slider.js +2 -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 +306 -121
- 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-graph_2.entry.js +16 -9
- package/dist/esm/calcite-inline-editable.entry.js +5 -5
- package/dist/esm/calcite-input.entry.js +3 -0
- package/dist/esm/calcite-list_3.entry.js +13 -0
- package/dist/esm/calcite-modal.entry.js +5 -2
- package/dist/esm/calcite-notice.entry.js +8 -0
- package/dist/esm/calcite-panel.entry.js +18 -12
- package/dist/esm/calcite-pick-list_3.entry.js +23 -0
- package/dist/esm/calcite-shell_3.entry.js +35 -7
- package/dist/esm/calcite-tile.entry.js +13 -0
- package/dist/esm/calcite-tip_3.entry.js +13 -1
- package/dist/esm/calcite-tree_2.entry.js +6 -0
- package/dist/esm/calcite-value-list_2.entry.js +12 -0
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/conditionalSlot-0c4ea23a.js +40 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- 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 -36
- 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-graph/calcite-graph.d.ts +3 -4
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -5
- 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 -16
- package/dist/types/preact.d.ts +3 -3
- package/hydrate/index.js +305 -121
- package/package.json +11 -11
- 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-325fcd0d.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-3b8f5ab8.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-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-8eafaf3f.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-e2ebc089.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],
|
|
@@ -18362,7 +18431,7 @@ function area({ data, min, max, t }) {
|
|
|
18362
18431
|
return `${commands} ${end} L ${maxX},${minY} Z`;
|
|
18363
18432
|
}
|
|
18364
18433
|
|
|
18365
|
-
const calciteGraphCss = "@-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-graph: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-graph{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-graph{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-graph{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-graph{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-graph{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-graph:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-graph-h{display:none}/*!@:host*/.sc-calcite-graph-h{display:block}/*!@.svg*/.svg.sc-calcite-graph{fill:currentColor;stroke:transparent;margin:0px;display:block;
|
|
18434
|
+
const calciteGraphCss = "@-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-graph: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-graph{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-graph{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-graph{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-graph{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-graph{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-graph:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-graph-h{display:none}/*!@:host*/.sc-calcite-graph-h{display:block}/*!@.svg*/.svg.sc-calcite-graph{fill:currentColor;stroke:transparent;margin:0px;display:block;height:100%;width:100%;padding:0px}/*!@.svg .graph-path--highlight*/.svg.sc-calcite-graph .graph-path--highlight.sc-calcite-graph{fill:var(--calcite-ui-brand);opacity:0.5}";
|
|
18366
18435
|
|
|
18367
18436
|
class CalciteGraph {
|
|
18368
18437
|
constructor(hostRef) {
|
|
@@ -18377,25 +18446,31 @@ class CalciteGraph {
|
|
|
18377
18446
|
* These data points should be sorted by x-axis value
|
|
18378
18447
|
*/
|
|
18379
18448
|
this.data = [];
|
|
18380
|
-
/** Width of graph in pixels*/
|
|
18381
|
-
this.width = 300;
|
|
18382
|
-
/** Width of graph in pixels*/
|
|
18383
|
-
this.height = 100;
|
|
18384
18449
|
//--------------------------------------------------------------------------
|
|
18385
18450
|
//
|
|
18386
18451
|
// Private State/Props
|
|
18387
18452
|
//
|
|
18388
18453
|
//--------------------------------------------------------------------------
|
|
18389
18454
|
this.graphId = `calcite-graph-${guid()}`;
|
|
18455
|
+
this.resizeObserver = createObserver();
|
|
18390
18456
|
}
|
|
18391
18457
|
//--------------------------------------------------------------------------
|
|
18392
18458
|
//
|
|
18393
18459
|
// Lifecycle
|
|
18394
18460
|
//
|
|
18395
18461
|
//--------------------------------------------------------------------------
|
|
18462
|
+
connectedCallback() {
|
|
18463
|
+
var _a;
|
|
18464
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
18465
|
+
}
|
|
18466
|
+
disconnectedCallback() {
|
|
18467
|
+
var _a;
|
|
18468
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
18469
|
+
}
|
|
18396
18470
|
render() {
|
|
18397
|
-
const { data, colorStops,
|
|
18471
|
+
const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
|
|
18398
18472
|
const id = this.graphId;
|
|
18473
|
+
const { clientHeight: height, clientWidth: width } = el;
|
|
18399
18474
|
// if we have no data, return empty svg
|
|
18400
18475
|
if (!data || data.length === 0) {
|
|
18401
18476
|
return (hAsync("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }));
|
|
@@ -18449,8 +18524,6 @@ class CalciteGraph {
|
|
|
18449
18524
|
"$members$": {
|
|
18450
18525
|
"data": [16],
|
|
18451
18526
|
"colorStops": [16],
|
|
18452
|
-
"width": [2],
|
|
18453
|
-
"height": [2],
|
|
18454
18527
|
"highlightMin": [2, "highlight-min"],
|
|
18455
18528
|
"highlightMax": [2, "highlight-max"],
|
|
18456
18529
|
"min": [2],
|
|
@@ -18680,8 +18753,8 @@ const calciteInlineEditableCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacit
|
|
|
18680
18753
|
class CalciteInlineEditable {
|
|
18681
18754
|
constructor(hostRef) {
|
|
18682
18755
|
registerInstance(this, hostRef);
|
|
18683
|
-
this.
|
|
18684
|
-
this.
|
|
18756
|
+
this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
|
|
18757
|
+
this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
|
|
18685
18758
|
this.calciteInlineEditableEnableEditingChange = createEvent(this, "calciteInlineEditableEnableEditingChange", 7);
|
|
18686
18759
|
//--------------------------------------------------------------------------
|
|
18687
18760
|
//
|
|
@@ -18708,9 +18781,9 @@ class CalciteInlineEditable {
|
|
|
18708
18781
|
* @default "Save"
|
|
18709
18782
|
*/
|
|
18710
18783
|
this.intlConfirmChanges = TEXT$c.intlConfirmChanges;
|
|
18711
|
-
this.transitionEnd = (
|
|
18784
|
+
this.transitionEnd = () => {
|
|
18712
18785
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
18713
|
-
this.
|
|
18786
|
+
this.calciteInlineEditableEditCancel.emit();
|
|
18714
18787
|
}
|
|
18715
18788
|
};
|
|
18716
18789
|
this.enableEditing = () => {
|
|
@@ -18762,7 +18835,7 @@ class CalciteInlineEditable {
|
|
|
18762
18835
|
this.confirmChangesHandler = async (e) => {
|
|
18763
18836
|
e.preventDefault();
|
|
18764
18837
|
e.stopPropagation();
|
|
18765
|
-
this.
|
|
18838
|
+
this.calciteInlineEditableEditConfirm.emit();
|
|
18766
18839
|
try {
|
|
18767
18840
|
if (this.afterConfirm) {
|
|
18768
18841
|
this.loading = true;
|
|
@@ -18939,7 +19012,7 @@ class CalciteInput {
|
|
|
18939
19012
|
* string to override English loading text
|
|
18940
19013
|
* @default "Loading"
|
|
18941
19014
|
*/
|
|
18942
|
-
this.intlLoading = TEXT$
|
|
19015
|
+
this.intlLoading = TEXT$r.loading;
|
|
18943
19016
|
/** flip the icon in rtl */
|
|
18944
19017
|
this.iconFlipRtl = false;
|
|
18945
19018
|
/** specify if the input is in loading state */
|
|
@@ -19114,6 +19187,9 @@ class CalciteInput {
|
|
|
19114
19187
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
19115
19188
|
const valueNudgeDelayInMs = 100;
|
|
19116
19189
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
19190
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
19191
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
19192
|
+
}
|
|
19117
19193
|
let firstValueNudge = true;
|
|
19118
19194
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
19119
19195
|
if (firstValueNudge) {
|
|
@@ -20600,6 +20676,17 @@ class CalciteListItem {
|
|
|
20600
20676
|
}
|
|
20601
20677
|
// --------------------------------------------------------------------------
|
|
20602
20678
|
//
|
|
20679
|
+
// Lifecycle
|
|
20680
|
+
//
|
|
20681
|
+
// --------------------------------------------------------------------------
|
|
20682
|
+
connectedCallback() {
|
|
20683
|
+
connectConditionalSlotComponent(this);
|
|
20684
|
+
}
|
|
20685
|
+
disconnectedCallback() {
|
|
20686
|
+
disconnectConditionalSlotComponent(this);
|
|
20687
|
+
}
|
|
20688
|
+
// --------------------------------------------------------------------------
|
|
20689
|
+
//
|
|
20603
20690
|
// Public Methods
|
|
20604
20691
|
//
|
|
20605
20692
|
// --------------------------------------------------------------------------
|
|
@@ -21035,11 +21122,13 @@ class CalciteModal {
|
|
|
21035
21122
|
var _a;
|
|
21036
21123
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
21037
21124
|
this.updateFooterVisibility();
|
|
21125
|
+
connectConditionalSlotComponent(this);
|
|
21038
21126
|
}
|
|
21039
21127
|
disconnectedCallback() {
|
|
21040
21128
|
var _a;
|
|
21041
21129
|
this.removeOverflowHiddenClass();
|
|
21042
21130
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
21131
|
+
disconnectConditionalSlotComponent(this);
|
|
21043
21132
|
}
|
|
21044
21133
|
render() {
|
|
21045
21134
|
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: {
|
|
@@ -21049,10 +21138,10 @@ class CalciteModal {
|
|
|
21049
21138
|
}, ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderFooter(), hAsync("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
21050
21139
|
}
|
|
21051
21140
|
renderFooter() {
|
|
21052
|
-
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;
|
|
21141
|
+
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;
|
|
21053
21142
|
}
|
|
21054
21143
|
renderCloseButton() {
|
|
21055
|
-
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;
|
|
21144
|
+
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;
|
|
21056
21145
|
}
|
|
21057
21146
|
renderStyle() {
|
|
21058
21147
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -21253,6 +21342,12 @@ class CalciteNotice {
|
|
|
21253
21342
|
// Lifecycle
|
|
21254
21343
|
//
|
|
21255
21344
|
//--------------------------------------------------------------------------
|
|
21345
|
+
connectedCallback() {
|
|
21346
|
+
connectConditionalSlotComponent(this);
|
|
21347
|
+
}
|
|
21348
|
+
disconnectedCallback() {
|
|
21349
|
+
disconnectConditionalSlotComponent(this);
|
|
21350
|
+
}
|
|
21256
21351
|
componentWillLoad() {
|
|
21257
21352
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
21258
21353
|
}
|
|
@@ -21751,6 +21846,17 @@ class CalcitePanel {
|
|
|
21751
21846
|
}
|
|
21752
21847
|
// --------------------------------------------------------------------------
|
|
21753
21848
|
//
|
|
21849
|
+
// Lifecycle
|
|
21850
|
+
//
|
|
21851
|
+
// --------------------------------------------------------------------------
|
|
21852
|
+
connectedCallback() {
|
|
21853
|
+
connectConditionalSlotComponent(this);
|
|
21854
|
+
}
|
|
21855
|
+
disconnectedCallback() {
|
|
21856
|
+
disconnectConditionalSlotComponent(this);
|
|
21857
|
+
}
|
|
21858
|
+
// --------------------------------------------------------------------------
|
|
21859
|
+
//
|
|
21754
21860
|
// Methods
|
|
21755
21861
|
//
|
|
21756
21862
|
// --------------------------------------------------------------------------
|
|
@@ -21790,7 +21896,7 @@ class CalcitePanel {
|
|
|
21790
21896
|
* Allows user to override the entire header-content node.
|
|
21791
21897
|
*/
|
|
21792
21898
|
renderHeaderSlottedContent() {
|
|
21793
|
-
return (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21899
|
+
return (hAsync("div", { class: CSS$k.headerContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21794
21900
|
}
|
|
21795
21901
|
renderHeaderStartActions() {
|
|
21796
21902
|
const { el } = this;
|
|
@@ -21808,7 +21914,7 @@ class CalcitePanel {
|
|
|
21808
21914
|
renderMenu() {
|
|
21809
21915
|
const { el, intlOptions, menuOpen } = this;
|
|
21810
21916
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
21811
|
-
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;
|
|
21917
|
+
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;
|
|
21812
21918
|
}
|
|
21813
21919
|
renderHeaderNode() {
|
|
21814
21920
|
const { el, showBackButton } = this;
|
|
@@ -21826,18 +21932,11 @@ class CalcitePanel {
|
|
|
21826
21932
|
headerMenuNode ||
|
|
21827
21933
|
showBackButton ? (hAsync("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
21828
21934
|
}
|
|
21829
|
-
|
|
21830
|
-
* Allows user to override the entire footer node.
|
|
21831
|
-
*/
|
|
21832
|
-
renderFooterSlottedContent() {
|
|
21935
|
+
renderFooterNode() {
|
|
21833
21936
|
const { el } = this;
|
|
21834
21937
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
21835
|
-
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footer }))) : null;
|
|
21836
|
-
}
|
|
21837
|
-
renderFooterActions() {
|
|
21838
|
-
const { el } = this;
|
|
21839
21938
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
21840
|
-
return hasFooterActions ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
21939
|
+
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;
|
|
21841
21940
|
}
|
|
21842
21941
|
renderContent() {
|
|
21843
21942
|
const { el } = this;
|
|
@@ -21849,7 +21948,7 @@ class CalcitePanel {
|
|
|
21849
21948
|
}
|
|
21850
21949
|
render() {
|
|
21851
21950
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
21852
|
-
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.
|
|
21951
|
+
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()));
|
|
21853
21952
|
return (hAsync(Fragment, null, loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
21854
21953
|
}
|
|
21855
21954
|
get el() { return getElement(this); }
|
|
@@ -22349,6 +22448,17 @@ class CalcitePickListGroup {
|
|
|
22349
22448
|
}
|
|
22350
22449
|
// --------------------------------------------------------------------------
|
|
22351
22450
|
//
|
|
22451
|
+
// Lifecycle
|
|
22452
|
+
//
|
|
22453
|
+
// --------------------------------------------------------------------------
|
|
22454
|
+
connectedCallback() {
|
|
22455
|
+
connectConditionalSlotComponent(this);
|
|
22456
|
+
}
|
|
22457
|
+
disconnectedCallback() {
|
|
22458
|
+
disconnectConditionalSlotComponent(this);
|
|
22459
|
+
}
|
|
22460
|
+
// --------------------------------------------------------------------------
|
|
22461
|
+
//
|
|
22352
22462
|
// Render Methods
|
|
22353
22463
|
//
|
|
22354
22464
|
// --------------------------------------------------------------------------
|
|
@@ -22499,6 +22609,17 @@ class CalcitePickListItem {
|
|
|
22499
22609
|
}
|
|
22500
22610
|
// --------------------------------------------------------------------------
|
|
22501
22611
|
//
|
|
22612
|
+
// Lifecycle
|
|
22613
|
+
//
|
|
22614
|
+
// --------------------------------------------------------------------------
|
|
22615
|
+
connectedCallback() {
|
|
22616
|
+
connectConditionalSlotComponent(this);
|
|
22617
|
+
}
|
|
22618
|
+
disconnectedCallback() {
|
|
22619
|
+
disconnectConditionalSlotComponent(this);
|
|
22620
|
+
}
|
|
22621
|
+
// --------------------------------------------------------------------------
|
|
22622
|
+
//
|
|
22502
22623
|
// Public Methods
|
|
22503
22624
|
//
|
|
22504
22625
|
// --------------------------------------------------------------------------
|
|
@@ -24130,12 +24251,23 @@ class CalciteShell {
|
|
|
24130
24251
|
}
|
|
24131
24252
|
// --------------------------------------------------------------------------
|
|
24132
24253
|
//
|
|
24254
|
+
// Lifecycle
|
|
24255
|
+
//
|
|
24256
|
+
// --------------------------------------------------------------------------
|
|
24257
|
+
connectedCallback() {
|
|
24258
|
+
connectConditionalSlotComponent(this);
|
|
24259
|
+
}
|
|
24260
|
+
disconnectedCallback() {
|
|
24261
|
+
disconnectConditionalSlotComponent(this);
|
|
24262
|
+
}
|
|
24263
|
+
// --------------------------------------------------------------------------
|
|
24264
|
+
//
|
|
24133
24265
|
// Render Methods
|
|
24134
24266
|
//
|
|
24135
24267
|
// --------------------------------------------------------------------------
|
|
24136
24268
|
renderHeader() {
|
|
24137
24269
|
const hasHeader = !!getSlotted(this.el, SLOTS$7.header);
|
|
24138
|
-
return hasHeader ? hAsync("slot", { name: SLOTS$7.header }) : null;
|
|
24270
|
+
return hasHeader ? hAsync("slot", { key: "header", name: SLOTS$7.header }) : null;
|
|
24139
24271
|
}
|
|
24140
24272
|
renderContent() {
|
|
24141
24273
|
const content = !!this.contentBehind
|
|
@@ -24153,7 +24285,7 @@ class CalciteShell {
|
|
|
24153
24285
|
}
|
|
24154
24286
|
renderFooter() {
|
|
24155
24287
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
24156
|
-
return hasFooter ? (hAsync("div", { class: CSS$b.footer }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24288
|
+
return hasFooter ? (hAsync("div", { class: CSS$b.footer, key: "footer" }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24157
24289
|
}
|
|
24158
24290
|
renderMain() {
|
|
24159
24291
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
@@ -24217,6 +24349,17 @@ class CalciteShellCenterRow {
|
|
|
24217
24349
|
}
|
|
24218
24350
|
// --------------------------------------------------------------------------
|
|
24219
24351
|
//
|
|
24352
|
+
// Lifecycle
|
|
24353
|
+
//
|
|
24354
|
+
// --------------------------------------------------------------------------
|
|
24355
|
+
connectedCallback() {
|
|
24356
|
+
connectConditionalSlotComponent(this);
|
|
24357
|
+
}
|
|
24358
|
+
disconnectedCallback() {
|
|
24359
|
+
disconnectConditionalSlotComponent(this);
|
|
24360
|
+
}
|
|
24361
|
+
// --------------------------------------------------------------------------
|
|
24362
|
+
//
|
|
24220
24363
|
// Render Methods
|
|
24221
24364
|
//
|
|
24222
24365
|
// --------------------------------------------------------------------------
|
|
@@ -24224,7 +24367,7 @@ class CalciteShellCenterRow {
|
|
|
24224
24367
|
const { el } = this;
|
|
24225
24368
|
const contentNode = (hAsync("div", { class: CSS$a.content }, hAsync("slot", null)));
|
|
24226
24369
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
24227
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24370
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24228
24371
|
const children = [actionBarNode, contentNode];
|
|
24229
24372
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
24230
24373
|
children.reverse();
|
|
@@ -24412,7 +24555,11 @@ class CalciteShellPanel {
|
|
|
24412
24555
|
// Lifecycle
|
|
24413
24556
|
//
|
|
24414
24557
|
//--------------------------------------------------------------------------
|
|
24558
|
+
connectedCallback() {
|
|
24559
|
+
connectConditionalSlotComponent(this);
|
|
24560
|
+
}
|
|
24415
24561
|
disconnectedCallback() {
|
|
24562
|
+
disconnectConditionalSlotComponent(this);
|
|
24416
24563
|
this.disconnectSeparator();
|
|
24417
24564
|
}
|
|
24418
24565
|
componentDidLoad() {
|
|
@@ -24426,14 +24573,14 @@ class CalciteShellPanel {
|
|
|
24426
24573
|
renderHeader() {
|
|
24427
24574
|
const { el } = this;
|
|
24428
24575
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
24429
|
-
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24576
|
+
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader, key: "header" }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24430
24577
|
}
|
|
24431
24578
|
render() {
|
|
24432
24579
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
24433
24580
|
const allowResizing = !detached && resizable;
|
|
24434
|
-
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))));
|
|
24435
|
-
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;
|
|
24436
|
-
const actionBarNode = hAsync("slot", { name: SLOTS$5.actionBar });
|
|
24581
|
+
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))));
|
|
24582
|
+
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;
|
|
24583
|
+
const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$5.actionBar });
|
|
24437
24584
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
24438
24585
|
if (position === "end") {
|
|
24439
24586
|
mainNodes.reverse();
|
|
@@ -24497,7 +24644,7 @@ class CalciteShellPanel {
|
|
|
24497
24644
|
}; }
|
|
24498
24645
|
}
|
|
24499
24646
|
|
|
24500
|
-
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-slider: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-slider{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-slider{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-slider{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-slider{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-slider{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-slider:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-slider-h{display:none}/*!@.scale--s*/.scale--s.sc-calcite-slider{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}/*!@.scale--s .handle__label, .scale--s .tick__label*/.scale--s.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--s.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:.75rem}/*!@.scale--m*/.scale--m.sc-calcite-slider{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}/*!@.scale--m .handle__label, .scale--m .tick__label*/.scale--m.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--m.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.scale--l*/.scale--l.sc-calcite-slider{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}/*!@.scale--l .handle__label, .scale--l .tick__label*/.scale--l.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--l.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.handle__label, .tick__label*/.handle__label.sc-calcite-slider,.tick__label.sc-calcite-slider{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}/*!@:host*/.sc-calcite-slider-h{display:block}/*!@.container*/.container.sc-calcite-slider{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}/*!@:host([disabled])*/[disabled].sc-calcite-slider-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) .track__range,\n:host([disabled]) .tick--active*/[disabled].sc-calcite-slider-h .track__range.sc-calcite-slider,[disabled].sc-calcite-slider-h .tick--active.sc-calcite-slider{background-color:var(--calcite-ui-text-3)}/*!@.scale--s .thumb:not(.thumb--precise)*/.scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}/*!@.scale--m .thumb:not(.thumb--precise)*/.scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}/*!@.scale--l .thumb:not(.thumb--precise)*/.scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}/*!@:host([precise]:not([has-histogram])) .container .thumb--value*/[precise].sc-calcite-slider-h:not([has-histogram]) .container.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}/*!@.thumb-container*/.thumb-container.sc-calcite-slider{position:relative;max-width:100%}/*!@.thumb*/.thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}/*!@.thumb .handle__label.static, .thumb .handle__label.transformed*/.thumb.sc-calcite-slider .handle__label.static.sc-calcite-slider,.thumb.sc-calcite-slider .handle__label.transformed.sc-calcite-slider{position:absolute;top:0px;bottom:0px;opacity:0}/*!@.thumb .handle__label.hyphen::after*/.thumb.sc-calcite-slider .handle__label.hyphen.sc-calcite-slider::after{content:\"—\";display:inline-block;width:1em}/*!@.thumb .handle*/.thumb.sc-calcite-slider .handle.sc-calcite-slider{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}/*!@.thumb .handle-extension*/.thumb.sc-calcite-slider .handle-extension.sc-calcite-slider{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}/*!@.thumb:hover .handle*/.thumb.sc-calcite-slider:hover .handle.sc-calcite-slider{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}/*!@.thumb:hover .handle-extension*/.thumb.sc-calcite-slider:hover .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb:focus .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.thumb:focus .handle-extension*/.thumb.sc-calcite-slider:focus .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb.thumb--minValue*/.thumb.thumb--minValue.sc-calcite-slider{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}/*!@.thumb.thumb--precise*/.thumb.thumb--precise.sc-calcite-slider{--calcite-slider-thumb-y-offset:-2px}/*!@:host([label-handles]) .thumb*/[label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:50%}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}/*!@:host([has-histogram][label-handles]) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label*/[has-histogram][label-handles].sc-calcite-slider-h .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--minValue.thumb--precise.sc-calcite-slider .handle__label.sc-calcite-slider{margin-top:0.5em}/*!@:host(:not([has-histogram]):not([precise])) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--value .handle__label*/.sc-calcite-slider-h:not([has-histogram]):not([precise]) .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--value.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:0.5em}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-33px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-44px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-49px}/*!@.thumb:focus .handle, .thumb--active .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider,.thumb--active.sc-calcite-slider .handle.sc-calcite-slider{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}/*!@.thumb:hover.thumb--precise:after, .thumb:focus.thumb--precise:after, .thumb--active.thumb--precise:after*/.thumb.sc-calcite-slider:hover.thumb--precise:after,.thumb.sc-calcite-slider:focus.thumb--precise:after,.thumb--active.thumb--precise.sc-calcite-slider:after{background-color:var(--calcite-ui-brand)}/*!@.track*/.track.sc-calcite-slider{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}/*!@.track__range*/.track__range.sc-calcite-slider{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}/*!@.container--range .track__range:hover*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:hover{cursor:ew-resize}/*!@.container--range .track__range:after*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}/*!@.tick*/.tick.sc-calcite-slider{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}/*!@.tick--active*/.tick--active.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.tick__label*/.tick__label.sc-calcite-slider{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}/*!@.tick__label--min*/.tick__label--min.sc-calcite-slider{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}/*!@.tick__label--max*/.tick__label--max.sc-calcite-slider{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}/*!@:host([has-histogram][label-handles]) .tick__label--min, :host([has-histogram][label-handles]) .tick__label--max, :host([has-histogram][precise]) .tick__label--min, :host([has-histogram][precise]) .tick__label--max*/[has-histogram][label-handles].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][label-handles].sc-calcite-slider-h .tick__label--max.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--max.sc-calcite-slider{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@.graph*/.graph.sc-calcite-slider{color:var(--calcite-ui-foreground-3)}/*!@:host([label-ticks][ticks]) .container*/[label-ticks][ticks].sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}/*!@:host([has-histogram]):host([precise][label-handles]) .container*/[has-histogram].sc-calcite-slider-h([precise][label-handles]).sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}/*!@:host([has-histogram]):host([label-handles]:not([precise])) .container*/[has-histogram].sc-calcite-slider-h([label-handles].sc-calcite-slider-h:not([precise])) .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}/*!@:host([has-histogram]):host([precise]:not([label-handles])) .container*/[has-histogram].sc-calcite-slider-h([precise].sc-calcite-slider-h:not([label-handles])) .container.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container.sc-calcite-slider{padding-top:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container--range.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([label-handles]:not([precise])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles]:not([precise])) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container--range.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-slider-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}";
|
|
24647
|
+
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-slider: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-slider{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-slider{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-slider{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-slider{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-slider{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-slider:root{--calcite-popper-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-slider-h{display:none}/*!@.scale--s*/.scale--s.sc-calcite-slider{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}/*!@.scale--s .handle__label, .scale--s .tick__label*/.scale--s.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--s.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:.75rem}/*!@.scale--m*/.scale--m.sc-calcite-slider{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}/*!@.scale--m .handle__label, .scale--m .tick__label*/.scale--m.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--m.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.scale--l*/.scale--l.sc-calcite-slider{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}/*!@.scale--l .handle__label, .scale--l .tick__label*/.scale--l.sc-calcite-slider .handle__label.sc-calcite-slider,.scale--l.sc-calcite-slider .tick__label.sc-calcite-slider{line-height:1rem}/*!@.handle__label, .tick__label*/.handle__label.sc-calcite-slider,.tick__label.sc-calcite-slider{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}/*!@:host*/.sc-calcite-slider-h{display:block}/*!@.container*/.container.sc-calcite-slider{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}/*!@:host([disabled])*/[disabled].sc-calcite-slider-h{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) .track__range,\n:host([disabled]) .tick--active*/[disabled].sc-calcite-slider-h .track__range.sc-calcite-slider,[disabled].sc-calcite-slider-h .tick--active.sc-calcite-slider{background-color:var(--calcite-ui-text-3)}/*!@.scale--s .thumb:not(.thumb--precise)*/.scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}/*!@.scale--m .thumb:not(.thumb--precise)*/.scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}/*!@.scale--l .thumb:not(.thumb--precise)*/.scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}/*!@:host([precise]:not([has-histogram])) .container .thumb--value*/[precise].sc-calcite-slider-h:not([has-histogram]) .container.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}/*!@.thumb-container*/.thumb-container.sc-calcite-slider{position:relative;max-width:100%}/*!@.thumb*/.thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}/*!@.thumb .handle__label.static, .thumb .handle__label.transformed*/.thumb.sc-calcite-slider .handle__label.static.sc-calcite-slider,.thumb.sc-calcite-slider .handle__label.transformed.sc-calcite-slider{position:absolute;top:0px;bottom:0px;opacity:0}/*!@.thumb .handle__label.hyphen::after*/.thumb.sc-calcite-slider .handle__label.hyphen.sc-calcite-slider::after{content:\"—\";display:inline-block;width:1em}/*!@.thumb .handle*/.thumb.sc-calcite-slider .handle.sc-calcite-slider{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}/*!@.thumb .handle-extension*/.thumb.sc-calcite-slider .handle-extension.sc-calcite-slider{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}/*!@.thumb:hover .handle*/.thumb.sc-calcite-slider:hover .handle.sc-calcite-slider{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}/*!@.thumb:hover .handle-extension*/.thumb.sc-calcite-slider:hover .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb:focus .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.thumb:focus .handle-extension*/.thumb.sc-calcite-slider:focus .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb.thumb--minValue*/.thumb.thumb--minValue.sc-calcite-slider{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}/*!@.thumb.thumb--precise*/.thumb.thumb--precise.sc-calcite-slider{--calcite-slider-thumb-y-offset:-2px}/*!@:host([label-handles]) .thumb*/[label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{--calcite-slider-thumb-x-offset:50%}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}/*!@:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise)*/[label-handles].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb.sc-calcite-slider:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}/*!@:host([has-histogram][label-handles]) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label*/[has-histogram][label-handles].sc-calcite-slider-h .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--minValue.thumb--precise.sc-calcite-slider .handle__label.sc-calcite-slider{margin-top:0.5em}/*!@:host(:not([has-histogram]):not([precise])) .handle__label,\n:host([label-handles]:not([has-histogram])) .thumb--value .handle__label*/.sc-calcite-slider-h:not([has-histogram]):not([precise]) .handle__label.sc-calcite-slider,[label-handles].sc-calcite-slider-h:not([has-histogram]) .thumb--value.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:0.5em}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--s.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-33px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--m.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-44px}/*!@:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value*/[label-handles][precise].sc-calcite-slider-h(.sc-calcite-slider-h:not([has-histogram])) .scale--l.sc-calcite-slider .thumb--value.sc-calcite-slider{--calcite-slider-thumb-y-offset:-49px}/*!@.thumb:focus .handle, .thumb--active .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider,.thumb--active.sc-calcite-slider .handle.sc-calcite-slider{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}/*!@.thumb:hover.thumb--precise:after, .thumb:focus.thumb--precise:after, .thumb--active.thumb--precise:after*/.thumb.sc-calcite-slider:hover.thumb--precise:after,.thumb.sc-calcite-slider:focus.thumb--precise:after,.thumb--active.thumb--precise.sc-calcite-slider:after{background-color:var(--calcite-ui-brand)}/*!@.track*/.track.sc-calcite-slider{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}/*!@.track__range*/.track__range.sc-calcite-slider{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}/*!@.container--range .track__range:hover*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:hover{cursor:ew-resize}/*!@.container--range .track__range:after*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}/*!@.tick*/.tick.sc-calcite-slider{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}/*!@.tick--active*/.tick--active.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.tick__label*/.tick__label.sc-calcite-slider{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}/*!@.tick__label--min*/.tick__label--min.sc-calcite-slider{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}/*!@.tick__label--max*/.tick__label--max.sc-calcite-slider{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}/*!@:host([has-histogram][label-handles]) .tick__label--min, :host([has-histogram][label-handles]) .tick__label--max, :host([has-histogram][precise]) .tick__label--min, :host([has-histogram][precise]) .tick__label--max*/[has-histogram][label-handles].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][label-handles].sc-calcite-slider-h .tick__label--max.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h .tick__label--max.sc-calcite-slider{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}/*!@.graph*/.graph.sc-calcite-slider{color:var(--calcite-ui-foreground-3);height:48px}/*!@:host([label-ticks][ticks]) .container*/[label-ticks][ticks].sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}/*!@:host([has-histogram]):host([precise][label-handles]) .container*/[has-histogram].sc-calcite-slider-h([precise][label-handles]).sc-calcite-slider-h .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}/*!@:host([has-histogram]):host([label-handles]:not([precise])) .container*/[has-histogram].sc-calcite-slider-h([label-handles].sc-calcite-slider-h:not([precise])) .container.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}/*!@:host([has-histogram]):host([precise]:not([label-handles])) .container*/[has-histogram].sc-calcite-slider-h([precise].sc-calcite-slider-h:not([label-handles])) .container.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container.sc-calcite-slider{padding-top:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([precise]:not([label-handles])) .container--range.sc-calcite-slider{padding-bottom:var(--calcite-slider-full-handle-height)}/*!@:host(:not([has-histogram])):host([label-handles]:not([precise])) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles]:not([precise])) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container.sc-calcite-slider{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@:host(:not([has-histogram])):host([label-handles][precise]) .container--range*/.sc-calcite-slider-h:not([has-histogram]).sc-calcite-slider-h([label-handles][precise]) .container--range.sc-calcite-slider{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-slider-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}";
|
|
24501
24648
|
|
|
24502
24649
|
class CalciteSlider {
|
|
24503
24650
|
constructor(hostRef) {
|
|
@@ -24752,7 +24899,7 @@ class CalciteSlider {
|
|
|
24752
24899
|
histogramLabeledPreciseHandle, hAsync(HiddenFormInputSlot, { component: this })))));
|
|
24753
24900
|
}
|
|
24754
24901
|
renderGraph() {
|
|
24755
|
-
return this.histogram ? (hAsync("
|
|
24902
|
+
return this.histogram ? (hAsync("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: this.isRange ? this.maxValue : this.value, highlightMin: this.isRange ? this.minValue : this.min, max: this.max, min: this.min })) : null;
|
|
24756
24903
|
}
|
|
24757
24904
|
renderTickLabel(tick) {
|
|
24758
24905
|
const isMinTickLabel = tick === this.min;
|
|
@@ -29768,6 +29915,17 @@ class CalciteTile {
|
|
|
29768
29915
|
}
|
|
29769
29916
|
// --------------------------------------------------------------------------
|
|
29770
29917
|
//
|
|
29918
|
+
// Lifecycle
|
|
29919
|
+
//
|
|
29920
|
+
// --------------------------------------------------------------------------
|
|
29921
|
+
connectedCallback() {
|
|
29922
|
+
connectConditionalSlotComponent(this);
|
|
29923
|
+
}
|
|
29924
|
+
disconnectedCallback() {
|
|
29925
|
+
disconnectConditionalSlotComponent(this);
|
|
29926
|
+
}
|
|
29927
|
+
// --------------------------------------------------------------------------
|
|
29928
|
+
//
|
|
29771
29929
|
// Render Methods
|
|
29772
29930
|
//
|
|
29773
29931
|
// --------------------------------------------------------------------------
|
|
@@ -30798,6 +30956,17 @@ class CalciteTip {
|
|
|
30798
30956
|
}
|
|
30799
30957
|
// --------------------------------------------------------------------------
|
|
30800
30958
|
//
|
|
30959
|
+
// Lifecycle
|
|
30960
|
+
//
|
|
30961
|
+
// --------------------------------------------------------------------------
|
|
30962
|
+
connectedCallback() {
|
|
30963
|
+
connectConditionalSlotComponent(this);
|
|
30964
|
+
}
|
|
30965
|
+
disconnectedCallback() {
|
|
30966
|
+
disconnectConditionalSlotComponent(this);
|
|
30967
|
+
}
|
|
30968
|
+
// --------------------------------------------------------------------------
|
|
30969
|
+
//
|
|
30801
30970
|
// Render Methods
|
|
30802
30971
|
//
|
|
30803
30972
|
// --------------------------------------------------------------------------
|
|
@@ -30816,7 +30985,7 @@ class CalciteTip {
|
|
|
30816
30985
|
}
|
|
30817
30986
|
renderImageFrame() {
|
|
30818
30987
|
const { el } = this;
|
|
30819
|
-
return getSlotted(el, SLOTS$2.thumbnail) ? (hAsync("div", { class: CSS$3.imageFrame }, hAsync("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
30988
|
+
return getSlotted(el, SLOTS$2.thumbnail) ? (hAsync("div", { class: CSS$3.imageFrame, key: "thumbnail" }, hAsync("slot", { name: SLOTS$2.thumbnail }))) : null;
|
|
30820
30989
|
}
|
|
30821
30990
|
renderInfoNode() {
|
|
30822
30991
|
return (hAsync("div", { class: CSS$3.info }, hAsync("slot", null)));
|
|
@@ -31727,6 +31896,10 @@ class CalciteTreeItem {
|
|
|
31727
31896
|
const { expanded } = this.parentTreeItem;
|
|
31728
31897
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
31729
31898
|
}
|
|
31899
|
+
connectConditionalSlotComponent(this);
|
|
31900
|
+
}
|
|
31901
|
+
disconnectedCallback() {
|
|
31902
|
+
disconnectConditionalSlotComponent(this);
|
|
31730
31903
|
}
|
|
31731
31904
|
componentWillRender() {
|
|
31732
31905
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -32211,6 +32384,17 @@ class CalciteValueListItem {
|
|
|
32211
32384
|
}
|
|
32212
32385
|
// --------------------------------------------------------------------------
|
|
32213
32386
|
//
|
|
32387
|
+
// Lifecycle
|
|
32388
|
+
//
|
|
32389
|
+
// --------------------------------------------------------------------------
|
|
32390
|
+
connectedCallback() {
|
|
32391
|
+
connectConditionalSlotComponent(this);
|
|
32392
|
+
}
|
|
32393
|
+
disconnectedCallback() {
|
|
32394
|
+
disconnectConditionalSlotComponent(this);
|
|
32395
|
+
}
|
|
32396
|
+
// --------------------------------------------------------------------------
|
|
32397
|
+
//
|
|
32214
32398
|
// Public Methods
|
|
32215
32399
|
//
|
|
32216
32400
|
// --------------------------------------------------------------------------
|