@vmscloud/moz-ui-components-core 0.1.66 → 0.1.67
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 +88 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +231 -226
- package/dist/index.js.map +1 -1
- package/dist/runtime/ChromeComponent.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Cs = Object.defineProperty;
|
|
2
2
|
var ys = (e, t, o) => t in e ? Cs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
-
var
|
|
4
|
-
import { render as
|
|
3
|
+
var Be = (e, t, o) => ys(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { render as Ot, nothing as b, html as a, noChange as $s } from "lit-html";
|
|
5
5
|
import { directive as Ss, Directive as ks, PartType as Es } from "lit-html/directive.js";
|
|
6
6
|
import { styleMap as ee } from "lit-html/directives/style-map.js";
|
|
7
7
|
import { clsx as xs } from "clsx";
|
|
@@ -23,10 +23,11 @@ import "dayjs/locale/ja.js";
|
|
|
23
23
|
import { Virtualizer as ro, elementScroll as ao, observeElementOffset as co, observeElementRect as uo } from "@tanstack/virtual-core";
|
|
24
24
|
class Vs {
|
|
25
25
|
constructor(t) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
Be(this, "container");
|
|
27
|
+
Be(this, "updateScheduled", !1);
|
|
28
|
+
Be(this, "mounted", !1);
|
|
29
|
+
Be(this, "cleanups", []);
|
|
30
|
+
Be(this, "endMarker", null);
|
|
30
31
|
this.container = t;
|
|
31
32
|
}
|
|
32
33
|
/** 최초 마운트 (즉시 1회 렌더) */
|
|
@@ -41,7 +42,11 @@ class Vs {
|
|
|
41
42
|
}
|
|
42
43
|
/** 즉시 동기 렌더 (테스트/긴급 갱신용) */
|
|
43
44
|
renderNow() {
|
|
44
|
-
|
|
45
|
+
Ot(this.template(), this.container, this.rootOptions());
|
|
46
|
+
}
|
|
47
|
+
/** 첫 렌더 때 컨테이너 끝에 둔 마커 — 이후 프레임워크가 뒤에 붙이는 노드는 루트 파트 밖에 있다. */
|
|
48
|
+
rootOptions() {
|
|
49
|
+
return this.endMarker || (this.endMarker = this.container.appendChild(document.createComment(""))), { renderBefore: this.endMarker };
|
|
45
50
|
}
|
|
46
51
|
/** 구독/리스너 등 정리 대상 등록 */
|
|
47
52
|
addCleanup(t) {
|
|
@@ -61,7 +66,7 @@ class Vs {
|
|
|
61
66
|
t();
|
|
62
67
|
} catch {
|
|
63
68
|
}
|
|
64
|
-
|
|
69
|
+
this.endMarker && (Ot(b, this.container, { renderBefore: this.endMarker }), this.endMarker.remove(), this.endMarker = null);
|
|
65
70
|
}
|
|
66
71
|
}
|
|
67
72
|
/** 마운트 상태 */
|
|
@@ -71,7 +76,7 @@ class Vs {
|
|
|
71
76
|
}
|
|
72
77
|
class gr {
|
|
73
78
|
constructor() {
|
|
74
|
-
|
|
79
|
+
Be(this, "listeners", /* @__PURE__ */ new Set());
|
|
75
80
|
}
|
|
76
81
|
/** 변경 구독 — 해제 함수 반환 */
|
|
77
82
|
subscribe(t) {
|
|
@@ -91,16 +96,16 @@ class gr {
|
|
|
91
96
|
}
|
|
92
97
|
class Ds {
|
|
93
98
|
constructor() {
|
|
94
|
-
|
|
99
|
+
Be(this, "renderers", /* @__PURE__ */ new Map());
|
|
95
100
|
/**
|
|
96
101
|
* 등록되지 않은 이름을 **호출 시점에** 조회하는 resolver. 동적 slot 이름(Tab 의 `${id}-tab`/
|
|
97
102
|
* `${id}` 처럼 데이터에서 파생되는 이름)은 마운트 때 확정할 수 없다 — 어댑터가 이 훅으로
|
|
98
103
|
* "지금 소비자가 그 이름의 콘텐츠를 갖고 있는가" 를 답한다.
|
|
99
104
|
*/
|
|
100
|
-
|
|
105
|
+
Be(this, "resolver", null);
|
|
101
106
|
// 마운트된 인스턴스는 outlet 인스턴스 키(name#N) 로 추적한다 — 같은 slot 이름이 여러 번(예: 리스트
|
|
102
107
|
// 행마다 list-item) 쓰여도 각 outlet 을 독립 인스턴스로 관리하기 위함.
|
|
103
|
-
|
|
108
|
+
Be(this, "mounted", /* @__PURE__ */ new Map());
|
|
104
109
|
}
|
|
105
110
|
setResolver(t) {
|
|
106
111
|
this.resolver = t;
|
|
@@ -167,7 +172,7 @@ class Ds {
|
|
|
167
172
|
}
|
|
168
173
|
class eo {
|
|
169
174
|
constructor() {
|
|
170
|
-
|
|
175
|
+
Be(this, "el", null);
|
|
171
176
|
}
|
|
172
177
|
open(t = "", o = document.body) {
|
|
173
178
|
return this.el ? this.el : (this.el = document.createElement("div"), t && (this.el.className = t), o.appendChild(this.el), this.el);
|
|
@@ -2318,12 +2323,12 @@ function Se(e) {
|
|
|
2318
2323
|
let S = null;
|
|
2319
2324
|
if (E.renderPortal) {
|
|
2320
2325
|
const I = E.renderPortal(), Y = E.getPortalContainer ? E.getPortalContainer() : document.body;
|
|
2321
|
-
I === b || I == null || Y == null ? m && m.isOpen && (
|
|
2326
|
+
I === b || I == null || Y == null ? m && m.isOpen && (Ot(b, m.element), m.close()) : (m || (m = new eo()), S = m.isOpen ? m.element : m.open("moz-overlay-portal", Y), Ot(I, S));
|
|
2322
2327
|
}
|
|
2323
2328
|
for (const [I, { name: Y, scope: ne }] of z) {
|
|
2324
|
-
const
|
|
2325
|
-
let se = this.container.querySelector(
|
|
2326
|
-
!se && S && (se = S.querySelector(
|
|
2329
|
+
const R = `[data-moz-slot-id="${f + I}"]`;
|
|
2330
|
+
let se = this.container.querySelector(R);
|
|
2331
|
+
!se && S && (se = S.querySelector(R)), se && l.fill(I, Y, se, ne);
|
|
2327
2332
|
}
|
|
2328
2333
|
for (const I of x)
|
|
2329
2334
|
z.has(I) || l.clear(I);
|
|
@@ -2407,11 +2412,11 @@ const Cr = {
|
|
|
2407
2412
|
MozTooltip: ["arrow", "open"],
|
|
2408
2413
|
MozTreeSelect: ["disabled", "readonly", "required", "useFilter", "useMultiSelect", "useSelectAll", "useSpecificSelect"]
|
|
2409
2414
|
};
|
|
2410
|
-
class
|
|
2415
|
+
class Os extends ks {
|
|
2411
2416
|
constructor(o) {
|
|
2412
2417
|
super(o);
|
|
2413
|
-
|
|
2414
|
-
|
|
2418
|
+
Be(this, "prevKeys", []);
|
|
2419
|
+
Be(this, "listeners", /* @__PURE__ */ new Map());
|
|
2415
2420
|
if (o.type !== Es.ELEMENT)
|
|
2416
2421
|
throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.");
|
|
2417
2422
|
}
|
|
@@ -2442,14 +2447,14 @@ class Rs extends ks {
|
|
|
2442
2447
|
return o.slice(2).toLowerCase();
|
|
2443
2448
|
}
|
|
2444
2449
|
}
|
|
2445
|
-
const fe = Ss(
|
|
2450
|
+
const fe = Ss(Os);
|
|
2446
2451
|
function q(...e) {
|
|
2447
2452
|
return xs(e);
|
|
2448
2453
|
}
|
|
2449
|
-
function
|
|
2454
|
+
function Rs() {
|
|
2450
2455
|
return pt.extend(Ms), pt.extend(Ls), pt.extend(zs), pt.extend(Ps), pt.extend(Ts), pt.extend(As), pt.tz.setDefault("Asia/Seoul"), pt;
|
|
2451
2456
|
}
|
|
2452
|
-
const Pe =
|
|
2457
|
+
const Pe = Rs();
|
|
2453
2458
|
function yr() {
|
|
2454
2459
|
const e = [];
|
|
2455
2460
|
return { addValidator: (d) => {
|
|
@@ -2477,9 +2482,9 @@ function Ns(e, t) {
|
|
|
2477
2482
|
}
|
|
2478
2483
|
class mo {
|
|
2479
2484
|
constructor(t) {
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2485
|
+
Be(this, "opened", !1);
|
|
2486
|
+
Be(this, "scrollHandler");
|
|
2487
|
+
Be(this, "clickHandler");
|
|
2483
2488
|
this.opts = t, this.scrollHandler = Ns((o) => this.onScroll(o), Hs), this.clickHandler = (o) => this.onOutsideClick(o);
|
|
2484
2489
|
}
|
|
2485
2490
|
open() {
|
|
@@ -2528,7 +2533,7 @@ class mo {
|
|
|
2528
2533
|
}
|
|
2529
2534
|
}
|
|
2530
2535
|
const ut = [];
|
|
2531
|
-
let
|
|
2536
|
+
let Rt = !1;
|
|
2532
2537
|
function Io(e) {
|
|
2533
2538
|
var o;
|
|
2534
2539
|
if (e.key !== "Escape") return;
|
|
@@ -2536,10 +2541,10 @@ function Io(e) {
|
|
|
2536
2541
|
t && t.kind === "moz" && ((o = t.onEscape) == null || o.call(t, e), e.stopPropagation());
|
|
2537
2542
|
}
|
|
2538
2543
|
function Us() {
|
|
2539
|
-
|
|
2544
|
+
Rt || typeof window > "u" || (window.addEventListener("keydown", Io, { capture: !0 }), Rt = !0);
|
|
2540
2545
|
}
|
|
2541
2546
|
function _s() {
|
|
2542
|
-
!
|
|
2547
|
+
!Rt || typeof window > "u" || (window.removeEventListener("keydown", Io, !0), Rt = !1);
|
|
2543
2548
|
}
|
|
2544
2549
|
function ho(e) {
|
|
2545
2550
|
ut.push(e), Us();
|
|
@@ -2638,7 +2643,7 @@ function Bo(e, t) {
|
|
|
2638
2643
|
return;
|
|
2639
2644
|
}
|
|
2640
2645
|
}
|
|
2641
|
-
function
|
|
2646
|
+
function Oo(e, t) {
|
|
2642
2647
|
const o = e ?? "default";
|
|
2643
2648
|
return Tt(o === "contained-large" || o === "contained-small" || o === "default" || o === "contained" ? t === "large" ? "contained-large" : t === "small" ? "contained-small" : "default" : o);
|
|
2644
2649
|
}
|
|
@@ -2658,7 +2663,7 @@ function qt(e, t = {}) {
|
|
|
2658
2663
|
type=${e.nativeType ?? "button"}
|
|
2659
2664
|
class=${q(
|
|
2660
2665
|
"moz-button",
|
|
2661
|
-
|
|
2666
|
+
Oo(e.type, n),
|
|
2662
2667
|
{ loading: !!e.loading, disabled: o, "moz-icon-text-button": s },
|
|
2663
2668
|
e.class
|
|
2664
2669
|
)}
|
|
@@ -2711,7 +2716,7 @@ const Zs = Se({
|
|
|
2711
2716
|
type=${n.nativeType ?? "button"}
|
|
2712
2717
|
class=${q(
|
|
2713
2718
|
"moz-button",
|
|
2714
|
-
|
|
2719
|
+
Oo(n.type, f),
|
|
2715
2720
|
{
|
|
2716
2721
|
loading: t,
|
|
2717
2722
|
disabled: r,
|
|
@@ -2747,11 +2752,11 @@ const Zs = Se({
|
|
|
2747
2752
|
slots: ["icon", "default"],
|
|
2748
2753
|
expose: !0
|
|
2749
2754
|
}, Ys = /* @__PURE__ */ new Set(["for", "disabled", "required", "isReadOnly", "class", "style"]);
|
|
2750
|
-
function
|
|
2755
|
+
function Ro(e, t) {
|
|
2751
2756
|
return q("moz-label", { disabled: !!e.disabled, "read-only": !!e.isReadOnly }, t, e.class);
|
|
2752
2757
|
}
|
|
2753
2758
|
function st(e, t, o) {
|
|
2754
|
-
return a`<label class=${
|
|
2759
|
+
return a`<label class=${Ro(e, o)} for=${ze(e.for)}
|
|
2755
2760
|
>${t}${e.required ? a`<span class="require-mark">*</span>` : b}</label
|
|
2756
2761
|
>`;
|
|
2757
2762
|
}
|
|
@@ -2762,7 +2767,7 @@ const js = Se({
|
|
|
2762
2767
|
render() {
|
|
2763
2768
|
const t = e.props, o = $e(t, Ys);
|
|
2764
2769
|
return a`<label
|
|
2765
|
-
class=${
|
|
2770
|
+
class=${Ro(t)}
|
|
2766
2771
|
for=${ze(t.for)}
|
|
2767
2772
|
style=${ee(Ce(t.style))}
|
|
2768
2773
|
${fe(o)}
|
|
@@ -3423,7 +3428,7 @@ const un = Se({
|
|
|
3423
3428
|
I(N, ae(-1));
|
|
3424
3429
|
break;
|
|
3425
3430
|
}
|
|
3426
|
-
}, ne = !!l.iconOnly,
|
|
3431
|
+
}, ne = !!l.iconOnly, R = e.slots.has("item-icon"), se = !ne && e.slots.has("item-badge");
|
|
3427
3432
|
return a`
|
|
3428
3433
|
<div
|
|
3429
3434
|
class=${q("radio-container", {
|
|
@@ -3453,7 +3458,7 @@ const un = Se({
|
|
|
3453
3458
|
W || e.emit("update:modelValue", N[i] ?? "");
|
|
3454
3459
|
}}
|
|
3455
3460
|
>
|
|
3456
|
-
${
|
|
3461
|
+
${R ? a`<span class="segment-icon">${e.slot("item-icon", J)}</span>` : b}
|
|
3457
3462
|
${ne ? b : _}
|
|
3458
3463
|
${se ? a`<span class="segment-badge">${e.slot("item-badge", J)}</span>` : b}
|
|
3459
3464
|
</button>
|
|
@@ -3722,7 +3727,7 @@ function jo(e, t = {}) {
|
|
|
3722
3727
|
@blur=${D}
|
|
3723
3728
|
/>`, ne = S ? a`<div class="moz-input-invalid-icon-v2">
|
|
3724
3729
|
${e.slots.has("invalidTooltip") ? e.slot("invalidTooltip", { message: E }) : a`<div title=${E}>${fn("var(--moz-color-danger)")}</div>`}
|
|
3725
|
-
</div>` : b,
|
|
3730
|
+
</div>` : b, R = I ? a`<span class=${q("moz-input-invalid-message", `position-${m.messagePosition}`)}
|
|
3726
3731
|
>${E}</span
|
|
3727
3732
|
>` : b, se = m.label ? st(
|
|
3728
3733
|
{ for: re, isReadOnly: m.isReadOnly, required: m.required },
|
|
@@ -3758,14 +3763,14 @@ function jo(e, t = {}) {
|
|
|
3758
3763
|
>
|
|
3759
3764
|
${s ? gn() : vn()}
|
|
3760
3765
|
</button>
|
|
3761
|
-
${ne} ${
|
|
3766
|
+
${ne} ${R}
|
|
3762
3767
|
</div>
|
|
3763
3768
|
</div>
|
|
3764
3769
|
</div>
|
|
3765
3770
|
` : a`
|
|
3766
3771
|
<div class=${N} style=${X}>
|
|
3767
3772
|
<div class="input-wrapper">
|
|
3768
|
-
${se} ${Y} ${ne} ${
|
|
3773
|
+
${se} ${Y} ${ne} ${R}
|
|
3769
3774
|
</div>
|
|
3770
3775
|
</div>
|
|
3771
3776
|
`;
|
|
@@ -4344,7 +4349,7 @@ function Bn(e = Xo) {
|
|
|
4344
4349
|
></path>
|
|
4345
4350
|
</svg>`;
|
|
4346
4351
|
}
|
|
4347
|
-
function
|
|
4352
|
+
function On(e = "var(--moz-color-text-subtle)") {
|
|
4348
4353
|
return a`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4349
4354
|
<path
|
|
4350
4355
|
d="M11.5 2.7H2.50001C1.78204 2.7 1.20001 3.28203 1.20001 4V12C1.20001 12.718 1.78204 13.3 2.50001 13.3H11.5C12.218 13.3 12.8 12.718 12.8 12V4C12.8 3.28203 12.218 2.7 11.5 2.7Z"
|
|
@@ -4360,7 +4365,7 @@ function Rn(e = "var(--moz-color-text-subtle)") {
|
|
|
4360
4365
|
<rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
|
|
4361
4366
|
</svg>`;
|
|
4362
4367
|
}
|
|
4363
|
-
const
|
|
4368
|
+
const Rn = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "modelValue", "class", "style"]), Hn = (e, ...t) => e.filter((o) => !t.includes(o)), wt = 12, Nn = 2024, yo = (e) => e - ((e - Nn) % wt + wt) % wt, Qo = Se({
|
|
4364
4369
|
name: "moz-calendar",
|
|
4365
4370
|
defaults: { rowHeight: 36, exceptWeeks: [], min: null, max: null },
|
|
4366
4371
|
setup(e) {
|
|
@@ -4408,7 +4413,7 @@ const On = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4408
4413
|
const Y = (_, G) => {
|
|
4409
4414
|
const J = _.add(G, "d");
|
|
4410
4415
|
return t.format("YYYYMMDD") !== J.format("YYYYMMDD") ? t.format("MM") === J.format("MM") ? "" : "moz-calendar-column-otherMonth" : "";
|
|
4411
|
-
}, ne = y.modelValue ? Pe(y.modelValue).format("YYYYMMDD") : "",
|
|
4416
|
+
}, ne = y.modelValue ? Pe(y.modelValue).format("YYYYMMDD") : "", R = (_, G, J) => a`<button
|
|
4412
4417
|
type="button"
|
|
4413
4418
|
aria-label=${J}
|
|
4414
4419
|
class="moz-button moz-icon-button"
|
|
@@ -4432,11 +4437,11 @@ const On = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4432
4437
|
</div>
|
|
4433
4438
|
<div class="moz-calendar-header__spacer"></div>
|
|
4434
4439
|
<div class="moz-calendar-select-btn-group">
|
|
4435
|
-
${
|
|
4436
|
-
|
|
4440
|
+
${R(Fn(), u, n ? "이전 연도" : "이전 달")}${R(
|
|
4441
|
+
On(),
|
|
4437
4442
|
m,
|
|
4438
4443
|
"오늘"
|
|
4439
|
-
)}${
|
|
4444
|
+
)}${R(Bn(), p, n ? "다음 연도" : "다음 달")}
|
|
4440
4445
|
</div>
|
|
4441
4446
|
</div>
|
|
4442
4447
|
`, N = a`
|
|
@@ -4512,7 +4517,7 @@ const On = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4512
4517
|
)}
|
|
4513
4518
|
</div>`;
|
|
4514
4519
|
}
|
|
4515
|
-
const W = $e(y,
|
|
4520
|
+
const W = $e(y, Rn);
|
|
4516
4521
|
return a`
|
|
4517
4522
|
<div
|
|
4518
4523
|
class=${q(
|
|
@@ -4709,7 +4714,7 @@ const Kn = "YYYY-MM-DD", Gn = /* @__PURE__ */ new Set([
|
|
|
4709
4714
|
}
|
|
4710
4715
|
};
|
|
4711
4716
|
}
|
|
4712
|
-
}),
|
|
4717
|
+
}), Or = {
|
|
4713
4718
|
name: "MozDateInput",
|
|
4714
4719
|
core: Zn,
|
|
4715
4720
|
booleanProps: ["disabled", "readonly", "required", "showSpin"],
|
|
@@ -4933,7 +4938,7 @@ const tl = () => {
|
|
|
4933
4938
|
d || (d = qo(() => A()));
|
|
4934
4939
|
}, ne = () => {
|
|
4935
4940
|
d == null || d.release(), d = null;
|
|
4936
|
-
},
|
|
4941
|
+
}, R = () => {
|
|
4937
4942
|
Z || (Z = !0, Y(), e.props.lockScroll && (tl(), K = !0), e.props.focusTrap && (Q = document.activeElement instanceof HTMLElement ? document.activeElement : null, queueMicrotask(() => {
|
|
4938
4943
|
const T = t.value;
|
|
4939
4944
|
!T || !c() || (S()[0] ?? T).focus();
|
|
@@ -4965,7 +4970,7 @@ const tl = () => {
|
|
|
4965
4970
|
}, G = () => {
|
|
4966
4971
|
!c() || e.props.side || e.props.autoPosition === !1 || x || _();
|
|
4967
4972
|
}, J = () => {
|
|
4968
|
-
c() || i(!0), e.emit("open"), _(),
|
|
4973
|
+
c() || i(!0), e.emit("open"), _(), R();
|
|
4969
4974
|
}, M = async () => {
|
|
4970
4975
|
let T = !0;
|
|
4971
4976
|
return e.props.onBeforeClose ? T = await e.props.onBeforeClose() ?? !0 : e.emit("close:before", T), T;
|
|
@@ -4984,7 +4989,7 @@ const tl = () => {
|
|
|
4984
4989
|
T ? J() : (se(), ce(), h(!0));
|
|
4985
4990
|
}, Ue = (T, de) => {
|
|
4986
4991
|
document.addEventListener("mouseup", T), document.addEventListener("mousemove", de);
|
|
4987
|
-
},
|
|
4992
|
+
}, Re = (T, de) => {
|
|
4988
4993
|
document.removeEventListener("mouseup", T), document.removeEventListener("mousemove", de);
|
|
4989
4994
|
}, nt = (T) => {
|
|
4990
4995
|
const de = D - T.clientX, qe = z - T.clientY;
|
|
@@ -4995,7 +5000,7 @@ const tl = () => {
|
|
|
4995
5000
|
T.clientX !== 0 && T.clientY !== 0 && (m = T), y.mouseDown && g && (y.dragging = !0, Je(T));
|
|
4996
5001
|
}, He = () => {
|
|
4997
5002
|
y.dragging && e.emit("drag-end"), y.mouseDown = !1, setTimeout(() => {
|
|
4998
|
-
y.dragging = !1,
|
|
5003
|
+
y.dragging = !1, Re(He, et);
|
|
4999
5004
|
}, 100);
|
|
5000
5005
|
}, _e = (T) => {
|
|
5001
5006
|
e.props.side || e.props.autoPosition === !1 || (T.preventDefault(), Ue(He, et), nt(T));
|
|
@@ -5005,7 +5010,7 @@ const tl = () => {
|
|
|
5005
5010
|
if (!de) return;
|
|
5006
5011
|
const qe = de.getBoundingClientRect(), w = u() ?? qe.width, U = $() ?? qe.height;
|
|
5007
5012
|
if (!w || !U) return;
|
|
5008
|
-
const te = w / U, he = { x: T.clientX, y: T.clientY }, we = e.props,
|
|
5013
|
+
const te = w / U, he = { x: T.clientX, y: T.clientY }, we = e.props, Oe = (ke) => {
|
|
5009
5014
|
let je = ke.clientX - he.x, Ve = ke.clientY - he.y;
|
|
5010
5015
|
if (we.keepAspectRatio) {
|
|
5011
5016
|
const at = je / te;
|
|
@@ -5015,9 +5020,9 @@ const tl = () => {
|
|
|
5015
5020
|
let tt = Math.max(we.minHeight, Math.min(U + Ve, we.maxHeight));
|
|
5016
5021
|
we.keepAspectRatio && De / tt !== te && (tt = De / te), p(De), P(tt);
|
|
5017
5022
|
}, ye = () => {
|
|
5018
|
-
document.removeEventListener("mousemove",
|
|
5023
|
+
document.removeEventListener("mousemove", Oe), document.removeEventListener("mouseup", ye);
|
|
5019
5024
|
};
|
|
5020
|
-
document.addEventListener("mousemove",
|
|
5025
|
+
document.addEventListener("mousemove", Oe), document.addEventListener("mouseup", ye);
|
|
5021
5026
|
}, We = (T) => {
|
|
5022
5027
|
if (T.key === "Tab" && e.props.focusTrap && c() && I()) {
|
|
5023
5028
|
if (d && !d.isTopmost()) return;
|
|
@@ -5034,7 +5039,7 @@ const tl = () => {
|
|
|
5034
5039
|
}
|
|
5035
5040
|
};
|
|
5036
5041
|
e.onCleanup(() => {
|
|
5037
|
-
X == null || X.disconnect(), X = null, L = null, se(), window.removeEventListener("keydown", We), window.removeEventListener("resize", G), ce(), window.removeEventListener("unload", ce),
|
|
5042
|
+
X == null || X.disconnect(), X = null, L = null, se(), window.removeEventListener("keydown", We), window.removeEventListener("resize", G), ce(), window.removeEventListener("unload", ce), Re(He, et);
|
|
5038
5043
|
});
|
|
5039
5044
|
const Ke = () => {
|
|
5040
5045
|
const T = e.props;
|
|
@@ -5068,7 +5073,7 @@ const tl = () => {
|
|
|
5068
5073
|
return {
|
|
5069
5074
|
api: { resetPosition: _ },
|
|
5070
5075
|
onMounted: () => {
|
|
5071
|
-
window.addEventListener("keydown", We), window.addEventListener("resize", G), window.addEventListener("unload", ce), queueMicrotask(() => e.emit("init", o.value ?? null)), c() && (_(),
|
|
5076
|
+
window.addEventListener("keydown", We), window.addEventListener("resize", G), window.addEventListener("unload", ce), queueMicrotask(() => e.emit("init", o.value ?? null)), c() && (_(), R());
|
|
5072
5077
|
},
|
|
5073
5078
|
render() {
|
|
5074
5079
|
const T = e.props, de = c();
|
|
@@ -5077,7 +5082,7 @@ const tl = () => {
|
|
|
5077
5082
|
E = de, ht ? Y() : ne(), queueMicrotask(() => Me(ht));
|
|
5078
5083
|
}
|
|
5079
5084
|
if (!(T.useVShow ? !0 : de)) return b;
|
|
5080
|
-
const w = T.useVShow ? !de : !1, U = u(), te = $(), he = T.side, we = !!he || T.autoPosition === !1,
|
|
5085
|
+
const w = T.useVShow ? !de : !1, U = u(), te = $(), he = T.side, we = !!he || T.autoPosition === !1, Oe = {
|
|
5081
5086
|
...Ce(T.style),
|
|
5082
5087
|
// 모델 값이 없으면 **키 자체를 두지 않는다.** `width: undefined` 를 얹으면 소비자가
|
|
5083
5088
|
// `style` 로 준 width/height 가 지워진다(styleMap 이 undefined 를 "제거" 로 읽는다).
|
|
@@ -5120,7 +5125,7 @@ const tl = () => {
|
|
|
5120
5125
|
aria-labelledby=${ze(T.showHeader === !1 ? void 0 : s)}
|
|
5121
5126
|
aria-describedby=${ze(at ? n : void 0)}
|
|
5122
5127
|
tabindex=${ze(T.focusTrap ? "-1" : void 0)}
|
|
5123
|
-
style=${ee(
|
|
5128
|
+
style=${ee(Oe)}
|
|
5124
5129
|
${me(t)}
|
|
5125
5130
|
${fe(De)}
|
|
5126
5131
|
>
|
|
@@ -5148,7 +5153,7 @@ const tl = () => {
|
|
|
5148
5153
|
}
|
|
5149
5154
|
};
|
|
5150
5155
|
}
|
|
5151
|
-
}),
|
|
5156
|
+
}), Rr = {
|
|
5152
5157
|
name: "MozPopup",
|
|
5153
5158
|
core: nl,
|
|
5154
5159
|
booleanProps: ["autoPosition", "closeOnOutsideClick", "disabledConfirmButton", "draggable", "focusTrap", "hideOthers", "keepAspectRatio", "loading", "lockScroll", "resizeable", "showBackdrop", "showCloseButton", "showFooterBorder", "showHeader", "useVShow", "visible"],
|
|
@@ -5364,7 +5369,7 @@ const ss = (e = !1) => Se({
|
|
|
5364
5369
|
t.onCleanup(() => {
|
|
5365
5370
|
$ = !0, P += 1, D = null, z = null, window.removeEventListener("keydown", V), ce == null || ce.release(), ce = null;
|
|
5366
5371
|
}), t.onCleanup(ne._didMount());
|
|
5367
|
-
const
|
|
5372
|
+
const R = (w) => {
|
|
5368
5373
|
l = w ?? null, w && (ne._willUpdate(), t.requestUpdate());
|
|
5369
5374
|
}, se = (w) => t.props.itemsSource ? t.props.itemsSource.find((te) => te[Z()] === w) ?? null : null, N = (w) => {
|
|
5370
5375
|
if (!w) return "";
|
|
@@ -5399,8 +5404,8 @@ const ss = (e = !1) => Se({
|
|
|
5399
5404
|
y[U] = "", t.requestUpdate();
|
|
5400
5405
|
const he = te.filter((we) => we.type === U);
|
|
5401
5406
|
for (const we of he) {
|
|
5402
|
-
const
|
|
5403
|
-
if (!await we.validator(
|
|
5407
|
+
const Oe = e && t.props.useObjBinding ? w == null ? "" : String(w) : w;
|
|
5408
|
+
if (!await we.validator(Oe))
|
|
5404
5409
|
return y[U] = we.message, t.requestUpdate(), !1;
|
|
5405
5410
|
}
|
|
5406
5411
|
return !0;
|
|
@@ -5439,13 +5444,13 @@ const ss = (e = !1) => Se({
|
|
|
5439
5444
|
p = w;
|
|
5440
5445
|
const he = ++P;
|
|
5441
5446
|
D = w && U !== void 0 ? { generation: he, step: U } : null, z = null, t.requestUpdate(), w ? (ce = fo(), A.open(), y.save = "", window.addEventListener("keydown", V), queueMicrotask(() => {
|
|
5442
|
-
var
|
|
5447
|
+
var Oe;
|
|
5443
5448
|
if ($ || !p || he !== P) return;
|
|
5444
5449
|
if (i() != null) {
|
|
5445
5450
|
const ye = L().findIndex(I);
|
|
5446
5451
|
ye >= 0 && (e && (g = ye, t.requestUpdate()), l && (l.scrollTop = H(ye)));
|
|
5447
5452
|
}
|
|
5448
|
-
te && U === void 0 && (f.value ? f.value.focus() : (
|
|
5453
|
+
te && U === void 0 && (f.value ? f.value.focus() : (Oe = r.value) == null || Oe.focus());
|
|
5449
5454
|
})) : (ce == null || ce.release(), ce = null, A.close(), t.emit("close"), J(i(), "blur"), window.removeEventListener("keydown", V), x = "", g = -1, t.emit("close"), queueMicrotask(() => {
|
|
5450
5455
|
var we;
|
|
5451
5456
|
$ || p || he !== P || (we = r.value) == null || we.focus();
|
|
@@ -5456,7 +5461,7 @@ const ss = (e = !1) => Se({
|
|
|
5456
5461
|
}, Ue = (w) => {
|
|
5457
5462
|
var U;
|
|
5458
5463
|
u(w), Ee(!1), (U = r.value) == null || U.focus();
|
|
5459
|
-
},
|
|
5464
|
+
}, Re = al((w) => {
|
|
5460
5465
|
x = w.target.value, e && (g = L().length ? 0 : -1), t.requestUpdate(), queueMicrotask(() => {
|
|
5461
5466
|
const U = L().length;
|
|
5462
5467
|
ne.setOptions({ ...ne.options, count: U }), ne.measure(), l && (l.scrollTop = 0, ne.scrollToIndex(0), ne.measure());
|
|
@@ -5469,8 +5474,8 @@ const ss = (e = !1) => Se({
|
|
|
5469
5474
|
te == null || te.focus();
|
|
5470
5475
|
}
|
|
5471
5476
|
}, Je = (w) => {
|
|
5472
|
-
var
|
|
5473
|
-
const U = ((
|
|
5477
|
+
var Oe, ye, ke;
|
|
5478
|
+
const U = ((Oe = n.value) == null ? void 0 : Oe.querySelectorAll('[tabindex="0"]')) ?? [], te = [...Array.from(U)];
|
|
5474
5479
|
f.value && te.unshift(f.value);
|
|
5475
5480
|
const he = te[0], we = te[te.length - 1];
|
|
5476
5481
|
(w.target === he || w.target === we) && r.value && (w.target === he && w.shiftKey ? (w.stopPropagation(), w.preventDefault(), (ye = r.value) == null || ye.focus()) : w.target === we && !w.shiftKey && (w.stopPropagation(), w.preventDefault(), (ke = r.value) == null || ke.focus()));
|
|
@@ -5576,7 +5581,7 @@ const ss = (e = !1) => Se({
|
|
|
5576
5581
|
J(Ve, "change"), t.emit("change", Ve, se(S(Ve)));
|
|
5577
5582
|
});
|
|
5578
5583
|
}
|
|
5579
|
-
const te = typeof w.width == "number" ? `${Ie(w.width)}rem` : w.width, he = $e(w, rl), { aria: we, dom:
|
|
5584
|
+
const te = typeof w.width == "number" ? `${Ie(w.width)}rem` : w.width, he = $e(w, rl), { aria: we, dom: Oe } = Ut(he), ye = t.slots.has("icon") ? t.slot("icon", { isOpen: p }) : p ? os("14", "var(--moz-color-accent)") : ts("14", "var(--moz-color-text-subtle)", w.disabled), ke = a`<button
|
|
5580
5585
|
type="button"
|
|
5581
5586
|
class="icon-container"
|
|
5582
5587
|
${fe(we)}
|
|
@@ -5609,7 +5614,7 @@ const ss = (e = !1) => Se({
|
|
|
5609
5614
|
${me(s)}
|
|
5610
5615
|
>
|
|
5611
5616
|
<input
|
|
5612
|
-
${fe(
|
|
5617
|
+
${fe(Oe)}
|
|
5613
5618
|
.value=${X() ?? ""}
|
|
5614
5619
|
placeholder=${ze(w.placeholder ?? void 0)}
|
|
5615
5620
|
autocomplete="off"
|
|
@@ -5661,7 +5666,7 @@ const ss = (e = !1) => Se({
|
|
|
5661
5666
|
te.length,
|
|
5662
5667
|
Q(),
|
|
5663
5668
|
l
|
|
5664
|
-
), we = ne.getTotalSize(),
|
|
5669
|
+
), we = ne.getTotalSize(), Oe = he.map((ye) => {
|
|
5665
5670
|
if (ye.index >= te.length) return null;
|
|
5666
5671
|
const ke = te[ye.index];
|
|
5667
5672
|
return ke ? { index: ye.index, value: ke, size: ye.size, start: ye.start } : null;
|
|
@@ -5677,7 +5682,7 @@ const ss = (e = !1) => Se({
|
|
|
5677
5682
|
${me(f)}
|
|
5678
5683
|
@mousedown=${(ye) => ye.stopPropagation()}
|
|
5679
5684
|
placeholder=${w.searchPlaceholder ?? j().searchPlaceholder}
|
|
5680
|
-
@input=${
|
|
5685
|
+
@input=${Re}
|
|
5681
5686
|
class="filter-input__field"
|
|
5682
5687
|
/>
|
|
5683
5688
|
${e ? b : a`<div class="search-icon">${oo("12", "var(--moz-color-text-subtle)")}</div>`}
|
|
@@ -5691,10 +5696,10 @@ const ss = (e = !1) => Se({
|
|
|
5691
5696
|
"list-box-container--with-header": ae(),
|
|
5692
5697
|
"list-box-container--with-filter-header": w.useFilter && ae()
|
|
5693
5698
|
})}
|
|
5694
|
-
${me(
|
|
5699
|
+
${me(R)}
|
|
5695
5700
|
>
|
|
5696
5701
|
<div class="inner-container" style=${ee({ height: `${we}px` })} ${me(d)}>
|
|
5697
|
-
${
|
|
5702
|
+
${Oe.map(({ index: ye, value: ke, start: je }) => {
|
|
5698
5703
|
const Ve = I(ke);
|
|
5699
5704
|
return a`<div
|
|
5700
5705
|
data-index=${ye}
|
|
@@ -5904,12 +5909,12 @@ const gl = Se({
|
|
|
5904
5909
|
I = null, j++;
|
|
5905
5910
|
}, ne = () => {
|
|
5906
5911
|
!S && I === null && (r != null && r.isConnected) && (I = r.scrollTop);
|
|
5907
|
-
},
|
|
5912
|
+
}, R = () => {
|
|
5908
5913
|
const v = j, F = r;
|
|
5909
5914
|
I === null || !F || queueMicrotask(() => {
|
|
5910
5915
|
if (v !== j || F !== r || !F.isConnected || S || I === null || F.clientHeight <= 0) return;
|
|
5911
|
-
const
|
|
5912
|
-
I = null, F.scrollTop !==
|
|
5916
|
+
const O = Math.min(Math.max(0, I), Math.max(0, F.scrollHeight - F.clientHeight));
|
|
5917
|
+
I = null, F.scrollTop !== O && se.scrollToOffset(O, { behavior: "auto" });
|
|
5913
5918
|
});
|
|
5914
5919
|
}, se = new ro({
|
|
5915
5920
|
count: 0,
|
|
@@ -5925,7 +5930,7 @@ const gl = Se({
|
|
|
5925
5930
|
Y(), he == null || he.release(), he = null;
|
|
5926
5931
|
}), e.onCleanup(se._didMount());
|
|
5927
5932
|
const N = (v) => {
|
|
5928
|
-
ne(), j++, r = v ?? null, v && (se._willUpdate(),
|
|
5933
|
+
ne(), j++, r = v ?? null, v && (se._willUpdate(), R(), e.requestUpdate());
|
|
5929
5934
|
}, X = (v) => typeof e.props.displayProp == "function" ? e.props.displayProp(v) : typeof v == "object" ? v[e.props.displayProp] ?? "" : v, L = () => {
|
|
5930
5935
|
const v = /* @__PURE__ */ new Map();
|
|
5931
5936
|
return (e.props.itemsSource ?? []).forEach((F) => v.set(F[f()], F)), v;
|
|
@@ -5935,16 +5940,16 @@ const gl = Se({
|
|
|
5935
5940
|
return (e.props.itemsSource ?? []).filter((F) => X(F).toLowerCase().indexOf(v) > -1);
|
|
5936
5941
|
}, _ = (v) => {
|
|
5937
5942
|
if (!z) return [{ part: v, highlight: !1 }];
|
|
5938
|
-
const F = fl(z),
|
|
5939
|
-
return v.split(
|
|
5943
|
+
const F = fl(z), O = new RegExp(`(${F})`, "gi");
|
|
5944
|
+
return v.split(O).map((oe) => ({ part: oe, highlight: z.toLowerCase() === oe.toLowerCase() }));
|
|
5940
5945
|
}, G = (v) => new Set(i()).has(v[f()]), J = (v) => y.some((F) => St(F.item, v)), M = () => {
|
|
5941
5946
|
const v = i(), F = W();
|
|
5942
5947
|
if (v.length < F.length || v.length === 0 || F.length === 0) return !1;
|
|
5943
|
-
const
|
|
5944
|
-
return F.every((oe) =>
|
|
5948
|
+
const O = new Set(v);
|
|
5949
|
+
return F.every((oe) => O.has(oe[f()]));
|
|
5945
5950
|
}, h = () => new Set(W().map((v) => v[f()])), A = () => new Set(i()), V = () => {
|
|
5946
5951
|
const v = h(), F = A();
|
|
5947
|
-
return !v.size || !F.size || F.size < v.size ? !1 : Array.from(v).every((
|
|
5952
|
+
return !v.size || !F.size || F.size < v.size ? !1 : Array.from(v).every((O) => F.has(O));
|
|
5948
5953
|
}, H = () => E.save || E.blur || E.change, ce = () => {
|
|
5949
5954
|
const v = [];
|
|
5950
5955
|
return e.props.required && v.push({
|
|
@@ -5953,11 +5958,11 @@ const gl = Se({
|
|
|
5953
5958
|
validator: (F) => !!F.length
|
|
5954
5959
|
}), [...v, ...e.props.rules ?? []];
|
|
5955
5960
|
}, Ee = async (v, F) => {
|
|
5956
|
-
const
|
|
5957
|
-
if (
|
|
5961
|
+
const O = ce();
|
|
5962
|
+
if (O.length <= 0) return;
|
|
5958
5963
|
if (e.props.disabled) return !0;
|
|
5959
5964
|
E[F] = "", e.requestUpdate();
|
|
5960
|
-
const oe =
|
|
5965
|
+
const oe = O.filter((ie) => ie.type === F);
|
|
5961
5966
|
for (const ie of oe)
|
|
5962
5967
|
if (!await ie.validator(v))
|
|
5963
5968
|
return E[F] = ie.message, e.requestUpdate(), !1;
|
|
@@ -5972,65 +5977,65 @@ const gl = Se({
|
|
|
5972
5977
|
var v;
|
|
5973
5978
|
return (v = e.validator) == null ? void 0 : v.removeValidator(Ue);
|
|
5974
5979
|
}));
|
|
5975
|
-
const
|
|
5980
|
+
const Re = (v) => {
|
|
5976
5981
|
if (e.props.disabled || e.props.readonly || e.props.loading) return;
|
|
5977
|
-
const F = L(),
|
|
5982
|
+
const F = L(), O = /* @__PURE__ */ new Set();
|
|
5978
5983
|
i().forEach((ie) => {
|
|
5979
5984
|
const pe = F.get(ie);
|
|
5980
|
-
(pe == null ? void 0 : pe[l()]) === !0 &&
|
|
5985
|
+
(pe == null ? void 0 : pe[l()]) === !0 && O.add(ie);
|
|
5981
5986
|
}), v.forEach((ie) => {
|
|
5982
5987
|
const pe = F.get(ie);
|
|
5983
|
-
(pe && pe[l()] !== !0 || !pe && e.props.preserveMissingValues) &&
|
|
5988
|
+
(pe && pe[l()] !== !0 || !pe && e.props.preserveMissingValues) && O.add(ie);
|
|
5984
5989
|
});
|
|
5985
|
-
const oe = Array.from(
|
|
5990
|
+
const oe = Array.from(O);
|
|
5986
5991
|
St(i(), oe) || (u(oe), e.emit(
|
|
5987
5992
|
"change",
|
|
5988
5993
|
oe,
|
|
5989
5994
|
oe.map((ie) => F.get(ie)).filter(Boolean)
|
|
5990
5995
|
), Ee(oe, "change"));
|
|
5991
|
-
}, nt = (v, F) => v.filter((
|
|
5992
|
-
if (
|
|
5996
|
+
}, nt = (v, F) => v.filter((O) => G(O) !== F).map((O) => O[f()]), Je = (v, F, O) => {
|
|
5997
|
+
if (O.shiftKey && y.length > 0) {
|
|
5993
5998
|
const oe = y[0], ie = Math.min(oe.index, F), pe = Math.max(oe.index, F);
|
|
5994
5999
|
y = W().slice(ie, pe + 1).map((ve, Ye) => ({ item: ve, index: ie + Ye }));
|
|
5995
|
-
} else
|
|
6000
|
+
} else O.ctrlKey ? y.push({ item: v, index: F }) : y = [{ item: v, index: F }];
|
|
5996
6001
|
return y.length;
|
|
5997
6002
|
}, et = (v = !0) => {
|
|
5998
|
-
const F = y.map((ie) => ie.item),
|
|
6003
|
+
const F = y.map((ie) => ie.item), O = nt(F, v);
|
|
5999
6004
|
let oe = i();
|
|
6000
|
-
v ? oe = [...oe, ...
|
|
6001
|
-
}, He = (v, F,
|
|
6005
|
+
v ? oe = [...oe, ...O] : oe = oe.filter((ie) => !O.some((pe) => ie === pe)), Re(oe);
|
|
6006
|
+
}, He = (v, F, O) => {
|
|
6002
6007
|
if (v[l()] === !0) return;
|
|
6003
6008
|
const oe = y.some((pe) => pe.item[f()] === v[f()]);
|
|
6004
6009
|
(y.length <= 1 || !oe) && Je(v, F, { shiftKey: !1, ctrlKey: !1 });
|
|
6005
6010
|
const ie = i().some((pe) => pe === v[f()]);
|
|
6006
|
-
et(!ie),
|
|
6007
|
-
}, _e = (v, F,
|
|
6008
|
-
v[l()] !== !0 && (!
|
|
6009
|
-
}, Le = (v, F,
|
|
6011
|
+
et(!ie), O.stopPropagation();
|
|
6012
|
+
}, _e = (v, F, O) => {
|
|
6013
|
+
v[l()] !== !0 && (!O.ctrlKey && !O.shiftKey && y.length <= 1 && He(v, F, O), Je(v, F, O), e.requestUpdate());
|
|
6014
|
+
}, Le = (v, F, O) => {
|
|
6010
6015
|
if (v[l()] === !0) return;
|
|
6011
6016
|
const oe = i(), ie = A().size !== 0 && oe.every((pe) => pe === v[f()]);
|
|
6012
|
-
|
|
6017
|
+
Re(ie ? [] : [v[f()]]), Je(v, F, O), O.stopPropagation();
|
|
6013
6018
|
}, We = (v) => {
|
|
6014
6019
|
v.stopPropagation();
|
|
6015
|
-
const F = h().size === A().size && [...h()].every((
|
|
6020
|
+
const F = h().size === A().size && [...h()].every((O) => A().has(O));
|
|
6016
6021
|
if (M() && F) {
|
|
6017
|
-
const
|
|
6022
|
+
const O = new Set(
|
|
6018
6023
|
(e.props.itemsSource ?? []).filter((oe) => oe[l()] === !0).map((oe) => oe[f()])
|
|
6019
6024
|
);
|
|
6020
|
-
|
|
6025
|
+
Re(Array.from(O));
|
|
6021
6026
|
} else {
|
|
6022
|
-
const
|
|
6027
|
+
const O = new Set(
|
|
6023
6028
|
W().filter((oe) => oe[l()] !== !0).map((oe) => oe[f()])
|
|
6024
6029
|
);
|
|
6025
|
-
|
|
6030
|
+
Re(Array.from(O));
|
|
6026
6031
|
}
|
|
6027
6032
|
}, Ke = (v) => {
|
|
6028
6033
|
if (v.stopPropagation(), V()) {
|
|
6029
6034
|
const F = h();
|
|
6030
|
-
|
|
6035
|
+
Re(i().filter((O) => !F.has(O)));
|
|
6031
6036
|
} else {
|
|
6032
6037
|
const F = /* @__PURE__ */ new Set([...i(), ...h()]);
|
|
6033
|
-
|
|
6038
|
+
Re(Array.from(F));
|
|
6034
6039
|
}
|
|
6035
6040
|
}, rt = (v) => {
|
|
6036
6041
|
const F = v.target;
|
|
@@ -6038,25 +6043,25 @@ const gl = Se({
|
|
|
6038
6043
|
}, T = () => {
|
|
6039
6044
|
const v = i();
|
|
6040
6045
|
if (!(v != null && v.length)) return "";
|
|
6041
|
-
const F = L(),
|
|
6046
|
+
const F = L(), O = v.map((ie) => F.get(ie)).filter(Boolean).map(
|
|
6042
6047
|
(ie) => typeof e.props.displayProp == "function" ? e.props.displayProp(ie) : ie[e.props.displayProp] || ""
|
|
6043
6048
|
), oe = e.props.itemsSource ?? [];
|
|
6044
|
-
return
|
|
6049
|
+
return O.length === oe.length && O.length > 2 ? `${e.props.headerFormat.replace(/\{count(:.*?)?}/g, "ALL")}` : O.length > 1 ? e.props.headerFormat.replace(
|
|
6045
6050
|
/\{count(:.*?)?}/g,
|
|
6046
|
-
`${
|
|
6047
|
-
) :
|
|
6048
|
-
}, de = (v, F,
|
|
6049
|
-
const oe = window.innerHeight || document.documentElement.clientHeight, ie = window.innerWidth || document.documentElement.clientWidth, pe = v.getBoundingClientRect(), ve = F.getBoundingClientRect(), Ye = pe.bottom + ve.height +
|
|
6051
|
+
`${O.length.toLocaleString()}`
|
|
6052
|
+
) : O.join(", ") || "";
|
|
6053
|
+
}, de = (v, F, O = 10) => {
|
|
6054
|
+
const oe = window.innerHeight || document.documentElement.clientHeight, ie = window.innerWidth || document.documentElement.clientWidth, pe = v.getBoundingClientRect(), ve = F.getBoundingClientRect(), Ye = pe.bottom + ve.height + O > oe;
|
|
6050
6055
|
if (!Ye) return !1;
|
|
6051
|
-
const Ct = pe.top - ve.height -
|
|
6056
|
+
const Ct = pe.top - ve.height - O < 0, Te = pe.right + ve.width + O > ie, ft = pe.left - ve.width - O < 0;
|
|
6052
6057
|
return Ye && !Ct || Te && !ft;
|
|
6053
6058
|
}, qe = () => {
|
|
6054
6059
|
const v = o.value;
|
|
6055
6060
|
if (!v) return;
|
|
6056
6061
|
const F = v.getBoundingClientRect();
|
|
6057
|
-
let
|
|
6058
|
-
e.props.listBoxWidth && (
|
|
6059
|
-
width: String(
|
|
6062
|
+
let O = `${F.width}px`;
|
|
6063
|
+
e.props.listBoxWidth && (O = typeof e.props.listBoxWidth == "number" ? `${e.props.listBoxWidth}px` : e.props.listBoxWidth), m = {
|
|
6064
|
+
width: String(O),
|
|
6060
6065
|
left: `${F.left}px`,
|
|
6061
6066
|
top: `${F.top + (g ? 0 : F.height)}px`
|
|
6062
6067
|
}, e.requestUpdate();
|
|
@@ -6064,11 +6069,11 @@ const gl = Se({
|
|
|
6064
6069
|
var F;
|
|
6065
6070
|
(F = s.value) != null && F.contains(v.target) || we(!1);
|
|
6066
6071
|
}, U = (v) => {
|
|
6067
|
-
var F,
|
|
6068
|
-
!((F = t.value) != null && F.contains(v.target)) && !((
|
|
6072
|
+
var F, O;
|
|
6073
|
+
!((F = t.value) != null && F.contains(v.target)) && !((O = s.value) != null && O.contains(v.target)) && (we(!1), document.removeEventListener("click", U, { capture: !0 }));
|
|
6069
6074
|
}, te = (v) => {
|
|
6070
|
-
var
|
|
6071
|
-
`${v.ctrlKey ? "ctrl+" : ""}${v.altKey ? "alt+" : ""}${v.key.toLowerCase()}` === "escape" && (we(!1), (
|
|
6075
|
+
var O;
|
|
6076
|
+
`${v.ctrlKey ? "ctrl+" : ""}${v.altKey ? "alt+" : ""}${v.key.toLowerCase()}` === "escape" && (we(!1), (O = n.value) == null || O.focus());
|
|
6072
6077
|
};
|
|
6073
6078
|
e.onCleanup(() => {
|
|
6074
6079
|
document.body.removeEventListener("scroll", w, { capture: !0 }), document.removeEventListener("click", U, { capture: !0 }), window.removeEventListener("keydown", te);
|
|
@@ -6076,13 +6081,13 @@ const gl = Se({
|
|
|
6076
6081
|
let he = null;
|
|
6077
6082
|
const we = (v, F = !0) => {
|
|
6078
6083
|
if ($ || p === v) return;
|
|
6079
|
-
const
|
|
6084
|
+
const O = ++P;
|
|
6080
6085
|
Y(), S = v;
|
|
6081
6086
|
const oe = p;
|
|
6082
6087
|
if (p = v, e.requestUpdate(), v)
|
|
6083
6088
|
he = fo(), document.body.addEventListener("scroll", w, { capture: !0 }), document.addEventListener("click", U, { capture: !0 }), E.save = "", window.addEventListener("keydown", te), qe(), queueMicrotask(() => {
|
|
6084
6089
|
var ie, pe;
|
|
6085
|
-
$ || !p ||
|
|
6090
|
+
$ || !p || O !== P || (!e.props.inline && p && o.value && ((ie = s.value) != null && ie.isConnected) && (g = de(o.value, s.value)), qe(), se.measure(), Y(), r && (r.scrollTop = 0), S = !1, F && (d.value ? d.value.focus() : (pe = n.value) == null || pe.focus()));
|
|
6086
6091
|
});
|
|
6087
6092
|
else if (he == null || he.release(), he = null, z = "", d.value && (d.value.value = ""), document.body.removeEventListener("scroll", w, { capture: !0 }), document.removeEventListener("click", U, { capture: !0 }), Ee(i(), "blur"), window.removeEventListener("keydown", te), oe && !v) {
|
|
6088
6093
|
const ie = i();
|
|
@@ -6096,19 +6101,19 @@ const gl = Se({
|
|
|
6096
6101
|
}
|
|
6097
6102
|
e.emit("close");
|
|
6098
6103
|
}
|
|
6099
|
-
},
|
|
6104
|
+
}, Oe = (v) => {
|
|
6100
6105
|
var F;
|
|
6101
6106
|
if (p) {
|
|
6102
6107
|
v.stopPropagation(), v.preventDefault();
|
|
6103
|
-
const
|
|
6104
|
-
|
|
6108
|
+
const O = (F = s.value) == null ? void 0 : F.querySelector("input:first-child, button:first-child");
|
|
6109
|
+
O == null || O.focus();
|
|
6105
6110
|
}
|
|
6106
6111
|
}, ye = (v) => {
|
|
6107
6112
|
var ie, pe, ve;
|
|
6108
|
-
const F = ((ie = s.value) == null ? void 0 : ie.querySelectorAll("input, button")) ?? [],
|
|
6109
|
-
(v.target ===
|
|
6113
|
+
const F = ((ie = s.value) == null ? void 0 : ie.querySelectorAll("input, button")) ?? [], O = F[0], oe = F[F.length - 1];
|
|
6114
|
+
(v.target === O || v.target === oe) && n.value && (v.target === O && v.shiftKey ? (v.stopPropagation(), v.preventDefault(), (pe = n.value) == null || pe.focus()) : v.target === oe && !v.shiftKey && (v.stopPropagation(), v.preventDefault(), (ve = n.value) == null || ve.focus()));
|
|
6110
6115
|
}, ke = (v) => {
|
|
6111
|
-
v.key === "Tab" &&
|
|
6116
|
+
v.key === "Tab" && Oe(v);
|
|
6112
6117
|
}, je = (v) => {
|
|
6113
6118
|
!e.props.inline && v.key === "Tab" && ye(v);
|
|
6114
6119
|
}, Ve = (v) => {
|
|
@@ -6119,14 +6124,14 @@ const gl = Se({
|
|
|
6119
6124
|
var v;
|
|
6120
6125
|
e.props.disabled || (we(!p), (v = n.value) == null || v.focus());
|
|
6121
6126
|
}, tt = (v, F) => {
|
|
6122
|
-
var
|
|
6127
|
+
var O, oe;
|
|
6123
6128
|
if (v.key === "Enter" || v.key === " ") {
|
|
6124
6129
|
v.preventDefault(), v.stopPropagation(), F();
|
|
6125
6130
|
return;
|
|
6126
6131
|
}
|
|
6127
6132
|
if (v.key === "ArrowDown" || v.key === "ArrowUp") {
|
|
6128
6133
|
v.preventDefault(), v.stopPropagation();
|
|
6129
|
-
const ie = Array.from(((
|
|
6134
|
+
const ie = Array.from(((O = s.value) == null ? void 0 : O.querySelectorAll('[tabindex="0"]')) ?? []), pe = ie.indexOf(v.currentTarget), ve = ie[pe + (v.key === "ArrowDown" ? 1 : -1)];
|
|
6130
6135
|
ve == null || ve.focus();
|
|
6131
6136
|
return;
|
|
6132
6137
|
}
|
|
@@ -6136,38 +6141,38 @@ const gl = Se({
|
|
|
6136
6141
|
} });
|
|
6137
6142
|
}, bt = (v, F) => {
|
|
6138
6143
|
if (y = [], e.props.preserveMissingValues || JSON.stringify(v) === JSON.stringify(F)) return;
|
|
6139
|
-
const
|
|
6144
|
+
const O = new Set(v.map((ie) => ie[f()])), oe = i();
|
|
6140
6145
|
if (e.props.autoSelectNewItems && F) {
|
|
6141
6146
|
const ie = new Set(F.map((ve) => ve[f()])), pe = v.filter((ve) => !ie.has(ve[f()])).map((ve) => ve[f()]);
|
|
6142
6147
|
if (pe.length > 0) {
|
|
6143
|
-
const ve = oe.filter((Ye) =>
|
|
6148
|
+
const ve = oe.filter((Ye) => O.has(Ye));
|
|
6144
6149
|
u([.../* @__PURE__ */ new Set([...ve, ...pe])]);
|
|
6145
6150
|
} else
|
|
6146
|
-
u(oe.filter((ve) =>
|
|
6151
|
+
u(oe.filter((ve) => O.has(ve)));
|
|
6147
6152
|
} else {
|
|
6148
|
-
const ie = oe.filter((pe) =>
|
|
6153
|
+
const ie = oe.filter((pe) => O.has(pe));
|
|
6149
6154
|
if (St(oe, ie)) return;
|
|
6150
6155
|
u(ie);
|
|
6151
6156
|
}
|
|
6152
6157
|
}, mt = (v) => {
|
|
6153
|
-
const F = e.props,
|
|
6158
|
+
const F = e.props, O = K ?? (F.inline ? 24 : 28), oe = !!F.useSelectAll && (F.itemsSource ?? []).length > 0 && v.length > 0, ie = F.inline || oe ? 0 : 8, pe = F.inline ? 0 : 8, ve = `${!!F.inline}/${O}/${ie}/${pe}/${v.length}`;
|
|
6154
6159
|
if (ve !== ae) {
|
|
6155
6160
|
ne(), j++;
|
|
6156
|
-
const Ye = !Object.is(
|
|
6157
|
-
ae = ve, Q =
|
|
6161
|
+
const Ye = !Object.is(O, Q);
|
|
6162
|
+
ae = ve, Q = O, se.setOptions({ ...se.options, count: v.length, paddingStart: ie, paddingEnd: pe }), Ye && se.measure();
|
|
6158
6163
|
}
|
|
6159
|
-
return
|
|
6164
|
+
return R(), { hasSelectAll: oe, paddingStart: ie, paddingEnd: pe };
|
|
6160
6165
|
}, ht = () => {
|
|
6161
|
-
const v = e.props, F = f(),
|
|
6166
|
+
const v = e.props, F = f(), O = v.loading ? [] : W(), { hasSelectAll: oe, paddingStart: ie, paddingEnd: pe } = mt(O);
|
|
6162
6167
|
se._willUpdate();
|
|
6163
6168
|
const ve = new Set(i()), Ye = se.getVirtualItems(), Ct = po(
|
|
6164
6169
|
Ye,
|
|
6165
|
-
|
|
6170
|
+
O.length,
|
|
6166
6171
|
Q,
|
|
6167
6172
|
r
|
|
6168
6173
|
).map((Ne) => {
|
|
6169
|
-
if (Ne.index >=
|
|
6170
|
-
const Ge =
|
|
6174
|
+
if (Ne.index >= O.length) return null;
|
|
6175
|
+
const Ge = O[Ne.index];
|
|
6171
6176
|
return Ge ? {
|
|
6172
6177
|
index: Ne.index,
|
|
6173
6178
|
value: Ge,
|
|
@@ -6178,7 +6183,7 @@ const gl = Se({
|
|
|
6178
6183
|
isDisabled: !!v.disabled || !!v.readonly || Ge[l()] === !0,
|
|
6179
6184
|
isFocused: J(Ge)
|
|
6180
6185
|
} : null;
|
|
6181
|
-
}).filter((Ne) => Ne !== null), Te = se.getTotalSize(), ft = z ? e.locale.MultiSelect.selectFiltered : e.locale.MultiSelect.selectAll, Pt =
|
|
6186
|
+
}).filter((Ne) => Ne !== null), Te = se.getTotalSize(), ft = z ? e.locale.MultiSelect.selectFiltered : e.locale.MultiSelect.selectAll, Pt = O.length === 0 ? a`<div class="list-box-item loading not-hover">
|
|
6182
6187
|
${v.loading ? v.loadingText ?? "Loading…" : e.slots.has("empty") ? e.slot("empty") : e.locale.MultiSelect.noData}
|
|
6183
6188
|
</div>` : b;
|
|
6184
6189
|
return a`<div
|
|
@@ -6216,13 +6221,13 @@ const gl = Se({
|
|
|
6216
6221
|
type="checkbox"
|
|
6217
6222
|
aria-hidden="true"
|
|
6218
6223
|
tabindex="-1"
|
|
6219
|
-
class=${q("moz-checkbox", { "is-indeterminate":
|
|
6224
|
+
class=${q("moz-checkbox", { "is-indeterminate": O.some((Ne) => ve.has(Ne[F])) && !M() })}
|
|
6220
6225
|
.checked=${V()}
|
|
6221
6226
|
/>
|
|
6222
6227
|
<div class="highlight-container">
|
|
6223
6228
|
<span title=${ft}>${ft}</span>
|
|
6224
6229
|
</div>
|
|
6225
|
-
${v.useSpecificSelect && z &&
|
|
6230
|
+
${v.useSpecificSelect && z && O.length > 0 ? a`<button type="button" class="item-only" @click=${We}>
|
|
6226
6231
|
${e.locale.MultiSelect.specificResults}
|
|
6227
6232
|
</button>` : b}
|
|
6228
6233
|
</div>` : b}
|
|
@@ -6240,7 +6245,7 @@ const gl = Se({
|
|
|
6240
6245
|
@keydown=${Y}
|
|
6241
6246
|
${me(N)}
|
|
6242
6247
|
>
|
|
6243
|
-
${!v.inline &&
|
|
6248
|
+
${!v.inline && O.length === 0 ? b : a`<div class="inner-container" style=${ee({ height: `${Te}px` })}>
|
|
6244
6249
|
${Ct.map(({ index: Ne, value: Ge, start: Lt, size: Wt, isSelected: C, isDisabled: k, isFocused: B }) => a`<div
|
|
6245
6250
|
class=${q("list-box-item multi-select-item virtual-row", {
|
|
6246
6251
|
"list-selected": C,
|
|
@@ -6273,7 +6278,7 @@ const gl = Se({
|
|
|
6273
6278
|
</button>` : b}
|
|
6274
6279
|
</div>`)}
|
|
6275
6280
|
</div>`}
|
|
6276
|
-
${
|
|
6281
|
+
${O.length <= 0 ? v.inline ? Pt : a`<div style=${ee({ paddingTop: `${ie}px`, paddingBottom: `${pe}px` })}>
|
|
6277
6282
|
${Pt}
|
|
6278
6283
|
</div>` : b}
|
|
6279
6284
|
</div>
|
|
@@ -6293,7 +6298,7 @@ const gl = Se({
|
|
|
6293
6298
|
const ve = Z, Ye = v.itemsSource;
|
|
6294
6299
|
Z = v.itemsSource, queueMicrotask(() => bt(Ye ?? [], ve ?? []));
|
|
6295
6300
|
}
|
|
6296
|
-
const F = typeof v.width == "number" ? `${Ie(v.width)}rem` : v.width,
|
|
6301
|
+
const F = typeof v.width == "number" ? `${Ie(v.width)}rem` : v.width, O = $e(v, hl), { aria: oe, dom: ie } = Ut(O);
|
|
6297
6302
|
if (v.inline)
|
|
6298
6303
|
return a`<div class="moz-multi-select moz-multi-select-inline"
|
|
6299
6304
|
style=${ee({ width: F, ...Ce(v.style) })}
|
|
@@ -6473,7 +6478,7 @@ const wl = /* @__PURE__ */ new Set([
|
|
|
6473
6478
|
const S = (I, Y) => {
|
|
6474
6479
|
const ne = I == null ? void 0 : I.children[Y];
|
|
6475
6480
|
if (!(I != null && I.isConnected) || !ne || I.clientHeight <= 0) return;
|
|
6476
|
-
const
|
|
6481
|
+
const R = ne.getBoundingClientRect(), se = I.getBoundingClientRect(), N = R.top + R.height / 2 - (se.top + I.clientTop + I.clientHeight / 2), X = Math.max(0, I.scrollHeight - I.clientHeight);
|
|
6477
6482
|
I.scrollTop = Math.max(0, Math.min(I.scrollTop + N, X));
|
|
6478
6483
|
};
|
|
6479
6484
|
S(d.value, c), S(r.value, i);
|
|
@@ -6495,10 +6500,10 @@ const wl = /* @__PURE__ */ new Set([
|
|
|
6495
6500
|
g(!1);
|
|
6496
6501
|
const I = S.target, Y = S.key;
|
|
6497
6502
|
if (!/^\d$/.test(Y)) return;
|
|
6498
|
-
const ne = I.selectionStart || 0,
|
|
6499
|
-
if (I.selectionStart !== I.selectionEnd || ne >=
|
|
6503
|
+
const ne = I.selectionStart || 0, R = u;
|
|
6504
|
+
if (I.selectionStart !== I.selectionEnd || ne >= R.length) return;
|
|
6500
6505
|
S.preventDefault();
|
|
6501
|
-
const se =
|
|
6506
|
+
const se = R.replace(/:/g, ""), N = (R.slice(0, ne).match(/:/g) || []).length, X = ne - N;
|
|
6502
6507
|
let L = se.substring(0, X) + Y;
|
|
6503
6508
|
X + 1 < se.length && (L += se.substring(X + 1)), L.length > 4 && (L = L.slice(0, 4));
|
|
6504
6509
|
let W = L, _ = X + 1;
|
|
@@ -6509,18 +6514,18 @@ const wl = /* @__PURE__ */ new Set([
|
|
|
6509
6514
|
u = W, p = W, e.requestUpdate(), queueMicrotask(() => I.setSelectionRange(_, _));
|
|
6510
6515
|
}, re = (S) => {
|
|
6511
6516
|
const I = S.target, Y = I.selectionStart || 0, ne = p;
|
|
6512
|
-
let
|
|
6513
|
-
const se =
|
|
6514
|
-
|
|
6515
|
-
const N =
|
|
6517
|
+
let R = I.value;
|
|
6518
|
+
const se = R.length < ne.length;
|
|
6519
|
+
R = K(R);
|
|
6520
|
+
const N = R.replace(/:/g, "");
|
|
6516
6521
|
if (!se && N.length >= 2) {
|
|
6517
|
-
const X = (
|
|
6518
|
-
|
|
6522
|
+
const X = (R.slice(0, Y).match(/:/g) || []).length, L = Y - X, W = N.slice(0, 2), _ = N.slice(2);
|
|
6523
|
+
R = W + (_ ? `:${_}` : ":");
|
|
6519
6524
|
let G = L;
|
|
6520
|
-
L > 2 && (G = L + 1), u =
|
|
6525
|
+
L > 2 && (G = L + 1), u = R, p = R, e.requestUpdate(), setTimeout(() => I.setSelectionRange(G, G), 0);
|
|
6521
6526
|
return;
|
|
6522
6527
|
}
|
|
6523
|
-
u =
|
|
6528
|
+
u = R, p = R, e.requestUpdate();
|
|
6524
6529
|
}, ae = () => g(!0), j = () => {
|
|
6525
6530
|
if (!u) {
|
|
6526
6531
|
m();
|
|
@@ -6531,12 +6536,12 @@ const wl = /* @__PURE__ */ new Set([
|
|
|
6531
6536
|
const I = S.split(":");
|
|
6532
6537
|
let Y = c, ne = i;
|
|
6533
6538
|
if (I[0]) {
|
|
6534
|
-
const
|
|
6535
|
-
isNaN(
|
|
6539
|
+
const R = parseInt(I[0], 10);
|
|
6540
|
+
isNaN(R) || (R >= 0 && R <= 23 ? Y = R : R > 23 ? Y = 23 : Y = 0);
|
|
6536
6541
|
}
|
|
6537
6542
|
if (I[1]) {
|
|
6538
|
-
const
|
|
6539
|
-
isNaN(
|
|
6543
|
+
const R = parseInt(I[1], 10);
|
|
6544
|
+
isNaN(R) || (R >= 0 && R <= 59 ? ne = R : R > 59 ? ne = 59 : ne = 0);
|
|
6540
6545
|
}
|
|
6541
6546
|
c = Y, i = ne, m();
|
|
6542
6547
|
};
|
|
@@ -6553,9 +6558,9 @@ const wl = /* @__PURE__ */ new Set([
|
|
|
6553
6558
|
}));
|
|
6554
6559
|
}
|
|
6555
6560
|
}
|
|
6556
|
-
const I = S.disabled ? "var(--moz-color-text-muted)" : l ? "var(--moz-color-accent)" : "var(--moz-color-text-subtle)", Y = $e(S, wl), ne = typeof S.width == "number" ? `${Ie(S.width)}rem` : S.width,
|
|
6557
|
-
for (let N = 0; N <
|
|
6558
|
-
N < u.length ? se.push({ char: u[N], isInput: !0 }) : se.push({ char:
|
|
6561
|
+
const I = S.disabled ? "var(--moz-color-text-muted)" : l ? "var(--moz-color-accent)" : "var(--moz-color-text-subtle)", Y = $e(S, wl), ne = typeof S.width == "number" ? `${Ie(S.width)}rem` : S.width, R = "__:__", se = [];
|
|
6562
|
+
for (let N = 0; N < R.length; N++)
|
|
6563
|
+
N < u.length ? se.push({ char: u[N], isInput: !0 }) : se.push({ char: R[N], isInput: !1 });
|
|
6559
6564
|
return a`
|
|
6560
6565
|
<div
|
|
6561
6566
|
class=${q("custom-time-picker", S.class, { "custom-time-picker--has-class": !!S.class })}
|
|
@@ -6802,7 +6807,7 @@ const El = Se({
|
|
|
6802
6807
|
r[h].isEditing = !0, e.requestUpdate(), I(h);
|
|
6803
6808
|
}, ne = () => {
|
|
6804
6809
|
l = !0, S(), setTimeout(() => s == null ? void 0 : s.focus(), 0);
|
|
6805
|
-
},
|
|
6810
|
+
}, R = (h) => {
|
|
6806
6811
|
if (h.key === "Enter" && c === "" && e.emit("onEnterEmpty", D()), (h.key === "Enter" || h.key === "Tab" && p().pushOnBlur) && c !== "" && (g(c, !0) && (e.emit("modelChange", D()), c = ""), e.requestUpdate()), h.key === "Tab" && (f = !1, l = !1, e.requestUpdate()), h.key === "Backspace") {
|
|
6807
6812
|
const A = h.target, V = P();
|
|
6808
6813
|
A.selectionStart === 0 && V.length > 0 && (x(V[V.length - 1].idx, !1), e.requestUpdate());
|
|
@@ -6951,7 +6956,7 @@ const El = Se({
|
|
|
6951
6956
|
setValue: (A) => {
|
|
6952
6957
|
c = A, e.requestUpdate();
|
|
6953
6958
|
},
|
|
6954
|
-
onKeydown:
|
|
6959
|
+
onKeydown: R,
|
|
6955
6960
|
onKeyup: () => {
|
|
6956
6961
|
},
|
|
6957
6962
|
onBlur: () => {
|
|
@@ -7123,7 +7128,7 @@ const Pl = 500, Ll = Se({
|
|
|
7123
7128
|
e.onCleanup(() => {
|
|
7124
7129
|
window.removeEventListener("mousedown", x, !0), D = null, z = null, P = !1, ++$, window.removeEventListener("mousedown", re), window.removeEventListener("resize", ae);
|
|
7125
7130
|
});
|
|
7126
|
-
const
|
|
7131
|
+
const R = (M) => {
|
|
7127
7132
|
let h = E.get(M);
|
|
7128
7133
|
return h || (h = zl((A, V, H) => {
|
|
7129
7134
|
V.children && (se(H, V), g.set(H, A), e.requestUpdate());
|
|
@@ -7137,7 +7142,7 @@ const Pl = 500, Ll = Se({
|
|
|
7137
7142
|
}, N = (M, h) => {
|
|
7138
7143
|
M.function ? (M.function(), ae()) : M.children && (se(h, M), g.set(h, !0), e.requestUpdate());
|
|
7139
7144
|
}, X = (M) => typeof M.disabled == "function" ? M.disabled() : !!M.disabled, L = (M, h, A, V) => {
|
|
7140
|
-
const H = g.get(V) ?? !1, ce = m.get(V) ?? !1, Ee =
|
|
7145
|
+
const H = g.get(V) ?? !1, ce = m.get(V) ?? !1, Ee = R(V);
|
|
7141
7146
|
return a`<div
|
|
7142
7147
|
class=${q({
|
|
7143
7148
|
"context-menu-item-enable-hover": !("hover" in M) || M.hover,
|
|
@@ -7504,7 +7509,7 @@ function Ht(e, t, o) {
|
|
|
7504
7509
|
function xt(e, t, o) {
|
|
7505
7510
|
t === 0 && e.categoryLv1Set.add(o), t === 1 && e.categoryLv2Set.add(o);
|
|
7506
7511
|
}
|
|
7507
|
-
function
|
|
7512
|
+
function Ol(e, t, o) {
|
|
7508
7513
|
t.length && e.categoryLv1Set.add(t), o.length && e.categoryLv2Set.add(o);
|
|
7509
7514
|
}
|
|
7510
7515
|
function yt(e) {
|
|
@@ -7540,7 +7545,7 @@ function as(e, t, o, s) {
|
|
|
7540
7545
|
function jt(e, t, o, s) {
|
|
7541
7546
|
rs(e, t, o), as(e, t, o, s);
|
|
7542
7547
|
}
|
|
7543
|
-
const
|
|
7548
|
+
const Rl = /* @__PURE__ */ new Set([
|
|
7544
7549
|
"modelValue",
|
|
7545
7550
|
"itemsSource",
|
|
7546
7551
|
"label",
|
|
@@ -7600,7 +7605,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7600
7605
|
return 28;
|
|
7601
7606
|
}
|
|
7602
7607
|
})(), Y = 8, ne = Number.isFinite(I) && I > 0 ? { "--moz-tree-select-row-height": `${I}px` } : {};
|
|
7603
|
-
let
|
|
7608
|
+
let R = I;
|
|
7604
7609
|
const se = () => e.slots.has("list-item");
|
|
7605
7610
|
let N = [], X = [], L = e.props.itemsSource, W = i();
|
|
7606
7611
|
const _ = () => {
|
|
@@ -7648,7 +7653,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7648
7653
|
}, H = () => V().filter((C) => !(C.categoryLv1ID || C.categoryLv2ID)), ce = () => {
|
|
7649
7654
|
const C = H();
|
|
7650
7655
|
return V().filter((k) => !C.includes(k));
|
|
7651
|
-
}, Ee = () => new Set(ce().map((C) => C.code)), Me = () => Bl(ce()), Ue = (C, k) => c() ? Qe(l, C.depth) ? k.has(C.code) : ae.has(C.code) || j.has(C.code) : $() === C.code,
|
|
7656
|
+
}, Ee = () => new Set(ce().map((C) => C.code)), Me = () => Bl(ce()), Ue = (C, k) => c() ? Qe(l, C.depth) ? k.has(C.code) : ae.has(C.code) || j.has(C.code) : $() === C.code, Re = (C) => {
|
|
7652
7657
|
if (Qe(f, C.depth)) return !0;
|
|
7653
7658
|
const k = Ft(V(), C);
|
|
7654
7659
|
return k.length === 0 ? !0 : xo(Vt(k), A());
|
|
@@ -7702,7 +7707,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7702
7707
|
}, qe = (C) => {
|
|
7703
7708
|
C.length === N.length ? H().forEach((k) => xt(S, k.depth, k.code)) : C.forEach((k) => {
|
|
7704
7709
|
const B = ce().find((le) => le.code === k);
|
|
7705
|
-
B &&
|
|
7710
|
+
B && Ol(S, B.categoryLv1ID ?? "", B.categoryLv2ID ?? "");
|
|
7706
7711
|
});
|
|
7707
7712
|
}, w = (C, k, B) => {
|
|
7708
7713
|
if (B.shiftKey && Q.length > 0) {
|
|
@@ -7738,7 +7743,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7738
7743
|
le ? (yt(S), jt(S, be, C, l), de(ge.filter((Ze) => !Xe.has(Ze)))) : (Yt(S, be, C, l), de([...ge, ...ot]));
|
|
7739
7744
|
}
|
|
7740
7745
|
e.requestUpdate();
|
|
7741
|
-
}, we = /* @__PURE__ */ new WeakSet(),
|
|
7746
|
+
}, we = /* @__PURE__ */ new WeakSet(), Oe = (C, k, B, le) => {
|
|
7742
7747
|
we.delete(B) || Gt(C) || (!B.ctrlKey && !B.shiftKey && Q.length <= 1 && he(C, k, B, le), w(C, k, B), e.requestUpdate());
|
|
7743
7748
|
}, ye = (C, k, B) => {
|
|
7744
7749
|
if (Gt(C)) return;
|
|
@@ -7794,21 +7799,21 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7794
7799
|
}, F = (C) => {
|
|
7795
7800
|
var k, B;
|
|
7796
7801
|
!((k = t.value) != null && k.contains(C.target)) && !((B = s.value) != null && B.contains(C.target)) && (ie(!1), document.removeEventListener("click", F, { capture: !0 }));
|
|
7797
|
-
},
|
|
7802
|
+
}, O = (C) => {
|
|
7798
7803
|
var B;
|
|
7799
7804
|
`${C.ctrlKey ? "ctrl+" : ""}${C.altKey ? "alt+" : ""}${C.key.toLowerCase()}` === "escape" && (ie(!1), (B = n.value) == null || B.focus());
|
|
7800
7805
|
};
|
|
7801
7806
|
e.onCleanup(() => {
|
|
7802
|
-
document.body.removeEventListener("scroll", v, { capture: !0 }), document.removeEventListener("click", F, { capture: !0 }), window.removeEventListener("keydown",
|
|
7807
|
+
document.body.removeEventListener("scroll", v, { capture: !0 }), document.removeEventListener("click", F, { capture: !0 }), window.removeEventListener("keydown", O);
|
|
7803
7808
|
});
|
|
7804
7809
|
let oe = null;
|
|
7805
7810
|
const ie = (C, k = !0) => {
|
|
7806
7811
|
if (x || z === C) return;
|
|
7807
7812
|
const B = ++g;
|
|
7808
|
-
z = C, e.requestUpdate(), C ? (oe = fo(), document.body.addEventListener("scroll", v, { capture: !0 }), document.addEventListener("click", F, { capture: !0 }), re.save = "", window.addEventListener("keydown",
|
|
7813
|
+
z = C, e.requestUpdate(), C ? (oe = fo(), document.body.addEventListener("scroll", v, { capture: !0 }), document.addEventListener("click", F, { capture: !0 }), re.save = "", window.addEventListener("keydown", O), mt(), queueMicrotask(() => {
|
|
7809
7814
|
var le;
|
|
7810
7815
|
x || !z || B !== g || (o.value && r && (E = ht(o.value, r)), mt(), k && (d.value ? d.value.focus() : (le = n.value) == null || le.focus()));
|
|
7811
|
-
})) : (oe == null || oe.release(), oe = null, document.body.removeEventListener("scroll", v, { capture: !0 }), document.removeEventListener("click", F, { capture: !0 }), We(P(), "blur"), window.removeEventListener("keydown",
|
|
7816
|
+
})) : (oe == null || oe.release(), oe = null, document.body.removeEventListener("scroll", v, { capture: !0 }), document.removeEventListener("click", F, { capture: !0 }), We(P(), "blur"), window.removeEventListener("keydown", O), m = "", e.emit("close"));
|
|
7812
7817
|
}, pe = () => {
|
|
7813
7818
|
e.props.disabled || ie(!z);
|
|
7814
7819
|
};
|
|
@@ -7829,7 +7834,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7829
7834
|
getScrollElement: () => r,
|
|
7830
7835
|
estimateSize: (C) => {
|
|
7831
7836
|
const k = V()[C];
|
|
7832
|
-
return k != null && k.isHidden ? 0 : se() && k && Qe(f, k.depth) ?
|
|
7837
|
+
return k != null && k.isHidden ? 0 : se() && k && Qe(f, k.depth) ? R : I;
|
|
7833
7838
|
},
|
|
7834
7839
|
// 드롭다운이 아직 배치되지 않은 시점에는 높이가 0 으로 읽힌다. 0 을 캐시하면 행이 겹쳐 사라지고,
|
|
7835
7840
|
// 다음 측정에서 virtual-core 가 그 차이만큼 스크롤을 보정해 목록이 열리자마자 아래로 밀린다.
|
|
@@ -7849,7 +7854,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7849
7854
|
}, Pt = (C, k) => {
|
|
7850
7855
|
if (!C || k !== f) return;
|
|
7851
7856
|
const B = C.getBoundingClientRect().height;
|
|
7852
|
-
B > 0 && (
|
|
7857
|
+
B > 0 && (R = B);
|
|
7853
7858
|
}, Ne = (C) => C.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ge = (C, k) => {
|
|
7854
7859
|
if (!m || !Qe(f, k)) return [{ part: C, highlight: !1 }];
|
|
7855
7860
|
const B = new RegExp(`(${Ne(m)})`, "gi");
|
|
@@ -7862,9 +7867,9 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7862
7867
|
const ot = e.props, Xe = B.depth, Ze = Qe(f, Xe), dt = c(), it = (Fe) => {
|
|
7863
7868
|
Xe !== f ? Ve(B, Fe) : ke(B.code);
|
|
7864
7869
|
}, ct = (Fe) => {
|
|
7865
|
-
dt ?
|
|
7870
|
+
dt ? Oe(B, k, Fe, ue && Re(B)) : it(Fe);
|
|
7866
7871
|
}, vt = () => {
|
|
7867
|
-
he(B, k, {}, ue &&
|
|
7872
|
+
he(B, k, {}, ue && Re(B));
|
|
7868
7873
|
}, Mt = Ze ? "하나만" : "그룹만";
|
|
7869
7874
|
return a`<div
|
|
7870
7875
|
data-index=${k}
|
|
@@ -7886,7 +7891,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7886
7891
|
"depth-indicator--last-depth": Ze,
|
|
7887
7892
|
"depth-indicator--custom-item": se()
|
|
7888
7893
|
})}
|
|
7889
|
-
style=${ee({ "--depth": String(Xe), "--last-depth-item-height": String(
|
|
7894
|
+
style=${ee({ "--depth": String(Xe), "--last-depth-item-height": String(R) })}
|
|
7890
7895
|
@click=${(Fe) => {
|
|
7891
7896
|
dt || it(Fe);
|
|
7892
7897
|
}}
|
|
@@ -7936,7 +7941,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
7936
7941
|
(C.itemsSource !== L || i() !== W) && (L = C.itemsSource, W = i(), _());
|
|
7937
7942
|
const k = $();
|
|
7938
7943
|
k !== Lt && (Lt = k, typeof k != "string" && qe(P()));
|
|
7939
|
-
const B = typeof C.width == "number" ? `${Ie(C.width)}rem` : C.width, le = e.slots.has("icon") ? e.slot("icon", { isOpen: z }) : z ? os("14", "var(--moz-color-accent)") : ts("14", "var(--moz-color-text-subtle)", C.disabled), ue = $e(C,
|
|
7944
|
+
const B = typeof C.width == "number" ? `${Ie(C.width)}rem` : C.width, le = e.slots.has("icon") ? e.slot("icon", { isOpen: z }) : z ? os("14", "var(--moz-color-accent)") : ts("14", "var(--moz-color-text-subtle)", C.disabled), ue = $e(C, Rl), { aria: ge, dom: be } = Ut(ue);
|
|
7940
7945
|
return a`
|
|
7941
7946
|
<div
|
|
7942
7947
|
${fe(be)}
|
|
@@ -8108,26 +8113,26 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
8108
8113
|
const s = [], n = [], d = [], r = [];
|
|
8109
8114
|
let f = [], l = !1, c = 0, i = 0, u = -1, p = -1, $ = -1, P = null, D = null, z = 0;
|
|
8110
8115
|
const x = () => !!e.props.horizontal, g = () => e.props.panes ?? [], m = () => {
|
|
8111
|
-
f = g().map((
|
|
8116
|
+
f = g().map((R) => R.hidden ? "0" : R.size != null ? String(R.size) : "1fr");
|
|
8112
8117
|
};
|
|
8113
8118
|
m();
|
|
8114
|
-
const y = (
|
|
8119
|
+
const y = (R) => x() ? R.clientHeight : R.clientWidth, E = () => y(d[p]), Z = () => y(r[p]), K = () => y(d[$]), Q = () => y(r[$]), re = (R) => {
|
|
8115
8120
|
if (!l) return;
|
|
8116
|
-
let se = x() ?
|
|
8121
|
+
let se = x() ? R.movementY : R.movementX;
|
|
8117
8122
|
P = +(se > 0), P !== D && D !== null && (p = u, $ = u + 1), D = P;
|
|
8118
|
-
const N = n[u].getBoundingClientRect(), X = x() ?
|
|
8119
|
-
(P === 0 && X > 10 || P === 1 && X < -10) && (se = se / (Math.abs(X) / 10)), (P === 0 && x() ?
|
|
8123
|
+
const N = n[u].getBoundingClientRect(), X = x() ? R.clientY - N.top + window.scrollY : R.clientX - N.left + window.scrollX;
|
|
8124
|
+
(P === 0 && X > 10 || P === 1 && X < -10) && (se = se / (Math.abs(X) / 10)), (P === 0 && x() ? R.clientY < N.top : R.clientX < N.left) && (z = 0), (P === 1 && x() ? R.clientY > N.top : R.clientX > N.left) && (z = 0);
|
|
8120
8125
|
const L = (G) => s[G][x() ? "clientHeight" : "clientWidth"];
|
|
8121
8126
|
if (c = L(p) + se, i = L($) + L(p) - c, !(c > E() && c < Z() || c < E() && P === 1 || c > E() && P === 0)) {
|
|
8122
8127
|
if (c < E()) {
|
|
8123
8128
|
if (p - 1 < 0 && P === 0) {
|
|
8124
|
-
z += x() ?
|
|
8129
|
+
z += x() ? R.movementY : R.movementX;
|
|
8125
8130
|
return;
|
|
8126
8131
|
}
|
|
8127
8132
|
p = p - 1 >= 0 ? p - 1 : 0;
|
|
8128
8133
|
} else if (c > Z()) {
|
|
8129
8134
|
if (p - 1 < 0) {
|
|
8130
|
-
z += x() ?
|
|
8135
|
+
z += x() ? R.movementY : R.movementX;
|
|
8131
8136
|
return;
|
|
8132
8137
|
}
|
|
8133
8138
|
p = p - 1 >= 0 ? p - 1 : 0;
|
|
@@ -8136,13 +8141,13 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
8136
8141
|
if (!(i > K() && i < Q() || i < K() && P === 0 || i > K() && P === 1)) {
|
|
8137
8142
|
if (i < K()) {
|
|
8138
8143
|
if ($ + 1 >= f.length) {
|
|
8139
|
-
z += x() ?
|
|
8144
|
+
z += x() ? R.movementY : R.movementX;
|
|
8140
8145
|
return;
|
|
8141
8146
|
}
|
|
8142
8147
|
$ = $ + 1 < f.length ? $ + 1 : f.length - 1;
|
|
8143
8148
|
} else if (i > Q()) {
|
|
8144
8149
|
if ($ + 1 >= f.length) {
|
|
8145
|
-
z += x() ?
|
|
8150
|
+
z += x() ? R.movementY : R.movementX;
|
|
8146
8151
|
return;
|
|
8147
8152
|
}
|
|
8148
8153
|
$ = $ + 1 < f.length ? $ + 1 : f.length - 1;
|
|
@@ -8157,10 +8162,10 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
8157
8162
|
});
|
|
8158
8163
|
}, ae = () => {
|
|
8159
8164
|
u = -1, p = -1, $ = -1, l = !1, z = 0, document.removeEventListener("mousemove", re), document.removeEventListener("mouseup", ae), e.requestUpdate();
|
|
8160
|
-
}, j = (
|
|
8161
|
-
|
|
8162
|
-
}, S = (
|
|
8163
|
-
u = se, p = se, $ = se + 1, z = 0, j(
|
|
8165
|
+
}, j = (R) => {
|
|
8166
|
+
R.preventDefault(), l = !0, x() ? R.clientY : R.clientX, document.addEventListener("mousemove", re), document.addEventListener("mouseup", ae), e.requestUpdate();
|
|
8167
|
+
}, S = (R, se) => {
|
|
8168
|
+
u = se, p = se, $ = se + 1, z = 0, j(R);
|
|
8164
8169
|
};
|
|
8165
8170
|
let I = null;
|
|
8166
8171
|
const Y = () => {
|
|
@@ -8175,11 +8180,11 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
8175
8180
|
m(), e.requestUpdate();
|
|
8176
8181
|
},
|
|
8177
8182
|
render() {
|
|
8178
|
-
const
|
|
8183
|
+
const R = g();
|
|
8179
8184
|
e.props.panes !== ne && (ne = e.props.panes, queueMicrotask(() => {
|
|
8180
8185
|
m(), e.requestUpdate();
|
|
8181
8186
|
}));
|
|
8182
|
-
const se = x() ? "gridTemplateRows" : "gridTemplateColumns", N =
|
|
8187
|
+
const se = x() ? "gridTemplateRows" : "gridTemplateColumns", N = R.length - 1, X = $e(e.props, Nl);
|
|
8183
8188
|
return a`
|
|
8184
8189
|
<div
|
|
8185
8190
|
${fe(X)}
|
|
@@ -8196,7 +8201,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
8196
8201
|
t = L ?? null, t && o && (Y(), !I && typeof ResizeObserver < "u" && (I = new ResizeObserver(() => Y()), I.observe(t)));
|
|
8197
8202
|
})}
|
|
8198
8203
|
>
|
|
8199
|
-
${
|
|
8204
|
+
${R.map((L, W) => {
|
|
8200
8205
|
const _ = W === N ? "100%" : f[W + 1] !== "0" ? "calc(100% - 10px) 10px" : "100%";
|
|
8201
8206
|
return a`<div
|
|
8202
8207
|
style=${ee({ display: "grid", [se]: _, overflow: "hidden" })}
|
|
@@ -8225,7 +8230,7 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
8225
8230
|
o = L ?? null, t && o && Y();
|
|
8226
8231
|
})}
|
|
8227
8232
|
>
|
|
8228
|
-
${
|
|
8233
|
+
${R.map((L, W) => {
|
|
8229
8234
|
const _ = zo(L.minSize, "10px"), G = zo(L.maxSize, "100%");
|
|
8230
8235
|
return a`<div
|
|
8231
8236
|
class="size-calculator min-size"
|
|
@@ -8485,11 +8490,11 @@ const Ql = Se({
|
|
|
8485
8490
|
};
|
|
8486
8491
|
class ds {
|
|
8487
8492
|
constructor(t, o) {
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
+
Be(this, "startedAt");
|
|
8494
|
+
Be(this, "callback");
|
|
8495
|
+
Be(this, "delay");
|
|
8496
|
+
Be(this, "timer");
|
|
8497
|
+
Be(this, "paused", !1);
|
|
8493
8498
|
this.startedAt = Date.now(), this.callback = t, this.delay = o, this.timer = setTimeout(t, o);
|
|
8494
8499
|
}
|
|
8495
8500
|
pause() {
|
|
@@ -9249,11 +9254,11 @@ const ai = us, di = /* @__PURE__ */ new Set([
|
|
|
9249
9254
|
}, ne = () => {
|
|
9250
9255
|
const L = t;
|
|
9251
9256
|
L && (Y(), e.emit("scroll", { scrollTop: L.scrollTop, scrollLeft: L.scrollLeft }));
|
|
9252
|
-
},
|
|
9257
|
+
}, R = () => {
|
|
9253
9258
|
re(), ae(), t && t.removeEventListener("scroll", ne), l == null || l.disconnect(), l = null, c == null || c.disconnect(), c = null, t = null;
|
|
9254
9259
|
}, se = () => {
|
|
9255
9260
|
const L = e.props.viewport ?? null;
|
|
9256
|
-
if (L !== t && (
|
|
9261
|
+
if (L !== t && (R(), t = L, !!t)) {
|
|
9257
9262
|
if (t.addEventListener("scroll", ne, { passive: !0 }), typeof ResizeObserver < "u") {
|
|
9258
9263
|
l = new ResizeObserver(() => Y()), l.observe(t);
|
|
9259
9264
|
const W = t.firstElementChild;
|
|
@@ -9268,8 +9273,8 @@ const ai = us, di = /* @__PURE__ */ new Set([
|
|
|
9268
9273
|
const J = L === "vertical", M = J ? n : d, h = J ? o : s;
|
|
9269
9274
|
if (!M || !h) return;
|
|
9270
9275
|
W.preventDefault();
|
|
9271
|
-
const A = J ? W.clientY : W.clientX, V = J ? _.scrollTop : _.scrollLeft, H = J ? M.clientHeight : M.clientWidth, ce = J ? h.offsetHeight : h.offsetWidth, Ee = J ? _.scrollHeight : _.scrollWidth, Me = J ? _.clientHeight : _.clientWidth, Ue = H - ce,
|
|
9272
|
-
if (Ue <= 0 ||
|
|
9276
|
+
const A = J ? W.clientY : W.clientX, V = J ? _.scrollTop : _.scrollLeft, H = J ? M.clientHeight : M.clientWidth, ce = J ? h.offsetHeight : h.offsetWidth, Ee = J ? _.scrollHeight : _.scrollWidth, Me = J ? _.clientHeight : _.clientWidth, Ue = H - ce, Re = Ee - Me;
|
|
9277
|
+
if (Ue <= 0 || Re <= 0) return;
|
|
9273
9278
|
const nt = W.pointerId, Je = (Le) => {
|
|
9274
9279
|
$ = Le.pointerType !== "touch" && [i, n, d].some((We) => {
|
|
9275
9280
|
if (!We || We.hidden) return !1;
|
|
@@ -9279,7 +9284,7 @@ const ai = us, di = /* @__PURE__ */ new Set([
|
|
|
9279
9284
|
}, et = (Le) => {
|
|
9280
9285
|
if (Le.pointerId !== nt) return;
|
|
9281
9286
|
Je(Le);
|
|
9282
|
-
const We = (J ? Le.clientY : Le.clientX) - A, Ke = V + We / Ue *
|
|
9287
|
+
const We = (J ? Le.clientY : Le.clientX) - A, Ke = V + We / Ue * Re;
|
|
9283
9288
|
J ? _.scrollTop = Ke : _.scrollLeft = Ke;
|
|
9284
9289
|
}, He = (Le) => {
|
|
9285
9290
|
Le.pointerId === nt && (Je(Le), Le.type !== "pointerup" && ($ = !1), D == null || D(), e.requestUpdate());
|
|
@@ -9298,7 +9303,7 @@ const ai = us, di = /* @__PURE__ */ new Set([
|
|
|
9298
9303
|
}
|
|
9299
9304
|
e.requestUpdate();
|
|
9300
9305
|
};
|
|
9301
|
-
e.onCleanup(
|
|
9306
|
+
e.onCleanup(R);
|
|
9302
9307
|
const X = (L, W) => {
|
|
9303
9308
|
const _ = L === "vertical", G = (M) => {
|
|
9304
9309
|
_ ? n = M ?? null : d = M ?? null;
|
|
@@ -9612,7 +9617,7 @@ const Bi = Se({
|
|
|
9612
9617
|
expose: !1,
|
|
9613
9618
|
// 표시 컴포넌트라 갱신을 microtask 로 미룰 이유가 없다(Badge 002626·Chip 002636 과 같은 이유).
|
|
9614
9619
|
syncUpdate: !0
|
|
9615
|
-
},
|
|
9620
|
+
}, Oi = ["info", "success", "warning", "danger", "neutral"], Ri = ["top", "top-right", "top-left", "bottom", "bottom-right", "bottom-left"], Hi = /* @__PURE__ */ new Set([
|
|
9616
9621
|
"tone",
|
|
9617
9622
|
"title",
|
|
9618
9623
|
"body",
|
|
@@ -9637,10 +9642,10 @@ const Bi = Se({
|
|
|
9637
9642
|
neutral: fs
|
|
9638
9643
|
};
|
|
9639
9644
|
function Ui(e) {
|
|
9640
|
-
return typeof e == "string" &&
|
|
9645
|
+
return typeof e == "string" && Oi.includes(e) ? e : "info";
|
|
9641
9646
|
}
|
|
9642
9647
|
function lo(e) {
|
|
9643
|
-
return typeof e == "string" &&
|
|
9648
|
+
return typeof e == "string" && Ri.includes(e) ? e : "bottom-right";
|
|
9644
9649
|
}
|
|
9645
9650
|
function Vo(e) {
|
|
9646
9651
|
const t = document.querySelector(`.moz-notification-stack[data-position="${e}"]`);
|
|
@@ -9895,7 +9900,7 @@ export {
|
|
|
9895
9900
|
Wr as CONTEXTMENU_SPEC,
|
|
9896
9901
|
Yr as CONTROLLER_SPEC,
|
|
9897
9902
|
Vs as ChromeComponent,
|
|
9898
|
-
|
|
9903
|
+
Or as DATEINPUT_SPEC,
|
|
9899
9904
|
Eo as DEFAULT_TREE_PROPS,
|
|
9900
9905
|
Lr as EMPTYSTATE_SPEC,
|
|
9901
9906
|
Ar as INPUT_SPEC,
|
|
@@ -9904,14 +9909,14 @@ export {
|
|
|
9904
9909
|
Nr as MULTISELECT_SPEC,
|
|
9905
9910
|
ra as NOTIFICATION_CARD_SPEC,
|
|
9906
9911
|
aa as NOTIFICATION_ITEM_SPEC,
|
|
9907
|
-
|
|
9908
|
-
|
|
9912
|
+
Ri as NOTIFICATION_POSITIONS,
|
|
9913
|
+
Oi as NOTIFICATION_TONES,
|
|
9909
9914
|
Ir as NUMBERINPUT_SPEC,
|
|
9910
9915
|
gr as Observable,
|
|
9911
9916
|
mo as Overlay,
|
|
9912
9917
|
Vr as PASSWORDINPUT_SPEC,
|
|
9913
9918
|
Jr as POPOVER_SPEC,
|
|
9914
|
-
|
|
9919
|
+
Rr as POPUP_SPEC,
|
|
9915
9920
|
eo as PortalHost,
|
|
9916
9921
|
Tr as RADIO_SPEC,
|
|
9917
9922
|
oa as SCROLLAREA_SPEC,
|
|
@@ -9991,7 +9996,7 @@ export {
|
|
|
9991
9996
|
vn as iconPasswordVisible,
|
|
9992
9997
|
br as jaJP,
|
|
9993
9998
|
bo as koKR,
|
|
9994
|
-
|
|
9999
|
+
Ro as labelClass,
|
|
9995
10000
|
st as labelTemplate,
|
|
9996
10001
|
Ce as normalizeStyle,
|
|
9997
10002
|
$e as pickRest,
|