@esri/calcite-components 1.0.0-next.420 → 1.0.0-next.423
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-0ba91238.system.entry.js +5 -0
- package/dist/calcite/p-2692ac43.entry.js +5 -0
- package/dist/calcite/p-5802a565.entry.js +5 -0
- package/dist/calcite/p-58392046.system.entry.js +5 -0
- package/dist/calcite/p-5c637131.entry.js +5 -0
- package/dist/calcite/p-62afcb36.system.js +5 -0
- package/dist/calcite/p-69d5736f.entry.js +5 -0
- package/dist/calcite/p-7fb5fec5.entry.js +5 -0
- package/dist/calcite/p-958600ba.system.entry.js +5 -0
- package/dist/calcite/{p-dd460534.system.entry.js → p-b9a38a28.system.entry.js} +2 -2
- package/dist/calcite/{p-3cdee187.system.entry.js → p-eb3c084f.system.entry.js} +1 -1
- package/dist/calcite/p-ecc31b40.system.entry.js +5 -0
- package/dist/calcite/p-f68725d7.entry.js +5 -0
- package/dist/cjs/calcite-action-bar.cjs.entry.js +4 -11
- package/dist/cjs/calcite-action-pad.cjs.entry.js +3 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +15 -18
- package/dist/cjs/calcite-graph_2.cjs.entry.js +67 -38
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +10 -5
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +6 -1
- 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/action-bar/action-bar.js +4 -11
- package/dist/collection/components/action-pad/action-pad.js +3 -15
- package/dist/collection/components/dropdown/dropdown.js +15 -18
- package/dist/collection/components/input-date-picker/input-date-picker.css +5 -0
- package/dist/collection/components/input-date-picker/input-date-picker.js +35 -4
- package/dist/collection/components/input-time-picker/input-time-picker.js +32 -1
- package/dist/collection/components/slider/slider.js +76 -41
- package/dist/components/calcite-action-bar.js +4 -11
- package/dist/components/calcite-action-pad.js +3 -13
- package/dist/components/calcite-input-date-picker.js +12 -6
- package/dist/components/calcite-input-time-picker.js +7 -1
- package/dist/components/calcite-slider.js +67 -38
- package/dist/components/dropdown.js +15 -18
- package/dist/custom-elements/index.js +107 -88
- package/dist/esm/calcite-action-bar.entry.js +4 -11
- package/dist/esm/calcite-action-pad.entry.js +3 -13
- package/dist/esm/calcite-dropdown_3.entry.js +15 -18
- package/dist/esm/calcite-graph_2.entry.js +67 -38
- package/dist/esm/calcite-input-date-picker.entry.js +11 -6
- package/dist/esm/calcite-input-time-picker_2.entry.js +6 -1
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/extras/docs-json.json +94 -4
- package/dist/types/components/action-bar/action-bar.d.ts +1 -1
- package/dist/types/components/action-pad/action-pad.d.ts +0 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +6 -1
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +6 -0
- package/dist/types/components/slider/slider.d.ts +5 -2
- package/dist/types/components.d.ts +22 -2
- package/hydrate/index.js +110 -89
- package/package.json +14 -14
- package/readme.md +2 -2
- package/dist/calcite/p-03a4f34d.entry.js +0 -5
- package/dist/calcite/p-1b1bca2d.entry.js +0 -5
- package/dist/calcite/p-872e82a6.system.entry.js +0 -5
- package/dist/calcite/p-9e9a106a.system.entry.js +0 -5
- package/dist/calcite/p-a3527241.system.entry.js +0 -5
- package/dist/calcite/p-a38fe099.entry.js +0 -5
- package/dist/calcite/p-c4cb35ba.system.entry.js +0 -5
- package/dist/calcite/p-c5c42405.entry.js +0 -5
- package/dist/calcite/p-cb847074.entry.js +0 -5
- package/dist/calcite/p-e22ab8fa.entry.js +0 -5
- package/dist/calcite/p-fe9380a0.system.js +0 -5
|
@@ -2161,16 +2161,11 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2161
2161
|
this.expandToggleEl = el;
|
|
2162
2162
|
};
|
|
2163
2163
|
}
|
|
2164
|
-
expandHandler(
|
|
2165
|
-
if (!expandDisabled) {
|
|
2166
|
-
toggleChildActionText({ parent: this.el, expanded: this.expanded });
|
|
2167
|
-
}
|
|
2164
|
+
expandHandler() {
|
|
2168
2165
|
this.conditionallyOverflowActions();
|
|
2169
2166
|
}
|
|
2170
2167
|
expandedHandler(expanded) {
|
|
2171
|
-
|
|
2172
|
-
toggleChildActionText({ parent: this.el, expanded });
|
|
2173
|
-
}
|
|
2168
|
+
toggleChildActionText({ parent: this.el, expanded });
|
|
2174
2169
|
this.calciteActionBarToggle.emit();
|
|
2175
2170
|
}
|
|
2176
2171
|
overflowDisabledHandler(overflowActionsDisabled) {
|
|
@@ -2188,10 +2183,8 @@ const ActionBar = class extends HTMLElement$1 {
|
|
|
2188
2183
|
}
|
|
2189
2184
|
connectedCallback() {
|
|
2190
2185
|
var _a, _b;
|
|
2191
|
-
const { el,
|
|
2192
|
-
|
|
2193
|
-
toggleChildActionText({ parent: el, expanded });
|
|
2194
|
-
}
|
|
2186
|
+
const { el, expanded } = this;
|
|
2187
|
+
toggleChildActionText({ parent: el, expanded });
|
|
2195
2188
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, { childList: true, subtree: true });
|
|
2196
2189
|
if (!this.overflowActionsDisabled) {
|
|
2197
2190
|
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
|
|
@@ -2663,15 +2656,8 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2663
2656
|
this.expandToggleEl = el;
|
|
2664
2657
|
};
|
|
2665
2658
|
}
|
|
2666
|
-
expandHandler(expandDisabled) {
|
|
2667
|
-
if (!expandDisabled) {
|
|
2668
|
-
toggleChildActionText({ parent: this.el, expanded: this.expanded });
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
2659
|
expandedHandler(expanded) {
|
|
2672
|
-
|
|
2673
|
-
toggleChildActionText({ parent: this.el, expanded });
|
|
2674
|
-
}
|
|
2660
|
+
toggleChildActionText({ parent: this.el, expanded });
|
|
2675
2661
|
this.calciteActionPadToggle.emit();
|
|
2676
2662
|
}
|
|
2677
2663
|
// --------------------------------------------------------------------------
|
|
@@ -2686,10 +2672,8 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2686
2672
|
disconnectConditionalSlotComponent(this);
|
|
2687
2673
|
}
|
|
2688
2674
|
componentWillLoad() {
|
|
2689
|
-
const { el,
|
|
2690
|
-
|
|
2691
|
-
toggleChildActionText({ parent: el, expanded });
|
|
2692
|
-
}
|
|
2675
|
+
const { el, expanded } = this;
|
|
2676
|
+
toggleChildActionText({ parent: el, expanded });
|
|
2693
2677
|
}
|
|
2694
2678
|
// --------------------------------------------------------------------------
|
|
2695
2679
|
//
|
|
@@ -2722,7 +2706,6 @@ const ActionPad = class extends HTMLElement$1 {
|
|
|
2722
2706
|
}
|
|
2723
2707
|
get el() { return this; }
|
|
2724
2708
|
static get watchers() { return {
|
|
2725
|
-
"expandDisabled": ["expandHandler"],
|
|
2726
2709
|
"expanded": ["expandedHandler"]
|
|
2727
2710
|
}; }
|
|
2728
2711
|
static get style() { return actionPadCss; }
|
|
@@ -11671,25 +11654,22 @@ const Dropdown = class extends HTMLElement$1 {
|
|
|
11671
11654
|
};
|
|
11672
11655
|
this.keyDownHandler = (e) => {
|
|
11673
11656
|
const target = e.target;
|
|
11657
|
+
if (target !== this.referenceEl) {
|
|
11658
|
+
return;
|
|
11659
|
+
}
|
|
11674
11660
|
const key = e.key;
|
|
11675
|
-
if (this.
|
|
11676
|
-
this.
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
this.openCalciteDropdown();
|
|
11688
|
-
break;
|
|
11689
|
-
case "Escape":
|
|
11690
|
-
this.closeCalciteDropdown();
|
|
11691
|
-
break;
|
|
11692
|
-
}
|
|
11661
|
+
if (this.active && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
|
|
11662
|
+
this.closeCalciteDropdown();
|
|
11663
|
+
return;
|
|
11664
|
+
}
|
|
11665
|
+
switch (key) {
|
|
11666
|
+
case " ":
|
|
11667
|
+
case "Enter":
|
|
11668
|
+
this.openCalciteDropdown();
|
|
11669
|
+
break;
|
|
11670
|
+
case "Escape":
|
|
11671
|
+
this.closeCalciteDropdown();
|
|
11672
|
+
break;
|
|
11693
11673
|
}
|
|
11694
11674
|
};
|
|
11695
11675
|
this.focusOnFirstActiveOrFirstItem = () => {
|
|
@@ -13727,7 +13707,7 @@ const Input = class extends HTMLElement$1 {
|
|
|
13727
13707
|
static get style() { return inputCss; }
|
|
13728
13708
|
};
|
|
13729
13709
|
|
|
13730
|
-
const inputDatePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;width:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;position:absolute;left:0px;z-index:10;margin-left:1px;margin-right:1px;background-color:var(--calcite-ui-foreground-1);padding-left:0.625rem;padding-right:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.menu-container--active .menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.menu-container--active .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container--active .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container--active .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container--active .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container--active .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.input .calcite-input__wrapper{margin-top:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{height:0.75rem;width:0.75rem;min-width:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
13710
|
+
const inputDatePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;width:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;position:absolute;left:0px;z-index:10;margin-left:1px;margin-right:1px;background-color:var(--calcite-ui-foreground-1);padding-left:0.625rem;padding-right:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .menu-container{pointer-events:initial;visibility:visible}.menu-container--active .menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.menu-container--active .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container--active .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container--active .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container--active .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container--active .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.input .calcite-input__wrapper{margin-top:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{height:0.75rem;width:0.75rem;min-width:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
13731
13711
|
|
|
13732
13712
|
const InputDatePicker = class extends HTMLElement$1 {
|
|
13733
13713
|
constructor() {
|
|
@@ -13766,6 +13746,11 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13766
13746
|
this.locale = document.documentElement.lang || "en";
|
|
13767
13747
|
/** specify the scale of the date picker */
|
|
13768
13748
|
this.scale = "m";
|
|
13749
|
+
/**
|
|
13750
|
+
* Determines where the date-picker component will be positioned relative to the input.
|
|
13751
|
+
* @default "bottom-leading"
|
|
13752
|
+
*/
|
|
13753
|
+
this.placement = defaultMenuPlacement;
|
|
13769
13754
|
/** Range mode activation */
|
|
13770
13755
|
this.range = false;
|
|
13771
13756
|
/**
|
|
@@ -13918,13 +13903,13 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
13918
13903
|
}
|
|
13919
13904
|
/** Updates the position of the component. */
|
|
13920
13905
|
async reposition() {
|
|
13921
|
-
const { popper, menuEl } = this;
|
|
13906
|
+
const { placement, popper, menuEl } = this;
|
|
13922
13907
|
const modifiers = this.getModifiers();
|
|
13923
13908
|
popper
|
|
13924
13909
|
? await updatePopper({
|
|
13925
13910
|
el: menuEl,
|
|
13926
13911
|
modifiers,
|
|
13927
|
-
placement
|
|
13912
|
+
placement,
|
|
13928
13913
|
popper
|
|
13929
13914
|
})
|
|
13930
13915
|
: this.createPopper();
|
|
@@ -14028,7 +14013,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14028
14013
|
}
|
|
14029
14014
|
createPopper() {
|
|
14030
14015
|
this.destroyPopper();
|
|
14031
|
-
const { menuEl, referenceEl, overlayPositioning } = this;
|
|
14016
|
+
const { menuEl, placement, referenceEl, overlayPositioning } = this;
|
|
14032
14017
|
if (!menuEl || !referenceEl) {
|
|
14033
14018
|
return;
|
|
14034
14019
|
}
|
|
@@ -14037,7 +14022,7 @@ const InputDatePicker = class extends HTMLElement$1 {
|
|
|
14037
14022
|
el: menuEl,
|
|
14038
14023
|
modifiers,
|
|
14039
14024
|
overlayPositioning,
|
|
14040
|
-
placement
|
|
14025
|
+
placement,
|
|
14041
14026
|
referenceEl
|
|
14042
14027
|
});
|
|
14043
14028
|
}
|
|
@@ -14460,6 +14445,11 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14460
14445
|
this.required = false;
|
|
14461
14446
|
/** The scale (size) of the time input */
|
|
14462
14447
|
this.scale = "m";
|
|
14448
|
+
/**
|
|
14449
|
+
* Determines where the popover will be positioned relative to the input.
|
|
14450
|
+
* @see [PopperPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/popper.ts#L25)
|
|
14451
|
+
*/
|
|
14452
|
+
this.placement = "auto";
|
|
14463
14453
|
/** number (seconds) that specifies the granularity that the value must adhere to */
|
|
14464
14454
|
this.step = 60;
|
|
14465
14455
|
/** The selected time in UTC (always 24-hour format) */
|
|
@@ -14633,7 +14623,7 @@ const InputTimePicker = class extends HTMLElement$1 {
|
|
|
14633
14623
|
// --------------------------------------------------------------------------
|
|
14634
14624
|
render() {
|
|
14635
14625
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
14636
|
-
return (h(Host, null, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, referenceElement: this.referenceElementId }, h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), h(HiddenFormInputSlot, { component: this })));
|
|
14626
|
+
return (h(Host, null, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, placement: this.placement, referenceElement: this.referenceElementId }, h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), h(HiddenFormInputSlot, { component: this })));
|
|
14637
14627
|
}
|
|
14638
14628
|
get el() { return this; }
|
|
14639
14629
|
static get watchers() { return {
|
|
@@ -18488,6 +18478,9 @@ const ShellPanel = class extends HTMLElement$1 {
|
|
|
18488
18478
|
|
|
18489
18479
|
const sliderCss = "@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{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle__label.hyphen--wrap{display:-ms-flexbox;display:flex}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);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:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-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 var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-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{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{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,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
18490
18480
|
|
|
18481
|
+
function isRange(value) {
|
|
18482
|
+
return Array.isArray(value);
|
|
18483
|
+
}
|
|
18491
18484
|
const Slider = class extends HTMLElement$1 {
|
|
18492
18485
|
constructor() {
|
|
18493
18486
|
super();
|
|
@@ -18530,13 +18523,12 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18530
18523
|
/** Interval to move on up/down keys */
|
|
18531
18524
|
this.step = 1;
|
|
18532
18525
|
/** Currently selected number (if single select) */
|
|
18533
|
-
this.value =
|
|
18526
|
+
this.value = 0;
|
|
18534
18527
|
/**
|
|
18535
18528
|
* Specify the scale of the slider, defaults to m
|
|
18536
18529
|
*/
|
|
18537
18530
|
this.scale = "m";
|
|
18538
18531
|
this.guid = `calcite-slider-${guid()}`;
|
|
18539
|
-
this.isRange = false;
|
|
18540
18532
|
this.activeProp = "value";
|
|
18541
18533
|
this.minMaxValueRange = null;
|
|
18542
18534
|
this.minValueDragRange = null;
|
|
@@ -18546,7 +18538,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18546
18538
|
event.preventDefault();
|
|
18547
18539
|
if (this.dragProp) {
|
|
18548
18540
|
const value = this.translate(event.clientX || event.pageX);
|
|
18549
|
-
if (this.
|
|
18541
|
+
if (isRange(this.value) && this.dragProp === "minMaxValue") {
|
|
18550
18542
|
if (this.minValueDragRange && this.maxValueDragRange && this.minMaxValueRange) {
|
|
18551
18543
|
const newMinValue = value - this.minValueDragRange;
|
|
18552
18544
|
const newMaxValue = value + this.maxValueDragRange;
|
|
@@ -18592,12 +18584,20 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18592
18584
|
histogramWatcher(newHistogram) {
|
|
18593
18585
|
this.hasHistogram = !!newHistogram;
|
|
18594
18586
|
}
|
|
18587
|
+
valueHandler() {
|
|
18588
|
+
this.setMinMaxFromValue();
|
|
18589
|
+
}
|
|
18590
|
+
minMaxValueHandler() {
|
|
18591
|
+
this.setValueFromMinMax();
|
|
18592
|
+
}
|
|
18595
18593
|
//--------------------------------------------------------------------------
|
|
18596
18594
|
//
|
|
18597
18595
|
// Lifecycle
|
|
18598
18596
|
//
|
|
18599
18597
|
//--------------------------------------------------------------------------
|
|
18600
18598
|
connectedCallback() {
|
|
18599
|
+
this.setMinMaxFromValue();
|
|
18600
|
+
this.setValueFromMinMax();
|
|
18601
18601
|
connectLabel(this);
|
|
18602
18602
|
connectForm(this);
|
|
18603
18603
|
}
|
|
@@ -18607,11 +18607,12 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18607
18607
|
this.removeDragListeners();
|
|
18608
18608
|
}
|
|
18609
18609
|
componentWillLoad() {
|
|
18610
|
-
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
18611
18610
|
this.tickValues = this.generateTickValues();
|
|
18612
|
-
|
|
18611
|
+
if (!isRange(this.value)) {
|
|
18612
|
+
this.value = this.clamp(this.value);
|
|
18613
|
+
}
|
|
18613
18614
|
afterConnectDefaultValueSet(this, this.value);
|
|
18614
|
-
if (this.snap) {
|
|
18615
|
+
if (this.snap && !isRange(this.value)) {
|
|
18615
18616
|
this.value = this.getClosestStep(this.value);
|
|
18616
18617
|
}
|
|
18617
18618
|
if (this.histogram) {
|
|
@@ -18621,9 +18622,9 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18621
18622
|
componentDidRender() {
|
|
18622
18623
|
if (this.labelHandles) {
|
|
18623
18624
|
this.adjustHostObscuredHandleLabel("value");
|
|
18624
|
-
if (this.
|
|
18625
|
+
if (isRange(this.value)) {
|
|
18625
18626
|
this.adjustHostObscuredHandleLabel("minValue");
|
|
18626
|
-
if (!(this.precise &&
|
|
18627
|
+
if (!(this.precise && !this.hasHistogram)) {
|
|
18627
18628
|
this.hyphenateCollidingRangeHandleLabels();
|
|
18628
18629
|
}
|
|
18629
18630
|
}
|
|
@@ -18633,50 +18634,50 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18633
18634
|
}
|
|
18634
18635
|
render() {
|
|
18635
18636
|
const id = this.el.id || this.guid;
|
|
18637
|
+
const maxProp = isRange(this.value) ? "maxValue" : "value";
|
|
18638
|
+
const value = isRange(this.value) ? this.maxValue : this.value;
|
|
18636
18639
|
const min = this.minValue || this.min;
|
|
18637
|
-
const max = this.maxValue || this.value;
|
|
18638
|
-
const maxProp = this.isRange ? "maxValue" : "value";
|
|
18639
|
-
const value = this[maxProp];
|
|
18640
18640
|
const useMinValue = this.shouldUseMinValue();
|
|
18641
18641
|
const minInterval = this.getUnitInterval(useMinValue ? this.minValue : min) * 100;
|
|
18642
|
-
const maxInterval = this.getUnitInterval(
|
|
18642
|
+
const maxInterval = this.getUnitInterval(value) * 100;
|
|
18643
18643
|
const mirror = this.shouldMirror();
|
|
18644
18644
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
18645
18645
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
18646
|
-
const
|
|
18646
|
+
const valueIsRange = isRange(this.value);
|
|
18647
|
+
const handle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
18647
18648
|
thumb: true,
|
|
18648
18649
|
"thumb--value": true,
|
|
18649
18650
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
18650
18651
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" })));
|
|
18651
|
-
const labeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18652
|
+
const labeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
18652
18653
|
thumb: true,
|
|
18653
18654
|
"thumb--value": true,
|
|
18654
18655
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
18655
18656
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value), h("div", { class: "handle" })));
|
|
18656
|
-
const histogramLabeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18657
|
+
const histogramLabeledHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
18657
18658
|
thumb: true,
|
|
18658
18659
|
"thumb--value": true,
|
|
18659
18660
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
18660
18661
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" }), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value)));
|
|
18661
|
-
const preciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18662
|
+
const preciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
18662
18663
|
thumb: true,
|
|
18663
18664
|
"thumb--value": true,
|
|
18664
18665
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
18665
18666
|
"thumb--precise": true
|
|
18666
18667
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle" }), h("div", { class: "handle-extension" })));
|
|
18667
|
-
const histogramPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18668
|
+
const histogramPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
18668
18669
|
thumb: true,
|
|
18669
18670
|
"thumb--value": true,
|
|
18670
18671
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
18671
18672
|
"thumb--precise": true
|
|
18672
18673
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("div", { class: "handle-extension" }), h("div", { class: "handle" })));
|
|
18673
|
-
const labeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18674
|
+
const labeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
18674
18675
|
thumb: true,
|
|
18675
18676
|
"thumb--value": true,
|
|
18676
18677
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
18677
18678
|
"thumb--precise": true
|
|
18678
18679
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.dragStart(maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, h("span", { "aria-hidden": "true", class: "handle__label handle__label--value" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value static" }, value ? value.toLocaleString() : value), h("span", { "aria-hidden": "true", class: "handle__label handle__label--value transformed" }, value ? value.toLocaleString() : value), h("div", { class: "handle" }), h("div", { class: "handle-extension" })));
|
|
18679
|
-
const histogramLabeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label":
|
|
18680
|
+
const histogramLabeledPreciseHandle = (h("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
18680
18681
|
thumb: true,
|
|
18681
18682
|
"thumb--value": true,
|
|
18682
18683
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
@@ -18711,14 +18712,14 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18711
18712
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: () => this.dragStart("minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, h("div", { class: "handle-extension" }), h("div", { class: "handle" }), h("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue" }, this.minValue && this.minValue.toLocaleString()), h("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue static" }, this.minValue && this.minValue.toLocaleString()), h("span", { "aria-hidden": "true", class: "handle__label handle__label--minValue transformed" }, this.minValue && this.minValue.toLocaleString())));
|
|
18712
18713
|
return (h(Host, { id: id, onTouchStart: this.handleTouchStart }, h("div", { class: {
|
|
18713
18714
|
["container"]: true,
|
|
18714
|
-
["container--range"]:
|
|
18715
|
+
["container--range"]: valueIsRange,
|
|
18715
18716
|
[`scale--${this.scale}`]: true
|
|
18716
18717
|
} }, this.renderGraph(), h("div", { class: "track", ref: this.storeTrackRef }, h("div", { class: "track__range", onPointerDown: () => this.dragStart("minMaxValue"), style: {
|
|
18717
18718
|
left: `${mirror ? 100 - maxInterval : minInterval}%`,
|
|
18718
18719
|
right: `${mirror ? minInterval : 100 - maxInterval}%`
|
|
18719
18720
|
} }), h("div", { class: "ticks" }, this.tickValues.map((tick) => {
|
|
18720
18721
|
const tickOffset = `${this.getUnitInterval(tick) * 100}%`;
|
|
18721
|
-
let activeTicks = tick >= min && tick <=
|
|
18722
|
+
let activeTicks = tick >= min && tick <= value;
|
|
18722
18723
|
if (useMinValue) {
|
|
18723
18724
|
activeTicks = tick >= this.minValue && tick <= this.maxValue;
|
|
18724
18725
|
}
|
|
@@ -18729,23 +18730,24 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18729
18730
|
left: mirror ? "" : tickOffset,
|
|
18730
18731
|
right: mirror ? tickOffset : ""
|
|
18731
18732
|
} }, this.renderTickLabel(tick)));
|
|
18732
|
-
}))), h("div", { class: "thumb-container" }, !this.precise && !this.labelHandles &&
|
|
18733
|
+
}))), h("div", { class: "thumb-container" }, !this.precise && !this.labelHandles && valueIsRange && minHandle, !this.hasHistogram &&
|
|
18733
18734
|
!this.precise &&
|
|
18734
18735
|
this.labelHandles &&
|
|
18735
|
-
|
|
18736
|
-
minLabeledHandle, this.precise && !this.labelHandles &&
|
|
18736
|
+
valueIsRange &&
|
|
18737
|
+
minLabeledHandle, this.precise && !this.labelHandles && valueIsRange && minPreciseHandle, this.precise && this.labelHandles && valueIsRange && minLabeledPreciseHandle, this.hasHistogram &&
|
|
18737
18738
|
!this.precise &&
|
|
18738
18739
|
this.labelHandles &&
|
|
18739
|
-
|
|
18740
|
+
valueIsRange &&
|
|
18740
18741
|
minHistogramLabeledHandle, !this.precise && !this.labelHandles && handle, !this.hasHistogram && !this.precise && this.labelHandles && labeledHandle, !this.hasHistogram && this.precise && !this.labelHandles && preciseHandle, this.hasHistogram && this.precise && !this.labelHandles && histogramPreciseHandle, !this.hasHistogram && this.precise && this.labelHandles && labeledPreciseHandle, this.hasHistogram && !this.precise && this.labelHandles && histogramLabeledHandle, this.hasHistogram &&
|
|
18741
18742
|
this.precise &&
|
|
18742
18743
|
this.labelHandles &&
|
|
18743
18744
|
histogramLabeledPreciseHandle, h(HiddenFormInputSlot, { component: this })))));
|
|
18744
18745
|
}
|
|
18745
18746
|
renderGraph() {
|
|
18746
|
-
return this.histogram ? (h("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: this.
|
|
18747
|
+
return this.histogram ? (h("calcite-graph", { class: "graph", colorStops: this.histogramStops, data: this.histogram, highlightMax: isRange(this.value) ? this.maxValue : this.value, highlightMin: isRange(this.value) ? this.minValue : this.min, max: this.max, min: this.min })) : null;
|
|
18747
18748
|
}
|
|
18748
18749
|
renderTickLabel(tick) {
|
|
18750
|
+
const valueIsRange = isRange(this.value);
|
|
18749
18751
|
const isMinTickLabel = tick === this.min;
|
|
18750
18752
|
const isMaxTickLabel = tick === this.max;
|
|
18751
18753
|
const tickLabel = (h("span", { class: {
|
|
@@ -18753,26 +18755,26 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18753
18755
|
"tick__label--min": isMinTickLabel,
|
|
18754
18756
|
"tick__label--max": isMaxTickLabel
|
|
18755
18757
|
} }, tick.toLocaleString()));
|
|
18756
|
-
if (this.labelTicks && !this.hasHistogram && !
|
|
18758
|
+
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
18757
18759
|
return tickLabel;
|
|
18758
18760
|
}
|
|
18759
18761
|
if (this.labelTicks &&
|
|
18760
18762
|
!this.hasHistogram &&
|
|
18761
|
-
|
|
18763
|
+
valueIsRange &&
|
|
18762
18764
|
!this.precise &&
|
|
18763
18765
|
!this.labelHandles) {
|
|
18764
18766
|
return tickLabel;
|
|
18765
18767
|
}
|
|
18766
18768
|
if (this.labelTicks &&
|
|
18767
18769
|
!this.hasHistogram &&
|
|
18768
|
-
|
|
18770
|
+
valueIsRange &&
|
|
18769
18771
|
!this.precise &&
|
|
18770
18772
|
this.labelHandles) {
|
|
18771
18773
|
return tickLabel;
|
|
18772
18774
|
}
|
|
18773
18775
|
if (this.labelTicks &&
|
|
18774
18776
|
!this.hasHistogram &&
|
|
18775
|
-
|
|
18777
|
+
valueIsRange &&
|
|
18776
18778
|
this.precise &&
|
|
18777
18779
|
(isMinTickLabel || isMaxTickLabel)) {
|
|
18778
18780
|
return tickLabel;
|
|
@@ -18856,7 +18858,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18856
18858
|
const x = event.clientX || event.pageX;
|
|
18857
18859
|
const position = this.translate(x);
|
|
18858
18860
|
let prop = "value";
|
|
18859
|
-
if (this.
|
|
18861
|
+
if (isRange(this.value)) {
|
|
18860
18862
|
const inRange = position >= this.minValue && position <= this.maxValue;
|
|
18861
18863
|
if (inRange && this.lastDragProp === "minMaxValue") {
|
|
18862
18864
|
prop = "minMaxValue";
|
|
@@ -18892,6 +18894,19 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18892
18894
|
// Private Methods
|
|
18893
18895
|
//
|
|
18894
18896
|
//--------------------------------------------------------------------------
|
|
18897
|
+
setValueFromMinMax() {
|
|
18898
|
+
const { minValue, maxValue } = this;
|
|
18899
|
+
if (typeof minValue === "number" && typeof maxValue === "number") {
|
|
18900
|
+
this.value = [minValue, maxValue];
|
|
18901
|
+
}
|
|
18902
|
+
}
|
|
18903
|
+
setMinMaxFromValue() {
|
|
18904
|
+
const { value } = this;
|
|
18905
|
+
if (isRange(value)) {
|
|
18906
|
+
this.minValue = value[0];
|
|
18907
|
+
this.maxValue = value[1];
|
|
18908
|
+
}
|
|
18909
|
+
}
|
|
18895
18910
|
onLabelClick() {
|
|
18896
18911
|
this.setFocus();
|
|
18897
18912
|
}
|
|
@@ -18899,7 +18914,7 @@ const Slider = class extends HTMLElement$1 {
|
|
|
18899
18914
|
return this.mirrored && !this.hasHistogram;
|
|
18900
18915
|
}
|
|
18901
18916
|
shouldUseMinValue() {
|
|
18902
|
-
if (!this.
|
|
18917
|
+
if (!isRange(this.value)) {
|
|
18903
18918
|
return false;
|
|
18904
18919
|
}
|
|
18905
18920
|
return ((this.hasHistogram && this.maxValue === 0) || (!this.hasHistogram && this.minValue === 0));
|
|
@@ -19112,19 +19127,20 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19112
19127
|
* Hides bounding tick labels that are obscured by either handle.
|
|
19113
19128
|
*/
|
|
19114
19129
|
hideObscuredBoundingTickLabels() {
|
|
19115
|
-
|
|
19130
|
+
const valueIsRange = isRange(this.value);
|
|
19131
|
+
if (!this.hasHistogram && !valueIsRange && !this.labelHandles && !this.precise) {
|
|
19116
19132
|
return;
|
|
19117
19133
|
}
|
|
19118
|
-
if (!this.hasHistogram && !
|
|
19134
|
+
if (!this.hasHistogram && !valueIsRange && this.labelHandles && !this.precise) {
|
|
19119
19135
|
return;
|
|
19120
19136
|
}
|
|
19121
|
-
if (!this.hasHistogram && !
|
|
19137
|
+
if (!this.hasHistogram && !valueIsRange && !this.labelHandles && this.precise) {
|
|
19122
19138
|
return;
|
|
19123
19139
|
}
|
|
19124
|
-
if (!this.hasHistogram && !
|
|
19140
|
+
if (!this.hasHistogram && !valueIsRange && this.labelHandles && this.precise) {
|
|
19125
19141
|
return;
|
|
19126
19142
|
}
|
|
19127
|
-
if (!this.hasHistogram &&
|
|
19143
|
+
if (!this.hasHistogram && valueIsRange && !this.precise) {
|
|
19128
19144
|
return;
|
|
19129
19145
|
}
|
|
19130
19146
|
if (this.hasHistogram && !this.precise && !this.labelHandles) {
|
|
@@ -19201,7 +19217,10 @@ const Slider = class extends HTMLElement$1 {
|
|
|
19201
19217
|
}
|
|
19202
19218
|
get el() { return this; }
|
|
19203
19219
|
static get watchers() { return {
|
|
19204
|
-
"histogram": ["histogramWatcher"]
|
|
19220
|
+
"histogram": ["histogramWatcher"],
|
|
19221
|
+
"value": ["valueHandler"],
|
|
19222
|
+
"minValue": ["minMaxValueHandler"],
|
|
19223
|
+
"maxValue": ["minMaxValueHandler"]
|
|
19205
19224
|
}; }
|
|
19206
19225
|
static get style() { return sliderCss; }
|
|
19207
19226
|
};
|
|
@@ -25977,9 +25996,9 @@ const CalciteHandle = /*@__PURE__*/proxyCustomElement(Handle, [1,"calcite-handle
|
|
|
25977
25996
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(Icon, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
25978
25997
|
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(InlineEditable, [1,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"intlEnableEditing":[513,"intl-enable-editing"],"intlCancelEditing":[513,"intl-cancel-editing"],"intlConfirmChanges":[513,"intl-confirm-changes"],"scale":[1537],"afterConfirm":[16]},[[0,"calciteInputBlur","blurHandler"]]]);
|
|
25979
25998
|
const CalciteInput = /*@__PURE__*/proxyCustomElement(Input, [1,"calcite-input",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxlength":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"type":[513],"value":[1025],"localizedValue":[32]}]);
|
|
25980
|
-
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
25999
|
+
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(InputDatePicker, [1,"calcite-input-date-picker",{"disabled":[516],"value":[1025],"flipPlacements":[16],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1025],"max":[1025],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"intlYear":[1,"intl-year"],"locale":[1],"scale":[513],"placement":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDatePickerChange","handleDateOrRangeChange"],[0,"calciteDatePickerRangeChange","handleDateOrRangeChange"],[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
25981
26000
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(InputMessage, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
25982
|
-
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"calciteTimePickerBlur","timePickerBlurHandler"],[0,"calciteTimePickerFocus","timePickerFocusHandler"]]]);
|
|
26001
|
+
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(InputTimePicker, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"locale":[1025,"lang"],"name":[1],"required":[516],"scale":[513],"placement":[513],"step":[2],"value":[1025],"localizedValue":[32]},[[0,"click","clickHandler"],[0,"keyup","keyUpHandler"],[0,"calciteTimePickerBlur","timePickerBlurHandler"],[0,"calciteTimePickerFocus","timePickerFocusHandler"]]]);
|
|
25983
26002
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(Label, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disableSpacing":[4,"disable-spacing"],"disabled":[516]}]);
|
|
25984
26003
|
const CalciteLink = /*@__PURE__*/proxyCustomElement(Link, [1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1]}]);
|
|
25985
26004
|
const CalciteList = /*@__PURE__*/proxyCustomElement(List$1, [1,"calcite-list",{"disabled":[516],"headingLevel":[2,"heading-level"]}]);
|
|
@@ -111,16 +111,11 @@ const ActionBar = class {
|
|
|
111
111
|
this.expandToggleEl = el;
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
expandHandler(
|
|
115
|
-
if (!expandDisabled) {
|
|
116
|
-
toggleChildActionText({ parent: this.el, expanded: this.expanded });
|
|
117
|
-
}
|
|
114
|
+
expandHandler() {
|
|
118
115
|
this.conditionallyOverflowActions();
|
|
119
116
|
}
|
|
120
117
|
expandedHandler(expanded) {
|
|
121
|
-
|
|
122
|
-
toggleChildActionText({ parent: this.el, expanded });
|
|
123
|
-
}
|
|
118
|
+
toggleChildActionText({ parent: this.el, expanded });
|
|
124
119
|
this.calciteActionBarToggle.emit();
|
|
125
120
|
}
|
|
126
121
|
overflowDisabledHandler(overflowActionsDisabled) {
|
|
@@ -138,10 +133,8 @@ const ActionBar = class {
|
|
|
138
133
|
}
|
|
139
134
|
connectedCallback() {
|
|
140
135
|
var _a, _b;
|
|
141
|
-
const { el,
|
|
142
|
-
|
|
143
|
-
toggleChildActionText({ parent: el, expanded });
|
|
144
|
-
}
|
|
136
|
+
const { el, expanded } = this;
|
|
137
|
+
toggleChildActionText({ parent: el, expanded });
|
|
145
138
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(el, { childList: true, subtree: true });
|
|
146
139
|
if (!this.overflowActionsDisabled) {
|
|
147
140
|
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
|