@esri/calcite-components 1.0.0-next.307 → 1.0.0-next.310
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-0f014648.entry.js +5 -0
- package/dist/calcite/p-0fa1ba75.entry.js +5 -0
- package/dist/calcite/p-362cb320.entry.js +5 -0
- package/dist/calcite/p-688f06b9.entry.js +5 -0
- package/dist/calcite/p-8e252799.system.js +1 -1
- package/dist/calcite/p-a46c3870.system.entry.js +5 -0
- package/dist/calcite/{p-243d95ab.system.entry.js → p-a5e8f022.system.entry.js} +2 -2
- package/dist/calcite/p-ca6025ab.system.entry.js +5 -0
- package/dist/calcite/p-f1e111f4.system.entry.js +5 -0
- package/dist/cjs/calcite-alert.cjs.entry.js +22 -5
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +19 -11
- package/dist/cjs/calcite-input.cjs.entry.js +21 -19
- package/dist/cjs/calcite-shell_3.cjs.entry.js +156 -5
- 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 +23 -4
- package/dist/collection/components/calcite-input/calcite-input.css +2 -0
- package/dist/collection/components/calcite-input/calcite-input.js +20 -18
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +43 -0
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +194 -5
- package/dist/collection/components/calcite-shell-panel/resources.js +5 -1
- package/dist/components/calcite-alert.js +22 -5
- package/dist/components/calcite-color-picker-swatch2.js +19 -11
- package/dist/components/calcite-input2.js +21 -19
- package/dist/components/calcite-shell-panel.js +161 -7
- package/dist/custom-elements/index.js +311 -134
- package/dist/esm/calcite-alert.entry.js +22 -5
- package/dist/esm/calcite-color-picker_3.entry.js +19 -11
- package/dist/esm/calcite-input.entry.js +21 -19
- package/dist/esm/calcite-shell_3.entry.js +157 -6
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.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 +40 -1
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +3 -0
- package/dist/types/components/calcite-input/calcite-input.d.ts +1 -1
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +31 -0
- package/dist/types/components/calcite-shell-panel/resources.d.ts +4 -0
- package/dist/types/components.d.ts +18 -0
- package/hydrate/index.js +315 -135
- package/package.json +6 -6
- package/readme.md +2 -2
- package/dist/calcite/p-5c0c29bc.entry.js +0 -5
- package/dist/calcite/p-5f817b79.entry.js +0 -5
- package/dist/calcite/p-737fb960.entry.js +0 -5
- package/dist/calcite/p-7cbc72b6.system.entry.js +0 -5
- package/dist/calcite/p-88b875d3.system.entry.js +0 -5
- package/dist/calcite/p-aa47308a.entry.js +0 -5
- package/dist/calcite/p-b1a96c72.system.entry.js +0 -5
|
@@ -180,7 +180,7 @@ const CSS_UTILITY = {
|
|
|
180
180
|
lightTheme,
|
|
181
181
|
rtl: "calcite--rtl"
|
|
182
182
|
};
|
|
183
|
-
const TEXT$
|
|
183
|
+
const TEXT$q = {
|
|
184
184
|
loading: "Loading"
|
|
185
185
|
};
|
|
186
186
|
|
|
@@ -461,7 +461,7 @@ const CSS$O = {
|
|
|
461
461
|
textContainer: "text-container",
|
|
462
462
|
textContainerVisible: "text-container--visible"
|
|
463
463
|
};
|
|
464
|
-
const TEXT$
|
|
464
|
+
const TEXT$p = {
|
|
465
465
|
loading: "Loading"
|
|
466
466
|
};
|
|
467
467
|
|
|
@@ -514,7 +514,7 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
514
514
|
/** string to override English loading text
|
|
515
515
|
* @default "Loading"
|
|
516
516
|
*/
|
|
517
|
-
this.intlLoading = TEXT$
|
|
517
|
+
this.intlLoading = TEXT$p.loading;
|
|
518
518
|
/**
|
|
519
519
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
520
520
|
*/
|
|
@@ -618,7 +618,7 @@ const SLOTS$o = {
|
|
|
618
618
|
menuActions: "menu-actions",
|
|
619
619
|
menuTooltip: "menu-tooltip"
|
|
620
620
|
};
|
|
621
|
-
const TEXT$
|
|
621
|
+
const TEXT$o = {
|
|
622
622
|
more: "More"
|
|
623
623
|
};
|
|
624
624
|
const ICONS$e = {
|
|
@@ -709,7 +709,7 @@ const SLOTS$n = {
|
|
|
709
709
|
bottomActions: "bottom-actions",
|
|
710
710
|
expandTooltip: "expand-tooltip"
|
|
711
711
|
};
|
|
712
|
-
const TEXT$
|
|
712
|
+
const TEXT$n = {
|
|
713
713
|
expand: "Expand",
|
|
714
714
|
collapse: "Collapse"
|
|
715
715
|
};
|
|
@@ -2136,8 +2136,8 @@ let CalciteActionBar$1 = class extends HTMLElement$1 {
|
|
|
2136
2136
|
renderBottomActionGroup() {
|
|
2137
2137
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2138
2138
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
2139
|
-
const expandLabel = intlExpand || TEXT$
|
|
2140
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2139
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
2140
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
2141
2141
|
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;
|
|
2142
2142
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$n.bottomActions }), h("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
2143
2143
|
}
|
|
@@ -2202,7 +2202,7 @@ let CalciteActionGroup$1 = class extends HTMLElement$1 {
|
|
|
2202
2202
|
renderMenu() {
|
|
2203
2203
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
2204
2204
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
2205
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2205
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$o.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$o.more, textEnabled: expanded }), h("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
2206
2206
|
}
|
|
2207
2207
|
render() {
|
|
2208
2208
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -2501,7 +2501,7 @@ const CSS$L = {
|
|
|
2501
2501
|
actionGroupBottom: "action-group--bottom",
|
|
2502
2502
|
container: "container"
|
|
2503
2503
|
};
|
|
2504
|
-
const TEXT$
|
|
2504
|
+
const TEXT$m = {
|
|
2505
2505
|
expand: "Expand",
|
|
2506
2506
|
collapse: "Collapse"
|
|
2507
2507
|
};
|
|
@@ -2599,8 +2599,8 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2599
2599
|
renderBottomActionGroup() {
|
|
2600
2600
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2601
2601
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
2602
|
-
const expandLabel = intlExpand || TEXT$
|
|
2603
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2602
|
+
const expandLabel = intlExpand || TEXT$m.expand;
|
|
2603
|
+
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
2604
2604
|
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;
|
|
2605
2605
|
return expandToggleNode ? (h("calcite-action-group", { class: CSS$L.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
2606
2606
|
}
|
|
@@ -2620,7 +2620,7 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2620
2620
|
static get style() { return calciteActionPadCss; }
|
|
2621
2621
|
};
|
|
2622
2622
|
|
|
2623
|
-
const TEXT$
|
|
2623
|
+
const TEXT$l = {
|
|
2624
2624
|
intlClose: "Close"
|
|
2625
2625
|
};
|
|
2626
2626
|
const DURATIONS = {
|
|
@@ -2669,7 +2669,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2669
2669
|
/** string to override English close text
|
|
2670
2670
|
* @default "Close"
|
|
2671
2671
|
*/
|
|
2672
|
-
this.intlClose = TEXT$
|
|
2672
|
+
this.intlClose = TEXT$l.intlClose;
|
|
2673
2673
|
/** specify the scale of the button, defaults to m */
|
|
2674
2674
|
this.scale = "m";
|
|
2675
2675
|
//--------------------------------------------------------------------------
|
|
@@ -2683,8 +2683,13 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2683
2683
|
this.queueLength = 0;
|
|
2684
2684
|
/** is the alert queued */
|
|
2685
2685
|
this.queued = false;
|
|
2686
|
+
this.autoDismissTimeout = null;
|
|
2687
|
+
this.trackTimer = new Date();
|
|
2686
2688
|
/** close and emit the closed alert and the queue */
|
|
2687
2689
|
this.closeAlert = () => {
|
|
2690
|
+
if (this.autoDismissTimeout) {
|
|
2691
|
+
this.autoDismissTimeout = null;
|
|
2692
|
+
}
|
|
2688
2693
|
this.queued = false;
|
|
2689
2694
|
this.active = false;
|
|
2690
2695
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
@@ -2708,6 +2713,12 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2708
2713
|
updateRequestedIcon() {
|
|
2709
2714
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
2710
2715
|
}
|
|
2716
|
+
updateDuration(newDuration, prevDuration) {
|
|
2717
|
+
if (this.autoDismiss && prevDuration !== newDuration && this.autoDismissTimeout) {
|
|
2718
|
+
window.clearTimeout(this.autoDismissTimeout);
|
|
2719
|
+
this.autoDismissTimeout = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (new Date().valueOf() - this.trackTimer.valueOf()));
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2711
2722
|
//--------------------------------------------------------------------------
|
|
2712
2723
|
//
|
|
2713
2724
|
// Lifecycle
|
|
@@ -2724,20 +2735,25 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2724
2735
|
componentDidLoad() {
|
|
2725
2736
|
this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
|
|
2726
2737
|
}
|
|
2738
|
+
disconnectedCallback() {
|
|
2739
|
+
if (this.autoDismissTimeout) {
|
|
2740
|
+
window.clearTimeout(this.autoDismissTimeout);
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2727
2743
|
render() {
|
|
2728
2744
|
const dir = getElementDir(this.el);
|
|
2729
2745
|
const closeButton = (h("button", { "aria-label": this.intlClose, class: "alert-close", onClick: this.closeAlert, ref: (el) => (this.closeButton = el), type: "button" }, h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
2730
2746
|
const queueText = `+${this.queueLength > 2 ? this.queueLength - 1 : 1}`;
|
|
2731
2747
|
const queueCount = (h("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, h("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
2732
2748
|
const { active, autoDismiss, label, queued, requestedIcon } = this;
|
|
2733
|
-
const
|
|
2749
|
+
const progressBar = h("div", { class: "alert-dismiss-progress" });
|
|
2734
2750
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
2735
2751
|
const hidden = !active;
|
|
2736
2752
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, h("div", { class: {
|
|
2737
2753
|
container: true,
|
|
2738
2754
|
queued,
|
|
2739
2755
|
[CSS_UTILITY.rtl]: dir === "rtl"
|
|
2740
|
-
} }, 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 ?
|
|
2756
|
+
} }, 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 ? progressBar : null)));
|
|
2741
2757
|
}
|
|
2742
2758
|
// when an alert is opened or closed, update queue and determine active alert
|
|
2743
2759
|
alertSync(event) {
|
|
@@ -2783,8 +2799,8 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2783
2799
|
var _a;
|
|
2784
2800
|
if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
|
|
2785
2801
|
this.openAlert();
|
|
2786
|
-
|
|
2787
|
-
|
|
2802
|
+
if (this.autoDismiss && !this.autoDismissTimeout) {
|
|
2803
|
+
this.trackTimer = new Date();
|
|
2788
2804
|
this.autoDismissTimeout = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
|
|
2789
2805
|
}
|
|
2790
2806
|
}
|
|
@@ -2805,7 +2821,8 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2805
2821
|
static get watchers() { return {
|
|
2806
2822
|
"active": ["watchActive"],
|
|
2807
2823
|
"icon": ["updateRequestedIcon"],
|
|
2808
|
-
"color": ["updateRequestedIcon"]
|
|
2824
|
+
"color": ["updateRequestedIcon"],
|
|
2825
|
+
"autoDismissDuration": ["updateDuration"]
|
|
2809
2826
|
}; }
|
|
2810
2827
|
static get style() { return calciteAlertCss; }
|
|
2811
2828
|
};
|
|
@@ -3070,7 +3087,7 @@ const CSS$K = {
|
|
|
3070
3087
|
invalid: "invalid",
|
|
3071
3088
|
loading: "loading"
|
|
3072
3089
|
};
|
|
3073
|
-
const TEXT$
|
|
3090
|
+
const TEXT$k = {
|
|
3074
3091
|
collapse: "Collapse",
|
|
3075
3092
|
expand: "Expand",
|
|
3076
3093
|
loading: "Loading",
|
|
@@ -3127,11 +3144,11 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3127
3144
|
/** string to override English loading text
|
|
3128
3145
|
* @default "Loading"
|
|
3129
3146
|
*/
|
|
3130
|
-
this.intlLoading = TEXT$
|
|
3147
|
+
this.intlLoading = TEXT$k.loading;
|
|
3131
3148
|
/** Text string used for the actions menu
|
|
3132
3149
|
* @default "Options"
|
|
3133
3150
|
*/
|
|
3134
|
-
this.intlOptions = TEXT$
|
|
3151
|
+
this.intlOptions = TEXT$k.options;
|
|
3135
3152
|
/**
|
|
3136
3153
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3137
3154
|
*/
|
|
@@ -3175,12 +3192,12 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3175
3192
|
}
|
|
3176
3193
|
render() {
|
|
3177
3194
|
const { collapsible, disabled, el, heading, intlCollapse, intlExpand, loading, open, summary, intlLoading, headingLevel } = this;
|
|
3178
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3195
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
3179
3196
|
const headerContent = (h("header", { class: CSS$K.header }, this.renderIcon(), h("div", { class: CSS$K.title }, h(CalciteHeading, { class: CSS$K.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? h("div", { class: CSS$K.summary }, summary) : null)));
|
|
3180
3197
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
3181
3198
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
3182
3199
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3183
|
-
const headerNode = (h("div", { class: CSS$K.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$K.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$K.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$K.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
3200
|
+
const headerNode = (h("div", { class: CSS$K.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$K.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$K.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$K.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$k.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3184
3201
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
3185
3202
|
[CSS$K.article]: true
|
|
3186
3203
|
} }, headerNode, h("div", { class: CSS$K.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -3201,7 +3218,7 @@ const CSS$J = {
|
|
|
3201
3218
|
statusIcon: "status-icon",
|
|
3202
3219
|
valid: "valid"
|
|
3203
3220
|
};
|
|
3204
|
-
const TEXT$
|
|
3221
|
+
const TEXT$j = {
|
|
3205
3222
|
collapse: "Collapse",
|
|
3206
3223
|
expand: "Expand"
|
|
3207
3224
|
};
|
|
@@ -3272,7 +3289,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3272
3289
|
: dir === "rtl"
|
|
3273
3290
|
? ICONS$b.menuClosedLeft
|
|
3274
3291
|
: ICONS$b.menuClosedRight;
|
|
3275
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3292
|
+
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
3276
3293
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-label": toggleLabel, class: {
|
|
3277
3294
|
[CSS$J.toggle]: true,
|
|
3278
3295
|
[CSS$J.toggleSwitch]: true
|
|
@@ -3324,7 +3341,7 @@ const CSS$I = {
|
|
|
3324
3341
|
loadingIn: "loading-in",
|
|
3325
3342
|
loadingOut: "loading-out"
|
|
3326
3343
|
};
|
|
3327
|
-
const TEXT$
|
|
3344
|
+
const TEXT$i = {
|
|
3328
3345
|
loading: "Loading"
|
|
3329
3346
|
};
|
|
3330
3347
|
|
|
@@ -3427,7 +3444,7 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3427
3444
|
/** string to override English loading text
|
|
3428
3445
|
* @default "Loading"
|
|
3429
3446
|
*/
|
|
3430
|
-
this.intlLoading = TEXT$
|
|
3447
|
+
this.intlLoading = TEXT$i.loading;
|
|
3431
3448
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
3432
3449
|
this.loading = false;
|
|
3433
3450
|
/** optionally add a round style to the button */
|
|
@@ -3562,7 +3579,7 @@ const SLOTS$j = {
|
|
|
3562
3579
|
footerLeading: "footer-leading",
|
|
3563
3580
|
footerTrailing: "footer-trailing"
|
|
3564
3581
|
};
|
|
3565
|
-
const TEXT$
|
|
3582
|
+
const TEXT$h = {
|
|
3566
3583
|
select: "Select",
|
|
3567
3584
|
deselect: "Deselect",
|
|
3568
3585
|
loading: "Loading"
|
|
@@ -3590,15 +3607,15 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3590
3607
|
/** string to override English loading text
|
|
3591
3608
|
* @default "Loading"
|
|
3592
3609
|
*/
|
|
3593
|
-
this.intlLoading = TEXT$
|
|
3610
|
+
this.intlLoading = TEXT$h.loading;
|
|
3594
3611
|
/** string to override English select text for checkbox when selectable is true
|
|
3595
3612
|
* @default "Select"
|
|
3596
3613
|
*/
|
|
3597
|
-
this.intlSelect = TEXT$
|
|
3614
|
+
this.intlSelect = TEXT$h.select;
|
|
3598
3615
|
/** string to override English deselect text for checkbox when selectable is true
|
|
3599
3616
|
* @default "Deselect"
|
|
3600
3617
|
*/
|
|
3601
|
-
this.intlDeselect = TEXT$
|
|
3618
|
+
this.intlDeselect = TEXT$h.deselect;
|
|
3602
3619
|
//--------------------------------------------------------------------------
|
|
3603
3620
|
//
|
|
3604
3621
|
// Private State/Props
|
|
@@ -3950,7 +3967,7 @@ const CSS$G = {
|
|
|
3950
3967
|
chipImageContainer: "chip-image-container",
|
|
3951
3968
|
calciteChipIcon: "calcite-chip--icon"
|
|
3952
3969
|
};
|
|
3953
|
-
const TEXT$
|
|
3970
|
+
const TEXT$g = {
|
|
3954
3971
|
close: "Close"
|
|
3955
3972
|
};
|
|
3956
3973
|
const SLOTS$i = {
|
|
@@ -3982,7 +3999,7 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
3982
3999
|
/** Aria label for the "x" button
|
|
3983
4000
|
* @default "Close"
|
|
3984
4001
|
*/
|
|
3985
|
-
this.dismissLabel = TEXT$
|
|
4002
|
+
this.dismissLabel = TEXT$g.close;
|
|
3986
4003
|
/** flip the icon in rtl */
|
|
3987
4004
|
this.iconFlipRtl = false;
|
|
3988
4005
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -4238,12 +4255,13 @@ var colorString = createCommonjsModule(function (module) {
|
|
|
4238
4255
|
/* MIT license */
|
|
4239
4256
|
|
|
4240
4257
|
|
|
4258
|
+
var hasOwnProperty = Object.hasOwnProperty;
|
|
4241
4259
|
|
|
4242
4260
|
var reverseNames = {};
|
|
4243
4261
|
|
|
4244
4262
|
// create a list of reverse color names
|
|
4245
4263
|
for (var name in colorName$1) {
|
|
4246
|
-
if (colorName$1
|
|
4264
|
+
if (hasOwnProperty.call(colorName$1, name)) {
|
|
4247
4265
|
reverseNames[colorName$1[name]] = name;
|
|
4248
4266
|
}
|
|
4249
4267
|
}
|
|
@@ -4286,9 +4304,9 @@ cs.get.rgb = function (string) {
|
|
|
4286
4304
|
|
|
4287
4305
|
var abbr = /^#([a-f0-9]{3,4})$/i;
|
|
4288
4306
|
var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
|
|
4289
|
-
var rgba = /^rgba?\(\s*([+-]?\d+)\s
|
|
4290
|
-
var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s
|
|
4291
|
-
var keyword =
|
|
4307
|
+
var rgba = /^rgba?\(\s*([+-]?\d+)\s*,?\s*([+-]?\d+)\s*,?\s*([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
|
4308
|
+
var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
|
4309
|
+
var keyword = /^(\w+)$/;
|
|
4292
4310
|
|
|
4293
4311
|
var rgb = [0, 0, 0, 1];
|
|
4294
4312
|
var match;
|
|
@@ -4325,7 +4343,11 @@ cs.get.rgb = function (string) {
|
|
|
4325
4343
|
}
|
|
4326
4344
|
|
|
4327
4345
|
if (match[4]) {
|
|
4328
|
-
|
|
4346
|
+
if (match[5]) {
|
|
4347
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
|
4348
|
+
} else {
|
|
4349
|
+
rgb[3] = parseFloat(match[4]);
|
|
4350
|
+
}
|
|
4329
4351
|
}
|
|
4330
4352
|
} else if (match = string.match(per)) {
|
|
4331
4353
|
for (i = 0; i < 3; i++) {
|
|
@@ -4333,19 +4355,22 @@ cs.get.rgb = function (string) {
|
|
|
4333
4355
|
}
|
|
4334
4356
|
|
|
4335
4357
|
if (match[4]) {
|
|
4336
|
-
|
|
4358
|
+
if (match[5]) {
|
|
4359
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
|
4360
|
+
} else {
|
|
4361
|
+
rgb[3] = parseFloat(match[4]);
|
|
4362
|
+
}
|
|
4337
4363
|
}
|
|
4338
4364
|
} else if (match = string.match(keyword)) {
|
|
4339
4365
|
if (match[1] === 'transparent') {
|
|
4340
4366
|
return [0, 0, 0, 0];
|
|
4341
4367
|
}
|
|
4342
4368
|
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
if (!rgb) {
|
|
4369
|
+
if (!hasOwnProperty.call(colorName$1, match[1])) {
|
|
4346
4370
|
return null;
|
|
4347
4371
|
}
|
|
4348
4372
|
|
|
4373
|
+
rgb = colorName$1[match[1]];
|
|
4349
4374
|
rgb[3] = 1;
|
|
4350
4375
|
|
|
4351
4376
|
return rgb;
|
|
@@ -4371,7 +4396,7 @@ cs.get.hsl = function (string) {
|
|
|
4371
4396
|
|
|
4372
4397
|
if (match) {
|
|
4373
4398
|
var alpha = parseFloat(match[4]);
|
|
4374
|
-
var h = (parseFloat(match[1]) + 360) % 360;
|
|
4399
|
+
var h = ((parseFloat(match[1]) % 360) + 360) % 360;
|
|
4375
4400
|
var s = clamp(parseFloat(match[2]), 0, 100);
|
|
4376
4401
|
var l = clamp(parseFloat(match[3]), 0, 100);
|
|
4377
4402
|
var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
|
@@ -4466,7 +4491,7 @@ function clamp(num, min, max) {
|
|
|
4466
4491
|
}
|
|
4467
4492
|
|
|
4468
4493
|
function hexDouble(num) {
|
|
4469
|
-
var str = num.toString(16).toUpperCase();
|
|
4494
|
+
var str = Math.round(num).toString(16).toUpperCase();
|
|
4470
4495
|
return (str.length < 2) ? '0' + str : str;
|
|
4471
4496
|
}
|
|
4472
4497
|
});
|
|
@@ -6162,7 +6187,7 @@ const HSV_LIMITS = {
|
|
|
6162
6187
|
s: 100,
|
|
6163
6188
|
v: 100
|
|
6164
6189
|
};
|
|
6165
|
-
const TEXT$
|
|
6190
|
+
const TEXT$f = {
|
|
6166
6191
|
b: "B",
|
|
6167
6192
|
blue: "Blue",
|
|
6168
6193
|
deleteColor: "Delete color",
|
|
@@ -6285,80 +6310,80 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6285
6310
|
/** Label used for the blue channel
|
|
6286
6311
|
* @default "B"
|
|
6287
6312
|
*/
|
|
6288
|
-
this.intlB = TEXT$
|
|
6313
|
+
this.intlB = TEXT$f.b;
|
|
6289
6314
|
/** Label used for the blue channel description
|
|
6290
6315
|
* @default "Blue"
|
|
6291
6316
|
*/
|
|
6292
|
-
this.intlBlue = TEXT$
|
|
6317
|
+
this.intlBlue = TEXT$f.blue;
|
|
6293
6318
|
/** Label used for the delete color button.
|
|
6294
6319
|
* @default "Delete color"
|
|
6295
6320
|
*/
|
|
6296
|
-
this.intlDeleteColor = TEXT$
|
|
6321
|
+
this.intlDeleteColor = TEXT$f.deleteColor;
|
|
6297
6322
|
/** Label used for the green channel
|
|
6298
6323
|
* @default "G"
|
|
6299
6324
|
*/
|
|
6300
|
-
this.intlG = TEXT$
|
|
6325
|
+
this.intlG = TEXT$f.g;
|
|
6301
6326
|
/** Label used for the green channel description
|
|
6302
6327
|
* @default "Green"
|
|
6303
6328
|
*/
|
|
6304
|
-
this.intlGreen = TEXT$
|
|
6329
|
+
this.intlGreen = TEXT$f.green;
|
|
6305
6330
|
/** Label used for the hue channel
|
|
6306
6331
|
* @default "H"
|
|
6307
6332
|
*/
|
|
6308
|
-
this.intlH = TEXT$
|
|
6333
|
+
this.intlH = TEXT$f.h;
|
|
6309
6334
|
/** Label used for the HSV mode
|
|
6310
6335
|
* @default "HSV"
|
|
6311
6336
|
*/
|
|
6312
|
-
this.intlHsv = TEXT$
|
|
6337
|
+
this.intlHsv = TEXT$f.hsv;
|
|
6313
6338
|
/** Label used for the hex input
|
|
6314
6339
|
* @default "Hex"
|
|
6315
6340
|
*/
|
|
6316
|
-
this.intlHex = TEXT$
|
|
6341
|
+
this.intlHex = TEXT$f.hex;
|
|
6317
6342
|
/** Label used for the hue channel description
|
|
6318
6343
|
* @default "Hue"
|
|
6319
6344
|
*/
|
|
6320
|
-
this.intlHue = TEXT$
|
|
6345
|
+
this.intlHue = TEXT$f.hue;
|
|
6321
6346
|
/**
|
|
6322
6347
|
* Label used for the hex input when there is no color selected.
|
|
6323
6348
|
* @default "No color"
|
|
6324
6349
|
*/
|
|
6325
|
-
this.intlNoColor = TEXT$
|
|
6350
|
+
this.intlNoColor = TEXT$f.noColor;
|
|
6326
6351
|
/** Label used for the red channel
|
|
6327
6352
|
* @default "R"
|
|
6328
6353
|
*/
|
|
6329
|
-
this.intlR = TEXT$
|
|
6354
|
+
this.intlR = TEXT$f.r;
|
|
6330
6355
|
/** Label used for the red channel description
|
|
6331
6356
|
* @default "Red"
|
|
6332
6357
|
*/
|
|
6333
|
-
this.intlRed = TEXT$
|
|
6358
|
+
this.intlRed = TEXT$f.red;
|
|
6334
6359
|
/** Label used for the RGB mode
|
|
6335
6360
|
* @default "RGB"
|
|
6336
6361
|
*/
|
|
6337
|
-
this.intlRgb = TEXT$
|
|
6362
|
+
this.intlRgb = TEXT$f.rgb;
|
|
6338
6363
|
/** Label used for the saturation channel
|
|
6339
6364
|
* @default "S"
|
|
6340
6365
|
*/
|
|
6341
|
-
this.intlS = TEXT$
|
|
6366
|
+
this.intlS = TEXT$f.s;
|
|
6342
6367
|
/** Label used for the saturation channel description
|
|
6343
6368
|
* @default "Saturation"
|
|
6344
6369
|
*/
|
|
6345
|
-
this.intlSaturation = TEXT$
|
|
6370
|
+
this.intlSaturation = TEXT$f.saturation;
|
|
6346
6371
|
/** Label used for the save color button.
|
|
6347
6372
|
* @default "Save color"
|
|
6348
6373
|
*/
|
|
6349
|
-
this.intlSaveColor = TEXT$
|
|
6374
|
+
this.intlSaveColor = TEXT$f.saveColor;
|
|
6350
6375
|
/** Label used for the saved colors section
|
|
6351
6376
|
* @default "Saved"
|
|
6352
6377
|
*/
|
|
6353
|
-
this.intlSaved = TEXT$
|
|
6378
|
+
this.intlSaved = TEXT$f.saved;
|
|
6354
6379
|
/** Label used for the value channel
|
|
6355
6380
|
* @default "V"
|
|
6356
6381
|
*/
|
|
6357
|
-
this.intlV = TEXT$
|
|
6382
|
+
this.intlV = TEXT$f.v;
|
|
6358
6383
|
/** Label used for the
|
|
6359
6384
|
* @default "Value"
|
|
6360
6385
|
*/
|
|
6361
|
-
this.intlValue = TEXT$
|
|
6386
|
+
this.intlValue = TEXT$f.value;
|
|
6362
6387
|
/**
|
|
6363
6388
|
* The scale of the color picker.
|
|
6364
6389
|
*/
|
|
@@ -7036,12 +7061,12 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7036
7061
|
* Label used for the hex input.
|
|
7037
7062
|
* @default "Hex"
|
|
7038
7063
|
*/
|
|
7039
|
-
this.intlHex = TEXT$
|
|
7064
|
+
this.intlHex = TEXT$f.hex;
|
|
7040
7065
|
/**
|
|
7041
7066
|
* Label used for the hex input when there is no color selected.
|
|
7042
7067
|
* @default "No color"
|
|
7043
7068
|
*/
|
|
7044
|
-
this.intlNoColor = TEXT$
|
|
7069
|
+
this.intlNoColor = TEXT$f.noColor;
|
|
7045
7070
|
/**
|
|
7046
7071
|
* The component's scale.
|
|
7047
7072
|
*/
|
|
@@ -7530,7 +7555,7 @@ function contains(parent, child) {
|
|
|
7530
7555
|
return false;
|
|
7531
7556
|
}
|
|
7532
7557
|
|
|
7533
|
-
function getComputedStyle(element) {
|
|
7558
|
+
function getComputedStyle$1(element) {
|
|
7534
7559
|
return getWindow(element).getComputedStyle(element);
|
|
7535
7560
|
}
|
|
7536
7561
|
|
|
@@ -7563,7 +7588,7 @@ function getParentNode(element) {
|
|
|
7563
7588
|
|
|
7564
7589
|
function getTrueOffsetParent(element) {
|
|
7565
7590
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
7566
|
-
getComputedStyle(element).position === 'fixed') {
|
|
7591
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
7567
7592
|
return null;
|
|
7568
7593
|
}
|
|
7569
7594
|
|
|
@@ -7578,7 +7603,7 @@ function getContainingBlock(element) {
|
|
|
7578
7603
|
|
|
7579
7604
|
if (isIE && isHTMLElement(element)) {
|
|
7580
7605
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
7581
|
-
var elementCss = getComputedStyle(element);
|
|
7606
|
+
var elementCss = getComputedStyle$1(element);
|
|
7582
7607
|
|
|
7583
7608
|
if (elementCss.position === 'fixed') {
|
|
7584
7609
|
return null;
|
|
@@ -7588,7 +7613,7 @@ function getContainingBlock(element) {
|
|
|
7588
7613
|
var currentNode = getParentNode(element);
|
|
7589
7614
|
|
|
7590
7615
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
7591
|
-
var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
7616
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
7592
7617
|
// create a containing block.
|
|
7593
7618
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
7594
7619
|
|
|
@@ -7608,11 +7633,11 @@ function getOffsetParent(element) {
|
|
|
7608
7633
|
var window = getWindow(element);
|
|
7609
7634
|
var offsetParent = getTrueOffsetParent(element);
|
|
7610
7635
|
|
|
7611
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
7636
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
7612
7637
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
7613
7638
|
}
|
|
7614
7639
|
|
|
7615
|
-
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
|
|
7640
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
7616
7641
|
return window;
|
|
7617
7642
|
}
|
|
7618
7643
|
|
|
@@ -7790,7 +7815,7 @@ function mapToStyles(_ref2) {
|
|
|
7790
7815
|
if (offsetParent === getWindow(popper)) {
|
|
7791
7816
|
offsetParent = getDocumentElement(popper);
|
|
7792
7817
|
|
|
7793
|
-
if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
|
|
7818
|
+
if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
|
|
7794
7819
|
heightProp = 'scrollHeight';
|
|
7795
7820
|
widthProp = 'scrollWidth';
|
|
7796
7821
|
}
|
|
@@ -8019,7 +8044,7 @@ function getDocumentRect(element) {
|
|
|
8019
8044
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
8020
8045
|
var y = -winScroll.scrollTop;
|
|
8021
8046
|
|
|
8022
|
-
if (getComputedStyle(body || html).direction === 'rtl') {
|
|
8047
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
8023
8048
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
8024
8049
|
}
|
|
8025
8050
|
|
|
@@ -8033,7 +8058,7 @@ function getDocumentRect(element) {
|
|
|
8033
8058
|
|
|
8034
8059
|
function isScrollParent(element) {
|
|
8035
8060
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
8036
|
-
var _getComputedStyle = getComputedStyle(element),
|
|
8061
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
8037
8062
|
overflow = _getComputedStyle.overflow,
|
|
8038
8063
|
overflowX = _getComputedStyle.overflowX,
|
|
8039
8064
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -8108,7 +8133,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
8108
8133
|
|
|
8109
8134
|
function getClippingParents(element) {
|
|
8110
8135
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
8111
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
|
|
8136
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
8112
8137
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
8113
8138
|
|
|
8114
8139
|
if (!isElement(clipperElement)) {
|
|
@@ -10334,7 +10359,7 @@ function getDaysDiff(date1, date2) {
|
|
|
10334
10359
|
}
|
|
10335
10360
|
|
|
10336
10361
|
const HEADING_LEVEL$6 = 2;
|
|
10337
|
-
const TEXT$
|
|
10362
|
+
const TEXT$e = {
|
|
10338
10363
|
nextMonth: "Next month",
|
|
10339
10364
|
prevMonth: "Previous month"
|
|
10340
10365
|
};
|
|
@@ -10351,11 +10376,11 @@ let CalciteDatePicker$1 = class extends HTMLElement$1 {
|
|
|
10351
10376
|
/** Localized string for "previous month" (used for aria label)
|
|
10352
10377
|
* @default "Previous month"
|
|
10353
10378
|
*/
|
|
10354
|
-
this.intlPrevMonth = TEXT$
|
|
10379
|
+
this.intlPrevMonth = TEXT$e.prevMonth;
|
|
10355
10380
|
/** Localized string for "next month" (used for aria label)
|
|
10356
10381
|
* @default "Next month"
|
|
10357
10382
|
*/
|
|
10358
|
-
this.intlNextMonth = TEXT$
|
|
10383
|
+
this.intlNextMonth = TEXT$e.nextMonth;
|
|
10359
10384
|
/** BCP 47 language tag for desired language and country format */
|
|
10360
10385
|
this.locale = document.documentElement.lang || "en";
|
|
10361
10386
|
/** specify the scale of the date picker */
|
|
@@ -11845,7 +11870,7 @@ const CSS$w = {
|
|
|
11845
11870
|
searchIcon: "search-icon",
|
|
11846
11871
|
clearButton: "clear-button"
|
|
11847
11872
|
};
|
|
11848
|
-
const TEXT$
|
|
11873
|
+
const TEXT$d = {
|
|
11849
11874
|
filterLabel: "Filter",
|
|
11850
11875
|
clear: "Clear filter"
|
|
11851
11876
|
};
|
|
@@ -11961,9 +11986,9 @@ let CalciteFilter$1 = class extends HTMLElement$1 {
|
|
|
11961
11986
|
render() {
|
|
11962
11987
|
const rtl = getElementDir(this.el) === "rtl";
|
|
11963
11988
|
const { disabled } = this;
|
|
11964
|
-
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$w.container }, h("label", { class: rtl ? CSS_UTILITY.rtl : null }, h("calcite-input", { "aria-label": this.intlLabel || TEXT$
|
|
11989
|
+
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$w.container }, h("label", { class: rtl ? CSS_UTILITY.rtl : null }, h("calcite-input", { "aria-label": this.intlLabel || TEXT$d.filterLabel, class: rtl ? CSS_UTILITY.rtl : null, disabled: this.disabled, icon: ICONS$8.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
11965
11990
|
this.textInput = el;
|
|
11966
|
-
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$
|
|
11991
|
+
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$w.clearButton, onClick: this.clear }, h("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
11967
11992
|
}
|
|
11968
11993
|
get el() { return this; }
|
|
11969
11994
|
static get watchers() { return {
|
|
@@ -12512,7 +12537,7 @@ const CSS$s = {
|
|
|
12512
12537
|
enableEditingButton: "enable-editing-button",
|
|
12513
12538
|
controlsWrapper: "controls-wrapper"
|
|
12514
12539
|
};
|
|
12515
|
-
const TEXT$
|
|
12540
|
+
const TEXT$c = {
|
|
12516
12541
|
intlEnablingEditing: "Click to edit",
|
|
12517
12542
|
intlCancelEditing: "Cancel",
|
|
12518
12543
|
intlConfirmChanges: "Save"
|
|
@@ -12544,15 +12569,15 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12544
12569
|
/** specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`
|
|
12545
12570
|
* @default "Click to edit"
|
|
12546
12571
|
*/
|
|
12547
|
-
this.intlEnableEditing = TEXT$
|
|
12572
|
+
this.intlEnableEditing = TEXT$c.intlEnablingEditing;
|
|
12548
12573
|
/** specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
12549
12574
|
* @default "Cancel"
|
|
12550
12575
|
*/
|
|
12551
|
-
this.intlCancelEditing = TEXT$
|
|
12576
|
+
this.intlCancelEditing = TEXT$c.intlCancelEditing;
|
|
12552
12577
|
/** specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
12553
12578
|
* @default "Save"
|
|
12554
12579
|
*/
|
|
12555
|
-
this.intlConfirmChanges = TEXT$
|
|
12580
|
+
this.intlConfirmChanges = TEXT$c.intlConfirmChanges;
|
|
12556
12581
|
this.transitionEnd = (event) => {
|
|
12557
12582
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
12558
12583
|
this.calciteInlineEditableEditingCancel.emit(event);
|
|
@@ -12730,7 +12755,7 @@ const SLOTS$g = {
|
|
|
12730
12755
|
action: "action"
|
|
12731
12756
|
};
|
|
12732
12757
|
|
|
12733
|
-
const calciteInputCss = "@-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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{font-size:var(--calcite-font-size--2);line-height:1rem;padding:0.5rem;height:1.5rem}:host([scale=s]) textarea{height:1.5rem;min-height:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) input[type=file]{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=s]) textarea{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;height:auto}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{font-size:var(--calcite-font-size--1);line-height:1rem;padding:0.75rem;height:2rem}:host([scale=m]) textarea{min-height:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) input[type=file]{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=m]) textarea{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;height:auto}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding:1rem;height:2.75rem}:host([scale=l]) textarea{min-height:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) input[type=file]{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([scale=l]) textarea{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;height:auto}:host([disabled]){pointer-events:none}:host([disabled]) .wrapper{pointer-events:none;--text-opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) button,:host([disabled]) textarea,:host([disabled]) input{pointer-events:none}:host([disabled]) textarea{resize:none}:host textarea,:host input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;width:100%;border-radius:0;position:relative;max-height:100%;max-width:100%;margin:0;font-weight:var(--calcite-font-weight-normal);font-family:inherit;-ms-flex:1 1 0%;flex:1 1 0%;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{color:var(--calcite-ui-text-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder,:host textarea::placeholder,:host textarea:-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input:focus,:host textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly],:host textarea[readonly]{background-color:var(--calcite-ui-background)}:host input[readonly]:focus,:host textarea[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host textarea,:host input{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}:host textarea:focus,:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{left:0.5rem}:host([scale=s]) .calcite--rtl .icon{left:unset;right:0.5rem}:host([scale=m]) .icon{left:0.75rem}:host([scale=m]) .calcite--rtl .icon{left:unset;right:0.75rem}:host([scale=l]) .icon{left:1rem}:host([scale=l]) .calcite--rtl .icon{left:unset;right:1rem}:host([icon][scale=s]) input{padding-left:2rem}:host([icon][scale=s]) .calcite--rtl input{padding-right:2rem;padding-left:0.5rem}:host([icon][scale=m]) input{padding-left:2.5rem}:host([icon][scale=m]) .calcite--rtl input{padding-right:2.5rem;padding-left:0.5rem}:host([icon][scale=l]) input{padding-left:3rem}:host([icon][scale=l]) .calcite--rtl input{padding-right:3rem;padding-left:0.5rem}.element-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 0%;flex:1 1 0%;position:relative;-ms-flex-order:3;order:3}.icon{display:block;position:absolute;pointer-events:none;z-index:10;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;width:0;height:0}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;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;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-ms-flex-order:4;order:4;margin:0}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.calcite--rtl .clear-button{border-left-color:var(--calcite-ui-border-input);border-width:1px;border-right-width:0}.loader{top:1px;left:1px;right:1px;display:block;pointer-events:none;position:absolute}.action-wrapper{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}.prefix,.suffix{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:var(--calcite-font-weight-medium);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1;word-wrap:break-word;overflow-wrap:break-word}.prefix{-ms-flex-order:2;order:2;border-right-width:0}.suffix{-ms-flex-order:5;order:5;border-left-width:0}.calcite--rtl .prefix{border-right-width:1px;border-left-width:0}.calcite--rtl .suffix{border-left-width:1px;border-right-width:0}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:left}:host([alignment=start]) .calcite--rtl textarea,:host([alignment=start]) .calcite--rtl input{text-align:right}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:right}:host([alignment=end]) .calcite--rtl textarea,:host([alignment=end]) .calcite--rtl input{text-align:left}:host input[type=number]{-moz-appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;-ms-flex-order:6;order:6;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-left-width:0;border-color:var(--calcite-ui-border-input)}.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=up]{border-width:1px;border-right-width:0;border-color:var(--calcite-ui-border-input)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down],:host([number-button-type=vertical]) .calcite--rtl .number-button-item[data-adjustment=down]{border-top-width:0}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;padding-top:0;padding-bottom:0;padding-left:0.5rem;padding-right:0.5rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin:0}.number-button-item calcite-icon{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}:host([number-button-type=vertical]) .calcite--rtl .number-button-item{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;position:relative}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;right:0;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.resize-icon-wrapper{display:none}}.resize-icon-wrapper{bottom:2px;right:2px;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:10;pointer-events:none;width:0.75rem;height:0.75rem}.resize-icon-wrapper calcite-icon{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl textarea::-webkit-resizer{right:unset;left:0}.calcite--rtl .resize-icon-wrapper{left:2px;right:unset}.calcite--rtl .resize-icon-wrapper calcite-icon{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);text-align:center}:host([type=file][scale=s]) input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}:host([type=file][scale=m]) input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}:host([type=file][scale=l]) input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}:host(.no-bottom-border) input{border-bottom-width:0}:host(.border-t-color-1) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;background-color:transparent}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::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}";
|
|
12758
|
+
const calciteInputCss = "@-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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{font-size:var(--calcite-font-size--2);line-height:1rem;padding:0.5rem;height:1.5rem}:host([scale=s]) textarea{height:1.5rem;min-height:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) input[type=file]{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=s]) textarea{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;height:auto}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{font-size:var(--calcite-font-size--1);line-height:1rem;padding:0.75rem;height:2rem}:host([scale=m]) textarea{min-height:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) input[type=file]{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=m]) textarea{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;height:auto}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding:1rem;height:2.75rem}:host([scale=l]) textarea{min-height:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) input[type=file]{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([scale=l]) textarea{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;height:auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .wrapper{pointer-events:none;--text-opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) button,:host([disabled]) textarea,:host([disabled]) input{pointer-events:none}:host([disabled]) textarea{resize:none}:host textarea,:host input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;width:100%;border-radius:0;position:relative;max-height:100%;max-width:100%;margin:0;font-weight:var(--calcite-font-weight-normal);font-family:inherit;-ms-flex:1 1 0%;flex:1 1 0%;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{color:var(--calcite-ui-text-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder,:host textarea::placeholder,:host textarea:-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input:focus,:host textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly],:host textarea[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus,:host textarea[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host textarea,:host input{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}:host textarea:focus,:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{left:0.5rem}:host([scale=s]) .calcite--rtl .icon{left:unset;right:0.5rem}:host([scale=m]) .icon{left:0.75rem}:host([scale=m]) .calcite--rtl .icon{left:unset;right:0.75rem}:host([scale=l]) .icon{left:1rem}:host([scale=l]) .calcite--rtl .icon{left:unset;right:1rem}:host([icon][scale=s]) input{padding-left:2rem}:host([icon][scale=s]) .calcite--rtl input{padding-right:2rem;padding-left:0.5rem}:host([icon][scale=m]) input{padding-left:2.5rem}:host([icon][scale=m]) .calcite--rtl input{padding-right:2.5rem;padding-left:0.5rem}:host([icon][scale=l]) input{padding-left:3rem}:host([icon][scale=l]) .calcite--rtl input{padding-right:3rem;padding-left:0.5rem}.element-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 0%;flex:1 1 0%;position:relative;-ms-flex-order:3;order:3}.icon{display:block;position:absolute;pointer-events:none;z-index:10;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;width:0;height:0}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;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;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-ms-flex-order:4;order:4;margin:0}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.calcite--rtl .clear-button{border-left-color:var(--calcite-ui-border-input);border-width:1px;border-right-width:0}.loader{top:1px;left:1px;right:1px;display:block;pointer-events:none;position:absolute}.action-wrapper{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}.prefix,.suffix{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:var(--calcite-font-weight-medium);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1;word-wrap:break-word;overflow-wrap:break-word}.prefix{-ms-flex-order:2;order:2;border-right-width:0}.suffix{-ms-flex-order:5;order:5;border-left-width:0}.calcite--rtl .prefix{border-right-width:1px;border-left-width:0}.calcite--rtl .suffix{border-left-width:1px;border-right-width:0}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:left}:host([alignment=start]) .calcite--rtl textarea,:host([alignment=start]) .calcite--rtl input{text-align:right}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:right}:host([alignment=end]) .calcite--rtl textarea,:host([alignment=end]) .calcite--rtl input{text-align:left}:host input[type=number]{-moz-appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;-ms-flex-order:6;order:6;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-left-width:0;border-color:var(--calcite-ui-border-input)}.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=up]{border-width:1px;border-right-width:0;border-color:var(--calcite-ui-border-input)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down],:host([number-button-type=vertical]) .calcite--rtl .number-button-item[data-adjustment=down]{border-top-width:0}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;padding-top:0;padding-bottom:0;padding-left:0.5rem;padding-right:0.5rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin:0}.number-button-item calcite-icon{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}:host([number-button-type=vertical]) .calcite--rtl .number-button-item{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;position:relative}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;right:0;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.resize-icon-wrapper{display:none}}.resize-icon-wrapper{bottom:2px;right:2px;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:10;pointer-events:none;width:0.75rem;height:0.75rem}.resize-icon-wrapper calcite-icon{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl textarea::-webkit-resizer{right:unset;left:0}.calcite--rtl .resize-icon-wrapper{left:2px;right:unset}.calcite--rtl .resize-icon-wrapper calcite-icon{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);text-align:center}:host([type=file][scale=s]) input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}:host([type=file][scale=m]) input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}:host([type=file][scale=l]) input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}:host(.no-bottom-border) input{border-bottom-width:0}:host(.border-t-color-1) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;background-color:transparent}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::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}";
|
|
12734
12759
|
|
|
12735
12760
|
let CalciteInput$1 = class extends HTMLElement$1 {
|
|
12736
12761
|
constructor() {
|
|
@@ -12764,7 +12789,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12764
12789
|
* string to override English loading text
|
|
12765
12790
|
* @default "Loading"
|
|
12766
12791
|
*/
|
|
12767
|
-
this.intlLoading = TEXT$
|
|
12792
|
+
this.intlLoading = TEXT$q.loading;
|
|
12768
12793
|
/** flip the icon in rtl */
|
|
12769
12794
|
this.iconFlipRtl = false;
|
|
12770
12795
|
/** specify if the input is in loading state */
|
|
@@ -12922,12 +12947,13 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12922
12947
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
12923
12948
|
const valueNudgeDelayInMs = 100;
|
|
12924
12949
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
12925
|
-
let
|
|
12950
|
+
let firstValueNudge = true;
|
|
12926
12951
|
this.nudgeNumberValueIntervalId = setInterval(() => {
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
|
|
12952
|
+
if (firstValueNudge) {
|
|
12953
|
+
firstValueNudge = false;
|
|
12954
|
+
return;
|
|
12955
|
+
}
|
|
12956
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
12931
12957
|
}, valueNudgeDelayInMs);
|
|
12932
12958
|
};
|
|
12933
12959
|
this.numberButtonMouseUpAndMouseOutHandler = () => {
|
|
@@ -13072,17 +13098,18 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13072
13098
|
this.setFocus();
|
|
13073
13099
|
}
|
|
13074
13100
|
incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
|
|
13075
|
-
const value = this
|
|
13101
|
+
const { value } = this;
|
|
13076
13102
|
const inputStep = this.step === "any" ? 1 : Math.abs(this.step || 1);
|
|
13077
13103
|
const inputVal = value && value !== "" ? parseFloat(value) : 0;
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13104
|
+
const adjustment = direction === "up" ? 1 : -1;
|
|
13105
|
+
const nudgedValue = inputVal + inputStep * adjustment;
|
|
13106
|
+
const finalValue = (typeof inputMin === "number" && !isNaN(inputMin) && nudgedValue < inputMin) ||
|
|
13107
|
+
(typeof inputMax === "number" && !isNaN(inputMax) && nudgedValue > inputMax)
|
|
13108
|
+
? inputVal
|
|
13109
|
+
: nudgedValue;
|
|
13110
|
+
const inputValPlaces = decimalPlaces(inputVal);
|
|
13111
|
+
const inputStepPlaces = decimalPlaces(inputStep);
|
|
13112
|
+
this.setValue(finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces)), nativeEvent, true);
|
|
13086
13113
|
}
|
|
13087
13114
|
onFormReset() {
|
|
13088
13115
|
this.setValue(this.defaultValue);
|
|
@@ -13138,7 +13165,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13138
13165
|
const numberButtonsVertical = (h("div", { class: CSS$r.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
13139
13166
|
const prefixText = h("div", { class: CSS$r.prefix }, this.prefixText);
|
|
13140
13167
|
const suffixText = h("div", { class: CSS$r.suffix }, this.suffixText);
|
|
13141
|
-
const localeNumberInput = this.type === "number" ? (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef,
|
|
13168
|
+
const localeNumberInput = this.type === "number" ? (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, type: "text", value: this.localizedValue })) : null;
|
|
13142
13169
|
const childEl = this.type !== "number"
|
|
13143
13170
|
? [
|
|
13144
13171
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
@@ -13148,11 +13175,11 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13148
13175
|
this.isTextarea ? (h("div", { class: CSS$r.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
13149
13176
|
]
|
|
13150
13177
|
: null;
|
|
13151
|
-
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$r.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, dir: dir }, this.type === "number" && this.numberButtonType === "horizontal"
|
|
13178
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$r.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, dir: dir }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
13152
13179
|
? numberButtonsHorizontalDown
|
|
13153
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$r.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$r.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical"
|
|
13180
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$r.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$r.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
13154
13181
|
? numberButtonsVertical
|
|
13155
|
-
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal"
|
|
13182
|
+
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
13156
13183
|
? numberButtonsHorizontalUp
|
|
13157
13184
|
: null, h(HiddenFormInputSlot, { component: this }))));
|
|
13158
13185
|
}
|
|
@@ -13194,11 +13221,11 @@ let CalciteInputDatePicker$1 = class extends HTMLElement$1 {
|
|
|
13194
13221
|
/** Localized string for "previous month" (used for aria label)
|
|
13195
13222
|
* @default "Previous month"
|
|
13196
13223
|
*/
|
|
13197
|
-
this.intlPrevMonth = TEXT$
|
|
13224
|
+
this.intlPrevMonth = TEXT$e.prevMonth;
|
|
13198
13225
|
/** Localized string for "next month" (used for aria label)
|
|
13199
13226
|
* @default "Next month"
|
|
13200
13227
|
*/
|
|
13201
|
-
this.intlNextMonth = TEXT$
|
|
13228
|
+
this.intlNextMonth = TEXT$e.nextMonth;
|
|
13202
13229
|
/** BCP 47 language tag for desired language and country format */
|
|
13203
13230
|
this.locale = document.documentElement.lang || "en";
|
|
13204
13231
|
/** specify the scale of the date picker */
|
|
@@ -14381,7 +14408,7 @@ const SLOTS$e = {
|
|
|
14381
14408
|
secondary: "secondary",
|
|
14382
14409
|
primary: "primary"
|
|
14383
14410
|
};
|
|
14384
|
-
const TEXT$
|
|
14411
|
+
const TEXT$b = {
|
|
14385
14412
|
close: "Close"
|
|
14386
14413
|
};
|
|
14387
14414
|
|
|
@@ -14414,7 +14441,7 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14414
14441
|
/** Disables the closing of the Modal when clicked outside. */
|
|
14415
14442
|
this.disableOutsideClose = false;
|
|
14416
14443
|
/** Aria label for the close button */
|
|
14417
|
-
this.intlClose = TEXT$
|
|
14444
|
+
this.intlClose = TEXT$b.close;
|
|
14418
14445
|
/** Flag to disable the default close on escape behavior */
|
|
14419
14446
|
this.disableEscape = false;
|
|
14420
14447
|
/** specify the scale of modal, defaults to m */
|
|
@@ -14612,7 +14639,7 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14612
14639
|
static get style() { return calciteModalCss; }
|
|
14613
14640
|
};
|
|
14614
14641
|
|
|
14615
|
-
const TEXT$
|
|
14642
|
+
const TEXT$a = {
|
|
14616
14643
|
close: "Close"
|
|
14617
14644
|
};
|
|
14618
14645
|
const SLOTS$d = {
|
|
@@ -14652,7 +14679,7 @@ let CalciteNotice$1 = class extends HTMLElement$1 {
|
|
|
14652
14679
|
/** String for the close button.
|
|
14653
14680
|
* @default "Close"
|
|
14654
14681
|
*/
|
|
14655
|
-
this.intlClose = TEXT$
|
|
14682
|
+
this.intlClose = TEXT$a.close;
|
|
14656
14683
|
/** specify the scale of the notice, defaults to m */
|
|
14657
14684
|
this.scale = "m";
|
|
14658
14685
|
/** specify the width of the notice, defaults to auto */
|
|
@@ -14838,7 +14865,7 @@ const CSS$k = {
|
|
|
14838
14865
|
ellipsisStart: "ellipsis--start",
|
|
14839
14866
|
ellipsisEnd: "ellipsis--end"
|
|
14840
14867
|
};
|
|
14841
|
-
const TEXT$
|
|
14868
|
+
const TEXT$9 = {
|
|
14842
14869
|
nextLabel: "Next",
|
|
14843
14870
|
previousLabel: "Previous"
|
|
14844
14871
|
};
|
|
@@ -14867,11 +14894,11 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
14867
14894
|
/** Used as an accessible label (aria-label) for the next button
|
|
14868
14895
|
* @default "Next"
|
|
14869
14896
|
*/
|
|
14870
|
-
this.textLabelNext = TEXT$
|
|
14897
|
+
this.textLabelNext = TEXT$9.nextLabel;
|
|
14871
14898
|
/** Used as an accessible label (aria-label) of the previous button
|
|
14872
14899
|
* @default "Previous"
|
|
14873
14900
|
*/
|
|
14874
|
-
this.textLabelPrevious = TEXT$
|
|
14901
|
+
this.textLabelPrevious = TEXT$9.previousLabel;
|
|
14875
14902
|
/** The scale of the pagination */
|
|
14876
14903
|
this.scale = "m";
|
|
14877
14904
|
this.previousClicked = () => {
|
|
@@ -15031,7 +15058,7 @@ const SLOTS$c = {
|
|
|
15031
15058
|
footer: "footer",
|
|
15032
15059
|
footerActions: "footer-actions"
|
|
15033
15060
|
};
|
|
15034
|
-
const TEXT$
|
|
15061
|
+
const TEXT$8 = {
|
|
15035
15062
|
back: "Back",
|
|
15036
15063
|
close: "Close",
|
|
15037
15064
|
open: "Open",
|
|
@@ -15137,7 +15164,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15137
15164
|
const { el } = this;
|
|
15138
15165
|
const rtl = getElementDir(el) === "rtl";
|
|
15139
15166
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
15140
|
-
const label = intlBack || TEXT$
|
|
15167
|
+
const label = intlBack || TEXT$8.back;
|
|
15141
15168
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
15142
15169
|
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$j.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$c.headerActionsStart, text: label })) : null;
|
|
15143
15170
|
}
|
|
@@ -15160,7 +15187,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15160
15187
|
}
|
|
15161
15188
|
renderHeaderActionsEnd() {
|
|
15162
15189
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
15163
|
-
const text = intlClose || TEXT$
|
|
15190
|
+
const text = intlClose || TEXT$8.close;
|
|
15164
15191
|
const dismissibleNode = dismissible ? (h("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
15165
15192
|
const slotNode = h("slot", { name: SLOTS$c.headerActionsEnd });
|
|
15166
15193
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
@@ -15169,7 +15196,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15169
15196
|
renderMenu() {
|
|
15170
15197
|
const { el, intlOptions, menuOpen } = this;
|
|
15171
15198
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
15172
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$
|
|
15199
|
+
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), h("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
15173
15200
|
}
|
|
15174
15201
|
renderHeaderNode() {
|
|
15175
15202
|
const { el, showBackButton } = this;
|
|
@@ -15701,7 +15728,7 @@ const SLOTS$9 = {
|
|
|
15701
15728
|
actionsEnd: "actions-end",
|
|
15702
15729
|
actionsStart: "actions-start"
|
|
15703
15730
|
};
|
|
15704
|
-
const TEXT$
|
|
15731
|
+
const TEXT$7 = {
|
|
15705
15732
|
remove: "Remove"
|
|
15706
15733
|
};
|
|
15707
15734
|
|
|
@@ -15745,7 +15772,7 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
15745
15772
|
* Used as an accessible label (aria-label) for the "remove item" action. Only applicable if removable is true.
|
|
15746
15773
|
* @default "Remove"
|
|
15747
15774
|
*/
|
|
15748
|
-
this.intlRemove = TEXT$
|
|
15775
|
+
this.intlRemove = TEXT$7.remove;
|
|
15749
15776
|
// --------------------------------------------------------------------------
|
|
15750
15777
|
//
|
|
15751
15778
|
// Private Methods
|
|
@@ -15866,7 +15893,7 @@ const CSS$f = {
|
|
|
15866
15893
|
headerContent: "header-content",
|
|
15867
15894
|
heading: "heading"
|
|
15868
15895
|
};
|
|
15869
|
-
const TEXT$
|
|
15896
|
+
const TEXT$6 = {
|
|
15870
15897
|
close: "Close"
|
|
15871
15898
|
};
|
|
15872
15899
|
const POPOVER_REFERENCE = "data-calcite-popover-reference";
|
|
@@ -15928,7 +15955,7 @@ let CalcitePopover$1 = class extends HTMLElement$1 {
|
|
|
15928
15955
|
/** Text for close button.
|
|
15929
15956
|
* @default "Close"
|
|
15930
15957
|
*/
|
|
15931
|
-
this.intlClose = TEXT$
|
|
15958
|
+
this.intlClose = TEXT$6.close;
|
|
15932
15959
|
this.guid = `calcite-popover-${guid()}`;
|
|
15933
15960
|
this.activeTransitionProp = "opacity";
|
|
15934
15961
|
// --------------------------------------------------------------------------
|
|
@@ -16908,7 +16935,7 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement$1 {
|
|
|
16908
16935
|
static get style() { return calciteRadioGroupItemCss; }
|
|
16909
16936
|
};
|
|
16910
16937
|
|
|
16911
|
-
const TEXT$
|
|
16938
|
+
const TEXT$5 = {
|
|
16912
16939
|
rating: "Rating",
|
|
16913
16940
|
stars: "Stars: ${num}"
|
|
16914
16941
|
};
|
|
@@ -16939,11 +16966,11 @@ let CalciteRating$1 = class extends HTMLElement$1 {
|
|
|
16939
16966
|
/** Localized string for "Rating" (used for aria label)
|
|
16940
16967
|
* @default "Rating"
|
|
16941
16968
|
*/
|
|
16942
|
-
this.intlRating = TEXT$
|
|
16969
|
+
this.intlRating = TEXT$5.rating;
|
|
16943
16970
|
/** Localized string for labelling each star, `${num}` in the string will be replaced by the number
|
|
16944
16971
|
* @default "Stars: ${num}"
|
|
16945
16972
|
*/
|
|
16946
|
-
this.intlStars = TEXT$
|
|
16973
|
+
this.intlStars = TEXT$5.stars;
|
|
16947
16974
|
/**
|
|
16948
16975
|
* When true, makes the component required for form-submission.
|
|
16949
16976
|
*
|
|
@@ -17029,7 +17056,7 @@ const CSS$c = {
|
|
|
17029
17056
|
scrim: "scrim",
|
|
17030
17057
|
content: "content"
|
|
17031
17058
|
};
|
|
17032
|
-
const TEXT$
|
|
17059
|
+
const TEXT$4 = {
|
|
17033
17060
|
loading: "Loading"
|
|
17034
17061
|
};
|
|
17035
17062
|
|
|
@@ -17048,7 +17075,7 @@ let CalciteScrim$1 = class extends HTMLElement$1 {
|
|
|
17048
17075
|
/** string to override English loading text
|
|
17049
17076
|
* @default "Loading"
|
|
17050
17077
|
*/
|
|
17051
|
-
this.intlLoading = TEXT$
|
|
17078
|
+
this.intlLoading = TEXT$4.loading;
|
|
17052
17079
|
/**
|
|
17053
17080
|
* Determines if the component will have the loader overlay.
|
|
17054
17081
|
* Otherwise, will render opaque disabled state.
|
|
@@ -17412,14 +17439,18 @@ const CSS$8 = {
|
|
|
17412
17439
|
content: "content",
|
|
17413
17440
|
contentHeader: "content__header",
|
|
17414
17441
|
contentBody: "content__body",
|
|
17415
|
-
contentDetached: "content--detached"
|
|
17442
|
+
contentDetached: "content--detached",
|
|
17443
|
+
separator: "separator"
|
|
17416
17444
|
};
|
|
17417
17445
|
const SLOTS$5 = {
|
|
17418
17446
|
actionBar: "action-bar",
|
|
17419
17447
|
header: "header"
|
|
17420
17448
|
};
|
|
17449
|
+
const TEXT$3 = {
|
|
17450
|
+
resize: "Resize"
|
|
17451
|
+
};
|
|
17421
17452
|
|
|
17422
|
-
const calciteShellPanelCss = "@-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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(calcite-panel),::slotted(calcite-flow){-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.content__body{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
|
|
17453
|
+
const calciteShellPanelCss = "@-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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{position:absolute;background-color:transparent;bottom:0;display:-ms-flexbox;display:flex;height:100%;opacity:0;pointer-events:auto;top:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;width:0.125rem;z-index:10;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.content__body{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
|
|
17423
17454
|
|
|
17424
17455
|
let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
17425
17456
|
constructor() {
|
|
@@ -17448,10 +17479,121 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17448
17479
|
* This sets width of the content area.
|
|
17449
17480
|
*/
|
|
17450
17481
|
this.widthScale = "m";
|
|
17482
|
+
/**
|
|
17483
|
+
* Accessible label for resize separator.
|
|
17484
|
+
* @default "Resize"
|
|
17485
|
+
*/
|
|
17486
|
+
this.intlResize = TEXT$3.resize;
|
|
17487
|
+
/**
|
|
17488
|
+
* This property makes the content area resizable if the calcite-shell-panel is not 'detached'.
|
|
17489
|
+
*/
|
|
17490
|
+
this.resizable = false;
|
|
17491
|
+
this.contentWidth = null;
|
|
17492
|
+
this.initialContentWidth = null;
|
|
17493
|
+
this.initialClientX = null;
|
|
17494
|
+
this.contentWidthMax = null;
|
|
17495
|
+
this.contentWidthMin = null;
|
|
17496
|
+
this.step = 1;
|
|
17497
|
+
this.stepMultiplier = 10;
|
|
17498
|
+
this.storeContentEl = (contentEl) => {
|
|
17499
|
+
this.contentEl = contentEl;
|
|
17500
|
+
};
|
|
17501
|
+
this.getKeyAdjustedWidth = (event) => {
|
|
17502
|
+
const { key } = event;
|
|
17503
|
+
const { step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
17504
|
+
const multipliedStep = step * stepMultiplier;
|
|
17505
|
+
const MOVEMENT_KEYS = [
|
|
17506
|
+
"ArrowUp",
|
|
17507
|
+
"ArrowDown",
|
|
17508
|
+
"ArrowLeft",
|
|
17509
|
+
"ArrowRight",
|
|
17510
|
+
"Home",
|
|
17511
|
+
"End",
|
|
17512
|
+
"PageUp",
|
|
17513
|
+
"PageDown"
|
|
17514
|
+
];
|
|
17515
|
+
if (MOVEMENT_KEYS.indexOf(key) > -1) {
|
|
17516
|
+
event.preventDefault();
|
|
17517
|
+
}
|
|
17518
|
+
const increaseKeys = key === "ArrowUp" || (position === "end" ? key === "ArrowLeft" : key === "ArrowRight");
|
|
17519
|
+
if (increaseKeys) {
|
|
17520
|
+
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
17521
|
+
return initialContentWidth + stepValue;
|
|
17522
|
+
}
|
|
17523
|
+
const decreaseKeys = key === "ArrowDown" || (position === "end" ? key === "ArrowRight" : key === "ArrowLeft");
|
|
17524
|
+
if (decreaseKeys) {
|
|
17525
|
+
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
17526
|
+
return initialContentWidth - stepValue;
|
|
17527
|
+
}
|
|
17528
|
+
if (typeof contentWidthMin === "number" && key === "Home") {
|
|
17529
|
+
return contentWidthMin;
|
|
17530
|
+
}
|
|
17531
|
+
if (typeof contentWidthMax === "number" && key === "End") {
|
|
17532
|
+
return contentWidthMax;
|
|
17533
|
+
}
|
|
17534
|
+
if (key === "PageDown") {
|
|
17535
|
+
return initialContentWidth - multipliedStep;
|
|
17536
|
+
}
|
|
17537
|
+
if (key === "PageUp") {
|
|
17538
|
+
return initialContentWidth + multipliedStep;
|
|
17539
|
+
}
|
|
17540
|
+
return null;
|
|
17541
|
+
};
|
|
17542
|
+
this.separatorKeyDown = (event) => {
|
|
17543
|
+
this.setInitialContentWidth();
|
|
17544
|
+
const width = this.getKeyAdjustedWidth(event);
|
|
17545
|
+
if (typeof width === "number") {
|
|
17546
|
+
this.setContentWidth(width);
|
|
17547
|
+
}
|
|
17548
|
+
};
|
|
17549
|
+
this.separatorPointerMove = (event) => {
|
|
17550
|
+
event.preventDefault();
|
|
17551
|
+
const { initialContentWidth, position, initialClientX } = this;
|
|
17552
|
+
const offset = event.clientX - initialClientX;
|
|
17553
|
+
this.setContentWidth(position === "end" ? initialContentWidth - offset : initialContentWidth + offset);
|
|
17554
|
+
};
|
|
17555
|
+
this.separatorPointerUp = (event) => {
|
|
17556
|
+
event.preventDefault();
|
|
17557
|
+
document.removeEventListener("pointerup", this.separatorPointerUp);
|
|
17558
|
+
document.removeEventListener("pointermove", this.separatorPointerMove);
|
|
17559
|
+
};
|
|
17560
|
+
this.setInitialContentWidth = () => {
|
|
17561
|
+
var _a;
|
|
17562
|
+
this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
|
|
17563
|
+
};
|
|
17564
|
+
this.separatorPointerDown = (event) => {
|
|
17565
|
+
event.preventDefault();
|
|
17566
|
+
const { separatorEl } = this;
|
|
17567
|
+
separatorEl && document.activeElement !== separatorEl && separatorEl.focus();
|
|
17568
|
+
this.setInitialContentWidth();
|
|
17569
|
+
this.initialClientX = event.clientX;
|
|
17570
|
+
document.addEventListener("pointerup", this.separatorPointerUp);
|
|
17571
|
+
document.addEventListener("pointermove", this.separatorPointerMove);
|
|
17572
|
+
};
|
|
17573
|
+
this.connectSeparator = (separatorEl) => {
|
|
17574
|
+
this.disconnectSeparator();
|
|
17575
|
+
this.separatorEl = separatorEl;
|
|
17576
|
+
separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
|
|
17577
|
+
};
|
|
17578
|
+
this.disconnectSeparator = () => {
|
|
17579
|
+
var _a;
|
|
17580
|
+
(_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
17581
|
+
};
|
|
17451
17582
|
}
|
|
17452
17583
|
watchHandler() {
|
|
17453
17584
|
this.calciteShellPanelToggle.emit();
|
|
17454
17585
|
}
|
|
17586
|
+
//--------------------------------------------------------------------------
|
|
17587
|
+
//
|
|
17588
|
+
// Lifecycle
|
|
17589
|
+
//
|
|
17590
|
+
//--------------------------------------------------------------------------
|
|
17591
|
+
disconnectedCallback() {
|
|
17592
|
+
this.disconnectSeparator();
|
|
17593
|
+
}
|
|
17594
|
+
componentDidLoad() {
|
|
17595
|
+
this.updateAriaValues();
|
|
17596
|
+
}
|
|
17455
17597
|
// --------------------------------------------------------------------------
|
|
17456
17598
|
//
|
|
17457
17599
|
// Render Methods
|
|
@@ -17463,15 +17605,50 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17463
17605
|
return hasHeader ? (h("div", { class: CSS$8.contentHeader }, h("slot", { name: SLOTS$5.header }))) : null;
|
|
17464
17606
|
}
|
|
17465
17607
|
render() {
|
|
17466
|
-
const { collapsed, detached, position } = this;
|
|
17467
|
-
const
|
|
17608
|
+
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
17609
|
+
const allowResizing = !detached && resizable;
|
|
17610
|
+
const contentNode = (h("div", { class: { [CSS$8.content]: true, [CSS$8.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$8.contentBody }, h("slot", null))));
|
|
17611
|
+
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$8.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
17468
17612
|
const actionBarNode = h("slot", { name: SLOTS$5.actionBar });
|
|
17469
|
-
const mainNodes = [actionBarNode, contentNode];
|
|
17613
|
+
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
17470
17614
|
if (position === "end") {
|
|
17471
17615
|
mainNodes.reverse();
|
|
17472
17616
|
}
|
|
17473
17617
|
return h("div", { class: { [CSS$8.container]: true } }, mainNodes);
|
|
17474
17618
|
}
|
|
17619
|
+
// --------------------------------------------------------------------------
|
|
17620
|
+
//
|
|
17621
|
+
// private Methods
|
|
17622
|
+
//
|
|
17623
|
+
// --------------------------------------------------------------------------
|
|
17624
|
+
setContentWidth(width) {
|
|
17625
|
+
const { contentWidthMax, contentWidthMin } = this;
|
|
17626
|
+
const roundedWidth = Math.round(width);
|
|
17627
|
+
this.contentWidth =
|
|
17628
|
+
typeof contentWidthMax === "number" && typeof contentWidthMin === "number"
|
|
17629
|
+
? clamp(roundedWidth, contentWidthMin, contentWidthMax)
|
|
17630
|
+
: roundedWidth;
|
|
17631
|
+
}
|
|
17632
|
+
updateAriaValues() {
|
|
17633
|
+
const { contentEl } = this;
|
|
17634
|
+
const computedStyle = contentEl && getComputedStyle(contentEl);
|
|
17635
|
+
if (!computedStyle) {
|
|
17636
|
+
return;
|
|
17637
|
+
}
|
|
17638
|
+
const max = parseInt(computedStyle.getPropertyValue("max-width"), 10);
|
|
17639
|
+
const min = parseInt(computedStyle.getPropertyValue("min-width"), 10);
|
|
17640
|
+
const valueNow = parseInt(computedStyle.getPropertyValue("width"), 10);
|
|
17641
|
+
if (typeof valueNow === "number" && !isNaN(valueNow)) {
|
|
17642
|
+
this.initialContentWidth = valueNow;
|
|
17643
|
+
}
|
|
17644
|
+
if (typeof max === "number" && !isNaN(max)) {
|
|
17645
|
+
this.contentWidthMax = max;
|
|
17646
|
+
}
|
|
17647
|
+
if (typeof min === "number" && !isNaN(min)) {
|
|
17648
|
+
this.contentWidthMin = min;
|
|
17649
|
+
}
|
|
17650
|
+
forceUpdate(this);
|
|
17651
|
+
}
|
|
17475
17652
|
get el() { return this; }
|
|
17476
17653
|
static get watchers() { return {
|
|
17477
17654
|
"collapsed": ["watchHandler"]
|
|
@@ -24805,7 +24982,7 @@ const CalciteScrim = /*@__PURE__*/proxyCustomElement(CalciteScrim$1, [1,"calcite
|
|
|
24805
24982
|
const CalciteSelect = /*@__PURE__*/proxyCustomElement(CalciteSelect$1, [1,"calcite-select",{"disabled":[516],"label":[1],"name":[1],"required":[516],"scale":[513],"value":[1025],"selectedOption":[1040],"width":[513]},[[0,"calciteOptionChange","handleOptionOrGroupChange"],[0,"calciteOptionGroupChange","handleOptionOrGroupChange"]]]);
|
|
24806
24983
|
const CalciteShell = /*@__PURE__*/proxyCustomElement(CalciteShell$1, [1,"calcite-shell",{"contentBehind":[516,"content-behind"]}]);
|
|
24807
24984
|
const CalciteShellCenterRow = /*@__PURE__*/proxyCustomElement(CalciteShellCenterRow$1, [1,"calcite-shell-center-row",{"detached":[516],"heightScale":[513,"height-scale"],"position":[513]}]);
|
|
24808
|
-
const CalciteShellPanel = /*@__PURE__*/proxyCustomElement(CalciteShellPanel$1, [1,"calcite-shell-panel",{"collapsed":[516],"detached":[516],"detachedHeightScale":[513,"detached-height-scale"],"widthScale":[513,"width-scale"],"position":[513]}]);
|
|
24985
|
+
const CalciteShellPanel = /*@__PURE__*/proxyCustomElement(CalciteShellPanel$1, [1,"calcite-shell-panel",{"collapsed":[516],"detached":[516],"detachedHeightScale":[513,"detached-height-scale"],"widthScale":[513,"width-scale"],"position":[513],"intlResize":[1,"intl-resize"],"resizable":[516],"contentWidth":[32]}]);
|
|
24809
24986
|
const CalciteSlider = /*@__PURE__*/proxyCustomElement(CalciteSlider$1, [1,"calcite-slider",{"disabled":[516],"hasHistogram":[1540,"has-histogram"],"histogram":[16],"histogramStops":[16],"labelHandles":[516,"label-handles"],"labelTicks":[516,"label-ticks"],"max":[514],"maxLabel":[1,"max-label"],"maxValue":[1026,"max-value"],"min":[514],"minLabel":[1,"min-label"],"minValue":[1026,"min-value"],"mirrored":[516],"name":[513],"pageStep":[2,"page-step"],"precise":[4],"required":[516],"snap":[4],"step":[2],"ticks":[2],"value":[1538],"activeProp":[32],"minMaxValueRange":[32],"minValueDragRange":[32],"maxValueDragRange":[32],"tickValues":[32]},[[0,"keydown","keyDownHandler"],[0,"click","clickHandler"],[1,"pointerdown","pointerDownHandler"]]]);
|
|
24810
24987
|
const CalciteSortableList = /*@__PURE__*/proxyCustomElement(CalciteSortableList$1, [1,"calcite-sortable-list",{"dragSelector":[1,"drag-selector"],"group":[1],"handleSelector":[1,"handle-selector"],"layout":[1],"disabled":[516],"loading":[516],"handleActivated":[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]);
|
|
24811
24988
|
const CalciteSplitButton = /*@__PURE__*/proxyCustomElement(CalciteSplitButton$1, [1,"calcite-split-button",{"appearance":[513],"color":[513],"disabled":[516],"active":[516],"dropdownIconType":[513,"dropdown-icon-type"],"dropdownLabel":[513,"dropdown-label"],"loading":[516],"primaryIconEnd":[513,"primary-icon-end"],"primaryIconFlipRtl":[513,"primary-icon-flip-rtl"],"primaryIconStart":[513,"primary-icon-start"],"primaryLabel":[513,"primary-label"],"primaryText":[513,"primary-text"],"scale":[513],"width":[513]}]);
|