@esri/calcite-components 1.0.0-next.341 → 1.0.0-next.345
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/assets/calcite-icon/explore16.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/p-0b2ac5d7.system.entry.js +5 -0
- package/dist/calcite/{p-4e9d072a.system.js → p-11b9e4bb.system.js} +1 -1
- package/dist/calcite/{p-1cbe69ff.system.entry.js → p-11f99edf.system.entry.js} +1 -1
- package/dist/calcite/p-12a2f2d9.entry.js +5 -0
- package/dist/calcite/p-18c4af8f.system.js +5 -0
- package/dist/calcite/p-18d9a261.system.js +1 -1
- package/dist/calcite/p-197226fa.entry.js +5 -0
- package/dist/calcite/{p-456fc41f.system.entry.js → p-224a5f8d.system.entry.js} +1 -1
- package/dist/calcite/p-35aa821f.entry.js +5 -0
- package/dist/calcite/{p-8554d028.system.entry.js → p-41cd5de3.system.entry.js} +1 -1
- package/dist/calcite/{p-6662658a.system.entry.js → p-496a04e4.system.entry.js} +1 -1
- package/dist/calcite/{p-cc247988.entry.js → p-520f90ae.entry.js} +1 -1
- package/dist/calcite/{p-ee5aabd7.entry.js → p-527dfb9d.entry.js} +1 -1
- package/dist/calcite/{p-d3bd900e.js → p-52966b4c.js} +1 -1
- package/dist/calcite/{p-c4b4312c.entry.js → p-531ddede.entry.js} +1 -1
- package/dist/calcite/{p-fbcf0cdb.system.entry.js → p-61c25508.system.entry.js} +1 -1
- package/dist/calcite/p-6436b89b.system.entry.js +5 -0
- package/dist/calcite/p-68c5432f.entry.js +5 -0
- package/dist/calcite/{p-8376e39b.entry.js → p-82d19468.entry.js} +1 -1
- package/dist/calcite/{p-4f7ebefc.system.js → p-834ec82a.system.js} +1 -1
- package/dist/calcite/{p-e7f7b0f8.js → p-8396a2d2.js} +1 -1
- package/dist/calcite/{p-14744d7b.system.entry.js → p-8dc9c530.system.entry.js} +1 -1
- package/dist/calcite/p-91300144.js +5 -0
- package/dist/calcite/{p-5c6f2de9.system.entry.js → p-afd8eb90.system.entry.js} +1 -1
- package/dist/calcite/{p-e7577455.entry.js → p-b28560f2.entry.js} +1 -1
- package/dist/calcite/p-e33346fd.system.entry.js +5 -0
- package/dist/calcite/p-ea59c57b.entry.js +5 -0
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input.cjs.entry.js +10 -9
- package/dist/cjs/calcite-radio-button.cjs.entry.js +17 -6
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +0 -45
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +37 -2
- package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
- package/dist/cjs/{locale-33c458dc.js → locale-ccfa66f6.js} +1 -1
- package/dist/cjs/{number-73f7b474.js → number-f57fd111.js} +13 -6
- package/dist/cjs/{resources-16974e48.js → resources-d3c42dc4.js} +1 -1
- package/dist/collection/components/calcite-avatar/calcite-avatar.css +1 -3
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/collection/components/calcite-input/calcite-input.js +8 -7
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +4 -4
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +16 -5
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +0 -45
- package/dist/collection/components/calcite-tile/calcite-tile.css +37 -49
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +50 -70
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -2
- package/dist/collection/components/calcite-tile-select/resources.js +20 -0
- package/dist/collection/utils/number.js +13 -6
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-checkbox2.js +1 -1
- package/dist/components/calcite-input2.js +8 -7
- package/dist/components/calcite-radio-button.js +17 -6
- package/dist/components/calcite-radio-group-item.js +0 -45
- package/dist/components/calcite-tile-select.js +37 -2
- package/dist/components/calcite-tile2.js +1 -1
- package/dist/components/number.js +13 -6
- package/dist/custom-elements/index.js +333 -323
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-checkbox.entry.js +1 -1
- package/dist/esm/calcite-date-picker_4.entry.js +3 -3
- package/dist/esm/calcite-input-date-picker.entry.js +3 -3
- package/dist/esm/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm/calcite-input.entry.js +10 -9
- package/dist/esm/calcite-radio-button.entry.js +17 -6
- package/dist/esm/calcite-radio-group_2.entry.js +0 -45
- package/dist/esm/calcite-tile-select_2.entry.js +37 -2
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/{locale-4c38cf6d.js → locale-86b789f9.js} +1 -1
- package/dist/esm/{number-06e8500e.js → number-eb92427e.js} +13 -6
- package/dist/esm/{resources-b4eee1d4.js → resources-421133b2.js} +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/{locale-4c38cf6d.js → locale-86b789f9.js} +1 -1
- package/dist/esm-es5/number-eb92427e.js +5 -0
- package/dist/esm-es5/{resources-b4eee1d4.js → resources-421133b2.js} +1 -1
- package/dist/extras/docs-json.json +1 -1
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -0
- package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -6
- package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
- package/hydrate/index.js +333 -323
- package/package.json +10 -10
- package/dist/calcite/p-04417e11.system.entry.js +0 -5
- package/dist/calcite/p-66146f19.entry.js +0 -5
- package/dist/calcite/p-6ba77bae.entry.js +0 -5
- package/dist/calcite/p-83744979.system.js +0 -5
- package/dist/calcite/p-cc2166e7.system.entry.js +0 -5
- package/dist/calcite/p-d00824e4.system.entry.js +0 -5
- package/dist/calcite/p-d506cebd.entry.js +0 -5
- package/dist/calcite/p-d75a285d.entry.js +0 -5
- package/dist/calcite/p-e81cda9d.entry.js +0 -5
- package/dist/calcite/p-f595d924.js +0 -5
- package/dist/esm-es5/number-06e8500e.js +0 -5
|
@@ -423,7 +423,7 @@ let CalciteAccordionItem$1 = class extends HTMLElement$1 {
|
|
|
423
423
|
static get style() { return calciteAccordionItemCss; }
|
|
424
424
|
};
|
|
425
425
|
|
|
426
|
-
const CSS$
|
|
426
|
+
const CSS$P = {
|
|
427
427
|
button: "button",
|
|
428
428
|
buttonTextVisible: "button--text-visible",
|
|
429
429
|
buttonCompact: "button--compact",
|
|
@@ -541,8 +541,8 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
541
541
|
renderTextContainer() {
|
|
542
542
|
const { text, textEnabled } = this;
|
|
543
543
|
const textContainerClasses = {
|
|
544
|
-
[CSS$
|
|
545
|
-
[CSS$
|
|
544
|
+
[CSS$P.textContainer]: true,
|
|
545
|
+
[CSS$P.textContainerVisible]: textEnabled
|
|
546
546
|
};
|
|
547
547
|
return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
548
548
|
}
|
|
@@ -555,18 +555,18 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
555
555
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
556
556
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
557
557
|
const slotContainerNode = (h("div", { class: {
|
|
558
|
-
[CSS$
|
|
559
|
-
[CSS$
|
|
558
|
+
[CSS$P.slotContainer]: true,
|
|
559
|
+
[CSS$P.slotContainerHidden]: loading
|
|
560
560
|
} }, h("slot", null)));
|
|
561
|
-
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$
|
|
561
|
+
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS$P.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
562
562
|
}
|
|
563
563
|
render() {
|
|
564
564
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
565
565
|
const ariaLabel = label || text;
|
|
566
566
|
const buttonClasses = {
|
|
567
|
-
[CSS$
|
|
568
|
-
[CSS$
|
|
569
|
-
[CSS$
|
|
567
|
+
[CSS$P.button]: true,
|
|
568
|
+
[CSS$P.buttonTextVisible]: textEnabled,
|
|
569
|
+
[CSS$P.buttonCompact]: compact
|
|
570
570
|
};
|
|
571
571
|
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer())));
|
|
572
572
|
}
|
|
@@ -574,7 +574,7 @@ let CalciteAction$1 = class extends HTMLElement$1 {
|
|
|
574
574
|
static get style() { return calciteActionCss; }
|
|
575
575
|
};
|
|
576
576
|
|
|
577
|
-
const CSS$
|
|
577
|
+
const CSS$O = {
|
|
578
578
|
menu: "menu",
|
|
579
579
|
defaultTrigger: "default-trigger"
|
|
580
580
|
};
|
|
@@ -674,7 +674,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
674
674
|
return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
675
675
|
};
|
|
676
676
|
|
|
677
|
-
const CSS$
|
|
677
|
+
const CSS$N = {
|
|
678
678
|
actionGroupBottom: "action-group--bottom"
|
|
679
679
|
};
|
|
680
680
|
const SLOTS$n = {
|
|
@@ -2135,7 +2135,7 @@ let CalciteActionBar$1 = class extends HTMLElement$1 {
|
|
|
2135
2135
|
const expandLabel = intlExpand || TEXT$n.expand;
|
|
2136
2136
|
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
2137
2137
|
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;
|
|
2138
|
-
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2138
|
+
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;
|
|
2139
2139
|
}
|
|
2140
2140
|
render() {
|
|
2141
2141
|
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("slot", null), this.renderBottomActionGroup()));
|
|
@@ -2464,14 +2464,14 @@ let CalciteActionMenu$1 = class extends HTMLElement$1 {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
renderMenuButton() {
|
|
2466
2466
|
const { el, label, scale } = this;
|
|
2467
|
-
const menuButtonSlot = (h("slot", { name: SLOTS$p.trigger }, h("calcite-action", { class: CSS$
|
|
2467
|
+
const menuButtonSlot = (h("slot", { name: SLOTS$p.trigger }, h("calcite-action", { class: CSS$O.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label })));
|
|
2468
2468
|
return getSlotted(el, SLOTS$p.tooltip) ? (h("calcite-tooltip-manager", null, menuButtonSlot)) : (menuButtonSlot);
|
|
2469
2469
|
}
|
|
2470
2470
|
renderMenuItems() {
|
|
2471
2471
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;
|
|
2472
2472
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
2473
2473
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
2474
|
-
return (h("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
2474
|
+
return (h("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$O.menu, id: menuId, onClick: this.handleCalciteActionClick, onKeyDown: this.menuActionsContainerKeyDown, onKeyUp: this.menuActionsContainerKeyUp, ref: (el) => (this.menuEl = el), role: "menu", tabIndex: -1 }, h("slot", null))));
|
|
2475
2475
|
}
|
|
2476
2476
|
render() {
|
|
2477
2477
|
return (h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS$p.tooltip })));
|
|
@@ -2493,7 +2493,7 @@ let CalciteActionMenu$1 = class extends HTMLElement$1 {
|
|
|
2493
2493
|
static get style() { return calciteActionMenuCss; }
|
|
2494
2494
|
};
|
|
2495
2495
|
|
|
2496
|
-
const CSS$
|
|
2496
|
+
const CSS$M = {
|
|
2497
2497
|
actionGroupBottom: "action-group--bottom",
|
|
2498
2498
|
container: "container"
|
|
2499
2499
|
};
|
|
@@ -2598,10 +2598,10 @@ let CalciteActionPad$1 = class extends HTMLElement$1 {
|
|
|
2598
2598
|
const expandLabel = intlExpand || TEXT$m.expand;
|
|
2599
2599
|
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
2600
2600
|
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;
|
|
2601
|
-
return expandToggleNode ? (h("calcite-action-group", { class: CSS$
|
|
2601
|
+
return expandToggleNode ? (h("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, h("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
2602
2602
|
}
|
|
2603
2603
|
render() {
|
|
2604
|
-
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$
|
|
2604
|
+
return (h(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, h("div", { class: CSS$M.container }, h("slot", null), this.renderBottomActionGroup())));
|
|
2605
2605
|
}
|
|
2606
2606
|
get el() { return this; }
|
|
2607
2607
|
static get watchers() { return {
|
|
@@ -2971,7 +2971,7 @@ function hexToHue(hex) {
|
|
|
2971
2971
|
return rgbToHue(hexToRGB(hex));
|
|
2972
2972
|
}
|
|
2973
2973
|
|
|
2974
|
-
const calciteAvatarCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display
|
|
2974
|
+
const calciteAvatarCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;border-radius:50%;overflow:hidden}:host([scale=s]){height:1.5rem;width:1.5rem;font-size:var(--calcite-font-size--3)}:host([scale=m]){height:2rem;width:2rem;font-size:var(--calcite-font-size--2)}:host([scale=l]){height:2.75rem;width:2.75rem;font-size:var(--calcite-font-size-0)}.icon{display:-ms-flexbox;display:flex}.background{display:-ms-flexbox;display:flex;height:100%;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%}.initials{font-weight:var(--calcite-font-weight-bold);text-transform:uppercase;color:var(--calcite-ui-text-3)}.thumbnail{height:100%;width:100%;border-radius:50%}";
|
|
2975
2975
|
|
|
2976
2976
|
let CalciteAvatar$1 = class extends HTMLElement$1 {
|
|
2977
2977
|
constructor() {
|
|
@@ -3052,7 +3052,7 @@ let CalciteAvatar$1 = class extends HTMLElement$1 {
|
|
|
3052
3052
|
static get style() { return calciteAvatarCss; }
|
|
3053
3053
|
};
|
|
3054
3054
|
|
|
3055
|
-
const CSS$
|
|
3055
|
+
const CSS$L = {
|
|
3056
3056
|
article: "article",
|
|
3057
3057
|
content: "content",
|
|
3058
3058
|
headerContainer: "header-container",
|
|
@@ -3166,34 +3166,34 @@ let CalciteBlock$1 = class extends HTMLElement$1 {
|
|
|
3166
3166
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
3167
3167
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
3168
3168
|
const iconEl = !statusIcon ? (h("slot", { name: SLOTS$k.icon })) : (h("calcite-icon", { class: {
|
|
3169
|
-
[CSS$
|
|
3170
|
-
[CSS$
|
|
3171
|
-
[CSS$
|
|
3172
|
-
[CSS$
|
|
3169
|
+
[CSS$L.statusIcon]: true,
|
|
3170
|
+
[CSS$L.valid]: status == "valid",
|
|
3171
|
+
[CSS$L.invalid]: status == "invalid",
|
|
3172
|
+
[CSS$L.loading]: showingLoadingStatus
|
|
3173
3173
|
}, icon: statusIcon, scale: "m" }));
|
|
3174
|
-
return hasIcon ? h("div", { class: CSS$
|
|
3174
|
+
return hasIcon ? h("div", { class: CSS$L.icon }, iconEl) : null;
|
|
3175
3175
|
}
|
|
3176
3176
|
renderTitle() {
|
|
3177
3177
|
const { heading, headingLevel, summary } = this;
|
|
3178
|
-
return heading || summary ? (h("div", { class: CSS$
|
|
3178
|
+
return heading || summary ? (h("div", { class: CSS$L.title }, h(CalciteHeading, { class: CSS$L.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? h("div", { class: CSS$L.summary }, summary) : null)) : null;
|
|
3179
3179
|
}
|
|
3180
3180
|
render() {
|
|
3181
3181
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
3182
3182
|
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
3183
|
-
const headerContent = (h("header", { class: CSS$
|
|
3183
|
+
const headerContent = (h("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
3184
3184
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
3185
3185
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
3186
3186
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
3187
|
-
const headerNode = (h("div", { class: CSS$
|
|
3187
|
+
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$k.options }, h("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
3188
3188
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
3189
|
-
[CSS$
|
|
3190
|
-
} }, headerNode, h("div", { class: CSS$
|
|
3189
|
+
[CSS$L.article]: true
|
|
3190
|
+
} }, headerNode, h("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
3191
3191
|
}
|
|
3192
3192
|
get el() { return this; }
|
|
3193
3193
|
static get style() { return calciteBlockCss; }
|
|
3194
3194
|
};
|
|
3195
3195
|
|
|
3196
|
-
const CSS$
|
|
3196
|
+
const CSS$K = {
|
|
3197
3197
|
content: "content",
|
|
3198
3198
|
invalid: "invalid",
|
|
3199
3199
|
toggle: "toggle",
|
|
@@ -3262,9 +3262,9 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3262
3262
|
const { status } = this;
|
|
3263
3263
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
3264
3264
|
const statusIconClasses = {
|
|
3265
|
-
[CSS$
|
|
3266
|
-
[CSS$
|
|
3267
|
-
[CSS$
|
|
3265
|
+
[CSS$K.statusIcon]: true,
|
|
3266
|
+
[CSS$K.valid]: status == "valid",
|
|
3267
|
+
[CSS$K.invalid]: status == "invalid"
|
|
3268
3268
|
};
|
|
3269
3269
|
return !!statusIcon ? (h("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
3270
3270
|
}
|
|
@@ -3278,13 +3278,13 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3278
3278
|
: ICONS$b.menuClosedRight;
|
|
3279
3279
|
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
3280
3280
|
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-label": toggleLabel, class: {
|
|
3281
|
-
[CSS$
|
|
3282
|
-
[CSS$
|
|
3283
|
-
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$
|
|
3284
|
-
[CSS$
|
|
3285
|
-
[CSS$
|
|
3286
|
-
}, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$
|
|
3287
|
-
return (h("section", { "aria-expanded": open.toString() }, headerNode, h("div", { class: CSS$
|
|
3281
|
+
[CSS$K.toggle]: true,
|
|
3282
|
+
[CSS$K.toggleSwitch]: true
|
|
3283
|
+
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS$K.toggleSwitchContent }, h("span", { class: CSS$K.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-label": toggleLabel, class: {
|
|
3284
|
+
[CSS$K.sectionHeader]: true,
|
|
3285
|
+
[CSS$K.toggle]: true
|
|
3286
|
+
}, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS$K.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
3287
|
+
return (h("section", { "aria-expanded": open.toString() }, headerNode, h("div", { class: CSS$K.content, hidden: !open }, h("slot", null))));
|
|
3288
3288
|
}
|
|
3289
3289
|
get el() { return this; }
|
|
3290
3290
|
static get style() { return calciteBlockSectionCss; }
|
|
@@ -3318,7 +3318,7 @@ let CalciteBlockSection$1 = class extends HTMLElement$1 {
|
|
|
3318
3318
|
}
|
|
3319
3319
|
})(HTMLFormElement.prototype);
|
|
3320
3320
|
|
|
3321
|
-
const CSS$
|
|
3321
|
+
const CSS$J = {
|
|
3322
3322
|
buttonLoader: "calcite-button--loader",
|
|
3323
3323
|
content: "content",
|
|
3324
3324
|
contentSlotted: "content--slotted",
|
|
@@ -3507,14 +3507,14 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
render() {
|
|
3509
3509
|
const Tag = this.childElType;
|
|
3510
|
-
const loaderNode = this.hasLoader ? (h("div", { class: CSS$
|
|
3511
|
-
const iconStartEl = (h("calcite-icon", { class: { [CSS$
|
|
3512
|
-
const iconEndEl = (h("calcite-icon", { class: { [CSS$
|
|
3513
|
-
const contentEl = (h("span", { class: CSS$
|
|
3510
|
+
const loaderNode = this.hasLoader ? (h("div", { class: CSS$J.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS$J.loadingIn : CSS$J.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
3511
|
+
const iconStartEl = (h("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
3512
|
+
const iconEndEl = (h("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
3513
|
+
const contentEl = (h("span", { class: CSS$J.content }, h("slot", null)));
|
|
3514
3514
|
return (h(Tag, { "aria-label": getLabelText(this), class: {
|
|
3515
|
-
[CSS$
|
|
3516
|
-
[CSS$
|
|
3517
|
-
[CSS$
|
|
3515
|
+
[CSS$J.contentSlotted]: this.hasContent,
|
|
3516
|
+
[CSS$J.iconStartEmpty]: !this.iconStart,
|
|
3517
|
+
[CSS$J.iconEndEmpty]: !this.iconEnd
|
|
3518
3518
|
}, disabled: this.disabled || this.loading, href: this.childElType === "a" && this.href, name: this.childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: this.childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: this.childElType === "a" && this.target, type: this.childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
3519
3519
|
}
|
|
3520
3520
|
//--------------------------------------------------------------------------
|
|
@@ -3555,7 +3555,7 @@ let CalciteButton$1 = class extends HTMLElement$1 {
|
|
|
3555
3555
|
static get style() { return calciteButtonCss; }
|
|
3556
3556
|
};
|
|
3557
3557
|
|
|
3558
|
-
const CSS$
|
|
3558
|
+
const CSS$I = {
|
|
3559
3559
|
container: "container",
|
|
3560
3560
|
header: "header",
|
|
3561
3561
|
footer: "footer",
|
|
@@ -3637,7 +3637,7 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3637
3637
|
//
|
|
3638
3638
|
// --------------------------------------------------------------------------
|
|
3639
3639
|
render() {
|
|
3640
|
-
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS$
|
|
3640
|
+
return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter())));
|
|
3641
3641
|
}
|
|
3642
3642
|
selectCard() {
|
|
3643
3643
|
this.selected = !this.selected;
|
|
@@ -3645,23 +3645,23 @@ let CalciteCard$1 = class extends HTMLElement$1 {
|
|
|
3645
3645
|
}
|
|
3646
3646
|
renderThumbnail() {
|
|
3647
3647
|
const hasThumbnail = this.el.querySelector(`[slot=${SLOTS$j.thumbnail}]`);
|
|
3648
|
-
return hasThumbnail ? (h("div", { class: CSS$
|
|
3648
|
+
return hasThumbnail ? (h("div", { class: CSS$I.thumbnailWrapper }, h("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
3649
3649
|
}
|
|
3650
3650
|
renderCheckbox() {
|
|
3651
3651
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
3652
|
-
return (h("calcite-label", { class: CSS$
|
|
3652
|
+
return (h("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
3653
3653
|
}
|
|
3654
3654
|
renderHeader() {
|
|
3655
3655
|
const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
|
|
3656
3656
|
const subtitle = this.el.querySelector(`[slot=${SLOTS$j.subtitle}]`);
|
|
3657
3657
|
const hasHeader = title || subtitle;
|
|
3658
|
-
return hasHeader ? (h("header", { class: CSS$
|
|
3658
|
+
return hasHeader ? (h("header", { class: CSS$I.header }, h("slot", { name: SLOTS$j.title }), h("slot", { name: SLOTS$j.subtitle }))) : null;
|
|
3659
3659
|
}
|
|
3660
3660
|
renderFooter() {
|
|
3661
3661
|
const leadingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerLeading}]`);
|
|
3662
3662
|
const trailingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerTrailing}]`);
|
|
3663
3663
|
const hasFooter = leadingFooter || trailingFooter;
|
|
3664
|
-
return hasFooter ? (h("footer", { class: CSS$
|
|
3664
|
+
return hasFooter ? (h("footer", { class: CSS$I.footer }, h("slot", { name: SLOTS$j.footerLeading }), h("slot", { name: SLOTS$j.footerTrailing }))) : null;
|
|
3665
3665
|
}
|
|
3666
3666
|
get el() { return this; }
|
|
3667
3667
|
static get style() { return calciteCardCss; }
|
|
@@ -3946,13 +3946,13 @@ let CalciteCheckbox$1 = class extends HTMLElement$1 {
|
|
|
3946
3946
|
//
|
|
3947
3947
|
// --------------------------------------------------------------------------
|
|
3948
3948
|
render() {
|
|
3949
|
-
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: 0 }, h("svg", { class: "check-svg", viewBox: "0 0 16 16" }, h("path", { d: this.getPath() })), h("slot", null)), h(HiddenFormInputSlot, { component: this })));
|
|
3949
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: this.disabled ? undefined : 0 }, h("svg", { class: "check-svg", viewBox: "0 0 16 16" }, h("path", { d: this.getPath() })), h("slot", null)), h(HiddenFormInputSlot, { component: this })));
|
|
3950
3950
|
}
|
|
3951
3951
|
get el() { return this; }
|
|
3952
3952
|
static get style() { return calciteCheckboxCss; }
|
|
3953
3953
|
};
|
|
3954
3954
|
|
|
3955
|
-
const CSS$
|
|
3955
|
+
const CSS$H = {
|
|
3956
3956
|
title: "title",
|
|
3957
3957
|
close: "close",
|
|
3958
3958
|
chipImageContainer: "chip-image-container",
|
|
@@ -4024,12 +4024,12 @@ let CalciteChip$1 = class extends HTMLElement$1 {
|
|
|
4024
4024
|
renderChipImage() {
|
|
4025
4025
|
const { el } = this;
|
|
4026
4026
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
4027
|
-
return hasChipImage ? (h("div", { class: CSS$
|
|
4027
|
+
return hasChipImage ? (h("div", { class: CSS$H.chipImageContainer }, h("slot", { name: SLOTS$i.image }))) : null;
|
|
4028
4028
|
}
|
|
4029
4029
|
render() {
|
|
4030
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
4031
|
-
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
4032
|
-
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$
|
|
4030
|
+
const iconEl = (h("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
4031
|
+
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$H.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { icon: ICONS$a.close, scale: "s" })));
|
|
4032
|
+
return (h("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS$H.title, id: this.guid }, h("slot", null)), this.dismissible ? closeButton : null));
|
|
4033
4033
|
}
|
|
4034
4034
|
get el() { return this; }
|
|
4035
4035
|
static get style() { return calciteChipCss; }
|
|
@@ -6139,7 +6139,7 @@ function zeroArray(array, length) {
|
|
|
6139
6139
|
|
|
6140
6140
|
var color = Color;
|
|
6141
6141
|
|
|
6142
|
-
const CSS$
|
|
6142
|
+
const CSS$G = {
|
|
6143
6143
|
container: "container",
|
|
6144
6144
|
controlSection: "control-section",
|
|
6145
6145
|
hexOptions: "color-hex-options",
|
|
@@ -6633,7 +6633,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6633
6633
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
6634
6634
|
const active = channelMode === activeChannelMode;
|
|
6635
6635
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
6636
|
-
return (h("calcite-tab-title", { active: active, class: CSS$
|
|
6636
|
+
return (h("calcite-tab-title", { active: active, class: CSS$G.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
6637
6637
|
};
|
|
6638
6638
|
this.renderChannelsTab = (channelMode) => {
|
|
6639
6639
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -6643,9 +6643,9 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6643
6643
|
const channelAriaLabels = isRgb
|
|
6644
6644
|
? [intlRed, intlGreen, intlBlue]
|
|
6645
6645
|
: [intlHue, intlSaturation, intlValue];
|
|
6646
|
-
return (h("calcite-tab", { active: active, class: CSS$
|
|
6646
|
+
return (h("calcite-tab", { active: active, class: CSS$G.control, key: channelMode }, h("div", { class: CSS$G.channels }, channels.map((channel, index) => this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index])))));
|
|
6647
6647
|
};
|
|
6648
|
-
this.renderChannel = (value, index, label, ariaLabel) => (h("calcite-input", { class: CSS$
|
|
6648
|
+
this.renderChannel = (value, index, label, ariaLabel) => (h("calcite-input", { class: CSS$G.channel, "data-channel-index": index, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
6649
6649
|
this.deleteColor = () => {
|
|
6650
6650
|
const colorToDelete = this.color.hex();
|
|
6651
6651
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -6760,7 +6760,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6760
6760
|
this.shiftKeyChannelAdjustment = 0;
|
|
6761
6761
|
const key = event.key;
|
|
6762
6762
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
6763
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
6763
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$G.channel); })) {
|
|
6764
6764
|
return;
|
|
6765
6765
|
}
|
|
6766
6766
|
const { shiftKey } = event;
|
|
@@ -6828,20 +6828,20 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
6828
6828
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
6829
6829
|
const noColor = color === null;
|
|
6830
6830
|
const vertical = scopeOrientation === "vertical";
|
|
6831
|
-
return (h("div", { class: CSS$
|
|
6832
|
-
[CSS$
|
|
6833
|
-
[CSS$
|
|
6834
|
-
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$
|
|
6835
|
-
[CSS$
|
|
6836
|
-
[CSS$
|
|
6837
|
-
} }, hideHex ? null : (h("div", { class: CSS$
|
|
6838
|
-
[CSS$
|
|
6839
|
-
[CSS$
|
|
6840
|
-
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
6841
|
-
[CSS$
|
|
6842
|
-
[CSS$
|
|
6843
|
-
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$
|
|
6844
|
-
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
6831
|
+
return (h("div", { class: CSS$G.container }, h("div", { class: CSS$G.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
6832
|
+
[CSS$G.colorFieldAndSlider]: true,
|
|
6833
|
+
[CSS$G.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
6834
|
+
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS$G.scope]: true, [CSS$G.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR$1.round().hue(), class: { [CSS$G.scope]: true, [CSS$G.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
6835
|
+
[CSS$G.controlSection]: true,
|
|
6836
|
+
[CSS$G.section]: true
|
|
6837
|
+
} }, hideHex ? null : (h("div", { class: CSS$G.hexOptions }, h("span", { class: {
|
|
6838
|
+
[CSS$G.header]: true,
|
|
6839
|
+
[CSS$G.headerHex]: true
|
|
6840
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$G.control, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
6841
|
+
[CSS$G.colorModeContainer]: true,
|
|
6842
|
+
[CSS$G.splitSection]: true
|
|
6843
|
+
}, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS$G.savedColorsSection]: true, [CSS$G.section]: true } }, h("div", { class: CSS$G.header }, h("label", null, intlSaved), h("div", { class: CSS$G.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS$G.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale }), h("calcite-button", { appearance: "transparent", class: CSS$G.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale }))), savedColors.length > 0 ? (h("div", { class: CSS$G.savedColors }, [
|
|
6844
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$G.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
6845
6845
|
])) : null))));
|
|
6846
6846
|
}
|
|
6847
6847
|
// --------------------------------------------------------------------------
|
|
@@ -7019,7 +7019,7 @@ let CalciteColorPicker$1 = class extends HTMLElement$1 {
|
|
|
7019
7019
|
static get style() { return calciteColorPickerCss; }
|
|
7020
7020
|
};
|
|
7021
7021
|
|
|
7022
|
-
const CSS$
|
|
7022
|
+
const CSS$F = {
|
|
7023
7023
|
container: "container",
|
|
7024
7024
|
preview: "preview",
|
|
7025
7025
|
input: "input"
|
|
@@ -7188,7 +7188,7 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7188
7188
|
render() {
|
|
7189
7189
|
const { intlHex, value } = this;
|
|
7190
7190
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7191
|
-
return (h("div", { class: CSS$
|
|
7191
|
+
return (h("div", { class: CSS$F.container }, h("calcite-input", { class: CSS$F.input, label: intlHex, maxLength: 6, onCalciteInputBlur: this.onCalciteInputBlur, onCalciteInputChange: this.onInputChange, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7192
7192
|
}
|
|
7193
7193
|
//--------------------------------------------------------------------------
|
|
7194
7194
|
//
|
|
@@ -7212,7 +7212,7 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement$1 {
|
|
|
7212
7212
|
static get style() { return calciteColorPickerHexInputCss; }
|
|
7213
7213
|
};
|
|
7214
7214
|
|
|
7215
|
-
const CSS$
|
|
7215
|
+
const CSS$E = {
|
|
7216
7216
|
swatch: "swatch",
|
|
7217
7217
|
noColorIcon: "no-color-icon"
|
|
7218
7218
|
};
|
|
@@ -7259,7 +7259,7 @@ let CalciteColorPickerSwatch$1 = class extends HTMLElement$1 {
|
|
|
7259
7259
|
const hex = internalColor.hex();
|
|
7260
7260
|
const theme = getThemeName(el);
|
|
7261
7261
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
7262
|
-
return (h("svg", { class: CSS$
|
|
7262
|
+
return (h("svg", { class: CSS$E.swatch, xmlns: "http://www.w3.org/2000/svg" }, h("title", null, hex), h("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
7263
7263
|
}
|
|
7264
7264
|
get el() { return this; }
|
|
7265
7265
|
static get watchers() { return {
|
|
@@ -9066,7 +9066,7 @@ var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
|
9066
9066
|
defaultModifiers: defaultModifiers
|
|
9067
9067
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
9068
9068
|
|
|
9069
|
-
const CSS$
|
|
9069
|
+
const CSS$D = {
|
|
9070
9070
|
animation: "calcite-popper-anim",
|
|
9071
9071
|
animationActive: "calcite-popper-anim--active"
|
|
9072
9072
|
};
|
|
@@ -9822,8 +9822,8 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9822
9822
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
9823
9823
|
const classes = {
|
|
9824
9824
|
"list-container": true,
|
|
9825
|
-
[CSS$
|
|
9826
|
-
[CSS$
|
|
9825
|
+
[CSS$D.animation]: true,
|
|
9826
|
+
[CSS$D.animationActive]: active
|
|
9827
9827
|
};
|
|
9828
9828
|
const style = {
|
|
9829
9829
|
maxHeight: maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : ""
|
|
@@ -9860,7 +9860,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
|
|
|
9860
9860
|
static get style() { return calciteComboboxCss; }
|
|
9861
9861
|
};
|
|
9862
9862
|
|
|
9863
|
-
const CSS$
|
|
9863
|
+
const CSS$C = {
|
|
9864
9864
|
icon: "icon",
|
|
9865
9865
|
iconActive: "icon--active",
|
|
9866
9866
|
custom: "icon--custom",
|
|
@@ -9945,18 +9945,18 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9945
9945
|
// --------------------------------------------------------------------------
|
|
9946
9946
|
renderIcon(isSingle) {
|
|
9947
9947
|
const { icon, disabled, selected } = this;
|
|
9948
|
-
const level = `${CSS$
|
|
9948
|
+
const level = `${CSS$C.icon}--indent`;
|
|
9949
9949
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
9950
9950
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
9951
9951
|
const showDot = isSingle && !icon && !disabled;
|
|
9952
9952
|
return showDot ? (h("span", { class: {
|
|
9953
|
-
[CSS$
|
|
9954
|
-
[CSS$
|
|
9953
|
+
[CSS$C.icon]: true,
|
|
9954
|
+
[CSS$C.dot]: true,
|
|
9955
9955
|
[level]: true
|
|
9956
9956
|
} })) : (h("calcite-icon", { class: {
|
|
9957
|
-
[CSS$
|
|
9958
|
-
[CSS$
|
|
9959
|
-
[CSS$
|
|
9957
|
+
[CSS$C.icon]: !icon,
|
|
9958
|
+
[CSS$C.custom]: !!icon,
|
|
9959
|
+
[CSS$C.iconActive]: icon && selected,
|
|
9960
9960
|
[level]: true
|
|
9961
9961
|
}, icon: icon || iconPath, scale: "s" }));
|
|
9962
9962
|
}
|
|
@@ -9969,13 +9969,13 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9969
9969
|
render() {
|
|
9970
9970
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
9971
9971
|
const classes = {
|
|
9972
|
-
[CSS$
|
|
9973
|
-
[CSS$
|
|
9974
|
-
[CSS$
|
|
9975
|
-
[CSS$
|
|
9972
|
+
[CSS$C.label]: true,
|
|
9973
|
+
[CSS$C.selected]: this.selected,
|
|
9974
|
+
[CSS$C.active]: this.active,
|
|
9975
|
+
[CSS$C.single]: isSingleSelect
|
|
9976
9976
|
};
|
|
9977
9977
|
const depth = getDepth(this.el);
|
|
9978
|
-
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$
|
|
9978
|
+
return (h(Host, { "aria-hidden": "true" }, h("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, h("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), h("span", { class: CSS$C.title }, this.textLabel)), this.renderChildren())));
|
|
9979
9979
|
}
|
|
9980
9980
|
get el() { return this; }
|
|
9981
9981
|
static get watchers() { return {
|
|
@@ -9984,7 +9984,7 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
|
|
|
9984
9984
|
static get style() { return calciteComboboxItemCss; }
|
|
9985
9985
|
};
|
|
9986
9986
|
|
|
9987
|
-
const CSS$
|
|
9987
|
+
const CSS$B = {
|
|
9988
9988
|
list: "list",
|
|
9989
9989
|
label: "label",
|
|
9990
9990
|
title: "title"
|
|
@@ -10016,8 +10016,8 @@ let CalciteComboboxItemGroup$1 = class extends HTMLElement$1 {
|
|
|
10016
10016
|
// --------------------------------------------------------------------------
|
|
10017
10017
|
render() {
|
|
10018
10018
|
const { el, scale } = this;
|
|
10019
|
-
const indent = `${CSS$
|
|
10020
|
-
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
10019
|
+
const indent = `${CSS$B.label}--indent-${getDepth(el)}`;
|
|
10020
|
+
return (h("ul", { "aria-labelledby": this.guid, class: { [CSS$B.list]: true, [`scale--${scale}`]: true }, role: "group" }, h("li", { class: { [CSS$B.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, h("span", { class: CSS$B.title }, this.label)), h("slot", null)));
|
|
10021
10021
|
}
|
|
10022
10022
|
get el() { return this; }
|
|
10023
10023
|
static get style() { return calciteComboboxItemGroupCss; }
|
|
@@ -10033,7 +10033,7 @@ function isValidNumber(numberString) {
|
|
|
10033
10033
|
}
|
|
10034
10034
|
function parseNumberString(numberString) {
|
|
10035
10035
|
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
10036
|
-
return
|
|
10036
|
+
return "";
|
|
10037
10037
|
}
|
|
10038
10038
|
let containsDecimal = false;
|
|
10039
10039
|
const result = numberString
|
|
@@ -10052,17 +10052,24 @@ function parseNumberString(numberString) {
|
|
|
10052
10052
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
10053
10053
|
}
|
|
10054
10054
|
function sanitizeDecimalString(decimalString) {
|
|
10055
|
-
|
|
10055
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
10056
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
10056
10057
|
}
|
|
10057
10058
|
function sanitizeNegativeString(negativeString) {
|
|
10058
|
-
|
|
10059
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
10060
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
10059
10061
|
}
|
|
10060
10062
|
function sanitizeLeadingZeroString(zeroString) {
|
|
10061
|
-
|
|
10063
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
10064
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
10062
10065
|
}
|
|
10063
10066
|
function sanitizeNumberString(value) {
|
|
10064
|
-
|
|
10065
|
-
|
|
10067
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
10068
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
10069
|
+
return isValidNumber(sanitizedValue)
|
|
10070
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
10071
|
+
? sanitizedValue
|
|
10072
|
+
: Number(sanitizedValue).toString()
|
|
10066
10073
|
: value;
|
|
10067
10074
|
}
|
|
10068
10075
|
function stringContainsNumbers(string) {
|
|
@@ -11406,8 +11413,8 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11406
11413
|
const { active } = this;
|
|
11407
11414
|
return (h(Host, { tabIndex: this.disabled ? -1 : null }, h("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": active.toString(), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger })), h("div", { "aria-hidden": (!active).toString(), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, h("div", { class: {
|
|
11408
11415
|
["calcite-dropdown-content"]: true,
|
|
11409
|
-
[CSS$
|
|
11410
|
-
[CSS$
|
|
11416
|
+
[CSS$D.animation]: true,
|
|
11417
|
+
[CSS$D.animationActive]: active
|
|
11411
11418
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("slot", null)))));
|
|
11412
11419
|
}
|
|
11413
11420
|
//--------------------------------------------------------------------------
|
|
@@ -11600,7 +11607,7 @@ let CalciteDropdown$1 = class extends HTMLElement$1 {
|
|
|
11600
11607
|
static get style() { return calciteDropdownCss; }
|
|
11601
11608
|
};
|
|
11602
11609
|
|
|
11603
|
-
const CSS$
|
|
11610
|
+
const CSS$A = {
|
|
11604
11611
|
containerSmall: "container--s",
|
|
11605
11612
|
containerMedium: "container--m",
|
|
11606
11613
|
containerLarge: "container--l"
|
|
@@ -11632,9 +11639,9 @@ let CalciteDropdownGroup$1 = class extends HTMLElement$1 {
|
|
|
11632
11639
|
const dropdownSeparator = this.groupPosition > 0 ? h("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
11633
11640
|
return (h(Host, { role: "menu" }, h("div", { class: {
|
|
11634
11641
|
container: true,
|
|
11635
|
-
[CSS$
|
|
11636
|
-
[CSS$
|
|
11637
|
-
[CSS$
|
|
11642
|
+
[CSS$A.containerSmall]: scale === "s",
|
|
11643
|
+
[CSS$A.containerMedium]: scale === "m",
|
|
11644
|
+
[CSS$A.containerLarge]: scale === "l"
|
|
11638
11645
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, h("slot", null))));
|
|
11639
11646
|
}
|
|
11640
11647
|
//--------------------------------------------------------------------------
|
|
@@ -11662,7 +11669,7 @@ let CalciteDropdownGroup$1 = class extends HTMLElement$1 {
|
|
|
11662
11669
|
static get style() { return calciteDropdownGroupCss; }
|
|
11663
11670
|
};
|
|
11664
11671
|
|
|
11665
|
-
const CSS$
|
|
11672
|
+
const CSS$z = {
|
|
11666
11673
|
containerLink: "container--link",
|
|
11667
11674
|
containerSmall: "container--s",
|
|
11668
11675
|
containerMedium: "container--m",
|
|
@@ -11734,13 +11741,13 @@ let CalciteDropdownItem$1 = class extends HTMLElement$1 {
|
|
|
11734
11741
|
const itemAria = this.selectionMode !== "none" ? this.active.toString() : null;
|
|
11735
11742
|
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
11736
11743
|
container: true,
|
|
11737
|
-
[CSS$
|
|
11738
|
-
[CSS$
|
|
11739
|
-
[CSS$
|
|
11740
|
-
[CSS$
|
|
11741
|
-
[CSS$
|
|
11742
|
-
[CSS$
|
|
11743
|
-
[CSS$
|
|
11744
|
+
[CSS$z.containerLink]: !!this.href,
|
|
11745
|
+
[CSS$z.containerSmall]: scale === "s",
|
|
11746
|
+
[CSS$z.containerMedium]: scale === "m",
|
|
11747
|
+
[CSS$z.containerLarge]: scale === "l",
|
|
11748
|
+
[CSS$z.containerMulti]: this.selectionMode === "multi",
|
|
11749
|
+
[CSS$z.containerSingle]: this.selectionMode === "single",
|
|
11750
|
+
[CSS$z.containerNone]: this.selectionMode === "none"
|
|
11744
11751
|
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
11745
11752
|
}
|
|
11746
11753
|
//--------------------------------------------------------------------------
|
|
@@ -11822,7 +11829,7 @@ let CalciteDropdownItem$1 = class extends HTMLElement$1 {
|
|
|
11822
11829
|
static get style() { return calciteDropdownItemCss; }
|
|
11823
11830
|
};
|
|
11824
11831
|
|
|
11825
|
-
const CSS$
|
|
11832
|
+
const CSS$y = {
|
|
11826
11833
|
button: "button"
|
|
11827
11834
|
};
|
|
11828
11835
|
const ICONS$9 = {
|
|
@@ -11888,7 +11895,7 @@ let CalciteFab$1 = class extends HTMLElement$1 {
|
|
|
11888
11895
|
render() {
|
|
11889
11896
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
11890
11897
|
const title = !textEnabled ? label || text || null : null;
|
|
11891
|
-
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
11898
|
+
return (h("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$y.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
11892
11899
|
this.buttonEl = buttonEl;
|
|
11893
11900
|
}, round: true, scale: scale, title: title, width: "auto" }, this.textEnabled ? this.text : null));
|
|
11894
11901
|
}
|
|
@@ -11896,7 +11903,7 @@ let CalciteFab$1 = class extends HTMLElement$1 {
|
|
|
11896
11903
|
static get style() { return calciteFabCss; }
|
|
11897
11904
|
};
|
|
11898
11905
|
|
|
11899
|
-
const CSS$
|
|
11906
|
+
const CSS$x = {
|
|
11900
11907
|
container: "container",
|
|
11901
11908
|
searchIcon: "search-icon",
|
|
11902
11909
|
clearButton: "clear-button"
|
|
@@ -12003,9 +12010,9 @@ let CalciteFilter$1 = class extends HTMLElement$1 {
|
|
|
12003
12010
|
// --------------------------------------------------------------------------
|
|
12004
12011
|
render() {
|
|
12005
12012
|
const { disabled } = this;
|
|
12006
|
-
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$
|
|
12013
|
+
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$x.container }, h("label", null, h("calcite-input", { "aria-label": this.intlLabel || TEXT$d.filterLabel, disabled: this.disabled, icon: ICONS$8.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
12007
12014
|
this.textInput = el;
|
|
12008
|
-
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$
|
|
12015
|
+
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$x.clearButton, onClick: this.clear }, h("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
12009
12016
|
}
|
|
12010
12017
|
get el() { return this; }
|
|
12011
12018
|
static get watchers() { return {
|
|
@@ -12015,7 +12022,7 @@ let CalciteFilter$1 = class extends HTMLElement$1 {
|
|
|
12015
12022
|
static get style() { return calciteFilterCss; }
|
|
12016
12023
|
};
|
|
12017
12024
|
|
|
12018
|
-
const CSS$
|
|
12025
|
+
const CSS$w = {
|
|
12019
12026
|
frame: "frame",
|
|
12020
12027
|
frameAdvancing: "frame--advancing",
|
|
12021
12028
|
frameRetreating: "frame--retreating"
|
|
@@ -12115,9 +12122,9 @@ let CalciteFlow$1 = class extends HTMLElement$1 {
|
|
|
12115
12122
|
render() {
|
|
12116
12123
|
const { flowDirection, panelCount } = this;
|
|
12117
12124
|
const frameDirectionClasses = {
|
|
12118
|
-
[CSS$
|
|
12119
|
-
[CSS$
|
|
12120
|
-
[CSS$
|
|
12125
|
+
[CSS$w.frame]: true,
|
|
12126
|
+
[CSS$w.frameAdvancing]: flowDirection === "advancing",
|
|
12127
|
+
[CSS$w.frameRetreating]: flowDirection === "retreating"
|
|
12121
12128
|
};
|
|
12122
12129
|
return (h("div", { class: frameDirectionClasses, key: panelCount }, h("slot", null)));
|
|
12123
12130
|
}
|
|
@@ -12309,7 +12316,7 @@ let CalciteGraph$1 = class extends HTMLElement$1 {
|
|
|
12309
12316
|
static get style() { return calciteGraphCss; }
|
|
12310
12317
|
};
|
|
12311
12318
|
|
|
12312
|
-
const CSS$
|
|
12319
|
+
const CSS$v = {
|
|
12313
12320
|
handle: "handle",
|
|
12314
12321
|
handleActivated: "handle--activated"
|
|
12315
12322
|
};
|
|
@@ -12379,7 +12386,7 @@ let CalciteHandle$1 = class extends HTMLElement$1 {
|
|
|
12379
12386
|
render() {
|
|
12380
12387
|
return (
|
|
12381
12388
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
12382
|
-
h("span", { "aria-pressed": this.activated.toString(), class: { [CSS$
|
|
12389
|
+
h("span", { "aria-pressed": this.activated.toString(), class: { [CSS$v.handle]: true, [CSS$v.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
12383
12390
|
this.handleButton = el;
|
|
12384
12391
|
}, role: "button", tabindex: "0", title: this.textTitle }, h("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
12385
12392
|
}
|
|
@@ -12387,7 +12394,7 @@ let CalciteHandle$1 = class extends HTMLElement$1 {
|
|
|
12387
12394
|
static get style() { return calciteHandleCss; }
|
|
12388
12395
|
};
|
|
12389
12396
|
|
|
12390
|
-
const CSS$
|
|
12397
|
+
const CSS$u = {
|
|
12391
12398
|
icon: "icon",
|
|
12392
12399
|
flipRtl: "flip-rtl"
|
|
12393
12400
|
};
|
|
@@ -12503,7 +12510,7 @@ let CalciteIcon$1 = class extends HTMLElement$1 {
|
|
|
12503
12510
|
const semantic = !!textLabel;
|
|
12504
12511
|
const paths = [].concat(pathData || "");
|
|
12505
12512
|
return (h(Host, { "aria-hidden": (!semantic).toString(), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, h("svg", { class: {
|
|
12506
|
-
[CSS$
|
|
12513
|
+
[CSS$u.flipRtl]: dir === "rtl" && flipRtl,
|
|
12507
12514
|
svg: true
|
|
12508
12515
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (h("path", { d: path })) : (h("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
12509
12516
|
}
|
|
@@ -12544,7 +12551,7 @@ let CalciteIcon$1 = class extends HTMLElement$1 {
|
|
|
12544
12551
|
static get style() { return calciteIconCss; }
|
|
12545
12552
|
};
|
|
12546
12553
|
|
|
12547
|
-
const CSS$
|
|
12554
|
+
const CSS$t = {
|
|
12548
12555
|
wrapper: "wrapper",
|
|
12549
12556
|
confirmChangesButton: "confirm-changes-button",
|
|
12550
12557
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -12692,12 +12699,12 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12692
12699
|
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
12693
12700
|
}
|
|
12694
12701
|
render() {
|
|
12695
|
-
return (h("div", { class: CSS$
|
|
12702
|
+
return (h("div", { class: CSS$t.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, h("div", { class: CSS$t.inputWrapper }, h("slot", null)), h("div", { class: CSS$t.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$t.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
12696
12703
|
opacity: this.editingEnabled ? "0" : "1",
|
|
12697
12704
|
width: this.editingEnabled ? "0" : "inherit"
|
|
12698
12705
|
} }), this.shouldShowControls && [
|
|
12699
|
-
h("div", { class: CSS$
|
|
12700
|
-
h("calcite-button", { appearance: "solid", class: CSS$
|
|
12706
|
+
h("div", { class: CSS$t.cancelEditingButtonWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$t.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale })),
|
|
12707
|
+
h("calcite-button", { appearance: "solid", class: CSS$t.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale })
|
|
12701
12708
|
])));
|
|
12702
12709
|
}
|
|
12703
12710
|
//--------------------------------------------------------------------------
|
|
@@ -12743,7 +12750,7 @@ let CalciteInlineEditable$1 = class extends HTMLElement$1 {
|
|
|
12743
12750
|
static get style() { return calciteInlineEditableCss; }
|
|
12744
12751
|
};
|
|
12745
12752
|
|
|
12746
|
-
const CSS$
|
|
12753
|
+
const CSS$s = {
|
|
12747
12754
|
loader: "loader",
|
|
12748
12755
|
clearButton: "clear-button",
|
|
12749
12756
|
editingEnabled: "editing-enabled",
|
|
@@ -12993,18 +13000,19 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
12993
13000
|
};
|
|
12994
13001
|
this.setValue = (value, nativeEvent, committing = false) => {
|
|
12995
13002
|
const previousValue = this.value;
|
|
12996
|
-
this.value = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
12997
13003
|
if (this.type === "number") {
|
|
12998
|
-
|
|
13004
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
13005
|
+
this.value = sanitizedValue;
|
|
13006
|
+
this.setLocalizedValue(sanitizedValue);
|
|
13007
|
+
}
|
|
13008
|
+
else {
|
|
13009
|
+
this.value = value;
|
|
12999
13010
|
}
|
|
13000
13011
|
if (nativeEvent) {
|
|
13001
|
-
if (this.type === "number") {
|
|
13002
|
-
value = sanitizeNumberString(value);
|
|
13003
|
-
}
|
|
13004
13012
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
13005
13013
|
element: this.childEl,
|
|
13006
13014
|
nativeEvent,
|
|
13007
|
-
value
|
|
13015
|
+
value: this.value
|
|
13008
13016
|
});
|
|
13009
13017
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
13010
13018
|
this.value = previousValue;
|
|
@@ -13070,7 +13078,7 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13070
13078
|
this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
|
|
13071
13079
|
}
|
|
13072
13080
|
else {
|
|
13073
|
-
this.value =
|
|
13081
|
+
this.value = "";
|
|
13074
13082
|
}
|
|
13075
13083
|
}
|
|
13076
13084
|
connectLabel(this);
|
|
@@ -13169,34 +13177,34 @@ let CalciteInput$1 = class extends HTMLElement$1 {
|
|
|
13169
13177
|
// --------------------------------------------------------------------------
|
|
13170
13178
|
render() {
|
|
13171
13179
|
const dir = getElementDir(this.el);
|
|
13172
|
-
const loader = (h("div", { class: CSS$
|
|
13173
|
-
const inputClearButton = (h("button", { class: CSS$
|
|
13174
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
13180
|
+
const loader = (h("div", { class: CSS$s.loader }, h("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
13181
|
+
const inputClearButton = (h("button", { class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, h("calcite-icon", { icon: "x", scale: "s" })));
|
|
13182
|
+
const iconEl = (h("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
13175
13183
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
13176
13184
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
13177
|
-
[CSS$
|
|
13178
|
-
[CSS$
|
|
13185
|
+
[CSS$s.numberButtonItem]: true,
|
|
13186
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
13179
13187
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
13180
13188
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
13181
|
-
[CSS$
|
|
13182
|
-
[CSS$
|
|
13189
|
+
[CSS$s.numberButtonItem]: true,
|
|
13190
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
13183
13191
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
13184
|
-
const numberButtonsVertical = (h("div", { class: CSS$
|
|
13185
|
-
const prefixText = h("div", { class: CSS$
|
|
13186
|
-
const suffixText = h("div", { class: CSS$
|
|
13192
|
+
const numberButtonsVertical = (h("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
13193
|
+
const prefixText = h("div", { class: CSS$s.prefix }, this.prefixText);
|
|
13194
|
+
const suffixText = h("div", { class: CSS$s.suffix }, this.suffixText);
|
|
13187
13195
|
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;
|
|
13188
13196
|
const childEl = this.type !== "number"
|
|
13189
13197
|
? [
|
|
13190
13198
|
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
13191
|
-
[CSS$
|
|
13192
|
-
[CSS$
|
|
13199
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
13200
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
13193
13201
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
13194
|
-
this.isTextarea ? (h("div", { class: CSS$
|
|
13202
|
+
this.isTextarea ? (h("div", { class: CSS$s.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
13195
13203
|
]
|
|
13196
13204
|
: null;
|
|
13197
|
-
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$
|
|
13205
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
13198
13206
|
? numberButtonsHorizontalDown
|
|
13199
|
-
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$
|
|
13207
|
+
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$s.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$s.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
13200
13208
|
? numberButtonsVertical
|
|
13201
13209
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
13202
13210
|
? numberButtonsHorizontalUp
|
|
@@ -13458,8 +13466,8 @@ let CalciteInputDatePicker$1 = class extends HTMLElement$1 {
|
|
|
13458
13466
|
return (h(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": this.active.toString(), class: "input-container", role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.startInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": (!this.active).toString(), class: "menu-container", ref: this.setMenuEl }, h("div", { class: {
|
|
13459
13467
|
["calendar-picker-wrapper"]: true,
|
|
13460
13468
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
13461
|
-
[CSS$
|
|
13462
|
-
[CSS$
|
|
13469
|
+
[CSS$D.animation]: true,
|
|
13470
|
+
[CSS$D.animationActive]: this.active
|
|
13463
13471
|
}, onTransitionEnd: this.transitionEnd }, h("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
|
|
13464
13472
|
input: true,
|
|
13465
13473
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
@@ -14080,7 +14088,7 @@ let CalciteInputTimePicker$1 = class extends HTMLElement$1 {
|
|
|
14080
14088
|
static get style() { return calciteInputTimePickerCss; }
|
|
14081
14089
|
};
|
|
14082
14090
|
|
|
14083
|
-
const CSS$
|
|
14091
|
+
const CSS$r = {
|
|
14084
14092
|
container: "container"
|
|
14085
14093
|
};
|
|
14086
14094
|
|
|
@@ -14126,7 +14134,7 @@ let CalciteLabel$1 = class extends HTMLElement$1 {
|
|
|
14126
14134
|
//
|
|
14127
14135
|
//--------------------------------------------------------------------------
|
|
14128
14136
|
render() {
|
|
14129
|
-
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$
|
|
14137
|
+
return (h(Host, { onClick: this.labelClickHandler }, h("div", { class: CSS$r.container }, h("slot", null))));
|
|
14130
14138
|
}
|
|
14131
14139
|
get el() { return this; }
|
|
14132
14140
|
static get style() { return calciteLabelCss; }
|
|
@@ -14193,7 +14201,7 @@ let CalciteLink$1 = class extends HTMLElement$1 {
|
|
|
14193
14201
|
static get style() { return calciteLinkCss; }
|
|
14194
14202
|
};
|
|
14195
14203
|
|
|
14196
|
-
const CSS$
|
|
14204
|
+
const CSS$q = {
|
|
14197
14205
|
container: "container"
|
|
14198
14206
|
};
|
|
14199
14207
|
|
|
@@ -14221,13 +14229,13 @@ let CalciteList$1 = class extends HTMLElement$1 {
|
|
|
14221
14229
|
//
|
|
14222
14230
|
// --------------------------------------------------------------------------
|
|
14223
14231
|
render() {
|
|
14224
|
-
return (h(Host, { role: "list" }, h("div", { class: CSS$
|
|
14232
|
+
return (h(Host, { role: "list" }, h("div", { class: CSS$q.container }, h("slot", null))));
|
|
14225
14233
|
}
|
|
14226
14234
|
get el() { return this; }
|
|
14227
14235
|
static get style() { return calciteListCss; }
|
|
14228
14236
|
};
|
|
14229
14237
|
|
|
14230
|
-
const CSS$
|
|
14238
|
+
const CSS$p = {
|
|
14231
14239
|
container: "container",
|
|
14232
14240
|
contentContainer: "content-container",
|
|
14233
14241
|
nestedContainer: "nested-container",
|
|
@@ -14285,37 +14293,37 @@ let CalciteListItem$1 = class extends HTMLElement$1 {
|
|
|
14285
14293
|
// --------------------------------------------------------------------------
|
|
14286
14294
|
renderActionsStart() {
|
|
14287
14295
|
const { el } = this;
|
|
14288
|
-
return getSlotted(el, SLOTS$f.actionsStart) ? (h("div", { class: CSS$
|
|
14296
|
+
return getSlotted(el, SLOTS$f.actionsStart) ? (h("div", { class: CSS$p.actionsStart }, h("slot", { name: SLOTS$f.actionsStart }))) : null;
|
|
14289
14297
|
}
|
|
14290
14298
|
renderActionsEnd() {
|
|
14291
14299
|
const { el } = this;
|
|
14292
|
-
return getSlotted(el, SLOTS$f.actionsEnd) ? (h("div", { class: CSS$
|
|
14300
|
+
return getSlotted(el, SLOTS$f.actionsEnd) ? (h("div", { class: CSS$p.actionsEnd }, h("slot", { name: SLOTS$f.actionsEnd }))) : null;
|
|
14293
14301
|
}
|
|
14294
14302
|
renderContentStart() {
|
|
14295
14303
|
const { el } = this;
|
|
14296
|
-
return getSlotted(el, SLOTS$f.contentStart) ? (h("div", { class: CSS$
|
|
14304
|
+
return getSlotted(el, SLOTS$f.contentStart) ? (h("div", { class: CSS$p.contentStart }, h("slot", { name: SLOTS$f.contentStart }))) : null;
|
|
14297
14305
|
}
|
|
14298
14306
|
renderContentEnd() {
|
|
14299
14307
|
const { el } = this;
|
|
14300
|
-
return getSlotted(el, SLOTS$f.contentEnd) ? (h("div", { class: CSS$
|
|
14308
|
+
return getSlotted(el, SLOTS$f.contentEnd) ? (h("div", { class: CSS$p.contentEnd }, h("slot", { name: SLOTS$f.contentEnd }))) : null;
|
|
14301
14309
|
}
|
|
14302
14310
|
renderContent() {
|
|
14303
14311
|
const { label, description } = this;
|
|
14304
|
-
return !!label || !!description ? (h("div", { class: CSS$
|
|
14312
|
+
return !!label || !!description ? (h("div", { class: CSS$p.content }, label ? h("div", { class: CSS$p.label }, label) : null, description ? h("div", { class: CSS$p.description }, description) : null)) : null;
|
|
14305
14313
|
}
|
|
14306
14314
|
renderContentContainer() {
|
|
14307
14315
|
const { disabled, nonInteractive } = this;
|
|
14308
14316
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
14309
|
-
return !nonInteractive ? (h("button", { class: { [CSS$
|
|
14317
|
+
return !nonInteractive ? (h("button", { class: { [CSS$p.contentContainer]: true, [CSS$p.contentContainerButton]: true }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (h("div", { class: CSS$p.contentContainer, ref: () => (this.focusEl = null) }, content));
|
|
14310
14318
|
}
|
|
14311
14319
|
render() {
|
|
14312
|
-
return (h(Host, { role: "listitem" }, h("div", { class: CSS$
|
|
14320
|
+
return (h(Host, { role: "listitem" }, h("div", { class: CSS$p.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), h("div", { class: CSS$p.nestedContainer }, h("slot", null))));
|
|
14313
14321
|
}
|
|
14314
14322
|
get el() { return this; }
|
|
14315
14323
|
static get style() { return calciteListItemCss; }
|
|
14316
14324
|
};
|
|
14317
14325
|
|
|
14318
|
-
const CSS$
|
|
14326
|
+
const CSS$o = {
|
|
14319
14327
|
heading: "heading",
|
|
14320
14328
|
container: "container"
|
|
14321
14329
|
};
|
|
@@ -14340,7 +14348,7 @@ let CalciteListItemGroup$1 = class extends HTMLElement$1 {
|
|
|
14340
14348
|
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
14341
14349
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
14342
14350
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$5;
|
|
14343
|
-
return (h(Host, null, heading ? (h(CalciteHeading, { class: CSS$
|
|
14351
|
+
return (h(Host, null, heading ? (h(CalciteHeading, { class: CSS$o.heading, level: level }, heading)) : null, h("div", { class: CSS$o.container, role: "group" }, h("slot", null))));
|
|
14344
14352
|
}
|
|
14345
14353
|
get el() { return this; }
|
|
14346
14354
|
static get style() { return calciteListItemGroupCss; }
|
|
@@ -14527,7 +14535,7 @@ function isFocusable($elem) {
|
|
|
14527
14535
|
|| $elem instanceof HTMLIFrameElement);
|
|
14528
14536
|
}
|
|
14529
14537
|
|
|
14530
|
-
const CSS$
|
|
14538
|
+
const CSS$n = {
|
|
14531
14539
|
title: "title",
|
|
14532
14540
|
header: "header",
|
|
14533
14541
|
footer: "footer",
|
|
@@ -14666,17 +14674,17 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14666
14674
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
14667
14675
|
}
|
|
14668
14676
|
render() {
|
|
14669
|
-
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$
|
|
14677
|
+
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: "modal", onTransitionEnd: this.transitionEnd }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS$n.header }, this.renderCloseButton(), h("header", { class: CSS$n.title }, h("slot", { name: CSS$n.header }))), h("div", { class: {
|
|
14670
14678
|
content: true,
|
|
14671
14679
|
"content--spaced": !this.noPadding,
|
|
14672
14680
|
"content--no-footer": !this.hasFooter
|
|
14673
14681
|
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS$e.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
14674
14682
|
}
|
|
14675
14683
|
renderFooter() {
|
|
14676
|
-
return this.hasFooter ? (h("div", { class: CSS$
|
|
14684
|
+
return this.hasFooter ? (h("div", { class: CSS$n.footer }, h("span", { class: CSS$n.back }, h("slot", { name: SLOTS$e.back })), h("span", { class: CSS$n.secondary }, h("slot", { name: SLOTS$e.secondary })), h("span", { class: CSS$n.primary }, h("slot", { name: SLOTS$e.primary })))) : null;
|
|
14677
14685
|
}
|
|
14678
14686
|
renderCloseButton() {
|
|
14679
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
14687
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
14680
14688
|
}
|
|
14681
14689
|
renderStyle() {
|
|
14682
14690
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -14766,10 +14774,10 @@ let CalciteModal$1 = class extends HTMLElement$1 {
|
|
|
14766
14774
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
14767
14775
|
this.titleId = ensureId(titleEl);
|
|
14768
14776
|
this.contentId = ensureId(contentEl);
|
|
14769
|
-
document.documentElement.classList.add(CSS$
|
|
14777
|
+
document.documentElement.classList.add(CSS$n.overflowHidden);
|
|
14770
14778
|
}
|
|
14771
14779
|
removeOverflowHiddenClass() {
|
|
14772
|
-
document.documentElement.classList.remove(CSS$
|
|
14780
|
+
document.documentElement.classList.remove(CSS$n.overflowHidden);
|
|
14773
14781
|
}
|
|
14774
14782
|
get el() { return this; }
|
|
14775
14783
|
static get watchers() { return {
|
|
@@ -14787,7 +14795,7 @@ const SLOTS$d = {
|
|
|
14787
14795
|
link: "link",
|
|
14788
14796
|
actionsEnd: "actions-end"
|
|
14789
14797
|
};
|
|
14790
|
-
const CSS$
|
|
14798
|
+
const CSS$m = {
|
|
14791
14799
|
actionsEnd: "actions-end",
|
|
14792
14800
|
close: "notice-close",
|
|
14793
14801
|
container: "container",
|
|
@@ -14849,9 +14857,9 @@ let CalciteNotice$1 = class extends HTMLElement$1 {
|
|
|
14849
14857
|
}
|
|
14850
14858
|
render() {
|
|
14851
14859
|
const { el } = this;
|
|
14852
|
-
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$
|
|
14860
|
+
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
14853
14861
|
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
14854
|
-
return (h("div", { class: CSS$
|
|
14862
|
+
return (h("div", { class: CSS$m.container }, this.requestedIcon ? (h("div", { class: CSS$m.icon }, h("calcite-icon", { icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, h("div", { class: CSS$m.content }, h("slot", { name: SLOTS$d.title }), h("slot", { name: SLOTS$d.message }), h("slot", { name: SLOTS$d.link })), hasActionEnd ? (h("div", { class: CSS$m.actionsEnd }, h("slot", { name: SLOTS$d.actionsEnd }))) : null, this.dismissible ? closeButton : null));
|
|
14855
14863
|
}
|
|
14856
14864
|
//--------------------------------------------------------------------------
|
|
14857
14865
|
//
|
|
@@ -14995,7 +15003,7 @@ let CalciteOptionGroup$1 = class extends HTMLElement$1 {
|
|
|
14995
15003
|
static get style() { return calciteOptionGroupCss; }
|
|
14996
15004
|
};
|
|
14997
15005
|
|
|
14998
|
-
const CSS$
|
|
15006
|
+
const CSS$l = {
|
|
14999
15007
|
page: "page",
|
|
15000
15008
|
selected: "is-selected",
|
|
15001
15009
|
previous: "previous",
|
|
@@ -15130,8 +15138,8 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15130
15138
|
renderPage(start) {
|
|
15131
15139
|
const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
|
|
15132
15140
|
return (h("button", { class: {
|
|
15133
|
-
[CSS$
|
|
15134
|
-
[CSS$
|
|
15141
|
+
[CSS$l.page]: true,
|
|
15142
|
+
[CSS$l.selected]: start === this.start
|
|
15135
15143
|
}, onClick: () => {
|
|
15136
15144
|
this.start = start;
|
|
15137
15145
|
this.emitUpdate();
|
|
@@ -15139,12 +15147,12 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15139
15147
|
}
|
|
15140
15148
|
renderLeftEllipsis() {
|
|
15141
15149
|
if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
15142
|
-
return h("span", { class: `${CSS$
|
|
15150
|
+
return h("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisStart}` }, "\u2026");
|
|
15143
15151
|
}
|
|
15144
15152
|
}
|
|
15145
15153
|
renderRightEllipsis() {
|
|
15146
15154
|
if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
15147
|
-
return h("span", { class: `${CSS$
|
|
15155
|
+
return h("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisEnd}` }, "\u2026");
|
|
15148
15156
|
}
|
|
15149
15157
|
}
|
|
15150
15158
|
render() {
|
|
@@ -15152,18 +15160,18 @@ let CalcitePagination$1 = class extends HTMLElement$1 {
|
|
|
15152
15160
|
const prevDisabled = num === 1 ? start <= num : start < num;
|
|
15153
15161
|
const nextDisabled = num === 1 ? start + num > total : start + num > total;
|
|
15154
15162
|
return (h(Fragment, null, h("button", { "aria-label": this.textLabelPrevious, class: {
|
|
15155
|
-
[CSS$
|
|
15156
|
-
[CSS$
|
|
15163
|
+
[CSS$l.previous]: true,
|
|
15164
|
+
[CSS$l.disabled]: prevDisabled
|
|
15157
15165
|
}, disabled: prevDisabled, onClick: this.previousClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: "s" })), total > num ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), h("button", { "aria-label": this.textLabelNext, class: {
|
|
15158
|
-
[CSS$
|
|
15159
|
-
[CSS$
|
|
15166
|
+
[CSS$l.next]: true,
|
|
15167
|
+
[CSS$l.disabled]: nextDisabled
|
|
15160
15168
|
}, disabled: nextDisabled, onClick: this.nextClicked }, h("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: "s" }))));
|
|
15161
15169
|
}
|
|
15162
15170
|
get el() { return this; }
|
|
15163
15171
|
static get style() { return calcitePaginationCss; }
|
|
15164
15172
|
};
|
|
15165
15173
|
|
|
15166
|
-
const CSS$
|
|
15174
|
+
const CSS$k = {
|
|
15167
15175
|
backButton: "back-button",
|
|
15168
15176
|
container: "container",
|
|
15169
15177
|
header: "header",
|
|
@@ -15306,24 +15314,24 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15306
15314
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
15307
15315
|
const label = intlBack || TEXT$8.back;
|
|
15308
15316
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
15309
|
-
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$
|
|
15317
|
+
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$k.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$c.headerActionsStart, text: label })) : null;
|
|
15310
15318
|
}
|
|
15311
15319
|
renderHeaderContent() {
|
|
15312
15320
|
const { heading, headingLevel, summary } = this;
|
|
15313
|
-
const headingNode = heading ? (h(CalciteHeading, { class: CSS$
|
|
15314
|
-
const summaryNode = summary ? h("span", { class: CSS$
|
|
15315
|
-
return headingNode || summaryNode ? (h("div", { class: CSS$
|
|
15321
|
+
const headingNode = heading ? (h(CalciteHeading, { class: CSS$k.heading, level: headingLevel || HEADING_LEVEL$4 }, heading)) : null;
|
|
15322
|
+
const summaryNode = summary ? h("span", { class: CSS$k.summary }, summary) : null;
|
|
15323
|
+
return headingNode || summaryNode ? (h("div", { class: CSS$k.headerContent, key: "header-content" }, headingNode, summaryNode)) : null;
|
|
15316
15324
|
}
|
|
15317
15325
|
/**
|
|
15318
15326
|
* Allows user to override the entire header-content node.
|
|
15319
15327
|
*/
|
|
15320
15328
|
renderHeaderSlottedContent() {
|
|
15321
|
-
return (h("div", { class: CSS$
|
|
15329
|
+
return (h("div", { class: CSS$k.headerContent, key: "header-content" }, h("slot", { name: SLOTS$c.headerContent })));
|
|
15322
15330
|
}
|
|
15323
15331
|
renderHeaderStartActions() {
|
|
15324
15332
|
const { el } = this;
|
|
15325
15333
|
const hasStartActions = getSlotted(el, SLOTS$c.headerActionsStart);
|
|
15326
|
-
return hasStartActions ? (h("div", { class: { [CSS$
|
|
15334
|
+
return hasStartActions ? (h("div", { class: { [CSS$k.headerActionsStart]: true, [CSS$k.headerActions]: true }, key: "header-actions-start" }, h("slot", { name: SLOTS$c.headerActionsStart }))) : null;
|
|
15327
15335
|
}
|
|
15328
15336
|
renderHeaderActionsEnd() {
|
|
15329
15337
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
@@ -15331,7 +15339,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15331
15339
|
const dismissibleNode = dismissible ? (h("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
15332
15340
|
const slotNode = h("slot", { name: SLOTS$c.headerActionsEnd });
|
|
15333
15341
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
15334
|
-
return hasEndActions || dismissibleNode ? (h("div", { class: { [CSS$
|
|
15342
|
+
return hasEndActions || dismissibleNode ? (h("div", { class: { [CSS$k.headerActionsEnd]: true, [CSS$k.headerActions]: true }, key: "header-actions-end" }, slotNode, dismissibleNode)) : null;
|
|
15335
15343
|
}
|
|
15336
15344
|
renderMenu() {
|
|
15337
15345
|
const { el, intlOptions, menuOpen } = this;
|
|
@@ -15352,7 +15360,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15352
15360
|
headerContentNode ||
|
|
15353
15361
|
actionsNodeEnd ||
|
|
15354
15362
|
headerMenuNode ||
|
|
15355
|
-
showBackButton ? (h("header", { class: CSS$
|
|
15363
|
+
showBackButton ? (h("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
15356
15364
|
}
|
|
15357
15365
|
/**
|
|
15358
15366
|
* Allows user to override the entire footer node.
|
|
@@ -15360,24 +15368,24 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15360
15368
|
renderFooterSlottedContent() {
|
|
15361
15369
|
const { el } = this;
|
|
15362
15370
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
15363
|
-
return hasFooterSlottedContent ? (h("footer", { class: CSS$
|
|
15371
|
+
return hasFooterSlottedContent ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footer }))) : null;
|
|
15364
15372
|
}
|
|
15365
15373
|
renderFooterActions() {
|
|
15366
15374
|
const { el } = this;
|
|
15367
15375
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
15368
|
-
return hasFooterActions ? (h("footer", { class: CSS$
|
|
15376
|
+
return hasFooterActions ? (h("footer", { class: CSS$k.footer }, h("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
15369
15377
|
}
|
|
15370
15378
|
renderContent() {
|
|
15371
15379
|
const { el } = this;
|
|
15372
15380
|
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
15373
|
-
return hasFab ? (h("div", { class: { [CSS$
|
|
15381
|
+
return hasFab ? (h("div", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentHeight]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("section", { class: CSS$k.contentContainer }, h("slot", null)), this.renderFab())) : (h("section", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentContainer]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, h("slot", null)));
|
|
15374
15382
|
}
|
|
15375
15383
|
renderFab() {
|
|
15376
|
-
return (h("div", { class: CSS$
|
|
15384
|
+
return (h("div", { class: CSS$k.fabContainer }, h("slot", { name: SLOTS$c.fab })));
|
|
15377
15385
|
}
|
|
15378
15386
|
render() {
|
|
15379
15387
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
15380
|
-
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS$
|
|
15388
|
+
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterSlottedContent() || this.renderFooterActions()));
|
|
15381
15389
|
return (h(Fragment, null, loading || disabled ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
15382
15390
|
}
|
|
15383
15391
|
get el() { return this; }
|
|
@@ -15387,7 +15395,7 @@ let CalcitePanel$1 = class extends HTMLElement$1 {
|
|
|
15387
15395
|
static get style() { return calcitePanelCss; }
|
|
15388
15396
|
};
|
|
15389
15397
|
|
|
15390
|
-
const CSS$
|
|
15398
|
+
const CSS$j = {
|
|
15391
15399
|
sticky: "sticky-pos"
|
|
15392
15400
|
};
|
|
15393
15401
|
var ICON_TYPES$1;
|
|
@@ -15668,7 +15676,7 @@ const List = (_a) => {
|
|
|
15668
15676
|
const defaultSlot = h("slot", null);
|
|
15669
15677
|
return (h(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
15670
15678
|
h("section", null,
|
|
15671
|
-
h("header", { class: { [CSS$
|
|
15679
|
+
h("header", { class: { [CSS$j.sticky]: true } },
|
|
15672
15680
|
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
15673
15681
|
h("slot", { name: SLOTS$b.menuActions })),
|
|
15674
15682
|
loading || disabled ? h("calcite-scrim", { loading: loading }) : null,
|
|
@@ -15798,7 +15806,7 @@ let CalcitePickList$1 = class extends HTMLElement$1 {
|
|
|
15798
15806
|
static get style() { return calcitePickListCss; }
|
|
15799
15807
|
};
|
|
15800
15808
|
|
|
15801
|
-
const CSS$
|
|
15809
|
+
const CSS$i = {
|
|
15802
15810
|
heading: "heading",
|
|
15803
15811
|
container: "container",
|
|
15804
15812
|
indented: "container--indented"
|
|
@@ -15826,20 +15834,20 @@ let CalcitePickListGroup$1 = class extends HTMLElement$1 {
|
|
|
15826
15834
|
const { el, groupTitle, headingLevel } = this;
|
|
15827
15835
|
const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
|
|
15828
15836
|
const sectionClasses = {
|
|
15829
|
-
[CSS$
|
|
15830
|
-
[CSS$
|
|
15837
|
+
[CSS$i.container]: true,
|
|
15838
|
+
[CSS$i.indented]: hasParentItem
|
|
15831
15839
|
};
|
|
15832
15840
|
const title = groupTitle;
|
|
15833
15841
|
const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
15834
15842
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
15835
15843
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$3;
|
|
15836
|
-
return (h(Fragment, null, title ? (h(CalciteHeading, { class: CSS$
|
|
15844
|
+
return (h(Fragment, null, title ? (h(CalciteHeading, { class: CSS$i.heading, level: level }, title)) : null, h("slot", { name: SLOTS$a.parentItem }), h("section", { class: sectionClasses }, h("slot", null))));
|
|
15837
15845
|
}
|
|
15838
15846
|
get el() { return this; }
|
|
15839
15847
|
static get style() { return calcitePickListGroupCss; }
|
|
15840
15848
|
};
|
|
15841
15849
|
|
|
15842
|
-
const CSS$
|
|
15850
|
+
const CSS$h = {
|
|
15843
15851
|
actions: "actions",
|
|
15844
15852
|
actionsEnd: "actions--end",
|
|
15845
15853
|
actionsStart: "actions--start",
|
|
@@ -15984,26 +15992,26 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
15984
15992
|
return null;
|
|
15985
15993
|
}
|
|
15986
15994
|
return (h("span", { class: {
|
|
15987
|
-
[CSS$
|
|
15988
|
-
[CSS$
|
|
15995
|
+
[CSS$h.icon]: true,
|
|
15996
|
+
[CSS$h.iconDot]: icon === ICON_TYPES$1.circle
|
|
15989
15997
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? h("calcite-icon", { icon: ICONS$4.checked, scale: "s" }) : null));
|
|
15990
15998
|
}
|
|
15991
15999
|
renderRemoveAction() {
|
|
15992
|
-
return this.removable ? (h("calcite-action", { class: CSS$
|
|
16000
|
+
return this.removable ? (h("calcite-action", { class: CSS$h.remove, icon: ICONS$4.remove, onCalciteActionClick: this.removeClickHandler, slot: SLOTS$9.actionsEnd, text: this.intlRemove })) : null;
|
|
15993
16001
|
}
|
|
15994
16002
|
renderActionsStart() {
|
|
15995
16003
|
const { el } = this;
|
|
15996
16004
|
const hasActionsStart = getSlotted(el, SLOTS$9.actionsStart);
|
|
15997
|
-
return hasActionsStart ? (h("div", { class: { [CSS$
|
|
16005
|
+
return hasActionsStart ? (h("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsStart]: true } }, h("slot", { name: SLOTS$9.actionsStart }))) : null;
|
|
15998
16006
|
}
|
|
15999
16007
|
renderActionsEnd() {
|
|
16000
16008
|
const { el, removable } = this;
|
|
16001
16009
|
const hasActionsEnd = getSlotted(el, SLOTS$9.actionsEnd);
|
|
16002
|
-
return hasActionsEnd || removable ? (h("div", { class: { [CSS$
|
|
16010
|
+
return hasActionsEnd || removable ? (h("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsEnd]: true } }, h("slot", { name: SLOTS$9.actionsEnd }), this.renderRemoveAction())) : null;
|
|
16003
16011
|
}
|
|
16004
16012
|
render() {
|
|
16005
16013
|
const { description, label } = this;
|
|
16006
|
-
return (h(Fragment, null, this.renderIcon(), this.renderActionsStart(), h("label", { "aria-label": label, class: CSS$
|
|
16014
|
+
return (h(Fragment, null, this.renderIcon(), this.renderActionsStart(), h("label", { "aria-label": label, class: CSS$h.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 }, h("div", { "aria-checked": this.selected.toString(), class: CSS$h.textContainer, role: "menuitemcheckbox" }, h("span", { class: CSS$h.title }, label), description ? h("span", { class: CSS$h.description }, description) : null)), this.renderActionsEnd()));
|
|
16007
16015
|
}
|
|
16008
16016
|
get el() { return this; }
|
|
16009
16017
|
static get watchers() { return {
|
|
@@ -16016,7 +16024,7 @@ let CalcitePickListItem$1 = class extends HTMLElement$1 {
|
|
|
16016
16024
|
static get style() { return calcitePickListItemCss; }
|
|
16017
16025
|
};
|
|
16018
16026
|
|
|
16019
|
-
const CSS$
|
|
16027
|
+
const CSS$g = {
|
|
16020
16028
|
container: "container",
|
|
16021
16029
|
arrow: "arrow",
|
|
16022
16030
|
imageContainer: "image-container",
|
|
@@ -16272,25 +16280,25 @@ let CalcitePopover$1 = class extends HTMLElement$1 {
|
|
|
16272
16280
|
// --------------------------------------------------------------------------
|
|
16273
16281
|
renderCloseButton() {
|
|
16274
16282
|
const { dismissible, closeButton, intlClose } = this;
|
|
16275
|
-
return dismissible || closeButton ? (h("calcite-action", { class: CSS$
|
|
16283
|
+
return dismissible || closeButton ? (h("calcite-action", { class: CSS$g.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), text: intlClose }, h("calcite-icon", { icon: "x", scale: "m" }))) : null;
|
|
16276
16284
|
}
|
|
16277
16285
|
renderHeader() {
|
|
16278
16286
|
const { heading, headingLevel } = this;
|
|
16279
|
-
const headingNode = heading ? (h(CalciteHeading, { class: CSS$
|
|
16280
|
-
return headingNode ? (h("div", { class: CSS$
|
|
16287
|
+
const headingNode = heading ? (h(CalciteHeading, { class: CSS$g.heading, level: headingLevel || HEADING_LEVEL$2 }, heading)) : null;
|
|
16288
|
+
return headingNode ? (h("div", { class: CSS$g.header }, headingNode, this.renderCloseButton())) : null;
|
|
16281
16289
|
}
|
|
16282
16290
|
render() {
|
|
16283
16291
|
const { effectiveReferenceElement, heading, label, open, disablePointer } = this;
|
|
16284
16292
|
const displayed = effectiveReferenceElement && open;
|
|
16285
16293
|
const hidden = !displayed;
|
|
16286
|
-
const arrowNode = !disablePointer ? (h("div", { class: CSS$
|
|
16294
|
+
const arrowNode = !disablePointer ? (h("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
16287
16295
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
|
|
16288
|
-
[CSS$
|
|
16289
|
-
[CSS$
|
|
16296
|
+
[CSS$D.animation]: true,
|
|
16297
|
+
[CSS$D.animationActive]: displayed
|
|
16290
16298
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, h("div", { class: {
|
|
16291
|
-
[CSS$
|
|
16292
|
-
[CSS$
|
|
16293
|
-
} }, this.renderHeader(), h("div", { class: CSS$
|
|
16299
|
+
[CSS$g.hasHeader]: !!heading,
|
|
16300
|
+
[CSS$g.container]: true
|
|
16301
|
+
} }, this.renderHeader(), h("div", { class: CSS$g.content }, h("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
16294
16302
|
}
|
|
16295
16303
|
get el() { return this; }
|
|
16296
16304
|
static get watchers() { return {
|
|
@@ -16396,11 +16404,11 @@ let CalciteProgress$1 = class extends HTMLElement$1 {
|
|
|
16396
16404
|
static get style() { return calciteProgressCss; }
|
|
16397
16405
|
};
|
|
16398
16406
|
|
|
16399
|
-
const CSS$
|
|
16407
|
+
const CSS$f = {
|
|
16400
16408
|
container: "container"
|
|
16401
16409
|
};
|
|
16402
16410
|
|
|
16403
|
-
const calciteRadioButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]) .radio{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([disabled]){cursor:pointer}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([hovered][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
16411
|
+
const calciteRadioButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;cursor:pointer}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host .radio{cursor:pointer;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([hovered]) .radio,:host(:not([checked])[focused]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([disabled]){cursor:pointer}:host([disabled]) .radio{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}:host([hovered][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input)}:host([scale=s]){--calcite-radio-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-radio-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-radio-size:var(--calcite-font-size-0)}.radio{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}:host([scale=s][checked]) .radio,:host([hovered][scale=s][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand)}:host([scale=s][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=m][checked]) .radio,:host([hovered][scale=m][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand)}:host([scale=m][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}:host([scale=l][checked]) .radio,:host([hovered][scale=l][checked][disabled]) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand)}:host([scale=l][focused][checked]:not([disabled])) .radio{-webkit-box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
16404
16412
|
|
|
16405
16413
|
let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
16406
16414
|
constructor() {
|
|
@@ -16515,8 +16523,10 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16515
16523
|
this.calciteInternalRadioButtonBlur.emit();
|
|
16516
16524
|
};
|
|
16517
16525
|
this.onContainerFocus = () => {
|
|
16518
|
-
this.
|
|
16519
|
-
|
|
16526
|
+
if (!this.disabled) {
|
|
16527
|
+
this.focused = true;
|
|
16528
|
+
this.calciteInternalRadioButtonFocus.emit();
|
|
16529
|
+
}
|
|
16520
16530
|
};
|
|
16521
16531
|
}
|
|
16522
16532
|
checkedChanged(newChecked) {
|
|
@@ -16539,7 +16549,9 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16539
16549
|
//--------------------------------------------------------------------------
|
|
16540
16550
|
/** Sets focus on the component. */
|
|
16541
16551
|
async setFocus() {
|
|
16542
|
-
|
|
16552
|
+
if (!this.disabled) {
|
|
16553
|
+
focusElement(this.containerEl);
|
|
16554
|
+
}
|
|
16543
16555
|
}
|
|
16544
16556
|
onLabelClick(event) {
|
|
16545
16557
|
if (!this.disabled && !this.hidden) {
|
|
@@ -16592,6 +16604,12 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16592
16604
|
}
|
|
16593
16605
|
});
|
|
16594
16606
|
}
|
|
16607
|
+
getTabIndex() {
|
|
16608
|
+
if (this.disabled) {
|
|
16609
|
+
return undefined;
|
|
16610
|
+
}
|
|
16611
|
+
return this.checked || this.isDefaultSelectable() ? 0 : -1;
|
|
16612
|
+
}
|
|
16595
16613
|
//--------------------------------------------------------------------------
|
|
16596
16614
|
//
|
|
16597
16615
|
// Event Listeners
|
|
@@ -16618,7 +16636,7 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16618
16636
|
connectForm(this);
|
|
16619
16637
|
}
|
|
16620
16638
|
componentDidLoad() {
|
|
16621
|
-
if (this.focused) {
|
|
16639
|
+
if (this.focused && !this.disabled) {
|
|
16622
16640
|
this.setFocus();
|
|
16623
16641
|
}
|
|
16624
16642
|
}
|
|
@@ -16632,7 +16650,8 @@ let CalciteRadioButton$1 = class extends HTMLElement$1 {
|
|
|
16632
16650
|
//
|
|
16633
16651
|
// --------------------------------------------------------------------------
|
|
16634
16652
|
render() {
|
|
16635
|
-
|
|
16653
|
+
const tabIndex = this.getTabIndex();
|
|
16654
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS$f.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: tabIndex }, h("div", { class: "radio" })), h(HiddenFormInputSlot, { component: this })));
|
|
16636
16655
|
}
|
|
16637
16656
|
get el() { return this; }
|
|
16638
16657
|
static get watchers() { return {
|
|
@@ -16924,7 +16943,7 @@ let CalciteRadioGroup$1 = class extends HTMLElement$1 {
|
|
|
16924
16943
|
const SLOTS$8 = {
|
|
16925
16944
|
input: "input"
|
|
16926
16945
|
};
|
|
16927
|
-
const CSS$
|
|
16946
|
+
const CSS$e = {
|
|
16928
16947
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
16929
16948
|
};
|
|
16930
16949
|
|
|
@@ -16947,37 +16966,16 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement$1 {
|
|
|
16947
16966
|
this.iconFlipRtl = false;
|
|
16948
16967
|
/** optionally used with icon, select where to position the icon */
|
|
16949
16968
|
this.iconPosition = "start";
|
|
16950
|
-
this.mutationObserver = createObserver("mutation", () => this.syncFromExternalInput());
|
|
16951
16969
|
}
|
|
16952
16970
|
handleCheckedChange() {
|
|
16953
16971
|
this.calciteRadioGroupItemChange.emit();
|
|
16954
|
-
this.syncToExternalInput();
|
|
16955
|
-
}
|
|
16956
|
-
//--------------------------------------------------------------------------
|
|
16957
|
-
//
|
|
16958
|
-
// Lifecycle
|
|
16959
|
-
//
|
|
16960
|
-
//--------------------------------------------------------------------------
|
|
16961
|
-
connectedCallback() {
|
|
16962
|
-
var _a;
|
|
16963
|
-
const inputProxy = this.el.querySelector(`input[slot=${SLOTS$8.input}]`);
|
|
16964
|
-
if (inputProxy) {
|
|
16965
|
-
this.value = inputProxy.value;
|
|
16966
|
-
this.checked = inputProxy.checked;
|
|
16967
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
|
|
16968
|
-
}
|
|
16969
|
-
this.inputProxy = inputProxy;
|
|
16970
|
-
}
|
|
16971
|
-
disconnectedCallback() {
|
|
16972
|
-
var _a;
|
|
16973
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
16974
16972
|
}
|
|
16975
16973
|
render() {
|
|
16976
16974
|
const { checked, value } = this;
|
|
16977
16975
|
const scale = getElementProp(this.el, "scale", "m");
|
|
16978
16976
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
16979
16977
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
16980
|
-
const iconEl = (h("calcite-icon", { class: CSS$
|
|
16978
|
+
const iconEl = (h("calcite-icon", { class: CSS$e.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
16981
16979
|
return (h(Host, { "aria-checked": checked.toString(), role: "radio" }, h("label", { class: {
|
|
16982
16980
|
"label--scale-s": scale === "s",
|
|
16983
16981
|
"label--scale-m": scale === "m",
|
|
@@ -16986,29 +16984,6 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement$1 {
|
|
|
16986
16984
|
"label--outline": appearance === "outline"
|
|
16987
16985
|
} }, this.icon && this.iconPosition === "start" ? iconEl : null, h("slot", null, value), h("slot", { name: SLOTS$8.input }), this.icon && this.iconPosition === "end" ? iconEl : null)));
|
|
16988
16986
|
}
|
|
16989
|
-
//--------------------------------------------------------------------------
|
|
16990
|
-
//
|
|
16991
|
-
// Private Methods
|
|
16992
|
-
//
|
|
16993
|
-
//--------------------------------------------------------------------------
|
|
16994
|
-
syncFromExternalInput() {
|
|
16995
|
-
if (this.inputProxy) {
|
|
16996
|
-
this.value = this.inputProxy.value;
|
|
16997
|
-
this.checked = this.inputProxy.checked;
|
|
16998
|
-
}
|
|
16999
|
-
}
|
|
17000
|
-
syncToExternalInput() {
|
|
17001
|
-
if (!this.inputProxy) {
|
|
17002
|
-
return;
|
|
17003
|
-
}
|
|
17004
|
-
this.inputProxy.value = this.value;
|
|
17005
|
-
if (this.checked) {
|
|
17006
|
-
this.inputProxy.setAttribute("checked", "");
|
|
17007
|
-
}
|
|
17008
|
-
else {
|
|
17009
|
-
this.inputProxy.removeAttribute("checked");
|
|
17010
|
-
}
|
|
17011
|
-
}
|
|
17012
16987
|
get el() { return this; }
|
|
17013
16988
|
static get watchers() { return {
|
|
17014
16989
|
"checked": ["handleCheckedChange"]
|
|
@@ -17132,7 +17107,7 @@ let CalciteRating$1 = class extends HTMLElement$1 {
|
|
|
17132
17107
|
static get style() { return calciteRatingCss; }
|
|
17133
17108
|
};
|
|
17134
17109
|
|
|
17135
|
-
const CSS$
|
|
17110
|
+
const CSS$d = {
|
|
17136
17111
|
scrim: "scrim",
|
|
17137
17112
|
content: "content"
|
|
17138
17113
|
};
|
|
@@ -17171,14 +17146,14 @@ let CalciteScrim$1 = class extends HTMLElement$1 {
|
|
|
17171
17146
|
const { el, loading, intlLoading } = this;
|
|
17172
17147
|
const hasContent = el.innerHTML.trim().length > 0;
|
|
17173
17148
|
const loaderNode = loading ? h("calcite-loader", { active: true, label: intlLoading }) : null;
|
|
17174
|
-
const contentNode = hasContent ? (h("div", { class: CSS$
|
|
17175
|
-
return (h("div", { class: CSS$
|
|
17149
|
+
const contentNode = hasContent ? (h("div", { class: CSS$d.content }, h("slot", null))) : null;
|
|
17150
|
+
return (h("div", { class: CSS$d.scrim }, loaderNode, contentNode));
|
|
17176
17151
|
}
|
|
17177
17152
|
get el() { return this; }
|
|
17178
17153
|
static get style() { return calciteScrimCss; }
|
|
17179
17154
|
};
|
|
17180
17155
|
|
|
17181
|
-
const CSS$
|
|
17156
|
+
const CSS$c = {
|
|
17182
17157
|
icon: "icon",
|
|
17183
17158
|
iconContainer: "icon-container",
|
|
17184
17159
|
select: "select"
|
|
@@ -17373,10 +17348,10 @@ let CalciteSelect$1 = class extends HTMLElement$1 {
|
|
|
17373
17348
|
//
|
|
17374
17349
|
//--------------------------------------------------------------------------
|
|
17375
17350
|
renderChevron() {
|
|
17376
|
-
return (h("div", { class: CSS$
|
|
17351
|
+
return (h("div", { class: CSS$c.iconContainer }, h("calcite-icon", { class: CSS$c.icon, icon: "chevron-down", scale: "s" })));
|
|
17377
17352
|
}
|
|
17378
17353
|
render() {
|
|
17379
|
-
return (h(Fragment, null, h("select", { "aria-label": this.label, class: CSS$
|
|
17354
|
+
return (h(Fragment, null, h("select", { "aria-label": this.label, class: CSS$c.select, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, h("slot", null)), this.renderChevron(), h(HiddenFormInputSlot, { component: this })));
|
|
17380
17355
|
}
|
|
17381
17356
|
get el() { return this; }
|
|
17382
17357
|
static get watchers() { return {
|
|
@@ -17386,7 +17361,7 @@ let CalciteSelect$1 = class extends HTMLElement$1 {
|
|
|
17386
17361
|
static get style() { return calciteSelectCss; }
|
|
17387
17362
|
};
|
|
17388
17363
|
|
|
17389
|
-
const CSS$
|
|
17364
|
+
const CSS$b = {
|
|
17390
17365
|
main: "main",
|
|
17391
17366
|
mainReversed: "main--reversed",
|
|
17392
17367
|
content: "content",
|
|
@@ -17431,25 +17406,25 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17431
17406
|
const content = !!this.contentBehind
|
|
17432
17407
|
? [
|
|
17433
17408
|
h("div", { class: {
|
|
17434
|
-
[CSS$
|
|
17435
|
-
[CSS$
|
|
17409
|
+
[CSS$b.content]: true,
|
|
17410
|
+
[CSS$b.contentBehind]: !!this.contentBehind
|
|
17436
17411
|
} }, h("slot", null)),
|
|
17437
17412
|
h("slot", { name: SLOTS$7.centerRow })
|
|
17438
17413
|
]
|
|
17439
17414
|
: [
|
|
17440
|
-
h("div", { class: CSS$
|
|
17415
|
+
h("div", { class: CSS$b.content }, h("slot", null), h("slot", { name: SLOTS$7.centerRow }))
|
|
17441
17416
|
];
|
|
17442
17417
|
return content;
|
|
17443
17418
|
}
|
|
17444
17419
|
renderFooter() {
|
|
17445
17420
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
17446
|
-
return hasFooter ? (h("div", { class: CSS$
|
|
17421
|
+
return hasFooter ? (h("div", { class: CSS$b.footer }, h("slot", { name: SLOTS$7.footer }))) : null;
|
|
17447
17422
|
}
|
|
17448
17423
|
renderMain() {
|
|
17449
17424
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
17450
17425
|
const mainClasses = {
|
|
17451
|
-
[CSS$
|
|
17452
|
-
[CSS$
|
|
17426
|
+
[CSS$b.main]: true,
|
|
17427
|
+
[CSS$b.mainReversed]: (primaryPanel === null || primaryPanel === void 0 ? void 0 : primaryPanel.position) === "end"
|
|
17453
17428
|
};
|
|
17454
17429
|
return (h("div", { class: mainClasses }, h("slot", { name: SLOTS$7.primaryPanel }), this.renderContent(), h("slot", { name: SLOTS$7.contextualPanel })));
|
|
17455
17430
|
}
|
|
@@ -17460,7 +17435,7 @@ let CalciteShell$1 = class extends HTMLElement$1 {
|
|
|
17460
17435
|
static get style() { return calciteShellCss; }
|
|
17461
17436
|
};
|
|
17462
17437
|
|
|
17463
|
-
const CSS$
|
|
17438
|
+
const CSS$a = {
|
|
17464
17439
|
actionBarContainer: "action-bar-container",
|
|
17465
17440
|
content: "content"
|
|
17466
17441
|
};
|
|
@@ -17500,9 +17475,9 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17500
17475
|
// --------------------------------------------------------------------------
|
|
17501
17476
|
render() {
|
|
17502
17477
|
const { el } = this;
|
|
17503
|
-
const contentNode = (h("div", { class: CSS$
|
|
17478
|
+
const contentNode = (h("div", { class: CSS$a.content }, h("slot", null)));
|
|
17504
17479
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
17505
|
-
const actionBarNode = actionBar ? (h("div", { class: CSS$
|
|
17480
|
+
const actionBarNode = actionBar ? (h("div", { class: CSS$a.actionBarContainer }, h("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
17506
17481
|
const children = [actionBarNode, contentNode];
|
|
17507
17482
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
17508
17483
|
children.reverse();
|
|
@@ -17513,7 +17488,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement$1 {
|
|
|
17513
17488
|
static get style() { return calciteShellCenterRowCss; }
|
|
17514
17489
|
};
|
|
17515
17490
|
|
|
17516
|
-
const CSS$
|
|
17491
|
+
const CSS$9 = {
|
|
17517
17492
|
container: "container",
|
|
17518
17493
|
content: "content",
|
|
17519
17494
|
contentHeader: "content__header",
|
|
@@ -17690,19 +17665,19 @@ let CalciteShellPanel$1 = class extends HTMLElement$1 {
|
|
|
17690
17665
|
renderHeader() {
|
|
17691
17666
|
const { el } = this;
|
|
17692
17667
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
17693
|
-
return hasHeader ? (h("div", { class: CSS$
|
|
17668
|
+
return hasHeader ? (h("div", { class: CSS$9.contentHeader }, h("slot", { name: SLOTS$5.header }))) : null;
|
|
17694
17669
|
}
|
|
17695
17670
|
render() {
|
|
17696
17671
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
17697
17672
|
const allowResizing = !detached && resizable;
|
|
17698
|
-
const contentNode = (h("div", { class: { [CSS$
|
|
17699
|
-
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$
|
|
17673
|
+
const contentNode = (h("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS$9.contentBody }, h("slot", null))));
|
|
17674
|
+
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$9.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
17700
17675
|
const actionBarNode = h("slot", { name: SLOTS$5.actionBar });
|
|
17701
17676
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
17702
17677
|
if (position === "end") {
|
|
17703
17678
|
mainNodes.reverse();
|
|
17704
17679
|
}
|
|
17705
|
-
return h("div", { class: { [CSS$
|
|
17680
|
+
return h("div", { class: { [CSS$9.container]: true } }, mainNodes);
|
|
17706
17681
|
}
|
|
17707
17682
|
// --------------------------------------------------------------------------
|
|
17708
17683
|
//
|
|
@@ -21471,7 +21446,7 @@ _extends(Remove, {
|
|
|
21471
21446
|
Sortable.mount(new AutoScrollPlugin());
|
|
21472
21447
|
Sortable.mount(Remove, Revert);
|
|
21473
21448
|
|
|
21474
|
-
const CSS$
|
|
21449
|
+
const CSS$8 = {
|
|
21475
21450
|
sortItem: "sort-item",
|
|
21476
21451
|
container: "container",
|
|
21477
21452
|
containerHorizontal: "container--horizontal",
|
|
@@ -21620,16 +21595,16 @@ let CalciteSortableList$1 = class extends HTMLElement$1 {
|
|
|
21620
21595
|
const { layout } = this;
|
|
21621
21596
|
const horizontal = layout === "horizontal" || false;
|
|
21622
21597
|
return (h("div", { class: {
|
|
21623
|
-
[CSS$
|
|
21624
|
-
[CSS$
|
|
21625
|
-
[CSS$
|
|
21598
|
+
[CSS$8.container]: true,
|
|
21599
|
+
[CSS$8.containerVertical]: !horizontal,
|
|
21600
|
+
[CSS$8.containerHorizontal]: horizontal
|
|
21626
21601
|
} }, h("slot", null)));
|
|
21627
21602
|
}
|
|
21628
21603
|
get el() { return this; }
|
|
21629
21604
|
static get style() { return calciteSortableListCss; }
|
|
21630
21605
|
};
|
|
21631
21606
|
|
|
21632
|
-
const CSS$
|
|
21607
|
+
const CSS$7 = {
|
|
21633
21608
|
container: "split-button__container",
|
|
21634
21609
|
dividerContainer: "split-button__divider-container",
|
|
21635
21610
|
divider: "split-button__divider",
|
|
@@ -21674,13 +21649,13 @@ let CalciteSplitButton$1 = class extends HTMLElement$1 {
|
|
|
21674
21649
|
}
|
|
21675
21650
|
render() {
|
|
21676
21651
|
const widthClasses = {
|
|
21677
|
-
[CSS$
|
|
21678
|
-
[CSS$
|
|
21679
|
-
[CSS$
|
|
21680
|
-
[CSS$
|
|
21652
|
+
[CSS$7.container]: true,
|
|
21653
|
+
[CSS$7.widthAuto]: this.width === "auto",
|
|
21654
|
+
[CSS$7.widthHalf]: this.width === "half",
|
|
21655
|
+
[CSS$7.widthFull]: this.width === "full"
|
|
21681
21656
|
};
|
|
21682
21657
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
21683
|
-
return (h("div", { class: widthClasses }, h("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", width: buttonWidth }, this.primaryText), h("div", { class: CSS$
|
|
21658
|
+
return (h("div", { class: widthClasses }, h("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", width: buttonWidth }, this.primaryText), h("div", { class: CSS$7.dividerContainer }, h("div", { class: CSS$7.divider })), h("calcite-dropdown", { active: this.active, onClick: this.calciteSplitButtonSecondaryClickHandler, overlayPositioning: this.overlayPositioning, placement: "bottom-trailing", scale: this.scale, width: this.scale }, h("calcite-button", { appearance: this.appearance, color: this.color, disabled: this.disabled, "icon-start": this.dropdownIcon, label: this.dropdownLabel, scale: this.scale, slot: "dropdown-trigger", splitChild: "secondary" }), h("slot", null))));
|
|
21684
21659
|
}
|
|
21685
21660
|
get dropdownIcon() {
|
|
21686
21661
|
return this.dropdownIconType === "chevron"
|
|
@@ -22779,7 +22754,7 @@ const SLOTS$3 = {
|
|
|
22779
22754
|
contentEnd: "content-end"
|
|
22780
22755
|
};
|
|
22781
22756
|
|
|
22782
|
-
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host
|
|
22757
|
+
const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .container{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}:host .content{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}:host .content-container{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);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 .content-slot-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}:host .content-slot-container:first-child{padding-right:0.75rem}:host .content-slot-container:last-child{padding-left:0.75rem}:host .heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .large-visual{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}:host .large-visual .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:end;align-self:flex-end}:host .large-visual .content-container{-ms-flex-item-align:center;align-self:center}:host .description{pointer-events:none;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host(:not([embed])){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0px}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
|
|
22783
22758
|
|
|
22784
22759
|
let CalciteTile$1 = class extends HTMLElement$1 {
|
|
22785
22760
|
constructor() {
|
|
@@ -22830,7 +22805,24 @@ let CalciteTile$1 = class extends HTMLElement$1 {
|
|
|
22830
22805
|
static get style() { return calciteTileCss; }
|
|
22831
22806
|
};
|
|
22832
22807
|
|
|
22833
|
-
const
|
|
22808
|
+
const CSS$6 = {
|
|
22809
|
+
checked: "checked",
|
|
22810
|
+
description: "description",
|
|
22811
|
+
descriptionOnly: "description-only",
|
|
22812
|
+
disabled: "disabled",
|
|
22813
|
+
heading: "heading",
|
|
22814
|
+
headingOnly: "heading-only",
|
|
22815
|
+
icon: "icon",
|
|
22816
|
+
iconOnly: "icon-only",
|
|
22817
|
+
inputAlignmentEnd: "input-alignment-end",
|
|
22818
|
+
inputAlignmentStart: "input-alignment-start",
|
|
22819
|
+
inputEnabled: "input-enabled",
|
|
22820
|
+
largeVisual: "large-visual",
|
|
22821
|
+
widthAuto: "width-auto",
|
|
22822
|
+
widthFull: "width-full"
|
|
22823
|
+
};
|
|
22824
|
+
|
|
22825
|
+
const calciteTileSelectCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}:host .container{background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;vertical-align:top;z-index:10}:host .container.checked{z-index:30;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host .container.heading-only{-ms-flex-align:center;align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host .container.focused:not(.disabled){z-index:30}:host .container.focused:not(.disabled):not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:0.75rem}:host .container.input-enabled.input-alignment-start calcite-tile{-ms-flex-order:1;order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-start:0.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:0.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.width-full{display:-ms-flexbox;display:flex;max-width:none}:host .container.width-full calcite-tile{-ms-flex:1 1 auto;flex:1 1 auto}:host(:hover) .container{z-index:20}:host(:hover) .container:not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
|
|
22834
22826
|
|
|
22835
22827
|
let CalciteTileSelect$1 = class extends HTMLElement$1 {
|
|
22836
22828
|
constructor() {
|
|
@@ -22978,7 +22970,25 @@ let CalciteTileSelect$1 = class extends HTMLElement$1 {
|
|
|
22978
22970
|
this.el.insertAdjacentElement("beforeend", this.input);
|
|
22979
22971
|
}
|
|
22980
22972
|
render() {
|
|
22981
|
-
|
|
22973
|
+
const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
|
|
22974
|
+
return (h("div", { class: {
|
|
22975
|
+
checked,
|
|
22976
|
+
container: true,
|
|
22977
|
+
[CSS$6.description]: Boolean(description),
|
|
22978
|
+
[CSS$6.descriptionOnly]: Boolean(!heading && !icon && description),
|
|
22979
|
+
disabled,
|
|
22980
|
+
focused,
|
|
22981
|
+
[CSS$6.heading]: Boolean(heading),
|
|
22982
|
+
[CSS$6.headingOnly]: heading && !icon && !description,
|
|
22983
|
+
[CSS$6.icon]: Boolean(icon),
|
|
22984
|
+
[CSS$6.iconOnly]: !heading && icon && !description,
|
|
22985
|
+
[CSS$6.inputAlignmentEnd]: inputAlignment === "end",
|
|
22986
|
+
[CSS$6.inputAlignmentStart]: inputAlignment === "start",
|
|
22987
|
+
[CSS$6.inputEnabled]: inputEnabled,
|
|
22988
|
+
[CSS$6.largeVisual]: heading && icon && !description,
|
|
22989
|
+
[CSS$6.widthAuto]: width === "auto",
|
|
22990
|
+
[CSS$6.widthFull]: width === "full"
|
|
22991
|
+
} }, h("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }), h("slot", null)));
|
|
22982
22992
|
}
|
|
22983
22993
|
get el() { return this; }
|
|
22984
22994
|
static get watchers() { return {
|
|
@@ -24099,8 +24109,8 @@ let CalciteTooltip$1 = class extends HTMLElement$1 {
|
|
|
24099
24109
|
const displayed = effectiveReferenceElement && open;
|
|
24100
24110
|
const hidden = !displayed;
|
|
24101
24111
|
return (h(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, h("div", { class: {
|
|
24102
|
-
[CSS$
|
|
24103
|
-
[CSS$
|
|
24112
|
+
[CSS$D.animation]: true,
|
|
24113
|
+
[CSS$D.animationActive]: displayed
|
|
24104
24114
|
} }, h("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), h("div", { class: CSS$2.container }, h("slot", null)))));
|
|
24105
24115
|
}
|
|
24106
24116
|
get el() { return this; }
|
|
@@ -25016,8 +25026,8 @@ let CalciteValueListItem$1 = class extends HTMLElement$1 {
|
|
|
25016
25026
|
const { icon } = this;
|
|
25017
25027
|
if (icon === ICON_TYPES$1.grip) {
|
|
25018
25028
|
return (h("span", { "aria-pressed": this.handleActivated.toString(), class: {
|
|
25019
|
-
[CSS$
|
|
25020
|
-
[CSS$
|
|
25029
|
+
[CSS$h.handle]: true,
|
|
25030
|
+
[CSS$h.handleActivated]: this.handleActivated
|
|
25021
25031
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, h("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|
|
25022
25032
|
}
|
|
25023
25033
|
}
|