@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
package/hydrate/index.js
CHANGED
|
@@ -5961,7 +5961,7 @@ class CalciteAccordionItem {
|
|
|
5961
5961
|
}; }
|
|
5962
5962
|
}
|
|
5963
5963
|
|
|
5964
|
-
const CSS$
|
|
5964
|
+
const CSS$P = {
|
|
5965
5965
|
button: "button",
|
|
5966
5966
|
buttonTextVisible: "button--text-visible",
|
|
5967
5967
|
buttonCompact: "button--compact",
|
|
@@ -6076,8 +6076,8 @@ class CalciteAction {
|
|
|
6076
6076
|
renderTextContainer() {
|
|
6077
6077
|
const { text, textEnabled } = this;
|
|
6078
6078
|
const textContainerClasses = {
|
|
6079
|
-
[CSS$
|
|
6080
|
-
[CSS$
|
|
6079
|
+
[CSS$P.textContainer]: true,
|
|
6080
|
+
[CSS$P.textContainerVisible]: textEnabled
|
|
6081
6081
|
};
|
|
6082
6082
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
6083
6083
|
}
|
|
@@ -6090,18 +6090,18 @@ class CalciteAction {
|
|
|
6090
6090
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
6091
6091
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
6092
6092
|
const slotContainerNode = (hAsync("div", { class: {
|
|
6093
|
-
[CSS$
|
|
6094
|
-
[CSS$
|
|
6093
|
+
[CSS$P.slotContainer]: true,
|
|
6094
|
+
[CSS$P.slotContainerHidden]: loading
|
|
6095
6095
|
} }, hAsync("slot", null)));
|
|
6096
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
6096
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$P.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
6097
6097
|
}
|
|
6098
6098
|
render() {
|
|
6099
6099
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
6100
6100
|
const ariaLabel = label || text;
|
|
6101
6101
|
const buttonClasses = {
|
|
6102
|
-
[CSS$
|
|
6103
|
-
[CSS$
|
|
6104
|
-
[CSS$
|
|
6102
|
+
[CSS$P.button]: true,
|
|
6103
|
+
[CSS$P.buttonTextVisible]: textEnabled,
|
|
6104
|
+
[CSS$P.buttonCompact]: compact
|
|
6105
6105
|
};
|
|
6106
6106
|
return (hAsync(Host, { onClick: this.calciteActionClickHandler }, hAsync("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())));
|
|
6107
6107
|
}
|
|
@@ -6132,7 +6132,7 @@ class CalciteAction {
|
|
|
6132
6132
|
}; }
|
|
6133
6133
|
}
|
|
6134
6134
|
|
|
6135
|
-
const CSS$
|
|
6135
|
+
const CSS$O = {
|
|
6136
6136
|
menu: "menu",
|
|
6137
6137
|
defaultTrigger: "default-trigger"
|
|
6138
6138
|
};
|
|
@@ -6232,7 +6232,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
|
|
|
6232
6232
|
return tooltip ? hAsync("calcite-tooltip-manager", null, actionNode) : actionNode;
|
|
6233
6233
|
};
|
|
6234
6234
|
|
|
6235
|
-
const CSS$
|
|
6235
|
+
const CSS$N = {
|
|
6236
6236
|
actionGroupBottom: "action-group--bottom"
|
|
6237
6237
|
};
|
|
6238
6238
|
const SLOTS$n = {
|
|
@@ -7692,7 +7692,7 @@ class CalciteActionBar {
|
|
|
7692
7692
|
const expandLabel = intlExpand || TEXT$n.expand;
|
|
7693
7693
|
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
7694
7694
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
7695
|
-
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
7695
|
+
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$N.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.bottomActions }), hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
7696
7696
|
}
|
|
7697
7697
|
render() {
|
|
7698
7698
|
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -8060,14 +8060,14 @@ class CalciteActionMenu {
|
|
|
8060
8060
|
}
|
|
8061
8061
|
renderMenuButton() {
|
|
8062
8062
|
const { el, label, scale } = this;
|
|
8063
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$p.trigger }, hAsync("calcite-action", { class: CSS$
|
|
8063
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$p.trigger }, hAsync("calcite-action", { class: CSS$O.defaultTrigger, icon: ICONS$f.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label })));
|
|
8064
8064
|
return getSlotted(el, SLOTS$p.tooltip) ? (hAsync("calcite-tooltip-manager", null, menuButtonSlot)) : (menuButtonSlot);
|
|
8065
8065
|
}
|
|
8066
8066
|
renderMenuItems() {
|
|
8067
8067
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning } = this;
|
|
8068
8068
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
8069
8069
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
8070
|
-
return (hAsync("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
8070
|
+
return (hAsync("calcite-popover", { disablePointer: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("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 }, hAsync("slot", null))));
|
|
8071
8071
|
}
|
|
8072
8072
|
render() {
|
|
8073
8073
|
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$p.tooltip })));
|
|
@@ -8107,7 +8107,7 @@ class CalciteActionMenu {
|
|
|
8107
8107
|
}; }
|
|
8108
8108
|
}
|
|
8109
8109
|
|
|
8110
|
-
const CSS$
|
|
8110
|
+
const CSS$M = {
|
|
8111
8111
|
actionGroupBottom: "action-group--bottom",
|
|
8112
8112
|
container: "container"
|
|
8113
8113
|
};
|
|
@@ -8214,10 +8214,10 @@ class CalciteActionPad {
|
|
|
8214
8214
|
const expandLabel = intlExpand || TEXT$m.expand;
|
|
8215
8215
|
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
8216
8216
|
const expandToggleNode = !expandDisabled ? (hAsync(CalciteExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8217
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8217
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
8218
8218
|
}
|
|
8219
8219
|
render() {
|
|
8220
|
-
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$
|
|
8220
|
+
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$M.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
8221
8221
|
}
|
|
8222
8222
|
get el() { return getElement(this); }
|
|
8223
8223
|
static get watchers() { return {
|
|
@@ -8632,7 +8632,7 @@ function hexToHue(hex) {
|
|
|
8632
8632
|
return rgbToHue(hexToRGB(hex));
|
|
8633
8633
|
}
|
|
8634
8634
|
|
|
8635
|
-
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*/.sc-calcite-avatar:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-avatar{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-avatar{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-avatar{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-avatar{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-avatar{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-avatar:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-avatar-h{display:none}/*!@:host*/.sc-calcite-avatar-h{display
|
|
8635
|
+
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*/.sc-calcite-avatar:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-avatar{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-avatar{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-avatar{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-avatar{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-avatar{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-avatar:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-avatar-h{display:none}/*!@:host*/.sc-calcite-avatar-h{display:inline-block;border-radius:50%;overflow:hidden}/*!@:host([scale=s])*/[scale=s].sc-calcite-avatar-h{height:1.5rem;width:1.5rem;font-size:var(--calcite-font-size--3)}/*!@:host([scale=m])*/[scale=m].sc-calcite-avatar-h{height:2rem;width:2rem;font-size:var(--calcite-font-size--2)}/*!@:host([scale=l])*/[scale=l].sc-calcite-avatar-h{height:2.75rem;width:2.75rem;font-size:var(--calcite-font-size-0)}/*!@.icon*/.icon.sc-calcite-avatar{display:-ms-flexbox;display:flex}/*!@.background*/.background.sc-calcite-avatar{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*/.initials.sc-calcite-avatar{font-weight:var(--calcite-font-weight-bold);text-transform:uppercase;color:var(--calcite-ui-text-3)}/*!@.thumbnail*/.thumbnail.sc-calcite-avatar{height:100%;width:100%;border-radius:50%}";
|
|
8636
8636
|
|
|
8637
8637
|
class CalciteAvatar {
|
|
8638
8638
|
constructor(hostRef) {
|
|
@@ -8726,7 +8726,7 @@ class CalciteAvatar {
|
|
|
8726
8726
|
}; }
|
|
8727
8727
|
}
|
|
8728
8728
|
|
|
8729
|
-
const CSS$
|
|
8729
|
+
const CSS$L = {
|
|
8730
8730
|
article: "article",
|
|
8731
8731
|
content: "content",
|
|
8732
8732
|
headerContainer: "header-container",
|
|
@@ -8844,28 +8844,28 @@ class CalciteBlock {
|
|
|
8844
8844
|
const statusIcon = showingLoadingStatus ? ICONS$c.refresh : ICONS$c[status];
|
|
8845
8845
|
const hasIcon = getSlotted(el, SLOTS$k.icon) || statusIcon;
|
|
8846
8846
|
const iconEl = !statusIcon ? (hAsync("slot", { name: SLOTS$k.icon })) : (hAsync("calcite-icon", { class: {
|
|
8847
|
-
[CSS$
|
|
8848
|
-
[CSS$
|
|
8849
|
-
[CSS$
|
|
8850
|
-
[CSS$
|
|
8847
|
+
[CSS$L.statusIcon]: true,
|
|
8848
|
+
[CSS$L.valid]: status == "valid",
|
|
8849
|
+
[CSS$L.invalid]: status == "invalid",
|
|
8850
|
+
[CSS$L.loading]: showingLoadingStatus
|
|
8851
8851
|
}, icon: statusIcon, scale: "m" }));
|
|
8852
|
-
return hasIcon ? hAsync("div", { class: CSS$
|
|
8852
|
+
return hasIcon ? hAsync("div", { class: CSS$L.icon }, iconEl) : null;
|
|
8853
8853
|
}
|
|
8854
8854
|
renderTitle() {
|
|
8855
8855
|
const { heading, headingLevel, summary } = this;
|
|
8856
|
-
return heading || summary ? (hAsync("div", { class: CSS$
|
|
8856
|
+
return heading || summary ? (hAsync("div", { class: CSS$L.title }, hAsync(CalciteHeading, { class: CSS$L.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? hAsync("div", { class: CSS$L.summary }, summary) : null)) : null;
|
|
8857
8857
|
}
|
|
8858
8858
|
render() {
|
|
8859
8859
|
const { collapsible, disabled, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
8860
8860
|
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
8861
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
8861
|
+
const headerContent = (hAsync("header", { class: CSS$L.header }, this.renderIcon(), this.renderTitle()));
|
|
8862
8862
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
8863
8863
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
8864
8864
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
8865
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
8865
|
+
const headerNode = (hAsync("div", { class: CSS$L.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$L.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$L.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$L.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$k.options }, hAsync("slot", { name: SLOTS$k.headerMenuActions }))) : null));
|
|
8866
8866
|
return (hAsync(Host, { tabIndex: disabled ? -1 : null }, hAsync("article", { "aria-busy": loading.toString(), class: {
|
|
8867
|
-
[CSS$
|
|
8868
|
-
} }, headerNode, hAsync("div", { class: CSS$
|
|
8867
|
+
[CSS$L.article]: true
|
|
8868
|
+
} }, headerNode, hAsync("div", { class: CSS$L.content, hidden: !open }, this.renderScrim()))));
|
|
8869
8869
|
}
|
|
8870
8870
|
get el() { return getElement(this); }
|
|
8871
8871
|
static get style() { return calciteBlockCss; }
|
|
@@ -8893,7 +8893,7 @@ class CalciteBlock {
|
|
|
8893
8893
|
}; }
|
|
8894
8894
|
}
|
|
8895
8895
|
|
|
8896
|
-
const CSS$
|
|
8896
|
+
const CSS$K = {
|
|
8897
8897
|
content: "content",
|
|
8898
8898
|
invalid: "invalid",
|
|
8899
8899
|
toggle: "toggle",
|
|
@@ -8963,9 +8963,9 @@ class CalciteBlockSection {
|
|
|
8963
8963
|
const { status } = this;
|
|
8964
8964
|
const statusIcon = (_a = ICONS$b[status]) !== null && _a !== void 0 ? _a : false;
|
|
8965
8965
|
const statusIconClasses = {
|
|
8966
|
-
[CSS$
|
|
8967
|
-
[CSS$
|
|
8968
|
-
[CSS$
|
|
8966
|
+
[CSS$K.statusIcon]: true,
|
|
8967
|
+
[CSS$K.valid]: status == "valid",
|
|
8968
|
+
[CSS$K.invalid]: status == "invalid"
|
|
8969
8969
|
};
|
|
8970
8970
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
8971
8971
|
}
|
|
@@ -8979,13 +8979,13 @@ class CalciteBlockSection {
|
|
|
8979
8979
|
: ICONS$b.menuClosedRight;
|
|
8980
8980
|
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
8981
8981
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-label": toggleLabel, class: {
|
|
8982
|
-
[CSS$
|
|
8983
|
-
[CSS$
|
|
8984
|
-
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
8985
|
-
[CSS$
|
|
8986
|
-
[CSS$
|
|
8987
|
-
}, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
8988
|
-
return (hAsync("section", { "aria-expanded": open.toString() }, headerNode, hAsync("div", { class: CSS$
|
|
8982
|
+
[CSS$K.toggle]: true,
|
|
8983
|
+
[CSS$K.toggleSwitch]: true
|
|
8984
|
+
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$K.toggleSwitchContent }, hAsync("span", { class: CSS$K.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-label": toggleLabel, class: {
|
|
8985
|
+
[CSS$K.sectionHeader]: true,
|
|
8986
|
+
[CSS$K.toggle]: true
|
|
8987
|
+
}, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$K.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
8988
|
+
return (hAsync("section", { "aria-expanded": open.toString() }, headerNode, hAsync("div", { class: CSS$K.content, hidden: !open }, hAsync("slot", null))));
|
|
8989
8989
|
}
|
|
8990
8990
|
get el() { return getElement(this); }
|
|
8991
8991
|
static get style() { return calciteBlockSectionCss; }
|
|
@@ -9034,7 +9034,7 @@ class CalciteBlockSection {
|
|
|
9034
9034
|
}
|
|
9035
9035
|
})(HTMLFormElement.prototype);
|
|
9036
9036
|
|
|
9037
|
-
const CSS$
|
|
9037
|
+
const CSS$J = {
|
|
9038
9038
|
buttonLoader: "calcite-button--loader",
|
|
9039
9039
|
content: "content",
|
|
9040
9040
|
contentSlotted: "content--slotted",
|
|
@@ -9218,14 +9218,14 @@ class CalciteButton {
|
|
|
9218
9218
|
}
|
|
9219
9219
|
render() {
|
|
9220
9220
|
const Tag = this.childElType;
|
|
9221
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
9222
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9223
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
9224
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
9221
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$J.buttonLoader }, hAsync("calcite-loader", { active: true, class: this.loading ? CSS$J.loadingIn : CSS$J.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
9222
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
9223
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$J.icon]: true, [CSS$J.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
9224
|
+
const contentEl = (hAsync("span", { class: CSS$J.content }, hAsync("slot", null)));
|
|
9225
9225
|
return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
|
|
9226
|
-
[CSS$
|
|
9227
|
-
[CSS$
|
|
9228
|
-
[CSS$
|
|
9226
|
+
[CSS$J.contentSlotted]: this.hasContent,
|
|
9227
|
+
[CSS$J.iconStartEmpty]: !this.iconStart,
|
|
9228
|
+
[CSS$J.iconEndEmpty]: !this.iconEnd
|
|
9229
9229
|
}, 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));
|
|
9230
9230
|
}
|
|
9231
9231
|
//--------------------------------------------------------------------------
|
|
@@ -9299,7 +9299,7 @@ class CalciteButton {
|
|
|
9299
9299
|
}; }
|
|
9300
9300
|
}
|
|
9301
9301
|
|
|
9302
|
-
const CSS$
|
|
9302
|
+
const CSS$I = {
|
|
9303
9303
|
container: "container",
|
|
9304
9304
|
header: "header",
|
|
9305
9305
|
footer: "footer",
|
|
@@ -9390,7 +9390,7 @@ class CalciteCard {
|
|
|
9390
9390
|
//
|
|
9391
9391
|
// --------------------------------------------------------------------------
|
|
9392
9392
|
render() {
|
|
9393
|
-
return (hAsync("div", { class: "calcite-card-container" }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, hAsync("section", { "aria-busy": this.loading.toString(), class: { [CSS$
|
|
9393
|
+
return (hAsync("div", { class: "calcite-card-container" }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, hAsync("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter())));
|
|
9394
9394
|
}
|
|
9395
9395
|
selectCard() {
|
|
9396
9396
|
this.selected = !this.selected;
|
|
@@ -9398,23 +9398,23 @@ class CalciteCard {
|
|
|
9398
9398
|
}
|
|
9399
9399
|
renderThumbnail() {
|
|
9400
9400
|
const hasThumbnail = this.el.querySelector(`[slot=${SLOTS$j.thumbnail}]`);
|
|
9401
|
-
return hasThumbnail ? (hAsync("div", { class: CSS$
|
|
9401
|
+
return hasThumbnail ? (hAsync("div", { class: CSS$I.thumbnailWrapper }, hAsync("slot", { name: SLOTS$j.thumbnail }))) : null;
|
|
9402
9402
|
}
|
|
9403
9403
|
renderCheckbox() {
|
|
9404
9404
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
9405
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
9405
|
+
return (hAsync("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
9406
9406
|
}
|
|
9407
9407
|
renderHeader() {
|
|
9408
9408
|
const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
|
|
9409
9409
|
const subtitle = this.el.querySelector(`[slot=${SLOTS$j.subtitle}]`);
|
|
9410
9410
|
const hasHeader = title || subtitle;
|
|
9411
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
9411
|
+
return hasHeader ? (hAsync("header", { class: CSS$I.header }, hAsync("slot", { name: SLOTS$j.title }), hAsync("slot", { name: SLOTS$j.subtitle }))) : null;
|
|
9412
9412
|
}
|
|
9413
9413
|
renderFooter() {
|
|
9414
9414
|
const leadingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerLeading}]`);
|
|
9415
9415
|
const trailingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerTrailing}]`);
|
|
9416
9416
|
const hasFooter = leadingFooter || trailingFooter;
|
|
9417
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
9417
|
+
return hasFooter ? (hAsync("footer", { class: CSS$I.footer }, hAsync("slot", { name: SLOTS$j.footerLeading }), hAsync("slot", { name: SLOTS$j.footerTrailing }))) : null;
|
|
9418
9418
|
}
|
|
9419
9419
|
get el() { return getElement(this); }
|
|
9420
9420
|
static get style() { return calciteCardCss; }
|
|
@@ -9712,7 +9712,7 @@ class CalciteCheckbox {
|
|
|
9712
9712
|
//
|
|
9713
9713
|
// --------------------------------------------------------------------------
|
|
9714
9714
|
render() {
|
|
9715
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("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 }, hAsync("svg", { class: "check-svg", viewBox: "0 0 16 16" }, hAsync("path", { d: this.getPath() })), hAsync("slot", null)), hAsync(HiddenFormInputSlot, { component: this })));
|
|
9715
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("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 }, hAsync("svg", { class: "check-svg", viewBox: "0 0 16 16" }, hAsync("path", { d: this.getPath() })), hAsync("slot", null)), hAsync(HiddenFormInputSlot, { component: this })));
|
|
9716
9716
|
}
|
|
9717
9717
|
get el() { return getElement(this); }
|
|
9718
9718
|
static get style() { return calciteCheckboxCss; }
|
|
@@ -9738,7 +9738,7 @@ class CalciteCheckbox {
|
|
|
9738
9738
|
}; }
|
|
9739
9739
|
}
|
|
9740
9740
|
|
|
9741
|
-
const CSS$
|
|
9741
|
+
const CSS$H = {
|
|
9742
9742
|
title: "title",
|
|
9743
9743
|
close: "close",
|
|
9744
9744
|
chipImageContainer: "chip-image-container",
|
|
@@ -9812,12 +9812,12 @@ class CalciteChip {
|
|
|
9812
9812
|
renderChipImage() {
|
|
9813
9813
|
const { el } = this;
|
|
9814
9814
|
const hasChipImage = getSlotted(el, SLOTS$i.image);
|
|
9815
|
-
return hasChipImage ? (hAsync("div", { class: CSS$
|
|
9815
|
+
return hasChipImage ? (hAsync("div", { class: CSS$H.chipImageContainer }, hAsync("slot", { name: SLOTS$i.image }))) : null;
|
|
9816
9816
|
}
|
|
9817
9817
|
render() {
|
|
9818
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
9819
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
9820
|
-
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$
|
|
9818
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$H.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
9819
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$H.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: ICONS$a.close, scale: "s" })));
|
|
9820
|
+
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$H.title, id: this.guid }, hAsync("slot", null)), this.dismissible ? closeButton : null));
|
|
9821
9821
|
}
|
|
9822
9822
|
get el() { return getElement(this); }
|
|
9823
9823
|
static get style() { return calciteChipCss; }
|
|
@@ -11945,7 +11945,7 @@ function zeroArray(array, length) {
|
|
|
11945
11945
|
|
|
11946
11946
|
var color = Color;
|
|
11947
11947
|
|
|
11948
|
-
const CSS$
|
|
11948
|
+
const CSS$G = {
|
|
11949
11949
|
container: "container",
|
|
11950
11950
|
controlSection: "control-section",
|
|
11951
11951
|
hexOptions: "color-hex-options",
|
|
@@ -12437,7 +12437,7 @@ class CalciteColorPicker {
|
|
|
12437
12437
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
12438
12438
|
const active = channelMode === activeChannelMode;
|
|
12439
12439
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
12440
|
-
return (hAsync("calcite-tab-title", { active: active, class: CSS$
|
|
12440
|
+
return (hAsync("calcite-tab-title", { active: active, class: CSS$G.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
12441
12441
|
};
|
|
12442
12442
|
this.renderChannelsTab = (channelMode) => {
|
|
12443
12443
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -12447,9 +12447,9 @@ class CalciteColorPicker {
|
|
|
12447
12447
|
const channelAriaLabels = isRgb
|
|
12448
12448
|
? [intlRed, intlGreen, intlBlue]
|
|
12449
12449
|
: [intlHue, intlSaturation, intlValue];
|
|
12450
|
-
return (hAsync("calcite-tab", { active: active, class: CSS$
|
|
12450
|
+
return (hAsync("calcite-tab", { active: active, class: CSS$G.control, key: channelMode }, hAsync("div", { class: CSS$G.channels }, channels.map((channel, index) => this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index])))));
|
|
12451
12451
|
};
|
|
12452
|
-
this.renderChannel = (value, index, label, ariaLabel) => (hAsync("calcite-input", { class: CSS$
|
|
12452
|
+
this.renderChannel = (value, index, label, ariaLabel) => (hAsync("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() }));
|
|
12453
12453
|
this.deleteColor = () => {
|
|
12454
12454
|
const colorToDelete = this.color.hex();
|
|
12455
12455
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -12564,7 +12564,7 @@ class CalciteColorPicker {
|
|
|
12564
12564
|
this.shiftKeyChannelAdjustment = 0;
|
|
12565
12565
|
const key = event.key;
|
|
12566
12566
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
12567
|
-
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$
|
|
12567
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS$G.channel); })) {
|
|
12568
12568
|
return;
|
|
12569
12569
|
}
|
|
12570
12570
|
const { shiftKey } = event;
|
|
@@ -12632,20 +12632,20 @@ class CalciteColorPicker {
|
|
|
12632
12632
|
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
12633
12633
|
const noColor = color === null;
|
|
12634
12634
|
const vertical = scopeOrientation === "vertical";
|
|
12635
|
-
return (hAsync("div", { class: CSS$
|
|
12636
|
-
[CSS$
|
|
12637
|
-
[CSS$
|
|
12638
|
-
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("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$
|
|
12639
|
-
[CSS$
|
|
12640
|
-
[CSS$
|
|
12641
|
-
} }, hideHex ? null : (hAsync("div", { class: CSS$
|
|
12642
|
-
[CSS$
|
|
12643
|
-
[CSS$
|
|
12644
|
-
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
12645
|
-
[CSS$
|
|
12646
|
-
[CSS$
|
|
12647
|
-
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$
|
|
12648
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
12635
|
+
return (hAsync("div", { class: CSS$G.container }, hAsync("div", { class: CSS$G.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
12636
|
+
[CSS$G.colorFieldAndSlider]: true,
|
|
12637
|
+
[CSS$G.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
12638
|
+
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("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" }), hAsync("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 : (hAsync("div", { class: {
|
|
12639
|
+
[CSS$G.controlSection]: true,
|
|
12640
|
+
[CSS$G.section]: true
|
|
12641
|
+
} }, hideHex ? null : (hAsync("div", { class: CSS$G.hexOptions }, hAsync("span", { class: {
|
|
12642
|
+
[CSS$G.header]: true,
|
|
12643
|
+
[CSS$G.headerHex]: true
|
|
12644
|
+
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$G.control, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
12645
|
+
[CSS$G.colorModeContainer]: true,
|
|
12646
|
+
[CSS$G.splitSection]: true
|
|
12647
|
+
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$G.savedColorsSection]: true, [CSS$G.section]: true } }, hAsync("div", { class: CSS$G.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$G.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$G.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale }), hAsync("calcite-button", { appearance: "transparent", class: CSS$G.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$G.savedColors }, [
|
|
12648
|
+
...savedColors.map((color) => (hAsync("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 })))
|
|
12649
12649
|
])) : null))));
|
|
12650
12650
|
}
|
|
12651
12651
|
// --------------------------------------------------------------------------
|
|
@@ -12872,7 +12872,7 @@ class CalciteColorPicker {
|
|
|
12872
12872
|
}; }
|
|
12873
12873
|
}
|
|
12874
12874
|
|
|
12875
|
-
const CSS$
|
|
12875
|
+
const CSS$F = {
|
|
12876
12876
|
container: "container",
|
|
12877
12877
|
preview: "preview",
|
|
12878
12878
|
input: "input"
|
|
@@ -13039,7 +13039,7 @@ class CalciteColorPickerHexInput {
|
|
|
13039
13039
|
render() {
|
|
13040
13040
|
const { intlHex, value } = this;
|
|
13041
13041
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13042
|
-
return (hAsync("div", { class: CSS$
|
|
13042
|
+
return (hAsync("div", { class: CSS$F.container }, hAsync("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 ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$F.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13043
13043
|
}
|
|
13044
13044
|
//--------------------------------------------------------------------------
|
|
13045
13045
|
//
|
|
@@ -13079,7 +13079,7 @@ class CalciteColorPickerHexInput {
|
|
|
13079
13079
|
}; }
|
|
13080
13080
|
}
|
|
13081
13081
|
|
|
13082
|
-
const CSS$
|
|
13082
|
+
const CSS$E = {
|
|
13083
13083
|
swatch: "swatch",
|
|
13084
13084
|
noColorIcon: "no-color-icon"
|
|
13085
13085
|
};
|
|
@@ -13124,7 +13124,7 @@ class CalciteColorPickerSwatch {
|
|
|
13124
13124
|
const hex = internalColor.hex();
|
|
13125
13125
|
const theme = getThemeName(el);
|
|
13126
13126
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
13127
|
-
return (hAsync("svg", { class: CSS$
|
|
13127
|
+
return (hAsync("svg", { class: CSS$E.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
13128
13128
|
}
|
|
13129
13129
|
get el() { return getElement(this); }
|
|
13130
13130
|
static get watchers() { return {
|
|
@@ -14943,7 +14943,7 @@ var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
|
14943
14943
|
defaultModifiers: defaultModifiers
|
|
14944
14944
|
}); // eslint-disable-next-line import/no-unused-modules
|
|
14945
14945
|
|
|
14946
|
-
const CSS$
|
|
14946
|
+
const CSS$D = {
|
|
14947
14947
|
animation: "calcite-popper-anim",
|
|
14948
14948
|
animationActive: "calcite-popper-anim--active"
|
|
14949
14949
|
};
|
|
@@ -15698,8 +15698,8 @@ class CalciteCombobox {
|
|
|
15698
15698
|
const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
|
|
15699
15699
|
const classes = {
|
|
15700
15700
|
"list-container": true,
|
|
15701
|
-
[CSS$
|
|
15702
|
-
[CSS$
|
|
15701
|
+
[CSS$D.animation]: true,
|
|
15702
|
+
[CSS$D.animationActive]: active
|
|
15703
15703
|
};
|
|
15704
15704
|
const style = {
|
|
15705
15705
|
maxHeight: maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : ""
|
|
@@ -15771,7 +15771,7 @@ class CalciteCombobox {
|
|
|
15771
15771
|
}; }
|
|
15772
15772
|
}
|
|
15773
15773
|
|
|
15774
|
-
const CSS$
|
|
15774
|
+
const CSS$C = {
|
|
15775
15775
|
icon: "icon",
|
|
15776
15776
|
iconActive: "icon--active",
|
|
15777
15777
|
custom: "icon--custom",
|
|
@@ -15857,18 +15857,18 @@ class CalciteComboboxItem {
|
|
|
15857
15857
|
// --------------------------------------------------------------------------
|
|
15858
15858
|
renderIcon(isSingle) {
|
|
15859
15859
|
const { icon, disabled, selected } = this;
|
|
15860
|
-
const level = `${CSS$
|
|
15860
|
+
const level = `${CSS$C.icon}--indent`;
|
|
15861
15861
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
15862
15862
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
15863
15863
|
const showDot = isSingle && !icon && !disabled;
|
|
15864
15864
|
return showDot ? (hAsync("span", { class: {
|
|
15865
|
-
[CSS$
|
|
15866
|
-
[CSS$
|
|
15865
|
+
[CSS$C.icon]: true,
|
|
15866
|
+
[CSS$C.dot]: true,
|
|
15867
15867
|
[level]: true
|
|
15868
15868
|
} })) : (hAsync("calcite-icon", { class: {
|
|
15869
|
-
[CSS$
|
|
15870
|
-
[CSS$
|
|
15871
|
-
[CSS$
|
|
15869
|
+
[CSS$C.icon]: !icon,
|
|
15870
|
+
[CSS$C.custom]: !!icon,
|
|
15871
|
+
[CSS$C.iconActive]: icon && selected,
|
|
15872
15872
|
[level]: true
|
|
15873
15873
|
}, icon: icon || iconPath, scale: "s" }));
|
|
15874
15874
|
}
|
|
@@ -15881,13 +15881,13 @@ class CalciteComboboxItem {
|
|
|
15881
15881
|
render() {
|
|
15882
15882
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
15883
15883
|
const classes = {
|
|
15884
|
-
[CSS$
|
|
15885
|
-
[CSS$
|
|
15886
|
-
[CSS$
|
|
15887
|
-
[CSS$
|
|
15884
|
+
[CSS$C.label]: true,
|
|
15885
|
+
[CSS$C.selected]: this.selected,
|
|
15886
|
+
[CSS$C.active]: this.active,
|
|
15887
|
+
[CSS$C.single]: isSingleSelect
|
|
15888
15888
|
};
|
|
15889
15889
|
const depth = getDepth();
|
|
15890
|
-
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$
|
|
15890
|
+
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$C.title }, this.textLabel)), this.renderChildren())));
|
|
15891
15891
|
}
|
|
15892
15892
|
get el() { return getElement(this); }
|
|
15893
15893
|
static get watchers() { return {
|
|
@@ -15915,7 +15915,7 @@ class CalciteComboboxItem {
|
|
|
15915
15915
|
}; }
|
|
15916
15916
|
}
|
|
15917
15917
|
|
|
15918
|
-
const CSS$
|
|
15918
|
+
const CSS$B = {
|
|
15919
15919
|
list: "list",
|
|
15920
15920
|
label: "label",
|
|
15921
15921
|
title: "title"
|
|
@@ -15948,8 +15948,8 @@ class CalciteComboboxItemGroup {
|
|
|
15948
15948
|
// --------------------------------------------------------------------------
|
|
15949
15949
|
render() {
|
|
15950
15950
|
const { el, scale } = this;
|
|
15951
|
-
const indent = `${CSS$
|
|
15952
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
15951
|
+
const indent = `${CSS$B.label}--indent-${getDepth()}`;
|
|
15952
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$B.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$B.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$B.title }, this.label)), hAsync("slot", null)));
|
|
15953
15953
|
}
|
|
15954
15954
|
get el() { return getElement(this); }
|
|
15955
15955
|
static get style() { return calciteComboboxItemGroupCss; }
|
|
@@ -15976,7 +15976,7 @@ function isValidNumber(numberString) {
|
|
|
15976
15976
|
}
|
|
15977
15977
|
function parseNumberString(numberString) {
|
|
15978
15978
|
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
15979
|
-
return
|
|
15979
|
+
return "";
|
|
15980
15980
|
}
|
|
15981
15981
|
let containsDecimal = false;
|
|
15982
15982
|
const result = numberString
|
|
@@ -15995,17 +15995,24 @@ function parseNumberString(numberString) {
|
|
|
15995
15995
|
return isValidNumber(result) ? Number(result).toString() : null;
|
|
15996
15996
|
}
|
|
15997
15997
|
function sanitizeDecimalString(decimalString) {
|
|
15998
|
-
|
|
15998
|
+
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
15999
|
+
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
15999
16000
|
}
|
|
16000
16001
|
function sanitizeNegativeString(negativeString) {
|
|
16001
|
-
|
|
16002
|
+
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
16003
|
+
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
16002
16004
|
}
|
|
16003
16005
|
function sanitizeLeadingZeroString(zeroString) {
|
|
16004
|
-
|
|
16006
|
+
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
16007
|
+
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
16005
16008
|
}
|
|
16006
16009
|
function sanitizeNumberString(value) {
|
|
16007
|
-
|
|
16008
|
-
|
|
16010
|
+
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
|
|
16011
|
+
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
16012
|
+
return isValidNumber(sanitizedValue)
|
|
16013
|
+
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
16014
|
+
? sanitizedValue
|
|
16015
|
+
: Number(sanitizedValue).toString()
|
|
16009
16016
|
: value;
|
|
16010
16017
|
}
|
|
16011
16018
|
function stringContainsNumbers(string) {
|
|
@@ -17338,8 +17345,8 @@ class CalciteDropdown {
|
|
|
17338
17345
|
const { active } = this;
|
|
17339
17346
|
return (hAsync(Host, { tabIndex: this.disabled ? -1 : null }, hAsync("div", { class: "calcite-dropdown-trigger-container", onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, hAsync("slot", { "aria-expanded": active.toString(), "aria-haspopup": "true", name: SLOTS$h.dropdownTrigger })), hAsync("div", { "aria-hidden": (!active).toString(), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, hAsync("div", { class: {
|
|
17340
17347
|
["calcite-dropdown-content"]: true,
|
|
17341
|
-
[CSS$
|
|
17342
|
-
[CSS$
|
|
17348
|
+
[CSS$D.animation]: true,
|
|
17349
|
+
[CSS$D.animationActive]: active
|
|
17343
17350
|
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, hAsync("slot", null)))));
|
|
17344
17351
|
}
|
|
17345
17352
|
//--------------------------------------------------------------------------
|
|
@@ -17552,7 +17559,7 @@ class CalciteDropdown {
|
|
|
17552
17559
|
}; }
|
|
17553
17560
|
}
|
|
17554
17561
|
|
|
17555
|
-
const CSS$
|
|
17562
|
+
const CSS$A = {
|
|
17556
17563
|
containerSmall: "container--s",
|
|
17557
17564
|
containerMedium: "container--m",
|
|
17558
17565
|
containerLarge: "container--l"
|
|
@@ -17585,9 +17592,9 @@ class CalciteDropdownGroup {
|
|
|
17585
17592
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
17586
17593
|
return (hAsync(Host, { role: "menu" }, hAsync("div", { class: {
|
|
17587
17594
|
container: true,
|
|
17588
|
-
[CSS$
|
|
17589
|
-
[CSS$
|
|
17590
|
-
[CSS$
|
|
17595
|
+
[CSS$A.containerSmall]: scale === "s",
|
|
17596
|
+
[CSS$A.containerMedium]: scale === "m",
|
|
17597
|
+
[CSS$A.containerLarge]: scale === "l"
|
|
17591
17598
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
17592
17599
|
}
|
|
17593
17600
|
//--------------------------------------------------------------------------
|
|
@@ -17627,7 +17634,7 @@ class CalciteDropdownGroup {
|
|
|
17627
17634
|
}; }
|
|
17628
17635
|
}
|
|
17629
17636
|
|
|
17630
|
-
const CSS$
|
|
17637
|
+
const CSS$z = {
|
|
17631
17638
|
containerLink: "container--link",
|
|
17632
17639
|
containerSmall: "container--s",
|
|
17633
17640
|
containerMedium: "container--m",
|
|
@@ -17700,13 +17707,13 @@ class CalciteDropdownItem {
|
|
|
17700
17707
|
const itemAria = this.selectionMode !== "none" ? this.active.toString() : null;
|
|
17701
17708
|
return (hAsync(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
17702
17709
|
container: true,
|
|
17703
|
-
[CSS$
|
|
17704
|
-
[CSS$
|
|
17705
|
-
[CSS$
|
|
17706
|
-
[CSS$
|
|
17707
|
-
[CSS$
|
|
17708
|
-
[CSS$
|
|
17709
|
-
[CSS$
|
|
17710
|
+
[CSS$z.containerLink]: !!this.href,
|
|
17711
|
+
[CSS$z.containerSmall]: scale === "s",
|
|
17712
|
+
[CSS$z.containerMedium]: scale === "m",
|
|
17713
|
+
[CSS$z.containerLarge]: scale === "l",
|
|
17714
|
+
[CSS$z.containerMulti]: this.selectionMode === "multi",
|
|
17715
|
+
[CSS$z.containerSingle]: this.selectionMode === "single",
|
|
17716
|
+
[CSS$z.containerNone]: this.selectionMode === "none"
|
|
17710
17717
|
} }, this.selectionMode !== "none" ? (hAsync("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
17711
17718
|
}
|
|
17712
17719
|
//--------------------------------------------------------------------------
|
|
@@ -17806,7 +17813,7 @@ class CalciteDropdownItem {
|
|
|
17806
17813
|
}; }
|
|
17807
17814
|
}
|
|
17808
17815
|
|
|
17809
|
-
const CSS$
|
|
17816
|
+
const CSS$y = {
|
|
17810
17817
|
button: "button"
|
|
17811
17818
|
};
|
|
17812
17819
|
const ICONS$9 = {
|
|
@@ -17870,7 +17877,7 @@ class CalciteFab {
|
|
|
17870
17877
|
render() {
|
|
17871
17878
|
const { appearance, color, disabled, loading, scale, textEnabled, icon, label, text } = this;
|
|
17872
17879
|
const title = !textEnabled ? label || text || null : null;
|
|
17873
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$
|
|
17880
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline", class: CSS$y.button, color: color, disabled: disabled, iconStart: icon, label: label, loading: loading, ref: (buttonEl) => {
|
|
17874
17881
|
this.buttonEl = buttonEl;
|
|
17875
17882
|
}, round: true, scale: scale, title: title, width: "auto" }, this.textEnabled ? this.text : null));
|
|
17876
17883
|
}
|
|
@@ -17897,7 +17904,7 @@ class CalciteFab {
|
|
|
17897
17904
|
}; }
|
|
17898
17905
|
}
|
|
17899
17906
|
|
|
17900
|
-
const CSS$
|
|
17907
|
+
const CSS$x = {
|
|
17901
17908
|
container: "container",
|
|
17902
17909
|
searchIcon: "search-icon",
|
|
17903
17910
|
clearButton: "clear-button"
|
|
@@ -18002,9 +18009,9 @@ class CalciteFilter {
|
|
|
18002
18009
|
// --------------------------------------------------------------------------
|
|
18003
18010
|
render() {
|
|
18004
18011
|
const { disabled } = this;
|
|
18005
|
-
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$
|
|
18012
|
+
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$x.container }, hAsync("label", null, hAsync("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) => {
|
|
18006
18013
|
this.textInput = el;
|
|
18007
|
-
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$
|
|
18014
|
+
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$x.clearButton, onClick: this.clear }, hAsync("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
18008
18015
|
}
|
|
18009
18016
|
get el() { return getElement(this); }
|
|
18010
18017
|
static get watchers() { return {
|
|
@@ -18031,7 +18038,7 @@ class CalciteFilter {
|
|
|
18031
18038
|
}; }
|
|
18032
18039
|
}
|
|
18033
18040
|
|
|
18034
|
-
const CSS$
|
|
18041
|
+
const CSS$w = {
|
|
18035
18042
|
frame: "frame",
|
|
18036
18043
|
frameAdvancing: "frame--advancing",
|
|
18037
18044
|
frameRetreating: "frame--retreating"
|
|
@@ -18132,9 +18139,9 @@ class CalciteFlow {
|
|
|
18132
18139
|
render() {
|
|
18133
18140
|
const { flowDirection, panelCount } = this;
|
|
18134
18141
|
const frameDirectionClasses = {
|
|
18135
|
-
[CSS$
|
|
18136
|
-
[CSS$
|
|
18137
|
-
[CSS$
|
|
18142
|
+
[CSS$w.frame]: true,
|
|
18143
|
+
[CSS$w.frameAdvancing]: flowDirection === "advancing",
|
|
18144
|
+
[CSS$w.frameRetreating]: flowDirection === "retreating"
|
|
18138
18145
|
};
|
|
18139
18146
|
return (hAsync("div", { class: frameDirectionClasses, key: panelCount }, hAsync("slot", null)));
|
|
18140
18147
|
}
|
|
@@ -18354,7 +18361,7 @@ class CalciteGraph {
|
|
|
18354
18361
|
}; }
|
|
18355
18362
|
}
|
|
18356
18363
|
|
|
18357
|
-
const CSS$
|
|
18364
|
+
const CSS$v = {
|
|
18358
18365
|
handle: "handle",
|
|
18359
18366
|
handleActivated: "handle--activated"
|
|
18360
18367
|
};
|
|
@@ -18422,7 +18429,7 @@ class CalciteHandle {
|
|
|
18422
18429
|
render() {
|
|
18423
18430
|
return (
|
|
18424
18431
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
18425
|
-
hAsync("span", { "aria-pressed": this.activated.toString(), class: { [CSS$
|
|
18432
|
+
hAsync("span", { "aria-pressed": this.activated.toString(), class: { [CSS$v.handle]: true, [CSS$v.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
18426
18433
|
this.handleButton = el;
|
|
18427
18434
|
}, role: "button", tabindex: "0", title: this.textTitle }, hAsync("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
18428
18435
|
}
|
|
@@ -18442,7 +18449,7 @@ class CalciteHandle {
|
|
|
18442
18449
|
}; }
|
|
18443
18450
|
}
|
|
18444
18451
|
|
|
18445
|
-
const CSS$
|
|
18452
|
+
const CSS$u = {
|
|
18446
18453
|
icon: "icon",
|
|
18447
18454
|
flipRtl: "flip-rtl"
|
|
18448
18455
|
};
|
|
@@ -18503,7 +18510,7 @@ class CalciteIcon {
|
|
|
18503
18510
|
const semantic = !!textLabel;
|
|
18504
18511
|
const paths = [].concat(pathData || "");
|
|
18505
18512
|
return (hAsync(Host, { "aria-hidden": (!semantic).toString(), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { class: {
|
|
18506
|
-
[CSS$
|
|
18513
|
+
[CSS$u.flipRtl]: dir === "rtl" && flipRtl,
|
|
18507
18514
|
svg: true
|
|
18508
18515
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (hAsync("path", { d: path })) : (hAsync("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
18509
18516
|
}
|
|
@@ -18549,7 +18556,7 @@ class CalciteIcon {
|
|
|
18549
18556
|
}; }
|
|
18550
18557
|
}
|
|
18551
18558
|
|
|
18552
|
-
const CSS$
|
|
18559
|
+
const CSS$t = {
|
|
18553
18560
|
wrapper: "wrapper",
|
|
18554
18561
|
confirmChangesButton: "confirm-changes-button",
|
|
18555
18562
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -18698,12 +18705,12 @@ class CalciteInlineEditable {
|
|
|
18698
18705
|
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
18699
18706
|
}
|
|
18700
18707
|
render() {
|
|
18701
|
-
return (hAsync("div", { class: CSS$
|
|
18708
|
+
return (hAsync("div", { class: CSS$t.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, hAsync("div", { class: CSS$t.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$t.controlsWrapper }, hAsync("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: {
|
|
18702
18709
|
opacity: this.editingEnabled ? "0" : "1",
|
|
18703
18710
|
width: this.editingEnabled ? "0" : "inherit"
|
|
18704
18711
|
} }), this.shouldShowControls && [
|
|
18705
|
-
hAsync("div", { class: CSS$
|
|
18706
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
18712
|
+
hAsync("div", { class: CSS$t.cancelEditingButtonWrapper }, hAsync("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 })),
|
|
18713
|
+
hAsync("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 })
|
|
18707
18714
|
])));
|
|
18708
18715
|
}
|
|
18709
18716
|
//--------------------------------------------------------------------------
|
|
@@ -18768,7 +18775,7 @@ class CalciteInlineEditable {
|
|
|
18768
18775
|
}; }
|
|
18769
18776
|
}
|
|
18770
18777
|
|
|
18771
|
-
const CSS$
|
|
18778
|
+
const CSS$s = {
|
|
18772
18779
|
loader: "loader",
|
|
18773
18780
|
clearButton: "clear-button",
|
|
18774
18781
|
editingEnabled: "editing-enabled",
|
|
@@ -19019,18 +19026,19 @@ class CalciteInput {
|
|
|
19019
19026
|
};
|
|
19020
19027
|
this.setValue = (value, nativeEvent, committing = false) => {
|
|
19021
19028
|
const previousValue = this.value;
|
|
19022
|
-
this.value = this.type === "number" ? sanitizeNumberString(value) : value;
|
|
19023
19029
|
if (this.type === "number") {
|
|
19024
|
-
|
|
19030
|
+
const sanitizedValue = sanitizeNumberString(value);
|
|
19031
|
+
this.value = sanitizedValue;
|
|
19032
|
+
this.setLocalizedValue(sanitizedValue);
|
|
19033
|
+
}
|
|
19034
|
+
else {
|
|
19035
|
+
this.value = value;
|
|
19025
19036
|
}
|
|
19026
19037
|
if (nativeEvent) {
|
|
19027
|
-
if (this.type === "number") {
|
|
19028
|
-
value = sanitizeNumberString(value);
|
|
19029
|
-
}
|
|
19030
19038
|
const calciteInputInputEvent = this.calciteInputInput.emit({
|
|
19031
19039
|
element: this.childEl,
|
|
19032
19040
|
nativeEvent,
|
|
19033
|
-
value
|
|
19041
|
+
value: this.value
|
|
19034
19042
|
});
|
|
19035
19043
|
if (calciteInputInputEvent.defaultPrevented) {
|
|
19036
19044
|
this.value = previousValue;
|
|
@@ -19096,7 +19104,7 @@ class CalciteInput {
|
|
|
19096
19104
|
this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
|
|
19097
19105
|
}
|
|
19098
19106
|
else {
|
|
19099
|
-
this.value =
|
|
19107
|
+
this.value = "";
|
|
19100
19108
|
}
|
|
19101
19109
|
}
|
|
19102
19110
|
connectLabel(this);
|
|
@@ -19195,34 +19203,34 @@ class CalciteInput {
|
|
|
19195
19203
|
// --------------------------------------------------------------------------
|
|
19196
19204
|
render() {
|
|
19197
19205
|
const dir = getElementDir(this.el);
|
|
19198
|
-
const loader = (hAsync("div", { class: CSS$
|
|
19199
|
-
const inputClearButton = (hAsync("button", { class: CSS$
|
|
19200
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
19206
|
+
const loader = (hAsync("div", { class: CSS$s.loader }, hAsync("calcite-progress", { label: this.intlLoading, type: "indeterminate" })));
|
|
19207
|
+
const inputClearButton = (hAsync("button", { class: CSS$s.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: this.disabled ? -1 : 0, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: "s" })));
|
|
19208
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$s.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: "s" }));
|
|
19201
19209
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
19202
19210
|
const numberButtonsHorizontalUp = (hAsync("button", { class: {
|
|
19203
|
-
[CSS$
|
|
19204
|
-
[CSS$
|
|
19211
|
+
[CSS$s.numberButtonItem]: true,
|
|
19212
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
19205
19213
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
19206
19214
|
const numberButtonsHorizontalDown = (hAsync("button", { class: {
|
|
19207
|
-
[CSS$
|
|
19208
|
-
[CSS$
|
|
19215
|
+
[CSS$s.numberButtonItem]: true,
|
|
19216
|
+
[CSS$s.buttonItemHorizontal]: isHorizontalNumberButton
|
|
19209
19217
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
19210
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
19211
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
19212
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
19218
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$s.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
19219
|
+
const prefixText = hAsync("div", { class: CSS$s.prefix }, this.prefixText);
|
|
19220
|
+
const suffixText = hAsync("div", { class: CSS$s.suffix }, this.suffixText);
|
|
19213
19221
|
const localeNumberInput = this.type === "number" ? (hAsync("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;
|
|
19214
19222
|
const childEl = this.type !== "number"
|
|
19215
19223
|
? [
|
|
19216
19224
|
hAsync(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
19217
|
-
[CSS$
|
|
19218
|
-
[CSS$
|
|
19225
|
+
[CSS$s.editingEnabled]: this.editingEnabled,
|
|
19226
|
+
[CSS$s.inlineChild]: !!this.inlineEditableEl
|
|
19219
19227
|
}, 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 }),
|
|
19220
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
19228
|
+
this.isTextarea ? (hAsync("div", { class: CSS$s.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
19221
19229
|
]
|
|
19222
19230
|
: null;
|
|
19223
|
-
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
19231
|
+
return (hAsync(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$s.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
19224
19232
|
? numberButtonsHorizontalDown
|
|
19225
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
19233
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$s.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$s.actionWrapper }, hAsync("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
19226
19234
|
? numberButtonsVertical
|
|
19227
19235
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
19228
19236
|
? numberButtonsHorizontalUp
|
|
@@ -19524,8 +19532,8 @@ class CalciteInputDatePicker {
|
|
|
19524
19532
|
return (hAsync(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": this.active.toString(), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("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 })), hAsync("div", { "aria-hidden": (!this.active).toString(), class: "menu-container", ref: this.setMenuEl }, hAsync("div", { class: {
|
|
19525
19533
|
["calendar-picker-wrapper"]: true,
|
|
19526
19534
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
19527
|
-
[CSS$
|
|
19528
|
-
[CSS$
|
|
19535
|
+
[CSS$D.animation]: true,
|
|
19536
|
+
[CSS$D.animationActive]: this.active
|
|
19529
19537
|
}, onTransitionEnd: this.transitionEnd }, hAsync("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" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
19530
19538
|
input: true,
|
|
19531
19539
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
@@ -20225,7 +20233,7 @@ class CalciteInputTimePicker {
|
|
|
20225
20233
|
}; }
|
|
20226
20234
|
}
|
|
20227
20235
|
|
|
20228
|
-
const CSS$
|
|
20236
|
+
const CSS$r = {
|
|
20229
20237
|
container: "container"
|
|
20230
20238
|
};
|
|
20231
20239
|
|
|
@@ -20272,7 +20280,7 @@ class CalciteLabel {
|
|
|
20272
20280
|
//
|
|
20273
20281
|
//--------------------------------------------------------------------------
|
|
20274
20282
|
render() {
|
|
20275
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
20283
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$r.container }, hAsync("slot", null))));
|
|
20276
20284
|
}
|
|
20277
20285
|
get el() { return getElement(this); }
|
|
20278
20286
|
static get style() { return calciteLabelCss; }
|
|
@@ -20375,7 +20383,7 @@ class CalciteLink {
|
|
|
20375
20383
|
}; }
|
|
20376
20384
|
}
|
|
20377
20385
|
|
|
20378
|
-
const CSS$
|
|
20386
|
+
const CSS$q = {
|
|
20379
20387
|
container: "container"
|
|
20380
20388
|
};
|
|
20381
20389
|
|
|
@@ -20405,7 +20413,7 @@ class CalciteList {
|
|
|
20405
20413
|
//
|
|
20406
20414
|
// --------------------------------------------------------------------------
|
|
20407
20415
|
render() {
|
|
20408
|
-
return (hAsync(Host, { role: "list" }, hAsync("div", { class: CSS$
|
|
20416
|
+
return (hAsync(Host, { role: "list" }, hAsync("div", { class: CSS$q.container }, hAsync("slot", null))));
|
|
20409
20417
|
}
|
|
20410
20418
|
get el() { return getElement(this); }
|
|
20411
20419
|
static get style() { return calciteListCss; }
|
|
@@ -20422,7 +20430,7 @@ class CalciteList {
|
|
|
20422
20430
|
}; }
|
|
20423
20431
|
}
|
|
20424
20432
|
|
|
20425
|
-
const CSS$
|
|
20433
|
+
const CSS$p = {
|
|
20426
20434
|
container: "container",
|
|
20427
20435
|
contentContainer: "content-container",
|
|
20428
20436
|
nestedContainer: "nested-container",
|
|
@@ -20485,31 +20493,31 @@ class CalciteListItem {
|
|
|
20485
20493
|
// --------------------------------------------------------------------------
|
|
20486
20494
|
renderActionsStart() {
|
|
20487
20495
|
const { el } = this;
|
|
20488
|
-
return getSlotted(el, SLOTS$f.actionsStart) ? (hAsync("div", { class: CSS$
|
|
20496
|
+
return getSlotted(el, SLOTS$f.actionsStart) ? (hAsync("div", { class: CSS$p.actionsStart }, hAsync("slot", { name: SLOTS$f.actionsStart }))) : null;
|
|
20489
20497
|
}
|
|
20490
20498
|
renderActionsEnd() {
|
|
20491
20499
|
const { el } = this;
|
|
20492
|
-
return getSlotted(el, SLOTS$f.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
20500
|
+
return getSlotted(el, SLOTS$f.actionsEnd) ? (hAsync("div", { class: CSS$p.actionsEnd }, hAsync("slot", { name: SLOTS$f.actionsEnd }))) : null;
|
|
20493
20501
|
}
|
|
20494
20502
|
renderContentStart() {
|
|
20495
20503
|
const { el } = this;
|
|
20496
|
-
return getSlotted(el, SLOTS$f.contentStart) ? (hAsync("div", { class: CSS$
|
|
20504
|
+
return getSlotted(el, SLOTS$f.contentStart) ? (hAsync("div", { class: CSS$p.contentStart }, hAsync("slot", { name: SLOTS$f.contentStart }))) : null;
|
|
20497
20505
|
}
|
|
20498
20506
|
renderContentEnd() {
|
|
20499
20507
|
const { el } = this;
|
|
20500
|
-
return getSlotted(el, SLOTS$f.contentEnd) ? (hAsync("div", { class: CSS$
|
|
20508
|
+
return getSlotted(el, SLOTS$f.contentEnd) ? (hAsync("div", { class: CSS$p.contentEnd }, hAsync("slot", { name: SLOTS$f.contentEnd }))) : null;
|
|
20501
20509
|
}
|
|
20502
20510
|
renderContent() {
|
|
20503
20511
|
const { label, description } = this;
|
|
20504
|
-
return !!label || !!description ? (hAsync("div", { class: CSS$
|
|
20512
|
+
return !!label || !!description ? (hAsync("div", { class: CSS$p.content }, label ? hAsync("div", { class: CSS$p.label }, label) : null, description ? hAsync("div", { class: CSS$p.description }, description) : null)) : null;
|
|
20505
20513
|
}
|
|
20506
20514
|
renderContentContainer() {
|
|
20507
20515
|
const { disabled, nonInteractive } = this;
|
|
20508
20516
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
20509
|
-
return !nonInteractive ? (hAsync("button", { class: { [CSS$
|
|
20517
|
+
return !nonInteractive ? (hAsync("button", { class: { [CSS$p.contentContainer]: true, [CSS$p.contentContainerButton]: true }, disabled: disabled, ref: (focusEl) => (this.focusEl = focusEl) }, content)) : (hAsync("div", { class: CSS$p.contentContainer, ref: () => (this.focusEl = null) }, content));
|
|
20510
20518
|
}
|
|
20511
20519
|
render() {
|
|
20512
|
-
return (hAsync(Host, { role: "listitem" }, hAsync("div", { class: CSS$
|
|
20520
|
+
return (hAsync(Host, { role: "listitem" }, hAsync("div", { class: CSS$p.container }, this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: CSS$p.nestedContainer }, hAsync("slot", null))));
|
|
20513
20521
|
}
|
|
20514
20522
|
get el() { return getElement(this); }
|
|
20515
20523
|
static get style() { return calciteListItemCss; }
|
|
@@ -20529,7 +20537,7 @@ class CalciteListItem {
|
|
|
20529
20537
|
}; }
|
|
20530
20538
|
}
|
|
20531
20539
|
|
|
20532
|
-
const CSS$
|
|
20540
|
+
const CSS$o = {
|
|
20533
20541
|
heading: "heading",
|
|
20534
20542
|
container: "container"
|
|
20535
20543
|
};
|
|
@@ -20555,7 +20563,7 @@ class CalciteListItemGroup {
|
|
|
20555
20563
|
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
20556
20564
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
20557
20565
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$5;
|
|
20558
|
-
return (hAsync(Host, null, heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
20566
|
+
return (hAsync(Host, null, heading ? (hAsync(CalciteHeading, { class: CSS$o.heading, level: level }, heading)) : null, hAsync("div", { class: CSS$o.container, role: "group" }, hAsync("slot", null))));
|
|
20559
20567
|
}
|
|
20560
20568
|
get el() { return getElement(this); }
|
|
20561
20569
|
static get style() { return calciteListItemGroupCss; }
|
|
@@ -20768,7 +20776,7 @@ function isFocusable($elem) {
|
|
|
20768
20776
|
|| $elem instanceof HTMLIFrameElement);
|
|
20769
20777
|
}
|
|
20770
20778
|
|
|
20771
|
-
const CSS$
|
|
20779
|
+
const CSS$n = {
|
|
20772
20780
|
title: "title",
|
|
20773
20781
|
header: "header",
|
|
20774
20782
|
footer: "footer",
|
|
@@ -20912,17 +20920,17 @@ class CalciteModal {
|
|
|
20912
20920
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
20913
20921
|
}
|
|
20914
20922
|
render() {
|
|
20915
|
-
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$
|
|
20923
|
+
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("calcite-scrim", { class: CSS$n.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: "modal", onTransitionEnd: this.transitionEnd }, hAsync("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), hAsync("div", { class: CSS$n.header }, this.renderCloseButton(), hAsync("header", { class: CSS$n.title }, hAsync("slot", { name: CSS$n.header }))), hAsync("div", { class: {
|
|
20916
20924
|
content: true,
|
|
20917
20925
|
"content--spaced": !this.noPadding,
|
|
20918
20926
|
"content--no-footer": !this.hasFooter
|
|
20919
20927
|
}, ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderFooter(), hAsync("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
20920
20928
|
}
|
|
20921
20929
|
renderFooter() {
|
|
20922
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
20930
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$n.footer }, hAsync("span", { class: CSS$n.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$n.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$n.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
20923
20931
|
}
|
|
20924
20932
|
renderCloseButton() {
|
|
20925
|
-
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$
|
|
20933
|
+
return !this.disableCloseButton ? (hAsync("button", { "aria-label": this.intlClose, class: CSS$n.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
20926
20934
|
}
|
|
20927
20935
|
renderStyle() {
|
|
20928
20936
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -21012,10 +21020,10 @@ class CalciteModal {
|
|
|
21012
21020
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
21013
21021
|
this.titleId = ensureId(titleEl);
|
|
21014
21022
|
this.contentId = ensureId(contentEl);
|
|
21015
|
-
document.documentElement.classList.add(CSS$
|
|
21023
|
+
document.documentElement.classList.add(CSS$n.overflowHidden);
|
|
21016
21024
|
}
|
|
21017
21025
|
removeOverflowHiddenClass() {
|
|
21018
|
-
document.documentElement.classList.remove(CSS$
|
|
21026
|
+
document.documentElement.classList.remove(CSS$n.overflowHidden);
|
|
21019
21027
|
}
|
|
21020
21028
|
get el() { return getElement(this); }
|
|
21021
21029
|
static get watchers() { return {
|
|
@@ -21060,7 +21068,7 @@ const SLOTS$d = {
|
|
|
21060
21068
|
link: "link",
|
|
21061
21069
|
actionsEnd: "actions-end"
|
|
21062
21070
|
};
|
|
21063
|
-
const CSS$
|
|
21071
|
+
const CSS$m = {
|
|
21064
21072
|
actionsEnd: "actions-end",
|
|
21065
21073
|
close: "notice-close",
|
|
21066
21074
|
container: "container",
|
|
@@ -21131,9 +21139,9 @@ class CalciteNotice {
|
|
|
21131
21139
|
}
|
|
21132
21140
|
render() {
|
|
21133
21141
|
const { el } = this;
|
|
21134
|
-
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: CSS$
|
|
21142
|
+
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: CSS$m.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
21135
21143
|
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
21136
|
-
return (hAsync("div", { class: CSS$
|
|
21144
|
+
return (hAsync("div", { class: CSS$m.container }, this.requestedIcon ? (hAsync("div", { class: CSS$m.icon }, hAsync("calcite-icon", { icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: CSS$m.content }, hAsync("slot", { name: SLOTS$d.title }), hAsync("slot", { name: SLOTS$d.message }), hAsync("slot", { name: SLOTS$d.link })), hasActionEnd ? (hAsync("div", { class: CSS$m.actionsEnd }, hAsync("slot", { name: SLOTS$d.actionsEnd }))) : null, this.dismissible ? closeButton : null));
|
|
21137
21145
|
}
|
|
21138
21146
|
//--------------------------------------------------------------------------
|
|
21139
21147
|
//
|
|
@@ -21314,7 +21322,7 @@ class CalciteOptionGroup {
|
|
|
21314
21322
|
}; }
|
|
21315
21323
|
}
|
|
21316
21324
|
|
|
21317
|
-
const CSS$
|
|
21325
|
+
const CSS$l = {
|
|
21318
21326
|
page: "page",
|
|
21319
21327
|
selected: "is-selected",
|
|
21320
21328
|
previous: "previous",
|
|
@@ -21447,8 +21455,8 @@ class CalcitePagination {
|
|
|
21447
21455
|
renderPage(start) {
|
|
21448
21456
|
const page = Math.floor(start / this.num) + (this.num === 1 ? 0 : 1);
|
|
21449
21457
|
return (hAsync("button", { class: {
|
|
21450
|
-
[CSS$
|
|
21451
|
-
[CSS$
|
|
21458
|
+
[CSS$l.page]: true,
|
|
21459
|
+
[CSS$l.selected]: start === this.start
|
|
21452
21460
|
}, onClick: () => {
|
|
21453
21461
|
this.start = start;
|
|
21454
21462
|
this.emitUpdate();
|
|
@@ -21456,12 +21464,12 @@ class CalcitePagination {
|
|
|
21456
21464
|
}
|
|
21457
21465
|
renderLeftEllipsis() {
|
|
21458
21466
|
if (this.total / this.num > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
21459
|
-
return hAsync("span", { class: `${CSS$
|
|
21467
|
+
return hAsync("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisStart}` }, "\u2026");
|
|
21460
21468
|
}
|
|
21461
21469
|
}
|
|
21462
21470
|
renderRightEllipsis() {
|
|
21463
21471
|
if (this.total / this.num > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
21464
|
-
return hAsync("span", { class: `${CSS$
|
|
21472
|
+
return hAsync("span", { class: `${CSS$l.ellipsis} ${CSS$l.ellipsisEnd}` }, "\u2026");
|
|
21465
21473
|
}
|
|
21466
21474
|
}
|
|
21467
21475
|
render() {
|
|
@@ -21469,11 +21477,11 @@ class CalcitePagination {
|
|
|
21469
21477
|
const prevDisabled = num === 1 ? start <= num : start < num;
|
|
21470
21478
|
const nextDisabled = num === 1 ? start + num > total : start + num > total;
|
|
21471
21479
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.textLabelPrevious, class: {
|
|
21472
|
-
[CSS$
|
|
21473
|
-
[CSS$
|
|
21480
|
+
[CSS$l.previous]: true,
|
|
21481
|
+
[CSS$l.disabled]: prevDisabled
|
|
21474
21482
|
}, disabled: prevDisabled, onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: "s" })), total > num ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), hAsync("button", { "aria-label": this.textLabelNext, class: {
|
|
21475
|
-
[CSS$
|
|
21476
|
-
[CSS$
|
|
21483
|
+
[CSS$l.next]: true,
|
|
21484
|
+
[CSS$l.disabled]: nextDisabled
|
|
21477
21485
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: "s" }))));
|
|
21478
21486
|
}
|
|
21479
21487
|
get el() { return getElement(this); }
|
|
@@ -21497,7 +21505,7 @@ class CalcitePagination {
|
|
|
21497
21505
|
}; }
|
|
21498
21506
|
}
|
|
21499
21507
|
|
|
21500
|
-
const CSS$
|
|
21508
|
+
const CSS$k = {
|
|
21501
21509
|
backButton: "back-button",
|
|
21502
21510
|
container: "container",
|
|
21503
21511
|
header: "header",
|
|
@@ -21648,24 +21656,24 @@ class CalcitePanel {
|
|
|
21648
21656
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
21649
21657
|
const label = intlBack || TEXT$8.back;
|
|
21650
21658
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
21651
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
21659
|
+
return showBackButton ? (hAsync("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;
|
|
21652
21660
|
}
|
|
21653
21661
|
renderHeaderContent() {
|
|
21654
21662
|
const { heading, headingLevel, summary } = this;
|
|
21655
|
-
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
21656
|
-
const summaryNode = summary ? hAsync("span", { class: CSS$
|
|
21657
|
-
return headingNode || summaryNode ? (hAsync("div", { class: CSS$
|
|
21663
|
+
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$k.heading, level: headingLevel || HEADING_LEVEL$4 }, heading)) : null;
|
|
21664
|
+
const summaryNode = summary ? hAsync("span", { class: CSS$k.summary }, summary) : null;
|
|
21665
|
+
return headingNode || summaryNode ? (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, headingNode, summaryNode)) : null;
|
|
21658
21666
|
}
|
|
21659
21667
|
/**
|
|
21660
21668
|
* Allows user to override the entire header-content node.
|
|
21661
21669
|
*/
|
|
21662
21670
|
renderHeaderSlottedContent() {
|
|
21663
|
-
return (hAsync("div", { class: CSS$
|
|
21671
|
+
return (hAsync("div", { class: CSS$k.headerContent, key: "header-content" }, hAsync("slot", { name: SLOTS$c.headerContent })));
|
|
21664
21672
|
}
|
|
21665
21673
|
renderHeaderStartActions() {
|
|
21666
21674
|
const { el } = this;
|
|
21667
21675
|
const hasStartActions = getSlotted(el, SLOTS$c.headerActionsStart);
|
|
21668
|
-
return hasStartActions ? (hAsync("div", { class: { [CSS$
|
|
21676
|
+
return hasStartActions ? (hAsync("div", { class: { [CSS$k.headerActionsStart]: true, [CSS$k.headerActions]: true }, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$c.headerActionsStart }))) : null;
|
|
21669
21677
|
}
|
|
21670
21678
|
renderHeaderActionsEnd() {
|
|
21671
21679
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
@@ -21673,7 +21681,7 @@ class CalcitePanel {
|
|
|
21673
21681
|
const dismissibleNode = dismissible ? (hAsync("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
21674
21682
|
const slotNode = hAsync("slot", { name: SLOTS$c.headerActionsEnd });
|
|
21675
21683
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
21676
|
-
return hasEndActions || dismissibleNode ? (hAsync("div", { class: { [CSS$
|
|
21684
|
+
return hasEndActions || dismissibleNode ? (hAsync("div", { class: { [CSS$k.headerActionsEnd]: true, [CSS$k.headerActions]: true }, key: "header-actions-end" }, slotNode, dismissibleNode)) : null;
|
|
21677
21685
|
}
|
|
21678
21686
|
renderMenu() {
|
|
21679
21687
|
const { el, intlOptions, menuOpen } = this;
|
|
@@ -21694,7 +21702,7 @@ class CalcitePanel {
|
|
|
21694
21702
|
headerContentNode ||
|
|
21695
21703
|
actionsNodeEnd ||
|
|
21696
21704
|
headerMenuNode ||
|
|
21697
|
-
showBackButton ? (hAsync("header", { class: CSS$
|
|
21705
|
+
showBackButton ? (hAsync("header", { class: CSS$k.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
21698
21706
|
}
|
|
21699
21707
|
/**
|
|
21700
21708
|
* Allows user to override the entire footer node.
|
|
@@ -21702,24 +21710,24 @@ class CalcitePanel {
|
|
|
21702
21710
|
renderFooterSlottedContent() {
|
|
21703
21711
|
const { el } = this;
|
|
21704
21712
|
const hasFooterSlottedContent = getSlotted(el, SLOTS$c.footer);
|
|
21705
|
-
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$
|
|
21713
|
+
return hasFooterSlottedContent ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footer }))) : null;
|
|
21706
21714
|
}
|
|
21707
21715
|
renderFooterActions() {
|
|
21708
21716
|
const { el } = this;
|
|
21709
21717
|
const hasFooterActions = getSlotted(el, SLOTS$c.footerActions);
|
|
21710
|
-
return hasFooterActions ? (hAsync("footer", { class: CSS$
|
|
21718
|
+
return hasFooterActions ? (hAsync("footer", { class: CSS$k.footer }, hAsync("slot", { name: SLOTS$c.footerActions }))) : null;
|
|
21711
21719
|
}
|
|
21712
21720
|
renderContent() {
|
|
21713
21721
|
const { el } = this;
|
|
21714
21722
|
const hasFab = getSlotted(el, SLOTS$c.fab);
|
|
21715
|
-
return hasFab ? (hAsync("div", { class: { [CSS$
|
|
21723
|
+
return hasFab ? (hAsync("div", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentHeight]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("section", { class: CSS$k.contentContainer }, hAsync("slot", null)), this.renderFab())) : (hAsync("section", { class: { [CSS$k.contentWrapper]: true, [CSS$k.contentContainer]: true }, onScroll: this.panelScrollHandler, tabIndex: 0 }, hAsync("slot", null)));
|
|
21716
21724
|
}
|
|
21717
21725
|
renderFab() {
|
|
21718
|
-
return (hAsync("div", { class: CSS$
|
|
21726
|
+
return (hAsync("div", { class: CSS$k.fabContainer }, hAsync("slot", { name: SLOTS$c.fab })));
|
|
21719
21727
|
}
|
|
21720
21728
|
render() {
|
|
21721
21729
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
21722
|
-
const panelNode = (hAsync("article", { "aria-busy": loading.toString(), class: CSS$
|
|
21730
|
+
const panelNode = (hAsync("article", { "aria-busy": loading.toString(), class: CSS$k.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterSlottedContent() || this.renderFooterActions()));
|
|
21723
21731
|
return (hAsync(Fragment, null, loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
21724
21732
|
}
|
|
21725
21733
|
get el() { return getElement(this); }
|
|
@@ -21754,7 +21762,7 @@ class CalcitePanel {
|
|
|
21754
21762
|
}; }
|
|
21755
21763
|
}
|
|
21756
21764
|
|
|
21757
|
-
const CSS$
|
|
21765
|
+
const CSS$j = {
|
|
21758
21766
|
sticky: "sticky-pos"
|
|
21759
21767
|
};
|
|
21760
21768
|
var ICON_TYPES$1;
|
|
@@ -22035,7 +22043,7 @@ const List = (_a) => {
|
|
|
22035
22043
|
const defaultSlot = hAsync("slot", null);
|
|
22036
22044
|
return (hAsync(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
22037
22045
|
hAsync("section", null,
|
|
22038
|
-
hAsync("header", { class: { [CSS$
|
|
22046
|
+
hAsync("header", { class: { [CSS$j.sticky]: true } },
|
|
22039
22047
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
22040
22048
|
hAsync("slot", { name: SLOTS$b.menuActions })),
|
|
22041
22049
|
loading || disabled ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
@@ -22187,7 +22195,7 @@ class CalcitePickList {
|
|
|
22187
22195
|
}; }
|
|
22188
22196
|
}
|
|
22189
22197
|
|
|
22190
|
-
const CSS$
|
|
22198
|
+
const CSS$i = {
|
|
22191
22199
|
heading: "heading",
|
|
22192
22200
|
container: "container",
|
|
22193
22201
|
indented: "container--indented"
|
|
@@ -22216,14 +22224,14 @@ class CalcitePickListGroup {
|
|
|
22216
22224
|
const { el, groupTitle, headingLevel } = this;
|
|
22217
22225
|
const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
|
|
22218
22226
|
const sectionClasses = {
|
|
22219
|
-
[CSS$
|
|
22220
|
-
[CSS$
|
|
22227
|
+
[CSS$i.container]: true,
|
|
22228
|
+
[CSS$i.indented]: hasParentItem
|
|
22221
22229
|
};
|
|
22222
22230
|
const title = groupTitle;
|
|
22223
22231
|
const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
22224
22232
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
22225
22233
|
const level = headingLevel || relativeLevel || HEADING_LEVEL$3;
|
|
22226
|
-
return (hAsync(Fragment, null, title ? (hAsync(CalciteHeading, { class: CSS$
|
|
22234
|
+
return (hAsync(Fragment, null, title ? (hAsync(CalciteHeading, { class: CSS$i.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$a.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
22227
22235
|
}
|
|
22228
22236
|
get el() { return getElement(this); }
|
|
22229
22237
|
static get style() { return calcitePickListGroupCss; }
|
|
@@ -22240,7 +22248,7 @@ class CalcitePickListGroup {
|
|
|
22240
22248
|
}; }
|
|
22241
22249
|
}
|
|
22242
22250
|
|
|
22243
|
-
const CSS$
|
|
22251
|
+
const CSS$h = {
|
|
22244
22252
|
actions: "actions",
|
|
22245
22253
|
actionsEnd: "actions--end",
|
|
22246
22254
|
actionsStart: "actions--start",
|
|
@@ -22387,26 +22395,26 @@ class CalcitePickListItem {
|
|
|
22387
22395
|
return null;
|
|
22388
22396
|
}
|
|
22389
22397
|
return (hAsync("span", { class: {
|
|
22390
|
-
[CSS$
|
|
22391
|
-
[CSS$
|
|
22398
|
+
[CSS$h.icon]: true,
|
|
22399
|
+
[CSS$h.iconDot]: icon === ICON_TYPES$1.circle
|
|
22392
22400
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? hAsync("calcite-icon", { icon: ICONS$4.checked, scale: "s" }) : null));
|
|
22393
22401
|
}
|
|
22394
22402
|
renderRemoveAction() {
|
|
22395
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
22403
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$h.remove, icon: ICONS$4.remove, onCalciteActionClick: this.removeClickHandler, slot: SLOTS$9.actionsEnd, text: this.intlRemove })) : null;
|
|
22396
22404
|
}
|
|
22397
22405
|
renderActionsStart() {
|
|
22398
22406
|
const { el } = this;
|
|
22399
22407
|
const hasActionsStart = getSlotted(el, SLOTS$9.actionsStart);
|
|
22400
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
22408
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsStart]: true } }, hAsync("slot", { name: SLOTS$9.actionsStart }))) : null;
|
|
22401
22409
|
}
|
|
22402
22410
|
renderActionsEnd() {
|
|
22403
22411
|
const { el, removable } = this;
|
|
22404
22412
|
const hasActionsEnd = getSlotted(el, SLOTS$9.actionsEnd);
|
|
22405
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
22413
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$h.actions]: true, [CSS$h.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$9.actionsEnd }), this.renderRemoveAction())) : null;
|
|
22406
22414
|
}
|
|
22407
22415
|
render() {
|
|
22408
22416
|
const { description, label } = this;
|
|
22409
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
22417
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$h.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, ref: (focusEl) => (this.focusEl = focusEl), tabIndex: 0 }, hAsync("div", { "aria-checked": this.selected.toString(), class: CSS$h.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$h.title }, label), description ? hAsync("span", { class: CSS$h.description }, description) : null)), this.renderActionsEnd()));
|
|
22410
22418
|
}
|
|
22411
22419
|
get el() { return getElement(this); }
|
|
22412
22420
|
static get watchers() { return {
|
|
@@ -22441,7 +22449,7 @@ class CalcitePickListItem {
|
|
|
22441
22449
|
}; }
|
|
22442
22450
|
}
|
|
22443
22451
|
|
|
22444
|
-
const CSS$
|
|
22452
|
+
const CSS$g = {
|
|
22445
22453
|
container: "container",
|
|
22446
22454
|
arrow: "arrow",
|
|
22447
22455
|
imageContainer: "image-container",
|
|
@@ -22698,25 +22706,25 @@ class CalcitePopover {
|
|
|
22698
22706
|
// --------------------------------------------------------------------------
|
|
22699
22707
|
renderCloseButton() {
|
|
22700
22708
|
const { dismissible, closeButton, intlClose } = this;
|
|
22701
|
-
return dismissible || closeButton ? (hAsync("calcite-action", { class: CSS$
|
|
22709
|
+
return dismissible || closeButton ? (hAsync("calcite-action", { class: CSS$g.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), text: intlClose }, hAsync("calcite-icon", { icon: "x", scale: "m" }))) : null;
|
|
22702
22710
|
}
|
|
22703
22711
|
renderHeader() {
|
|
22704
22712
|
const { heading, headingLevel } = this;
|
|
22705
|
-
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$
|
|
22706
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
22713
|
+
const headingNode = heading ? (hAsync(CalciteHeading, { class: CSS$g.heading, level: headingLevel || HEADING_LEVEL$2 }, heading)) : null;
|
|
22714
|
+
return headingNode ? (hAsync("div", { class: CSS$g.header }, headingNode, this.renderCloseButton())) : null;
|
|
22707
22715
|
}
|
|
22708
22716
|
render() {
|
|
22709
22717
|
const { effectiveReferenceElement, heading, label, open, disablePointer } = this;
|
|
22710
22718
|
const displayed = effectiveReferenceElement && open;
|
|
22711
22719
|
const hidden = !displayed;
|
|
22712
|
-
const arrowNode = !disablePointer ? (hAsync("div", { class: CSS$
|
|
22720
|
+
const arrowNode = !disablePointer ? (hAsync("div", { class: CSS$g.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) })) : null;
|
|
22713
22721
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, hAsync("div", { class: {
|
|
22714
|
-
[CSS$
|
|
22715
|
-
[CSS$
|
|
22722
|
+
[CSS$D.animation]: true,
|
|
22723
|
+
[CSS$D.animationActive]: displayed
|
|
22716
22724
|
}, onTransitionEnd: this.transitionEnd }, arrowNode, hAsync("div", { class: {
|
|
22717
|
-
[CSS$
|
|
22718
|
-
[CSS$
|
|
22719
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
22725
|
+
[CSS$g.hasHeader]: !!heading,
|
|
22726
|
+
[CSS$g.container]: true
|
|
22727
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$g.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
22720
22728
|
}
|
|
22721
22729
|
get el() { return getElement(this); }
|
|
22722
22730
|
static get watchers() { return {
|
|
@@ -22874,11 +22882,11 @@ class CalciteProgress {
|
|
|
22874
22882
|
}; }
|
|
22875
22883
|
}
|
|
22876
22884
|
|
|
22877
|
-
const CSS$
|
|
22885
|
+
const CSS$f = {
|
|
22878
22886
|
container: "container"
|
|
22879
22887
|
};
|
|
22880
22888
|
|
|
22881
|
-
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*/.sc-calcite-radio-button:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-radio-button{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-button{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-button{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-button{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-button{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-radio-button:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-radio-button-h{display:none}/*!@:host*/.sc-calcite-radio-button-h{display:block;cursor:pointer}/*!@:host .container*/.sc-calcite-radio-button-h .container.sc-calcite-radio-button{position:relative;outline:2px solid transparent;outline-offset:2px}/*!@:host .radio*/.sc-calcite-radio-button-h .radio.sc-calcite-radio-button{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,\n:host(:not([checked])[focused]) .radio*/[hovered].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,.sc-calcite-radio-button-h:not([checked])[focused] .radio.sc-calcite-radio-button{-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])*/[disabled].sc-calcite-radio-button-h{cursor:pointer}/*!@:host([disabled]) .radio*/[disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hovered][disabled]) .radio*/[hovered][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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])*/[scale=s].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--2)}/*!@:host([scale=m])*/[scale=m].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size-0)}/*!@.radio*/.radio.sc-calcite-radio-button{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}/*!@:host([scale=s][checked]) .radio,\n:host([hovered][scale=s][checked][disabled]) .radio*/[scale=s][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=s][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=s][focused][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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,\n:host([hovered][scale=m][checked][disabled]) .radio*/[scale=m][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=m][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=m][focused][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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,\n:host([hovered][scale=l][checked][disabled]) .radio*/[scale=l][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=l][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=l][focused][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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])*/.sc-calcite-radio-button-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
22889
|
+
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*/.sc-calcite-radio-button:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-radio-button{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-button{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-button{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-button{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-button{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-radio-button:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-radio-button-h{display:none}/*!@:host*/.sc-calcite-radio-button-h{display:block;cursor:pointer}/*!@:host .container*/.sc-calcite-radio-button-h .container.sc-calcite-radio-button{position:relative;outline:2px solid transparent;outline-offset:2px}/*!@:host .radio*/.sc-calcite-radio-button-h .radio.sc-calcite-radio-button{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,\n:host(:not([checked])[focused]:not([disabled])) .radio*/[hovered].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,.sc-calcite-radio-button-h:not([checked])[focused]:not([disabled]) .radio.sc-calcite-radio-button{-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])*/[disabled].sc-calcite-radio-button-h{cursor:pointer}/*!@:host([disabled]) .radio*/[disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{cursor:default;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hovered][disabled]) .radio*/[hovered][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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])*/[scale=s].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--2)}/*!@:host([scale=m])*/[scale=m].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-radio-button-h{--calcite-radio-size:var(--calcite-font-size-0)}/*!@.radio*/.radio.sc-calcite-radio-button{height:var(--calcite-radio-size);max-width:var(--calcite-radio-size);min-width:var(--calcite-radio-size)}/*!@:host([scale=s][checked]) .radio,\n:host([hovered][scale=s][checked][disabled]) .radio*/[scale=s][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=s][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=s][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-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,\n:host([hovered][scale=m][checked][disabled]) .radio*/[scale=m][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=m][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=m][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-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,\n:host([hovered][scale=l][checked][disabled]) .radio*/[scale=l][checked].sc-calcite-radio-button-h .radio.sc-calcite-radio-button,[hovered][scale=l][checked][disabled].sc-calcite-radio-button-h .radio.sc-calcite-radio-button{-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*/[scale=l][focused][checked].sc-calcite-radio-button-h:not([disabled]) .radio.sc-calcite-radio-button{-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])*/.sc-calcite-radio-button-s>input[slot=hidden-form-input]{bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
22882
22890
|
|
|
22883
22891
|
class CalciteRadioButton {
|
|
22884
22892
|
constructor(hostRef) {
|
|
@@ -22991,8 +22999,10 @@ class CalciteRadioButton {
|
|
|
22991
22999
|
this.calciteInternalRadioButtonBlur.emit();
|
|
22992
23000
|
};
|
|
22993
23001
|
this.onContainerFocus = () => {
|
|
22994
|
-
this.
|
|
22995
|
-
|
|
23002
|
+
if (!this.disabled) {
|
|
23003
|
+
this.focused = true;
|
|
23004
|
+
this.calciteInternalRadioButtonFocus.emit();
|
|
23005
|
+
}
|
|
22996
23006
|
};
|
|
22997
23007
|
}
|
|
22998
23008
|
checkedChanged(newChecked) {
|
|
@@ -23015,7 +23025,9 @@ class CalciteRadioButton {
|
|
|
23015
23025
|
//--------------------------------------------------------------------------
|
|
23016
23026
|
/** Sets focus on the component. */
|
|
23017
23027
|
async setFocus() {
|
|
23018
|
-
|
|
23028
|
+
if (!this.disabled) {
|
|
23029
|
+
focusElement(this.containerEl);
|
|
23030
|
+
}
|
|
23019
23031
|
}
|
|
23020
23032
|
onLabelClick(event) {
|
|
23021
23033
|
if (!this.disabled && !this.hidden) {
|
|
@@ -23068,6 +23080,12 @@ class CalciteRadioButton {
|
|
|
23068
23080
|
}
|
|
23069
23081
|
});
|
|
23070
23082
|
}
|
|
23083
|
+
getTabIndex() {
|
|
23084
|
+
if (this.disabled) {
|
|
23085
|
+
return undefined;
|
|
23086
|
+
}
|
|
23087
|
+
return this.checked || this.isDefaultSelectable() ? 0 : -1;
|
|
23088
|
+
}
|
|
23071
23089
|
//--------------------------------------------------------------------------
|
|
23072
23090
|
//
|
|
23073
23091
|
// Event Listeners
|
|
@@ -23094,7 +23112,7 @@ class CalciteRadioButton {
|
|
|
23094
23112
|
connectForm(this);
|
|
23095
23113
|
}
|
|
23096
23114
|
componentDidLoad() {
|
|
23097
|
-
if (this.focused) {
|
|
23115
|
+
if (this.focused && !this.disabled) {
|
|
23098
23116
|
this.setFocus();
|
|
23099
23117
|
}
|
|
23100
23118
|
}
|
|
@@ -23108,7 +23126,8 @@ class CalciteRadioButton {
|
|
|
23108
23126
|
//
|
|
23109
23127
|
// --------------------------------------------------------------------------
|
|
23110
23128
|
render() {
|
|
23111
|
-
|
|
23129
|
+
const tabIndex = this.getTabIndex();
|
|
23130
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("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 }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23112
23131
|
}
|
|
23113
23132
|
get el() { return getElement(this); }
|
|
23114
23133
|
static get watchers() { return {
|
|
@@ -23455,7 +23474,7 @@ class CalciteRadioGroup {
|
|
|
23455
23474
|
const SLOTS$8 = {
|
|
23456
23475
|
input: "input"
|
|
23457
23476
|
};
|
|
23458
|
-
const CSS$
|
|
23477
|
+
const CSS$e = {
|
|
23459
23478
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
23460
23479
|
};
|
|
23461
23480
|
|
|
@@ -23476,37 +23495,16 @@ class CalciteRadioGroupItem {
|
|
|
23476
23495
|
this.iconFlipRtl = false;
|
|
23477
23496
|
/** optionally used with icon, select where to position the icon */
|
|
23478
23497
|
this.iconPosition = "start";
|
|
23479
|
-
this.mutationObserver = createObserver();
|
|
23480
23498
|
}
|
|
23481
23499
|
handleCheckedChange() {
|
|
23482
23500
|
this.calciteRadioGroupItemChange.emit();
|
|
23483
|
-
this.syncToExternalInput();
|
|
23484
|
-
}
|
|
23485
|
-
//--------------------------------------------------------------------------
|
|
23486
|
-
//
|
|
23487
|
-
// Lifecycle
|
|
23488
|
-
//
|
|
23489
|
-
//--------------------------------------------------------------------------
|
|
23490
|
-
connectedCallback() {
|
|
23491
|
-
var _a;
|
|
23492
|
-
const inputProxy = this.el.querySelector(`input[slot=${SLOTS$8.input}]`);
|
|
23493
|
-
if (inputProxy) {
|
|
23494
|
-
this.value = inputProxy.value;
|
|
23495
|
-
this.checked = inputProxy.checked;
|
|
23496
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
|
|
23497
|
-
}
|
|
23498
|
-
this.inputProxy = inputProxy;
|
|
23499
|
-
}
|
|
23500
|
-
disconnectedCallback() {
|
|
23501
|
-
var _a;
|
|
23502
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
23503
23501
|
}
|
|
23504
23502
|
render() {
|
|
23505
23503
|
const { checked, value } = this;
|
|
23506
23504
|
const scale = getElementProp(this.el, "scale", "m");
|
|
23507
23505
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
23508
23506
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
23509
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
23507
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$e.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
23510
23508
|
return (hAsync(Host, { "aria-checked": checked.toString(), role: "radio" }, hAsync("label", { class: {
|
|
23511
23509
|
"label--scale-s": scale === "s",
|
|
23512
23510
|
"label--scale-m": scale === "m",
|
|
@@ -23515,29 +23513,6 @@ class CalciteRadioGroupItem {
|
|
|
23515
23513
|
"label--outline": appearance === "outline"
|
|
23516
23514
|
} }, this.icon && this.iconPosition === "start" ? iconEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$8.input }), this.icon && this.iconPosition === "end" ? iconEl : null)));
|
|
23517
23515
|
}
|
|
23518
|
-
//--------------------------------------------------------------------------
|
|
23519
|
-
//
|
|
23520
|
-
// Private Methods
|
|
23521
|
-
//
|
|
23522
|
-
//--------------------------------------------------------------------------
|
|
23523
|
-
syncFromExternalInput() {
|
|
23524
|
-
if (this.inputProxy) {
|
|
23525
|
-
this.value = this.inputProxy.value;
|
|
23526
|
-
this.checked = this.inputProxy.checked;
|
|
23527
|
-
}
|
|
23528
|
-
}
|
|
23529
|
-
syncToExternalInput() {
|
|
23530
|
-
if (!this.inputProxy) {
|
|
23531
|
-
return;
|
|
23532
|
-
}
|
|
23533
|
-
this.inputProxy.value = this.value;
|
|
23534
|
-
if (this.checked) {
|
|
23535
|
-
this.inputProxy.setAttribute("checked", "");
|
|
23536
|
-
}
|
|
23537
|
-
else {
|
|
23538
|
-
this.inputProxy.removeAttribute("checked");
|
|
23539
|
-
}
|
|
23540
|
-
}
|
|
23541
23516
|
get el() { return getElement(this); }
|
|
23542
23517
|
static get watchers() { return {
|
|
23543
23518
|
"checked": ["handleCheckedChange"]
|
|
@@ -23697,7 +23672,7 @@ class CalciteRating {
|
|
|
23697
23672
|
}; }
|
|
23698
23673
|
}
|
|
23699
23674
|
|
|
23700
|
-
const CSS$
|
|
23675
|
+
const CSS$d = {
|
|
23701
23676
|
scrim: "scrim",
|
|
23702
23677
|
content: "content"
|
|
23703
23678
|
};
|
|
@@ -23737,8 +23712,8 @@ class CalciteScrim {
|
|
|
23737
23712
|
const { el, loading, intlLoading } = this;
|
|
23738
23713
|
const hasContent = el.innerHTML.trim().length > 0;
|
|
23739
23714
|
const loaderNode = loading ? hAsync("calcite-loader", { active: true, label: intlLoading }) : null;
|
|
23740
|
-
const contentNode = hasContent ? (hAsync("div", { class: CSS$
|
|
23741
|
-
return (hAsync("div", { class: CSS$
|
|
23715
|
+
const contentNode = hasContent ? (hAsync("div", { class: CSS$d.content }, hAsync("slot", null))) : null;
|
|
23716
|
+
return (hAsync("div", { class: CSS$d.scrim }, loaderNode, contentNode));
|
|
23742
23717
|
}
|
|
23743
23718
|
get el() { return getElement(this); }
|
|
23744
23719
|
static get style() { return calciteScrimCss; }
|
|
@@ -23755,7 +23730,7 @@ class CalciteScrim {
|
|
|
23755
23730
|
}; }
|
|
23756
23731
|
}
|
|
23757
23732
|
|
|
23758
|
-
const CSS$
|
|
23733
|
+
const CSS$c = {
|
|
23759
23734
|
icon: "icon",
|
|
23760
23735
|
iconContainer: "icon-container",
|
|
23761
23736
|
select: "select"
|
|
@@ -23951,10 +23926,10 @@ class CalciteSelect {
|
|
|
23951
23926
|
//
|
|
23952
23927
|
//--------------------------------------------------------------------------
|
|
23953
23928
|
renderChevron() {
|
|
23954
|
-
return (hAsync("div", { class: CSS$
|
|
23929
|
+
return (hAsync("div", { class: CSS$c.iconContainer }, hAsync("calcite-icon", { class: CSS$c.icon, icon: "chevron-down", scale: "s" })));
|
|
23955
23930
|
}
|
|
23956
23931
|
render() {
|
|
23957
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": this.label, class: CSS$
|
|
23932
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": this.label, class: CSS$c.select, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
23958
23933
|
}
|
|
23959
23934
|
get el() { return getElement(this); }
|
|
23960
23935
|
static get watchers() { return {
|
|
@@ -23982,7 +23957,7 @@ class CalciteSelect {
|
|
|
23982
23957
|
}; }
|
|
23983
23958
|
}
|
|
23984
23959
|
|
|
23985
|
-
const CSS$
|
|
23960
|
+
const CSS$b = {
|
|
23986
23961
|
main: "main",
|
|
23987
23962
|
mainReversed: "main--reversed",
|
|
23988
23963
|
content: "content",
|
|
@@ -24033,25 +24008,25 @@ class CalciteShell {
|
|
|
24033
24008
|
const content = !!this.contentBehind
|
|
24034
24009
|
? [
|
|
24035
24010
|
hAsync("div", { class: {
|
|
24036
|
-
[CSS$
|
|
24037
|
-
[CSS$
|
|
24011
|
+
[CSS$b.content]: true,
|
|
24012
|
+
[CSS$b.contentBehind]: !!this.contentBehind
|
|
24038
24013
|
} }, hAsync("slot", null)),
|
|
24039
24014
|
hAsync("slot", { name: SLOTS$7.centerRow })
|
|
24040
24015
|
]
|
|
24041
24016
|
: [
|
|
24042
|
-
hAsync("div", { class: CSS$
|
|
24017
|
+
hAsync("div", { class: CSS$b.content }, hAsync("slot", null), hAsync("slot", { name: SLOTS$7.centerRow }))
|
|
24043
24018
|
];
|
|
24044
24019
|
return content;
|
|
24045
24020
|
}
|
|
24046
24021
|
renderFooter() {
|
|
24047
24022
|
const hasFooter = !!getSlotted(this.el, SLOTS$7.footer);
|
|
24048
|
-
return hasFooter ? (hAsync("div", { class: CSS$
|
|
24023
|
+
return hasFooter ? (hAsync("div", { class: CSS$b.footer }, hAsync("slot", { name: SLOTS$7.footer }))) : null;
|
|
24049
24024
|
}
|
|
24050
24025
|
renderMain() {
|
|
24051
24026
|
const primaryPanel = getSlotted(this.el, SLOTS$7.primaryPanel);
|
|
24052
24027
|
const mainClasses = {
|
|
24053
|
-
[CSS$
|
|
24054
|
-
[CSS$
|
|
24028
|
+
[CSS$b.main]: true,
|
|
24029
|
+
[CSS$b.mainReversed]: (primaryPanel === null || primaryPanel === void 0 ? void 0 : primaryPanel.position) === "end"
|
|
24055
24030
|
};
|
|
24056
24031
|
return (hAsync("div", { class: mainClasses }, hAsync("slot", { name: SLOTS$7.primaryPanel }), this.renderContent(), hAsync("slot", { name: SLOTS$7.contextualPanel })));
|
|
24057
24032
|
}
|
|
@@ -24072,7 +24047,7 @@ class CalciteShell {
|
|
|
24072
24047
|
}; }
|
|
24073
24048
|
}
|
|
24074
24049
|
|
|
24075
|
-
const CSS$
|
|
24050
|
+
const CSS$a = {
|
|
24076
24051
|
actionBarContainer: "action-bar-container",
|
|
24077
24052
|
content: "content"
|
|
24078
24053
|
};
|
|
@@ -24114,9 +24089,9 @@ class CalciteShellCenterRow {
|
|
|
24114
24089
|
// --------------------------------------------------------------------------
|
|
24115
24090
|
render() {
|
|
24116
24091
|
const { el } = this;
|
|
24117
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
24092
|
+
const contentNode = (hAsync("div", { class: CSS$a.content }, hAsync("slot", null)));
|
|
24118
24093
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
24119
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
24094
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$a.actionBarContainer }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
24120
24095
|
const children = [actionBarNode, contentNode];
|
|
24121
24096
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
24122
24097
|
children.reverse();
|
|
@@ -24139,7 +24114,7 @@ class CalciteShellCenterRow {
|
|
|
24139
24114
|
}; }
|
|
24140
24115
|
}
|
|
24141
24116
|
|
|
24142
|
-
const CSS$
|
|
24117
|
+
const CSS$9 = {
|
|
24143
24118
|
container: "container",
|
|
24144
24119
|
content: "content",
|
|
24145
24120
|
contentHeader: "content__header",
|
|
@@ -24318,19 +24293,19 @@ class CalciteShellPanel {
|
|
|
24318
24293
|
renderHeader() {
|
|
24319
24294
|
const { el } = this;
|
|
24320
24295
|
const hasHeader = getSlotted(el, SLOTS$5.header);
|
|
24321
|
-
return hasHeader ? (hAsync("div", { class: CSS$
|
|
24296
|
+
return hasHeader ? (hAsync("div", { class: CSS$9.contentHeader }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24322
24297
|
}
|
|
24323
24298
|
render() {
|
|
24324
24299
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
24325
24300
|
const allowResizing = !detached && resizable;
|
|
24326
|
-
const contentNode = (hAsync("div", { class: { [CSS$
|
|
24327
|
-
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$
|
|
24301
|
+
const contentNode = (hAsync("div", { class: { [CSS$9.content]: true, [CSS$9.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$9.contentBody }, hAsync("slot", null))));
|
|
24302
|
+
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS$9.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
24328
24303
|
const actionBarNode = hAsync("slot", { name: SLOTS$5.actionBar });
|
|
24329
24304
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
24330
24305
|
if (position === "end") {
|
|
24331
24306
|
mainNodes.reverse();
|
|
24332
24307
|
}
|
|
24333
|
-
return hAsync("div", { class: { [CSS$
|
|
24308
|
+
return hAsync("div", { class: { [CSS$9.container]: true } }, mainNodes);
|
|
24334
24309
|
}
|
|
24335
24310
|
// --------------------------------------------------------------------------
|
|
24336
24311
|
//
|
|
@@ -28151,7 +28126,7 @@ _extends(Remove, {
|
|
|
28151
28126
|
Sortable.mount(new AutoScrollPlugin());
|
|
28152
28127
|
Sortable.mount(Remove, Revert);
|
|
28153
28128
|
|
|
28154
|
-
const CSS$
|
|
28129
|
+
const CSS$8 = {
|
|
28155
28130
|
sortItem: "sort-item",
|
|
28156
28131
|
container: "container",
|
|
28157
28132
|
containerHorizontal: "container--horizontal",
|
|
@@ -28297,9 +28272,9 @@ class CalciteSortableList {
|
|
|
28297
28272
|
const { layout } = this;
|
|
28298
28273
|
const horizontal = layout === "horizontal" || false;
|
|
28299
28274
|
return (hAsync("div", { class: {
|
|
28300
|
-
[CSS$
|
|
28301
|
-
[CSS$
|
|
28302
|
-
[CSS$
|
|
28275
|
+
[CSS$8.container]: true,
|
|
28276
|
+
[CSS$8.containerVertical]: !horizontal,
|
|
28277
|
+
[CSS$8.containerHorizontal]: horizontal
|
|
28303
28278
|
} }, hAsync("slot", null)));
|
|
28304
28279
|
}
|
|
28305
28280
|
get el() { return getElement(this); }
|
|
@@ -28322,7 +28297,7 @@ class CalciteSortableList {
|
|
|
28322
28297
|
}; }
|
|
28323
28298
|
}
|
|
28324
28299
|
|
|
28325
|
-
const CSS$
|
|
28300
|
+
const CSS$7 = {
|
|
28326
28301
|
container: "split-button__container",
|
|
28327
28302
|
dividerContainer: "split-button__divider-container",
|
|
28328
28303
|
divider: "split-button__divider",
|
|
@@ -28368,13 +28343,13 @@ class CalciteSplitButton {
|
|
|
28368
28343
|
}
|
|
28369
28344
|
render() {
|
|
28370
28345
|
const widthClasses = {
|
|
28371
|
-
[CSS$
|
|
28372
|
-
[CSS$
|
|
28373
|
-
[CSS$
|
|
28374
|
-
[CSS$
|
|
28346
|
+
[CSS$7.container]: true,
|
|
28347
|
+
[CSS$7.widthAuto]: this.width === "auto",
|
|
28348
|
+
[CSS$7.widthHalf]: this.width === "half",
|
|
28349
|
+
[CSS$7.widthFull]: this.width === "full"
|
|
28375
28350
|
};
|
|
28376
28351
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
28377
|
-
return (hAsync("div", { class: widthClasses }, hAsync("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), hAsync("div", { class: CSS$
|
|
28352
|
+
return (hAsync("div", { class: widthClasses }, hAsync("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), hAsync("div", { class: CSS$7.dividerContainer }, hAsync("div", { class: CSS$7.divider })), hAsync("calcite-dropdown", { active: this.active, onClick: this.calciteSplitButtonSecondaryClickHandler, overlayPositioning: this.overlayPositioning, placement: "bottom-trailing", scale: this.scale, width: this.scale }, hAsync("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" }), hAsync("slot", null))));
|
|
28378
28353
|
}
|
|
28379
28354
|
get dropdownIcon() {
|
|
28380
28355
|
return this.dropdownIconType === "chevron"
|
|
@@ -29628,7 +29603,7 @@ const SLOTS$3 = {
|
|
|
29628
29603
|
contentEnd: "content-end"
|
|
29629
29604
|
};
|
|
29630
29605
|
|
|
29631
|
-
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*/.sc-calcite-tile:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tile{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-h{display:none}/*!@:host*/.sc-calcite-tile-h{-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
|
|
29606
|
+
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*/.sc-calcite-tile:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tile{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-h{display:none}/*!@:host*/.sc-calcite-tile-h{-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*/.sc-calcite-tile-h .container.sc-calcite-tile{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}/*!@:host .content*/.sc-calcite-tile-h .content.sc-calcite-tile{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*/.sc-calcite-tile-h .content-container.sc-calcite-tile{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*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile{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*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:first-child{padding-right:0.75rem}/*!@:host .content-slot-container:last-child*/.sc-calcite-tile-h .content-slot-container.sc-calcite-tile:last-child{padding-left:0.75rem}/*!@:host .heading*/.sc-calcite-tile-h .heading.sc-calcite-tile{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*/.sc-calcite-tile-h .large-visual.sc-calcite-tile{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}/*!@:host .large-visual .icon*/.sc-calcite-tile-h .large-visual.sc-calcite-tile .icon.sc-calcite-tile{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*/.sc-calcite-tile-h .large-visual.sc-calcite-tile .content-container.sc-calcite-tile{-ms-flex-item-align:center;align-self:center}/*!@:host .description*/.sc-calcite-tile-h .description.sc-calcite-tile{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]))*/.sc-calcite-tile-h: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)*/.sc-calcite-tile-h: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)*/.sc-calcite-tile-h: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]))*/[icon][heading].sc-calcite-tile-h:not([description]):not([embed]){padding:0px}/*!@:host([disabled])*/[disabled].sc-calcite-tile-h{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}/*!@:host(:hover) .heading, :host([active]) .heading*/.sc-calcite-tile-h:hover .heading.sc-calcite-tile,[active].sc-calcite-tile-h .heading.sc-calcite-tile{color:var(--calcite-ui-text-1)}/*!@:host(:hover) .description, :host([active]) .description*/.sc-calcite-tile-h:hover .description.sc-calcite-tile,[active].sc-calcite-tile-h .description.sc-calcite-tile{color:var(--calcite-ui-text-2)}";
|
|
29632
29607
|
|
|
29633
29608
|
/**
|
|
29634
29609
|
* @slot content-start - A slot for adding non-actionable elements before the tile content.
|
|
@@ -29699,7 +29674,24 @@ class CalciteTile {
|
|
|
29699
29674
|
}; }
|
|
29700
29675
|
}
|
|
29701
29676
|
|
|
29702
|
-
const
|
|
29677
|
+
const CSS$6 = {
|
|
29678
|
+
checked: "checked",
|
|
29679
|
+
description: "description",
|
|
29680
|
+
descriptionOnly: "description-only",
|
|
29681
|
+
disabled: "disabled",
|
|
29682
|
+
heading: "heading",
|
|
29683
|
+
headingOnly: "heading-only",
|
|
29684
|
+
icon: "icon",
|
|
29685
|
+
iconOnly: "icon-only",
|
|
29686
|
+
inputAlignmentEnd: "input-alignment-end",
|
|
29687
|
+
inputAlignmentStart: "input-alignment-start",
|
|
29688
|
+
inputEnabled: "input-enabled",
|
|
29689
|
+
largeVisual: "large-visual",
|
|
29690
|
+
widthAuto: "width-auto",
|
|
29691
|
+
widthFull: "width-full"
|
|
29692
|
+
};
|
|
29693
|
+
|
|
29694
|
+
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*/.sc-calcite-tile-select:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-tile-select{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-tile-select{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-tile-select{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-tile-select{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-tile-select{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-tile-select:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-tile-select-h{display:none}/*!@:host*/.sc-calcite-tile-select-h{display:block}/*!@:host .container*/.sc-calcite-tile-select-h .container.sc-calcite-tile-select{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*/.sc-calcite-tile-select-h .container.checked.sc-calcite-tile-select{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*/.sc-calcite-tile-select-h .container.heading-only.sc-calcite-tile-select{-ms-flex-align:center;align-items:center}/*!@:host .container:not(.input-enabled) ::slotted(calcite-checkbox), :host .container:not(.input-enabled) ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container:not(.input-enabled) .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container:not(.input-enabled) .sc-calcite-tile-select-s>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)*/.sc-calcite-tile-select-h .container.focused.sc-calcite-tile-select:not(.disabled){z-index:30}/*!@:host .container.focused:not(.disabled):not(.input-enabled)*/.sc-calcite-tile-select-h .container.focused.sc-calcite-tile-select: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*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.icon-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.description-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.icon.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.width-auto.heading.icon.description.sc-calcite-tile-select{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*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.icon-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.description-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.icon.description.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.heading.icon.description.sc-calcite-tile-select{gap:0.75rem}/*!@:host .container.input-enabled.input-alignment-start calcite-tile*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.sc-calcite-tile-select calcite-tile.sc-calcite-tile-select{-ms-flex-order:1;order:1}/*!@:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),\n:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.large-visual .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-start.large-visual .sc-calcite-tile-select-s>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*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.width-auto.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.width-auto.icon-only.sc-calcite-tile-select{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*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading-only.sc-calcite-tile-select,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon-only.sc-calcite-tile-select{gap:0.75rem}/*!@:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),\n: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),\n: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),\n: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),\n:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.description-only .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.description-only .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.description .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.icon.description .sc-calcite-tile-select-s>calcite-radio-button,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.icon.description .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.heading.icon.description .sc-calcite-tile-select-s>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),\n:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button)*/.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.large-visual .sc-calcite-tile-select-s>calcite-checkbox,.sc-calcite-tile-select-h .container.input-enabled.input-alignment-end.large-visual .sc-calcite-tile-select-s>calcite-radio-button{position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}/*!@:host .container.width-full*/.sc-calcite-tile-select-h .container.width-full.sc-calcite-tile-select{display:-ms-flexbox;display:flex;max-width:none}/*!@:host .container.width-full calcite-tile*/.sc-calcite-tile-select-h .container.width-full.sc-calcite-tile-select calcite-tile.sc-calcite-tile-select{-ms-flex:1 1 auto;flex:1 1 auto}/*!@:host(:hover) .container*/.sc-calcite-tile-select-h:hover .container.sc-calcite-tile-select{z-index:20}/*!@:host(:hover) .container:not(.input-enabled)*/.sc-calcite-tile-select-h:hover .container.sc-calcite-tile-select: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])*/[disabled].sc-calcite-tile-select-h{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
|
|
29703
29695
|
|
|
29704
29696
|
/**
|
|
29705
29697
|
* @slot - A slot for adding custom content.
|
|
@@ -29848,7 +29840,25 @@ class CalciteTileSelect {
|
|
|
29848
29840
|
this.el.insertAdjacentElement("beforeend", this.input);
|
|
29849
29841
|
}
|
|
29850
29842
|
render() {
|
|
29851
|
-
|
|
29843
|
+
const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
|
|
29844
|
+
return (hAsync("div", { class: {
|
|
29845
|
+
checked,
|
|
29846
|
+
container: true,
|
|
29847
|
+
[CSS$6.description]: Boolean(description),
|
|
29848
|
+
[CSS$6.descriptionOnly]: Boolean(!heading && !icon && description),
|
|
29849
|
+
disabled,
|
|
29850
|
+
focused,
|
|
29851
|
+
[CSS$6.heading]: Boolean(heading),
|
|
29852
|
+
[CSS$6.headingOnly]: heading && !icon && !description,
|
|
29853
|
+
[CSS$6.icon]: Boolean(icon),
|
|
29854
|
+
[CSS$6.iconOnly]: !heading && icon && !description,
|
|
29855
|
+
[CSS$6.inputAlignmentEnd]: inputAlignment === "end",
|
|
29856
|
+
[CSS$6.inputAlignmentStart]: inputAlignment === "start",
|
|
29857
|
+
[CSS$6.inputEnabled]: inputEnabled,
|
|
29858
|
+
[CSS$6.largeVisual]: heading && icon && !description,
|
|
29859
|
+
[CSS$6.widthAuto]: width === "auto",
|
|
29860
|
+
[CSS$6.widthFull]: width === "full"
|
|
29861
|
+
} }, hAsync("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }), hAsync("slot", null)));
|
|
29852
29862
|
}
|
|
29853
29863
|
get el() { return getElement(this); }
|
|
29854
29864
|
static get watchers() { return {
|
|
@@ -31093,8 +31103,8 @@ class CalciteTooltip {
|
|
|
31093
31103
|
const displayed = effectiveReferenceElement && open;
|
|
31094
31104
|
const hidden = !displayed;
|
|
31095
31105
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, id: this.getId(), role: "tooltip" }, hAsync("div", { class: {
|
|
31096
|
-
[CSS$
|
|
31097
|
-
[CSS$
|
|
31106
|
+
[CSS$D.animation]: true,
|
|
31107
|
+
[CSS$D.animationActive]: displayed
|
|
31098
31108
|
} }, hAsync("div", { class: CSS$2.arrow, ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$2.container }, hAsync("slot", null)))));
|
|
31099
31109
|
}
|
|
31100
31110
|
get el() { return getElement(this); }
|
|
@@ -32100,8 +32110,8 @@ class CalciteValueListItem {
|
|
|
32100
32110
|
const { icon } = this;
|
|
32101
32111
|
if (icon === ICON_TYPES$1.grip) {
|
|
32102
32112
|
return (hAsync("span", { "aria-pressed": this.handleActivated.toString(), class: {
|
|
32103
|
-
[CSS$
|
|
32104
|
-
[CSS$
|
|
32113
|
+
[CSS$h.handle]: true,
|
|
32114
|
+
[CSS$h.handleActivated]: this.handleActivated
|
|
32105
32115
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0" }, hAsync("calcite-icon", { icon: ICONS.drag, scale: "s" })));
|
|
32106
32116
|
}
|
|
32107
32117
|
}
|