@luzmo/analytics-components-kit 1.0.1-alpha.35 → 1.0.1-alpha.38
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/{calculate-data-item-icon-DauSiV8c.js → calculate-data-item-icon-BPZYysi7.js} +23 -23
- package/components/{calculate-data-item-icon-BtUWtDx3.cjs → calculate-data-item-icon-BpMATs29.cjs} +1 -1
- package/components/display-settings/index.cjs +3 -3
- package/components/display-settings/index.js +4 -4
- package/components/display-settings-binning/index.cjs +2 -2
- package/components/display-settings-binning/index.js +12 -12
- package/components/display-settings-datetime/index.cjs +4 -4
- package/components/display-settings-datetime/index.js +10 -10
- package/components/display-settings-grand-totals/index.cjs +2 -2
- package/components/display-settings-grand-totals/index.js +6 -6
- package/components/display-settings-numeric/index.cjs +2 -2
- package/components/display-settings-numeric/index.js +6 -6
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +4 -4
- package/components/draggable-data-item-level/index.cjs +4 -4
- package/components/draggable-data-item-level/index.js +6 -6
- package/components/droppable-slot/index.cjs +3 -3
- package/components/droppable-slot/index.js +3 -3
- package/components/edit-item/index.cjs +5 -5
- package/components/edit-item/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +1 -1
- package/components/edit-option-action-button-group/index.js +21 -21
- package/components/{edit-option-base-Brji81Gq.js → edit-option-base-BHvx3Mlq.js} +1 -1
- package/components/{edit-option-base-DDvWhumg.cjs → edit-option-base-J7XNb_vp.cjs} +1 -1
- package/components/edit-option-color-picker/index.cjs +51 -67
- package/components/edit-option-color-picker/index.js +4533 -1376
- 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 +2 -2
- package/components/edit-option-positions-number-field/index.js +7 -7
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +2 -2
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- 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/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +4 -4
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -1
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +9 -9
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +2 -2
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +2 -2
- package/components/{index-C8XzR0jl.js → index-0AQhhYNR.js} +4 -4
- package/components/{index-b3FPYSZk.js → index-5UNCjfdE.js} +2 -2
- package/components/{index-Tx5oQjbt.cjs → index-B0rH2mr9.cjs} +1 -1
- package/components/{index-C2TAa6lH.cjs → index-B4EIbvuW.cjs} +7 -7
- package/components/{index-D7LSPBqz.js → index-BFPa6sJd.js} +1 -1
- package/components/{index-BC1LV3vH.js → index-BNBJLKST.js} +1 -1
- package/components/{index-C0rOztJP.cjs → index-BhpqKmwq.cjs} +1 -1
- package/components/{index-Dj9-40eZ.js → index-BlLF9xYw.js} +5 -5
- package/components/{index-DbPlCKPI.cjs → index-C0mIH6sE.cjs} +1 -1
- package/components/{index-cHKqEi5-.cjs → index-C7pagyza.cjs} +3 -3
- package/components/{index-DSQyBS9Z.cjs → index-CKenYdIM.cjs} +1 -1
- package/components/{index-B888fnYx.cjs → index-COiTyPcJ.cjs} +1 -1
- package/components/{index-DE3d0E0P.js → index-CyAospmR.js} +2 -2
- package/components/{index-Cbm8MFTj.js → index-D5asknFy.js} +5 -5
- package/components/{index-rQxtPaJl.js → index-DDR_JmOh.js} +1 -1
- package/components/{index-CbuHBIDB.js → index-DFe4VuxB.js} +2 -2
- package/components/{index-CYqSw2_J.cjs → index-DJKhZGty.cjs} +14 -14
- package/components/{index-Rydj3Txs.js → index-Dh6CgbzT.js} +51 -52
- package/components/{index-CBOAQ3-E.cjs → index-ROT368zu.cjs} +5 -5
- package/components/{index-PfWxaas9.cjs → index-eHmbYtYG.cjs} +3 -3
- package/components/{index-Desl7GJ0.js → index-jlphu2Tm.js} +2 -2
- package/components/{index-C2PPSv8E.cjs → index-uoJRMChX.cjs} +2 -2
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/{luzmo-icons-CPucBq6e.js → luzmo-icons-BZPchcMw.js} +61 -61
- package/components/{luzmo-icons-Nyf1P71v.cjs → luzmo-icons-BpFUFRQm.cjs} +2 -2
- package/components/{luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs → luzmo-icons-NEyaMpEM-1fxXxs3F.cjs} +2 -2
- package/components/{luzmo-icons-DbwDQtuO-QG0fLECn.js → luzmo-icons-NEyaMpEM-DbyDs_5B.js} +9 -9
- package/components/{pending-state-DTX7ggyF-qbk3sPcq.js → pending-state-DTX7ggyF-B_9VbFxI.js} +2 -2
- package/components/{pending-state-DTX7ggyF-B5ihSygL.cjs → pending-state-DTX7ggyF-C_go9EJh.cjs} +1 -1
- package/components/slot-menu/index.cjs +4 -4
- package/components/slot-menu/index.js +1 -1
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +6 -6
- package/components/{text-field-BIADXoLC-B8w9TVmS.cjs → text-field-B9IkRRxO-CRU1UGaM.cjs} +1 -1
- package/components/{text-field-BIADXoLC-B9oE05VF.js → text-field-B9IkRRxO-CWWQN_rn.js} +1 -1
- package/package.json +1 -1
@@ -21,7 +21,7 @@ import { v as Ne, o as Be, R as j, a as ve, I as ye, z as w, d as be, w as we }
|
|
21
21
|
import { _ as It, $ as qe, s as _e, n as ft } from "./directive-helpers-Cm6gitnu-CeYtlPO9.js";
|
22
22
|
import { m as Ft, d as vt } from "./if-defined-DOaE2coe-CNT45Xcl.js";
|
23
23
|
import { d as He, n as Mt, h as Ie, u as Bt } from "./element-resolution-FCUT-wql--7ctE626.js";
|
24
|
-
import { t as yt } from "./index-
|
24
|
+
import { t as yt } from "./index-BFPa6sJd.js";
|
25
25
|
import { c as le, a as Me, w as We, C as Ue } from "./async-directive-BfcqVjDp-BCT-lA4F.js";
|
26
26
|
/*! * Lucero - The design system for Luzmo.
|
27
27
|
*
|
@@ -175,10 +175,10 @@ const Ge = (e, t, {
|
|
175
175
|
return function() {
|
176
176
|
return Ke(r, e, a);
|
177
177
|
};
|
178
|
-
},
|
179
|
-
class
|
178
|
+
}, Je = 1e3, Xe = 1e3;
|
179
|
+
class Ze {
|
180
180
|
constructor(t = {}) {
|
181
|
-
this.warmUpDelay =
|
181
|
+
this.warmUpDelay = Je, this.coolDownDelay = Xe, this.isWarm = !1, this.timeout = 0, Object.assign(this, t);
|
182
182
|
}
|
183
183
|
openTimer(t) {
|
184
184
|
if (this.cancelCooldownTimer(), !this.component || t !== this.component)
|
@@ -203,7 +203,7 @@ class Ye {
|
|
203
203
|
this.cooldownTimeout && window.clearTimeout(this.cooldownTimeout), delete this.cooldownTimeout;
|
204
204
|
}
|
205
205
|
}
|
206
|
-
const lt = new
|
206
|
+
const lt = new Ze(), V = () => {
|
207
207
|
}, bt = (e, t, n) => {
|
208
208
|
const o = new AbortController(), i = /* @__PURE__ */ new Map(), s = () => {
|
209
209
|
o.abort(), n();
|
@@ -237,7 +237,7 @@ const lt = new Ye(), V = () => {
|
|
237
237
|
function k() {
|
238
238
|
return new Promise((e) => requestAnimationFrame(() => e()));
|
239
239
|
}
|
240
|
-
class
|
240
|
+
class Z extends ye {
|
241
241
|
constructor() {
|
242
242
|
super(...arguments), this.dispose = V, this.offset = 0, this.willPreventClose = !1;
|
243
243
|
}
|
@@ -333,7 +333,7 @@ class Y extends ye {
|
|
333
333
|
}), r.open = !1, r.dispose = V;
|
334
334
|
}, !s && l && i) {
|
335
335
|
const d = t, p = n, u = i;
|
336
|
-
return
|
336
|
+
return Z.applyOptions(r, {
|
337
337
|
...u,
|
338
338
|
delayed: u.delayed || l.hasAttribute("delayed"),
|
339
339
|
trigger: u.virtualTrigger || d,
|
@@ -341,7 +341,7 @@ class Y extends ye {
|
|
341
341
|
}), d.after(r), await r.updateComplete, r.open = !0, r.dispose;
|
342
342
|
}
|
343
343
|
const h = n;
|
344
|
-
return r.append(l),
|
344
|
+
return r.append(l), Z.applyOptions(r, {
|
345
345
|
...h,
|
346
346
|
delayed: h.delayed || l.hasAttribute("delayed")
|
347
347
|
}), r.updateComplete.then(() => {
|
@@ -391,7 +391,7 @@ class ct {
|
|
391
391
|
this.x = 0, this.y = 0, this.x = t, this.y = n;
|
392
392
|
}
|
393
393
|
updateBoundingClientRect(t, n) {
|
394
|
-
this.x = t, this.y = n,
|
394
|
+
this.x = t, this.y = n, Z.update();
|
395
395
|
}
|
396
396
|
getBoundingClientRect() {
|
397
397
|
return {
|
@@ -409,7 +409,7 @@ class ct {
|
|
409
409
|
};
|
410
410
|
}
|
411
411
|
}
|
412
|
-
function
|
412
|
+
function Ye(e) {
|
413
413
|
class t extends e {
|
414
414
|
async manageDialogOpen() {
|
415
415
|
const o = this.open;
|
@@ -798,7 +798,7 @@ class no {
|
|
798
798
|
this.closeOverlay(t);
|
799
799
|
}
|
800
800
|
}
|
801
|
-
const he = new no(), io = ':host{display:contents;pointer-events:none;--luzmo-overlay-animation-distance: .5rem}:host(:has(> luzmo-tooltip)){--luzmo-overlay-animation-distance: var( --luzmo-tooltip-animation-distance, 4px )}.dialog{margin:0;border:0;background:none;padding:0;position:fixed;overflow:visible;opacity:1!important;box-sizing:border-box;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);height:auto;inset:auto;top:0;left:0;display:flex;--luzmo-overlay-open: true}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}:host(:not([open])) .dialog{--luzmo-overlay-open: false}.dialog::backdrop{display:none}.dialog:before{position:absolute;top:-999em;right:-999em;bottom:-999em;left:-999em;content:"";pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(luzmo-popover){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports (overlay: auto){.dialog{display:none;transition:all var(--luzmo-overlay-animation-duration, .13s),translate 0s,display var(--luzmo-overlay-animation-duration, .13s);transition-behavior:allow-discrete}.dialog:popover-open,.dialog:modal{display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--luzmo-overlay-z-index-base, 1000) + var(--luzmo-overlay-open-count))}}',
|
801
|
+
const he = new no(), io = ':host{display:contents;pointer-events:none;--luzmo-overlay-animation-distance: .5rem}:host(:has(> luzmo-tooltip)){--luzmo-overlay-animation-distance: var( --luzmo-tooltip-animation-distance, 4px )}.dialog{margin:0;border:0;background:none;padding:0;position:fixed;overflow:visible;opacity:1!important;box-sizing:border-box;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);height:auto;inset:auto;top:0;left:0;display:flex;--luzmo-overlay-open: true}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}:host(:not([open])) .dialog{--luzmo-overlay-open: false}.dialog::backdrop{display:none}.dialog:before{position:absolute;top:-999em;right:-999em;bottom:-999em;left:-999em;content:"";pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(luzmo-popover){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--luzmo-popover-filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, .15))}}@supports (overlay: auto){.dialog{display:none;transition:all var(--luzmo-overlay-animation-duration, .13s),translate 0s,display var(--luzmo-overlay-animation-duration, .13s);transition-behavior:allow-discrete}.dialog:popover-open,.dialog:modal{display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--luzmo-overlay-z-index-base, 1000) + var(--luzmo-overlay-open-count))}}', Y = Math.min, L = Math.max, Tt = Math.round, zt = Math.floor, H = (e) => ({
|
802
802
|
x: e,
|
803
803
|
y: e
|
804
804
|
}), so = {
|
@@ -811,7 +811,7 @@ const he = new no(), io = ':host{display:contents;pointer-events:none;--luzmo-ov
|
|
811
811
|
end: "start"
|
812
812
|
};
|
813
813
|
function qt(e, t, n) {
|
814
|
-
return L(e,
|
814
|
+
return L(e, Y(t, n));
|
815
815
|
}
|
816
816
|
function ht(e, t) {
|
817
817
|
return typeof e == "function" ? e(t) : e;
|
@@ -1012,7 +1012,7 @@ const po = async (e, t, n) => {
|
|
1012
1012
|
middlewareData: u
|
1013
1013
|
};
|
1014
1014
|
};
|
1015
|
-
async function
|
1015
|
+
async function Jt(e, t) {
|
1016
1016
|
var n;
|
1017
1017
|
t === void 0 && (t = {});
|
1018
1018
|
const {
|
@@ -1081,7 +1081,7 @@ const mo = (e) => ({
|
|
1081
1081
|
}, u = Gt(i), m = Kt(u), g = await l.getDimensions(c), f = u === "y", v = f ? "top" : "left", y = f ? "bottom" : "right", b = f ? "clientHeight" : "clientWidth", x = s.reference[m] + s.reference[u] - p[u] - s.floating[m], z = p[u] - s.reference[u], S = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
|
1082
1082
|
let A = S ? S[b] : 0;
|
1083
1083
|
(!A || !await (l.isElement == null ? void 0 : l.isElement(S))) && (A = r.floating[b] || s.floating[m]);
|
1084
|
-
const W = x / 2 - z / 2, B = A / 2 - g[m] / 2 - 1, $ =
|
1084
|
+
const W = x / 2 - z / 2, B = A / 2 - g[m] / 2 - 1, $ = Y(d[v], B), K = Y(d[y], B), q = $, G = A - g[m] - K, O = A / 2 - g[m] / 2 + W, it = qt(q, O, G), U = !a.arrow && dt(i) != null && O !== it && s.reference[m] / 2 - (O < q ? $ : K) - g[m] / 2 < 0, _ = U ? O < q ? O - q : O - G : 0;
|
1085
1085
|
return {
|
1086
1086
|
[u]: p[u] + _,
|
1087
1087
|
data: {
|
@@ -1120,7 +1120,7 @@ const mo = (e) => ({
|
|
1120
1120
|
return {};
|
1121
1121
|
const v = Q(i), y = ot(r), b = Q(r) === r, x = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), z = p || (b || !g ? [kt(r)] : ao(r)), S = m !== "none";
|
1122
1122
|
!p && S && z.push(...ho(r, g, m, x));
|
1123
|
-
const A = [r, ...z], W = await
|
1123
|
+
const A = [r, ...z], W = await Jt(t, f), B = [];
|
1124
1124
|
let $ = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
1125
1125
|
if (h && B.push(W[v]), d) {
|
1126
1126
|
const O = lo(i, l, x);
|
@@ -1142,20 +1142,20 @@ const mo = (e) => ({
|
|
1142
1142
|
placement: it
|
1143
1143
|
}
|
1144
1144
|
};
|
1145
|
-
let U = (q = $.filter((_) => _.overflows[0] <= 0).sort((_,
|
1145
|
+
let U = (q = $.filter((_) => _.overflows[0] <= 0).sort((_, J) => _.overflows[1] - J.overflows[1])[0]) == null ? void 0 : q.placement;
|
1146
1146
|
if (!U)
|
1147
1147
|
switch (u) {
|
1148
1148
|
case "bestFit": {
|
1149
1149
|
var G;
|
1150
|
-
const _ = (G = $.filter((
|
1150
|
+
const _ = (G = $.filter((J) => {
|
1151
1151
|
if (S) {
|
1152
|
-
const
|
1153
|
-
return
|
1152
|
+
const X = ot(J.placement);
|
1153
|
+
return X === y || // Create a bias to the `y` side axis due to horizontal
|
1154
1154
|
// reading directions favoring greater width.
|
1155
|
-
|
1155
|
+
X === "y";
|
1156
1156
|
}
|
1157
1157
|
return !0;
|
1158
|
-
}).map((
|
1158
|
+
}).map((J) => [J.placement, J.overflows.filter((X) => X > 0).reduce((X, Fe) => X + Fe, 0)]).sort((J, X) => J[1] - X[1])[0]) == null ? void 0 : G[0];
|
1159
1159
|
_ && (U = _);
|
1160
1160
|
break;
|
1161
1161
|
}
|
@@ -1251,7 +1251,7 @@ const vo = function(e) {
|
|
1251
1251
|
} = ht(e, t), c = {
|
1252
1252
|
x: n,
|
1253
1253
|
y: o
|
1254
|
-
}, h = await
|
1254
|
+
}, h = await Jt(t, a), d = ot(Q(i)), p = ze(d);
|
1255
1255
|
let u = c[p], m = c[d];
|
1256
1256
|
if (s) {
|
1257
1257
|
const f = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = u + h[f], b = u - h[v];
|
@@ -1294,13 +1294,13 @@ const vo = function(e) {
|
|
1294
1294
|
apply: a = () => {
|
1295
1295
|
},
|
1296
1296
|
...c
|
1297
|
-
} = ht(e, t), h = await
|
1297
|
+
} = ht(e, t), h = await Jt(t, c), d = Q(i), p = dt(i), u = ot(i) === "y", {
|
1298
1298
|
width: m,
|
1299
1299
|
height: g
|
1300
1300
|
} = s.floating;
|
1301
1301
|
let f, v;
|
1302
1302
|
d === "top" || d === "bottom" ? (f = d, v = p === (await (l.isRTL == null ? void 0 : l.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (v = d, f = p === "end" ? "top" : "bottom");
|
1303
|
-
const y = g - h.top - h.bottom, b = m - h.left - h.right, x =
|
1303
|
+
const y = g - h.top - h.bottom, b = m - h.left - h.right, x = Y(g - h[f], y), z = Y(m - h[v], b), S = !t.middlewareData.shift;
|
1304
1304
|
let A = x, W = z;
|
1305
1305
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (W = b), (o = t.middlewareData.shift) != null && o.enabled.y && (A = y), S && !p) {
|
1306
1306
|
const $ = L(h.left, 0), K = L(h.right, 0), q = L(h.top, 0), G = L(h.bottom, 0);
|
@@ -1367,14 +1367,14 @@ function $t(e) {
|
|
1367
1367
|
}
|
1368
1368
|
});
|
1369
1369
|
}
|
1370
|
-
function
|
1371
|
-
const t =
|
1370
|
+
function Xt(e) {
|
1371
|
+
const t = Zt(), n = F(e) ? N(e) : e;
|
1372
1372
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
1373
1373
|
}
|
1374
1374
|
function xo(e) {
|
1375
1375
|
let t = tt(e);
|
1376
1376
|
for (; I(t) && !at(t); ) {
|
1377
|
-
if (
|
1377
|
+
if (Xt(t))
|
1378
1378
|
return t;
|
1379
1379
|
if ($t(t))
|
1380
1380
|
return null;
|
@@ -1382,7 +1382,7 @@ function xo(e) {
|
|
1382
1382
|
}
|
1383
1383
|
return null;
|
1384
1384
|
}
|
1385
|
-
function
|
1385
|
+
function Zt() {
|
1386
1386
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
1387
1387
|
}
|
1388
1388
|
function at(e) {
|
@@ -1439,11 +1439,11 @@ function Te(e) {
|
|
1439
1439
|
$: r
|
1440
1440
|
};
|
1441
1441
|
}
|
1442
|
-
function
|
1442
|
+
function Yt(e) {
|
1443
1443
|
return F(e) ? e : e.contextElement;
|
1444
1444
|
}
|
1445
1445
|
function rt(e) {
|
1446
|
-
const t =
|
1446
|
+
const t = Yt(e);
|
1447
1447
|
if (!I(t))
|
1448
1448
|
return H(1);
|
1449
1449
|
const n = t.getBoundingClientRect(), {
|
@@ -1460,7 +1460,7 @@ function rt(e) {
|
|
1460
1460
|
const Eo = /* @__PURE__ */ H(0);
|
1461
1461
|
function ke(e) {
|
1462
1462
|
const t = R(e);
|
1463
|
-
return !
|
1463
|
+
return !Zt() || !t.visualViewport ? Eo : {
|
1464
1464
|
x: t.visualViewport.offsetLeft,
|
1465
1465
|
y: t.visualViewport.offsetTop
|
1466
1466
|
};
|
@@ -1470,7 +1470,7 @@ function zo(e, t, n) {
|
|
1470
1470
|
}
|
1471
1471
|
function nt(e, t, n, o) {
|
1472
1472
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
1473
|
-
const i = e.getBoundingClientRect(), s =
|
1473
|
+
const i = e.getBoundingClientRect(), s = Yt(e);
|
1474
1474
|
let l = H(1);
|
1475
1475
|
t && (o ? F(o) && (l = rt(o)) : l = rt(e));
|
1476
1476
|
const r = zo(s, n, o) ? ke(s) : H(0);
|
@@ -1551,7 +1551,7 @@ function To(e, t) {
|
|
1551
1551
|
let s = o.clientWidth, l = o.clientHeight, r = 0, a = 0;
|
1552
1552
|
if (i) {
|
1553
1553
|
s = i.width, l = i.height;
|
1554
|
-
const c =
|
1554
|
+
const c = Zt();
|
1555
1555
|
(!c || c && t === "fixed") && (r = i.offsetLeft, a = i.offsetTop);
|
1556
1556
|
}
|
1557
1557
|
return {
|
@@ -1601,7 +1601,7 @@ function So(e, t) {
|
|
1601
1601
|
const s = N(e).position === "fixed";
|
1602
1602
|
let l = s ? tt(e) : e;
|
1603
1603
|
for (; F(l) && !at(l); ) {
|
1604
|
-
const r = N(l), a =
|
1604
|
+
const r = N(l), a = Xt(l);
|
1605
1605
|
!a && r.position === "fixed" && (i = null), (s ? !a && !i : !a && r.position === "static" && i && ["absolute", "fixed"].includes(i.position) || wt(l) && !a && Le(e, l)) ? o = o.filter((c) => c !== l) : i = r, l = tt(l);
|
1606
1606
|
}
|
1607
1607
|
return t.set(e, o), o;
|
@@ -1615,7 +1615,7 @@ function Lo(e) {
|
|
1615
1615
|
} = e;
|
1616
1616
|
const s = [...n === "clippingAncestors" ? $t(t) ? [] : So(t, this._c) : [].concat(n), o], l = s[0], r = s.reduce((a, c) => {
|
1617
1617
|
const h = pe(t, c, i);
|
1618
|
-
return a.top = L(h.top, a.top), a.right =
|
1618
|
+
return a.top = L(h.top, a.top), a.right = Y(h.right, a.right), a.bottom = Y(h.bottom, a.bottom), a.left = L(h.left, a.left), a;
|
1619
1619
|
}, pe(t, l, i));
|
1620
1620
|
return {
|
1621
1621
|
width: r.right - r.left,
|
@@ -1681,7 +1681,7 @@ function Re(e, t) {
|
|
1681
1681
|
let o = me(e, t);
|
1682
1682
|
for (; o && wo(o) && Nt(o); )
|
1683
1683
|
o = me(o, t);
|
1684
|
-
return o && at(o) && Nt(o) && !
|
1684
|
+
return o && at(o) && Nt(o) && !Xt(o) ? n : o || xo(e) || n;
|
1685
1685
|
}
|
1686
1686
|
const $o = async function(e) {
|
1687
1687
|
const t = this.getOffsetParent || Re, n = this.getDimensions, o = await n(e.floating);
|
@@ -1732,7 +1732,7 @@ function No(e, t) {
|
|
1732
1732
|
return;
|
1733
1733
|
const m = zt(d), g = zt(i.clientWidth - (h + p)), f = zt(i.clientHeight - (d + u)), v = zt(h), y = {
|
1734
1734
|
rootMargin: -m + "px " + -g + "px " + -f + "px " + -v + "px",
|
1735
|
-
threshold: L(0,
|
1735
|
+
threshold: L(0, Y(1, a)) || 1
|
1736
1736
|
};
|
1737
1737
|
let b = !0;
|
1738
1738
|
function x(z) {
|
@@ -1767,7 +1767,7 @@ function ge(e, t, n, o) {
|
|
1767
1767
|
elementResize: l = typeof ResizeObserver == "function",
|
1768
1768
|
layoutShift: r = typeof IntersectionObserver == "function",
|
1769
1769
|
animationFrame: a = !1
|
1770
|
-
} = o, c =
|
1770
|
+
} = o, c = Yt(e), h = i || s ? [...c ? mt(c) : [], ...mt(t)] : [];
|
1771
1771
|
h.forEach((v) => {
|
1772
1772
|
i && v.addEventListener("scroll", n, {
|
1773
1773
|
passive: !0
|
@@ -2305,7 +2305,7 @@ var Vo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, P = (e, t,
|
|
2305
2305
|
return o && i && Vo(t, n, i), i;
|
2306
2306
|
};
|
2307
2307
|
const Go = "showPopover" in document.createElement("div");
|
2308
|
-
let Pt =
|
2308
|
+
let Pt = Ye(Z);
|
2309
2309
|
Pt = Go ? eo(Pt) : Qe(Pt);
|
2310
2310
|
var st;
|
2311
2311
|
const C = (st = class extends Pt {
|
@@ -2318,8 +2318,7 @@ const C = (st = class extends Pt {
|
|
2318
2318
|
composed: !0
|
2319
2319
|
});
|
2320
2320
|
e.relatedTarget.addEventListener(t.type, (n) => {
|
2321
|
-
|
2322
|
-
console.log("isWithinOverlay", e, n, i, o, this), i || (this.open = !1);
|
2321
|
+
n.composedPath().includes(this) || (this.open = !1);
|
2323
2322
|
}), e.relatedTarget.dispatchEvent(t);
|
2324
2323
|
};
|
2325
2324
|
}
|
@@ -2845,7 +2844,7 @@ const Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2845
2844
|
C: ee,
|
2846
2845
|
H: oe,
|
2847
2846
|
I: et,
|
2848
|
-
L:
|
2847
|
+
L: Z,
|
2849
2848
|
P: te,
|
2850
2849
|
S: pt,
|
2851
2850
|
V: ct,
|
@@ -2879,25 +2878,25 @@ const Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2879
2878
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
2880
2879
|
* SOFTWARE.
|
2881
2880
|
* */
|
2882
|
-
const
|
2881
|
+
const Jo = () => {
|
2883
2882
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
2884
2883
|
const e = document.createElement("style");
|
2885
2884
|
e.setAttribute("data-luzmo-vars", ""), e.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-disabled-color);--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-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #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(e);
|
2886
2885
|
}
|
2887
2886
|
};
|
2888
|
-
|
2889
|
-
const
|
2890
|
-
var
|
2887
|
+
Jo();
|
2888
|
+
const Xo = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
|
2889
|
+
var Zo = Object.defineProperty, T = (e, t, n, o) => {
|
2891
2890
|
for (var i = void 0, s = e.length - 1, l; s >= 0; s--)
|
2892
2891
|
(l = e[s]) && (i = l(t, n, i) || i);
|
2893
|
-
return i &&
|
2892
|
+
return i && Zo(t, n, i), i;
|
2894
2893
|
};
|
2895
2894
|
class E extends ye {
|
2896
2895
|
constructor() {
|
2897
2896
|
super(...arguments), this.content = "click hover longpress", this.offset = 6, this.disabled = !1, this.receivesFocus = "auto", this.clickContent = [], this.longpressContent = [], this.hoverContent = [], this.targetContent = [];
|
2898
2897
|
}
|
2899
2898
|
static get styles() {
|
2900
|
-
return [ve(
|
2899
|
+
return [ve(Xo)];
|
2901
2900
|
}
|
2902
2901
|
getAssignedElementsFromSlot(t) {
|
2903
2902
|
return t.assignedElements({ flatten: !0 });
|
@@ -3073,7 +3072,7 @@ T([
|
|
3073
3072
|
T([
|
3074
3073
|
vt("#hover-overlay", !0)
|
3075
3074
|
], E.prototype, "hoverOverlayElement");
|
3076
|
-
function
|
3075
|
+
function Yo(e, t, n, o) {
|
3077
3076
|
return Et.open(
|
3078
3077
|
e,
|
3079
3078
|
t,
|
@@ -3160,7 +3159,7 @@ class De extends re {
|
|
3160
3159
|
), i)
|
3161
3160
|
this.overlay.remove();
|
3162
3161
|
else {
|
3163
|
-
|
3162
|
+
Z.applyOptions(this.overlay, {
|
3164
3163
|
...this.options,
|
3165
3164
|
trigger: this.target
|
3166
3165
|
});
|
@@ -3180,7 +3179,7 @@ const cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3180
3179
|
InteractionTypes: et,
|
3181
3180
|
LONGPRESS_INSTRUCTIONS: ne,
|
3182
3181
|
LongpressController: ie,
|
3183
|
-
LuzmoAbstractOverlay:
|
3182
|
+
LuzmoAbstractOverlay: Z,
|
3184
3183
|
LuzmoOverlay: Et,
|
3185
3184
|
LuzmoOverlayTrigger: E,
|
3186
3185
|
OverlayTriggerDirective: De,
|
@@ -3193,7 +3192,7 @@ const cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3193
3192
|
lastInteractionType: gt,
|
3194
3193
|
nextFrame: k,
|
3195
3194
|
noop: V,
|
3196
|
-
openOverlay:
|
3195
|
+
openOverlay: Yo,
|
3197
3196
|
overlayTimer: lt,
|
3198
3197
|
placementUpdatedSymbol: $e,
|
3199
3198
|
removeSlottableRequest: Rt,
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const v=require("./luzmo-icons-
|
20
|
+
"use strict";const v=require("./luzmo-icons-NEyaMpEM-1fxXxs3F.cjs"),u=require("./base-D76d76ww-tT6yr8eb.cjs"),X=require("./if-defined-DOaE2coe-Cvlu5s9n.cjs"),g=require("./async-directive-BfcqVjDp-C8C45jl6.cjs"),C=require("./streaming-listener-CP-JE6Fa-DMzr1X1m.cjs"),Y=require("./button-base-DbkDzb71-CY6MJGqE.cjs"),G=require("./text-field-B9IkRRxO-CRU1UGaM.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -33,7 +33,7 @@
|
|
33
33
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
35
35
|
* SOFTWARE.
|
36
|
-
* */let
|
36
|
+
* */let N=new Map,D=!1;try{D=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let x=!1;try{x=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const O={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class f{format(o){let e="";if(!D&&this.options.signDisplay!=null?e=J(this.numberFormatter,this.options.signDisplay,o):e=this.numberFormatter.format(o),this.options.style==="unit"&&!x){var t;let{unit:r,unitDisplay:i="short",locale:n}=this.resolvedOptions();if(!r)return e;let s=(t=O[r])===null||t===void 0?void 0:t[i];e+=s[n]||s.default}return e}formatToParts(o){return this.numberFormatter.formatToParts(o)}formatRange(o,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(o,e);if(e<o)throw new RangeError("End date must be >= start date");return`${this.format(o)} – ${this.format(e)}`}formatRangeToParts(o,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(o,e);if(e<o)throw new RangeError("End date must be >= start date");let t=this.numberFormatter.formatToParts(o),r=this.numberFormatter.formatToParts(e);return[...t.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let o=this.numberFormatter.resolvedOptions();return!D&&this.options.signDisplay!=null&&(o={...o,signDisplay:this.options.signDisplay}),!x&&this.options.style==="unit"&&(o={...o,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),o}constructor(o,e={}){this.numberFormatter=Z(o,e),this.options=e}}function Z(l,o={}){let{numberingSystem:e}=o;if(e&&l.includes("-nu-")&&(l.includes("-u-")||(l+="-u-"),l+=`-nu-${e}`),o.style==="unit"&&!x){var t;let{unit:n,unitDisplay:s="short"}=o;if(!n)throw new Error('unit option must be provided with style: "unit"');if(!(!((t=O[n])===null||t===void 0)&&t[s]))throw new Error(`Unsupported unit ${n} with unitDisplay = ${s}`);o={...o,style:"decimal"}}let r=l+(o?Object.entries(o).sort((n,s)=>n[0]<s[0]?-1:1).join():"");if(N.has(r))return N.get(r);let i=new Intl.NumberFormat(l,o);return N.set(r,i),i}function J(l,o,e){if(o==="auto")return l.format(e);if(o==="never")return l.format(Math.abs(e));{let t=!1;if(o==="always"?t=e>0||Object.is(e,0):o==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):t=e>0),t){let r=l.format(-e),i=l.format(e),n=r.replace(i,"").replace(/\u200e|\u061C/,"");return[...n].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),r.replace(i,"!!!").replace(n,"+").replace("!!!",i)}else return l.format(e)}}/*! * Lucero - The design system for Luzmo.
|
37
37
|
*
|
38
38
|
* Copyright © 2025 Luzmo
|
39
39
|
* All rights reserved.
|
@@ -49,7 +49,7 @@
|
|
49
49
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
50
50
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
51
51
|
* SOFTWARE.
|
52
|
-
* */const Q=new RegExp("^.*\\(.*\\).*$"),oo=["latn","arab","hanidec","deva","beng"];class y{parse(o){return
|
52
|
+
* */const Q=new RegExp("^.*\\(.*\\).*$"),oo=["latn","arab","hanidec","deva","beng"];class y{parse(o){return q(this.locale,this.options,o).parse(o)}isValidPartialNumber(o,e,t){return q(this.locale,this.options,o).isValidPartialNumber(o,e,t)}getNumberingSystem(o){return q(this.locale,this.options,o).options.numberingSystem}constructor(o,e={}){this.locale=o,this.options=e}}const _=new Map;function q(l,o,e){let t=V(l,o);if(!l.includes("-nu-")&&!t.isValidPartialNumber(e)){for(let r of oo)if(r!==t.options.numberingSystem){let i=V(l+(l.includes("-u-")?"-nu-":"-u-nu-")+r,o);if(i.isValidPartialNumber(e))return i}}return t}function V(l,o){let e=l+(o?Object.entries(o).sort((r,i)=>r[0]<i[0]?-1:1).join():""),t=_.get(e);return t||(t=new eo(l,o),_.set(e,t)),t}class eo{parse(o){let e=this.sanitize(o);if(this.symbols.group&&(e=m(e,this.symbols.group,"")),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(e=e.replace(this.symbols.minusSign,"-")),e=e.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let n=e.indexOf("-");e=e.replace("-","");let s=e.indexOf(".");s===-1&&(s=e.length),e=e.replace(".",""),s-2===0?e=`0.${e}`:s-2===-1?e=`0.0${e}`:s-2===-2?e="0.00":e=`${e.slice(0,s-2)}.${e.slice(s-2)}`,n>-1&&(e=`-${e}`)}let t=e?+e:NaN;if(isNaN(t))return NaN;if(this.options.style==="percent"){var r,i;let n={...this.options,style:"decimal",minimumFractionDigits:Math.min(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new y(this.locale,n).parse(new f(this.locale,n).format(t))}return this.options.currencySign==="accounting"&&Q.test(o)&&(t=-1*t),t}sanitize(o){return o=o.replace(this.symbols.literals,""),this.symbols.minusSign&&(o=o.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(o=o.replace(",",this.symbols.decimal),o=o.replace("،",this.symbols.decimal)),this.symbols.group&&(o=m(o,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(o=m(o," ",this.symbols.group),o=m(o,/\u00A0/g,this.symbols.group)),o}isValidPartialNumber(o,e=-1/0,t=1/0){return o=this.sanitize(o),this.symbols.minusSign&&o.startsWith(this.symbols.minusSign)&&e<0?o=o.slice(this.symbols.minusSign.length):this.symbols.plusSign&&o.startsWith(this.symbols.plusSign)&&t>0&&(o=o.slice(this.symbols.plusSign.length)),this.symbols.group&&o.startsWith(this.symbols.group)||this.symbols.decimal&&o.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(o=m(o,this.symbols.group,"")),o=o.replace(this.symbols.numeral,""),this.symbols.decimal&&(o=o.replace(this.symbols.decimal,"")),o.length===0)}constructor(o,e={}){this.locale=o,this.formatter=new Intl.NumberFormat(o,e),this.options=this.formatter.resolvedOptions(),this.symbols=ro(o,this.formatter,this.options,e);var t,r;this.options.style==="percent"&&(((t=this.options.minimumFractionDigits)!==null&&t!==void 0?t:0)>18||((r=this.options.maximumFractionDigits)!==null&&r!==void 0?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const R=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),to=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ro(l,o,e,t){var r,i,n,s;let d=new Intl.NumberFormat(l,{...e,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),p=d.formatToParts(-10000.111),M=d.formatToParts(10000.111),j=to.map(a=>d.formatToParts(a));var k;let T=(k=(r=p.find(a=>a.type==="minusSign"))===null||r===void 0?void 0:r.value)!==null&&k!==void 0?k:"-",F=(i=M.find(a=>a.type==="plusSign"))===null||i===void 0?void 0:i.value;!F&&((t==null?void 0:t.signDisplay)==="exceptZero"||(t==null?void 0:t.signDisplay)==="always")&&(F="+");let B=(n=new Intl.NumberFormat(l,{...e,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(a=>a.type==="decimal"))===null||n===void 0?void 0:n.value,U=(s=p.find(a=>a.type==="group"))===null||s===void 0?void 0:s.value,A=p.filter(a=>!R.has(a.type)).map(a=>$(a.value)),H=j.flatMap(a=>a.filter(h=>!R.has(h.type)).map(h=>$(h.value))),S=[...new Set([...A,...H])].sort((a,h)=>h.length-a.length),L=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),P=[...new Intl.NumberFormat(e.locale,{useGrouping:!1}).format(9876543210)].reverse(),W=new Map(P.map((a,h)=>[a,h])),K=new RegExp(`[${P.join("")}]`,"g");return{minusSign:T,plusSign:F,decimal:B,group:U,literals:L,numeral:K,index:a=>String(W.get(a))}}function m(l,o,e){return l.replaceAll?l.replaceAll(o,e):l.split(o).join(e)}function $(l){return l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}/*! * Lucero - The design system for Luzmo.
|
53
53
|
*
|
54
54
|
* Copyright © 2025 Luzmo
|
55
55
|
* All rights reserved.
|
@@ -65,11 +65,11 @@
|
|
65
65
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
66
66
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
67
67
|
* SOFTWARE.
|
68
|
-
* */const io=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const l=document.createElement("style");l.setAttribute("data-luzmo-vars",""),l.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-disabled-color);--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-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #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(l)}};io();const lo="@media (forced-colors: active){:host(:is(:active,[active])):not(:disabled),:host(:focus-visible):not(:disabled){--highcontrast-infield-button-border-color: Highlight}}@media (forced-colors: active) and (hover: hover){:host(:hover):not(:disabled){--highcontrast-infield-button-border-color: Highlight}}:host{background-color:initial;cursor:pointer;block-size:var(--luzmo-infield-button-height, var(--infield-button-height));inline-size:var(--luzmo-infield-button-width, var(--infield-button-width));padding:var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill));color:var(--infield-button-content-color, inherit);border-style:none;justify-content:center;align-items:center;display:flex}.fill{block-size:100%;inline-size:100%;background-color:var(--luzmo-infield-button-background-color, var(--infield-button-background-color));border-width:var(--luzmo-infield-button-border-width, var(--infield-button-border-width));border-style:solid;border-color:var(--highcontrast-infield-button-border-color, var(--luzmo-infield-button-border-color, var(--infield-button-border-color)));padding:var(--luzmo-infield-button-fill-padding, var(--infield-button-fill-padding));border-start-start-radius:var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius));border-start-end-radius:var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius));border-end-end-radius:var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius));border-end-start-radius:var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius))}::slotted(*){color:var(--luzmo-infield-button-icon-color, var(--infield-button-icon-color))}:host([inline=end]) .fill{border-start-start-radius:var(--luzmo-infield-button-border-radius-reset, var(--infield-button-border-radius-reset));border-end-start-radius:var(--luzmo-infield-button-border-radius-reset, var(--infield-button-border-radius-reset))}:host([inline=start]) .fill{border-start-end-radius:var(--luzmo-infield-button-border-radius-reset, var(--infield-button-border-radius-reset));border-end-end-radius:var(--luzmo-infield-button-border-radius-reset, var(--infield-button-border-radius-reset))}:host([block=end]),:host([block=start]){--infield-button-width: var(--luzmo-infield-button-width-stacked, 28px)}:host([block=end][size=s]),:host([block=start][size=s]){--infield-button-width: var(--luzmo-infield-button-width-stacked, 20px)}:host([block=end][size=l]),:host([block=start][size=l]){--infield-button-width: var(--luzmo-infield-button-width-stacked, 36px)}:host([block=end][size=xl]),:host([block=start][size=xl]){--infield-button-width: var(--luzmo-infield-button-width-stacked, 44px)}:host([quiet]){--infield-button-background-color: var( --luzmo-infield-button-background-color-quiet, transparent );--infield-button-background-color-hover: var( --luzmo-infield-button-background-color-hover-quiet, transparent );--infield-button-background-color-down: var( --luzmo-infield-button-background-color-down-quiet, transparent );--infield-button-background-color-key-focus: var( --luzmo-infield-button-background-color-key-focus-quiet, transparent );--infield-border-color: var(--luzmo-infield-border-color-quiet, transparent);--infield-button-border-width: var( --luzmo-infield-button-border-width-quiet, 0 )}:host([quiet][disabled]){--infield-button-background-color: var( --luzmo-infield-button-background-color-quiet-disabled, transparent );--infield-button-border-color: var( --luzmo-infield-button-border-color-quiet-disabled, transparent )}:host([disabled]){--infield-button-background-color: var( --luzmo-infield-button-background-color-disabled, var(--luzmo-background-color-disabled) );--infield-button-background-color-hover: var( --luzmo-infield-button-background-color-hover-disabled, var(--luzmo-background-color-disabled) );--infield-button-background-color-down: var( --luzmo-infield-button-background-color-down-disabled, var(--luzmo-background-color-disabled) );--infield-button-border-color: var( --luzmo-infield-button-border-color-disabled, var(--luzmo-background-color-disabled) );--infield-button-content-color: var( --luzmo-infield-button-content-color-disabled, var(--luzmo-disabled-color) );--infield-button-icon-color: var( --luzmo-infield-button-icon-color-disabled, var(--luzmo-disabled-color) );--infield-button-icon-color-hover: var( --luzmo-infield-button-icon-color-hover-disabled, var(--luzmo-disabled-color) );--infield-button-icon-color-down: var( --luzmo-infield-button-icon-color-down-disabled, var(--luzmo-disabled-color) );--infield-button-icon-color-key-focus: var( --luzmo-infield-button-icon-color-key-focus-disabled, var(--luzmo-disabled-color) );cursor:auto}@media (hover: hover){:host(:hover) .fill{background-color:var(--luzmo-infield-button-background-color-hover, var(--infield-button-background-color-hover))}:host(:hover) ::slotted(*){color:var(--luzmo-infield-button-icon-color-hover, var(--infield-button-icon-color-hover))}}:host(:is(:active,[active])) .fill{background-color:var(--luzmo-infield-button-background-color-down, var(--infield-button-background-color-down))}:host(:is(:active,[active])) ::slotted(*){color:var(--luzmo-infield-button-icon-color-down, var(--infield-button-icon-color-down))}:host(:focus-visible){outline:none}:host(:focus-visible) .fill{background-color:var(--luzmo-infield-button-background-color-key-focus, var(--infield-button-background-color-key-focus))}:host(:focus-visible) ::slotted(*){color:var(--luzmo-infield-button-icon-color-key-focus, var(--infield-button-icon-color-key-focus))}.fill{align-items:center;justify-content:var(--luzmo-infield-button-fill-justify-content, var(--infield-button-fill-justify-content));display:flex}:host([block=end]),:host([block=start]){block-size:calc(var(--luzmo-infield-button-height, var(--infield-button-height)) / 2)}:host([block=end]) .fill,:host([block=start]) .fill{box-sizing:border-box;padding-inline-start:calc(var(--luzmo-infield-button-stacked-fill-padding-inline, var(--infield-button-stacked-fill-padding-inline)) - var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)));padding-inline-end:calc(var(--luzmo-infield-button-stacked-fill-padding-inline, var(--infield-button-stacked-fill-padding-inline)) - var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)))}:host([block=start]){padding-block-end:var(--luzmo-infield-button-inner-edge-to-fill, var(--infield-button-inner-edge-to-fill))}:host([block=start]) .fill{border-block-end:none;border-start-start-radius:var(--luzmo-infield-button-stacked-top-border-radius-start-start, var(--infield-button-stacked-top-border-radius-start-start));border-end-end-radius:var(--luzmo-infield-button-stacked-border-radius-reset, var(--infield-button-stacked-border-radius-reset));border-end-start-radius:var(--luzmo-infield-button-stacked-border-radius-reset, var(--infield-button-stacked-border-radius-reset));padding-block-start:calc(var(--luzmo-infield-button-stacked-fill-padding-outer, var(--infield-button-stacked-fill-padding-outer)) - var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)));padding-block-end:calc(var(--luzmo-infield-button-stacked-fill-padding-inner, var(--infield-button-stacked-fill-padding-inner)) - var(--luzmo-infield-button-inner-edge-to-fill, var(--infield-button-inner-edge-to-fill)))}:host([block=end]){padding-block-start:var(--luzmo-infield-button-inner-edge-to-fill, var(--infield-button-inner-edge-to-fill))}:host([block=end]) .fill{border-block-end-width:var(--luzmo-infield-button-stacked-bottom-border-block-end-width, var(--luzmo-infield-button-border-width, var(--infield-button-border-width)));border-start-start-radius:var(--luzmo-infield-button-stacked-border-radius-reset, var(--infield-button-stacked-border-radius-reset));border-start-end-radius:var(--luzmo-infield-button-stacked-border-radius-reset, var(--infield-button-stacked-border-radius-reset));border-end-end-radius:var(--luzmo-infield-button-stacked-bottom-border-radius-end-end, var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius)));border-end-start-radius:var(--luzmo-infield-button-stacked-bottom-border-radius-end-start, var(--infield-button-stacked-bottom-border-radius-end-start));padding-block-start:calc(var(--luzmo-infield-button-stacked-fill-padding-inner, var(--infield-button-stacked-fill-padding-inner)) - var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)));padding-block-end:calc(var(--luzmo-infield-button-stacked-fill-padding-outer, var(--infield-button-stacked-fill-padding-outer)) - var(--luzmo-infield-button-inner-edge-to-fill, var(--infield-button-inner-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)))}::slotted(*){display:initial;flex-shrink:0;margin:0!important}:host{--infield-button-border-width: var(--luzmo-border-width);--infield-button-border-color: inherit;--infield-button-border-radius: var(--luzmo-border-radius);--infield-button-border-radius-reset: 0;--infield-button-stacked-top-border-radius-start-start: 0;--infield-button-stacked-bottom-border-radius-end-start: 0;--infield-button-background-color: var(--luzmo-background-color);--infield-button-background-color-hover: var(--luzmo-background-color-hover);--infield-button-background-color-down: var(--luzmo-background-color-down);--infield-button-background-color-key-focus: var( --luzmo-background-color-focus );--infield-button-height: var(--luzmo-component-height);--infield-button-width: var(--luzmo-component-height);--infield-button-stacked-border-radius-reset: 0px;--infield-button-edge-to-fill: 0px;--infield-button-inner-edge-to-fill: 0px;--infield-button-fill-padding: 0px;--infield-button-stacked-fill-padding-inline: 9px;--infield-button-stacked-fill-padding-outer: 3px;--infield-button-stacked-fill-padding-inner: 3px;--infield-button-animation-duration: var(--luzmo-animation-duration);--infield-button-icon-color: var(--luzmo-font-color);--infield-button-icon-color-hover: var(--luzmo-font-color-hard);--infield-button-icon-color-down: var(--luzmo-font-color-hard);--infield-button-icon-color-key-focus: var(--luzmo-font-color-hard);--infield-button-fill-justify-content: center}:host([disabled]){--infield-button-background-color: var(--luzmo-background-color-disabled);--infield-button-background-color-hover: var( --luzmo-background-color-disabled );--infield-button-background-color-down: var( --luzmo-background-color-disabled );--infield-button-border-color: var(--luzmo-border-color-disabled);--infield-button-content-color: var(--luzmo-disabled-color);--infield-button-icon-color: var(--luzmo-disabled-color);--infield-button-icon-color-hover: var(--luzmo-disabled-color);--infield-button-icon-color-down: var(--luzmo-disabled-color);--infield-button-icon-color-key-focus: var(--luzmo-disabled-color)}:host([size=s]){--infield-button-height: var(--luzmo-component-height-s);--infield-button-width: var(--luzmo-component-height-s);--infield-button-stacked-fill-padding-inline: 7px;--infield-button-stacked-fill-padding-outer: 3px;--infield-button-stacked-fill-padding-inner: 3px}:host([size=l]){--infield-button-height: var(--luzmo-component-height-l);--infield-button-width: var(--luzmo-component-height-l);--infield-button-stacked-fill-padding-inline: 13px;--infield-button-stacked-fill-padding-outer: 4px;--infield-button-stacked-fill-padding-inner: 4px}:host([size=xl]){--infield-button-height: var(--luzmo-component-height-xl);--infield-button-width: var(--luzmo-component-height-xl);--infield-button-stacked-fill-padding-inline: 16px;--infield-button-stacked-fill-padding-outer: 5px;--infield-button-stacked-fill-padding-inner: 5px}:host([block=start]){--infield-button-width: 20px}:host([block=end]){--infield-button-width: 20px}:host([block=start][size=s]){--infield-button-width: 16px}:host([block=end][size=s]){--infield-button-width: 16px}:host([block=start][size=l]){--infield-button-width: 28px}:host([block=end][size=l]){--infield-button-width: 28px}:host([block=start][size=xl]){--infield-button-width: 36px}:host([block=end][size=xl]){--infield-button-width: 36px}:host([quiet]){--infield-button-background-color: transparent;--infield-button-background-color-hover: transparent;--infield-button-background-color-down: transparent;--infield-button-background-color-key-focus: transparent;--infield-border-color: transparent;--infield-button-border-width: 0}:host([quiet][disabled]){--infield-button-background-color: transparent;--infield-button-border-color: transparent}:host{box-sizing:border-box;-webkit-user-select:none;user-select:none}::slotted(*){--luzmo-icon-vertical-align: 1px;--icon-size: inherit}";var no=Object.defineProperty,S=(l,o,e,t)=>{for(var r=void 0,i=l.length-1,n;i>=0;i--)(n=l[i])&&(r=n(o,e,r)||r);return r&&no(o,e,r),r};class w extends u.m(Y.a,{noDefaultSize:!0,validSizes:["s","m","l","xl"]}){constructor(){super(...arguments),this.quiet=!1}static get styles(){return[...super.styles,u.at(lo)]}get buttonContent(){return[u.Rt`
|
68
|
+
* */const io=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const l=document.createElement("style");l.setAttribute("data-luzmo-vars",""),l.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-disabled-color);--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-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #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(l)}};io();const lo="@media (forced-colors: active){:host(:is(:active,[active])):not(:disabled),:host(:focus-visible):not(:disabled){--highcontrast-infield-button-border-color: Highlight}}@media (forced-colors: active) and (hover: hover){:host(:hover):not(:disabled){--highcontrast-infield-button-border-color: Highlight}}:host{background-color:initial;cursor:pointer;block-size:var(--luzmo-infield-button-height, var(--infield-button-height));inline-size:var(--luzmo-infield-button-width, var(--infield-button-width));padding:var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill));color:var(--infield-button-content-color, inherit);border-style:none;justify-content:center;align-items:center;display:flex}.fill{block-size:100%;inline-size:100%;background-color:var(--luzmo-infield-button-background-color, var(--infield-button-background-color));border-width:var(--luzmo-infield-button-border-width, var(--infield-button-border-width));border-style:solid;border-color:var(--highcontrast-infield-button-border-color, var(--luzmo-infield-button-border-color, var(--infield-button-border-color)));padding:var(--luzmo-infield-button-fill-padding, var(--infield-button-fill-padding));border-start-start-radius:var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius));border-start-end-radius:var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius));border-end-end-radius:var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius));border-end-start-radius:var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius))}::slotted(*){color:var(--luzmo-infield-button-icon-color, var(--infield-button-icon-color))}:host([inline=end]) .fill{border-start-start-radius:var(--luzmo-infield-button-border-radius-reset, var(--infield-button-border-radius-reset));border-end-start-radius:var(--luzmo-infield-button-border-radius-reset, var(--infield-button-border-radius-reset))}:host([inline=start]) .fill{border-start-end-radius:var(--luzmo-infield-button-border-radius-reset, var(--infield-button-border-radius-reset));border-end-end-radius:var(--luzmo-infield-button-border-radius-reset, var(--infield-button-border-radius-reset))}:host([block=end]),:host([block=start]){--infield-button-width: var(--luzmo-infield-button-width-stacked, 28px)}:host([block=end][size=s]),:host([block=start][size=s]){--infield-button-width: var(--luzmo-infield-button-width-stacked, 20px)}:host([block=end][size=l]),:host([block=start][size=l]){--infield-button-width: var(--luzmo-infield-button-width-stacked, 36px)}:host([block=end][size=xl]),:host([block=start][size=xl]){--infield-button-width: var(--luzmo-infield-button-width-stacked, 44px)}:host([quiet]){--infield-button-background-color: var( --luzmo-infield-button-background-color-quiet, transparent );--infield-button-background-color-hover: var( --luzmo-infield-button-background-color-hover-quiet, transparent );--infield-button-background-color-down: var( --luzmo-infield-button-background-color-down-quiet, transparent );--infield-button-background-color-key-focus: var( --luzmo-infield-button-background-color-key-focus-quiet, transparent );--infield-border-color: var(--luzmo-infield-border-color-quiet, transparent);--infield-button-border-width: var( --luzmo-infield-button-border-width-quiet, 0 )}:host([quiet][disabled]){--infield-button-background-color: var( --luzmo-infield-button-background-color-quiet-disabled, transparent );--infield-button-border-color: var( --luzmo-infield-button-border-color-quiet-disabled, transparent )}:host([disabled]){--infield-button-background-color: var( --luzmo-infield-button-background-color-disabled, var(--luzmo-background-color-disabled) );--infield-button-background-color-hover: var( --luzmo-infield-button-background-color-hover-disabled, var(--luzmo-background-color-disabled) );--infield-button-background-color-down: var( --luzmo-infield-button-background-color-down-disabled, var(--luzmo-background-color-disabled) );--infield-button-border-color: var( --luzmo-infield-button-border-color-disabled, var(--luzmo-background-color-disabled) );--infield-button-content-color: var( --luzmo-infield-button-content-color-disabled, var(--luzmo-disabled-color) );--infield-button-icon-color: var( --luzmo-infield-button-icon-color-disabled, var(--luzmo-disabled-color) );--infield-button-icon-color-hover: var( --luzmo-infield-button-icon-color-hover-disabled, var(--luzmo-disabled-color) );--infield-button-icon-color-down: var( --luzmo-infield-button-icon-color-down-disabled, var(--luzmo-disabled-color) );--infield-button-icon-color-key-focus: var( --luzmo-infield-button-icon-color-key-focus-disabled, var(--luzmo-disabled-color) );cursor:auto}@media (hover: hover){:host(:hover) .fill{background-color:var(--luzmo-infield-button-background-color-hover, var(--infield-button-background-color-hover))}:host(:hover) ::slotted(*){color:var(--luzmo-infield-button-icon-color-hover, var(--infield-button-icon-color-hover))}}:host(:is(:active,[active])) .fill{background-color:var(--luzmo-infield-button-background-color-down, var(--infield-button-background-color-down))}:host(:is(:active,[active])) ::slotted(*){color:var(--luzmo-infield-button-icon-color-down, var(--infield-button-icon-color-down))}:host(:focus-visible){outline:none}:host(:focus-visible) .fill{background-color:var(--luzmo-infield-button-background-color-key-focus, var(--infield-button-background-color-key-focus))}:host(:focus-visible) ::slotted(*){color:var(--luzmo-infield-button-icon-color-key-focus, var(--infield-button-icon-color-key-focus))}.fill{align-items:center;justify-content:var(--luzmo-infield-button-fill-justify-content, var(--infield-button-fill-justify-content));display:flex}:host([block=end]),:host([block=start]){block-size:calc(var(--luzmo-infield-button-height, var(--infield-button-height)) / 2)}:host([block=end]) .fill,:host([block=start]) .fill{box-sizing:border-box;padding-inline-start:calc(var(--luzmo-infield-button-stacked-fill-padding-inline, var(--infield-button-stacked-fill-padding-inline)) - var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)));padding-inline-end:calc(var(--luzmo-infield-button-stacked-fill-padding-inline, var(--infield-button-stacked-fill-padding-inline)) - var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)))}:host([block=start]){padding-block-end:var(--luzmo-infield-button-inner-edge-to-fill, var(--infield-button-inner-edge-to-fill))}:host([block=start]) .fill{border-block-end:none;border-start-start-radius:var(--luzmo-infield-button-stacked-top-border-radius-start-start, var(--infield-button-stacked-top-border-radius-start-start));border-end-end-radius:var(--luzmo-infield-button-stacked-border-radius-reset, var(--infield-button-stacked-border-radius-reset));border-end-start-radius:var(--luzmo-infield-button-stacked-border-radius-reset, var(--infield-button-stacked-border-radius-reset));padding-block-start:calc(var(--luzmo-infield-button-stacked-fill-padding-outer, var(--infield-button-stacked-fill-padding-outer)) - var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)));padding-block-end:calc(var(--luzmo-infield-button-stacked-fill-padding-inner, var(--infield-button-stacked-fill-padding-inner)) - var(--luzmo-infield-button-inner-edge-to-fill, var(--infield-button-inner-edge-to-fill)))}:host([block=end]){padding-block-start:var(--luzmo-infield-button-inner-edge-to-fill, var(--infield-button-inner-edge-to-fill))}:host([block=end]) .fill{border-block-end-width:var(--luzmo-infield-button-stacked-bottom-border-block-end-width, var(--luzmo-infield-button-border-width, var(--infield-button-border-width)));border-start-start-radius:var(--luzmo-infield-button-stacked-border-radius-reset, var(--infield-button-stacked-border-radius-reset));border-start-end-radius:var(--luzmo-infield-button-stacked-border-radius-reset, var(--infield-button-stacked-border-radius-reset));border-end-end-radius:var(--luzmo-infield-button-stacked-bottom-border-radius-end-end, var(--luzmo-infield-button-border-radius, var(--infield-button-border-radius)));border-end-start-radius:var(--luzmo-infield-button-stacked-bottom-border-radius-end-start, var(--infield-button-stacked-bottom-border-radius-end-start));padding-block-start:calc(var(--luzmo-infield-button-stacked-fill-padding-inner, var(--infield-button-stacked-fill-padding-inner)) - var(--luzmo-infield-button-edge-to-fill, var(--infield-button-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)));padding-block-end:calc(var(--luzmo-infield-button-stacked-fill-padding-outer, var(--infield-button-stacked-fill-padding-outer)) - var(--luzmo-infield-button-inner-edge-to-fill, var(--infield-button-inner-edge-to-fill)) - var(--luzmo-infield-button-border-width, var(--infield-button-border-width)))}::slotted(*){display:initial;flex-shrink:0;margin:0!important}:host{--infield-button-border-width: var(--luzmo-border-width);--infield-button-border-color: inherit;--infield-button-border-radius: var(--luzmo-border-radius);--infield-button-border-radius-reset: 0;--infield-button-stacked-top-border-radius-start-start: 0;--infield-button-stacked-bottom-border-radius-end-start: 0;--infield-button-background-color: var(--luzmo-background-color);--infield-button-background-color-hover: var(--luzmo-background-color-hover);--infield-button-background-color-down: var(--luzmo-background-color-down);--infield-button-background-color-key-focus: var( --luzmo-background-color-focus );--infield-button-height: var(--luzmo-component-height);--infield-button-width: var(--luzmo-component-height);--infield-button-stacked-border-radius-reset: 0px;--infield-button-edge-to-fill: 0px;--infield-button-inner-edge-to-fill: 0px;--infield-button-fill-padding: 0px;--infield-button-stacked-fill-padding-inline: 9px;--infield-button-stacked-fill-padding-outer: 3px;--infield-button-stacked-fill-padding-inner: 3px;--infield-button-animation-duration: var(--luzmo-animation-duration);--infield-button-icon-color: var(--luzmo-font-color);--infield-button-icon-color-hover: var(--luzmo-font-color-hard);--infield-button-icon-color-down: var(--luzmo-font-color-hard);--infield-button-icon-color-key-focus: var(--luzmo-font-color-hard);--infield-button-fill-justify-content: center}:host([disabled]){--infield-button-background-color: var(--luzmo-background-color-disabled);--infield-button-background-color-hover: var( --luzmo-background-color-disabled );--infield-button-background-color-down: var( --luzmo-background-color-disabled );--infield-button-border-color: var(--luzmo-border-color-disabled);--infield-button-content-color: var(--luzmo-disabled-color);--infield-button-icon-color: var(--luzmo-disabled-color);--infield-button-icon-color-hover: var(--luzmo-disabled-color);--infield-button-icon-color-down: var(--luzmo-disabled-color);--infield-button-icon-color-key-focus: var(--luzmo-disabled-color)}:host([size=s]){--infield-button-height: var(--luzmo-component-height-s);--infield-button-width: var(--luzmo-component-height-s);--infield-button-stacked-fill-padding-inline: 7px;--infield-button-stacked-fill-padding-outer: 3px;--infield-button-stacked-fill-padding-inner: 3px}:host([size=l]){--infield-button-height: var(--luzmo-component-height-l);--infield-button-width: var(--luzmo-component-height-l);--infield-button-stacked-fill-padding-inline: 13px;--infield-button-stacked-fill-padding-outer: 4px;--infield-button-stacked-fill-padding-inner: 4px}:host([size=xl]){--infield-button-height: var(--luzmo-component-height-xl);--infield-button-width: var(--luzmo-component-height-xl);--infield-button-stacked-fill-padding-inline: 16px;--infield-button-stacked-fill-padding-outer: 5px;--infield-button-stacked-fill-padding-inner: 5px}:host([block=start]){--infield-button-width: 20px}:host([block=end]){--infield-button-width: 20px}:host([block=start][size=s]){--infield-button-width: 16px}:host([block=end][size=s]){--infield-button-width: 16px}:host([block=start][size=l]){--infield-button-width: 28px}:host([block=end][size=l]){--infield-button-width: 28px}:host([block=start][size=xl]){--infield-button-width: 36px}:host([block=end][size=xl]){--infield-button-width: 36px}:host([quiet]){--infield-button-background-color: transparent;--infield-button-background-color-hover: transparent;--infield-button-background-color-down: transparent;--infield-button-background-color-key-focus: transparent;--infield-border-color: transparent;--infield-button-border-width: 0}:host([quiet][disabled]){--infield-button-background-color: transparent;--infield-button-border-color: transparent}:host{box-sizing:border-box;-webkit-user-select:none;user-select:none}::slotted(*){--luzmo-icon-vertical-align: 1px;--icon-size: inherit}";var no=Object.defineProperty,E=(l,o,e,t)=>{for(var r=void 0,i=l.length-1,n;i>=0;i--)(n=l[i])&&(r=n(o,e,r)||r);return r&&no(o,e,r),r};class w extends u.m(Y.a,{noDefaultSize:!0,validSizes:["s","m","l","xl"]}){constructor(){super(...arguments),this.quiet=!1}static get styles(){return[...super.styles,u.at(lo)]}get buttonContent(){return[u.Rt`
|
69
69
|
<div class="fill">
|
70
70
|
<slot></slot>
|
71
71
|
</div>
|
72
|
-
`]}}
|
72
|
+
`]}}E([u.zt()],w.prototype,"block");E([u.zt()],w.prototype,"inline");E([u.zt({type:Boolean,reflect:!0})],w.prototype,"quiet");customElements.get("luzmo-infield-button")||customElements.define("luzmo-infield-button",w);/*! * Lucero - The design system for Luzmo.
|
73
73
|
*
|
74
74
|
* Copyright © 2025 Luzmo
|
75
75
|
* All rights reserved.
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const l=require("./base-D76d76ww-tT6yr8eb.cjs"),v=require("./if-defined-DOaE2coe-Cvlu5s9n.cjs"),w=require("./divider.module-DoQWQEIJ-Bg8RrFkc.cjs"),I=require("./directive-helpers-Cm6gitnu-BeggOiwf.cjs"),y=require("./query-assigned-nodes-C76XVPWY-BW2w3V7-.cjs"),k=require("./element-resolution-FCUT-wql-DSTvdyds.cjs"),f=require("./observe-slot-text-BPfIQQtz-DHOh38Ve.cjs"),S=require("./focusable-BxtpnzWp-CkK9AeMt.cjs"),E=require("./observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs"),
|
20
|
+
"use strict";const l=require("./base-D76d76ww-tT6yr8eb.cjs"),v=require("./if-defined-DOaE2coe-Cvlu5s9n.cjs"),w=require("./divider.module-DoQWQEIJ-Bg8RrFkc.cjs"),I=require("./directive-helpers-Cm6gitnu-BeggOiwf.cjs"),y=require("./query-assigned-nodes-C76XVPWY-BW2w3V7-.cjs"),k=require("./element-resolution-FCUT-wql-DSTvdyds.cjs"),f=require("./observe-slot-text-BPfIQQtz-DHOh38Ve.cjs"),S=require("./focusable-BxtpnzWp-CkK9AeMt.cjs"),E=require("./observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs"),C=require("./index-BhpqKmwq.cjs"),p=require("./luzmo-icons-NEyaMpEM-1fxXxs3F.cjs"),A=require("./index-B4EIbvuW.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -58,14 +58,14 @@
|
|
58
58
|
<span class="icon-container icon angle ${r.join(" ")}">
|
59
59
|
${p.D(p.z,{className:"indicator"})}
|
60
60
|
</span>
|
61
|
-
`;class W extends Event{constructor(e){super("luzmo-menu-item-added-or-updated",{bubbles:!0,composed:!0}),this.menuCascade=new WeakMap,this.clear(e)}get item(){return this._item}clear(e){this._item=e,this.currentAncestorWithSelects=void 0,e.menuData={cleanupSteps:[],focusRoot:void 0,selectionRoot:void 0,parentMenu:void 0},this.menuCascade=new WeakMap}}class s extends f.b(f.y(E.b(S.r,'[slot="icon"]'))){constructor(){super(),this.active=!1,this.dependencyManager=new
|
61
|
+
`;class W extends Event{constructor(e){super("luzmo-menu-item-added-or-updated",{bubbles:!0,composed:!0}),this.menuCascade=new WeakMap,this.clear(e)}get item(){return this._item}clear(e){this._item=e,this.currentAncestorWithSelects=void 0,e.menuData={cleanupSteps:[],focusRoot:void 0,selectionRoot:void 0,parentMenu:void 0},this.menuCascade=new WeakMap}}class s extends f.b(f.y(E.b(S.r,'[slot="icon"]'))){constructor(){super(),this.active=!1,this.dependencyManager=new C.a(this),this.focused=!1,this.selected=!1,this._value="",this.hasSubmenu=!1,this.noWrap=!1,this.renderAngleIcon=(e=[])=>H(e),this.renderCheckIcon=(e=[])=>j(e),this.open=!1,this.handleSlottableRequest=e=>{var t;(t=this.submenuElement)==null||t.dispatchEvent(new A.o(e.name,e.data))},this.proxyFocus=()=>{this.focus()},this.handleBeforetoggle=e=>{e.newState==="closed"&&(this.open=!0,this.overlayElement.manuallyKeepOpen(),this.overlayElement.removeEventListener("beforetoggle",this.handleBeforetoggle))},this.recentlyLeftChild=!1,this.willDispatchUpdate=!1,this.menuData={focusRoot:void 0,parentMenu:void 0,selectionRoot:void 0,cleanupSteps:[]},this.addEventListener("click",this.handleClickCapture,{capture:!0}),new f.a(this,{config:{characterData:!0,childList:!0,subtree:!0},callback:e=>{e.every(t=>t.target.slot==="submenu")||this.breakItemChildrenCache()}})}static get styles(){return[l.at($)]}get value(){return this._value||this.itemText}set value(e){e!==this._value&&(this._value=e||"",this._value?this.setAttribute("value",this._value):this.removeAttribute("value"))}get itemText(){return this.itemChildren.content.reduce((e,t)=>e+(t.textContent||"").trim(),"")}get focusElement(){return this}get hasIcon(){return this.slotContentIsPresent}get itemChildren(){if(!this.iconSlot||!this.contentSlot)return{icon:[],content:[]};if(this._itemChildren)return this._itemChildren;const e=this.iconSlot.assignedElements().map(o=>{const i=o.cloneNode(!0);return i.removeAttribute("slot"),i.classList.toggle("icon"),i}),t=this.contentSlot.assignedNodes().map(o=>o.cloneNode(!0));return this._itemChildren={icon:e,content:t},this._itemChildren}click(){this.disabled||this.shouldProxyClick()||super.click()}handleClickCapture(e){if(this.disabled)return e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),!1}shouldProxyClick(){let e=!1;return this.anchorElement&&(this.anchorElement.click(),e=!0),e}breakItemChildrenCache(){this._itemChildren=void 0,this.triggerUpdate()}renderSubmenu(){const e=l.Rt`
|
62
62
|
<slot
|
63
63
|
name="submenu"
|
64
64
|
@slotchange=${this.manageSubmenu}
|
65
65
|
@luzmo-menu-item-added-or-updated=${{handleEvent:t=>{t.clear(t.item)},capture:!0}}
|
66
66
|
@focusin=${t=>t.stopPropagation()}
|
67
67
|
></slot>
|
68
|
-
`;return this.hasSubmenu?(this.dependencyManager.add("luzmo-overlay"),this.dependencyManager.add("luzmo-popover"),Promise.resolve().then(()=>require("./index-
|
68
|
+
`;return this.hasSubmenu?(this.dependencyManager.add("luzmo-overlay"),this.dependencyManager.add("luzmo-popover"),Promise.resolve().then(()=>require("./index-B4EIbvuW.cjs")).then(t=>t.overlayBtZCJ2M0).then(t=>t.f),Promise.resolve().then(()=>require("./popover-DjX0aAnY-CSUMV_Ay.cjs")),l.Rt`
|
69
69
|
<luzmo-overlay
|
70
70
|
.triggerElement=${this}
|
71
71
|
?disabled=${!this.hasSubmenu}
|
@@ -17,13 +17,13 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { D, v as Y, s as G } from "./luzmo-icons-
|
20
|
+
import { D, v as Y, s as G } from "./luzmo-icons-NEyaMpEM-DbyDs_5B.js";
|
21
21
|
import { m as Z, a as O, R as F, z as u, d as J } from "./base-D76d76ww-BGkuhs54.js";
|
22
22
|
import { d as Q } from "./if-defined-DOaE2coe-CNT45Xcl.js";
|
23
23
|
import { a as q, o as oo, w as eo } from "./async-directive-BfcqVjDp-BCT-lA4F.js";
|
24
24
|
import { l as to, u as ro, o as io } from "./streaming-listener-CP-JE6Fa-9MH0gENR.js";
|
25
25
|
import { a as lo } from "./button-base-DbkDzb71-R8oqSqlY.js";
|
26
|
-
import { i as no } from "./text-field-
|
26
|
+
import { i as no } from "./text-field-B9IkRRxO-CWWQN_rn.js";
|
27
27
|
/*! * Lucero - The design system for Luzmo.
|
28
28
|
*
|
29
29
|
* Copyright © 2025 Luzmo
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const d=require("./luzmo-icons-
|
20
|
+
"use strict";const d=require("./luzmo-icons-NEyaMpEM-1fxXxs3F.cjs"),n=require("./base-D76d76ww-tT6yr8eb.cjs"),s=require("./button-base-DbkDzb71-CY6MJGqE.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -37,6 +37,6 @@
|
|
37
37
|
<div
|
38
38
|
class="hold-affordance corner-triangle-${this.size}"
|
39
39
|
>
|
40
|
-
${d.D(d.
|
40
|
+
${d.D(d.p)}
|
41
41
|
</div>
|
42
42
|
`),o}updated(o){super.updated(o);const t=this.role==="button",r=t&&(this.selected||this.toggles)&&!(this.hasAttribute("aria-haspopup")&&this.hasAttribute("aria-expanded"));(o.has("selected")||o.has("role"))&&(r?this.setAttribute("aria-pressed",this.selected?"true":"false"):(this.removeAttribute("aria-pressed"),t&&this.toggles&&this.hasAttribute("aria-expanded")&&this.setAttribute("aria-expanded",this.selected?"true":"false"))),o.has("holdAffordance")&&(this.holdAffordance?this.addEventListener("pointerdown",this.handlePointerdownHoldAffordance):(this.removeEventListener("pointerdown",this.handlePointerdownHoldAffordance),this.handlePointerupHoldAffordance()))}}e([n.zt({type:Boolean,reflect:!0})],a.prototype,"emphasized",2);e([n.zt({type:Boolean,reflect:!0,attribute:"hold-affordance"})],a.prototype,"holdAffordance",2);e([n.zt({type:Boolean,reflect:!0})],a.prototype,"quiet",2);e([n.zt({reflect:!0})],a.prototype,"role",2);e([n.zt({type:Boolean,reflect:!0})],a.prototype,"selected",2);e([n.zt({type:Boolean,reflect:!0})],a.prototype,"toggles",2);e([n.zt({reflect:!0,attribute:"static-color"})],a.prototype,"staticColor",2);e([n.zt({type:String})],a.prototype,"value",1);customElements.get("luzmo-action-button")||customElements.define("luzmo-action-button",a);
|