@esri/calcite-components 1.0.0-next.305 → 1.0.0-next.309
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/p-2a714a22.entry.js +5 -0
- package/dist/calcite/p-362cb320.entry.js +5 -0
- package/dist/calcite/{p-e62a9b1d.system.entry.js → p-4778c5cf.system.entry.js} +1 -1
- package/dist/calcite/{p-9f240615.system.entry.js → p-59a285d8.system.entry.js} +1 -1
- package/dist/calcite/p-688f06b9.entry.js +5 -0
- package/dist/calcite/p-8c02f97a.entry.js +5 -0
- package/dist/calcite/p-8e252799.system.js +5 -0
- package/dist/calcite/{p-243d95ab.system.entry.js → p-a5e8f022.system.entry.js} +2 -2
- package/dist/calcite/{p-88b875d3.system.entry.js → p-b0e21c19.system.entry.js} +1 -1
- package/dist/calcite/p-c61ebee9.entry.js +5 -0
- package/dist/calcite/p-ca6025ab.system.entry.js +5 -0
- package/dist/calcite/p-dbe899c6.system.entry.js +5 -0
- package/dist/calcite/p-e616f9b5.entry.js +5 -0
- package/dist/cjs/calcite-alert.cjs.entry.js +22 -5
- package/dist/cjs/calcite-graph_2.cjs.entry.js +18 -10
- package/dist/cjs/calcite-input.cjs.entry.js +16 -14
- package/dist/cjs/calcite-radio_2.cjs.entry.js +3 -7
- package/dist/cjs/calcite-shell_3.cjs.entry.js +156 -5
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/calcite-alert/calcite-alert.js +23 -4
- package/dist/collection/components/calcite-input/calcite-input.js +16 -14
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +3 -7
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +43 -0
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +194 -5
- package/dist/collection/components/calcite-shell-panel/resources.js +5 -1
- package/dist/collection/components/calcite-slider/calcite-slider.css +1 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +19 -9
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +16 -4
- package/dist/components/calcite-accordion-item.js +4 -1
- package/dist/components/calcite-accordion.js +4 -1
- package/dist/components/calcite-action-bar.js +4 -1
- package/dist/components/calcite-action-group2.js +4 -1
- package/dist/components/calcite-action-menu2.js +4 -1
- package/dist/components/calcite-action-pad.js +4 -1
- package/dist/components/calcite-action2.js +4 -1
- package/dist/components/calcite-alert.js +26 -6
- package/dist/components/calcite-avatar.js +4 -1
- package/dist/components/calcite-block-section.js +4 -1
- package/dist/components/calcite-block.js +4 -1
- package/dist/components/calcite-button2.js +5 -2
- package/dist/components/calcite-card.js +4 -1
- package/dist/components/calcite-checkbox2.js +4 -1
- package/dist/components/calcite-chip2.js +4 -1
- package/dist/components/calcite-color-picker-hex-input2.js +4 -1
- package/dist/components/calcite-color-picker-swatch2.js +4 -1
- package/dist/components/calcite-color-picker.js +4 -1
- package/dist/components/calcite-combobox-item-group.js +4 -1
- package/dist/components/calcite-combobox-item.js +4 -1
- package/dist/components/calcite-combobox.js +4 -1
- package/dist/components/calcite-date-picker-day2.js +4 -1
- package/dist/components/calcite-date-picker-month-header2.js +4 -1
- package/dist/components/calcite-date-picker-month2.js +4 -1
- package/dist/components/calcite-date-picker2.js +4 -1
- package/dist/components/calcite-dropdown-group.js +4 -1
- package/dist/components/calcite-dropdown-item.js +4 -1
- package/dist/components/calcite-dropdown2.js +4 -1
- package/dist/components/calcite-fab.js +4 -1
- package/dist/components/calcite-filter2.js +4 -1
- package/dist/components/calcite-flow.js +4 -1
- package/dist/components/calcite-graph2.js +4 -1
- package/dist/components/calcite-handle2.js +4 -1
- package/dist/components/calcite-icon2.js +4 -1
- package/dist/components/calcite-inline-editable.js +4 -1
- package/dist/components/calcite-input-date-picker.js +4 -1
- package/dist/components/calcite-input-message.js +4 -1
- package/dist/components/calcite-input-time-picker.js +4 -1
- package/dist/components/calcite-input2.js +20 -15
- package/dist/components/calcite-label2.js +4 -1
- package/dist/components/calcite-link2.js +4 -1
- package/dist/components/calcite-list-item-group.js +4 -1
- package/dist/components/calcite-list-item.js +4 -1
- package/dist/components/calcite-list.js +4 -1
- package/dist/components/calcite-loader2.js +4 -1
- package/dist/components/calcite-modal.js +4 -1
- package/dist/components/calcite-notice.js +4 -1
- package/dist/components/calcite-option-group.js +4 -1
- package/dist/components/calcite-option.js +4 -1
- package/dist/components/calcite-pagination.js +4 -1
- package/dist/components/calcite-panel.js +4 -1
- package/dist/components/calcite-pick-list-group.js +4 -1
- package/dist/components/calcite-pick-list-item2.js +4 -1
- package/dist/components/calcite-pick-list.js +4 -1
- package/dist/components/calcite-popover-manager.js +4 -1
- package/dist/components/calcite-popover2.js +4 -1
- package/dist/components/calcite-progress2.js +4 -1
- package/dist/components/calcite-radio-button-group.js +4 -1
- package/dist/components/calcite-radio-button.js +7 -8
- package/dist/components/calcite-radio-group-item.js +4 -1
- package/dist/components/calcite-radio-group.js +4 -1
- package/dist/components/calcite-radio2.js +4 -1
- package/dist/components/calcite-rating.js +4 -1
- package/dist/components/calcite-scrim2.js +4 -1
- package/dist/components/calcite-select.js +4 -1
- package/dist/components/calcite-shell-center-row.js +4 -1
- package/dist/components/calcite-shell-panel.js +164 -7
- package/dist/components/calcite-shell.js +4 -1
- package/dist/components/calcite-slider.js +22 -11
- package/dist/components/calcite-sortable-list.js +4 -1
- package/dist/components/calcite-split-button.js +4 -1
- package/dist/components/calcite-stepper-item.js +4 -1
- package/dist/components/calcite-stepper.js +4 -1
- package/dist/components/calcite-switch2.js +4 -1
- package/dist/components/calcite-tab-nav2.js +4 -1
- package/dist/components/calcite-tab-title2.js +4 -1
- package/dist/components/calcite-tab2.js +4 -1
- package/dist/components/calcite-tabs2.js +4 -1
- package/dist/components/calcite-tile-select-group.js +4 -1
- package/dist/components/calcite-tile-select.js +7 -4
- package/dist/components/calcite-tile2.js +4 -1
- package/dist/components/calcite-time-picker2.js +4 -1
- package/dist/components/calcite-tip-group.js +4 -1
- package/dist/components/calcite-tip-manager.js +4 -1
- package/dist/components/calcite-tip.js +4 -1
- package/dist/components/calcite-tooltip-manager2.js +4 -1
- package/dist/components/calcite-tooltip.js +4 -1
- package/dist/components/calcite-tree-item.js +4 -1
- package/dist/components/calcite-tree.js +4 -1
- package/dist/components/calcite-value-list-item.js +4 -1
- package/dist/components/calcite-value-list.js +4 -1
- package/dist/custom-elements/index.js +403 -230
- package/dist/esm/calcite-alert.entry.js +22 -5
- package/dist/esm/calcite-graph_2.entry.js +18 -10
- package/dist/esm/calcite-input.entry.js +16 -14
- package/dist/esm/calcite-radio_2.entry.js +3 -7
- package/dist/esm/calcite-shell_3.entry.js +157 -6
- package/dist/esm/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/extras/docs-json.json +51 -2
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +3 -0
- package/dist/types/components/calcite-input/calcite-input.d.ts +1 -1
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +31 -0
- package/dist/types/components/calcite-shell-panel/resources.d.ts +4 -0
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +3 -1
- package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +2 -2
- package/dist/types/components.d.ts +18 -0
- package/hydrate/index.js +316 -140
- package/package.json +10 -10
- package/readme.md +2 -2
- package/dist/calcite/p-3eb1dc0f.entry.js +0 -5
- package/dist/calcite/p-42696c81.system.entry.js +0 -5
- package/dist/calcite/p-56e28cef.entry.js +0 -5
- package/dist/calcite/p-5c0c29bc.entry.js +0 -5
- package/dist/calcite/p-5f817b79.entry.js +0 -5
- package/dist/calcite/p-6f1cca21.system.js +0 -5
- package/dist/calcite/p-737fb960.entry.js +0 -5
- package/dist/calcite/p-82139130.entry.js +0 -5
- package/dist/calcite/p-b1a96c72.system.entry.js +0 -5
package/hydrate/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
/*!
|
|
10
|
-
Stencil Mock Doc v2.
|
|
10
|
+
Stencil Mock Doc v2.11.0 | MIT Licensed | https://stenciljs.com
|
|
11
11
|
*/
|
|
12
12
|
const CONTENT_REF_ID = 'r';
|
|
13
13
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -5701,7 +5701,7 @@ const CSS_UTILITY = {
|
|
|
5701
5701
|
lightTheme,
|
|
5702
5702
|
rtl: "calcite--rtl"
|
|
5703
5703
|
};
|
|
5704
|
-
const TEXT$
|
|
5704
|
+
const TEXT$q = {
|
|
5705
5705
|
loading: "Loading"
|
|
5706
5706
|
};
|
|
5707
5707
|
|
|
@@ -5996,7 +5996,7 @@ const CSS$O = {
|
|
|
5996
5996
|
textContainer: "text-container",
|
|
5997
5997
|
textContainerVisible: "text-container--visible"
|
|
5998
5998
|
};
|
|
5999
|
-
const TEXT$
|
|
5999
|
+
const TEXT$p = {
|
|
6000
6000
|
loading: "Loading"
|
|
6001
6001
|
};
|
|
6002
6002
|
|
|
@@ -6046,7 +6046,7 @@ class CalciteAction {
|
|
|
6046
6046
|
/** string to override English loading text
|
|
6047
6047
|
* @default "Loading"
|
|
6048
6048
|
*/
|
|
6049
|
-
this.intlLoading = TEXT$
|
|
6049
|
+
this.intlLoading = TEXT$p.loading;
|
|
6050
6050
|
/**
|
|
6051
6051
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
6052
6052
|
*/
|
|
@@ -6173,7 +6173,7 @@ const SLOTS$o = {
|
|
|
6173
6173
|
menuActions: "menu-actions",
|
|
6174
6174
|
menuTooltip: "menu-tooltip"
|
|
6175
6175
|
};
|
|
6176
|
-
const TEXT$
|
|
6176
|
+
const TEXT$o = {
|
|
6177
6177
|
more: "More"
|
|
6178
6178
|
};
|
|
6179
6179
|
const ICONS$e = {
|
|
@@ -6264,7 +6264,7 @@ const SLOTS$n = {
|
|
|
6264
6264
|
bottomActions: "bottom-actions",
|
|
6265
6265
|
expandTooltip: "expand-tooltip"
|
|
6266
6266
|
};
|
|
6267
|
-
const TEXT$
|
|
6267
|
+
const TEXT$n = {
|
|
6268
6268
|
expand: "Expand",
|
|
6269
6269
|
collapse: "Collapse"
|
|
6270
6270
|
};
|
|
@@ -7690,8 +7690,8 @@ class CalciteActionBar {
|
|
|
7690
7690
|
renderBottomActionGroup() {
|
|
7691
7691
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
7692
7692
|
const tooltip = getSlotted(el, SLOTS$n.expandTooltip);
|
|
7693
|
-
const expandLabel = intlExpand || TEXT$
|
|
7694
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
7693
|
+
const expandLabel = intlExpand || TEXT$n.expand;
|
|
7694
|
+
const collapseLabel = intlCollapse || TEXT$n.collapse;
|
|
7695
7695
|
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;
|
|
7696
7696
|
return getSlotted(el, SLOTS$n.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$M.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$n.bottomActions }), hAsync("slot", { name: SLOTS$n.expandTooltip }), expandToggleNode)) : null;
|
|
7697
7697
|
}
|
|
@@ -7777,7 +7777,7 @@ class CalciteActionGroup {
|
|
|
7777
7777
|
renderMenu() {
|
|
7778
7778
|
const { el, expanded, intlMore, menuOpen, scale } = this;
|
|
7779
7779
|
const hasMenuItems = getSlotted(el, SLOTS$o.menuActions);
|
|
7780
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$
|
|
7780
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$o.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$e.menu, scale: scale, slot: SLOTS$p.trigger, text: intlMore || TEXT$o.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$o.menuActions }), this.renderTooltip())) : null;
|
|
7781
7781
|
}
|
|
7782
7782
|
render() {
|
|
7783
7783
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -8112,7 +8112,7 @@ const CSS$L = {
|
|
|
8112
8112
|
actionGroupBottom: "action-group--bottom",
|
|
8113
8113
|
container: "container"
|
|
8114
8114
|
};
|
|
8115
|
-
const TEXT$
|
|
8115
|
+
const TEXT$m = {
|
|
8116
8116
|
expand: "Expand",
|
|
8117
8117
|
collapse: "Collapse"
|
|
8118
8118
|
};
|
|
@@ -8212,8 +8212,8 @@ class CalciteActionPad {
|
|
|
8212
8212
|
renderBottomActionGroup() {
|
|
8213
8213
|
const { expanded, expandDisabled, intlExpand, intlCollapse, el, position, toggleExpand, scale } = this;
|
|
8214
8214
|
const tooltip = getSlotted(el, SLOTS$m.expandTooltip);
|
|
8215
|
-
const expandLabel = intlExpand || TEXT$
|
|
8216
|
-
const collapseLabel = intlCollapse || TEXT$
|
|
8215
|
+
const expandLabel = intlExpand || TEXT$m.expand;
|
|
8216
|
+
const collapseLabel = intlCollapse || TEXT$m.collapse;
|
|
8217
8217
|
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;
|
|
8218
8218
|
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$L.actionGroupBottom, scale: scale }, hAsync("slot", { name: SLOTS$m.expandTooltip }), expandToggleNode)) : null;
|
|
8219
8219
|
}
|
|
@@ -8250,7 +8250,7 @@ class CalciteActionPad {
|
|
|
8250
8250
|
}; }
|
|
8251
8251
|
}
|
|
8252
8252
|
|
|
8253
|
-
const TEXT$
|
|
8253
|
+
const TEXT$l = {
|
|
8254
8254
|
intlClose: "Close"
|
|
8255
8255
|
};
|
|
8256
8256
|
const DURATIONS = {
|
|
@@ -8305,7 +8305,7 @@ class CalciteAlert {
|
|
|
8305
8305
|
/** string to override English close text
|
|
8306
8306
|
* @default "Close"
|
|
8307
8307
|
*/
|
|
8308
|
-
this.intlClose = TEXT$
|
|
8308
|
+
this.intlClose = TEXT$l.intlClose;
|
|
8309
8309
|
/** specify the scale of the button, defaults to m */
|
|
8310
8310
|
this.scale = "m";
|
|
8311
8311
|
//--------------------------------------------------------------------------
|
|
@@ -8319,8 +8319,13 @@ class CalciteAlert {
|
|
|
8319
8319
|
this.queueLength = 0;
|
|
8320
8320
|
/** is the alert queued */
|
|
8321
8321
|
this.queued = false;
|
|
8322
|
+
this.autoDismissTimeout = null;
|
|
8323
|
+
this.trackTimer = new Date();
|
|
8322
8324
|
/** close and emit the closed alert and the queue */
|
|
8323
8325
|
this.closeAlert = () => {
|
|
8326
|
+
if (this.autoDismissTimeout) {
|
|
8327
|
+
this.autoDismissTimeout = null;
|
|
8328
|
+
}
|
|
8324
8329
|
this.queued = false;
|
|
8325
8330
|
this.active = false;
|
|
8326
8331
|
this.queue = this.queue.filter((e) => e !== this.el);
|
|
@@ -8344,6 +8349,12 @@ class CalciteAlert {
|
|
|
8344
8349
|
updateRequestedIcon() {
|
|
8345
8350
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
8346
8351
|
}
|
|
8352
|
+
updateDuration(newDuration, prevDuration) {
|
|
8353
|
+
if (this.autoDismiss && prevDuration !== newDuration && this.autoDismissTimeout) {
|
|
8354
|
+
window.clearTimeout(this.autoDismissTimeout);
|
|
8355
|
+
this.autoDismissTimeout = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration] - (new Date().valueOf() - this.trackTimer.valueOf()));
|
|
8356
|
+
}
|
|
8357
|
+
}
|
|
8347
8358
|
//--------------------------------------------------------------------------
|
|
8348
8359
|
//
|
|
8349
8360
|
// Lifecycle
|
|
@@ -8360,20 +8371,25 @@ class CalciteAlert {
|
|
|
8360
8371
|
componentDidLoad() {
|
|
8361
8372
|
this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
|
|
8362
8373
|
}
|
|
8374
|
+
disconnectedCallback() {
|
|
8375
|
+
if (this.autoDismissTimeout) {
|
|
8376
|
+
window.clearTimeout(this.autoDismissTimeout);
|
|
8377
|
+
}
|
|
8378
|
+
}
|
|
8363
8379
|
render() {
|
|
8364
8380
|
const dir = getElementDir(this.el);
|
|
8365
8381
|
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: "alert-close", onClick: this.closeAlert, ref: (el) => (this.closeButton = el), type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
8366
8382
|
const queueText = `+${this.queueLength > 2 ? this.queueLength - 1 : 1}`;
|
|
8367
8383
|
const queueCount = (hAsync("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, hAsync("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
8368
8384
|
const { active, autoDismiss, label, queued, requestedIcon } = this;
|
|
8369
|
-
const
|
|
8385
|
+
const progressBar = hAsync("div", { class: "alert-dismiss-progress" });
|
|
8370
8386
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
8371
8387
|
const hidden = !active;
|
|
8372
8388
|
return (hAsync(Host, { "aria-hidden": hidden.toString(), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
8373
8389
|
container: true,
|
|
8374
8390
|
queued,
|
|
8375
8391
|
[CSS_UTILITY.rtl]: dir === "rtl"
|
|
8376
|
-
} }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ?
|
|
8392
|
+
} }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$l.title }), hAsync("slot", { name: SLOTS$l.message }), hAsync("slot", { name: SLOTS$l.link })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? progressBar : null)));
|
|
8377
8393
|
}
|
|
8378
8394
|
// when an alert is opened or closed, update queue and determine active alert
|
|
8379
8395
|
alertSync(event) {
|
|
@@ -8419,8 +8435,8 @@ class CalciteAlert {
|
|
|
8419
8435
|
var _a;
|
|
8420
8436
|
if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
|
|
8421
8437
|
this.openAlert();
|
|
8422
|
-
|
|
8423
|
-
|
|
8438
|
+
if (this.autoDismiss && !this.autoDismissTimeout) {
|
|
8439
|
+
this.trackTimer = new Date();
|
|
8424
8440
|
this.autoDismissTimeout = window.setTimeout(() => this.closeAlert(), DURATIONS[this.autoDismissDuration]);
|
|
8425
8441
|
}
|
|
8426
8442
|
}
|
|
@@ -8441,7 +8457,8 @@ class CalciteAlert {
|
|
|
8441
8457
|
static get watchers() { return {
|
|
8442
8458
|
"active": ["watchActive"],
|
|
8443
8459
|
"icon": ["updateRequestedIcon"],
|
|
8444
|
-
"color": ["updateRequestedIcon"]
|
|
8460
|
+
"color": ["updateRequestedIcon"],
|
|
8461
|
+
"autoDismissDuration": ["updateDuration"]
|
|
8445
8462
|
}; }
|
|
8446
8463
|
static get style() { return calciteAlertCss; }
|
|
8447
8464
|
static get cmpMeta() { return {
|
|
@@ -8741,7 +8758,7 @@ const CSS$K = {
|
|
|
8741
8758
|
invalid: "invalid",
|
|
8742
8759
|
loading: "loading"
|
|
8743
8760
|
};
|
|
8744
|
-
const TEXT$
|
|
8761
|
+
const TEXT$k = {
|
|
8745
8762
|
collapse: "Collapse",
|
|
8746
8763
|
expand: "Expand",
|
|
8747
8764
|
loading: "Loading",
|
|
@@ -8802,11 +8819,11 @@ class CalciteBlock {
|
|
|
8802
8819
|
/** string to override English loading text
|
|
8803
8820
|
* @default "Loading"
|
|
8804
8821
|
*/
|
|
8805
|
-
this.intlLoading = TEXT$
|
|
8822
|
+
this.intlLoading = TEXT$k.loading;
|
|
8806
8823
|
/** Text string used for the actions menu
|
|
8807
8824
|
* @default "Options"
|
|
8808
8825
|
*/
|
|
8809
|
-
this.intlOptions = TEXT$
|
|
8826
|
+
this.intlOptions = TEXT$k.options;
|
|
8810
8827
|
/**
|
|
8811
8828
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
8812
8829
|
*/
|
|
@@ -8850,12 +8867,12 @@ class CalciteBlock {
|
|
|
8850
8867
|
}
|
|
8851
8868
|
render() {
|
|
8852
8869
|
const { collapsible, disabled, el, heading, intlCollapse, intlExpand, loading, open, summary, intlLoading, headingLevel } = this;
|
|
8853
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
8870
|
+
const toggleLabel = open ? intlCollapse || TEXT$k.collapse : intlExpand || TEXT$k.expand;
|
|
8854
8871
|
const headerContent = (hAsync("header", { class: CSS$K.header }, this.renderIcon(), hAsync("div", { class: CSS$K.title }, hAsync(CalciteHeading, { class: CSS$K.heading, level: headingLevel || HEADING_LEVEL$7 }, heading), summary ? hAsync("div", { class: CSS$K.summary }, summary) : null)));
|
|
8855
8872
|
const hasControl = !!getSlotted(el, SLOTS$k.control);
|
|
8856
8873
|
const hasMenuActions = !!getSlotted(el, SLOTS$k.headerMenuActions);
|
|
8857
8874
|
const collapseIcon = open ? ICONS$c.opened : ICONS$c.closed;
|
|
8858
|
-
const headerNode = (hAsync("div", { class: CSS$K.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$K.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$K.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$K.controlContainer }, hAsync("slot", { name: SLOTS$k.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$
|
|
8875
|
+
const headerNode = (hAsync("div", { class: CSS$K.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS$K.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$K.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$K.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));
|
|
8859
8876
|
return (hAsync(Host, { tabIndex: disabled ? -1 : null }, hAsync("article", { "aria-busy": loading.toString(), class: {
|
|
8860
8877
|
[CSS$K.article]: true
|
|
8861
8878
|
} }, headerNode, hAsync("div", { class: CSS$K.content, hidden: !open }, this.renderScrim()))));
|
|
@@ -8898,7 +8915,7 @@ const CSS$J = {
|
|
|
8898
8915
|
statusIcon: "status-icon",
|
|
8899
8916
|
valid: "valid"
|
|
8900
8917
|
};
|
|
8901
|
-
const TEXT$
|
|
8918
|
+
const TEXT$j = {
|
|
8902
8919
|
collapse: "Collapse",
|
|
8903
8920
|
expand: "Expand"
|
|
8904
8921
|
};
|
|
@@ -8970,7 +8987,7 @@ class CalciteBlockSection {
|
|
|
8970
8987
|
: dir === "rtl"
|
|
8971
8988
|
? ICONS$b.menuClosedLeft
|
|
8972
8989
|
: ICONS$b.menuClosedRight;
|
|
8973
|
-
const toggleLabel = open ? intlCollapse || TEXT$
|
|
8990
|
+
const toggleLabel = open ? intlCollapse || TEXT$j.collapse : intlExpand || TEXT$j.expand;
|
|
8974
8991
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-label": toggleLabel, class: {
|
|
8975
8992
|
[CSS$J.toggle]: true,
|
|
8976
8993
|
[CSS$J.toggleSwitch]: true
|
|
@@ -9037,7 +9054,7 @@ const CSS$I = {
|
|
|
9037
9054
|
loadingIn: "loading-in",
|
|
9038
9055
|
loadingOut: "loading-out"
|
|
9039
9056
|
};
|
|
9040
|
-
const TEXT$
|
|
9057
|
+
const TEXT$i = {
|
|
9041
9058
|
loading: "Loading"
|
|
9042
9059
|
};
|
|
9043
9060
|
|
|
@@ -9141,7 +9158,7 @@ class CalciteButton {
|
|
|
9141
9158
|
/** string to override English loading text
|
|
9142
9159
|
* @default "Loading"
|
|
9143
9160
|
*/
|
|
9144
|
-
this.intlLoading = TEXT$
|
|
9161
|
+
this.intlLoading = TEXT$i.loading;
|
|
9145
9162
|
/** optionally add a calcite-loader component to the button, disabling interaction. */
|
|
9146
9163
|
this.loading = false;
|
|
9147
9164
|
/** optionally add a round style to the button */
|
|
@@ -9303,7 +9320,7 @@ const SLOTS$j = {
|
|
|
9303
9320
|
footerLeading: "footer-leading",
|
|
9304
9321
|
footerTrailing: "footer-trailing"
|
|
9305
9322
|
};
|
|
9306
|
-
const TEXT$
|
|
9323
|
+
const TEXT$h = {
|
|
9307
9324
|
select: "Select",
|
|
9308
9325
|
deselect: "Deselect",
|
|
9309
9326
|
loading: "Loading"
|
|
@@ -9340,15 +9357,15 @@ class CalciteCard {
|
|
|
9340
9357
|
/** string to override English loading text
|
|
9341
9358
|
* @default "Loading"
|
|
9342
9359
|
*/
|
|
9343
|
-
this.intlLoading = TEXT$
|
|
9360
|
+
this.intlLoading = TEXT$h.loading;
|
|
9344
9361
|
/** string to override English select text for checkbox when selectable is true
|
|
9345
9362
|
* @default "Select"
|
|
9346
9363
|
*/
|
|
9347
|
-
this.intlSelect = TEXT$
|
|
9364
|
+
this.intlSelect = TEXT$h.select;
|
|
9348
9365
|
/** string to override English deselect text for checkbox when selectable is true
|
|
9349
9366
|
* @default "Deselect"
|
|
9350
9367
|
*/
|
|
9351
|
-
this.intlDeselect = TEXT$
|
|
9368
|
+
this.intlDeselect = TEXT$h.deselect;
|
|
9352
9369
|
//--------------------------------------------------------------------------
|
|
9353
9370
|
//
|
|
9354
9371
|
// Private State/Props
|
|
@@ -9733,7 +9750,7 @@ const CSS$G = {
|
|
|
9733
9750
|
chipImageContainer: "chip-image-container",
|
|
9734
9751
|
calciteChipIcon: "calcite-chip--icon"
|
|
9735
9752
|
};
|
|
9736
|
-
const TEXT$
|
|
9753
|
+
const TEXT$g = {
|
|
9737
9754
|
close: "Close"
|
|
9738
9755
|
};
|
|
9739
9756
|
const SLOTS$i = {
|
|
@@ -9767,7 +9784,7 @@ class CalciteChip {
|
|
|
9767
9784
|
/** Aria label for the "x" button
|
|
9768
9785
|
* @default "Close"
|
|
9769
9786
|
*/
|
|
9770
|
-
this.dismissLabel = TEXT$
|
|
9787
|
+
this.dismissLabel = TEXT$g.close;
|
|
9771
9788
|
/** flip the icon in rtl */
|
|
9772
9789
|
this.iconFlipRtl = false;
|
|
9773
9790
|
/** specify the scale of the chip, defaults to m */
|
|
@@ -11965,7 +11982,7 @@ const HSV_LIMITS = {
|
|
|
11965
11982
|
s: 100,
|
|
11966
11983
|
v: 100
|
|
11967
11984
|
};
|
|
11968
|
-
const TEXT$
|
|
11985
|
+
const TEXT$f = {
|
|
11969
11986
|
b: "B",
|
|
11970
11987
|
blue: "Blue",
|
|
11971
11988
|
deleteColor: "Delete color",
|
|
@@ -12086,80 +12103,80 @@ class CalciteColorPicker {
|
|
|
12086
12103
|
/** Label used for the blue channel
|
|
12087
12104
|
* @default "B"
|
|
12088
12105
|
*/
|
|
12089
|
-
this.intlB = TEXT$
|
|
12106
|
+
this.intlB = TEXT$f.b;
|
|
12090
12107
|
/** Label used for the blue channel description
|
|
12091
12108
|
* @default "Blue"
|
|
12092
12109
|
*/
|
|
12093
|
-
this.intlBlue = TEXT$
|
|
12110
|
+
this.intlBlue = TEXT$f.blue;
|
|
12094
12111
|
/** Label used for the delete color button.
|
|
12095
12112
|
* @default "Delete color"
|
|
12096
12113
|
*/
|
|
12097
|
-
this.intlDeleteColor = TEXT$
|
|
12114
|
+
this.intlDeleteColor = TEXT$f.deleteColor;
|
|
12098
12115
|
/** Label used for the green channel
|
|
12099
12116
|
* @default "G"
|
|
12100
12117
|
*/
|
|
12101
|
-
this.intlG = TEXT$
|
|
12118
|
+
this.intlG = TEXT$f.g;
|
|
12102
12119
|
/** Label used for the green channel description
|
|
12103
12120
|
* @default "Green"
|
|
12104
12121
|
*/
|
|
12105
|
-
this.intlGreen = TEXT$
|
|
12122
|
+
this.intlGreen = TEXT$f.green;
|
|
12106
12123
|
/** Label used for the hue channel
|
|
12107
12124
|
* @default "H"
|
|
12108
12125
|
*/
|
|
12109
|
-
this.intlH = TEXT$
|
|
12126
|
+
this.intlH = TEXT$f.h;
|
|
12110
12127
|
/** Label used for the HSV mode
|
|
12111
12128
|
* @default "HSV"
|
|
12112
12129
|
*/
|
|
12113
|
-
this.intlHsv = TEXT$
|
|
12130
|
+
this.intlHsv = TEXT$f.hsv;
|
|
12114
12131
|
/** Label used for the hex input
|
|
12115
12132
|
* @default "Hex"
|
|
12116
12133
|
*/
|
|
12117
|
-
this.intlHex = TEXT$
|
|
12134
|
+
this.intlHex = TEXT$f.hex;
|
|
12118
12135
|
/** Label used for the hue channel description
|
|
12119
12136
|
* @default "Hue"
|
|
12120
12137
|
*/
|
|
12121
|
-
this.intlHue = TEXT$
|
|
12138
|
+
this.intlHue = TEXT$f.hue;
|
|
12122
12139
|
/**
|
|
12123
12140
|
* Label used for the hex input when there is no color selected.
|
|
12124
12141
|
* @default "No color"
|
|
12125
12142
|
*/
|
|
12126
|
-
this.intlNoColor = TEXT$
|
|
12143
|
+
this.intlNoColor = TEXT$f.noColor;
|
|
12127
12144
|
/** Label used for the red channel
|
|
12128
12145
|
* @default "R"
|
|
12129
12146
|
*/
|
|
12130
|
-
this.intlR = TEXT$
|
|
12147
|
+
this.intlR = TEXT$f.r;
|
|
12131
12148
|
/** Label used for the red channel description
|
|
12132
12149
|
* @default "Red"
|
|
12133
12150
|
*/
|
|
12134
|
-
this.intlRed = TEXT$
|
|
12151
|
+
this.intlRed = TEXT$f.red;
|
|
12135
12152
|
/** Label used for the RGB mode
|
|
12136
12153
|
* @default "RGB"
|
|
12137
12154
|
*/
|
|
12138
|
-
this.intlRgb = TEXT$
|
|
12155
|
+
this.intlRgb = TEXT$f.rgb;
|
|
12139
12156
|
/** Label used for the saturation channel
|
|
12140
12157
|
* @default "S"
|
|
12141
12158
|
*/
|
|
12142
|
-
this.intlS = TEXT$
|
|
12159
|
+
this.intlS = TEXT$f.s;
|
|
12143
12160
|
/** Label used for the saturation channel description
|
|
12144
12161
|
* @default "Saturation"
|
|
12145
12162
|
*/
|
|
12146
|
-
this.intlSaturation = TEXT$
|
|
12163
|
+
this.intlSaturation = TEXT$f.saturation;
|
|
12147
12164
|
/** Label used for the save color button.
|
|
12148
12165
|
* @default "Save color"
|
|
12149
12166
|
*/
|
|
12150
|
-
this.intlSaveColor = TEXT$
|
|
12167
|
+
this.intlSaveColor = TEXT$f.saveColor;
|
|
12151
12168
|
/** Label used for the saved colors section
|
|
12152
12169
|
* @default "Saved"
|
|
12153
12170
|
*/
|
|
12154
|
-
this.intlSaved = TEXT$
|
|
12171
|
+
this.intlSaved = TEXT$f.saved;
|
|
12155
12172
|
/** Label used for the value channel
|
|
12156
12173
|
* @default "V"
|
|
12157
12174
|
*/
|
|
12158
|
-
this.intlV = TEXT$
|
|
12175
|
+
this.intlV = TEXT$f.v;
|
|
12159
12176
|
/** Label used for the
|
|
12160
12177
|
* @default "Value"
|
|
12161
12178
|
*/
|
|
12162
|
-
this.intlValue = TEXT$
|
|
12179
|
+
this.intlValue = TEXT$f.value;
|
|
12163
12180
|
/**
|
|
12164
12181
|
* The scale of the color picker.
|
|
12165
12182
|
*/
|
|
@@ -12884,12 +12901,12 @@ class CalciteColorPickerHexInput {
|
|
|
12884
12901
|
* Label used for the hex input.
|
|
12885
12902
|
* @default "Hex"
|
|
12886
12903
|
*/
|
|
12887
|
-
this.intlHex = TEXT$
|
|
12904
|
+
this.intlHex = TEXT$f.hex;
|
|
12888
12905
|
/**
|
|
12889
12906
|
* Label used for the hex input when there is no color selected.
|
|
12890
12907
|
* @default "No color"
|
|
12891
12908
|
*/
|
|
12892
|
-
this.intlNoColor = TEXT$
|
|
12909
|
+
this.intlNoColor = TEXT$f.noColor;
|
|
12893
12910
|
/**
|
|
12894
12911
|
* The component's scale.
|
|
12895
12912
|
*/
|
|
@@ -13404,7 +13421,7 @@ function contains(parent, child) {
|
|
|
13404
13421
|
return false;
|
|
13405
13422
|
}
|
|
13406
13423
|
|
|
13407
|
-
function getComputedStyle(element) {
|
|
13424
|
+
function getComputedStyle$1(element) {
|
|
13408
13425
|
return getWindow(element).getComputedStyle(element);
|
|
13409
13426
|
}
|
|
13410
13427
|
|
|
@@ -13437,7 +13454,7 @@ function getParentNode(element) {
|
|
|
13437
13454
|
|
|
13438
13455
|
function getTrueOffsetParent(element) {
|
|
13439
13456
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
13440
|
-
getComputedStyle(element).position === 'fixed') {
|
|
13457
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
13441
13458
|
return null;
|
|
13442
13459
|
}
|
|
13443
13460
|
|
|
@@ -13452,7 +13469,7 @@ function getContainingBlock(element) {
|
|
|
13452
13469
|
|
|
13453
13470
|
if (isIE && isHTMLElement(element)) {
|
|
13454
13471
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
13455
|
-
var elementCss = getComputedStyle(element);
|
|
13472
|
+
var elementCss = getComputedStyle$1(element);
|
|
13456
13473
|
|
|
13457
13474
|
if (elementCss.position === 'fixed') {
|
|
13458
13475
|
return null;
|
|
@@ -13462,7 +13479,7 @@ function getContainingBlock(element) {
|
|
|
13462
13479
|
var currentNode = getParentNode(element);
|
|
13463
13480
|
|
|
13464
13481
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
13465
|
-
var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
13482
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
13466
13483
|
// create a containing block.
|
|
13467
13484
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
13468
13485
|
|
|
@@ -13482,11 +13499,11 @@ function getOffsetParent(element) {
|
|
|
13482
13499
|
var window = getWindow(element);
|
|
13483
13500
|
var offsetParent = getTrueOffsetParent(element);
|
|
13484
13501
|
|
|
13485
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
|
|
13502
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
13486
13503
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
13487
13504
|
}
|
|
13488
13505
|
|
|
13489
|
-
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
|
|
13506
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
13490
13507
|
return window;
|
|
13491
13508
|
}
|
|
13492
13509
|
|
|
@@ -13664,7 +13681,7 @@ function mapToStyles(_ref2) {
|
|
|
13664
13681
|
if (offsetParent === getWindow(popper)) {
|
|
13665
13682
|
offsetParent = getDocumentElement(popper);
|
|
13666
13683
|
|
|
13667
|
-
if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
|
|
13684
|
+
if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
|
|
13668
13685
|
heightProp = 'scrollHeight';
|
|
13669
13686
|
widthProp = 'scrollWidth';
|
|
13670
13687
|
}
|
|
@@ -13893,7 +13910,7 @@ function getDocumentRect(element) {
|
|
|
13893
13910
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
13894
13911
|
var y = -winScroll.scrollTop;
|
|
13895
13912
|
|
|
13896
|
-
if (getComputedStyle(body || html).direction === 'rtl') {
|
|
13913
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
13897
13914
|
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
13898
13915
|
}
|
|
13899
13916
|
|
|
@@ -13907,7 +13924,7 @@ function getDocumentRect(element) {
|
|
|
13907
13924
|
|
|
13908
13925
|
function isScrollParent(element) {
|
|
13909
13926
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
13910
|
-
var _getComputedStyle = getComputedStyle(element),
|
|
13927
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
13911
13928
|
overflow = _getComputedStyle.overflow,
|
|
13912
13929
|
overflowX = _getComputedStyle.overflowX,
|
|
13913
13930
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -13982,7 +13999,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
13982
13999
|
|
|
13983
14000
|
function getClippingParents(element) {
|
|
13984
14001
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
13985
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
|
|
14002
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
13986
14003
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
13987
14004
|
|
|
13988
14005
|
if (!isElement(clipperElement)) {
|
|
@@ -16176,7 +16193,7 @@ function getDaysDiff(date1, date2) {
|
|
|
16176
16193
|
}
|
|
16177
16194
|
|
|
16178
16195
|
const HEADING_LEVEL$6 = 2;
|
|
16179
|
-
const TEXT$
|
|
16196
|
+
const TEXT$e = {
|
|
16180
16197
|
nextMonth: "Next month",
|
|
16181
16198
|
prevMonth: "Previous month"
|
|
16182
16199
|
};
|
|
@@ -16191,11 +16208,11 @@ class CalciteDatePicker {
|
|
|
16191
16208
|
/** Localized string for "previous month" (used for aria label)
|
|
16192
16209
|
* @default "Previous month"
|
|
16193
16210
|
*/
|
|
16194
|
-
this.intlPrevMonth = TEXT$
|
|
16211
|
+
this.intlPrevMonth = TEXT$e.prevMonth;
|
|
16195
16212
|
/** Localized string for "next month" (used for aria label)
|
|
16196
16213
|
* @default "Next month"
|
|
16197
16214
|
*/
|
|
16198
|
-
this.intlNextMonth = TEXT$
|
|
16215
|
+
this.intlNextMonth = TEXT$e.nextMonth;
|
|
16199
16216
|
/** BCP 47 language tag for desired language and country format */
|
|
16200
16217
|
this.locale = document.documentElement.lang || "en";
|
|
16201
16218
|
/** specify the scale of the date picker */
|
|
@@ -17841,7 +17858,7 @@ const CSS$w = {
|
|
|
17841
17858
|
searchIcon: "search-icon",
|
|
17842
17859
|
clearButton: "clear-button"
|
|
17843
17860
|
};
|
|
17844
|
-
const TEXT$
|
|
17861
|
+
const TEXT$d = {
|
|
17845
17862
|
filterLabel: "Filter",
|
|
17846
17863
|
clear: "Clear filter"
|
|
17847
17864
|
};
|
|
@@ -17955,9 +17972,9 @@ class CalciteFilter {
|
|
|
17955
17972
|
render() {
|
|
17956
17973
|
const rtl = getElementDir(this.el) === "rtl";
|
|
17957
17974
|
const { disabled } = this;
|
|
17958
|
-
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$w.container }, hAsync("label", { class: rtl ? CSS_UTILITY.rtl : null }, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$
|
|
17975
|
+
return (hAsync(Fragment, null, disabled ? hAsync("calcite-scrim", null) : null, hAsync("div", { class: CSS$w.container }, hAsync("label", { class: rtl ? CSS_UTILITY.rtl : null }, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$d.filterLabel, class: rtl ? CSS_UTILITY.rtl : null, disabled: this.disabled, icon: ICONS$8.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
17959
17976
|
this.textInput = el;
|
|
17960
|
-
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$
|
|
17977
|
+
}, type: "text", value: this.value })), this.value ? (hAsync("button", { "aria-label": this.intlClear || TEXT$d.clear, class: CSS$w.clearButton, onClick: this.clear }, hAsync("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
17961
17978
|
}
|
|
17962
17979
|
get el() { return getElement(this); }
|
|
17963
17980
|
static get watchers() { return {
|
|
@@ -18513,7 +18530,7 @@ const CSS$s = {
|
|
|
18513
18530
|
enableEditingButton: "enable-editing-button",
|
|
18514
18531
|
controlsWrapper: "controls-wrapper"
|
|
18515
18532
|
};
|
|
18516
|
-
const TEXT$
|
|
18533
|
+
const TEXT$c = {
|
|
18517
18534
|
intlEnablingEditing: "Click to edit",
|
|
18518
18535
|
intlCancelEditing: "Cancel",
|
|
18519
18536
|
intlConfirmChanges: "Save"
|
|
@@ -18546,15 +18563,15 @@ class CalciteInlineEditable {
|
|
|
18546
18563
|
/** specify text to be user for the enable editing button's aria-label, defaults to `Click to edit`
|
|
18547
18564
|
* @default "Click to edit"
|
|
18548
18565
|
*/
|
|
18549
|
-
this.intlEnableEditing = TEXT$
|
|
18566
|
+
this.intlEnableEditing = TEXT$c.intlEnablingEditing;
|
|
18550
18567
|
/** specify text to be user for the cancel editing button's aria-label, defaults to `Cancel`
|
|
18551
18568
|
* @default "Cancel"
|
|
18552
18569
|
*/
|
|
18553
|
-
this.intlCancelEditing = TEXT$
|
|
18570
|
+
this.intlCancelEditing = TEXT$c.intlCancelEditing;
|
|
18554
18571
|
/** specify text to be user for the confirm changes button's aria-label, defaults to `Save`
|
|
18555
18572
|
* @default "Save"
|
|
18556
18573
|
*/
|
|
18557
|
-
this.intlConfirmChanges = TEXT$
|
|
18574
|
+
this.intlConfirmChanges = TEXT$c.intlConfirmChanges;
|
|
18558
18575
|
this.transitionEnd = (event) => {
|
|
18559
18576
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
18560
18577
|
this.calciteInlineEditableEditingCancel.emit(event);
|
|
@@ -18786,7 +18803,7 @@ class CalciteInput {
|
|
|
18786
18803
|
* string to override English loading text
|
|
18787
18804
|
* @default "Loading"
|
|
18788
18805
|
*/
|
|
18789
|
-
this.intlLoading = TEXT$
|
|
18806
|
+
this.intlLoading = TEXT$q.loading;
|
|
18790
18807
|
/** flip the icon in rtl */
|
|
18791
18808
|
this.iconFlipRtl = false;
|
|
18792
18809
|
/** specify if the input is in loading state */
|
|
@@ -18944,12 +18961,13 @@ class CalciteInput {
|
|
|
18944
18961
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
18945
18962
|
const valueNudgeDelayInMs = 100;
|
|
18946
18963
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
18947
|
-
let
|
|
18964
|
+
let firstValueNudge = true;
|
|
18948
18965
|
this.nudgeNumberValueIntervalId = setInterval(() => {
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
18966
|
+
if (firstValueNudge) {
|
|
18967
|
+
firstValueNudge = false;
|
|
18968
|
+
return;
|
|
18969
|
+
}
|
|
18970
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
18953
18971
|
}, valueNudgeDelayInMs);
|
|
18954
18972
|
};
|
|
18955
18973
|
this.numberButtonMouseUpAndMouseOutHandler = () => {
|
|
@@ -19094,17 +19112,18 @@ class CalciteInput {
|
|
|
19094
19112
|
this.setFocus();
|
|
19095
19113
|
}
|
|
19096
19114
|
incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
|
|
19097
|
-
const value = this
|
|
19115
|
+
const { value } = this;
|
|
19098
19116
|
const inputStep = this.step === "any" ? 1 : Math.abs(this.step || 1);
|
|
19099
19117
|
const inputVal = value && value !== "" ? parseFloat(value) : 0;
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19118
|
+
const adjustment = direction === "up" ? 1 : -1;
|
|
19119
|
+
const nudgedValue = inputVal + inputStep * adjustment;
|
|
19120
|
+
const finalValue = (typeof inputMin === "number" && !isNaN(inputMin) && nudgedValue < inputMin) ||
|
|
19121
|
+
(typeof inputMax === "number" && !isNaN(inputMax) && nudgedValue > inputMax)
|
|
19122
|
+
? inputVal
|
|
19123
|
+
: nudgedValue;
|
|
19124
|
+
const inputValPlaces = decimalPlaces(inputVal);
|
|
19125
|
+
const inputStepPlaces = decimalPlaces(inputStep);
|
|
19126
|
+
this.setValue(finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces)), nativeEvent, true);
|
|
19108
19127
|
}
|
|
19109
19128
|
onFormReset() {
|
|
19110
19129
|
this.setValue(this.defaultValue);
|
|
@@ -19256,11 +19275,11 @@ class CalciteInputDatePicker {
|
|
|
19256
19275
|
/** Localized string for "previous month" (used for aria label)
|
|
19257
19276
|
* @default "Previous month"
|
|
19258
19277
|
*/
|
|
19259
|
-
this.intlPrevMonth = TEXT$
|
|
19278
|
+
this.intlPrevMonth = TEXT$e.prevMonth;
|
|
19260
19279
|
/** Localized string for "next month" (used for aria label)
|
|
19261
19280
|
* @default "Next month"
|
|
19262
19281
|
*/
|
|
19263
|
-
this.intlNextMonth = TEXT$
|
|
19282
|
+
this.intlNextMonth = TEXT$e.nextMonth;
|
|
19264
19283
|
/** BCP 47 language tag for desired language and country format */
|
|
19265
19284
|
this.locale = document.documentElement.lang || "en";
|
|
19266
19285
|
/** specify the scale of the date picker */
|
|
@@ -20616,7 +20635,7 @@ const SLOTS$e = {
|
|
|
20616
20635
|
secondary: "secondary",
|
|
20617
20636
|
primary: "primary"
|
|
20618
20637
|
};
|
|
20619
|
-
const TEXT$
|
|
20638
|
+
const TEXT$b = {
|
|
20620
20639
|
close: "Close"
|
|
20621
20640
|
};
|
|
20622
20641
|
|
|
@@ -20654,7 +20673,7 @@ class CalciteModal {
|
|
|
20654
20673
|
/** Disables the closing of the Modal when clicked outside. */
|
|
20655
20674
|
this.disableOutsideClose = false;
|
|
20656
20675
|
/** Aria label for the close button */
|
|
20657
|
-
this.intlClose = TEXT$
|
|
20676
|
+
this.intlClose = TEXT$b.close;
|
|
20658
20677
|
/** Flag to disable the default close on escape behavior */
|
|
20659
20678
|
this.disableEscape = false;
|
|
20660
20679
|
/** specify the scale of modal, defaults to m */
|
|
@@ -20879,7 +20898,7 @@ class CalciteModal {
|
|
|
20879
20898
|
}; }
|
|
20880
20899
|
}
|
|
20881
20900
|
|
|
20882
|
-
const TEXT$
|
|
20901
|
+
const TEXT$a = {
|
|
20883
20902
|
close: "Close"
|
|
20884
20903
|
};
|
|
20885
20904
|
const SLOTS$d = {
|
|
@@ -20928,7 +20947,7 @@ class CalciteNotice {
|
|
|
20928
20947
|
/** String for the close button.
|
|
20929
20948
|
* @default "Close"
|
|
20930
20949
|
*/
|
|
20931
|
-
this.intlClose = TEXT$
|
|
20950
|
+
this.intlClose = TEXT$a.close;
|
|
20932
20951
|
/** specify the scale of the notice, defaults to m */
|
|
20933
20952
|
this.scale = "m";
|
|
20934
20953
|
/** specify the width of the notice, defaults to auto */
|
|
@@ -21151,7 +21170,7 @@ const CSS$k = {
|
|
|
21151
21170
|
ellipsisStart: "ellipsis--start",
|
|
21152
21171
|
ellipsisEnd: "ellipsis--end"
|
|
21153
21172
|
};
|
|
21154
|
-
const TEXT$
|
|
21173
|
+
const TEXT$9 = {
|
|
21155
21174
|
nextLabel: "Next",
|
|
21156
21175
|
previousLabel: "Previous"
|
|
21157
21176
|
};
|
|
@@ -21178,11 +21197,11 @@ class CalcitePagination {
|
|
|
21178
21197
|
/** Used as an accessible label (aria-label) for the next button
|
|
21179
21198
|
* @default "Next"
|
|
21180
21199
|
*/
|
|
21181
|
-
this.textLabelNext = TEXT$
|
|
21200
|
+
this.textLabelNext = TEXT$9.nextLabel;
|
|
21182
21201
|
/** Used as an accessible label (aria-label) of the previous button
|
|
21183
21202
|
* @default "Previous"
|
|
21184
21203
|
*/
|
|
21185
|
-
this.textLabelPrevious = TEXT$
|
|
21204
|
+
this.textLabelPrevious = TEXT$9.previousLabel;
|
|
21186
21205
|
/** The scale of the pagination */
|
|
21187
21206
|
this.scale = "m";
|
|
21188
21207
|
this.previousClicked = () => {
|
|
@@ -21359,7 +21378,7 @@ const SLOTS$c = {
|
|
|
21359
21378
|
footer: "footer",
|
|
21360
21379
|
footerActions: "footer-actions"
|
|
21361
21380
|
};
|
|
21362
|
-
const TEXT$
|
|
21381
|
+
const TEXT$8 = {
|
|
21363
21382
|
back: "Back",
|
|
21364
21383
|
close: "Close",
|
|
21365
21384
|
open: "Open",
|
|
@@ -21473,7 +21492,7 @@ class CalcitePanel {
|
|
|
21473
21492
|
const { el } = this;
|
|
21474
21493
|
const rtl = getElementDir(el) === "rtl";
|
|
21475
21494
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
21476
|
-
const label = intlBack || TEXT$
|
|
21495
|
+
const label = intlBack || TEXT$8.back;
|
|
21477
21496
|
const icon = rtl ? ICONS$5.backRight : ICONS$5.backLeft;
|
|
21478
21497
|
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$j.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$c.headerActionsStart, text: label })) : null;
|
|
21479
21498
|
}
|
|
@@ -21496,7 +21515,7 @@ class CalcitePanel {
|
|
|
21496
21515
|
}
|
|
21497
21516
|
renderHeaderActionsEnd() {
|
|
21498
21517
|
const { dismiss, dismissible, el, intlClose } = this;
|
|
21499
|
-
const text = intlClose || TEXT$
|
|
21518
|
+
const text = intlClose || TEXT$8.close;
|
|
21500
21519
|
const dismissibleNode = dismissible ? (hAsync("calcite-action", { "aria-label": text, icon: ICONS$5.close, onClick: dismiss, ref: this.setDismissRef, text: text })) : null;
|
|
21501
21520
|
const slotNode = hAsync("slot", { name: SLOTS$c.headerActionsEnd });
|
|
21502
21521
|
const hasEndActions = getSlotted(el, SLOTS$c.headerActionsEnd);
|
|
@@ -21505,7 +21524,7 @@ class CalcitePanel {
|
|
|
21505
21524
|
renderMenu() {
|
|
21506
21525
|
const { el, intlOptions, menuOpen } = this;
|
|
21507
21526
|
const hasMenuItems = getSlotted(el, SLOTS$c.headerMenuActions);
|
|
21508
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$
|
|
21527
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT$8.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$5.menu, slot: SLOTS$p.trigger, text: intlOptions || TEXT$8.options }), hAsync("slot", { name: SLOTS$c.headerMenuActions }))) : null;
|
|
21509
21528
|
}
|
|
21510
21529
|
renderHeaderNode() {
|
|
21511
21530
|
const { el, showBackButton } = this;
|
|
@@ -22096,7 +22115,7 @@ const SLOTS$9 = {
|
|
|
22096
22115
|
actionsEnd: "actions-end",
|
|
22097
22116
|
actionsStart: "actions-start"
|
|
22098
22117
|
};
|
|
22099
|
-
const TEXT$
|
|
22118
|
+
const TEXT$7 = {
|
|
22100
22119
|
remove: "Remove"
|
|
22101
22120
|
};
|
|
22102
22121
|
|
|
@@ -22142,7 +22161,7 @@ class CalcitePickListItem {
|
|
|
22142
22161
|
* Used as an accessible label (aria-label) for the "remove item" action. Only applicable if removable is true.
|
|
22143
22162
|
* @default "Remove"
|
|
22144
22163
|
*/
|
|
22145
|
-
this.intlRemove = TEXT$
|
|
22164
|
+
this.intlRemove = TEXT$7.remove;
|
|
22146
22165
|
// --------------------------------------------------------------------------
|
|
22147
22166
|
//
|
|
22148
22167
|
// Private Methods
|
|
@@ -22285,7 +22304,7 @@ const CSS$f = {
|
|
|
22285
22304
|
headerContent: "header-content",
|
|
22286
22305
|
heading: "heading"
|
|
22287
22306
|
};
|
|
22288
|
-
const TEXT$
|
|
22307
|
+
const TEXT$6 = {
|
|
22289
22308
|
close: "Close"
|
|
22290
22309
|
};
|
|
22291
22310
|
const POPOVER_REFERENCE = "data-calcite-popover-reference";
|
|
@@ -22348,7 +22367,7 @@ class CalcitePopover {
|
|
|
22348
22367
|
/** Text for close button.
|
|
22349
22368
|
* @default "Close"
|
|
22350
22369
|
*/
|
|
22351
|
-
this.intlClose = TEXT$
|
|
22370
|
+
this.intlClose = TEXT$6.close;
|
|
22352
22371
|
this.guid = `calcite-popover-${guid()}`;
|
|
22353
22372
|
this.activeTransitionProp = "opacity";
|
|
22354
22373
|
// --------------------------------------------------------------------------
|
|
@@ -22808,11 +22827,7 @@ class CalciteRadioButton {
|
|
|
22808
22827
|
//
|
|
22809
22828
|
//--------------------------------------------------------------------------
|
|
22810
22829
|
this.selectItem = (items, selectedIndex) => {
|
|
22811
|
-
items.
|
|
22812
|
-
const selected = index === selectedIndex;
|
|
22813
|
-
item.checked = selected;
|
|
22814
|
-
item.focused = selected;
|
|
22815
|
-
});
|
|
22830
|
+
items[selectedIndex].click();
|
|
22816
22831
|
};
|
|
22817
22832
|
this.queryButtons = () => {
|
|
22818
22833
|
return Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((radioButton) => radioButton.name === this.name);
|
|
@@ -22827,8 +22842,8 @@ class CalciteRadioButton {
|
|
|
22827
22842
|
}
|
|
22828
22843
|
this.uncheckAllRadioButtonsInGroup();
|
|
22829
22844
|
this.checked = true;
|
|
22830
|
-
this.focused = true;
|
|
22831
22845
|
this.calciteRadioButtonChange.emit();
|
|
22846
|
+
this.setFocus();
|
|
22832
22847
|
};
|
|
22833
22848
|
this.clickHandler = () => {
|
|
22834
22849
|
this.check();
|
|
@@ -22989,7 +23004,7 @@ class CalciteRadioButton {
|
|
|
22989
23004
|
}
|
|
22990
23005
|
componentDidLoad() {
|
|
22991
23006
|
if (this.focused) {
|
|
22992
|
-
this.
|
|
23007
|
+
this.setFocus();
|
|
22993
23008
|
}
|
|
22994
23009
|
}
|
|
22995
23010
|
disconnectedCallback() {
|
|
@@ -23463,7 +23478,7 @@ class CalciteRadioGroupItem {
|
|
|
23463
23478
|
}; }
|
|
23464
23479
|
}
|
|
23465
23480
|
|
|
23466
|
-
const TEXT$
|
|
23481
|
+
const TEXT$5 = {
|
|
23467
23482
|
rating: "Rating",
|
|
23468
23483
|
stars: "Stars: ${num}"
|
|
23469
23484
|
};
|
|
@@ -23492,11 +23507,11 @@ class CalciteRating {
|
|
|
23492
23507
|
/** Localized string for "Rating" (used for aria label)
|
|
23493
23508
|
* @default "Rating"
|
|
23494
23509
|
*/
|
|
23495
|
-
this.intlRating = TEXT$
|
|
23510
|
+
this.intlRating = TEXT$5.rating;
|
|
23496
23511
|
/** Localized string for labelling each star, `${num}` in the string will be replaced by the number
|
|
23497
23512
|
* @default "Stars: ${num}"
|
|
23498
23513
|
*/
|
|
23499
|
-
this.intlStars = TEXT$
|
|
23514
|
+
this.intlStars = TEXT$5.stars;
|
|
23500
23515
|
/**
|
|
23501
23516
|
* When true, makes the component required for form-submission.
|
|
23502
23517
|
*
|
|
@@ -23606,7 +23621,7 @@ const CSS$c = {
|
|
|
23606
23621
|
scrim: "scrim",
|
|
23607
23622
|
content: "content"
|
|
23608
23623
|
};
|
|
23609
|
-
const TEXT$
|
|
23624
|
+
const TEXT$4 = {
|
|
23610
23625
|
loading: "Loading"
|
|
23611
23626
|
};
|
|
23612
23627
|
|
|
@@ -23626,7 +23641,7 @@ class CalciteScrim {
|
|
|
23626
23641
|
/** string to override English loading text
|
|
23627
23642
|
* @default "Loading"
|
|
23628
23643
|
*/
|
|
23629
|
-
this.intlLoading = TEXT$
|
|
23644
|
+
this.intlLoading = TEXT$4.loading;
|
|
23630
23645
|
/**
|
|
23631
23646
|
* Determines if the component will have the loader overlay.
|
|
23632
23647
|
* Otherwise, will render opaque disabled state.
|
|
@@ -24050,14 +24065,18 @@ const CSS$8 = {
|
|
|
24050
24065
|
content: "content",
|
|
24051
24066
|
contentHeader: "content__header",
|
|
24052
24067
|
contentBody: "content__body",
|
|
24053
|
-
contentDetached: "content--detached"
|
|
24068
|
+
contentDetached: "content--detached",
|
|
24069
|
+
separator: "separator"
|
|
24054
24070
|
};
|
|
24055
24071
|
const SLOTS$5 = {
|
|
24056
24072
|
actionBar: "action-bar",
|
|
24057
24073
|
header: "header"
|
|
24058
24074
|
};
|
|
24075
|
+
const TEXT$3 = {
|
|
24076
|
+
resize: "Resize"
|
|
24077
|
+
};
|
|
24059
24078
|
|
|
24060
|
-
const calciteShellPanelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-shell-panel:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-shell-panel{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-shell-panel{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-shell-panel{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-shell-panel{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-shell-panel{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-shell-panel:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-shell-panel-h{display:none}/*!@:host*/.sc-calcite-shell-panel-h{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}/*!@.container*/.container.sc-calcite-shell-panel{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@.container **/.container.sc-calcite-shell-panel *.sc-calcite-shell-panel{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@::slotted(calcite-panel),\n::slotted(calcite-flow)*/.sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-s>calcite-flow{-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}/*!@::slotted(.calcite-match-height)*/.sc-calcite-shell-panel-s>.calcite-match-height{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}/*!@.content*/.content.sc-calcite-shell-panel{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}/*!@.content__header*/.content__header.sc-calcite-shell-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}/*!@.content__body*/.content__body.sc-calcite-shell-panel{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}/*!@:host([width-scale=s]) .content*/[width-scale=s].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}/*!@:host([width-scale=m]) .content*/[width-scale=m].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}/*!@:host([width-scale=l]) .content*/[width-scale=l].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}/*!@:host([detached-height-scale=s]) .content--detached*/[detached-height-scale=s].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:40vh}/*!@:host([detached-height-scale=m]) .content--detached*/[detached-height-scale=m].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:60vh}/*!@:host([detached-height-scale=l]) .content--detached*/[detached-height-scale=l].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:80vh}/*!@.content--detached*/.content--detached.sc-calcite-shell-panel{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}/*!@.content--detached ::slotted(calcite-panel),\n.content--detached ::slotted(calcite-flow)*/.content--detached .sc-calcite-shell-panel-s>calcite-panel,.content--detached .sc-calcite-shell-panel-s>calcite-flow{max-height:unset}/*!@:host([position=start]) .content--detached ::slotted(calcite-panel),\n:host([position=start]) .content--detached ::slotted(calcite-flow),\n:host([position=end]) .content--detached ::slotted(calcite-panel),\n:host([position=end]) .content--detached ::slotted(calcite-flow)*/.sc-calcite-shell-panel-h[position=start] .content--detached .sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-h[position=start] .content--detached .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=end] .content--detached .sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-h[position=end] .content--detached .sc-calcite-shell-panel-s>calcite-flow{border-style:none}/*!@.content[hidden]*/.content[hidden].sc-calcite-shell-panel{display:none}/*!@slot[name=action-bar]::slotted(calcite-action-bar),\n.content ::slotted(calcite-flow),\n.content ::slotted(calcite-panel)*/slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.content .sc-calcite-shell-panel-s>calcite-flow,.content .sc-calcite-shell-panel-s>calcite-panel{border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}/*!@:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),\n:host([position=start]) .content ::slotted(calcite-flow),\n:host([position=start]) .content ::slotted(calcite-panel)*/.sc-calcite-shell-panel-h[position=start] slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.sc-calcite-shell-panel-h[position=start] .content .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=start] .content .sc-calcite-shell-panel-s>calcite-panel{-webkit-border-start:none;border-inline-start:none}/*!@:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),\n:host([position=end]) .content ::slotted(calcite-flow),\n:host([position=end]) .content ::slotted(calcite-panel)*/.sc-calcite-shell-panel-h[position=end] slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.sc-calcite-shell-panel-h[position=end] .content .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=end] .content .sc-calcite-shell-panel-s>calcite-panel{-webkit-border-end:none;border-inline-end:none}";
|
|
24079
|
+
const calciteShellPanelCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-shell-panel:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-shell-panel{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-shell-panel{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-shell-panel{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-shell-panel{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-shell-panel{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-shell-panel:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-shell-panel-h{display:none}/*!@:host*/.sc-calcite-shell-panel-h{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}/*!@.container*/.container.sc-calcite-shell-panel{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@.container **/.container.sc-calcite-shell-panel *.sc-calcite-shell-panel{-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:host(:hover) .separator:not(:hover):not(:focus),\n:host(:focus-within) .separator:not(:hover):not(:focus)*/.sc-calcite-shell-panel-h:hover .separator.sc-calcite-shell-panel:not(:hover):not(:focus),.sc-calcite-shell-panel-h:focus-within .separator.sc-calcite-shell-panel:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}/*!@.separator*/.separator.sc-calcite-shell-panel{position:absolute;background-color:transparent;bottom:0;display:-ms-flexbox;display:flex;height:100%;opacity:0;pointer-events:auto;top:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;width:0.125rem;z-index:10;cursor:col-resize;outline:none}/*!@.separator:hover*/.separator.sc-calcite-shell-panel:hover{opacity:1;background-color:var(--calcite-ui-border-2)}/*!@.separator:focus*/.separator.sc-calcite-shell-panel:focus{background-color:var(--calcite-ui-brand);opacity:1}/*!@:host([position=start]) .separator*/[position=start].sc-calcite-shell-panel-h .separator.sc-calcite-shell-panel{inset-inline-end:-2px}/*!@:host([position=end]) .separator*/[position=end].sc-calcite-shell-panel-h .separator.sc-calcite-shell-panel{inset-inline-start:-2px}/*!@::slotted(calcite-panel),\n::slotted(calcite-flow)*/.sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-s>calcite-flow{-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}/*!@::slotted(.calcite-match-height)*/.sc-calcite-shell-panel-s>.calcite-match-height{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}/*!@.content*/.content.sc-calcite-shell-panel{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}/*!@.content__header*/.content__header.sc-calcite-shell-panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}/*!@.content__body*/.content__body.sc-calcite-shell-panel{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}/*!@:host([width-scale=s]) .content*/[width-scale=s].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}/*!@:host([width-scale=m]) .content*/[width-scale=m].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}/*!@:host([width-scale=l]) .content*/[width-scale=l].sc-calcite-shell-panel-h .content.sc-calcite-shell-panel{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}/*!@:host([detached-height-scale=s]) .content--detached*/[detached-height-scale=s].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:40vh}/*!@:host([detached-height-scale=m]) .content--detached*/[detached-height-scale=m].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:60vh}/*!@:host([detached-height-scale=l]) .content--detached*/[detached-height-scale=l].sc-calcite-shell-panel-h .content--detached.sc-calcite-shell-panel{--calcite-shell-panel-detached-max-height:80vh}/*!@.content--detached*/.content--detached.sc-calcite-shell-panel{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}/*!@.content--detached ::slotted(calcite-panel),\n.content--detached ::slotted(calcite-flow)*/.content--detached .sc-calcite-shell-panel-s>calcite-panel,.content--detached .sc-calcite-shell-panel-s>calcite-flow{max-height:unset}/*!@:host([position=start]) .content--detached ::slotted(calcite-panel),\n:host([position=start]) .content--detached ::slotted(calcite-flow),\n:host([position=end]) .content--detached ::slotted(calcite-panel),\n:host([position=end]) .content--detached ::slotted(calcite-flow)*/.sc-calcite-shell-panel-h[position=start] .content--detached .sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-h[position=start] .content--detached .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=end] .content--detached .sc-calcite-shell-panel-s>calcite-panel,.sc-calcite-shell-panel-h[position=end] .content--detached .sc-calcite-shell-panel-s>calcite-flow{border-style:none}/*!@.content[hidden]*/.content[hidden].sc-calcite-shell-panel{display:none}/*!@slot[name=action-bar]::slotted(calcite-action-bar),\n.content ::slotted(calcite-flow),\n.content ::slotted(calcite-panel)*/slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.content .sc-calcite-shell-panel-s>calcite-flow,.content .sc-calcite-shell-panel-s>calcite-panel{border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}/*!@:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),\n:host([position=start]) .content ::slotted(calcite-flow),\n:host([position=start]) .content ::slotted(calcite-panel)*/.sc-calcite-shell-panel-h[position=start] slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.sc-calcite-shell-panel-h[position=start] .content .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=start] .content .sc-calcite-shell-panel-s>calcite-panel{-webkit-border-start:none;border-inline-start:none}/*!@:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),\n:host([position=end]) .content ::slotted(calcite-flow),\n:host([position=end]) .content ::slotted(calcite-panel)*/.sc-calcite-shell-panel-h[position=end] slot[name=action-bar].sc-calcite-shell-panel-s>calcite-action-bar,.sc-calcite-shell-panel-h[position=end] .content .sc-calcite-shell-panel-s>calcite-flow,.sc-calcite-shell-panel-h[position=end] .content .sc-calcite-shell-panel-s>calcite-panel{-webkit-border-end:none;border-inline-end:none}";
|
|
24061
24080
|
|
|
24062
24081
|
/**
|
|
24063
24082
|
* @slot - A slot for adding content to the shell panel.
|
|
@@ -24088,10 +24107,121 @@ class CalciteShellPanel {
|
|
|
24088
24107
|
* This sets width of the content area.
|
|
24089
24108
|
*/
|
|
24090
24109
|
this.widthScale = "m";
|
|
24110
|
+
/**
|
|
24111
|
+
* Accessible label for resize separator.
|
|
24112
|
+
* @default "Resize"
|
|
24113
|
+
*/
|
|
24114
|
+
this.intlResize = TEXT$3.resize;
|
|
24115
|
+
/**
|
|
24116
|
+
* This property makes the content area resizable if the calcite-shell-panel is not 'detached'.
|
|
24117
|
+
*/
|
|
24118
|
+
this.resizable = false;
|
|
24119
|
+
this.contentWidth = null;
|
|
24120
|
+
this.initialContentWidth = null;
|
|
24121
|
+
this.initialClientX = null;
|
|
24122
|
+
this.contentWidthMax = null;
|
|
24123
|
+
this.contentWidthMin = null;
|
|
24124
|
+
this.step = 1;
|
|
24125
|
+
this.stepMultiplier = 10;
|
|
24126
|
+
this.storeContentEl = (contentEl) => {
|
|
24127
|
+
this.contentEl = contentEl;
|
|
24128
|
+
};
|
|
24129
|
+
this.getKeyAdjustedWidth = (event) => {
|
|
24130
|
+
const { key } = event;
|
|
24131
|
+
const { step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
|
|
24132
|
+
const multipliedStep = step * stepMultiplier;
|
|
24133
|
+
const MOVEMENT_KEYS = [
|
|
24134
|
+
"ArrowUp",
|
|
24135
|
+
"ArrowDown",
|
|
24136
|
+
"ArrowLeft",
|
|
24137
|
+
"ArrowRight",
|
|
24138
|
+
"Home",
|
|
24139
|
+
"End",
|
|
24140
|
+
"PageUp",
|
|
24141
|
+
"PageDown"
|
|
24142
|
+
];
|
|
24143
|
+
if (MOVEMENT_KEYS.indexOf(key) > -1) {
|
|
24144
|
+
event.preventDefault();
|
|
24145
|
+
}
|
|
24146
|
+
const increaseKeys = key === "ArrowUp" || (position === "end" ? key === "ArrowLeft" : key === "ArrowRight");
|
|
24147
|
+
if (increaseKeys) {
|
|
24148
|
+
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
24149
|
+
return initialContentWidth + stepValue;
|
|
24150
|
+
}
|
|
24151
|
+
const decreaseKeys = key === "ArrowDown" || (position === "end" ? key === "ArrowRight" : key === "ArrowLeft");
|
|
24152
|
+
if (decreaseKeys) {
|
|
24153
|
+
const stepValue = event.shiftKey ? multipliedStep : step;
|
|
24154
|
+
return initialContentWidth - stepValue;
|
|
24155
|
+
}
|
|
24156
|
+
if (typeof contentWidthMin === "number" && key === "Home") {
|
|
24157
|
+
return contentWidthMin;
|
|
24158
|
+
}
|
|
24159
|
+
if (typeof contentWidthMax === "number" && key === "End") {
|
|
24160
|
+
return contentWidthMax;
|
|
24161
|
+
}
|
|
24162
|
+
if (key === "PageDown") {
|
|
24163
|
+
return initialContentWidth - multipliedStep;
|
|
24164
|
+
}
|
|
24165
|
+
if (key === "PageUp") {
|
|
24166
|
+
return initialContentWidth + multipliedStep;
|
|
24167
|
+
}
|
|
24168
|
+
return null;
|
|
24169
|
+
};
|
|
24170
|
+
this.separatorKeyDown = (event) => {
|
|
24171
|
+
this.setInitialContentWidth();
|
|
24172
|
+
const width = this.getKeyAdjustedWidth(event);
|
|
24173
|
+
if (typeof width === "number") {
|
|
24174
|
+
this.setContentWidth(width);
|
|
24175
|
+
}
|
|
24176
|
+
};
|
|
24177
|
+
this.separatorPointerMove = (event) => {
|
|
24178
|
+
event.preventDefault();
|
|
24179
|
+
const { initialContentWidth, position, initialClientX } = this;
|
|
24180
|
+
const offset = event.clientX - initialClientX;
|
|
24181
|
+
this.setContentWidth(position === "end" ? initialContentWidth - offset : initialContentWidth + offset);
|
|
24182
|
+
};
|
|
24183
|
+
this.separatorPointerUp = (event) => {
|
|
24184
|
+
event.preventDefault();
|
|
24185
|
+
document.removeEventListener("pointerup", this.separatorPointerUp);
|
|
24186
|
+
document.removeEventListener("pointermove", this.separatorPointerMove);
|
|
24187
|
+
};
|
|
24188
|
+
this.setInitialContentWidth = () => {
|
|
24189
|
+
var _a;
|
|
24190
|
+
this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
|
|
24191
|
+
};
|
|
24192
|
+
this.separatorPointerDown = (event) => {
|
|
24193
|
+
event.preventDefault();
|
|
24194
|
+
const { separatorEl } = this;
|
|
24195
|
+
separatorEl && document.activeElement !== separatorEl && separatorEl.focus();
|
|
24196
|
+
this.setInitialContentWidth();
|
|
24197
|
+
this.initialClientX = event.clientX;
|
|
24198
|
+
document.addEventListener("pointerup", this.separatorPointerUp);
|
|
24199
|
+
document.addEventListener("pointermove", this.separatorPointerMove);
|
|
24200
|
+
};
|
|
24201
|
+
this.connectSeparator = (separatorEl) => {
|
|
24202
|
+
this.disconnectSeparator();
|
|
24203
|
+
this.separatorEl = separatorEl;
|
|
24204
|
+
separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
|
|
24205
|
+
};
|
|
24206
|
+
this.disconnectSeparator = () => {
|
|
24207
|
+
var _a;
|
|
24208
|
+
(_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
24209
|
+
};
|
|
24091
24210
|
}
|
|
24092
24211
|
watchHandler() {
|
|
24093
24212
|
this.calciteShellPanelToggle.emit();
|
|
24094
24213
|
}
|
|
24214
|
+
//--------------------------------------------------------------------------
|
|
24215
|
+
//
|
|
24216
|
+
// Lifecycle
|
|
24217
|
+
//
|
|
24218
|
+
//--------------------------------------------------------------------------
|
|
24219
|
+
disconnectedCallback() {
|
|
24220
|
+
this.disconnectSeparator();
|
|
24221
|
+
}
|
|
24222
|
+
componentDidLoad() {
|
|
24223
|
+
this.updateAriaValues();
|
|
24224
|
+
}
|
|
24095
24225
|
// --------------------------------------------------------------------------
|
|
24096
24226
|
//
|
|
24097
24227
|
// Render Methods
|
|
@@ -24103,15 +24233,50 @@ class CalciteShellPanel {
|
|
|
24103
24233
|
return hasHeader ? (hAsync("div", { class: CSS$8.contentHeader }, hAsync("slot", { name: SLOTS$5.header }))) : null;
|
|
24104
24234
|
}
|
|
24105
24235
|
render() {
|
|
24106
|
-
const { collapsed, detached, position } = this;
|
|
24107
|
-
const
|
|
24236
|
+
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
24237
|
+
const allowResizing = !detached && resizable;
|
|
24238
|
+
const contentNode = (hAsync("div", { class: { [CSS$8.content]: true, [CSS$8.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$8.contentBody }, hAsync("slot", null))));
|
|
24239
|
+
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$8.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
24108
24240
|
const actionBarNode = hAsync("slot", { name: SLOTS$5.actionBar });
|
|
24109
|
-
const mainNodes = [actionBarNode, contentNode];
|
|
24241
|
+
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
24110
24242
|
if (position === "end") {
|
|
24111
24243
|
mainNodes.reverse();
|
|
24112
24244
|
}
|
|
24113
24245
|
return hAsync("div", { class: { [CSS$8.container]: true } }, mainNodes);
|
|
24114
24246
|
}
|
|
24247
|
+
// --------------------------------------------------------------------------
|
|
24248
|
+
//
|
|
24249
|
+
// private Methods
|
|
24250
|
+
//
|
|
24251
|
+
// --------------------------------------------------------------------------
|
|
24252
|
+
setContentWidth(width) {
|
|
24253
|
+
const { contentWidthMax, contentWidthMin } = this;
|
|
24254
|
+
const roundedWidth = Math.round(width);
|
|
24255
|
+
this.contentWidth =
|
|
24256
|
+
typeof contentWidthMax === "number" && typeof contentWidthMin === "number"
|
|
24257
|
+
? clamp(roundedWidth, contentWidthMin, contentWidthMax)
|
|
24258
|
+
: roundedWidth;
|
|
24259
|
+
}
|
|
24260
|
+
updateAriaValues() {
|
|
24261
|
+
const { contentEl } = this;
|
|
24262
|
+
const computedStyle = contentEl && getComputedStyle(contentEl);
|
|
24263
|
+
if (!computedStyle) {
|
|
24264
|
+
return;
|
|
24265
|
+
}
|
|
24266
|
+
const max = parseInt(computedStyle.getPropertyValue("max-width"), 10);
|
|
24267
|
+
const min = parseInt(computedStyle.getPropertyValue("min-width"), 10);
|
|
24268
|
+
const valueNow = parseInt(computedStyle.getPropertyValue("width"), 10);
|
|
24269
|
+
if (typeof valueNow === "number" && !isNaN(valueNow)) {
|
|
24270
|
+
this.initialContentWidth = valueNow;
|
|
24271
|
+
}
|
|
24272
|
+
if (typeof max === "number" && !isNaN(max)) {
|
|
24273
|
+
this.contentWidthMax = max;
|
|
24274
|
+
}
|
|
24275
|
+
if (typeof min === "number" && !isNaN(min)) {
|
|
24276
|
+
this.contentWidthMin = min;
|
|
24277
|
+
}
|
|
24278
|
+
forceUpdate$1(this);
|
|
24279
|
+
}
|
|
24115
24280
|
get el() { return getElement(this); }
|
|
24116
24281
|
static get watchers() { return {
|
|
24117
24282
|
"collapsed": ["watchHandler"]
|
|
@@ -24125,15 +24290,18 @@ class CalciteShellPanel {
|
|
|
24125
24290
|
"detached": [516],
|
|
24126
24291
|
"detachedHeightScale": [513, "detached-height-scale"],
|
|
24127
24292
|
"widthScale": [513, "width-scale"],
|
|
24128
|
-
"position": [513]
|
|
24293
|
+
"position": [513],
|
|
24294
|
+
"intlResize": [1, "intl-resize"],
|
|
24295
|
+
"resizable": [516],
|
|
24296
|
+
"contentWidth": [32]
|
|
24129
24297
|
},
|
|
24130
24298
|
"$listeners$": undefined,
|
|
24131
24299
|
"$lazyBundleId$": "-",
|
|
24132
|
-
"$attrsToReflect$": [["collapsed", "collapsed"], ["detached", "detached"], ["detachedHeightScale", "detached-height-scale"], ["widthScale", "width-scale"], ["position", "position"]]
|
|
24300
|
+
"$attrsToReflect$": [["collapsed", "collapsed"], ["detached", "detached"], ["detachedHeightScale", "detached-height-scale"], ["widthScale", "width-scale"], ["position", "position"], ["resizable", "resizable"]]
|
|
24133
24301
|
}; }
|
|
24134
24302
|
}
|
|
24135
24303
|
|
|
24136
|
-
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-slider:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-slider{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-slider{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-slider{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-slider{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-slider{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-slider:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-slider-h{display:none}/*!@:host*/.sc-calcite-slider-h{display:block}/*!@.container*/.container.sc-calcite-slider{display:block;position:relative;padding:7px 0;margin:7px 0.5rem}/*!@:host([disabled])*/[disabled].sc-calcite-slider-h{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}/*!@:host([disabled]) .track__range,\n:host([disabled]) .tick--active*/[disabled].sc-calcite-slider-h .track__range.sc-calcite-slider,[disabled].sc-calcite-slider-h .tick--active.sc-calcite-slider{background-color:var(--calcite-ui-text-3)}/*!@:host([disabled]) .graph .graph-path--highlight*/[disabled].sc-calcite-slider-h .graph.sc-calcite-slider .graph-path--highlight.sc-calcite-slider{fill:var(--calcite-ui-text-3)}/*!@:host([label-handles]) .container,\n:host([precise]:not([precise=false])) .container*/[label-handles].sc-calcite-slider-h .container.sc-calcite-slider,[precise].sc-calcite-slider-h:not([precise=false]) .container.sc-calcite-slider{margin-top:21px}/*!@:host([label-ticks]),\n:host([precise]:not([precise=false])) .container--range*/[label-ticks].sc-calcite-slider-h,[precise].sc-calcite-slider-h:not([precise=false]) .container--range.sc-calcite-slider{margin-bottom:21px}/*!@:host([precise]:not([precise=false])[label-handles]) .container*/[precise].sc-calcite-slider-h:not([precise=false])[label-handles] .container.sc-calcite-slider{margin-top:35px}/*!@:host([precise]:not([precise=false])[label-handles]) .container--range*/[precise].sc-calcite-slider-h:not([precise=false])[label-handles] .container--range.sc-calcite-slider{margin-bottom:35px}/*!@.thumb*/.thumb.sc-calcite-slider{position:absolute;border-style:none;background-color:transparent;cursor:pointer;outline:2px solid transparent;outline-offset:2px;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:inherit;z-index:2;-webkit-transform:translate(7px, -8px);transform:translate(7px, -8px)}/*!@.thumb .handle__label*/.thumb.sc-calcite-slider .handle__label.sc-calcite-slider{font-size:var(--calcite-font-size--2);font-weight:500;line-height:1;color:var(--calcite-ui-text-2);margin-bottom:5px}/*!@.thumb .handle__label.static, .thumb .handle__label.transformed*/.thumb.sc-calcite-slider .handle__label.static.sc-calcite-slider,.thumb.sc-calcite-slider .handle__label.transformed.sc-calcite-slider{opacity:0;position:absolute;top:0;bottom:0}/*!@.thumb .handle__label.hyphen::after*/.thumb.sc-calcite-slider .handle__label.hyphen.sc-calcite-slider::after{content:\"—\";display:inline-block;width:1em}/*!@.thumb .handle*/.thumb.sc-calcite-slider .handle.sc-calcite-slider{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;height:14px;width:14px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease}/*!@.thumb .handle-extension*/.thumb.sc-calcite-slider .handle-extension.sc-calcite-slider{width:2px;height:7px;background-color:var(--calcite-ui-text-3)}/*!@.thumb:hover .handle*/.thumb.sc-calcite-slider:hover .handle.sc-calcite-slider{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}/*!@.thumb:hover .handle-extension*/.thumb.sc-calcite-slider:hover .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb:focus .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:2px}/*!@.thumb:focus .handle-extension*/.thumb.sc-calcite-slider:focus .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb--minValue*/.thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-7px, -8px);transform:translate(-7px, -8px)}/*!@:host([label-handles]) .thumb*/[label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -25px);transform:translate(50%, -25px)}/*!@:host([label-handles]) .thumb--minValue*/[label-handles].sc-calcite-slider-h .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -25px);transform:translate(-50%, -25px)}/*!@:host([has-histogram][label-handles]) .thumb*/[has-histogram][label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -8px);transform:translate(50%, -8px)}/*!@:host([has-histogram][label-handles]) .thumb .handle__label*/[has-histogram][label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:unset;margin-top:5px}/*!@:host([has-histogram][label-handles]) .thumb--minValue*/[has-histogram][label-handles].sc-calcite-slider-h .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -8px);transform:translate(-50%, -8px)}/*!@:host([precise]:not([precise=false])) .thumb*/[precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(7px, -21px);transform:translate(7px, -21px)}/*!@:host([precise]:not([precise=false])) .thumb--minValue*/[precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-7px, -2px);transform:translate(-7px, -2px)}/*!@:host([precise]:not([precise=false])) .thumb--minValue .handle__label*/[precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:unset;margin-top:5px}/*!@:host([has-histogram][precise]:not([precise=false])) .thumb*/[has-histogram][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(7px, -2px);transform:translate(7px, -2px)}/*!@:host([has-histogram][precise]:not([precise=false])) .thumb--minValue*/[has-histogram][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}/*!@:host([ticks][precise]:not([precise=false])) .thumb*/[ticks][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(7px, -20px);transform:translate(7px, -20px)}/*!@:host([ticks][precise]:not([precise=false])) .thumb--minValue*/[ticks][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-7px, -3px);transform:translate(-7px, -3px)}/*!@:host([has-histogram][ticks][precise]:not([precise=false])) .thumb*/[has-histogram][ticks][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(7px, -3px);transform:translate(7px, -3px)}/*!@:host([has-histogram][ticks][precise]:not([precise=false])) .thumb--minValue*/[has-histogram][ticks][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}/*!@:host([label-handles][precise]:not([precise=false])) .thumb*/[label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -38px);transform:translate(50%, -38px)}/*!@:host([label-handles][precise]:not([precise=false])) .thumb--minValue*/[label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}/*!@:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb*/[has-histogram][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -2px);transform:translate(50%, -2px)}/*!@:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb--minValue*/[has-histogram][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}/*!@:host([ticks][label-handles][precise]:not([precise=false])) .thumb*/[ticks][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -37px);transform:translate(50%, -37px)}/*!@:host([ticks][label-handles][precise]:not([precise=false])) .thumb--minValue*/[ticks][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}/*!@:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb*/[has-histogram][ticks][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -3px);transform:translate(50%, -3px)}/*!@:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb--minValue*/[has-histogram][ticks][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}/*!@.thumb:focus,\n.thumb--active*/.thumb.sc-calcite-slider:focus,.thumb--active.sc-calcite-slider{z-index:3}/*!@.thumb:focus .handle,\n.thumb--active .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider,.thumb--active.sc-calcite-slider .handle.sc-calcite-slider{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}/*!@.thumb:hover.thumb--precise:after,\n.thumb:focus.thumb--precise:after,\n.thumb--active.thumb--precise:after*/.thumb.sc-calcite-slider:hover.thumb--precise:after,.thumb.sc-calcite-slider:focus.thumb--precise:after,.thumb--active.thumb--precise.sc-calcite-slider:after{background-color:var(--calcite-ui-brand)}/*!@.track*/.track.sc-calcite-slider{height:2px;border-radius:0;z-index:1;background-color:var(--calcite-ui-border-2);-webkit-transition:all 250ms ease-in;transition:all 250ms ease-in;position:relative}/*!@.track__range*/.track__range.sc-calcite-slider{position:absolute;top:0;height:2px;background-color:var(--calcite-ui-brand)}/*!@.container--range .track__range:hover*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:hover{cursor:ew-resize}/*!@.container--range .track__range:after*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:after{content:\"\";position:absolute;top:-5px;width:100%;height:14px}/*!@.tick*/.tick.sc-calcite-slider{position:absolute;top:-2px;width:2px;height:4px;left:var(--calcite-ui-border-1-offset);margin-left:-2px;border:1px solid var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-border-1)}/*!@.tick--active*/.tick--active.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.tick__label*/.tick__label.sc-calcite-slider{position:absolute;font-size:var(--calcite-font-size--2);font-weight:500;color:var(--calcite-ui-text-2);width:4em;margin:14px -2em;text-align:center;display:block;pointer-events:none}/*!@.tick__label--min*/.tick__label--min.sc-calcite-slider{left:0;margin:14px -3px;text-align:left;-webkit-transition:opacity 150ms;transition:opacity 150ms}/*!@.tick__label--max*/.tick__label--max.sc-calcite-slider{left:unset;right:0;margin:14px -3px;text-align:right;-webkit-transition:opacity 50ms;transition:opacity 50ms}/*!@:host([has-histogram][label-handles]) .tick__label--min,\n:host([has-histogram][label-handles]) .tick__label--max*/[has-histogram][label-handles].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][label-handles].sc-calcite-slider-h .tick__label--max.sc-calcite-slider{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}/*!@:host([has-histogram][precise]:not([precise=false])) .tick__label--min,\n:host([has-histogram][precise]:not([precise=false])) .tick__label--max*/[has-histogram][precise].sc-calcite-slider-h:not([precise=false]) .tick__label--min.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h:not([precise=false]) .tick__label--max.sc-calcite-slider{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}/*!@.graph*/.graph.sc-calcite-slider{color:var(--calcite-ui-foreground-3)}/*!@:host([mirrored]:not([has-histogram])) .tick__label--min*/[mirrored].sc-calcite-slider-h:not([has-histogram]) .tick__label--min.sc-calcite-slider{right:0;left:unset;text-align:right}/*!@:host([mirrored]:not([has-histogram])) .tick__label--max*/[mirrored].sc-calcite-slider-h:not([has-histogram]) .tick__label--max.sc-calcite-slider{right:unset;left:0;text-align:left}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-slider-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}";
|
|
24304
|
+
const calciteSliderCss = "@charset \"UTF-8\";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-slider:root{--calcite-animation-timing:300ms}/*!@.calcite-animate*/.calcite-animate.sc-calcite-slider{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-slider{-webkit-animation-name:in;animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-slider{-webkit-animation-name:in-down;animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-slider{-webkit-animation-name:in-up;animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-slider{-webkit-animation-name:in-scale;animation-name:in-scale}/*!@:root*/.sc-calcite-slider:root{--calcite-popper-transition:150ms ease-in-out}/*!@:host([hidden])*/[hidden].sc-calcite-slider-h{display:none}/*!@:host*/.sc-calcite-slider-h{display:block}/*!@.container*/.container.sc-calcite-slider{display:block;position:relative;padding:7px 0;margin:7px 0.5rem}/*!@:host([disabled])*/[disabled].sc-calcite-slider-h{opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}/*!@:host([disabled]) .track__range,\n:host([disabled]) .tick--active*/[disabled].sc-calcite-slider-h .track__range.sc-calcite-slider,[disabled].sc-calcite-slider-h .tick--active.sc-calcite-slider{background-color:var(--calcite-ui-text-3)}/*!@:host([disabled]) .graph .graph-path--highlight*/[disabled].sc-calcite-slider-h .graph.sc-calcite-slider .graph-path--highlight.sc-calcite-slider{fill:var(--calcite-ui-text-3)}/*!@:host([label-handles]) .container,\n:host([precise]:not([precise=false])) .container*/[label-handles].sc-calcite-slider-h .container.sc-calcite-slider,[precise].sc-calcite-slider-h:not([precise=false]) .container.sc-calcite-slider{margin-top:21px}/*!@:host([label-ticks]),\n:host([precise]:not([precise=false])) .container--range*/[label-ticks].sc-calcite-slider-h,[precise].sc-calcite-slider-h:not([precise=false]) .container--range.sc-calcite-slider{margin-bottom:21px}/*!@:host([precise]:not([precise=false])[label-handles]) .container*/[precise].sc-calcite-slider-h:not([precise=false])[label-handles] .container.sc-calcite-slider{margin-top:35px}/*!@:host([precise]:not([precise=false])[label-handles]) .container--range*/[precise].sc-calcite-slider-h:not([precise=false])[label-handles] .container--range.sc-calcite-slider{margin-bottom:35px}/*!@.thumb*/.thumb.sc-calcite-slider{position:absolute;border-style:none;background-color:transparent;cursor:pointer;outline:2px solid transparent;outline-offset:2px;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:inherit;z-index:2;-webkit-transform:translate(7px, -8px);transform:translate(7px, -8px)}/*!@.thumb .handle__label*/.thumb.sc-calcite-slider .handle__label.sc-calcite-slider{font-size:var(--calcite-font-size--2);font-weight:500;line-height:1;color:var(--calcite-ui-text-2);margin-bottom:5px}/*!@.thumb .handle__label.static, .thumb .handle__label.transformed*/.thumb.sc-calcite-slider .handle__label.static.sc-calcite-slider,.thumb.sc-calcite-slider .handle__label.transformed.sc-calcite-slider{opacity:0;position:absolute;top:0;bottom:0}/*!@.thumb .handle__label.hyphen::after*/.thumb.sc-calcite-slider .handle__label.hyphen.sc-calcite-slider::after{content:\"—\";display:inline-block;width:1em}/*!@.thumb .handle*/.thumb.sc-calcite-slider .handle.sc-calcite-slider{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;height:14px;width:14px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease}/*!@.thumb .handle-extension*/.thumb.sc-calcite-slider .handle-extension.sc-calcite-slider{width:2px;height:7px;background-color:var(--calcite-ui-text-3)}/*!@.thumb:hover .handle*/.thumb.sc-calcite-slider:hover .handle.sc-calcite-slider{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}/*!@.thumb:hover .handle-extension*/.thumb.sc-calcite-slider:hover .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb:focus .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:2px}/*!@.thumb:focus .handle-extension*/.thumb.sc-calcite-slider:focus .handle-extension.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.thumb--minValue*/.thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-7px, -8px);transform:translate(-7px, -8px)}/*!@:host([label-handles]) .thumb*/[label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -25px);transform:translate(50%, -25px)}/*!@:host([label-handles]) .thumb--minValue*/[label-handles].sc-calcite-slider-h .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -25px);transform:translate(-50%, -25px)}/*!@:host([has-histogram][label-handles]) .thumb*/[has-histogram][label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -8px);transform:translate(50%, -8px)}/*!@:host([has-histogram][label-handles]) .thumb .handle__label*/[has-histogram][label-handles].sc-calcite-slider-h .thumb.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:unset;margin-top:5px}/*!@:host([has-histogram][label-handles]) .thumb--minValue*/[has-histogram][label-handles].sc-calcite-slider-h .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -8px);transform:translate(-50%, -8px)}/*!@:host([precise]:not([precise=false])) .thumb*/[precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(7px, -21px);transform:translate(7px, -21px)}/*!@:host([precise]:not([precise=false])) .thumb--minValue*/[precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-7px, -2px);transform:translate(-7px, -2px)}/*!@:host([precise]:not([precise=false])) .thumb--minValue .handle__label*/[precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider .handle__label.sc-calcite-slider{margin-bottom:unset;margin-top:5px}/*!@:host([has-histogram][precise]:not([precise=false])) .thumb*/[has-histogram][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(7px, -2px);transform:translate(7px, -2px)}/*!@:host([has-histogram][precise]:not([precise=false])) .thumb--minValue*/[has-histogram][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}/*!@:host([ticks][precise]:not([precise=false])) .thumb*/[ticks][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(7px, -20px);transform:translate(7px, -20px)}/*!@:host([ticks][precise]:not([precise=false])) .thumb--minValue*/[ticks][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-7px, -3px);transform:translate(-7px, -3px)}/*!@:host([has-histogram][ticks][precise]:not([precise=false])) .thumb*/[has-histogram][ticks][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(7px, -3px);transform:translate(7px, -3px)}/*!@:host([has-histogram][ticks][precise]:not([precise=false])) .thumb--minValue*/[has-histogram][ticks][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}/*!@:host([label-handles][precise]:not([precise=false])) .thumb*/[label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -38px);transform:translate(50%, -38px)}/*!@:host([label-handles][precise]:not([precise=false])) .thumb--minValue*/[label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}/*!@:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb*/[has-histogram][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -2px);transform:translate(50%, -2px)}/*!@:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb--minValue*/[has-histogram][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}/*!@:host([ticks][label-handles][precise]:not([precise=false])) .thumb*/[ticks][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -37px);transform:translate(50%, -37px)}/*!@:host([ticks][label-handles][precise]:not([precise=false])) .thumb--minValue*/[ticks][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}/*!@:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb*/[has-histogram][ticks][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb.sc-calcite-slider{-webkit-transform:translate(50%, -3px);transform:translate(50%, -3px)}/*!@:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb--minValue*/[has-histogram][ticks][label-handles][precise].sc-calcite-slider-h:not([precise=false]) .thumb--minValue.sc-calcite-slider{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}/*!@.thumb:focus,\n.thumb--active*/.thumb.sc-calcite-slider:focus,.thumb--active.sc-calcite-slider{z-index:3}/*!@.thumb:focus .handle,\n.thumb--active .handle*/.thumb.sc-calcite-slider:focus .handle.sc-calcite-slider,.thumb--active.sc-calcite-slider .handle.sc-calcite-slider{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}/*!@.thumb:hover.thumb--precise:after,\n.thumb:focus.thumb--precise:after,\n.thumb--active.thumb--precise:after*/.thumb.sc-calcite-slider:hover.thumb--precise:after,.thumb.sc-calcite-slider:focus.thumb--precise:after,.thumb--active.thumb--precise.sc-calcite-slider:after{background-color:var(--calcite-ui-brand)}/*!@.track*/.track.sc-calcite-slider{height:2px;border-radius:0;z-index:1;background-color:var(--calcite-ui-border-2);-webkit-transition:all 250ms ease-in;transition:all 250ms ease-in;position:relative}/*!@.track__range*/.track__range.sc-calcite-slider{position:absolute;top:0;height:2px;background-color:var(--calcite-ui-brand)}/*!@.container--range .track__range:hover*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:hover{cursor:ew-resize}/*!@.container--range .track__range:after*/.container--range.sc-calcite-slider .track__range.sc-calcite-slider:after{content:\"\";position:absolute;top:-5px;width:100%;height:14px}/*!@.tick*/.tick.sc-calcite-slider{position:absolute;top:-2px;width:2px;height:4px;left:var(--calcite-ui-border-1-offset);margin-left:-2px;border:1px solid var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-border-1);pointer-events:none}/*!@.tick--active*/.tick--active.sc-calcite-slider{background-color:var(--calcite-ui-brand)}/*!@.tick__label*/.tick__label.sc-calcite-slider{position:absolute;font-size:var(--calcite-font-size--2);font-weight:500;color:var(--calcite-ui-text-2);width:4em;margin:14px -2em;text-align:center;display:block;pointer-events:none}/*!@.tick__label--min*/.tick__label--min.sc-calcite-slider{left:0;margin:14px -3px;text-align:left;-webkit-transition:opacity 150ms;transition:opacity 150ms}/*!@.tick__label--max*/.tick__label--max.sc-calcite-slider{left:unset;right:0;margin:14px -3px;text-align:right;-webkit-transition:opacity 50ms;transition:opacity 50ms}/*!@:host([has-histogram][label-handles]) .tick__label--min,\n:host([has-histogram][label-handles]) .tick__label--max*/[has-histogram][label-handles].sc-calcite-slider-h .tick__label--min.sc-calcite-slider,[has-histogram][label-handles].sc-calcite-slider-h .tick__label--max.sc-calcite-slider{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}/*!@:host([has-histogram][precise]:not([precise=false])) .tick__label--min,\n:host([has-histogram][precise]:not([precise=false])) .tick__label--max*/[has-histogram][precise].sc-calcite-slider-h:not([precise=false]) .tick__label--min.sc-calcite-slider,[has-histogram][precise].sc-calcite-slider-h:not([precise=false]) .tick__label--max.sc-calcite-slider{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}/*!@.graph*/.graph.sc-calcite-slider{color:var(--calcite-ui-foreground-3)}/*!@:host([mirrored]:not([has-histogram])) .tick__label--min*/[mirrored].sc-calcite-slider-h:not([has-histogram]) .tick__label--min.sc-calcite-slider{right:0;left:unset;text-align:right}/*!@:host([mirrored]:not([has-histogram])) .tick__label--max*/[mirrored].sc-calcite-slider-h:not([has-histogram]) .tick__label--max.sc-calcite-slider{right:unset;left:0;text-align:left}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-slider-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}";
|
|
24137
24305
|
|
|
24138
24306
|
class CalciteSlider {
|
|
24139
24307
|
constructor(hostRef) {
|
|
@@ -24209,11 +24377,11 @@ class CalciteSlider {
|
|
|
24209
24377
|
}
|
|
24210
24378
|
}
|
|
24211
24379
|
};
|
|
24212
|
-
this.dragEnd = () => {
|
|
24380
|
+
this.dragEnd = (event) => {
|
|
24213
24381
|
document.removeEventListener("pointermove", this.dragUpdate);
|
|
24214
24382
|
document.removeEventListener("pointerup", this.dragEnd);
|
|
24215
24383
|
document.removeEventListener("pointercancel", this.dragEnd);
|
|
24216
|
-
this.focusActiveHandle();
|
|
24384
|
+
this.focusActiveHandle(event.clientX);
|
|
24217
24385
|
if (this.lastDragPropValue != this[this.dragProp]) {
|
|
24218
24386
|
this.emitChange();
|
|
24219
24387
|
}
|
|
@@ -24482,8 +24650,8 @@ class CalciteSlider {
|
|
|
24482
24650
|
event.preventDefault();
|
|
24483
24651
|
this.setValue(activeProp, this.clamp(adjustment, activeProp));
|
|
24484
24652
|
}
|
|
24485
|
-
clickHandler() {
|
|
24486
|
-
this.focusActiveHandle();
|
|
24653
|
+
clickHandler(event) {
|
|
24654
|
+
this.focusActiveHandle(event.clientX);
|
|
24487
24655
|
}
|
|
24488
24656
|
pointerDownHandler(event) {
|
|
24489
24657
|
const x = event.clientX || event.pageX;
|
|
@@ -24554,16 +24722,16 @@ class CalciteSlider {
|
|
|
24554
24722
|
document.addEventListener("pointerup", this.dragEnd);
|
|
24555
24723
|
document.addEventListener("pointercancel", this.dragEnd);
|
|
24556
24724
|
}
|
|
24557
|
-
focusActiveHandle() {
|
|
24725
|
+
focusActiveHandle(valueX) {
|
|
24558
24726
|
switch (this.dragProp) {
|
|
24559
|
-
default:
|
|
24560
|
-
case "maxValue":
|
|
24561
|
-
this.maxHandle.focus();
|
|
24562
|
-
break;
|
|
24563
24727
|
case "minValue":
|
|
24564
24728
|
this.minHandle.focus();
|
|
24565
24729
|
break;
|
|
24730
|
+
case "maxValue":
|
|
24731
|
+
this.maxHandle.focus();
|
|
24732
|
+
break;
|
|
24566
24733
|
case "minMaxValue":
|
|
24734
|
+
this.getClosestHandle(valueX).focus();
|
|
24567
24735
|
break;
|
|
24568
24736
|
}
|
|
24569
24737
|
}
|
|
@@ -24634,6 +24802,14 @@ class CalciteSlider {
|
|
|
24634
24802
|
}
|
|
24635
24803
|
return num;
|
|
24636
24804
|
}
|
|
24805
|
+
getClosestHandle(valueX) {
|
|
24806
|
+
return this.getDistanceX(this.maxHandle, valueX) > this.getDistanceX(this.minHandle, valueX)
|
|
24807
|
+
? this.minHandle
|
|
24808
|
+
: this.maxHandle;
|
|
24809
|
+
}
|
|
24810
|
+
getDistanceX(el, valueX) {
|
|
24811
|
+
return Math.abs(el.getBoundingClientRect().left - valueX);
|
|
24812
|
+
}
|
|
24637
24813
|
getFontSizeForElement(element) {
|
|
24638
24814
|
return Number(window.getComputedStyle(element).getPropertyValue("font-size").match(/\d+/)[0]);
|
|
24639
24815
|
}
|
|
@@ -29488,7 +29664,7 @@ class CalciteTileSelect {
|
|
|
29488
29664
|
event.stopPropagation();
|
|
29489
29665
|
this.calciteTileSelectChange.emit();
|
|
29490
29666
|
}
|
|
29491
|
-
|
|
29667
|
+
checkboxFocusBlurHandler(event) {
|
|
29492
29668
|
const checkbox = event.target;
|
|
29493
29669
|
if (checkbox === this.input) {
|
|
29494
29670
|
this.focused = event.detail;
|
|
@@ -29510,7 +29686,7 @@ class CalciteTileSelect {
|
|
|
29510
29686
|
}
|
|
29511
29687
|
event.stopPropagation();
|
|
29512
29688
|
}
|
|
29513
|
-
|
|
29689
|
+
radioButtonFocusBlurHandler(event) {
|
|
29514
29690
|
const radioButton = event.target;
|
|
29515
29691
|
if (radioButton === this.input) {
|
|
29516
29692
|
this.focused = radioButton.focused;
|
|
@@ -29600,7 +29776,7 @@ class CalciteTileSelect {
|
|
|
29600
29776
|
"focused": [32],
|
|
29601
29777
|
"setFocus": [64]
|
|
29602
29778
|
},
|
|
29603
|
-
"$listeners$": [[0, "calciteCheckboxChange", "checkboxChangeHandler"], [0, "calciteInternalCheckboxFocus", "
|
|
29779
|
+
"$listeners$": [[0, "calciteCheckboxChange", "checkboxChangeHandler"], [0, "calciteInternalCheckboxFocus", "checkboxFocusBlurHandler"], [0, "calciteInternalCheckboxBlur", "checkboxFocusBlurHandler"], [0, "calciteRadioButtonChange", "radioButtonChangeHandler"], [0, "calciteInternalRadioButtonCheckedChange", "radioButtonCheckedChangeHandler"], [0, "calciteInternalRadioButtonFocus", "radioButtonFocusBlurHandler"], [0, "calciteInternalRadioButtonBlur", "radioButtonFocusBlurHandler"], [0, "click", "click"], [1, "mouseenter", "mouseenter"], [1, "mouseleave", "mouseleave"]],
|
|
29604
29780
|
"$lazyBundleId$": "-",
|
|
29605
29781
|
"$attrsToReflect$": [["checked", "checked"], ["description", "description"], ["disabled", "disabled"], ["heading", "heading"], ["hidden", "hidden"], ["icon", "icon"], ["name", "name"], ["inputEnabled", "input-enabled"], ["inputAlignment", "input-alignment"], ["type", "type"], ["width", "width"]]
|
|
29606
29782
|
}; }
|