@esri/calcite-components 1.0.0-next.361 → 1.0.0-next.365
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-26fd946c.entry.js +5 -0
- package/dist/calcite/p-2b48aa8c.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-40bb088d.entry.js +5 -0
- package/dist/calcite/{p-2dee637a.system.entry.js → p-5c256f31.system.entry.js} +1 -1
- package/dist/calcite/p-7cf09784.system.entry.js +5 -0
- package/dist/calcite/p-7ed5b78e.system.entry.js +5 -0
- package/dist/calcite/p-8a237191.system.entry.js +5 -0
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9bfe6679.system.entry.js +5 -0
- package/dist/calcite/p-9f349c92.entry.js +5 -0
- package/dist/calcite/p-ba000c59.entry.js +5 -0
- package/dist/calcite/p-cf2be87e.entry.js +5 -0
- package/dist/calcite/p-f4614b28.system.entry.js +5 -0
- package/dist/calcite/{p-683e4cf6.entry.js → p-f90b2e7f.entry.js} +1 -1
- package/dist/calcite/{p-8b145872.system.entry.js → p-f94619be.system.entry.js} +1 -1
- package/dist/cjs/calcite-alert.cjs.entry.js +15 -9
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +15 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +22 -11
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -8
- 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-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/calcite-alert/calcite-alert.js +15 -9
- 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-dropdown/calcite-dropdown.css +1 -1
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +12 -7
- 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-radio-button/calcite-radio-button.css +10 -0
- package/dist/collection/components/calcite-slider/calcite-slider.css +1 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +1 -2
- package/dist/components/calcite-alert.js +15 -9
- package/dist/components/calcite-color-picker-swatch2.js +15 -0
- package/dist/components/calcite-combobox.js +21 -12
- package/dist/components/calcite-dropdown2.js +12 -8
- 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-radio-button.js +1 -1
- package/dist/components/calcite-slider.js +2 -2
- package/dist/components/utils2.js +4 -1
- package/dist/custom-elements/index.js +140 -95
- package/dist/esm/calcite-alert.entry.js +15 -9
- package/dist/esm/calcite-color-picker_3.entry.js +15 -0
- package/dist/esm/calcite-combobox_3.entry.js +22 -11
- package/dist/esm/calcite-dropdown_3.entry.js +12 -8
- 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-radio-button.entry.js +1 -1
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- 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-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/extras/docs-json.json +43 -36
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -0
- 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-dropdown/calcite-dropdown.d.ts +1 -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.d.ts +18 -16
- package/dist/types/preact.d.ts +3 -3
- package/hydrate/index.js +139 -95
- package/package.json +13 -13
- package/readme.md +2 -2
- package/dist/calcite/p-1a5dae4a.entry.js +0 -5
- package/dist/calcite/p-1b3a66ec.system.entry.js +0 -5
- package/dist/calcite/p-244e0b95.entry.js +0 -5
- package/dist/calcite/p-28adfebc.entry.js +0 -5
- package/dist/calcite/p-325fcd0d.entry.js +0 -5
- package/dist/calcite/p-3b8f5ab8.system.entry.js +0 -5
- package/dist/calcite/p-5c3b9524.system.entry.js +0 -5
- package/dist/calcite/p-85fb7bc0.entry.js +0 -5
- package/dist/calcite/p-8eafaf3f.entry.js +0 -5
- package/dist/calcite/p-b4990fa4.system.entry.js +0 -5
- package/dist/calcite/p-e2ebc089.system.entry.js +0 -5
- package/dist/calcite/p-e87980ac.entry.js +0 -5
|
@@ -152,7 +152,7 @@ const CSS_UTILITY = {
|
|
|
152
152
|
lightTheme,
|
|
153
153
|
rtl: "calcite--rtl"
|
|
154
154
|
};
|
|
155
|
-
const TEXT$
|
|
155
|
+
const TEXT$r = {
|
|
156
156
|
loading: "Loading"
|
|
157
157
|
};
|
|
158
158
|
|
|
@@ -463,7 +463,7 @@ const CSS$P = {
|
|
|
463
463
|
textContainer: "text-container",
|
|
464
464
|
textContainerVisible: "text-container--visible"
|
|
465
465
|
};
|
|
466
|
-
const TEXT$
|
|
466
|
+
const TEXT$q = {
|
|
467
467
|
loading: "Loading"
|
|
468
468
|
};
|
|
469
469
|
|
|
@@ -516,7 +516,7 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
516
516
|
/** string to override English loading text
|
|
517
517
|
* @default "Loading"
|
|
518
518
|
*/
|
|
519
|
-
this.intlLoading = TEXT$
|
|
519
|
+
this.intlLoading = TEXT$q.loading;
|
|
520
520
|
/**
|
|
521
521
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
522
522
|
*/
|
|
@@ -620,7 +620,7 @@ const SLOTS$o = {
|
|
|
620
620
|
menuActions: "menu-actions",
|
|
621
621
|
menuTooltip: "menu-tooltip"
|
|
622
622
|
};
|
|
623
|
-
const TEXT$
|
|
623
|
+
const TEXT$p = {
|
|
624
624
|
more: "More"
|
|
625
625
|
};
|
|
626
626
|
const ICONS$e = {
|
|
@@ -711,7 +711,7 @@ const SLOTS$n = {
|
|
|
711
711
|
bottomActions: "bottom-actions",
|
|
712
712
|
expandTooltip: "expand-tooltip"
|
|
713
713
|
};
|
|
714
|
-
const TEXT$
|
|
714
|
+
const TEXT$o = {
|
|
715
715
|
expand: "Expand",
|
|
716
716
|
collapse: "Collapse"
|
|
717
717
|
};
|
|
@@ -2162,8 +2162,8 @@ let CalciteActionBar$1 = class extends HTMLElement$1 {
|
|
|
2162
2162
|
renderBottomActionGroup() {
|
|
2163
2163
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2164
2164
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
2165
|
-
const expandLabel = intlExpand || TEXT$
|
|
2166
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2165
|
+
const expandLabel = intlExpand || TEXT$o.expand;
|
|
2166
|
+
const collapseLabel = intlCollapse || TEXT$o.collapse;
|
|
2167
2167
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2168
2168
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$n.bottomActions }), h("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
2169
2169
|
}
|
|
@@ -2228,7 +2228,7 @@ let CalciteActionGroup$1 = class extends HTMLElement$1 {
|
|
|
2228
2228
|
renderMenu() {
|
|
2229
2229
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
2230
2230
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
2231
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2231
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$p.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, h("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$p.trigger, text: intlMore || TEXT$p.more, textEnabled: expanded }), h("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
2232
2232
|
}
|
|
2233
2233
|
render() {
|
|
2234
2234
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -2527,7 +2527,7 @@ const CSS$M = {
|
|
|
2527
2527
|
actionGroupBottom: "action-group--bottom",
|
|
2528
2528
|
container: "container"
|
|
2529
2529
|
};
|
|
2530
|
-
const TEXT$
|
|
2530
|
+
const TEXT$n = {
|
|
2531
2531
|
expand: "Expand",
|
|
2532
2532
|
collapse: "Collapse"
|
|
2533
2533
|
};
|
|
@@ -2625,8 +2625,8 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2625
2625
|
renderBottomActionGroup() {
|
|
2626
2626
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2627
2627
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
2628
|
-
const expandLabel = intlExpand || TEXT$
|
|
2629
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2628
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
2629
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
2630
2630
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2631
2631
|
return expandToggleNode ? (h("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
2632
2632
|
}
|
|
@@ -2641,7 +2641,7 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2641
2641
|
static get style() { return calciteActionPadCss; }
|
|
2642
2642
|
};
|
|
2643
2643
|
|
|
2644
|
-
const TEXT$
|
|
2644
|
+
const TEXT$m = {
|
|
2645
2645
|
intlClose: "Close"
|
|
2646
2646
|
};
|
|
2647
2647
|
const DURATIONS = {
|
|
@@ -2690,7 +2690,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2690
2690
|
/** string to override English close text
|
|
2691
2691
|
* @default "Close"
|
|
2692
2692
|
*/
|
|
2693
|
-
this.intlClose = TEXT$
|
|
2693
|
+
this.intlClose = TEXT$m.intlClose;
|
|
2694
2694
|
/** specify the placement of the alert */
|
|
2695
2695
|
this.placement = "bottom";
|
|
2696
2696
|
/** specify the scale of the alert, defaults to m */
|
|
@@ -2708,6 +2708,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2708
2708
|
this.queued = false;
|
|
2709
2709
|
this.autoDismissTimeoutId = null;
|
|
2710
2710
|
this.trackTimer = Date.now();
|
|
2711
|
+
this.activeTransitionProp = "opacity";
|
|
2711
2712
|
/** close and emit the closed alert and the queue */
|
|
2712
2713
|
this.closeAlert = () => {
|
|
2713
2714
|
this.autoDismissTimeoutId = null;
|
|
@@ -2716,10 +2717,19 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2716
2717
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
2717
2718
|
this.determineActiveAlert();
|
|
2718
2719
|
this.calciteAlertSync.emit({ queue: this.queue });
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2720
|
+
};
|
|
2721
|
+
this.transitionEnd = (event) => {
|
|
2722
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
2723
|
+
this.active
|
|
2724
|
+
? this.calciteAlertOpen.emit({
|
|
2725
|
+
el: this.el,
|
|
2726
|
+
queue: this.queue
|
|
2727
|
+
})
|
|
2728
|
+
: this.calciteAlertClose.emit({
|
|
2729
|
+
el: this.el,
|
|
2730
|
+
queue: this.queue
|
|
2731
|
+
});
|
|
2732
|
+
}
|
|
2723
2733
|
};
|
|
2724
2734
|
}
|
|
2725
2735
|
watchActive() {
|
|
@@ -2770,7 +2780,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2770
2780
|
container: true,
|
|
2771
2781
|
queued,
|
|
2772
2782
|
[placement]: true
|
|
2773
|
-
} }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2783
|
+
}, onTransitionEnd: this.transitionEnd }, requestedIcon ? (h("div", { class: "alert-icon" }, h("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: "alert-content" }, h("slot", { name: SLOTS$l.title }), h("slot", { name: SLOTS$l.message }), h("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? h("div", { class: "alert-dismiss-progress" }) : null)));
|
|
2774
2784
|
}
|
|
2775
2785
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2776
2786
|
alertSync(event) {
|
|
@@ -2829,10 +2839,6 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2829
2839
|
openAlert() {
|
|
2830
2840
|
window.clearTimeout(this.queueTimeout);
|
|
2831
2841
|
this.queueTimeout = window.setTimeout(() => (this.queued = false), 300);
|
|
2832
|
-
this.calciteAlertOpen.emit({
|
|
2833
|
-
el: this.el,
|
|
2834
|
-
queue: this.queue
|
|
2835
|
-
});
|
|
2836
2842
|
}
|
|
2837
2843
|
get el() { return this; }
|
|
2838
2844
|
static get watchers() { return {
|
|
@@ -3103,7 +3109,7 @@ const CSS$L = {
|
|
|
3103
3109
|
invalid: "invalid",
|
|
3104
3110
|
loading: "loading"
|
|
3105
3111
|
};
|
|
3106
|
-
const TEXT$
|
|
3112
|
+
const TEXT$l = {
|
|
3107
3113
|
collapse: "Collapse",
|
|
3108
3114
|
expand: "Expand",
|
|
3109
3115
|
loading: "Loading",
|
|
@@ -3160,11 +3166,11 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3160
3166
|
/** string to override English loading text
|
|
3161
3167
|
* @default "Loading"
|
|
3162
3168
|
*/
|
|
3163
|
-
this.intlLoading = TEXT$
|
|
3169
|
+
this.intlLoading = TEXT$l.loading;
|
|
3164
3170
|
/** Text string used for the actions menu
|
|
3165
3171
|
* @default "Options"
|
|
3166
3172
|
*/
|
|
3167
|
-
this.intlOptions = TEXT$
|
|
3173
|
+
this.intlOptions = TEXT$l.options;
|
|
3168
3174
|
/**
|
|
3169
3175
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3170
3176
|
*/
|
|
@@ -3212,12 +3218,12 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3212
3218
|
}
|
|
3213
3219
|
render() {
|
|
3214
3220
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3215
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3221
|
+
const toggleLabel = open ? intlCollapse || TEXT$l.collapse : intlExpand || TEXT$l.expand;
|
|
3216
3222
|
const headerContent = (h("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
3217
3223
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
3218
3224
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
3219
3225
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3220
|
-
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
3226
|
+
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$l.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3221
3227
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
3222
3228
|
[CSS$L.article]: true
|
|
3223
3229
|
} }, headerNode, h("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -3238,7 +3244,7 @@ const CSS$K = {
|
|
|
3238
3244
|
statusIcon: "status-icon",
|
|
3239
3245
|
valid: "valid"
|
|
3240
3246
|
};
|
|
3241
|
-
const TEXT$
|
|
3247
|
+
const TEXT$k = {
|
|
3242
3248
|
collapse: "Collapse",
|
|
3243
3249
|
expand: "Expand"
|
|
3244
3250
|
};
|
|
@@ -3309,7 +3315,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3309
3315
|
: dir === "rtl"
|
|
3310
3316
|
? ICONS$b.menuClosedLeft
|
|
3311
3317
|
: ICONS$b.menuClosedRight;
|
|
3312
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3318
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
3313
3319
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-label": toggleLabel, class: {
|
|
3314
3320
|
[CSS$K.toggle]: true,
|
|
3315
3321
|
[CSS$K.toggleSwitch]: true
|
|
@@ -3363,7 +3369,7 @@ const CSS$J = {
|
|
|
3363
3369
|
iconStartEmpty: "icon-start-empty",
|
|
3364
3370
|
iconEndEmpty: "icon-end-empty"
|
|
3365
3371
|
};
|
|
3366
|
-
const TEXT$
|
|
3372
|
+
const TEXT$j = {
|
|
3367
3373
|
loading: "Loading"
|
|
3368
3374
|
};
|
|
3369
3375
|
|
|
@@ -3469,7 +3475,7 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3469
3475
|
/** string to override English loading text
|
|
3470
3476
|
* @default "Loading"
|
|
3471
3477
|
*/
|
|
3472
|
-
this.intlLoading = TEXT$
|
|
3478
|
+
this.intlLoading = TEXT$j.loading;
|
|
3473
3479
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
3474
3480
|
this.loading = false;
|
|
3475
3481
|
/** optionally add a round style to the button */
|
|
@@ -3607,7 +3613,7 @@ const SLOTS$j = {
|
|
|
3607
3613
|
footerLeading: "footer-leading",
|
|
3608
3614
|
footerTrailing: "footer-trailing"
|
|
3609
3615
|
};
|
|
3610
|
-
const TEXT$
|
|
3616
|
+
const TEXT$i = {
|
|
3611
3617
|
select: "Select",
|
|
3612
3618
|
deselect: "Deselect",
|
|
3613
3619
|
loading: "Loading"
|
|
@@ -3635,15 +3641,15 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3635
3641
|
/** string to override English loading text
|
|
3636
3642
|
* @default "Loading"
|
|
3637
3643
|
*/
|
|
3638
|
-
this.intlLoading = TEXT$
|
|
3644
|
+
this.intlLoading = TEXT$i.loading;
|
|
3639
3645
|
/** string to override English select text for checkbox when selectable is true
|
|
3640
3646
|
* @default "Select"
|
|
3641
3647
|
*/
|
|
3642
|
-
this.intlSelect = TEXT$
|
|
3648
|
+
this.intlSelect = TEXT$i.select;
|
|
3643
3649
|
/** string to override English deselect text for checkbox when selectable is true
|
|
3644
3650
|
* @default "Deselect"
|
|
3645
3651
|
*/
|
|
3646
|
-
this.intlDeselect = TEXT$
|
|
3652
|
+
this.intlDeselect = TEXT$i.deselect;
|
|
3647
3653
|
//--------------------------------------------------------------------------
|
|
3648
3654
|
//
|
|
3649
3655
|
// Private State/Props
|
|
@@ -3994,7 +4000,7 @@ const CSS$H = {
|
|
|
3994
4000
|
chipImageContainer: "chip-image-container",
|
|
3995
4001
|
calciteChipIcon: "calcite-chip--icon"
|
|
3996
4002
|
};
|
|
3997
|
-
const TEXT$
|
|
4003
|
+
const TEXT$h = {
|
|
3998
4004
|
close: "Close"
|
|
3999
4005
|
};
|
|
4000
4006
|
const SLOTS$i = {
|
|
@@ -4026,7 +4032,7 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4026
4032
|
/** Aria label for the "x" button
|
|
4027
4033
|
* @default "Close"
|
|
4028
4034
|
*/
|
|
4029
|
-
this.dismissLabel = TEXT$
|
|
4035
|
+
this.dismissLabel = TEXT$h.close;
|
|
4030
4036
|
/** flip the icon in rtl */
|
|
4031
4037
|
this.iconFlipRtl = false;
|
|
4032
4038
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -5942,6 +5948,21 @@ Color.prototype = {
|
|
|
5942
5948
|
return colorString.to.hex(this.rgb().round().color);
|
|
5943
5949
|
},
|
|
5944
5950
|
|
|
5951
|
+
hexa(value) {
|
|
5952
|
+
if (arguments.length > 0) {
|
|
5953
|
+
return new Color(value);
|
|
5954
|
+
}
|
|
5955
|
+
|
|
5956
|
+
const rgbArray = this.rgb().round().color;
|
|
5957
|
+
let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
|
|
5958
|
+
|
|
5959
|
+
if (alphaHex.length === 1) {
|
|
5960
|
+
alphaHex = '0' + alphaHex;
|
|
5961
|
+
}
|
|
5962
|
+
|
|
5963
|
+
return colorString.to.hex(rgbArray) + alphaHex;
|
|
5964
|
+
},
|
|
5965
|
+
|
|
5945
5966
|
rgbNumber() {
|
|
5946
5967
|
const rgb = this.rgb().color;
|
|
5947
5968
|
return (rgb[0] & 0xFF) << 16 | (rgb[1] & 0xFF) << 8 | rgb[2] & 0xFF;
|
|
@@ -6213,7 +6234,7 @@ const HSV_LIMITS = {
|
|
|
6213
6234
|
s: 100,
|
|
6214
6235
|
v: 100
|
|
6215
6236
|
};
|
|
6216
|
-
const TEXT$
|
|
6237
|
+
const TEXT$g = {
|
|
6217
6238
|
b: "B",
|
|
6218
6239
|
blue: "Blue",
|
|
6219
6240
|
deleteColor: "Delete color",
|
|
@@ -6336,80 +6357,80 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6336
6357
|
/** Label used for the blue channel
|
|
6337
6358
|
* @default "B"
|
|
6338
6359
|
*/
|
|
6339
|
-
this.intlB = TEXT$
|
|
6360
|
+
this.intlB = TEXT$g.b;
|
|
6340
6361
|
/** Label used for the blue channel description
|
|
6341
6362
|
* @default "Blue"
|
|
6342
6363
|
*/
|
|
6343
|
-
this.intlBlue = TEXT$
|
|
6364
|
+
this.intlBlue = TEXT$g.blue;
|
|
6344
6365
|
/** Label used for the delete color button.
|
|
6345
6366
|
* @default "Delete color"
|
|
6346
6367
|
*/
|
|
6347
|
-
this.intlDeleteColor = TEXT$
|
|
6368
|
+
this.intlDeleteColor = TEXT$g.deleteColor;
|
|
6348
6369
|
/** Label used for the green channel
|
|
6349
6370
|
* @default "G"
|
|
6350
6371
|
*/
|
|
6351
|
-
this.intlG = TEXT$
|
|
6372
|
+
this.intlG = TEXT$g.g;
|
|
6352
6373
|
/** Label used for the green channel description
|
|
6353
6374
|
* @default "Green"
|
|
6354
6375
|
*/
|
|
6355
|
-
this.intlGreen = TEXT$
|
|
6376
|
+
this.intlGreen = TEXT$g.green;
|
|
6356
6377
|
/** Label used for the hue channel
|
|
6357
6378
|
* @default "H"
|
|
6358
6379
|
*/
|
|
6359
|
-
this.intlH = TEXT$
|
|
6380
|
+
this.intlH = TEXT$g.h;
|
|
6360
6381
|
/** Label used for the HSV mode
|
|
6361
6382
|
* @default "HSV"
|
|
6362
6383
|
*/
|
|
6363
|
-
this.intlHsv = TEXT$
|
|
6384
|
+
this.intlHsv = TEXT$g.hsv;
|
|
6364
6385
|
/** Label used for the hex input
|
|
6365
6386
|
* @default "Hex"
|
|
6366
6387
|
*/
|
|
6367
|
-
this.intlHex = TEXT$
|
|
6388
|
+
this.intlHex = TEXT$g.hex;
|
|
6368
6389
|
/** Label used for the hue channel description
|
|
6369
6390
|
* @default "Hue"
|
|
6370
6391
|
*/
|
|
6371
|
-
this.intlHue = TEXT$
|
|
6392
|
+
this.intlHue = TEXT$g.hue;
|
|
6372
6393
|
/**
|
|
6373
6394
|
* Label used for the hex input when there is no color selected.
|
|
6374
6395
|
* @default "No color"
|
|
6375
6396
|
*/
|
|
6376
|
-
this.intlNoColor = TEXT$
|
|
6397
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
6377
6398
|
/** Label used for the red channel
|
|
6378
6399
|
* @default "R"
|
|
6379
6400
|
*/
|
|
6380
|
-
this.intlR = TEXT$
|
|
6401
|
+
this.intlR = TEXT$g.r;
|
|
6381
6402
|
/** Label used for the red channel description
|
|
6382
6403
|
* @default "Red"
|
|
6383
6404
|
*/
|
|
6384
|
-
this.intlRed = TEXT$
|
|
6405
|
+
this.intlRed = TEXT$g.red;
|
|
6385
6406
|
/** Label used for the RGB mode
|
|
6386
6407
|
* @default "RGB"
|
|
6387
6408
|
*/
|
|
6388
|
-
this.intlRgb = TEXT$
|
|
6409
|
+
this.intlRgb = TEXT$g.rgb;
|
|
6389
6410
|
/** Label used for the saturation channel
|
|
6390
6411
|
* @default "S"
|
|
6391
6412
|
*/
|
|
6392
|
-
this.intlS = TEXT$
|
|
6413
|
+
this.intlS = TEXT$g.s;
|
|
6393
6414
|
/** Label used for the saturation channel description
|
|
6394
6415
|
* @default "Saturation"
|
|
6395
6416
|
*/
|
|
6396
|
-
this.intlSaturation = TEXT$
|
|
6417
|
+
this.intlSaturation = TEXT$g.saturation;
|
|
6397
6418
|
/** Label used for the save color button.
|
|
6398
6419
|
* @default "Save color"
|
|
6399
6420
|
*/
|
|
6400
|
-
this.intlSaveColor = TEXT$
|
|
6421
|
+
this.intlSaveColor = TEXT$g.saveColor;
|
|
6401
6422
|
/** Label used for the saved colors section
|
|
6402
6423
|
* @default "Saved"
|
|
6403
6424
|
*/
|
|
6404
|
-
this.intlSaved = TEXT$
|
|
6425
|
+
this.intlSaved = TEXT$g.saved;
|
|
6405
6426
|
/** Label used for the value channel
|
|
6406
6427
|
* @default "V"
|
|
6407
6428
|
*/
|
|
6408
|
-
this.intlV = TEXT$
|
|
6429
|
+
this.intlV = TEXT$g.v;
|
|
6409
6430
|
/** Label used for the
|
|
6410
6431
|
* @default "Value"
|
|
6411
6432
|
*/
|
|
6412
|
-
this.intlValue = TEXT$
|
|
6433
|
+
this.intlValue = TEXT$g.value;
|
|
6413
6434
|
/**
|
|
6414
6435
|
* The scale of the color picker.
|
|
6415
6436
|
*/
|
|
@@ -7085,12 +7106,12 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7085
7106
|
* Label used for the hex input.
|
|
7086
7107
|
* @default "Hex"
|
|
7087
7108
|
*/
|
|
7088
|
-
this.intlHex = TEXT$
|
|
7109
|
+
this.intlHex = TEXT$g.hex;
|
|
7089
7110
|
/**
|
|
7090
7111
|
* Label used for the hex input when there is no color selected.
|
|
7091
7112
|
* @default "No color"
|
|
7092
7113
|
*/
|
|
7093
|
-
this.intlNoColor = TEXT$
|
|
7114
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
7094
7115
|
/**
|
|
7095
7116
|
* The component's scale.
|
|
7096
7117
|
*/
|
|
@@ -9165,6 +9186,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
9165
9186
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9166
9187
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
9167
9188
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
9189
|
+
const TEXT$f = {
|
|
9190
|
+
removeTag: "Remove tag"
|
|
9191
|
+
};
|
|
9168
9192
|
|
|
9169
9193
|
function getAncestors(element) {
|
|
9170
9194
|
var _a, _b;
|
|
@@ -9194,6 +9218,11 @@ function getDepth(element) {
|
|
|
9194
9218
|
const calciteComboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0px;margin-top:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0px;padding-bottom:0px;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{height:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.chip:last-of-type{-webkit-margin-end:0;margin-inline-end:0}.item{display:block}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
9195
9219
|
|
|
9196
9220
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
9221
|
+
const itemUidPrefix = "combobox-item-";
|
|
9222
|
+
const chipUidPrefix = "combobox-chip-";
|
|
9223
|
+
const labelUidPrefix = "combobox-label-";
|
|
9224
|
+
const listboxUidPrefix = "combobox-listbox-";
|
|
9225
|
+
const inputUidPrefix = "combobox-input-";
|
|
9197
9226
|
let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
9198
9227
|
constructor() {
|
|
9199
9228
|
super();
|
|
@@ -9234,6 +9263,10 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9234
9263
|
this.scale = "m";
|
|
9235
9264
|
/** The value(s) of the selectedItem(s) */
|
|
9236
9265
|
this.value = null;
|
|
9266
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
9267
|
+
* @default "Remove tag"
|
|
9268
|
+
*/
|
|
9269
|
+
this.intlRemoveTag = TEXT$f.removeTag;
|
|
9237
9270
|
//--------------------------------------------------------------------------
|
|
9238
9271
|
//
|
|
9239
9272
|
// Private State/Props
|
|
@@ -9743,7 +9776,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9743
9776
|
const item = document.createElement(ComboboxItem);
|
|
9744
9777
|
item.value = value;
|
|
9745
9778
|
item.textLabel = value;
|
|
9746
|
-
item.guid = guid()
|
|
9779
|
+
item.guid = `${chipUidPrefix}${guid()}`;
|
|
9747
9780
|
item.selected = true;
|
|
9748
9781
|
this.el.appendChild(item);
|
|
9749
9782
|
this.resetText();
|
|
@@ -9793,7 +9826,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9793
9826
|
focusChip() {
|
|
9794
9827
|
var _a;
|
|
9795
9828
|
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
9796
|
-
const chip = this.referenceEl.querySelector(
|
|
9829
|
+
const chip = this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`);
|
|
9797
9830
|
chip === null || chip === void 0 ? void 0 : chip.setFocus();
|
|
9798
9831
|
}
|
|
9799
9832
|
shiftActiveItemIndex(delta) {
|
|
@@ -9839,7 +9872,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9839
9872
|
//
|
|
9840
9873
|
//--------------------------------------------------------------------------
|
|
9841
9874
|
renderChips() {
|
|
9842
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
9875
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
9843
9876
|
return this.selectedItems.map((item, i) => {
|
|
9844
9877
|
const chipClasses = {
|
|
9845
9878
|
chip: true,
|
|
@@ -9848,11 +9881,11 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9848
9881
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
9849
9882
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
9850
9883
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
9851
|
-
return (h("calcite-chip", {
|
|
9884
|
+
return (h("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `${chipUidPrefix}${item.guid}`, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
|
|
9852
9885
|
});
|
|
9853
9886
|
}
|
|
9854
9887
|
renderInput() {
|
|
9855
|
-
const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
9888
|
+
const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
|
|
9856
9889
|
const single = selectionMode === "single";
|
|
9857
9890
|
const selectedItem = selectedItems[0];
|
|
9858
9891
|
const showLabel = !active && single && !!selectedItem;
|
|
@@ -9862,16 +9895,16 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9862
9895
|
} }, showLabel && (h("span", { class: {
|
|
9863
9896
|
label: true,
|
|
9864
9897
|
"label--spaced": needsIcon
|
|
9865
|
-
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": guid
|
|
9898
|
+
}, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
9866
9899
|
input: true,
|
|
9867
9900
|
"input--single": true,
|
|
9868
9901
|
"input--transparent": this.activeChipIndex > -1,
|
|
9869
9902
|
"input--hidden": showLabel,
|
|
9870
9903
|
"input--icon": single && needsIcon
|
|
9871
|
-
}, disabled: disabled, id: `${guid}
|
|
9904
|
+
}, 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" })));
|
|
9872
9905
|
}
|
|
9873
9906
|
renderListBoxOptions() {
|
|
9874
|
-
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid
|
|
9907
|
+
return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: `${itemUidPrefix}${item.guid}`, role: "option", tabindex: "-1" }, item.textLabel)));
|
|
9875
9908
|
}
|
|
9876
9909
|
renderPopperContainer() {
|
|
9877
9910
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
@@ -9897,12 +9930,11 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9897
9930
|
render() {
|
|
9898
9931
|
const { guid, open, label } = this;
|
|
9899
9932
|
const single = this.selectionMode === "single";
|
|
9900
|
-
|
|
9901
|
-
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": labelId, "aria-owns": guid, class: {
|
|
9933
|
+
return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
9902
9934
|
wrapper: true,
|
|
9903
9935
|
"wrapper--single": single || !this.selectedItems.length,
|
|
9904
9936
|
"wrapper--active": open
|
|
9905
|
-
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${guid}
|
|
9937
|
+
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), h(HiddenFormInputSlot, { component: this })));
|
|
9906
9938
|
}
|
|
9907
9939
|
get el() { return this; }
|
|
9908
9940
|
static get watchers() { return {
|
|
@@ -11338,7 +11370,7 @@ const SLOTS$h = {
|
|
|
11338
11370
|
dropdownTrigger: "dropdown-trigger"
|
|
11339
11371
|
};
|
|
11340
11372
|
|
|
11341
|
-
const calciteDropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{overflow-y:auto;background-color:var(--calcite-ui-foreground-1);
|
|
11373
|
+
const calciteDropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
|
|
11342
11374
|
|
|
11343
11375
|
let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
11344
11376
|
constructor() {
|
|
@@ -11394,6 +11426,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11394
11426
|
this.items = [];
|
|
11395
11427
|
this.activeTransitionProp = "visibility";
|
|
11396
11428
|
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
11429
|
+
this.resizeObserver = createObserver("resize", () => this.setMaxScrollerHeight());
|
|
11397
11430
|
//--------------------------------------------------------------------------
|
|
11398
11431
|
//
|
|
11399
11432
|
// Private Methods
|
|
@@ -11406,13 +11439,15 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11406
11439
|
this.reposition();
|
|
11407
11440
|
};
|
|
11408
11441
|
this.setMaxScrollerHeight = () => {
|
|
11409
|
-
const { scrollerEl } = this;
|
|
11410
|
-
if (scrollerEl) {
|
|
11411
|
-
|
|
11412
|
-
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
11442
|
+
const { active, scrollerEl } = this;
|
|
11443
|
+
if (!scrollerEl || !active) {
|
|
11444
|
+
return;
|
|
11413
11445
|
}
|
|
11446
|
+
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
11447
|
+
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
11414
11448
|
};
|
|
11415
11449
|
this.setScrollerEl = (scrollerEl) => {
|
|
11450
|
+
this.resizeObserver.observe(scrollerEl);
|
|
11416
11451
|
this.scrollerEl = scrollerEl;
|
|
11417
11452
|
};
|
|
11418
11453
|
this.transitionEnd = (event) => {
|
|
@@ -11468,6 +11503,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11468
11503
|
}
|
|
11469
11504
|
maxItemsHandler() {
|
|
11470
11505
|
this.reposition();
|
|
11506
|
+
this.setMaxScrollerHeight();
|
|
11471
11507
|
}
|
|
11472
11508
|
placementHandler() {
|
|
11473
11509
|
this.reposition();
|
|
@@ -11487,8 +11523,9 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11487
11523
|
this.reposition();
|
|
11488
11524
|
}
|
|
11489
11525
|
disconnectedCallback() {
|
|
11490
|
-
var _a;
|
|
11526
|
+
var _a, _b;
|
|
11491
11527
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
11528
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
11492
11529
|
this.destroyPopper();
|
|
11493
11530
|
}
|
|
11494
11531
|
render() {
|
|
@@ -11497,7 +11534,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11497
11534
|
["calcite-dropdown-content"]: true,
|
|
11498
11535
|
[CSS$D.animation]: true,
|
|
11499
11536
|
[CSS$D.animationActive]: active
|
|
11500
|
-
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("slot", null)))));
|
|
11537
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("div", { hidden: !this.active }, h("slot", null))))));
|
|
11501
11538
|
}
|
|
11502
11539
|
//--------------------------------------------------------------------------
|
|
11503
11540
|
//
|
|
@@ -11507,7 +11544,6 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11507
11544
|
/** Updates the position of the component. */
|
|
11508
11545
|
async reposition() {
|
|
11509
11546
|
const { popper, menuEl, placement } = this;
|
|
11510
|
-
this.setMaxScrollerHeight();
|
|
11511
11547
|
const modifiers = this.getModifiers();
|
|
11512
11548
|
popper
|
|
11513
11549
|
? await updatePopper({
|
|
@@ -12313,7 +12349,7 @@ function area({ data, min, max, t }) {
|
|
|
12313
12349
|
return `${commands} ${end} L ${maxX},${minY} Z`;
|
|
12314
12350
|
}
|
|
12315
12351
|
|
|
12316
|
-
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;
|
|
12352
|
+
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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;height:100%;width:100%;padding:0px}.svg .graph-path--highlight{fill:var(--calcite-ui-brand);opacity:0.5}";
|
|
12317
12353
|
|
|
12318
12354
|
let CalciteGraph$1 = class extends HTMLElement$1 {
|
|
12319
12355
|
constructor() {
|
|
@@ -12330,25 +12366,31 @@ let CalciteGraph$1 = class extends HTMLElement$1 {
|
|
|
12330
12366
|
* These data points should be sorted by x-axis value
|
|
12331
12367
|
*/
|
|
12332
12368
|
this.data = [];
|
|
12333
|
-
/** Width of graph in pixels*/
|
|
12334
|
-
this.width = 300;
|
|
12335
|
-
/** Width of graph in pixels*/
|
|
12336
|
-
this.height = 100;
|
|
12337
12369
|
//--------------------------------------------------------------------------
|
|
12338
12370
|
//
|
|
12339
12371
|
// Private State/Props
|
|
12340
12372
|
//
|
|
12341
12373
|
//--------------------------------------------------------------------------
|
|
12342
12374
|
this.graphId = `calcite-graph-${guid()}`;
|
|
12375
|
+
this.resizeObserver = createObserver("resize", () => forceUpdate(this));
|
|
12343
12376
|
}
|
|
12344
12377
|
//--------------------------------------------------------------------------
|
|
12345
12378
|
//
|
|
12346
12379
|
// Lifecycle
|
|
12347
12380
|
//
|
|
12348
12381
|
//--------------------------------------------------------------------------
|
|
12382
|
+
connectedCallback() {
|
|
12383
|
+
var _a;
|
|
12384
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
12385
|
+
}
|
|
12386
|
+
disconnectedCallback() {
|
|
12387
|
+
var _a;
|
|
12388
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
12389
|
+
}
|
|
12349
12390
|
render() {
|
|
12350
|
-
const { data, colorStops,
|
|
12391
|
+
const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
|
|
12351
12392
|
const id = this.graphId;
|
|
12393
|
+
const { clientHeight: height, clientWidth: width } = el;
|
|
12352
12394
|
// if we have no data, return empty svg
|
|
12353
12395
|
if (!data || data.length === 0) {
|
|
12354
12396
|
return (h("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }));
|
|
@@ -12655,8 +12697,8 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12655
12697
|
super();
|
|
12656
12698
|
this.__registerHost();
|
|
12657
12699
|
this.__attachShadow();
|
|
12658
|
-
this.
|
|
12659
|
-
this.
|
|
12700
|
+
this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
|
|
12701
|
+
this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
|
|
12660
12702
|
this.calciteInlineEditableEnableEditingChange = createEvent(this, "calciteInlineEditableEnableEditingChange", 7);
|
|
12661
12703
|
//--------------------------------------------------------------------------
|
|
12662
12704
|
//
|
|
@@ -12683,9 +12725,9 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12683
12725
|
* @default "Save"
|
|
12684
12726
|
*/
|
|
12685
12727
|
this.intlConfirmChanges = TEXT$c.intlConfirmChanges;
|
|
12686
|
-
this.transitionEnd = (
|
|
12728
|
+
this.transitionEnd = () => {
|
|
12687
12729
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
12688
|
-
this.
|
|
12730
|
+
this.calciteInlineEditableEditCancel.emit();
|
|
12689
12731
|
}
|
|
12690
12732
|
};
|
|
12691
12733
|
this.enableEditing = () => {
|
|
@@ -12737,7 +12779,7 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12737
12779
|
this.confirmChangesHandler = async (e) => {
|
|
12738
12780
|
e.preventDefault();
|
|
12739
12781
|
e.stopPropagation();
|
|
12740
|
-
this.
|
|
12782
|
+
this.calciteInlineEditableEditConfirm.emit();
|
|
12741
12783
|
try {
|
|
12742
12784
|
if (this.afterConfirm) {
|
|
12743
12785
|
this.loading = true;
|
|
@@ -12894,7 +12936,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12894
12936
|
* string to override English loading text
|
|
12895
12937
|
* @default "Loading"
|
|
12896
12938
|
*/
|
|
12897
|
-
this.intlLoading = TEXT$
|
|
12939
|
+
this.intlLoading = TEXT$r.loading;
|
|
12898
12940
|
/** flip the icon in rtl */
|
|
12899
12941
|
this.iconFlipRtl = false;
|
|
12900
12942
|
/** specify if the input is in loading state */
|
|
@@ -13069,6 +13111,9 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13069
13111
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
13070
13112
|
const valueNudgeDelayInMs = 100;
|
|
13071
13113
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
13114
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
13115
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
13116
|
+
}
|
|
13072
13117
|
let firstValueNudge = true;
|
|
13073
13118
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
13074
13119
|
if (firstValueNudge) {
|
|
@@ -16522,7 +16567,7 @@ const CSS$f = {
|
|
|
16522
16567
|
container: "container"
|
|
16523
16568
|
};
|
|
16524
16569
|
|
|
16525
|
-
const calciteRadioButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-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)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([disabled]){cursor:pointer}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([hovered][disabled]) .radio{-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)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
16570
|
+
const calciteRadioButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-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)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([disabled]){cursor:pointer}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([hovered][disabled]) .radio{-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)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}@media (forced-colors: active){:host([checked]) .radio::after,:host([checked][disabled]) .radio::after{content:\"\";width:1rem;height:1rem;background-color:windowText;display:block}}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
16526
16571
|
|
|
16527
16572
|
let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
16528
16573
|
constructor() {
|
|
@@ -17833,7 +17878,7 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17833
17878
|
static get style() { return calciteShellPanelCss; }
|
|
17834
17879
|
};
|
|
17835
17880
|
|
|
17836
|
-
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3)}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
17881
|
+
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
17837
17882
|
|
|
17838
17883
|
let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
17839
17884
|
constructor() {
|
|
@@ -18090,7 +18135,7 @@ let CalciteSlider$1 = class extends HTMLElement$1 {
|
|
|
18090
18135
|
histogramLabeledPreciseHandle, h(HiddenFormInputSlot, { component: this })))));
|
|
18091
18136
|
}
|
|
18092
18137
|
renderGraph() {
|
|
18093
|
-
return this.histogram ? (h("
|
|
18138
|
+
return this.histogram ? (h("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;
|
|
18094
18139
|
}
|
|
18095
18140
|
renderTickLabel(tick) {
|
|
18096
18141
|
const isMinTickLabel = tick === this.min;
|
|
@@ -25176,7 +25221,7 @@ const CalciteChip = /*@__PURE__*/proxyCustomElement(CalciteChip$1, [1,"calcite-c
|
|
|
25176
25221
|
const CalciteColorPicker = /*@__PURE__*/proxyCustomElement(CalciteColorPicker$1, [1,"calcite-color-picker",{"allowEmpty":[4,"allow-empty"],"appearance":[513],"color":[1040],"format":[1],"hideHex":[4,"hide-hex"],"hideChannels":[4,"hide-channels"],"hideSaved":[4,"hide-saved"],"intlB":[1,"intl-b"],"intlBlue":[1,"intl-blue"],"intlDeleteColor":[1,"intl-delete-color"],"intlG":[1,"intl-g"],"intlGreen":[1,"intl-green"],"intlH":[1,"intl-h"],"intlHsv":[1,"intl-hsv"],"intlHex":[1,"intl-hex"],"intlHue":[1,"intl-hue"],"intlNoColor":[1,"intl-no-color"],"intlR":[1,"intl-r"],"intlRed":[1,"intl-red"],"intlRgb":[1,"intl-rgb"],"intlS":[1,"intl-s"],"intlSaturation":[1,"intl-saturation"],"intlSaveColor":[1,"intl-save-color"],"intlSaved":[1,"intl-saved"],"intlV":[1,"intl-v"],"intlValue":[1,"intl-value"],"scale":[513],"storageId":[1,"storage-id"],"value":[1025],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]);
|
|
25177
25222
|
const CalciteColorPickerHexInput = /*@__PURE__*/proxyCustomElement(CalciteColorPickerHexInput$1, [1,"calcite-color-picker-hex-input",{"allowEmpty":[4,"allow-empty"],"intlHex":[1,"intl-hex"],"intlNoColor":[1,"intl-no-color"],"scale":[513],"value":[1537],"internalColor":[32]},[[2,"keydown","onInputKeyDown"]]]);
|
|
25178
25223
|
const CalciteColorPickerSwatch = /*@__PURE__*/proxyCustomElement(CalciteColorPickerSwatch$1, [1,"calcite-color-picker-swatch",{"active":[516],"color":[1],"scale":[513]}]);
|
|
25179
|
-
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
25224
|
+
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"intlRemoveTag":[1,"intl-remove-tag"],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
25180
25225
|
const CalciteComboboxItem = /*@__PURE__*/proxyCustomElement(CalciteComboboxItem$1, [1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[4],"ancestors":[1040],"guid":[1],"icon":[1],"textLabel":[513,"text-label"],"value":[8],"constant":[516]}]);
|
|
25181
25226
|
const CalciteComboboxItemGroup = /*@__PURE__*/proxyCustomElement(CalciteComboboxItemGroup$1, [1,"calcite-combobox-item-group",{"ancestors":[1040],"label":[1]}]);
|
|
25182
25227
|
const CalciteDatePicker = /*@__PURE__*/proxyCustomElement(CalciteDatePicker$1, [1,"calcite-date-picker",{"activeRange":[1,"active-range"],"value":[1025],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"range":[516],"start":[1025],"end":[1025],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"activeDate":[32],"activeStartDate":[32],"activeEndDate":[32],"localeData":[32],"hoverRange":[32]}]);
|
|
@@ -25189,7 +25234,7 @@ const CalciteDropdownItem = /*@__PURE__*/proxyCustomElement(CalciteDropdownItem$
|
|
|
25189
25234
|
const CalciteFab = /*@__PURE__*/proxyCustomElement(CalciteFab$1, [1,"calcite-fab",{"appearance":[513],"color":[513],"disabled":[516],"icon":[1],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
25190
25235
|
const CalciteFilter = /*@__PURE__*/proxyCustomElement(CalciteFilter$1, [1,"calcite-filter",{"items":[1040],"disabled":[516],"filteredItems":[1040],"intlClear":[1,"intl-clear"],"intlLabel":[1,"intl-label"],"placeholder":[1],"value":[1025]}]);
|
|
25191
25236
|
const CalciteFlow = /*@__PURE__*/proxyCustomElement(CalciteFlow$1, [1,"calcite-flow",{"panelCount":[32],"flowDirection":[32],"panels":[32]},[[0,"calcitePanelBackClick","handleCalcitePanelBackClick"]]]);
|
|
25192
|
-
const CalciteGraph = /*@__PURE__*/proxyCustomElement(CalciteGraph$1, [1,"calcite-graph",{"data":[16],"colorStops":[16],"
|
|
25237
|
+
const CalciteGraph = /*@__PURE__*/proxyCustomElement(CalciteGraph$1, [1,"calcite-graph",{"data":[16],"colorStops":[16],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"],"min":[2],"max":[2]}]);
|
|
25193
25238
|
const CalciteHandle = /*@__PURE__*/proxyCustomElement(CalciteHandle$1, [1,"calcite-handle",{"activated":[1540],"textTitle":[513,"text-title"]}]);
|
|
25194
25239
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(CalciteIcon$1, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
25195
25240
|
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(CalciteInlineEditable$1, [1,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"intlEnableEditing":[513,"intl-enable-editing"],"intlCancelEditing":[513,"intl-cancel-editing"],"intlConfirmChanges":[513,"intl-confirm-changes"],"scale":[1537],"afterConfirm":[16]},[[0,"calciteInputBlur","blurHandler"]]]);
|