@vmscloud/moz-ui-components-core 0.1.54 → 0.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +63 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -195,7 +195,7 @@ let Qt = 0;
|
|
|
195
195
|
function tt(e = "") {
|
|
196
196
|
return Qt += 1, `${e}${Qt}`;
|
|
197
197
|
}
|
|
198
|
-
const
|
|
198
|
+
const ct = (e, t) => {
|
|
199
199
|
const o = Object.keys(e), l = Object.keys(t);
|
|
200
200
|
if (o.length !== l.length)
|
|
201
201
|
return !1;
|
|
@@ -210,7 +210,7 @@ function we(e, t) {
|
|
|
210
210
|
t.has(l) || (o[l] = e[l]);
|
|
211
211
|
return o;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function pt(e) {
|
|
214
214
|
const t = {}, o = {};
|
|
215
215
|
for (const l of Object.keys(e))
|
|
216
216
|
l.startsWith("aria-") ? t[l] = e[l] : o[l] = e[l];
|
|
@@ -2668,7 +2668,7 @@ const ys = be({
|
|
|
2668
2668
|
};
|
|
2669
2669
|
return {
|
|
2670
2670
|
render() {
|
|
2671
|
-
const n = e.props, { aria: i, dom: h } =
|
|
2671
|
+
const n = e.props, { aria: i, dom: h } = pt(we(n, Cs));
|
|
2672
2672
|
return Nt({
|
|
2673
2673
|
id: t,
|
|
2674
2674
|
class: n.class,
|
|
@@ -4525,7 +4525,7 @@ const pl = "YYYY-MM-DD", ml = /* @__PURE__ */ new Set([
|
|
|
4525
4525
|
slots: [],
|
|
4526
4526
|
expose: !1
|
|
4527
4527
|
};
|
|
4528
|
-
function
|
|
4528
|
+
function mt(e) {
|
|
4529
4529
|
return {
|
|
4530
4530
|
10: { width: 10, height: 10 },
|
|
4531
4531
|
12: { width: 12, height: 12 },
|
|
@@ -4538,7 +4538,7 @@ function ut(e) {
|
|
|
4538
4538
|
}[e] ?? { width: 12, height: 12 };
|
|
4539
4539
|
}
|
|
4540
4540
|
function fl(e = "10", t = "var(--moz-color-text-muted)", o = !1, l = !1, n = "") {
|
|
4541
|
-
const i =
|
|
4541
|
+
const i = mt(e), h = n || w;
|
|
4542
4542
|
return i.width <= 10 ? a`<svg class=${h} width=${i.width} height=${i.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4543
4543
|
<path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
4544
4544
|
<path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
@@ -4568,7 +4568,7 @@ function fl(e = "10", t = "var(--moz-color-text-muted)", o = !1, l = !1, n = "")
|
|
|
4568
4568
|
</svg>`;
|
|
4569
4569
|
}
|
|
4570
4570
|
function gl(e = "30", t = "var(--moz-color-danger)", o = "") {
|
|
4571
|
-
const l =
|
|
4571
|
+
const l = mt(e);
|
|
4572
4572
|
return a`<svg class=${o || w} width=${l.width} height=${l.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4573
4573
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
4574
4574
|
<g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
|
|
@@ -4584,7 +4584,7 @@ function gl(e = "30", t = "var(--moz-color-danger)", o = "") {
|
|
|
4584
4584
|
</svg>`;
|
|
4585
4585
|
}
|
|
4586
4586
|
function vl(e = "30", t = "var(--moz-color-accent)", o = "") {
|
|
4587
|
-
const l =
|
|
4587
|
+
const l = mt(e);
|
|
4588
4588
|
return a`<svg class=${o || w} width=${l.width} height=${l.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4589
4589
|
<g>
|
|
4590
4590
|
<path
|
|
@@ -4597,7 +4597,7 @@ function vl(e = "30", t = "var(--moz-color-accent)", o = "") {
|
|
|
4597
4597
|
</svg>`;
|
|
4598
4598
|
}
|
|
4599
4599
|
function wl(e = "30", t = "var(--moz-color-success)", o = "") {
|
|
4600
|
-
const l =
|
|
4600
|
+
const l = mt(e);
|
|
4601
4601
|
return a`<svg class=${o || w} width=${l.width} height=${l.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4602
4602
|
<g>
|
|
4603
4603
|
<path
|
|
@@ -4610,7 +4610,7 @@ function wl(e = "30", t = "var(--moz-color-success)", o = "") {
|
|
|
4610
4610
|
</svg>`;
|
|
4611
4611
|
}
|
|
4612
4612
|
function bl(e = "30", t = "var(--moz-color-warning)", o = "") {
|
|
4613
|
-
const l =
|
|
4613
|
+
const l = mt(e);
|
|
4614
4614
|
return a`<svg class=${o || w} width=${l.width} height=${l.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4615
4615
|
<mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
4616
4616
|
<g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
|
|
@@ -4670,11 +4670,11 @@ const Cl = /* @__PURE__ */ new Set([
|
|
|
4670
4670
|
"autoPosition",
|
|
4671
4671
|
"hideOthers"
|
|
4672
4672
|
]);
|
|
4673
|
-
let
|
|
4673
|
+
let dt = 0, qo = "";
|
|
4674
4674
|
const yl = () => {
|
|
4675
|
-
|
|
4675
|
+
dt === 0 && (qo = document.body.style.overflow, document.body.style.overflow = "hidden"), dt += 1;
|
|
4676
4676
|
}, $l = () => {
|
|
4677
|
-
|
|
4677
|
+
dt !== 0 && (dt -= 1, dt === 0 && (document.body.style.overflow = qo));
|
|
4678
4678
|
}, Sl = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', kl = be({
|
|
4679
4679
|
name: "moz-popup",
|
|
4680
4680
|
portal: !0,
|
|
@@ -5078,7 +5078,7 @@ function Yt(e = "12", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
|
5078
5078
|
></path>
|
|
5079
5079
|
</svg>`;
|
|
5080
5080
|
}
|
|
5081
|
-
const to = 250,
|
|
5081
|
+
const to = 250, it = 24, El = /* @__PURE__ */ new Set([
|
|
5082
5082
|
"itemsSource",
|
|
5083
5083
|
"label",
|
|
5084
5084
|
"width",
|
|
@@ -5136,8 +5136,13 @@ const Pl = be({
|
|
|
5136
5136
|
const y = () => e.props.keyProp || "id", $ = new Et({
|
|
5137
5137
|
count: 0,
|
|
5138
5138
|
getScrollElement: () => d,
|
|
5139
|
-
estimateSize: () =>
|
|
5140
|
-
|
|
5139
|
+
estimateSize: () => it,
|
|
5140
|
+
// 드롭다운이 아직 배치되지 않은 시점에는 높이가 0 으로 읽힌다. 0 을 캐시하면 행이 겹쳐 사라지고,
|
|
5141
|
+
// 다음 측정에서 virtual-core 가 그 차이만큼 스크롤을 보정해 목록이 열리자마자 아래로 밀린다.
|
|
5142
|
+
measureElement: (c) => {
|
|
5143
|
+
const P = c.getBoundingClientRect().height;
|
|
5144
|
+
return P > 0 ? P : it;
|
|
5145
|
+
},
|
|
5141
5146
|
overscan: 5,
|
|
5142
5147
|
observeElementRect: Pt,
|
|
5143
5148
|
observeElementOffset: Lt,
|
|
@@ -5207,8 +5212,8 @@ const Pl = be({
|
|
|
5207
5212
|
const re = (c) => {
|
|
5208
5213
|
`${c.ctrlKey ? "ctrl+" : ""}${c.altKey ? "alt+" : ""}${c.key.toLowerCase()}` === "escape" && x(!1);
|
|
5209
5214
|
}, Q = (c) => {
|
|
5210
|
-
const j =
|
|
5211
|
-
return Math.max(0, j +
|
|
5215
|
+
const j = it * c - to / 2;
|
|
5216
|
+
return Math.max(0, j + it);
|
|
5212
5217
|
};
|
|
5213
5218
|
let H = null;
|
|
5214
5219
|
const x = (c) => {
|
|
@@ -5328,7 +5333,7 @@ const Pl = be({
|
|
|
5328
5333
|
);
|
|
5329
5334
|
});
|
|
5330
5335
|
}
|
|
5331
|
-
const j = typeof c.width == "number" ? `${ze(c.width)}rem` : c.width, ie = we(c, El), { aria: de, dom: Ee } =
|
|
5336
|
+
const j = typeof c.width == "number" ? `${ze(c.width)}rem` : c.width, ie = we(c, El), { aria: de, dom: Ee } = pt(ie), $e = e.slots.has("icon") ? e.slot("icon", { isOpen: p }) : p ? Gt("14", "var(--moz-color-accent)") : Kt("14", "var(--moz-color-text-subtle)", c.disabled), C = a`<button
|
|
5332
5337
|
type="button"
|
|
5333
5338
|
class="icon-container"
|
|
5334
5339
|
${ue(de)}
|
|
@@ -5407,7 +5412,7 @@ const Pl = be({
|
|
|
5407
5412
|
const de = Tt(
|
|
5408
5413
|
$.getVirtualItems(),
|
|
5409
5414
|
ie.length,
|
|
5410
|
-
|
|
5415
|
+
it,
|
|
5411
5416
|
d
|
|
5412
5417
|
), Ee = $.getTotalSize(), $e = de.map((C) => {
|
|
5413
5418
|
if (C.index >= ie.length) return null;
|
|
@@ -5658,7 +5663,7 @@ const Dl = be({
|
|
|
5658
5663
|
if (!S) return [{ part: g, highlight: !1 }];
|
|
5659
5664
|
const N = Al(S), R = new RegExp(`(${N})`, "gi");
|
|
5660
5665
|
return g.split(R).map((te) => ({ part: te, highlight: S.toLowerCase() === te.toLowerCase() }));
|
|
5661
|
-
}, K = (g) => new Set(r()).has(g[d()]), ee = (g) => q.some((N) =>
|
|
5666
|
+
}, K = (g) => new Set(r()).has(g[d()]), ee = (g) => q.some((N) => ct(N.item, g)), re = () => {
|
|
5662
5667
|
const g = r(), N = W();
|
|
5663
5668
|
if (g.length < N.length || g.length === 0 || N.length === 0) return !1;
|
|
5664
5669
|
const R = new Set(g);
|
|
@@ -5704,7 +5709,7 @@ const Dl = be({
|
|
|
5704
5709
|
(me && me[s()] !== !0 || !me && e.props.preserveMissingValues) && R.add(se);
|
|
5705
5710
|
});
|
|
5706
5711
|
const te = Array.from(R);
|
|
5707
|
-
|
|
5712
|
+
ct(r(), te) || (p(te), e.emit(
|
|
5708
5713
|
"change",
|
|
5709
5714
|
te,
|
|
5710
5715
|
te.map((se) => N.get(se)).filter(Boolean)
|
|
@@ -5864,7 +5869,7 @@ const Dl = be({
|
|
|
5864
5869
|
p(te.filter((ge) => R.has(ge)));
|
|
5865
5870
|
} else {
|
|
5866
5871
|
const se = te.filter((me) => R.has(me));
|
|
5867
|
-
if (
|
|
5872
|
+
if (ct(te, se)) return;
|
|
5868
5873
|
p(se);
|
|
5869
5874
|
}
|
|
5870
5875
|
}, Ze = () => {
|
|
@@ -5988,7 +5993,7 @@ const Dl = be({
|
|
|
5988
5993
|
const ge = D, Se = g.itemsSource;
|
|
5989
5994
|
D = g.itemsSource, queueMicrotask(() => Qe(Se ?? [], ge ?? []));
|
|
5990
5995
|
}
|
|
5991
|
-
const N = typeof g.width == "number" ? `${ze(g.width)}rem` : g.width, R = we(g, Vl), { aria: te, dom: se } =
|
|
5996
|
+
const N = typeof g.width == "number" ? `${ze(g.width)}rem` : g.width, R = we(g, Vl), { aria: te, dom: se } = pt(R);
|
|
5992
5997
|
if (g.inline)
|
|
5993
5998
|
return a`<div class="moz-multi-select moz-multi-select-inline"
|
|
5994
5999
|
style=${oe({ width: N, ...ke(g.style) })}
|
|
@@ -6940,7 +6945,7 @@ const Kl = 500, Gl = be({
|
|
|
6940
6945
|
emits: ["open", "close"],
|
|
6941
6946
|
slots: [],
|
|
6942
6947
|
expose: !0
|
|
6943
|
-
},
|
|
6948
|
+
}, at = 32, lo = 300, Yl = 29, Zl = 32, no = 120, jl = 34, Xl = 12, ro = 30, Ql = /* @__PURE__ */ new Set([
|
|
6944
6949
|
"itemsSource",
|
|
6945
6950
|
"label",
|
|
6946
6951
|
"width",
|
|
@@ -7000,8 +7005,13 @@ const tn = be({
|
|
|
7000
7005
|
const y = () => e.props.keyProp || "id", $ = () => e.props.displayProps ?? ["text"], q = new Et({
|
|
7001
7006
|
count: 0,
|
|
7002
7007
|
getScrollElement: () => d,
|
|
7003
|
-
estimateSize: () =>
|
|
7004
|
-
|
|
7008
|
+
estimateSize: () => at,
|
|
7009
|
+
// 드롭다운이 아직 배치되지 않은 시점에는 높이가 0 으로 읽힌다. 0 을 캐시하면 행이 겹쳐 사라지고,
|
|
7010
|
+
// 다음 측정에서 virtual-core 가 그 차이만큼 스크롤을 보정해 목록이 열리자마자 아래로 밀린다.
|
|
7011
|
+
measureElement: (c) => {
|
|
7012
|
+
const P = c.getBoundingClientRect().height;
|
|
7013
|
+
return P > 0 ? P : at;
|
|
7014
|
+
},
|
|
7005
7015
|
overscan: 5,
|
|
7006
7016
|
observeElementRect: Pt,
|
|
7007
7017
|
observeElementOffset: Lt,
|
|
@@ -7085,8 +7095,8 @@ const tn = be({
|
|
|
7085
7095
|
const E = (c) => {
|
|
7086
7096
|
c.key === "Escape" && B(!1);
|
|
7087
7097
|
}, T = (c) => {
|
|
7088
|
-
const P = !!e.props.columnHeaders && e.props.columnHeaders.length > 0, j = lo - (e.props.useFilter ? Yl : 0) - (P ? Zl : 0), de =
|
|
7089
|
-
return Math.max(0, de +
|
|
7098
|
+
const P = !!e.props.columnHeaders && e.props.columnHeaders.length > 0, j = lo - (e.props.useFilter ? Yl : 0) - (P ? Zl : 0), de = at * c - j / 2;
|
|
7099
|
+
return Math.max(0, de + at);
|
|
7090
7100
|
};
|
|
7091
7101
|
let A = null;
|
|
7092
7102
|
const B = (c) => {
|
|
@@ -7144,7 +7154,7 @@ const tn = be({
|
|
|
7144
7154
|
c.useObjKeyProp ? $e = G() : Ee != null && ($e = Z(Ee)), e.emit("change", Ee, $e);
|
|
7145
7155
|
});
|
|
7146
7156
|
}
|
|
7147
|
-
const j = we(c, Ql), { aria: ie, dom: de } =
|
|
7157
|
+
const j = we(c, Ql), { aria: ie, dom: de } = pt(j);
|
|
7148
7158
|
return a`
|
|
7149
7159
|
<div
|
|
7150
7160
|
class=${V("moz-table-select", {
|
|
@@ -7198,7 +7208,7 @@ const tn = be({
|
|
|
7198
7208
|
const de = q.getTotalSize(), Ee = Tt(
|
|
7199
7209
|
q.getVirtualItems(),
|
|
7200
7210
|
j.length,
|
|
7201
|
-
|
|
7211
|
+
at,
|
|
7202
7212
|
d
|
|
7203
7213
|
).map((C) => {
|
|
7204
7214
|
if (C.index >= j.length) return null;
|
|
@@ -7441,7 +7451,7 @@ function ao(e, t) {
|
|
|
7441
7451
|
function St(e, t, o) {
|
|
7442
7452
|
t === 0 && e.categoryLv1Set.delete(o), t === 1 && e.categoryLv2Set.delete(o);
|
|
7443
7453
|
}
|
|
7444
|
-
function
|
|
7454
|
+
function ut(e, t, o) {
|
|
7445
7455
|
t === 0 && e.categoryLv1Set.add(o), t === 1 && e.categoryLv2Set.add(o);
|
|
7446
7456
|
}
|
|
7447
7457
|
function dn(e, t, o) {
|
|
@@ -7451,13 +7461,13 @@ function vt(e) {
|
|
|
7451
7461
|
e.categoryLv1Set.clear(), e.categoryLv2Set.clear();
|
|
7452
7462
|
}
|
|
7453
7463
|
function Fo(e, t, o, l) {
|
|
7454
|
-
if (
|
|
7464
|
+
if (ut(e, o.depth, o.code), o.parent) {
|
|
7455
7465
|
const n = t.find((i) => i.code === o.parent);
|
|
7456
7466
|
n && Fo(e, t, n);
|
|
7457
7467
|
}
|
|
7458
7468
|
}
|
|
7459
7469
|
function Ro(e, t, o, l) {
|
|
7460
|
-
if (
|
|
7470
|
+
if (ut(e, o.depth, o.code), Ge(l, o.depth)) return;
|
|
7461
7471
|
t.filter((i) => i.parent === o.code).forEach((i) => {
|
|
7462
7472
|
Ge(l, i.depth) || Ro(e, t, i, l);
|
|
7463
7473
|
});
|
|
@@ -7546,7 +7556,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7546
7556
|
const z = () => {
|
|
7547
7557
|
const b = /* @__PURE__ */ new Map();
|
|
7548
7558
|
return re.forEach((L) => b.set(L.code, L)), b;
|
|
7549
|
-
}, _ = (b) => b.name ?? "", E = (b) => new Set(S()).has(b.code), T = (b) => Z.some((L) =>
|
|
7559
|
+
}, _ = (b) => b.name ?? "", E = (b) => new Set(S()).has(b.code), T = (b) => Z.some((L) => ct(L.item, b)), A = () => new Set(S()), B = () => {
|
|
7550
7560
|
let b = [];
|
|
7551
7561
|
if (!$)
|
|
7552
7562
|
b = Q;
|
|
@@ -7634,9 +7644,9 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7634
7644
|
}));
|
|
7635
7645
|
const C = (b, L) => b.filter((U) => E(U) !== L).map((U) => U.code), F = (b) => {
|
|
7636
7646
|
const L = Array.from(new Set(b));
|
|
7637
|
-
|
|
7647
|
+
ct(S(), L) || (I(L), e.emit("change", L, L.filter(Boolean)), de(L, "change"), ye(L));
|
|
7638
7648
|
}, ye = (b) => {
|
|
7639
|
-
b.length === re.length ? f().forEach((L) =>
|
|
7649
|
+
b.length === re.length ? f().forEach((L) => ut(W, L.depth, L.code)) : b.forEach((L) => {
|
|
7640
7650
|
const U = O().find((ce) => ce.code === L);
|
|
7641
7651
|
U && dn(W, U.categoryLv1ID ?? "", U.categoryLv2ID ?? "");
|
|
7642
7652
|
});
|
|
@@ -7696,14 +7706,14 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7696
7706
|
L.isExpanded = b, L.depth > 0 ? L.isHidden = !b : L.isHidden = !1;
|
|
7697
7707
|
}), queueMicrotask(() => Fe.measure()), e.requestUpdate();
|
|
7698
7708
|
}, N = (b) => {
|
|
7699
|
-
b.stopPropagation(), Y().size === A().size && [...Y()].every((U) => A().has(U)) ? (f().forEach((U) => St(W, U.depth, U.code)), F([])) : (vt(W), f().forEach((U) =>
|
|
7709
|
+
b.stopPropagation(), Y().size === A().size && [...Y()].every((U) => A().has(U)) ? (f().forEach((U) => St(W, U.depth, U.code)), F([])) : (vt(W), f().forEach((U) => ut(W, U.depth, U.code)), F([...Y()]));
|
|
7700
7710
|
}, R = (b) => {
|
|
7701
7711
|
if (b.stopPropagation(), He()) {
|
|
7702
7712
|
const L = X();
|
|
7703
7713
|
F(S().filter((U) => !L.has(U))), f().forEach((U) => St(W, U.depth, U.code));
|
|
7704
7714
|
} else {
|
|
7705
7715
|
const L = /* @__PURE__ */ new Set([...S(), ...Y()]);
|
|
7706
|
-
F(Array.from(L)), f().forEach((U) =>
|
|
7716
|
+
F(Array.from(L)), f().forEach((U) => ut(W, U.depth, U.code));
|
|
7707
7717
|
}
|
|
7708
7718
|
}, te = (b) => {
|
|
7709
7719
|
q = b.target.scrollTop > 0, e.requestUpdate();
|
|
@@ -7758,7 +7768,12 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7758
7768
|
const L = B()[b];
|
|
7759
7769
|
return L != null && L.isHidden ? 0 : ee() && L && Ge(d, L.depth) ? K : M;
|
|
7760
7770
|
},
|
|
7761
|
-
|
|
7771
|
+
// 드롭다운이 아직 배치되지 않은 시점에는 높이가 0 으로 읽힌다. 0 을 캐시하면 행이 겹쳐 사라지고,
|
|
7772
|
+
// 다음 측정에서 virtual-core 가 그 차이만큼 스크롤을 보정해 목록이 열리자마자 아래로 밀린다.
|
|
7773
|
+
measureElement: (b) => {
|
|
7774
|
+
const L = b.getBoundingClientRect().height;
|
|
7775
|
+
return L > 0 ? L : Fe.options.estimateSize(Number(b.dataset.index));
|
|
7776
|
+
},
|
|
7762
7777
|
overscan: 3,
|
|
7763
7778
|
observeElementRect: Pt,
|
|
7764
7779
|
observeElementOffset: Lt,
|
|
@@ -7769,7 +7784,9 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7769
7784
|
const Uo = (b) => {
|
|
7770
7785
|
h = b ?? null, b && (Fe._willUpdate(), e.requestUpdate());
|
|
7771
7786
|
}, _o = (b, L) => {
|
|
7772
|
-
b
|
|
7787
|
+
if (!b || L !== d) return;
|
|
7788
|
+
const U = b.getBoundingClientRect().height;
|
|
7789
|
+
U > 0 && (K = U);
|
|
7773
7790
|
}, Wo = (b) => b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jt = (b, L) => {
|
|
7774
7791
|
if (!$ || !Ge(d, L)) return [{ part: b, highlight: !1 }];
|
|
7775
7792
|
const U = new RegExp(`(${Wo($)})`, "gi");
|
|
@@ -7781,7 +7798,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7781
7798
|
if (U.isHidden) return w;
|
|
7782
7799
|
const Ne = e.props, Re = U.depth, Ue = Ge(d, Re), je = m(), nt = (Be) => {
|
|
7783
7800
|
Re !== d ? Ze(U, Be) : ot(U.code);
|
|
7784
|
-
},
|
|
7801
|
+
}, ht = (Be) => {
|
|
7785
7802
|
je ? We(U, L, Be, ae && qe(U)) : nt(Be);
|
|
7786
7803
|
}, Dt = () => {
|
|
7787
7804
|
Ie(U, L, {}, ae && qe(U));
|
|
@@ -7811,7 +7828,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7811
7828
|
je || nt(Be);
|
|
7812
7829
|
}}
|
|
7813
7830
|
></div>
|
|
7814
|
-
<div class="item-content" @click=${
|
|
7831
|
+
<div class="item-content" @click=${ht}>
|
|
7815
7832
|
${Ue ? w : a`<button
|
|
7816
7833
|
type="button"
|
|
7817
7834
|
class="icon-container"
|
|
@@ -7850,7 +7867,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7850
7867
|
b.itemsSource !== H && (H = b.itemsSource, x());
|
|
7851
7868
|
const L = v();
|
|
7852
7869
|
L !== Xt && (Xt = L, typeof L != "string" && ye(S()));
|
|
7853
|
-
const U = typeof b.width == "number" ? `${ze(b.width)}rem` : b.width, ce = e.slots.has("icon") ? e.slot("icon", { isOpen: y }) : y ? Gt("14", "var(--moz-color-accent)") : Kt("14", "var(--moz-color-text-subtle)", b.disabled), ae = we(b, un), { aria: he, dom: fe } =
|
|
7870
|
+
const U = typeof b.width == "number" ? `${ze(b.width)}rem` : b.width, ce = e.slots.has("icon") ? e.slot("icon", { isOpen: y }) : y ? Gt("14", "var(--moz-color-accent)") : Kt("14", "var(--moz-color-text-subtle)", b.disabled), ae = we(b, un), { aria: he, dom: fe } = pt(ae);
|
|
7854
7871
|
return a`
|
|
7855
7872
|
<div
|
|
7856
7873
|
${ue(fe)}
|
|
@@ -7907,8 +7924,8 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7907
7924
|
if (m() && !Ge(d, Re.depth)) {
|
|
7908
7925
|
const nt = Ct(Q, Re);
|
|
7909
7926
|
if (nt.length > 0) {
|
|
7910
|
-
const
|
|
7911
|
-
|
|
7927
|
+
const ht = nt.reduce((Dt, qt) => Dt + (ce.has(qt.code) ? 1 : 0), 0);
|
|
7928
|
+
ht === 0 ? Ue = !1 : ht < nt.length ? (Ue = !0, je = !0) : Ue = !0;
|
|
7912
7929
|
}
|
|
7913
7930
|
}
|
|
7914
7931
|
return {
|
|
@@ -9617,7 +9634,7 @@ export {
|
|
|
9617
9634
|
yo as registerDismissLayer,
|
|
9618
9635
|
Nr as registerForeignLayer,
|
|
9619
9636
|
Mt as registerSelfHandledLayer,
|
|
9620
|
-
|
|
9637
|
+
ct as shallowEqual,
|
|
9621
9638
|
ue as spread,
|
|
9622
9639
|
Nt as toggleTemplate,
|
|
9623
9640
|
tt as uniqueId,
|