@esri/calcite-components 1.0.0-next.363 → 1.0.0-next.364
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-320ef3e6.system.entry.js +5 -0
- package/dist/calcite/{p-0b0ce9b2.system.entry.js → p-3280f0ac.system.entry.js} +1 -1
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9f349c92.entry.js +5 -0
- package/dist/calcite/p-f6559122.entry.js +5 -0
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +9 -2
- package/dist/cjs/calcite-input.cjs.entry.js +3 -0
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +28 -3
- package/dist/collection/components/calcite-combobox/resources.js +3 -0
- package/dist/collection/components/calcite-input/calcite-input.js +3 -0
- package/dist/components/calcite-combobox.js +8 -3
- package/dist/components/calcite-input2.js +3 -0
- package/dist/components/utils2.js +4 -1
- package/dist/custom-elements/index.js +64 -54
- package/dist/esm/calcite-combobox_3.entry.js +9 -2
- package/dist/esm/calcite-input.entry.js +3 -0
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-input.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 +23 -1
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +4 -0
- package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
- package/dist/types/components.d.ts +10 -0
- package/hydrate/index.js +64 -53
- package/package.json +1 -1
- package/dist/calcite/p-1b3a66ec.system.entry.js +0 -5
- package/dist/calcite/p-28adfebc.entry.js +0 -5
- package/dist/calcite/p-85fb7bc0.entry.js +0 -5
|
@@ -152,7 +152,7 @@ const CSS_UTILITY = {
|
|
|
152
152
|
lightTheme,
|
|
153
153
|
rtl: "calcite--rtl"
|
|
154
154
|
};
|
|
155
|
-
const TEXT$
|
|
155
|
+
const TEXT$r = {
|
|
156
156
|
loading: "Loading"
|
|
157
157
|
};
|
|
158
158
|
|
|
@@ -463,7 +463,7 @@ const CSS$P = {
|
|
|
463
463
|
textContainer: "text-container",
|
|
464
464
|
textContainerVisible: "text-container--visible"
|
|
465
465
|
};
|
|
466
|
-
const TEXT$
|
|
466
|
+
const TEXT$q = {
|
|
467
467
|
loading: "Loading"
|
|
468
468
|
};
|
|
469
469
|
|
|
@@ -516,7 +516,7 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
516
516
|
/** string to override English loading text
|
|
517
517
|
* @default "Loading"
|
|
518
518
|
*/
|
|
519
|
-
this.intlLoading = TEXT$
|
|
519
|
+
this.intlLoading = TEXT$q.loading;
|
|
520
520
|
/**
|
|
521
521
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
522
522
|
*/
|
|
@@ -620,7 +620,7 @@ const SLOTS$o = {
|
|
|
620
620
|
menuActions: "menu-actions",
|
|
621
621
|
menuTooltip: "menu-tooltip"
|
|
622
622
|
};
|
|
623
|
-
const TEXT$
|
|
623
|
+
const TEXT$p = {
|
|
624
624
|
more: "More"
|
|
625
625
|
};
|
|
626
626
|
const ICONS$e = {
|
|
@@ -711,7 +711,7 @@ const SLOTS$n = {
|
|
|
711
711
|
bottomActions: "bottom-actions",
|
|
712
712
|
expandTooltip: "expand-tooltip"
|
|
713
713
|
};
|
|
714
|
-
const TEXT$
|
|
714
|
+
const TEXT$o = {
|
|
715
715
|
expand: "Expand",
|
|
716
716
|
collapse: "Collapse"
|
|
717
717
|
};
|
|
@@ -2162,8 +2162,8 @@ let CalciteActionBar$1 = class extends HTMLElement$1 {
|
|
|
2162
2162
|
renderBottomActionGroup() {
|
|
2163
2163
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2164
2164
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
2165
|
-
const expandLabel = intlExpand || TEXT$
|
|
2166
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2165
|
+
const expandLabel = intlExpand || TEXT$o.expand;
|
|
2166
|
+
const collapseLabel = intlCollapse || TEXT$o.collapse;
|
|
2167
2167
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2168
2168
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$n.bottomActions }), h("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
2169
2169
|
}
|
|
@@ -2228,7 +2228,7 @@ let CalciteActionGroup$1 = class extends HTMLElement$1 {
|
|
|
2228
2228
|
renderMenu() {
|
|
2229
2229
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
2230
2230
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
2231
|
-
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
2231
|
+
return hasMenuItems ? (h("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$p.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, h("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$p.trigger, text: intlMore || TEXT$p.more, textEnabled: expanded }), h("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
2232
2232
|
}
|
|
2233
2233
|
render() {
|
|
2234
2234
|
return (h(Fragment, null, h("slot", null), this.renderMenu()));
|
|
@@ -2527,7 +2527,7 @@ const CSS$M = {
|
|
|
2527
2527
|
actionGroupBottom: "action-group--bottom",
|
|
2528
2528
|
container: "container"
|
|
2529
2529
|
};
|
|
2530
|
-
const TEXT$
|
|
2530
|
+
const TEXT$n = {
|
|
2531
2531
|
expand: "Expand",
|
|
2532
2532
|
collapse: "Collapse"
|
|
2533
2533
|
};
|
|
@@ -2625,8 +2625,8 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2625
2625
|
renderBottomActionGroup() {
|
|
2626
2626
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
2627
2627
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
2628
|
-
const expandLabel = intlExpand || TEXT$
|
|
2629
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
2628
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
2629
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
2630
2630
|
const expandToggleNode = !expandDisabled ? (h(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
2631
2631
|
return expandToggleNode ? (h("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
2632
2632
|
}
|
|
@@ -2641,7 +2641,7 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2641
2641
|
static get style() { return calciteActionPadCss; }
|
|
2642
2642
|
};
|
|
2643
2643
|
|
|
2644
|
-
const TEXT$
|
|
2644
|
+
const TEXT$m = {
|
|
2645
2645
|
intlClose: "Close"
|
|
2646
2646
|
};
|
|
2647
2647
|
const DURATIONS = {
|
|
@@ -2690,7 +2690,7 @@ let CalciteAlert$1 = class extends HTMLElement$1 {
|
|
|
2690
2690
|
/** string to override English close text
|
|
2691
2691
|
* @default "Close"
|
|
2692
2692
|
*/
|
|
2693
|
-
this.intlClose = TEXT$
|
|
2693
|
+
this.intlClose = TEXT$m.intlClose;
|
|
2694
2694
|
/** specify the placement of the alert */
|
|
2695
2695
|
this.placement = "bottom";
|
|
2696
2696
|
/** specify the scale of the alert, defaults to m */
|
|
@@ -3103,7 +3103,7 @@ const CSS$L = {
|
|
|
3103
3103
|
invalid: "invalid",
|
|
3104
3104
|
loading: "loading"
|
|
3105
3105
|
};
|
|
3106
|
-
const TEXT$
|
|
3106
|
+
const TEXT$l = {
|
|
3107
3107
|
collapse: "Collapse",
|
|
3108
3108
|
expand: "Expand",
|
|
3109
3109
|
loading: "Loading",
|
|
@@ -3160,11 +3160,11 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3160
3160
|
/** string to override English loading text
|
|
3161
3161
|
* @default "Loading"
|
|
3162
3162
|
*/
|
|
3163
|
-
this.intlLoading = TEXT$
|
|
3163
|
+
this.intlLoading = TEXT$l.loading;
|
|
3164
3164
|
/** Text string used for the actions menu
|
|
3165
3165
|
* @default "Options"
|
|
3166
3166
|
*/
|
|
3167
|
-
this.intlOptions = TEXT$
|
|
3167
|
+
this.intlOptions = TEXT$l.options;
|
|
3168
3168
|
/**
|
|
3169
3169
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
3170
3170
|
*/
|
|
@@ -3212,12 +3212,12 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3212
3212
|
}
|
|
3213
3213
|
render() {
|
|
3214
3214
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3215
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3215
|
+
const toggleLabel = open ? intlCollapse || TEXT$l.collapse : intlExpand || TEXT$l.expand;
|
|
3216
3216
|
const headerContent = (h("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
3217
3217
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
3218
3218
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
3219
3219
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3220
|
-
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
3220
|
+
const headerNode = (h("div", { class: CSS$L.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS$L.controlContainer }, h("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT$l.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3221
3221
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
3222
3222
|
[CSS$L.article]: true
|
|
3223
3223
|
} }, headerNode, h("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -3238,7 +3238,7 @@ const CSS$K = {
|
|
|
3238
3238
|
statusIcon: "status-icon",
|
|
3239
3239
|
valid: "valid"
|
|
3240
3240
|
};
|
|
3241
|
-
const TEXT$
|
|
3241
|
+
const TEXT$k = {
|
|
3242
3242
|
collapse: "Collapse",
|
|
3243
3243
|
expand: "Expand"
|
|
3244
3244
|
};
|
|
@@ -3309,7 +3309,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3309
3309
|
: dir === "rtl"
|
|
3310
3310
|
? ICONS$b.menuClosedLeft
|
|
3311
3311
|
: ICONS$b.menuClosedRight;
|
|
3312
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
3312
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
3313
3313
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-label": toggleLabel, class: {
|
|
3314
3314
|
[CSS$K.toggle]: true,
|
|
3315
3315
|
[CSS$K.toggleSwitch]: true
|
|
@@ -3363,7 +3363,7 @@ const CSS$J = {
|
|
|
3363
3363
|
iconStartEmpty: "icon-start-empty",
|
|
3364
3364
|
iconEndEmpty: "icon-end-empty"
|
|
3365
3365
|
};
|
|
3366
|
-
const TEXT$
|
|
3366
|
+
const TEXT$j = {
|
|
3367
3367
|
loading: "Loading"
|
|
3368
3368
|
};
|
|
3369
3369
|
|
|
@@ -3469,7 +3469,7 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3469
3469
|
/** string to override English loading text
|
|
3470
3470
|
* @default "Loading"
|
|
3471
3471
|
*/
|
|
3472
|
-
this.intlLoading = TEXT$
|
|
3472
|
+
this.intlLoading = TEXT$j.loading;
|
|
3473
3473
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
3474
3474
|
this.loading = false;
|
|
3475
3475
|
/** optionally add a round style to the button */
|
|
@@ -3607,7 +3607,7 @@ const SLOTS$j = {
|
|
|
3607
3607
|
footerLeading: "footer-leading",
|
|
3608
3608
|
footerTrailing: "footer-trailing"
|
|
3609
3609
|
};
|
|
3610
|
-
const TEXT$
|
|
3610
|
+
const TEXT$i = {
|
|
3611
3611
|
select: "Select",
|
|
3612
3612
|
deselect: "Deselect",
|
|
3613
3613
|
loading: "Loading"
|
|
@@ -3635,15 +3635,15 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3635
3635
|
/** string to override English loading text
|
|
3636
3636
|
* @default "Loading"
|
|
3637
3637
|
*/
|
|
3638
|
-
this.intlLoading = TEXT$
|
|
3638
|
+
this.intlLoading = TEXT$i.loading;
|
|
3639
3639
|
/** string to override English select text for checkbox when selectable is true
|
|
3640
3640
|
* @default "Select"
|
|
3641
3641
|
*/
|
|
3642
|
-
this.intlSelect = TEXT$
|
|
3642
|
+
this.intlSelect = TEXT$i.select;
|
|
3643
3643
|
/** string to override English deselect text for checkbox when selectable is true
|
|
3644
3644
|
* @default "Deselect"
|
|
3645
3645
|
*/
|
|
3646
|
-
this.intlDeselect = TEXT$
|
|
3646
|
+
this.intlDeselect = TEXT$i.deselect;
|
|
3647
3647
|
//--------------------------------------------------------------------------
|
|
3648
3648
|
//
|
|
3649
3649
|
// Private State/Props
|
|
@@ -3994,7 +3994,7 @@ const CSS$H = {
|
|
|
3994
3994
|
chipImageContainer: "chip-image-container",
|
|
3995
3995
|
calciteChipIcon: "calcite-chip--icon"
|
|
3996
3996
|
};
|
|
3997
|
-
const TEXT$
|
|
3997
|
+
const TEXT$h = {
|
|
3998
3998
|
close: "Close"
|
|
3999
3999
|
};
|
|
4000
4000
|
const SLOTS$i = {
|
|
@@ -4026,7 +4026,7 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4026
4026
|
/** Aria label for the "x" button
|
|
4027
4027
|
* @default "Close"
|
|
4028
4028
|
*/
|
|
4029
|
-
this.dismissLabel = TEXT$
|
|
4029
|
+
this.dismissLabel = TEXT$h.close;
|
|
4030
4030
|
/** flip the icon in rtl */
|
|
4031
4031
|
this.iconFlipRtl = false;
|
|
4032
4032
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -6228,7 +6228,7 @@ const HSV_LIMITS = {
|
|
|
6228
6228
|
s: 100,
|
|
6229
6229
|
v: 100
|
|
6230
6230
|
};
|
|
6231
|
-
const TEXT$
|
|
6231
|
+
const TEXT$g = {
|
|
6232
6232
|
b: "B",
|
|
6233
6233
|
blue: "Blue",
|
|
6234
6234
|
deleteColor: "Delete color",
|
|
@@ -6351,80 +6351,80 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6351
6351
|
/** Label used for the blue channel
|
|
6352
6352
|
* @default "B"
|
|
6353
6353
|
*/
|
|
6354
|
-
this.intlB = TEXT$
|
|
6354
|
+
this.intlB = TEXT$g.b;
|
|
6355
6355
|
/** Label used for the blue channel description
|
|
6356
6356
|
* @default "Blue"
|
|
6357
6357
|
*/
|
|
6358
|
-
this.intlBlue = TEXT$
|
|
6358
|
+
this.intlBlue = TEXT$g.blue;
|
|
6359
6359
|
/** Label used for the delete color button.
|
|
6360
6360
|
* @default "Delete color"
|
|
6361
6361
|
*/
|
|
6362
|
-
this.intlDeleteColor = TEXT$
|
|
6362
|
+
this.intlDeleteColor = TEXT$g.deleteColor;
|
|
6363
6363
|
/** Label used for the green channel
|
|
6364
6364
|
* @default "G"
|
|
6365
6365
|
*/
|
|
6366
|
-
this.intlG = TEXT$
|
|
6366
|
+
this.intlG = TEXT$g.g;
|
|
6367
6367
|
/** Label used for the green channel description
|
|
6368
6368
|
* @default "Green"
|
|
6369
6369
|
*/
|
|
6370
|
-
this.intlGreen = TEXT$
|
|
6370
|
+
this.intlGreen = TEXT$g.green;
|
|
6371
6371
|
/** Label used for the hue channel
|
|
6372
6372
|
* @default "H"
|
|
6373
6373
|
*/
|
|
6374
|
-
this.intlH = TEXT$
|
|
6374
|
+
this.intlH = TEXT$g.h;
|
|
6375
6375
|
/** Label used for the HSV mode
|
|
6376
6376
|
* @default "HSV"
|
|
6377
6377
|
*/
|
|
6378
|
-
this.intlHsv = TEXT$
|
|
6378
|
+
this.intlHsv = TEXT$g.hsv;
|
|
6379
6379
|
/** Label used for the hex input
|
|
6380
6380
|
* @default "Hex"
|
|
6381
6381
|
*/
|
|
6382
|
-
this.intlHex = TEXT$
|
|
6382
|
+
this.intlHex = TEXT$g.hex;
|
|
6383
6383
|
/** Label used for the hue channel description
|
|
6384
6384
|
* @default "Hue"
|
|
6385
6385
|
*/
|
|
6386
|
-
this.intlHue = TEXT$
|
|
6386
|
+
this.intlHue = TEXT$g.hue;
|
|
6387
6387
|
/**
|
|
6388
6388
|
* Label used for the hex input when there is no color selected.
|
|
6389
6389
|
* @default "No color"
|
|
6390
6390
|
*/
|
|
6391
|
-
this.intlNoColor = TEXT$
|
|
6391
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
6392
6392
|
/** Label used for the red channel
|
|
6393
6393
|
* @default "R"
|
|
6394
6394
|
*/
|
|
6395
|
-
this.intlR = TEXT$
|
|
6395
|
+
this.intlR = TEXT$g.r;
|
|
6396
6396
|
/** Label used for the red channel description
|
|
6397
6397
|
* @default "Red"
|
|
6398
6398
|
*/
|
|
6399
|
-
this.intlRed = TEXT$
|
|
6399
|
+
this.intlRed = TEXT$g.red;
|
|
6400
6400
|
/** Label used for the RGB mode
|
|
6401
6401
|
* @default "RGB"
|
|
6402
6402
|
*/
|
|
6403
|
-
this.intlRgb = TEXT$
|
|
6403
|
+
this.intlRgb = TEXT$g.rgb;
|
|
6404
6404
|
/** Label used for the saturation channel
|
|
6405
6405
|
* @default "S"
|
|
6406
6406
|
*/
|
|
6407
|
-
this.intlS = TEXT$
|
|
6407
|
+
this.intlS = TEXT$g.s;
|
|
6408
6408
|
/** Label used for the saturation channel description
|
|
6409
6409
|
* @default "Saturation"
|
|
6410
6410
|
*/
|
|
6411
|
-
this.intlSaturation = TEXT$
|
|
6411
|
+
this.intlSaturation = TEXT$g.saturation;
|
|
6412
6412
|
/** Label used for the save color button.
|
|
6413
6413
|
* @default "Save color"
|
|
6414
6414
|
*/
|
|
6415
|
-
this.intlSaveColor = TEXT$
|
|
6415
|
+
this.intlSaveColor = TEXT$g.saveColor;
|
|
6416
6416
|
/** Label used for the saved colors section
|
|
6417
6417
|
* @default "Saved"
|
|
6418
6418
|
*/
|
|
6419
|
-
this.intlSaved = TEXT$
|
|
6419
|
+
this.intlSaved = TEXT$g.saved;
|
|
6420
6420
|
/** Label used for the value channel
|
|
6421
6421
|
* @default "V"
|
|
6422
6422
|
*/
|
|
6423
|
-
this.intlV = TEXT$
|
|
6423
|
+
this.intlV = TEXT$g.v;
|
|
6424
6424
|
/** Label used for the
|
|
6425
6425
|
* @default "Value"
|
|
6426
6426
|
*/
|
|
6427
|
-
this.intlValue = TEXT$
|
|
6427
|
+
this.intlValue = TEXT$g.value;
|
|
6428
6428
|
/**
|
|
6429
6429
|
* The scale of the color picker.
|
|
6430
6430
|
*/
|
|
@@ -7100,12 +7100,12 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7100
7100
|
* Label used for the hex input.
|
|
7101
7101
|
* @default "Hex"
|
|
7102
7102
|
*/
|
|
7103
|
-
this.intlHex = TEXT$
|
|
7103
|
+
this.intlHex = TEXT$g.hex;
|
|
7104
7104
|
/**
|
|
7105
7105
|
* Label used for the hex input when there is no color selected.
|
|
7106
7106
|
* @default "No color"
|
|
7107
7107
|
*/
|
|
7108
|
-
this.intlNoColor = TEXT$
|
|
7108
|
+
this.intlNoColor = TEXT$g.noColor;
|
|
7109
7109
|
/**
|
|
7110
7110
|
* The component's scale.
|
|
7111
7111
|
*/
|
|
@@ -9180,6 +9180,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
9180
9180
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
9181
9181
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
9182
9182
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
9183
|
+
const TEXT$f = {
|
|
9184
|
+
removeTag: "Remove tag"
|
|
9185
|
+
};
|
|
9183
9186
|
|
|
9184
9187
|
function getAncestors(element) {
|
|
9185
9188
|
var _a, _b;
|
|
@@ -9249,6 +9252,10 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9249
9252
|
this.scale = "m";
|
|
9250
9253
|
/** The value(s) of the selectedItem(s) */
|
|
9251
9254
|
this.value = null;
|
|
9255
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
9256
|
+
* @default "Remove tag"
|
|
9257
|
+
*/
|
|
9258
|
+
this.intlRemoveTag = TEXT$f.removeTag;
|
|
9252
9259
|
//--------------------------------------------------------------------------
|
|
9253
9260
|
//
|
|
9254
9261
|
// Private State/Props
|
|
@@ -9854,7 +9861,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9854
9861
|
//
|
|
9855
9862
|
//--------------------------------------------------------------------------
|
|
9856
9863
|
renderChips() {
|
|
9857
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
9864
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
9858
9865
|
return this.selectedItems.map((item, i) => {
|
|
9859
9866
|
const chipClasses = {
|
|
9860
9867
|
chip: true,
|
|
@@ -9863,7 +9870,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9863
9870
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
9864
9871
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
9865
9872
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
9866
|
-
return (h("calcite-chip", { "aria-label": label, class: chipClasses, dismissLabel:
|
|
9873
|
+
return (h("calcite-chip", { "aria-label": label, class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `chip-${item.guid}`, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
|
|
9867
9874
|
});
|
|
9868
9875
|
}
|
|
9869
9876
|
renderInput() {
|
|
@@ -12919,7 +12926,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12919
12926
|
* string to override English loading text
|
|
12920
12927
|
* @default "Loading"
|
|
12921
12928
|
*/
|
|
12922
|
-
this.intlLoading = TEXT$
|
|
12929
|
+
this.intlLoading = TEXT$r.loading;
|
|
12923
12930
|
/** flip the icon in rtl */
|
|
12924
12931
|
this.iconFlipRtl = false;
|
|
12925
12932
|
/** specify if the input is in loading state */
|
|
@@ -13094,6 +13101,9 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13094
13101
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
13095
13102
|
const valueNudgeDelayInMs = 100;
|
|
13096
13103
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
13104
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
13105
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
13106
|
+
}
|
|
13097
13107
|
let firstValueNudge = true;
|
|
13098
13108
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
13099
13109
|
if (firstValueNudge) {
|
|
@@ -25201,7 +25211,7 @@ const CalciteChip = /*@__PURE__*/proxyCustomElement(CalciteChip$1, [1,"calcite-c
|
|
|
25201
25211
|
const CalciteColorPicker = /*@__PURE__*/proxyCustomElement(CalciteColorPicker$1, [1,"calcite-color-picker",{"allowEmpty":[4,"allow-empty"],"appearance":[513],"color":[1040],"format":[1],"hideHex":[4,"hide-hex"],"hideChannels":[4,"hide-channels"],"hideSaved":[4,"hide-saved"],"intlB":[1,"intl-b"],"intlBlue":[1,"intl-blue"],"intlDeleteColor":[1,"intl-delete-color"],"intlG":[1,"intl-g"],"intlGreen":[1,"intl-green"],"intlH":[1,"intl-h"],"intlHsv":[1,"intl-hsv"],"intlHex":[1,"intl-hex"],"intlHue":[1,"intl-hue"],"intlNoColor":[1,"intl-no-color"],"intlR":[1,"intl-r"],"intlRed":[1,"intl-red"],"intlRgb":[1,"intl-rgb"],"intlS":[1,"intl-s"],"intlSaturation":[1,"intl-saturation"],"intlSaveColor":[1,"intl-save-color"],"intlSaved":[1,"intl-saved"],"intlV":[1,"intl-v"],"intlValue":[1,"intl-value"],"scale":[513],"storageId":[1,"storage-id"],"value":[1025],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]);
|
|
25202
25212
|
const CalciteColorPickerHexInput = /*@__PURE__*/proxyCustomElement(CalciteColorPickerHexInput$1, [1,"calcite-color-picker-hex-input",{"allowEmpty":[4,"allow-empty"],"intlHex":[1,"intl-hex"],"intlNoColor":[1,"intl-no-color"],"scale":[513],"value":[1537],"internalColor":[32]},[[2,"keydown","onInputKeyDown"]]]);
|
|
25203
25213
|
const CalciteColorPickerSwatch = /*@__PURE__*/proxyCustomElement(CalciteColorPickerSwatch$1, [1,"calcite-color-picker-swatch",{"active":[516],"color":[1],"scale":[513]}]);
|
|
25204
|
-
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
25214
|
+
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"intlRemoveTag":[1,"intl-remove-tag"],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
25205
25215
|
const CalciteComboboxItem = /*@__PURE__*/proxyCustomElement(CalciteComboboxItem$1, [1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[4],"ancestors":[1040],"guid":[1],"icon":[1],"textLabel":[513,"text-label"],"value":[8],"constant":[516]}]);
|
|
25206
25216
|
const CalciteComboboxItemGroup = /*@__PURE__*/proxyCustomElement(CalciteComboboxItemGroup$1, [1,"calcite-combobox-item-group",{"ancestors":[1040],"label":[1]}]);
|
|
25207
25217
|
const CalciteDatePicker = /*@__PURE__*/proxyCustomElement(CalciteDatePicker$1, [1,"calcite-date-picker",{"activeRange":[1,"active-range"],"value":[1025],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"range":[516],"start":[1025],"end":[1025],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"activeDate":[32],"activeStartDate":[32],"activeEndDate":[32],"localeData":[32],"hoverRange":[32]}]);
|
|
@@ -155,6 +155,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
155
155
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
156
156
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
157
157
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
158
|
+
const TEXT = {
|
|
159
|
+
removeTag: "Remove tag"
|
|
160
|
+
};
|
|
158
161
|
|
|
159
162
|
function getAncestors(element) {
|
|
160
163
|
var _a, _b;
|
|
@@ -219,6 +222,10 @@ let CalciteCombobox = class {
|
|
|
219
222
|
this.scale = "m";
|
|
220
223
|
/** The value(s) of the selectedItem(s) */
|
|
221
224
|
this.value = null;
|
|
225
|
+
/** string to override the English "Remove tag" text for when an item is selected.
|
|
226
|
+
* @default "Remove tag"
|
|
227
|
+
*/
|
|
228
|
+
this.intlRemoveTag = TEXT.removeTag;
|
|
222
229
|
//--------------------------------------------------------------------------
|
|
223
230
|
//
|
|
224
231
|
// Private State/Props
|
|
@@ -824,7 +831,7 @@ let CalciteCombobox = class {
|
|
|
824
831
|
//
|
|
825
832
|
//--------------------------------------------------------------------------
|
|
826
833
|
renderChips() {
|
|
827
|
-
const { activeChipIndex, scale, selectionMode } = this;
|
|
834
|
+
const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
|
|
828
835
|
return this.selectedItems.map((item, i) => {
|
|
829
836
|
const chipClasses = {
|
|
830
837
|
chip: true,
|
|
@@ -833,7 +840,7 @@ let CalciteCombobox = class {
|
|
|
833
840
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
834
841
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
835
842
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
836
|
-
return (h("calcite-chip", { "aria-label": label, class: chipClasses, dismissLabel:
|
|
843
|
+
return (h("calcite-chip", { "aria-label": label, class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `chip-${item.guid}`, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
|
|
837
844
|
});
|
|
838
845
|
}
|
|
839
846
|
renderInput() {
|
|
@@ -246,6 +246,9 @@ let CalciteInput = class {
|
|
|
246
246
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
247
247
|
const valueNudgeDelayInMs = 100;
|
|
248
248
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
249
|
+
if (this.nudgeNumberValueIntervalId) {
|
|
250
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
251
|
+
}
|
|
249
252
|
let firstValueNudge = true;
|
|
250
253
|
this.nudgeNumberValueIntervalId = window.setInterval(() => {
|
|
251
254
|
if (firstValueNudge) {
|