@luzmo/analytics-components-kit 1.0.1-alpha.26 → 1.0.1-alpha.27
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/components/{button-base-B7v4eeRh-BKKUK3x0.cjs → button-base-DSHx7XO8-Cixrr9aG.cjs} +3 -3
- package/components/{button-base-B7v4eeRh-D3-GH03o.js → button-base-DSHx7XO8-VB_BBSqq.js} +27 -27
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +7 -7
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +5 -5
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +8 -8
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +4 -4
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +9 -9
- package/components/display-settings-period-over-period/index.cjs +2 -2
- package/components/display-settings-period-over-period/index.js +7 -7
- package/components/draggable-data-item-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +3 -3
- package/components/droppable-slot/droppable-slot.d.ts +2 -2
- package/components/droppable-slot/index.cjs +1 -1
- package/components/droppable-slot/index.js +2 -2
- package/components/edit-item/edit-item.d.ts +1 -0
- package/components/edit-item/index.cjs +5 -4
- package/components/edit-item/index.js +26 -12
- package/components/edit-option-action-button-group/index.cjs +1 -1
- package/components/edit-option-action-button-group/index.js +5 -5
- package/components/{edit-option-base-qePiIQWd.js → edit-option-base-CPLI5-oZ.js} +2 -2
- package/components/{edit-option-base-Boz7TNRZ.cjs → edit-option-base-ChZvMFLr.cjs} +1 -1
- package/components/edit-option-color-picker/index.cjs +10 -10
- package/components/edit-option-color-picker/index.js +16 -16
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +2 -2
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +2 -2
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +3 -3
- package/components/edit-option-position-picker/index.cjs +1 -1
- package/components/edit-option-position-picker/index.js +2 -2
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +3 -3
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +3 -3
- package/components/edit-option-slider/index.cjs +2 -2
- package/components/edit-option-slider/index.js +2 -2
- package/components/edit-option-switch/index.cjs +2 -2
- package/components/edit-option-switch/index.js +3 -3
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +2 -2
- package/components/filter-data-item-picker/filter-data-item-picker.d.ts +80 -0
- package/components/filter-data-item-picker/index.d.ts +7 -0
- package/components/filter-expression-picker/filter-expression-picker.d.ts +60 -0
- package/components/filter-expression-picker/index.d.ts +7 -0
- package/components/filter-group/filter-group.d.ts +39 -0
- package/components/filter-group/index.d.ts +7 -0
- package/components/filter-item/filter-item.d.ts +64 -0
- package/components/filter-item/index.d.ts +7 -0
- package/components/filter-item/stories/dataset-data-items.const.d.ts +15 -0
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +26 -0
- package/components/filter-parameter-picker/index.d.ts +7 -0
- package/components/filter-value-picker/filter-value-picker.d.ts +65 -0
- package/components/filter-value-picker/index.d.ts +7 -0
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +43 -0
- package/components/filter-value-picker-datetime/index.d.ts +7 -0
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +71 -0
- package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +72 -0
- package/components/filter-value-picker-numeric/index.d.ts +7 -0
- package/components/index-B6Os866t.cjs +127 -0
- package/components/index-BgR4fBCA.cjs +42 -0
- package/components/{index-CdUTqQ3L.cjs → index-BnOOdgQZ.cjs} +3 -3
- package/components/{index-BH9W0QLt-DBxyzKWK.js → index-Brne8JKA.js} +84 -51
- package/components/{index-CXIT0cYY.js → index-Bsn3jtgt.js} +2 -2
- package/components/index-CAG4u31N.cjs +117 -0
- package/components/{index-DUO13KGl.cjs → index-CDUZyVS8.cjs} +1 -1
- package/components/{index-BYfDERr7.js → index-CJtXD_RI.js} +1 -1
- package/components/{index-Dc9c_dq-.cjs → index-CMvCwUvn.cjs} +1 -1
- package/components/{index-ymMEPngt.js → index-CPdcj1Bo.js} +22 -22
- package/components/{index-ByjLd3bT.cjs → index-CT2P9cSY.cjs} +2 -2
- package/components/{index-BUSWsm5N.js → index-CTxrSfyd.js} +4 -4
- package/components/{index-B3ve6cAj.js → index-CX0ynTHR.js} +135 -101
- package/components/{index-i8GaIN7i.cjs → index-CY1zprJk.cjs} +1 -1
- package/components/{index-CfEn3fIT.js → index-CdZDTZcN.js} +1 -1
- package/components/{index-aYcu00GB.js → index-DDm8p09D.js} +1 -1
- package/components/{index-h9T5DPIm.cjs → index-DFt-aKCN.cjs} +2 -2
- package/components/{index-C8IL2IZ6.js → index-DOnHTKUs.js} +2 -2
- package/components/{index-86cIx1Ql.cjs → index-DULisWB3.cjs} +2 -2
- package/components/index-DW3LXQ5Z.js +779 -0
- package/components/{index-CdCtJpK9.js → index-Dk2zOgvd.js} +4 -4
- package/components/index-DoZEESMk.cjs +217 -0
- package/components/{index-BVX_ozT9.js → index-Dpt_Qqgy.js} +1 -1
- package/components/{index-Bt5nP_6w.cjs → index-Dv1aV79F.cjs} +1 -1
- package/components/{index-BJVxTeoi.cjs → index-E6HaIK_Z.cjs} +2 -2
- package/components/{index-DEVOZNSc.cjs → index-NFKXlEm1.cjs} +1 -1
- package/components/{index-Bee1uunR.js → index-OuAMpMdS.js} +1 -1
- package/components/{index-DVAsMiOm.js → index-nP-SGD7o.js} +3 -3
- package/components/index.cjs +1 -1
- package/components/index.js +457 -54
- package/components/{language-resolution-8yZa5r_P-FqQChUDW.cjs → language-resolution-8yZa5r_P-CYK1IIrs.cjs} +2 -2
- package/components/{language-resolution-8yZa5r_P-Bn0bYosv.js → language-resolution-8yZa5r_P-Chn3SFme.js} +7 -7
- package/components/{luzmo-icons-BE2T8vWu.js → luzmo-icons-DxZo8BWX.js} +15 -15
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +2 -2
- package/components/slot-menu-list/index.js +1 -1
- package/components/text-field-BTnBJoP9-Cwm3XQ88.cjs +147 -0
- package/components/text-field-BTnBJoP9-jo797Hka.js +430 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +472 -54
- package/custom-elements.json +4 -4
- package/index.d.ts +1 -0
- package/item-definitions/marker-map/marker-map-options.config.d.ts +1 -1
- package/package.json +1 -1
- package/utils/data-broker/index.d.ts +173 -0
- package/utils/data-item-types/calculate-data-item-icon.d.ts +3 -0
- package/utils/expressions/index.d.ts +13 -0
- package/utils/index.d.ts +1 -0
- package/utils/themes/index.d.ts +507 -0
- package/components/index-BH9W0QLt-Cy2sUVJ_.cjs +0 -95
- package/components/index-D5LI0odG.js +0 -44
- package/components/index-DM_2d78G.js +0 -744
- package/components/index-DrLPC6eG.cjs +0 -185
- package/components/index-iYpAy-Kg.cjs +0 -95
- package/components/index-w3j1USKK.cjs +0 -36
- package/components/index-zuArOtOt.cjs +0 -42
- package/components/text-field-CvKSS59x-Dn0_1HO7.js +0 -412
- package/components/text-field-CvKSS59x-E9LQElL4.cjs +0 -131
@@ -1,744 +0,0 @@
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
-
*
|
3
|
-
* Copyright © 2025 Luzmo
|
4
|
-
* All rights reserved.
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
7
|
-
* This license allows users with a current active Luzmo account
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
-
*
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
-
* SOFTWARE.
|
19
|
-
* */
|
20
|
-
import { H as c, r as y, d as w, w as x, v as C, h as I, R as s } from "./property-B2F7x7Cz.js";
|
21
|
-
import { _ as $, n as p, $ as S, s as E } from "./directive-helpers-nlQRAaQt-I6T4KZKW.js";
|
22
|
-
import { m as u, d as v } from "./if-defined-BSAr_4u4-4Ys8VE7T.js";
|
23
|
-
import { p as M } from "./index-CXIT0cYY.js";
|
24
|
-
import { a as q } from "./index-C8IL2IZ6.js";
|
25
|
-
import "./index-CfEn3fIT.js";
|
26
|
-
import { m as A } from "./sized-mixin-BxMraZLS-B_y0PzR3.js";
|
27
|
-
import { O as f, T as L, I as F } from "./luzmo-icons-BE2T8vWu.js";
|
28
|
-
import "./index-BH9W0QLt-DBxyzKWK.js";
|
29
|
-
import { c as b } from "./async-directive-DWRUSKKF-CmOVMf6V.js";
|
30
|
-
/*! * Lucero - The design system for Luzmo.
|
31
|
-
*
|
32
|
-
* Copyright © 2025 Luzmo
|
33
|
-
* All rights reserved.
|
34
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
35
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
36
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
37
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
38
|
-
*
|
39
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
40
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
41
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
42
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
43
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
44
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
45
|
-
* SOFTWARE.
|
46
|
-
* */
|
47
|
-
class O {
|
48
|
-
/**
|
49
|
-
* Creates an instance of PendingStateController.
|
50
|
-
* @param host - The host element that this controller is attached to.
|
51
|
-
*/
|
52
|
-
constructor(e) {
|
53
|
-
this.cachedAriaLabel = null, this.host = e, this.host.addController(this);
|
54
|
-
}
|
55
|
-
/**
|
56
|
-
* Renders the pending state UI.
|
57
|
-
* @returns A TemplateResult representing the pending state UI.
|
58
|
-
*/
|
59
|
-
renderPendingState() {
|
60
|
-
const e = this.host.pendingLabel || "Pending";
|
61
|
-
return this.host.pending ? c`
|
62
|
-
<luzmo-progress-circle
|
63
|
-
id="loader"
|
64
|
-
size="s"
|
65
|
-
indeterminate
|
66
|
-
aria-valuetext=${e}
|
67
|
-
class="progress-circle"
|
68
|
-
></luzmo-progress-circle>
|
69
|
-
` : c``;
|
70
|
-
}
|
71
|
-
/**
|
72
|
-
* Updates the ARIA label of the host element based on the pending state.
|
73
|
-
* Manages Cached Aria Label
|
74
|
-
*/
|
75
|
-
updateAriaLabel() {
|
76
|
-
const { pending: e, disabled: o, pendingLabel: r } = this.host, n = this.host.getAttribute("aria-label");
|
77
|
-
e && !o && n !== r ? (this.cachedAriaLabel = n, this.host.setAttribute("aria-label", r || "Pending")) : (!e || o) && (this.cachedAriaLabel ? this.host.setAttribute("aria-label", this.cachedAriaLabel) : e || this.host.removeAttribute("aria-label"));
|
78
|
-
}
|
79
|
-
hostConnected() {
|
80
|
-
this.cachedAriaLabel || (this.cachedAriaLabel = this.host.getAttribute("aria-label")), this.updateAriaLabel();
|
81
|
-
}
|
82
|
-
hostUpdated() {
|
83
|
-
this.updateAriaLabel();
|
84
|
-
}
|
85
|
-
}
|
86
|
-
/*! * Lucero - The design system for Luzmo.
|
87
|
-
*
|
88
|
-
* Copyright © 2025 Luzmo
|
89
|
-
* All rights reserved.
|
90
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
91
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
92
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
93
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
94
|
-
*
|
95
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
96
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
97
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
98
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
99
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
100
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
101
|
-
* SOFTWARE.
|
102
|
-
* */
|
103
|
-
/**
|
104
|
-
* @license
|
105
|
-
* Copyright 2018 Google LLC
|
106
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
107
|
-
*/
|
108
|
-
const T = $(class extends S {
|
109
|
-
constructor(t) {
|
110
|
-
var e;
|
111
|
-
if (super(t), t.type !== E.ATTRIBUTE || t.name !== "class" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
112
|
-
}
|
113
|
-
render(t) {
|
114
|
-
return " " + Object.keys(t).filter((e) => t[e]).join(" ") + " ";
|
115
|
-
}
|
116
|
-
update(t, [e]) {
|
117
|
-
var o, r;
|
118
|
-
if (this.st === void 0) {
|
119
|
-
this.st = /* @__PURE__ */ new Set(), t.strings !== void 0 && (this.nt = new Set(t.strings.join(" ").split(/\s/).filter((i) => i !== "")));
|
120
|
-
for (const i in e) e[i] && !((o = this.nt) != null && o.has(i)) && this.st.add(i);
|
121
|
-
return this.render(e);
|
122
|
-
}
|
123
|
-
const n = t.element.classList;
|
124
|
-
for (const i of this.st) i in e || (n.remove(i), this.st.delete(i));
|
125
|
-
for (const i in e) {
|
126
|
-
const d = !!e[i];
|
127
|
-
d === this.st.has(i) || (r = this.nt) != null && r.has(i) || (d ? (n.add(i), this.st.add(i)) : (n.remove(i), this.st.delete(i)));
|
128
|
-
}
|
129
|
-
return C;
|
130
|
-
}
|
131
|
-
}), B = "(max-width: 743px) and (hover: none) and (pointer: coarse)";
|
132
|
-
class P {
|
133
|
-
constructor(e, o) {
|
134
|
-
this.key = Symbol("match-media-key"), this.matches = !1, this.host = e, this.host.addController(this), this.media = window.matchMedia(o), this.matches = this.media.matches, this.onChange = this.onChange.bind(this), e.addController(this);
|
135
|
-
}
|
136
|
-
hostConnected() {
|
137
|
-
var e;
|
138
|
-
(e = this.media) == null || e.addEventListener("change", this.onChange);
|
139
|
-
}
|
140
|
-
hostDisconnected() {
|
141
|
-
var e;
|
142
|
-
(e = this.media) == null || e.removeEventListener("change", this.onChange);
|
143
|
-
}
|
144
|
-
onChange(e) {
|
145
|
-
this.matches !== e.matches && (this.matches = e.matches, this.host.requestUpdate(this.key, !this.matches));
|
146
|
-
}
|
147
|
-
}
|
148
|
-
const D = '#button{cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--luzmo-button-font-family, var(--luzmo-font-family));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--luzmo-button-line-height, var(--luzmo-line-height, 1.3));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,border-color var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,color var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,box-shadow var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;position:relative;overflow:visible}#button::-moz-focus-inner{border-style:none;padding:0}#button:focus{outline:none}@media (forced-colors: active){:host{--highcontrast-picker-focus-indicator-color: Highlight;--highcontrast-picker-border-color-default: ButtonBorder;--highcontrast-picker-border-color-hover: Highlight;--highcontrast-picker-border-color-disabled: GrayText;--highcontrast-picker-content-color-default: ButtonText;--highcontrast-picker-content-color-disabled: GrayText;--highcontrast-picker-background-color: ButtonFace}#button.is-keyboardFocused,#button:focus-visible{--highcontrast-picker-border-color-hover: ButtonText}#button .label,#button:after{forced-color-adjust:none}}#button{box-sizing:border-box;max-inline-size:100%;min-inline-size:calc(var(--picker-minimum-width-multiplier) * var(--luzmo-picker-block-size, var(--picker-block-size)));block-size:var(--luzmo-picker-block-size, var(--picker-block-size));border-width:var(--luzmo-picker-border-width, var(--picker-border-width));border-radius:var(--luzmo-picker-border-radius, var(--picker-border-radius));box-shadow:var(--luzmo-picker-box-shadow, var(--picker-box-shadow));transition:background-color var(--luzmo-picker-animation-duration, var(--picker-animation-duration)),box-shadow var(--luzmo-picker-animation-duration, var(--picker-animation-duration)),border-color var(--luzmo-picker-animation-duration, var(--picker-animation-duration)) ease-in-out;color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-default, var(--picker-font-color-default)));background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-default, var(--picker-background-color-default)));border-style:solid;border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-color-default, var(--picker-border-color-default)));margin-block-start:var(--luzmo-picker-spacing-label-to-picker, var(--picker-spacing-label-to-picker));padding-block:0;padding-inline-start:var(--luzmo-picker-spacing-edge-to-text, var(--picker-spacing-edge-to-text));padding-inline-end:var(--luzmo-picker-spacing-edge-to-disclosure-icon, var(--picker-spacing-edge-to-disclosure-icon));display:flex}#button:after{pointer-events:none;content:"";block-size:calc(100% + var(--luzmo-picker-focus-indicator-gap, var(--picker-focus-indicator-gap)) * 2 + var(--luzmo-picker-border-width, var(--picker-border-width)) * 2);inline-size:calc(100% + var(--luzmo-picker-focus-indicator-gap, var(--picker-focus-indicator-gap)) * 2 + var(--luzmo-picker-border-width, var(--picker-border-width)) * 2);border-style:solid;border-width:var(--luzmo-picker-focus-indicator-thickness, var(--picker-focus-indicator-thickness));border-radius:calc(var(--luzmo-picker-border-radius, var(--picker-border-radius)) + var(--luzmo-picker-focus-indicator-gap, var(--picker-focus-indicator-gap)) + var(--luzmo-picker-border-width, var(--picker-border-width)));border-color:#0000;margin-block-start:calc((var(--luzmo-picker-focus-indicator-gap, var(--picker-focus-indicator-gap)) + var(--luzmo-picker-focus-indicator-thickness, var(--picker-focus-indicator-thickness)) + var(--luzmo-picker-border-width, var(--picker-border-width))) * -1);margin-inline-start:calc((var(--luzmo-picker-focus-indicator-gap, var(--picker-focus-indicator-gap)) + var(--luzmo-picker-focus-indicator-thickness, var(--picker-focus-indicator-thickness)) + var(--luzmo-picker-border-width, var(--picker-border-width))) * -1);position:absolute;inset-block:0;inset-inline:0}#button:active{background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-active, var(--picker-background-color-active)));border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-active, var(--picker-border-color-active)))}#button:active:after{border-color:#0000}#button.placeholder:active .label{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-active, var(--picker-font-color-active)))}#button.is-keyboardFocused,#button:focus-visible{background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-key-focus, var(--picker-background-color-key-focus)));border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-color-key-focus, var(--picker-border-color-key-focus)));color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-key-focus, var(--picker-font-color-key-focus)));outline:none}#button.is-keyboardFocused:after,#button:focus-visible:after{border-color:var(--highcontrast-picker-focus-indicator-color, var(--luzmo-picker-focus-indicator-color, var(--picker-focus-indicator-color)))}#button.is-keyboardFocused.placeholder,#button.placeholder:focus-visible{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-key-focus, var(--picker-font-color-key-focus)))}#button.is-keyboardFocused .disclosure-icon,#button:focus-visible .disclosure-icon{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-icon-color-key-focus, var(--picker-icon-color-key-focus)))}:host([open]) #button:not(:disabled,.is-disabled){color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-default-open, var(--picker-font-color-default-open)));background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-default-open, var(--picker-background-color-default-open)));border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-default-open, var(--picker-border-color-default-open)))}:host([open]) #button:not(:disabled,.is-disabled) .disclosure-icon{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-icon-color-default-open, var(--picker-icon-color-default-open)))}:host([invalid]) #button:not(:disabled,.is-disabled){border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-color-error-default, var(--picker-border-color-error-default)))}:host([invalid]) #button:not(:disabled,.is-disabled) .validation-icon{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-icon-color-error, var(--picker-icon-color-error)))}:host([invalid]) #button:not(:disabled,.is-disabled):active{border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-color-error-active, var(--picker-border-color-error-active)))}:host([invalid][open]) #button:not(:disabled,.is-disabled){border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-color-error-default-open, var(--picker-border-color-error-default-open)))}:host([invalid]) #button.is-keyboardFocused:not(:disabled,.is-disabled),:host([invalid]) #button:not(:disabled,.is-disabled):focus-visible{border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-color-error-key-focus, var(--picker-border-color-error-key-focus)))}:host([pending]) #button .disclosure-icon{color:var(--highcontrast-picker-content-color-disabled, var(--luzmo-picker-icon-color-disabled, var(--picker-icon-color-disabled)))}.icon{flex-shrink:0}.label{white-space:nowrap;font-size:var(--luzmo-picker-font-size, var(--picker-font-size));line-height:var(--luzmo-picker-line-height, var(--picker-line-height));font-weight:var(--luzmo-picker-font-weight, var(--picker-font-weight));text-overflow:ellipsis;text-align:start;flex:auto;overflow:hidden}.label.placeholder{font-weight:var(--luzmo-picker-placeholder-font-weight, var(--picker-font-weight));font-style:var(--luzmo-picker-placeholder-font-style, var(--picker-placeholder-font-style));transition:color var(--luzmo-picker-animation-duration, var(--picker-animation-duration)) ease-in-out;color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-default, var(--picker-font-color-default)))}.label.placeholder:active{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-active, var(--picker-font-color-active)))}.disclosure-icon{vertical-align:top;transition:color var(--luzmo-picker-animation-duration, var(--picker-animation-duration)) ease-out;margin-inline-start:var(--luzmo-picker-spacing-icon-to-disclosure-icon, var(--picker-spacing-icon-to-disclosure-icon));color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-icon-color-default, var(--picker-icon-color-default)));flex-shrink:0;display:inline-block;position:relative}.disclosure-icon:active{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-icon-color-active, var(--picker-icon-color-active)))}luzmo-progress-circle,.validation-icon{margin-inline-start:var(--luzmo-picker-spacing-text-to-icon, var(--picker-spacing-text-to-icon))}.icon-container{display:flex;position:relative;height:100%;align-items:center;font-size:var(--luzmo-picker-disclosure-icon-size, var(--picker-disclosure-icon-size))}.icon-container.disclosure-icon{margin-inline-end:0}.label~.disclosure-icon{margin-inline-start:var(--luzmo-picker-spacing-text-to-icon, var(--picker-spacing-text-to-icon))}:host([quiet]) #button{inline-size:auto;min-inline-size:0;padding-inline:var(--luzmo-picker-spacing-edge-to-text-quiet, var(--picker-spacing-edge-to-text-quiet));color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-default, var(--picker-font-color-default)));background-color:initial;background-color:var(--highcontrast-picker-background-color, transparent);border:none;border-radius:0;box-shadow:none;margin-block-start:calc(var(--luzmo-picker-spacing-label-to-picker-quiet, var(--picker-spacing-label-to-picker-quiet)) + 1px)}:host([quiet]) #button.label-inline{margin-block-start:0}:host([quiet]) #button .disclosure-icon{margin-inline-end:var(--luzmo-picker-spacing-edge-to-disclosure-icon-quiet, var(--picker-spacing-edge-to-disclosure-icon-quiet))}:host([quiet]) #button:after{block-size:auto;inline-size:auto;border:none}@media (hover: hover){#button:hover{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-hover, var(--picker-font-color-hover)));background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-hover, var(--picker-background-color-hover)));border-color:var(--highcontrast-picker-border-color-hover, var(--luzmo-picker-border-color-hover, var(--picker-border-color-hover)))}#button:hover .disclosure-icon{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-icon-color-hover, var(--picker-icon-color-hover)))}:host([open]):not([quiet]) #button:not(:disabled,.is-disabled):hover{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-hover-open, var(--picker-font-color-hover-open)));background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-hover-open, var(--picker-background-color-hover-open)));border-color:var(--highcontrast-picker-border-color-hover, var(--luzmo-picker-border-color-hover-open, var(--picker-border-color-hover-open)))}:host([open]) #button:not(:disabled,.is-disabled):hover .disclosure-icon{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-icon-color-hover-open, var(--picker-icon-color-hover-open)))}:host([invalid]) #button:not(:disabled,.is-disabled):hover{border-color:var(--highcontrast-picker-border-color-hover, var(--luzmo-picker-border-color-error-hover, var(--picker-border-color-error-hover)))}:host([invalid][open]) #button:not(:disabled,.is-disabled):hover{border-color:var(--highcontrast-picker-border-color-hover, var(--luzmo-picker-border-color-error-hover-open, var(--picker-border-color-error-hover-open)))}.label.placeholder:hover{color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-hover, var(--picker-font-color-hover)))}:host([quiet]) #button:hover{background-color:initial;background-color:var(--highcontrast-picker-background-color, transparent)!important}}:host([quiet]) #button.is-keyboardFocused,:host([quiet]) #button:focus-visible{background-color:initial;background-color:var(--highcontrast-picker-background-color, transparent)}:host([quiet]) #button.is-keyboardFocused:after,:host([quiet]) #button:focus-visible:after{box-shadow:0 var(--luzmo-picker-focus-indicator-thickness, var(--picker-focus-indicator-thickness)) 0 0 var(--highcontrast-picker-focus-indicator-color, var(--luzmo-picker-focus-indicator-color, var(--picker-focus-indicator-color)));margin:calc((var(--luzmo-picker-focus-indicator-gap, var(--picker-focus-indicator-gap)) + var(--luzmo-picker-border-width, var(--picker-border-width))) * -1) 0;border:none;border-radius:0}:host([quiet][open]) #button,:host([quiet][disabled]) #button#button,:host([quiet]) #button#button:disabled,:host([quiet]) #button:active{background-color:initial;background-color:var(--highcontrast-picker-background-color, transparent)}.label-inline{vertical-align:top;display:inline-flex}:host([disabled]) #button,#button:disabled{cursor:default;background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-disabled, var(--picker-background-color-disabled)));border-color:#0000;border-color:var(--highcontrast-picker-border-color-disabled, transparent);color:var(--highcontrast-picker-content-color-disabled, var(--luzmo-picker-font-color-disabled, var(--picker-font-color-disabled)))}:host([disabled]) #button .icon,:host([disabled]) #button .disclosure-icon,:host([disabled]) #button .validation-icon,#button:disabled .icon,#button:disabled .disclosure-icon,#button:disabled .validation-icon{color:var(--highcontrast-picker-content-color-disabled, var(--luzmo-picker-icon-color-disabled, var(--picker-icon-color-disabled)))}:host([disabled]) #button .label.placeholder,#button:disabled .label.placeholder{color:var(--highcontrast-picker-content-color-disabled, var(--luzmo-picker-font-color-disabled, var(--picker-font-color-disabled)))}:host{--picker-box-shadow: 0px 1px 3px 0px rgba(var(--luzmo-border-color-rgb), .06);--picker-background-color-default: var(--luzmo-background-color);--picker-background-color-default-open: var(--luzmo-background-color-hover);--picker-background-color-active: var(--luzmo-background-color-down);--picker-background-color-hover: var(--luzmo-background-color-hover);--picker-background-color-hover-open: var(--luzmo-background-color-down);--picker-background-color-key-focus: var(--luzmo-background-color-down);--picker-border-color-default: var(--luzmo-border-color);--picker-border-color-default-open: var(--luzmo-border-color-hover);--picker-border-color-hover: var(--luzmo-border-color);--picker-border-color-hover-open: var(--luzmo-border-color-hover);--picker-border-color-active: var(--luzmo-border-color);--picker-border-color-key-focus: var(--luzmo-border-color);--picker-border-width: var(--luzmo-border-width);--picker-font-size: var(--luzmo-font-size);--picker-font-weight: var(--luzmo-font-weight);--picker-placeholder-font-style: var(--luzmo-font-style);--picker-line-height: var(--luzmo-line-height);--picker-block-size: 32px;--picker-border-radius: var(--luzmo-border-radius);--picker-spacing-edge-to-text: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--picker-spacing-text-to-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--picker-spacing-text-to-icon-inline-end: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--picker-spacing-icon-to-disclosure-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--picker-spacing-edge-to-text-quiet: 0px;--picker-spacing-label-to-picker: 0px;--picker-spacing-label-to-picker-quiet: calc( -1 * var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--picker-spacing-edge-to-disclosure-icon: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--picker-spacing-edge-to-disclosure-icon-quiet: 0px;--picker-animation-duration: var(--luzmo-animation-duration);--picker-font-color-default: var(--luzmo-font-color);--picker-font-color-default-open: var(--luzmo-font-color-hover);--picker-font-color-hover: var(--luzmo-font-color-hover);--picker-font-color-hover-open: var(--luzmo-font-color-down);--picker-font-color-active: var(--luzmo-font-color-focus);--picker-font-color-key-focus: var(--luzmo-font-color-focus);--picker-icon-color-default: var(--luzmo-font-color);--picker-icon-color-default-open: var(--luzmo-font-color-hover);--picker-icon-color-hover: var(--luzmo-font-color-hover);--picker-icon-color-hover-open: var(--luzmo-font-color-hover);--picker-icon-color-active: var(--luzmo-font-color-focus);--picker-icon-color-key-focus: var(--luzmo-font-color-focus);--picker-border-color-error-default: var(--luzmo-color-negative);--picker-border-color-error-default-open: var(--luzmo-color-negative-down);--picker-border-color-error-hover: var(--luzmo-color-negative-hover);--picker-border-color-error-hover-open: var(--luzmo-color-negative-down);--picker-border-color-error-active: var(--luzmo-color-negative-down);--picker-border-color-error-key-focus: var(--luzmo-color-negative-focus);--picker-icon-color-error: var(--luzmo-color-negative);--picker-background-color-disabled: var(--luzmo-background-color-disabled);--picker-font-color-disabled: var(--luzmo-color-disabled);--picker-icon-color-disabled: var(--luzmo-color-disabled);--picker-focus-indicator-gap: var(--luzmo-indicator-gap);--picker-focus-indicator-thickness: var(--luzmo-indicator-width);--picker-focus-indicator-color: var(--luzmo-indicator-color);--picker-disclosure-icon-size: var(--luzmo-font-size-s)}:host([size=s]){--picker-block-size: 28px;--picker-font-size: var(--luzmo-font-size-s);--picker-border-radius: var(--luzmo-border-radius);--picker-spacing-edge-to-text: var(--luzmo-spacing-3);--picker-spacing-text-to-icon: var(--luzmo-spacing-3);--picker-spacing-text-to-icon-inline-end: var(--luzmo-spacing-3);--picker-spacing-icon-to-disclosure-icon: var(--luzmo-spacing-3);--picker-spacing-label-to-picker-quiet: calc(-1 * var(--luzmo-spacing-3));--picker-spacing-edge-to-disclosure-icon: var(--luzmo-spacing-3);--picker-disclosure-icon-size: var(--luzmo-font-size-s)}:host([size=l]){--picker-block-size: 40px;--picker-font-size: var(--luzmo-font-size-l);--picker-border-radius: var(--luzmo-border-radius);--picker-spacing-edge-to-text: var(--luzmo-spacing-4);--picker-spacing-text-to-icon: var(--luzmo-spacing-4);--picker-spacing-text-to-icon-inline-end: var(--luzmo-spacing-4);--picker-spacing-icon-to-disclosure-icon: var(--luzmo-spacing-4);--picker-spacing-label-to-picker-quiet: calc(-1 * var(--luzmo-spacing-4));--picker-spacing-edge-to-disclosure-icon: var(--luzmo-spacing-4);--picker-disclosure-icon-size: var(--luzmo-font-size)}:host([size=xl]){--picker-block-size: 48px;--picker-font-size: var(--luzmo-font-size-xl);--picker-border-radius: var(--luzmo-border-radius-l);--picker-spacing-edge-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--picker-spacing-text-to-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--picker-spacing-text-to-icon-inline-end: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--picker-spacing-icon-to-disclosure-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--picker-spacing-label-to-picker-quiet: calc( -1 * var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--picker-spacing-edge-to-disclosure-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--picker-disclosure-icon-size: var(--luzmo-font-size-l)}:host([variant=highlight]) ::slotted(luzmo-menu-item[selected]){--menu-item-highlight-label-content-color: var(--luzmo-primary-inverse-color);--menu-checkmark-display: var(--menu-checkmark-display-hidden);padding-inline-start:var(--luzmo-menu-item-label-inline-edge-to-content, var(--menu-item-label-inline-edge-to-content));background-color:var(--luzmo-menu-item-highlight-label-background-color, var(--menu-item-highlight-label-background-color, var(--luzmo-border-color)))}:host{display:inline-flex;vertical-align:top;max-inline-size:100%;inline-size:var(--luzmo-picker-inline-size, var(--picker-inline-size));min-inline-size:calc(var(--picker-minimum-width-multiplier) * var(--luzmo-picker-block-size, var(--picker-block-size)))}:host([quiet]){width:auto;min-width:0}:host([disabled]){pointer-events:none}#button{width:100%;min-width:100%;max-width:100%}#icon:not([hidden]){display:inline-flex}:host([readonly]) #button{-webkit-user-select:inherit;user-select:inherit}.picker,.validation-icon{flex-shrink:0}luzmo-overlay{pointer-events:none}luzmo-menu{pointer-events:initial}:host>luzmo-menu{display:none}:host([focused]:not([quiet])) #button #label.placeholder{color:var(--picker-placeholder-text-color-key-focus, var(--alias-placeholder-text-color-hover))}#label.visually-hidden~.picker{margin-inline-start:auto}:host([focused]:not([quiet],[pending])) #button .picker{color:var(--picker-icon-color-key-focus, var(--alias-icon-color-focus))}.visually-hidden{border:0;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}luzmo-overlay:not(:defined){display:none}#button.remove-focus-ring-safari-hack:focus-visible{background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-default, var(--picker-background-color-default)));border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-color-default, var(--picker-border-color-default)));color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-default, var(--picker-font-color-default)))}#button.remove-focus-ring-safari-hack:after{border:none}#button.remove-focus-ring-safari-hack:focus-visible:after{box-shadow:none}#button.remove-focus-ring-safari-hack:active{background-color:var(--highcontrast-picker-background-color, var(--luzmo-picker-background-color-default, var(--picker-background-color-default)));border-color:var(--highcontrast-picker-border-color-default, var(--luzmo-picker-border-color-default, var(--picker-border-color-default)));color:var(--highcontrast-picker-content-color-default, var(--luzmo-picker-font-color-default, var(--picker-font-color-default)))}';
|
149
|
-
var m = /* @__PURE__ */ ((t) => (t[t.desktop = 0] = "desktop", t[t.mobile = 1] = "mobile", t))(m || {});
|
150
|
-
class z {
|
151
|
-
constructor(e, o) {
|
152
|
-
this.target = e, this.host = o, this.preventNextToggle = "no", this.pointerdownState = !1, this.enterKeydownOn = null, this._open = !1, this.target = e, this.host = o, this.host.addController(this), this.init();
|
153
|
-
}
|
154
|
-
get activelyOpening() {
|
155
|
-
return !1;
|
156
|
-
}
|
157
|
-
get open() {
|
158
|
-
return this._open;
|
159
|
-
}
|
160
|
-
/**
|
161
|
-
* Set `open`
|
162
|
-
*/
|
163
|
-
set open(e) {
|
164
|
-
if (this._open !== e) {
|
165
|
-
if (this._open = e, this.overlay) {
|
166
|
-
this.host.open = e;
|
167
|
-
return;
|
168
|
-
}
|
169
|
-
customElements.whenDefined("luzmo-overlay").then(async () => {
|
170
|
-
const { LuzmoOverlay: o } = await import("./index-CXIT0cYY.js").then((r) => r.i);
|
171
|
-
this.overlay = new o(), this.host.open = !0, this.host.requestUpdate();
|
172
|
-
}), import("./index-CXIT0cYY.js").then((o) => o.i);
|
173
|
-
}
|
174
|
-
}
|
175
|
-
get overlay() {
|
176
|
-
return this._overlay;
|
177
|
-
}
|
178
|
-
set overlay(e) {
|
179
|
-
e && this.overlay !== e && (this._overlay = e, this.initOverlay());
|
180
|
-
}
|
181
|
-
releaseDescription() {
|
182
|
-
}
|
183
|
-
handleBeforetoggle(e) {
|
184
|
-
var o;
|
185
|
-
e.composedPath()[0] === e.target && (e.newState === "closed" && (this.preventNextToggle === "no" ? this.open = !1 : this.pointerdownState || (o = this.overlay) == null || o.manuallyKeepOpen()), this.open || (this.host.optionsMenu.updateSelectedItemIndex(), this.host.optionsMenu.closeDescendentOverlays()));
|
186
|
-
}
|
187
|
-
initOverlay() {
|
188
|
-
this.overlay && (this.overlay.addEventListener("beforetoggle", (e) => {
|
189
|
-
this.handleBeforetoggle(
|
190
|
-
e
|
191
|
-
);
|
192
|
-
}), this.overlay.type = this.host.isMobile.matches ? "modal" : "auto", this.overlay.triggerElement = this.host, this.overlay.placement = this.host.isMobile.matches ? void 0 : this.host.placement, this.overlay.receivesFocus = "true", this.overlay.willPreventClose = this.preventNextToggle !== "no" && this.open, this.overlay.addEventListener(
|
193
|
-
"slottable-request",
|
194
|
-
this.host.handleSlottableRequest
|
195
|
-
));
|
196
|
-
}
|
197
|
-
handlePointerdown(e) {
|
198
|
-
}
|
199
|
-
handleButtonFocus(e) {
|
200
|
-
this.preventNextToggle === "maybe" && e.relatedTarget === this.host.optionsMenu && (this.preventNextToggle = "yes");
|
201
|
-
}
|
202
|
-
handleActivate(e) {
|
203
|
-
}
|
204
|
-
/* c8 ignore next 3 */
|
205
|
-
init() {
|
206
|
-
}
|
207
|
-
abort() {
|
208
|
-
var e;
|
209
|
-
this.releaseDescription(), (e = this.abortController) == null || e.abort();
|
210
|
-
}
|
211
|
-
hostConnected() {
|
212
|
-
this.init();
|
213
|
-
}
|
214
|
-
hostDisconnected() {
|
215
|
-
var e;
|
216
|
-
(e = this.abortController) == null || e.abort();
|
217
|
-
}
|
218
|
-
hostUpdated() {
|
219
|
-
this.overlay && this.host.dependencyManager.loaded && this.host.open !== this.overlay.open && (this.overlay.willPreventClose = this.preventNextToggle !== "no", this.overlay.open = this.host.open);
|
220
|
-
}
|
221
|
-
}
|
222
|
-
class R extends z {
|
223
|
-
constructor() {
|
224
|
-
super(...arguments), this.type = m.desktop;
|
225
|
-
}
|
226
|
-
handlePointerdown(e) {
|
227
|
-
if (e.button !== 0 || e.pointerType === "touch")
|
228
|
-
return;
|
229
|
-
this.pointerdownState = this.open, this.preventNextToggle = "maybe";
|
230
|
-
let o = 0;
|
231
|
-
const r = () => {
|
232
|
-
cancelAnimationFrame(o), o = requestAnimationFrame(() => {
|
233
|
-
document.removeEventListener("pointerup", r), document.removeEventListener("pointercancel", r), this.target.removeEventListener("click", r), requestAnimationFrame(() => {
|
234
|
-
this.preventNextToggle = "no";
|
235
|
-
});
|
236
|
-
});
|
237
|
-
};
|
238
|
-
document.addEventListener("pointerup", r), document.addEventListener("pointercancel", r), this.target.addEventListener("click", r), this.handleActivate();
|
239
|
-
}
|
240
|
-
handleActivate(e) {
|
241
|
-
this.enterKeydownOn && this.enterKeydownOn !== this.target || this.preventNextToggle !== "yes" && ((e == null ? void 0 : e.type) === "click" && this.open !== this.pointerdownState || this.host.toggle());
|
242
|
-
}
|
243
|
-
init() {
|
244
|
-
var e;
|
245
|
-
(e = this.abortController) == null || e.abort(), this.abortController = new AbortController();
|
246
|
-
const { signal: o } = this.abortController;
|
247
|
-
this.target.addEventListener(
|
248
|
-
"click",
|
249
|
-
(r) => this.handleActivate(r),
|
250
|
-
{
|
251
|
-
signal: o
|
252
|
-
}
|
253
|
-
), this.target.addEventListener(
|
254
|
-
"pointerdown",
|
255
|
-
(r) => this.handlePointerdown(r),
|
256
|
-
{ signal: o }
|
257
|
-
), this.target.addEventListener(
|
258
|
-
"focus",
|
259
|
-
(r) => this.handleButtonFocus(r),
|
260
|
-
{
|
261
|
-
signal: o
|
262
|
-
}
|
263
|
-
);
|
264
|
-
}
|
265
|
-
}
|
266
|
-
const h = "remove-focus-ring-safari-hack";
|
267
|
-
class U extends z {
|
268
|
-
constructor() {
|
269
|
-
super(...arguments), this.type = m.mobile;
|
270
|
-
}
|
271
|
-
handleClick() {
|
272
|
-
this.preventNextToggle === "no" && (this.open = !this.open), this.preventNextToggle = "no";
|
273
|
-
}
|
274
|
-
handlePointerdown() {
|
275
|
-
this.preventNextToggle = this.open ? "yes" : "no", b() && this.target.classList.add(h);
|
276
|
-
}
|
277
|
-
handleFocusOut() {
|
278
|
-
this.host.open || b() && this.target.classList.contains(h) && this.target.classList.remove(h);
|
279
|
-
}
|
280
|
-
init() {
|
281
|
-
var e;
|
282
|
-
(e = this.abortController) == null || e.abort(), this.abortController = new AbortController();
|
283
|
-
const { signal: o } = this.abortController;
|
284
|
-
this.target.addEventListener("click", () => this.handleClick(), {
|
285
|
-
signal: o
|
286
|
-
}), this.target.addEventListener(
|
287
|
-
"pointerdown",
|
288
|
-
() => this.handlePointerdown(),
|
289
|
-
{ signal: o }
|
290
|
-
), this.target.addEventListener("focusout", () => this.handleFocusOut(), {
|
291
|
-
signal: o
|
292
|
-
});
|
293
|
-
}
|
294
|
-
}
|
295
|
-
const g = {
|
296
|
-
desktop: R,
|
297
|
-
mobile: U
|
298
|
-
};
|
299
|
-
var K = Object.defineProperty, N = Object.getOwnPropertyDescriptor, a = (t, e, o, r) => {
|
300
|
-
for (var n = r > 1 ? void 0 : r ? N(e, o) : e, i = t.length - 1, d; i >= 0; i--)
|
301
|
-
(d = t[i]) && (n = (r ? d(e, o, n) : d(n)) || n);
|
302
|
-
return r && n && K(e, o, n), n;
|
303
|
-
};
|
304
|
-
const _ = () => c`
|
305
|
-
<div class="disclosure-icon icon">
|
306
|
-
${f(L, { className: "indicator" })}
|
307
|
-
</div>
|
308
|
-
`, H = () => c`
|
309
|
-
<div class="icon-container validation-icon icon">
|
310
|
-
${f(F)}
|
311
|
-
</div>
|
312
|
-
`, k = "option-picker";
|
313
|
-
class l extends A(y, {
|
314
|
-
noDefaultSize: !0
|
315
|
-
}) {
|
316
|
-
/**
|
317
|
-
* Initializes the `PendingStateController` for the Picker component.
|
318
|
-
* The `PendingStateController` manages the pending state of the Picker.
|
319
|
-
*/
|
320
|
-
constructor() {
|
321
|
-
super(), this.disabled = !1, this.focused = !1, this.invalid = !1, this.pending = !1, this.pendingLabel = "Pending", this.open = !1, this.readonly = !1, this.placement = "bottom-start", this.quiet = !1, this.value = "", this.selects = "single", this.dependencyManager = new q(this), this.isMobile = new P(this, B), this.listRole = "listbox", this.itemRole = "option", this.hasRenderedOverlay = !1, this._selfManageFocusElement = !1, this.deprecatedMenu = null, this.selectionPromise = Promise.resolve(), this.willManageSelection = !1, this.recentlyConnected = !1, this.enterKeydownOn = null, this.handleSlottableRequest = (e) => {
|
322
|
-
}, this.applyFocusElementLabel = (e, o) => {
|
323
|
-
this.appliedLabel = e, this.labelAlignment = o.sideAligned ? "inline" : void 0;
|
324
|
-
}, this.handleKeydown = (e) => {
|
325
|
-
this.focused = !0, !(e.code !== "ArrowDown" && e.code !== "ArrowUp") && (e.stopPropagation(), e.preventDefault(), this.toggle(!0));
|
326
|
-
}, this.renderAngleIcon = () => _(), this.renderAlertIcon = () => H(), this.handleEnterKeydown = (e) => {
|
327
|
-
if (e.code === "Enter") {
|
328
|
-
if (this.enterKeydownOn) {
|
329
|
-
e.preventDefault();
|
330
|
-
return;
|
331
|
-
}
|
332
|
-
this.enterKeydownOn = e.target, this.addEventListener(
|
333
|
-
"keyup",
|
334
|
-
(o) => {
|
335
|
-
o.code === "Enter" && (this.enterKeydownOn = null);
|
336
|
-
},
|
337
|
-
{ once: !0 }
|
338
|
-
);
|
339
|
-
}
|
340
|
-
}, this.pendingStateController = new O(this);
|
341
|
-
}
|
342
|
-
get selectedItem() {
|
343
|
-
return this._selectedItem;
|
344
|
-
}
|
345
|
-
get selectedItemContent() {
|
346
|
-
return this._selectedItemContent || { icon: [], content: [] };
|
347
|
-
}
|
348
|
-
get selfManageFocusElement() {
|
349
|
-
return this._selfManageFocusElement;
|
350
|
-
}
|
351
|
-
get menuItems() {
|
352
|
-
return this.optionsMenu.childItems;
|
353
|
-
}
|
354
|
-
set selectedItem(e) {
|
355
|
-
if (this.selectedItemContent = e ? e.itemChildren : void 0, e === this.selectedItem)
|
356
|
-
return;
|
357
|
-
const o = this.selectedItem;
|
358
|
-
this._selectedItem = e, this.requestUpdate("selectedItem", o);
|
359
|
-
}
|
360
|
-
get focusElement() {
|
361
|
-
return this.open ? this.optionsMenu : this.button;
|
362
|
-
}
|
363
|
-
forceFocusVisible() {
|
364
|
-
this.disabled || (this.focused = !0);
|
365
|
-
}
|
366
|
-
click() {
|
367
|
-
this.disabled || this.toggle();
|
368
|
-
}
|
369
|
-
handleButtonBlur() {
|
370
|
-
this.focused = !1;
|
371
|
-
}
|
372
|
-
focus(e) {
|
373
|
-
super.focus(e), !this.disabled && this.focusElement && (this.focused = this.hasVisibleFocusInTree());
|
374
|
-
}
|
375
|
-
handleHelperFocus() {
|
376
|
-
this.focused = !0, this.button.focus();
|
377
|
-
}
|
378
|
-
handleChange(e) {
|
379
|
-
this.strategy && (this.strategy.preventNextToggle = "no");
|
380
|
-
const o = e.target, [r] = o.selectedItems;
|
381
|
-
e.stopPropagation(), e.cancelable ? this.setValueFromItem(r, e) : (this.open = !1, this.strategy && (this.strategy.open = !1));
|
382
|
-
}
|
383
|
-
handleButtonFocus(e) {
|
384
|
-
var o;
|
385
|
-
(o = this.strategy) == null || o.handleButtonFocus(e);
|
386
|
-
}
|
387
|
-
toggle(e) {
|
388
|
-
this.readonly || this.pending || (this.open = e === void 0 ? !this.open : e, this.strategy && (this.strategy.open = this.open), this._selfManageFocusElement = this.open);
|
389
|
-
}
|
390
|
-
close() {
|
391
|
-
this.readonly || this.strategy && (this.open = !1, this.strategy.open = !1);
|
392
|
-
}
|
393
|
-
bindEvents() {
|
394
|
-
var e;
|
395
|
-
(e = this.strategy) == null || e.abort(), this.strategy = this.isMobile.matches ? new g.mobile(this.button, this) : new g.desktop(this.button, this);
|
396
|
-
}
|
397
|
-
connectedCallback() {
|
398
|
-
super.connectedCallback(), this.recentlyConnected = this.hasUpdated;
|
399
|
-
}
|
400
|
-
disconnectedCallback() {
|
401
|
-
var e;
|
402
|
-
this.close(), (e = this.strategy) == null || e.releaseDescription(), super.disconnectedCallback();
|
403
|
-
}
|
404
|
-
async setValueFromItem(e, o) {
|
405
|
-
this.open = !1, this.strategy && (this.strategy.open = !1);
|
406
|
-
const r = this.selectedItem, n = this.value;
|
407
|
-
if (this.selectedItem = e, this.value = (e == null ? void 0 : e.value) ?? "", await this.updateComplete, !this.dispatchEvent(
|
408
|
-
new CustomEvent("change", {
|
409
|
-
bubbles: !0,
|
410
|
-
// Allow it to be prevented.
|
411
|
-
cancelable: !0,
|
412
|
-
composed: !0,
|
413
|
-
detail: this.value
|
414
|
-
})
|
415
|
-
) && this.selects) {
|
416
|
-
o && o.preventDefault(), this.setMenuItemSelected(this.selectedItem, !1), r && this.setMenuItemSelected(r, !0), this.selectedItem = r, this.value = n, this.open = !0, this.strategy && (this.strategy.open = !0);
|
417
|
-
return;
|
418
|
-
} else if (!this.selects) {
|
419
|
-
this.selectedItem = r, this.value = n;
|
420
|
-
return;
|
421
|
-
}
|
422
|
-
r && this.setMenuItemSelected(r, !1), this.setMenuItemSelected(e, !!this.selects);
|
423
|
-
}
|
424
|
-
setMenuItemSelected(e, o) {
|
425
|
-
this.selects != null && (e.selected = o);
|
426
|
-
}
|
427
|
-
get containerStyles() {
|
428
|
-
return this.isMobile.matches ? {
|
429
|
-
"--swc-menu-width": "100%"
|
430
|
-
} : {};
|
431
|
-
}
|
432
|
-
set selectedItemContent(e) {
|
433
|
-
if (e === this.selectedItemContent)
|
434
|
-
return;
|
435
|
-
const o = this.selectedItemContent;
|
436
|
-
this._selectedItemContent = e, this.requestUpdate("selectedItemContent", o);
|
437
|
-
}
|
438
|
-
handleTooltipSlotchange(e) {
|
439
|
-
this.tooltipEl = e.target.assignedElements()[0];
|
440
|
-
}
|
441
|
-
renderLabelContent(e) {
|
442
|
-
return this.value && this.selectedItem ? e : c`
|
443
|
-
<slot name="label" id="label">
|
444
|
-
<span aria-hidden=${u(this.appliedLabel ? void 0 : "true")}>
|
445
|
-
${this.label}
|
446
|
-
</span>
|
447
|
-
</slot>
|
448
|
-
`;
|
449
|
-
}
|
450
|
-
get buttonContent() {
|
451
|
-
const e = {
|
452
|
-
"visually-hidden": this.icons === "only" && !!this.value,
|
453
|
-
placeholder: !this.value,
|
454
|
-
label: !0
|
455
|
-
}, o = this.appliedLabel || this.label;
|
456
|
-
return [
|
457
|
-
c`
|
458
|
-
<div id="icon" ?hidden=${this.icons === "none"}>
|
459
|
-
${this.selectedItemContent.icon}
|
460
|
-
</div>
|
461
|
-
<div
|
462
|
-
id=${u(this.value && this.selectedItem ? "label" : void 0)}
|
463
|
-
class=${T(e)}
|
464
|
-
>
|
465
|
-
${this.renderLabelContent(this.selectedItemContent.content)}
|
466
|
-
</div>
|
467
|
-
${this.value && this.selectedItem ? c`
|
468
|
-
<div
|
469
|
-
aria-hidden="true"
|
470
|
-
class="visually-hidden"
|
471
|
-
id="applied-label"
|
472
|
-
>
|
473
|
-
${o}
|
474
|
-
<slot name="label"></slot>
|
475
|
-
</div>
|
476
|
-
` : c` <span hidden id="applied-label">${o}</span> `}
|
477
|
-
${this.invalid && !this.pending ? c` ${this.renderAlertIcon()} ` : w}
|
478
|
-
${this.pendingStateController.renderPendingState()}
|
479
|
-
${this.renderAngleIcon()}
|
480
|
-
<slot
|
481
|
-
aria-hidden="true"
|
482
|
-
name="tooltip"
|
483
|
-
id="tooltip"
|
484
|
-
@slotchange=${this.handleTooltipSlotchange}
|
485
|
-
></slot>
|
486
|
-
`
|
487
|
-
];
|
488
|
-
}
|
489
|
-
renderOverlay(e) {
|
490
|
-
var o, r, n;
|
491
|
-
if (((o = this.strategy) == null ? void 0 : o.overlay) === void 0)
|
492
|
-
return e;
|
493
|
-
const i = this.renderContainer(e);
|
494
|
-
return x(i, (r = this.strategy) == null ? void 0 : r.overlay, {
|
495
|
-
host: this
|
496
|
-
}), (n = this.strategy) == null ? void 0 : n.overlay;
|
497
|
-
}
|
498
|
-
get renderDescriptionSlot() {
|
499
|
-
return c`
|
500
|
-
<div id=${k}>
|
501
|
-
<slot name="description"></slot>
|
502
|
-
</div>
|
503
|
-
`;
|
504
|
-
}
|
505
|
-
// a helper to throw focus to the button is needed because Safari
|
506
|
-
// won't include buttons in the tab order even with tabindex="0"
|
507
|
-
render() {
|
508
|
-
return this.tooltipEl && (this.tooltipEl.disabled = this.open), c`
|
509
|
-
<span
|
510
|
-
id="focus-helper"
|
511
|
-
tabindex=${this.focused || this.open ? "-1" : "0"}
|
512
|
-
@focus=${this.handleHelperFocus}
|
513
|
-
aria-describedby=${k}
|
514
|
-
></span>
|
515
|
-
<button
|
516
|
-
aria-controls=${u(this.open ? "menu" : void 0)}
|
517
|
-
aria-describedby="tooltip"
|
518
|
-
aria-expanded=${this.open ? "true" : "false"}
|
519
|
-
aria-haspopup="true"
|
520
|
-
aria-labelledby="loader icon label applied-label"
|
521
|
-
id="button"
|
522
|
-
class=${u(
|
523
|
-
this.labelAlignment ? `label-${this.labelAlignment}` : void 0
|
524
|
-
)}
|
525
|
-
@blur=${this.handleButtonBlur}
|
526
|
-
@keydown=${{
|
527
|
-
handleEvent: this.handleEnterKeydown,
|
528
|
-
capture: !0
|
529
|
-
}}
|
530
|
-
?disabled=${this.disabled}
|
531
|
-
tabindex="-1"
|
532
|
-
>
|
533
|
-
${this.buttonContent}
|
534
|
-
</button>
|
535
|
-
${this.renderMenu} ${this.renderDescriptionSlot}
|
536
|
-
`;
|
537
|
-
}
|
538
|
-
update(e) {
|
539
|
-
var o, r;
|
540
|
-
this.selects && (this.selects = "single"), e.has("disabled") && this.disabled && this.strategy && (this.open = !1, this.strategy.open = !1), e.has("pending") && this.pending && this.strategy && (this.open = !1, this.strategy.open = !1), e.has("value") && this.shouldScheduleManageSelection(), this.hasUpdated || (this.deprecatedMenu = this.querySelector(":scope > luzmo-menu"), (o = this.deprecatedMenu) == null || o.toggleAttribute("ignore", !0), (r = this.deprecatedMenu) == null || r.setAttribute("selects", "inherit")), super.update(e);
|
541
|
-
}
|
542
|
-
bindButtonKeydownListener() {
|
543
|
-
this.button.addEventListener("keydown", this.handleKeydown);
|
544
|
-
}
|
545
|
-
updated(e) {
|
546
|
-
super.updated(e), e.has("open") && (this.strategy.open = this.open);
|
547
|
-
}
|
548
|
-
firstUpdated(e) {
|
549
|
-
super.firstUpdated(e), this.bindButtonKeydownListener(), this.bindEvents();
|
550
|
-
}
|
551
|
-
get dismissHelper() {
|
552
|
-
return c`
|
553
|
-
<div class="visually-hidden">
|
554
|
-
<button
|
555
|
-
tabindex="-1"
|
556
|
-
aria-label="Dismiss"
|
557
|
-
@click=${this.close}
|
558
|
-
></button>
|
559
|
-
</div>
|
560
|
-
`;
|
561
|
-
}
|
562
|
-
renderContainer(e) {
|
563
|
-
const o = c`
|
564
|
-
${this.dismissHelper} ${e} ${this.dismissHelper}
|
565
|
-
`;
|
566
|
-
return this.dependencyManager.add("luzmo-popover"), import("./index-aYcu00GB.js"), c`
|
567
|
-
<luzmo-popover
|
568
|
-
id="popover"
|
569
|
-
size=${this.size}
|
570
|
-
role="presentation"
|
571
|
-
style=${M(this.containerStyles)}
|
572
|
-
placement=${this.placement}
|
573
|
-
>
|
574
|
-
${o}
|
575
|
-
</luzmo-popover>
|
576
|
-
`;
|
577
|
-
}
|
578
|
-
get renderMenu() {
|
579
|
-
const e = c`
|
580
|
-
<luzmo-menu
|
581
|
-
aria-labelledby="applied-label"
|
582
|
-
@change=${this.handleChange}
|
583
|
-
id="menu"
|
584
|
-
@keydown=${{
|
585
|
-
handleEvent: this.handleEnterKeydown,
|
586
|
-
capture: !0
|
587
|
-
}}
|
588
|
-
@scroll=${this.onScroll}
|
589
|
-
role=${this.listRole}
|
590
|
-
.selects=${this.selects}
|
591
|
-
.selected=${this.value ? [this.value] : []}
|
592
|
-
size=${this.size}
|
593
|
-
@luzmo-menu-item-added-or-updated=${this.shouldManageSelection}
|
594
|
-
>
|
595
|
-
<slot @slotchange=${this.shouldScheduleManageSelection}></slot>
|
596
|
-
</luzmo-menu>
|
597
|
-
`;
|
598
|
-
return this.hasRenderedOverlay = this.hasRenderedOverlay || this.focused || this.open || !!this.deprecatedMenu, this.hasRenderedOverlay ? (this.dependencyManager.loaded && this.dependencyManager.add("luzmo-overlay"), this.renderOverlay(e)) : e;
|
599
|
-
}
|
600
|
-
shouldScheduleManageSelection(e) {
|
601
|
-
!this.willManageSelection && (!e || e.target.getRootNode().host === this) && (this.willManageSelection = !0, requestAnimationFrame(() => {
|
602
|
-
requestAnimationFrame(() => {
|
603
|
-
this.manageSelection();
|
604
|
-
});
|
605
|
-
}));
|
606
|
-
}
|
607
|
-
shouldManageSelection() {
|
608
|
-
this.willManageSelection || (this.willManageSelection = !0, this.manageSelection());
|
609
|
-
}
|
610
|
-
async manageSelection() {
|
611
|
-
if (this.selects == null)
|
612
|
-
return;
|
613
|
-
this.selectionPromise = new Promise(
|
614
|
-
(o) => this.selectionResolver = o
|
615
|
-
);
|
616
|
-
let e;
|
617
|
-
await this.optionsMenu.updateComplete, this.recentlyConnected && (await new Promise((o) => requestAnimationFrame(() => o(!0))), this.recentlyConnected = !1), this.menuItems.forEach((o) => {
|
618
|
-
this.value === o.value && !o.disabled ? e = o : o.selected = !1;
|
619
|
-
}), e ? (e.selected = !!this.selects, this.selectedItem = e) : (this.value = "", this.selectedItem = void 0), this.open && (await this.optionsMenu.updateComplete, this.optionsMenu.updateSelectedItemIndex()), this.selectionResolver(), this.willManageSelection = !1;
|
620
|
-
}
|
621
|
-
async getUpdateComplete() {
|
622
|
-
const e = await super.getUpdateComplete();
|
623
|
-
return await this.selectionPromise, e;
|
624
|
-
}
|
625
|
-
onScroll() {
|
626
|
-
this.dispatchEvent(
|
627
|
-
new Event("scroll", {
|
628
|
-
cancelable: !0,
|
629
|
-
composed: !0
|
630
|
-
})
|
631
|
-
);
|
632
|
-
}
|
633
|
-
}
|
634
|
-
a([
|
635
|
-
p()
|
636
|
-
], l.prototype, "appliedLabel", 2);
|
637
|
-
a([
|
638
|
-
v("#button")
|
639
|
-
], l.prototype, "button", 2);
|
640
|
-
a([
|
641
|
-
s({ type: Boolean, reflect: !0 })
|
642
|
-
], l.prototype, "disabled", 2);
|
643
|
-
a([
|
644
|
-
s({ type: Boolean, reflect: !0 })
|
645
|
-
], l.prototype, "focused", 2);
|
646
|
-
a([
|
647
|
-
s({ type: String, reflect: !0 })
|
648
|
-
], l.prototype, "icons", 2);
|
649
|
-
a([
|
650
|
-
s({ type: String, reflect: !0 })
|
651
|
-
], l.prototype, "variant", 2);
|
652
|
-
a([
|
653
|
-
s({ type: Boolean, reflect: !0 })
|
654
|
-
], l.prototype, "invalid", 2);
|
655
|
-
a([
|
656
|
-
s({ type: Boolean, reflect: !0 })
|
657
|
-
], l.prototype, "pending", 2);
|
658
|
-
a([
|
659
|
-
s({ type: String, attribute: "pending-label" })
|
660
|
-
], l.prototype, "pendingLabel", 2);
|
661
|
-
a([
|
662
|
-
s()
|
663
|
-
], l.prototype, "label", 2);
|
664
|
-
a([
|
665
|
-
s({ type: Boolean, reflect: !0 })
|
666
|
-
], l.prototype, "open", 2);
|
667
|
-
a([
|
668
|
-
s({ type: Boolean, reflect: !0 })
|
669
|
-
], l.prototype, "readonly", 2);
|
670
|
-
a([
|
671
|
-
p()
|
672
|
-
], l.prototype, "labelAlignment", 2);
|
673
|
-
a([
|
674
|
-
v("luzmo-menu")
|
675
|
-
], l.prototype, "optionsMenu", 2);
|
676
|
-
a([
|
677
|
-
v("luzmo-overlay")
|
678
|
-
], l.prototype, "overlayElement", 2);
|
679
|
-
a([
|
680
|
-
s()
|
681
|
-
], l.prototype, "placement", 2);
|
682
|
-
a([
|
683
|
-
s({ type: Boolean, reflect: !0 })
|
684
|
-
], l.prototype, "quiet", 2);
|
685
|
-
a([
|
686
|
-
s({ type: String })
|
687
|
-
], l.prototype, "value", 2);
|
688
|
-
a([
|
689
|
-
s({ attribute: !1 })
|
690
|
-
], l.prototype, "selectedItem", 1);
|
691
|
-
a([
|
692
|
-
p()
|
693
|
-
], l.prototype, "selectedItemContent", 1);
|
694
|
-
class j extends l {
|
695
|
-
constructor() {
|
696
|
-
super(...arguments), this.handleKeydown = (e) => {
|
697
|
-
const { code: o } = e;
|
698
|
-
if (this.focused = !0, !o.startsWith("Arrow") || this.readonly || this.pending)
|
699
|
-
return;
|
700
|
-
if (o === "ArrowUp" || o === "ArrowDown") {
|
701
|
-
this.toggle(!0), e.preventDefault();
|
702
|
-
return;
|
703
|
-
}
|
704
|
-
e.preventDefault();
|
705
|
-
const r = this.selectedItem ? this.menuItems.indexOf(this.selectedItem) : -1, n = r < 0 || o === "ArrowRight" ? 1 : -1;
|
706
|
-
let i = r + n;
|
707
|
-
for (; this.menuItems[i] && this.menuItems[i].disabled; )
|
708
|
-
i += n;
|
709
|
-
!this.menuItems[i] || this.menuItems[i].disabled || (!this.value || i !== r) && this.setValueFromItem(this.menuItems[i]);
|
710
|
-
};
|
711
|
-
}
|
712
|
-
static get styles() {
|
713
|
-
return [I(D)];
|
714
|
-
}
|
715
|
-
get containerStyles() {
|
716
|
-
const e = super.containerStyles;
|
717
|
-
return this.quiet || (e["min-width"] = `${this.offsetWidth}px`), e;
|
718
|
-
}
|
719
|
-
}
|
720
|
-
/*! * Lucero - The design system for Luzmo.
|
721
|
-
*
|
722
|
-
* Copyright © 2025 Luzmo
|
723
|
-
* All rights reserved.
|
724
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
725
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
726
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
727
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
728
|
-
*
|
729
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
730
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
731
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
732
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
733
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
734
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
735
|
-
* SOFTWARE.
|
736
|
-
* */
|
737
|
-
const V = () => {
|
738
|
-
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
739
|
-
const t = document.createElement("style");
|
740
|
-
t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
|
741
|
-
}
|
742
|
-
};
|
743
|
-
V();
|
744
|
-
customElements.get("luzmo-picker") || customElements.define("luzmo-picker", j);
|