@vmscloud/moz-ui-components-core 0.1.51 → 0.1.53
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/components/callout/icons.d.ts +11 -0
- package/dist/index.cjs +305 -269
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +744 -708
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var De = (e, t, o) =>
|
|
4
|
-
import { render as
|
|
5
|
-
import { directive as
|
|
1
|
+
var Go = Object.defineProperty;
|
|
2
|
+
var Yo = (e, t, o) => t in e ? Go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var De = (e, t, o) => Yo(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { render as yt, nothing as w, html as a, noChange as Zo } from "lit-html";
|
|
5
|
+
import { directive as jo, Directive as Xo, PartType as Qo } from "lit-html/directive.js";
|
|
6
6
|
import { styleMap as oe } from "lit-html/directives/style-map.js";
|
|
7
|
-
import { clsx as
|
|
7
|
+
import { clsx as Jo } from "clsx";
|
|
8
8
|
import { ifDefined as Pe } from "lit-html/directives/if-defined.js";
|
|
9
|
-
import { unsafeHTML as
|
|
10
|
-
import { live as
|
|
9
|
+
import { unsafeHTML as bo } from "lit-html/directives/unsafe-html.js";
|
|
10
|
+
import { live as kt } from "lit-html/directives/live.js";
|
|
11
11
|
import lt from "dayjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
12
|
+
import es from "dayjs/plugin/duration.js";
|
|
13
|
+
import ts from "dayjs/plugin/minMax.js";
|
|
14
|
+
import os from "dayjs/plugin/timezone.js";
|
|
15
|
+
import ss from "dayjs/plugin/utc.js";
|
|
16
|
+
import ls from "dayjs/plugin/isSameOrBefore.js";
|
|
17
|
+
import ns from "dayjs/plugin/isSameOrAfter.js";
|
|
18
18
|
import "dayjs/locale/ko.js";
|
|
19
19
|
import "dayjs/locale/en.js";
|
|
20
20
|
import "dayjs/locale/zh.js";
|
|
21
21
|
import "dayjs/locale/ja.js";
|
|
22
22
|
import { createRef as ve, ref as ne } from "lit-html/directives/ref.js";
|
|
23
|
-
import { Virtualizer as
|
|
24
|
-
class
|
|
23
|
+
import { Virtualizer as Et, elementScroll as xt, observeElementOffset as Lt, observeElementRect as Pt } from "@tanstack/virtual-core";
|
|
24
|
+
class rs {
|
|
25
25
|
constructor(t) {
|
|
26
26
|
De(this, "container");
|
|
27
27
|
De(this, "updateScheduled", !1);
|
|
@@ -41,7 +41,7 @@ class is {
|
|
|
41
41
|
}
|
|
42
42
|
/** 즉시 동기 렌더 (테스트/긴급 갱신용) */
|
|
43
43
|
renderNow() {
|
|
44
|
-
|
|
44
|
+
yt(this.template(), this.container);
|
|
45
45
|
}
|
|
46
46
|
/** 구독/리스너 등 정리 대상 등록 */
|
|
47
47
|
addCleanup(t) {
|
|
@@ -61,7 +61,7 @@ class is {
|
|
|
61
61
|
t();
|
|
62
62
|
} catch {
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
yt(w, this.container);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
/** 마운트 상태 */
|
|
@@ -69,7 +69,7 @@ class is {
|
|
|
69
69
|
return this.mounted;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class Ir {
|
|
73
73
|
constructor() {
|
|
74
74
|
De(this, "listeners", /* @__PURE__ */ new Set());
|
|
75
75
|
}
|
|
@@ -89,7 +89,7 @@ class Fr {
|
|
|
89
89
|
this.listeners.clear();
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
class
|
|
92
|
+
class is {
|
|
93
93
|
constructor() {
|
|
94
94
|
De(this, "renderers", /* @__PURE__ */ new Map());
|
|
95
95
|
/**
|
|
@@ -163,7 +163,7 @@ class as {
|
|
|
163
163
|
return this.mounted.size;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
class
|
|
166
|
+
class Ot {
|
|
167
167
|
constructor() {
|
|
168
168
|
De(this, "el", null);
|
|
169
169
|
}
|
|
@@ -180,7 +180,7 @@ class Nt {
|
|
|
180
180
|
return this.el !== null;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function as() {
|
|
184
184
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
185
185
|
const t = Math.random() * 16 | 0;
|
|
186
186
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
@@ -189,9 +189,9 @@ function cs() {
|
|
|
189
189
|
function ze(e, t = 16) {
|
|
190
190
|
return e / t;
|
|
191
191
|
}
|
|
192
|
-
let
|
|
192
|
+
let Qt = 0;
|
|
193
193
|
function tt(e = "") {
|
|
194
|
-
return
|
|
194
|
+
return Qt += 1, `${e}${Qt}`;
|
|
195
195
|
}
|
|
196
196
|
const it = (e, t) => {
|
|
197
197
|
const o = Object.keys(e), l = Object.keys(t);
|
|
@@ -227,14 +227,14 @@ function ke(e) {
|
|
|
227
227
|
}
|
|
228
228
|
return {};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Tt(e, t, o, l) {
|
|
231
231
|
return e.length > 0 || t === 0 || !l || l.getBoundingClientRect().height > 0 ? e : Array.from({ length: t }, (n, i) => ({
|
|
232
232
|
index: i,
|
|
233
233
|
size: o,
|
|
234
234
|
start: i * o
|
|
235
235
|
}));
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const Jt = {
|
|
238
238
|
Toast: {
|
|
239
239
|
close: "닫기"
|
|
240
240
|
},
|
|
@@ -721,7 +721,7 @@ const eo = {
|
|
|
721
721
|
BreadCrumb: {
|
|
722
722
|
navigation: "탐색 경로"
|
|
723
723
|
}
|
|
724
|
-
},
|
|
724
|
+
}, Fr = {
|
|
725
725
|
Toast: {
|
|
726
726
|
close: "Close"
|
|
727
727
|
},
|
|
@@ -1207,7 +1207,7 @@ const eo = {
|
|
|
1207
1207
|
BreadCrumb: {
|
|
1208
1208
|
navigation: "Breadcrumb"
|
|
1209
1209
|
}
|
|
1210
|
-
},
|
|
1210
|
+
}, Rr = {
|
|
1211
1211
|
Toast: {
|
|
1212
1212
|
close: "关闭"
|
|
1213
1213
|
},
|
|
@@ -1693,7 +1693,7 @@ const eo = {
|
|
|
1693
1693
|
BreadCrumb: {
|
|
1694
1694
|
navigation: "面包屑导航"
|
|
1695
1695
|
}
|
|
1696
|
-
},
|
|
1696
|
+
}, Br = {
|
|
1697
1697
|
Toast: {
|
|
1698
1698
|
close: "閉じる"
|
|
1699
1699
|
},
|
|
@@ -2183,7 +2183,7 @@ const eo = {
|
|
|
2183
2183
|
function be(e) {
|
|
2184
2184
|
return (t, o, l, n) => {
|
|
2185
2185
|
var re;
|
|
2186
|
-
const i = e.portal ? new
|
|
2186
|
+
const i = e.portal ? new Ot() : null, h = i ? i.open() : t, d = new is();
|
|
2187
2187
|
if (n != null && n.slots)
|
|
2188
2188
|
for (const [ee, K] of Object.entries(n.slots)) d.register(ee, K);
|
|
2189
2189
|
n != null && n.slotResolver && d.setResolver(n.slotResolver);
|
|
@@ -2195,7 +2195,7 @@ function be(e) {
|
|
|
2195
2195
|
D[G] === void 0 && (D[G] = K[G]);
|
|
2196
2196
|
return D;
|
|
2197
2197
|
};
|
|
2198
|
-
let p = r({ ...o }), u = (n == null ? void 0 : n.locale) ??
|
|
2198
|
+
let p = r({ ...o }), u = (n == null ? void 0 : n.locale) ?? Jt;
|
|
2199
2199
|
const v = (n == null ? void 0 : n.validator) ?? null, $ = [];
|
|
2200
2200
|
let I = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map(), q = null;
|
|
2201
2201
|
const E = {
|
|
@@ -2220,7 +2220,7 @@ function be(e) {
|
|
|
2220
2220
|
return I.set(G, { name: ee, scope: K }), a`<span data-moz-slot=${ee} data-moz-slot-id=${G}></span>`;
|
|
2221
2221
|
}
|
|
2222
2222
|
}, z = e.setup(E);
|
|
2223
|
-
class X extends
|
|
2223
|
+
class X extends rs {
|
|
2224
2224
|
template() {
|
|
2225
2225
|
return I = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), z.render();
|
|
2226
2226
|
}
|
|
@@ -2229,7 +2229,7 @@ function be(e) {
|
|
|
2229
2229
|
let K = null;
|
|
2230
2230
|
if (z.renderPortal) {
|
|
2231
2231
|
const D = z.renderPortal(), G = z.getPortalContainer ? z.getPortalContainer() : document.body;
|
|
2232
|
-
D === w || D == null || G == null ? q && q.isOpen && (
|
|
2232
|
+
D === w || D == null || G == null ? q && q.isOpen && (yt(w, q.element), q.close()) : (q || (q = new Ot()), K = q.isOpen ? q.element : q.open("moz-overlay-portal", G), yt(D, K));
|
|
2233
2233
|
}
|
|
2234
2234
|
for (const [D, { name: G, scope: se }] of I) {
|
|
2235
2235
|
let ie = this.container.querySelector(`[data-moz-slot-id="${D}"]`);
|
|
@@ -2269,18 +2269,18 @@ function be(e) {
|
|
|
2269
2269
|
W.destroy(), i == null || i.close(), q == null || q.close();
|
|
2270
2270
|
},
|
|
2271
2271
|
setLocale(ee) {
|
|
2272
|
-
ee !== u && (u = ee ??
|
|
2272
|
+
ee !== u && (u = ee ?? Jt, W.requestUpdate());
|
|
2273
2273
|
},
|
|
2274
2274
|
api: z.api ?? {}
|
|
2275
2275
|
};
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
|
-
class
|
|
2278
|
+
class cs extends Xo {
|
|
2279
2279
|
constructor(o) {
|
|
2280
2280
|
super(o);
|
|
2281
2281
|
De(this, "prevKeys", []);
|
|
2282
2282
|
De(this, "listeners", /* @__PURE__ */ new Map());
|
|
2283
|
-
if (o.type !==
|
|
2283
|
+
if (o.type !== Qo.ELEMENT)
|
|
2284
2284
|
throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.");
|
|
2285
2285
|
}
|
|
2286
2286
|
render(o) {
|
|
@@ -2301,7 +2301,7 @@ class ds extends Qo {
|
|
|
2301
2301
|
const s = this.eventName(h), m = this.listeners.get(h);
|
|
2302
2302
|
m && n.removeEventListener(s, m), n.addEventListener(s, d), this.listeners.set(h, d);
|
|
2303
2303
|
} else d == null ? n.removeAttribute(h) : h.startsWith("aria-") ? n.setAttribute(h, String(d)) : d === !1 ? n.removeAttribute(h) : d === !0 ? n.setAttribute(h, "") : n.setAttribute(h, String(d));
|
|
2304
|
-
return this.prevKeys = Object.keys(i),
|
|
2304
|
+
return this.prevKeys = Object.keys(i), Zo;
|
|
2305
2305
|
}
|
|
2306
2306
|
isEventKey(o) {
|
|
2307
2307
|
return o.length > 2 && o.startsWith("on") && o[2] === o[2].toUpperCase();
|
|
@@ -2310,15 +2310,15 @@ class ds extends Qo {
|
|
|
2310
2310
|
return o.slice(2).toLowerCase();
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
|
-
const pe =
|
|
2313
|
+
const pe = jo(cs);
|
|
2314
2314
|
function V(...e) {
|
|
2315
|
-
return
|
|
2315
|
+
return Jo(e);
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2318
|
-
return lt.extend(
|
|
2317
|
+
function ds() {
|
|
2318
|
+
return lt.extend(ss), lt.extend(os), lt.extend(es), lt.extend(ts), lt.extend(ls), lt.extend(ns), lt.tz.setDefault("Asia/Seoul"), lt;
|
|
2319
2319
|
}
|
|
2320
|
-
const Te =
|
|
2321
|
-
function
|
|
2320
|
+
const Te = ds();
|
|
2321
|
+
function Hr() {
|
|
2322
2322
|
const e = [];
|
|
2323
2323
|
return { addValidator: (i) => {
|
|
2324
2324
|
e.push(i);
|
|
@@ -2335,20 +2335,20 @@ function Or() {
|
|
|
2335
2335
|
(i = h == null ? void 0 : h.initValidator) == null || i.call(h);
|
|
2336
2336
|
} };
|
|
2337
2337
|
}
|
|
2338
|
-
const
|
|
2339
|
-
function
|
|
2338
|
+
const us = 16;
|
|
2339
|
+
function ps(e, t) {
|
|
2340
2340
|
let o = 0;
|
|
2341
2341
|
return (...l) => {
|
|
2342
2342
|
const n = Date.now();
|
|
2343
2343
|
n - o >= t && (o = n, e(...l));
|
|
2344
2344
|
};
|
|
2345
2345
|
}
|
|
2346
|
-
class
|
|
2346
|
+
class zt {
|
|
2347
2347
|
constructor(t) {
|
|
2348
2348
|
De(this, "opened", !1);
|
|
2349
2349
|
De(this, "scrollHandler");
|
|
2350
2350
|
De(this, "clickHandler");
|
|
2351
|
-
this.opts = t, this.scrollHandler =
|
|
2351
|
+
this.opts = t, this.scrollHandler = ps((o) => this.onScroll(o), us), this.clickHandler = (o) => this.onOutsideClick(o);
|
|
2352
2352
|
}
|
|
2353
2353
|
open() {
|
|
2354
2354
|
this.opened || (this.opened = !0, document.addEventListener("scroll", this.scrollHandler, { capture: !0 }), this.opts.closeOnOutsideClick !== !1 && setTimeout(() => {
|
|
@@ -2396,47 +2396,47 @@ class Mt {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
2398
|
const et = [];
|
|
2399
|
-
let
|
|
2400
|
-
function
|
|
2399
|
+
let $t = !1;
|
|
2400
|
+
function Co(e) {
|
|
2401
2401
|
var o;
|
|
2402
2402
|
if (e.key !== "Escape") return;
|
|
2403
2403
|
const t = et[et.length - 1];
|
|
2404
2404
|
t && t.kind === "moz" && ((o = t.onEscape) == null || o.call(t, e), e.stopPropagation());
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2407
|
-
|
|
2406
|
+
function ms() {
|
|
2407
|
+
$t || typeof window > "u" || (window.addEventListener("keydown", Co, { capture: !0 }), $t = !0);
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2410
|
-
|
|
2409
|
+
function hs() {
|
|
2410
|
+
!$t || typeof window > "u" || (window.removeEventListener("keydown", Co, !0), $t = !1);
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2413
|
-
et.push(e),
|
|
2412
|
+
function _t(e) {
|
|
2413
|
+
et.push(e), ms();
|
|
2414
2414
|
let t = !1;
|
|
2415
2415
|
return {
|
|
2416
2416
|
release() {
|
|
2417
2417
|
if (t) return;
|
|
2418
2418
|
t = !0;
|
|
2419
2419
|
const o = et.indexOf(e);
|
|
2420
|
-
o >= 0 && et.splice(o, 1), et.length === 0 &&
|
|
2420
|
+
o >= 0 && et.splice(o, 1), et.length === 0 && hs();
|
|
2421
2421
|
},
|
|
2422
2422
|
isTopmost() {
|
|
2423
2423
|
return et[et.length - 1] === e;
|
|
2424
2424
|
}
|
|
2425
2425
|
};
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2428
|
-
return
|
|
2427
|
+
function yo(e) {
|
|
2428
|
+
return _t({ kind: "moz", onEscape: e });
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2431
|
-
return
|
|
2430
|
+
function Or() {
|
|
2431
|
+
return _t({ kind: "foreign" });
|
|
2432
2432
|
}
|
|
2433
|
-
function
|
|
2434
|
-
return
|
|
2433
|
+
function Mt() {
|
|
2434
|
+
return _t({ kind: "self" });
|
|
2435
2435
|
}
|
|
2436
|
-
function
|
|
2436
|
+
function Nr() {
|
|
2437
2437
|
return et.length;
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2439
|
+
function $o(e = {}) {
|
|
2440
2440
|
const { circleClass: t = "", progressClass: o = "" } = e;
|
|
2441
2441
|
return a`<svg
|
|
2442
2442
|
aria-hidden="true"
|
|
@@ -2461,7 +2461,7 @@ function So(e = {}) {
|
|
|
2461
2461
|
></path>
|
|
2462
2462
|
</svg>`;
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function So(e = "default") {
|
|
2465
2465
|
switch (e) {
|
|
2466
2466
|
case "text":
|
|
2467
2467
|
return "moz-text-button";
|
|
@@ -2478,8 +2478,8 @@ function ko(e = "default") {
|
|
|
2478
2478
|
return "moz-default-button";
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
|
-
const
|
|
2482
|
-
function
|
|
2481
|
+
const fs = /* @__PURE__ */ new Set(["action", "text", "type", "nativeType", "width", "loading", "disabled", "class", "style"]);
|
|
2482
|
+
function bt(e, t = {}) {
|
|
2483
2483
|
const o = !!e.disabled || !!e.loading, l = t.icon != null && t.icon !== w, n = e.width == null ? void 0 : typeof e.width == "number" ? `${ze(e.width)}rem` : e.width, i = e.width == null ? void 0 : typeof e.width == "number" ? `${e.width}px` : e.width, h = {
|
|
2484
2484
|
width: n,
|
|
2485
2485
|
minWidth: n,
|
|
@@ -2494,7 +2494,7 @@ function Ct(e, t = {}) {
|
|
|
2494
2494
|
type=${e.nativeType ?? "button"}
|
|
2495
2495
|
class=${V(
|
|
2496
2496
|
"moz-button",
|
|
2497
|
-
|
|
2497
|
+
So(e.type),
|
|
2498
2498
|
{ loading: !!e.loading, disabled: o, "moz-icon-text-button": l },
|
|
2499
2499
|
e.class
|
|
2500
2500
|
)}
|
|
@@ -2504,7 +2504,7 @@ function Ct(e, t = {}) {
|
|
|
2504
2504
|
${pe(t.rest ?? {})}
|
|
2505
2505
|
>
|
|
2506
2506
|
${e.loading ? a`<span class="spinner" data-part="spinner"
|
|
2507
|
-
>${
|
|
2507
|
+
>${$o({ circleClass: "fill-accent-50", progressClass: "fill-accent-400" })}</span
|
|
2508
2508
|
>` : t.icon ?? w}
|
|
2509
2509
|
${e.text || t.content != null ? a`<span class=${V("text", { "has-icon-text": l })} data-part="label"
|
|
2510
2510
|
>${e.text ?? ""}${t.content ?? w}</span
|
|
@@ -2512,7 +2512,7 @@ function Ct(e, t = {}) {
|
|
|
2512
2512
|
</button>
|
|
2513
2513
|
`;
|
|
2514
2514
|
}
|
|
2515
|
-
const
|
|
2515
|
+
const gs = be({
|
|
2516
2516
|
name: "moz-button",
|
|
2517
2517
|
defaults: { type: "default", loading: !1, disabled: !1 },
|
|
2518
2518
|
setup(e) {
|
|
@@ -2532,7 +2532,7 @@ const vs = be({
|
|
|
2532
2532
|
n.loading !== o && (o = n.loading, t = !!n.loading);
|
|
2533
2533
|
const i = e.slots.has("icon"), h = !!n.disabled || t, d = n.width == null ? void 0 : typeof n.width == "number" ? `${e.px(n.width)}rem` : n.width, s = n.width == null ? void 0 : typeof n.width == "number" ? `${n.width}px` : n.width, m = {};
|
|
2534
2534
|
for (const p of Object.keys(n))
|
|
2535
|
-
|
|
2535
|
+
fs.has(p) || (m[p] = n[p]);
|
|
2536
2536
|
const r = {
|
|
2537
2537
|
width: d,
|
|
2538
2538
|
minWidth: d,
|
|
@@ -2544,7 +2544,7 @@ const vs = be({
|
|
|
2544
2544
|
type=${n.nativeType ?? "button"}
|
|
2545
2545
|
class=${V(
|
|
2546
2546
|
"moz-button",
|
|
2547
|
-
|
|
2547
|
+
So(n.type),
|
|
2548
2548
|
{
|
|
2549
2549
|
loading: t,
|
|
2550
2550
|
disabled: h,
|
|
@@ -2558,7 +2558,7 @@ const vs = be({
|
|
|
2558
2558
|
${pe(m)}
|
|
2559
2559
|
>
|
|
2560
2560
|
${t ? a`<span class="spinner" data-part="spinner"
|
|
2561
|
-
>${
|
|
2561
|
+
>${$o({ circleClass: "fill-accent-50", progressClass: "fill-accent-400" })}</span
|
|
2562
2562
|
>` : e.slot("icon", { disabled: h })}
|
|
2563
2563
|
${n.text || e.slots.has("default") ? a`<span class=${V("text", { "has-icon-text": i })} data-part="label"
|
|
2564
2564
|
>${n.text ?? ""}${e.slot("default", { disabled: h })}</span
|
|
@@ -2568,30 +2568,30 @@ const vs = be({
|
|
|
2568
2568
|
}
|
|
2569
2569
|
};
|
|
2570
2570
|
}
|
|
2571
|
-
}),
|
|
2571
|
+
}), Ur = {
|
|
2572
2572
|
name: "MozButton",
|
|
2573
|
-
core:
|
|
2573
|
+
core: gs,
|
|
2574
2574
|
props: ["action", "text", "type", "nativeType", "width", "loading", "disabled"],
|
|
2575
2575
|
emits: ["click"],
|
|
2576
2576
|
slots: ["icon", "default"],
|
|
2577
2577
|
expose: !0
|
|
2578
|
-
},
|
|
2579
|
-
function
|
|
2578
|
+
}, vs = /* @__PURE__ */ new Set(["for", "disabled", "required", "isReadOnly", "class", "style"]);
|
|
2579
|
+
function ko(e, t) {
|
|
2580
2580
|
return V("moz-label", { disabled: !!e.disabled, "read-only": !!e.isReadOnly }, t, e.class);
|
|
2581
2581
|
}
|
|
2582
2582
|
function Oe(e, t, o) {
|
|
2583
|
-
return a`<label class=${
|
|
2583
|
+
return a`<label class=${ko(e, o)} for=${Pe(e.for)}
|
|
2584
2584
|
>${t}${e.required ? a`<span class="require-mark">*</span>` : w}</label
|
|
2585
2585
|
>`;
|
|
2586
2586
|
}
|
|
2587
|
-
const
|
|
2587
|
+
const ws = be({
|
|
2588
2588
|
name: "moz-label",
|
|
2589
2589
|
setup(e) {
|
|
2590
2590
|
return {
|
|
2591
2591
|
render() {
|
|
2592
|
-
const t = e.props, o = we(t,
|
|
2592
|
+
const t = e.props, o = we(t, vs);
|
|
2593
2593
|
return a`<label
|
|
2594
|
-
class=${
|
|
2594
|
+
class=${ko(t)}
|
|
2595
2595
|
for=${Pe(t.for)}
|
|
2596
2596
|
style=${oe(ke(t.style))}
|
|
2597
2597
|
${pe(o)}
|
|
@@ -2600,14 +2600,14 @@ const bs = be({
|
|
|
2600
2600
|
}
|
|
2601
2601
|
};
|
|
2602
2602
|
}
|
|
2603
|
-
}),
|
|
2603
|
+
}), _r = {
|
|
2604
2604
|
name: "MozLabel",
|
|
2605
|
-
core:
|
|
2605
|
+
core: ws,
|
|
2606
2606
|
props: ["for", "disabled", "required", "isReadOnly"],
|
|
2607
2607
|
emits: [],
|
|
2608
2608
|
slots: ["default"],
|
|
2609
2609
|
expose: !1
|
|
2610
|
-
},
|
|
2610
|
+
}, bs = /* @__PURE__ */ new Set([
|
|
2611
2611
|
"modelValue",
|
|
2612
2612
|
"label",
|
|
2613
2613
|
"labelPosition",
|
|
@@ -2618,7 +2618,7 @@ const bs = be({
|
|
|
2618
2618
|
"class",
|
|
2619
2619
|
"style"
|
|
2620
2620
|
]);
|
|
2621
|
-
function
|
|
2621
|
+
function Nt(e) {
|
|
2622
2622
|
const t = !!e.model;
|
|
2623
2623
|
return a`
|
|
2624
2624
|
<div
|
|
@@ -2649,7 +2649,7 @@ function Ut(e) {
|
|
|
2649
2649
|
</div>
|
|
2650
2650
|
`;
|
|
2651
2651
|
}
|
|
2652
|
-
const
|
|
2652
|
+
const Cs = be({
|
|
2653
2653
|
name: "moz-toggle",
|
|
2654
2654
|
defaults: { labelPosition: "left", required: !1, readonly: !1, disabled: !1, visible: !0 },
|
|
2655
2655
|
setup(e) {
|
|
@@ -2664,8 +2664,8 @@ const ys = be({
|
|
|
2664
2664
|
};
|
|
2665
2665
|
return {
|
|
2666
2666
|
render() {
|
|
2667
|
-
const n = e.props, { aria: i, dom: h } = dt(we(n,
|
|
2668
|
-
return
|
|
2667
|
+
const n = e.props, { aria: i, dom: h } = dt(we(n, bs));
|
|
2668
|
+
return Nt({
|
|
2669
2669
|
id: t,
|
|
2670
2670
|
class: n.class,
|
|
2671
2671
|
rest: h,
|
|
@@ -2682,16 +2682,16 @@ const ys = be({
|
|
|
2682
2682
|
}
|
|
2683
2683
|
};
|
|
2684
2684
|
}
|
|
2685
|
-
}),
|
|
2685
|
+
}), Wr = {
|
|
2686
2686
|
name: "MozToggle",
|
|
2687
|
-
core:
|
|
2687
|
+
core: Cs,
|
|
2688
2688
|
props: ["label", "labelPosition", "required", "readonly", "disabled", "visible"],
|
|
2689
2689
|
emits: ["change"],
|
|
2690
2690
|
models: { modelValue: { prop: "modelValue", event: "change" } },
|
|
2691
2691
|
slots: [],
|
|
2692
2692
|
expose: !1
|
|
2693
2693
|
};
|
|
2694
|
-
function
|
|
2694
|
+
function Eo(e = "") {
|
|
2695
2695
|
return a`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
|
|
2696
2696
|
<path
|
|
2697
2697
|
fill-rule="evenodd"
|
|
@@ -2701,7 +2701,7 @@ function xo(e = "") {
|
|
|
2701
2701
|
></path>
|
|
2702
2702
|
</svg>`;
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function xo(e = "var(--moz-color-text-subtle)", t = "") {
|
|
2705
2705
|
return a`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2706
2706
|
<path
|
|
2707
2707
|
d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
|
|
@@ -2712,7 +2712,7 @@ function Lo(e = "var(--moz-color-text-subtle)", t = "") {
|
|
|
2712
2712
|
></path>
|
|
2713
2713
|
</svg>`;
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2715
|
+
function Lo(e = "var(--moz-color-accent)", t = "") {
|
|
2716
2716
|
return a`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2717
2717
|
<path
|
|
2718
2718
|
d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
|
|
@@ -2724,10 +2724,10 @@ function Po(e = "var(--moz-color-accent)", t = "") {
|
|
|
2724
2724
|
></path>
|
|
2725
2725
|
</svg>`;
|
|
2726
2726
|
}
|
|
2727
|
-
const
|
|
2728
|
-
function
|
|
2727
|
+
const eo = /* @__PURE__ */ new Set(["itemSource", "items", "listClass", "showFavorite", "modelValue", "class", "style"]);
|
|
2728
|
+
function Po(e) {
|
|
2729
2729
|
const t = e.itemSource ?? [], o = !!e.favorite, l = e.showFavorite ? e.favoriteSlot != null ? e.favoriteSlot : a`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
|
|
2730
|
-
${o ?
|
|
2730
|
+
${o ? Lo(void 0, "favorite-filled") : xo(void 0, "empty")}
|
|
2731
2731
|
</button>` : w;
|
|
2732
2732
|
return a`
|
|
2733
2733
|
<div
|
|
@@ -2739,29 +2739,29 @@ function To(e) {
|
|
|
2739
2739
|
>
|
|
2740
2740
|
<div class="menu-item">
|
|
2741
2741
|
${t.map(
|
|
2742
|
-
(n, i) => t.length - 1 === i ? a`<div class="current-item" aria-current="page">${n}</div>` : a`<div>${n}</div>${
|
|
2742
|
+
(n, i) => t.length - 1 === i ? a`<div class="current-item" aria-current="page">${n}</div>` : a`<div>${n}</div>${Eo("separator")}`
|
|
2743
2743
|
)}
|
|
2744
2744
|
</div>
|
|
2745
2745
|
${l}${e.titleSlot ?? w}
|
|
2746
2746
|
</div>
|
|
2747
2747
|
`;
|
|
2748
2748
|
}
|
|
2749
|
-
const
|
|
2749
|
+
const ys = be({
|
|
2750
2750
|
name: "moz-bread-crumb",
|
|
2751
2751
|
defaults: { showFavorite: !0, modelValue: !0, itemSource: [] },
|
|
2752
2752
|
setup(e) {
|
|
2753
2753
|
const t = () => e.emit("click", !!e.props.modelValue), o = (l) => {
|
|
2754
2754
|
const n = e.props, i = !!n.modelValue, h = n.showFavorite ? e.slots.has("favorite") ? e.slot("favorite") : a`<button type="button" class="favorite-icon" @click=${t}>
|
|
2755
|
-
${i ?
|
|
2755
|
+
${i ? Lo(void 0, "favorite-filled") : xo(void 0, "empty")}
|
|
2756
2756
|
</button>` : w, d = () => a`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
|
|
2757
|
-
${e.slots.has("separator") ? e.slot("separator") :
|
|
2757
|
+
${e.slots.has("separator") ? e.slot("separator") : Eo("separator")}
|
|
2758
2758
|
</li>`;
|
|
2759
2759
|
return a`
|
|
2760
2760
|
<nav
|
|
2761
2761
|
aria-label=${e.locale.BreadCrumb.navigation}
|
|
2762
2762
|
class=${V("moz-bread-crumb", "moz-bread-crumb-items", n.class)}
|
|
2763
2763
|
style=${oe(ke(n.style))}
|
|
2764
|
-
${pe(we(n,
|
|
2764
|
+
${pe(we(n, eo))}
|
|
2765
2765
|
>
|
|
2766
2766
|
<ol class=${V("moz-bread-crumb-list", n.listClass)}>
|
|
2767
2767
|
${l.map(
|
|
@@ -2780,7 +2780,7 @@ const $s = be({
|
|
|
2780
2780
|
return {
|
|
2781
2781
|
render() {
|
|
2782
2782
|
const l = e.props;
|
|
2783
|
-
return l.items && l.items.length > 0 ? o(l.items) :
|
|
2783
|
+
return l.items && l.items.length > 0 ? o(l.items) : Po({
|
|
2784
2784
|
itemSource: l.itemSource,
|
|
2785
2785
|
showFavorite: l.showFavorite,
|
|
2786
2786
|
favorite: !!l.modelValue,
|
|
@@ -2790,14 +2790,14 @@ const $s = be({
|
|
|
2790
2790
|
titleSlot: e.slot("title"),
|
|
2791
2791
|
class: l.class,
|
|
2792
2792
|
style: l.style,
|
|
2793
|
-
rest: we(l,
|
|
2793
|
+
rest: we(l, eo)
|
|
2794
2794
|
});
|
|
2795
2795
|
}
|
|
2796
2796
|
};
|
|
2797
2797
|
}
|
|
2798
|
-
}),
|
|
2798
|
+
}), Kr = {
|
|
2799
2799
|
name: "MozBreadCrumb",
|
|
2800
|
-
core:
|
|
2800
|
+
core: ys,
|
|
2801
2801
|
props: ["itemSource", "items", "listClass", "showFavorite"],
|
|
2802
2802
|
emits: ["click"],
|
|
2803
2803
|
models: { modelValue: { prop: "modelValue", event: "update:modelValue" } },
|
|
@@ -2809,7 +2809,7 @@ const $s = be({
|
|
|
2809
2809
|
// 값이 항목을 늘리면 **그 틱에** li 가 있어야 한다. 배치하면 "등록 직후 heading 조회" 소비처가
|
|
2810
2810
|
// 한 틱 차이로 빈손이 된다(소비 앱 MenuBreadcrumb 테스트 3건 실측). Popup·Popover 와 같은 이유.
|
|
2811
2811
|
syncUpdate: !0
|
|
2812
|
-
},
|
|
2812
|
+
}, $s = {
|
|
2813
2813
|
customEmptyHeader: "No data",
|
|
2814
2814
|
customEmptyContent: "There is no data to display.",
|
|
2815
2815
|
dataEmptyHeader: "No data to display",
|
|
@@ -2818,7 +2818,7 @@ const $s = be({
|
|
|
2818
2818
|
resultEmptyContent: "Check the search conditions and try again.",
|
|
2819
2819
|
searchEmptyHeader: "No search results",
|
|
2820
2820
|
searchEmptyContent: "Please check the filter value and try again."
|
|
2821
|
-
}, zo = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, ks = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2211)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='90.5'%20width='99'%20height='27'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='59'%20y='71'%20width='49'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='59'%20y='77'%20width='79'%20height='6'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cg%20clip-path='url(%23clip0_2357_2211)'%3e%3cg%20clip-path='url(%23clip1_2357_2211)'%3e%3cpath%20d='M88%2098.2857V109.714'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cpath%20d='M82.2856%20104H93.7142'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3c/g%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M46%2084C49.866%2084%2053%2080.866%2053%2077C53%2073.134%2049.866%2070%2046%2070C42.134%2070%2039%2073.134%2039%2077C39%2080.866%2042.134%2084%2046%2084ZM45.5333%2073.8667C45.5333%2073.5353%2045.802%2073.2667%2046.1333%2073.2667H46.3333C46.6647%2073.2667%2046.9333%2073.5353%2046.9333%2073.8667V77.8C46.9333%2078.1314%2046.6647%2078.4%2046.3333%2078.4H46.1333C45.802%2078.4%2045.5333%2078.1314%2045.5333%2077.8V73.8667ZM45.5333%2079.9333C45.5333%2079.602%2045.802%2079.3333%2046.1333%2079.3333H46.3333C46.6647%2079.3333%2046.9333%2079.602%2046.9333%2079.9333V80.1333C46.9333%2080.4647%2046.6647%2080.7333%2046.3333%2080.7333H46.1333C45.802%2080.7333%2045.5333%2080.4647%2045.5333%2080.1333V79.9333Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2211'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2211'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2211'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, Es = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, xs = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2190)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='70.5'%20width='99'%20height='47'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='50'%20y='81'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='97'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='87'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3crect%20x='50'%20y='103'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cpath%20d='M123.553%20101.582L119.095%2097.1196C117.866%2097.9205%20116.394%2098.3781%20114.808%2098.2923C111.421%2098.135%20108.521%2095.4892%20108.064%2092.1283C107.435%2087.3372%20111.564%2083.2899%20116.394%2084.1051C119.18%2084.577%20121.495%2086.7509%20122.11%2089.5111C122.581%2091.5991%20122.124%2093.5441%20121.11%2095.0887L125.582%2099.5651C126.139%20100.123%20126.139%20101.024%20125.582%20101.582C125.025%20102.139%20124.11%20102.139%20123.553%20101.582ZM119.438%2091.1558C119.438%2088.796%20117.509%2086.8653%20115.151%2086.8653C112.793%2086.8653%20110.864%2088.796%20110.864%2091.1558C110.864%2093.5155%20112.793%2095.4463%20115.151%2095.4463C117.509%2095.4463%20119.438%2093.5155%20119.438%2091.1558Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2190'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2190'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2190'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, Ls = /* @__PURE__ */ new Set([
|
|
2821
|
+
}, To = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, Ss = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2211)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='90.5'%20width='99'%20height='27'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='59'%20y='71'%20width='49'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='59'%20y='77'%20width='79'%20height='6'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cg%20clip-path='url(%23clip0_2357_2211)'%3e%3cg%20clip-path='url(%23clip1_2357_2211)'%3e%3cpath%20d='M88%2098.2857V109.714'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cpath%20d='M82.2856%20104H93.7142'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3c/g%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M46%2084C49.866%2084%2053%2080.866%2053%2077C53%2073.134%2049.866%2070%2046%2070C42.134%2070%2039%2073.134%2039%2077C39%2080.866%2042.134%2084%2046%2084ZM45.5333%2073.8667C45.5333%2073.5353%2045.802%2073.2667%2046.1333%2073.2667H46.3333C46.6647%2073.2667%2046.9333%2073.5353%2046.9333%2073.8667V77.8C46.9333%2078.1314%2046.6647%2078.4%2046.3333%2078.4H46.1333C45.802%2078.4%2045.5333%2078.1314%2045.5333%2077.8V73.8667ZM45.5333%2079.9333C45.5333%2079.602%2045.802%2079.3333%2046.1333%2079.3333H46.3333C46.6647%2079.3333%2046.9333%2079.602%2046.9333%2079.9333V80.1333C46.9333%2080.4647%2046.6647%2080.7333%2046.3333%2080.7333H46.1333C45.802%2080.7333%2045.5333%2080.4647%2045.5333%2080.1333V79.9333Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2211'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2211'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2211'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, ks = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, Es = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2190)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='70.5'%20width='99'%20height='47'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='50'%20y='81'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='97'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='87'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3crect%20x='50'%20y='103'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cpath%20d='M123.553%20101.582L119.095%2097.1196C117.866%2097.9205%20116.394%2098.3781%20114.808%2098.2923C111.421%2098.135%20108.521%2095.4892%20108.064%2092.1283C107.435%2087.3372%20111.564%2083.2899%20116.394%2084.1051C119.18%2084.577%20121.495%2086.7509%20122.11%2089.5111C122.581%2091.5991%20122.124%2093.5441%20121.11%2095.0887L125.582%2099.5651C126.139%20100.123%20126.139%20101.024%20125.582%20101.582C125.025%20102.139%20124.11%20102.139%20123.553%20101.582ZM119.438%2091.1558C119.438%2088.796%20117.509%2086.8653%20115.151%2086.8653C112.793%2086.8653%20110.864%2088.796%20110.864%2091.1558C110.864%2093.5155%20112.793%2095.4463%20115.151%2095.4463C117.509%2095.4463%20119.438%2093.5155%20119.438%2091.1558Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2190'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2190'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2190'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, xs = /* @__PURE__ */ new Set([
|
|
2822
2822
|
"isReadOnly",
|
|
2823
2823
|
"isCustomState",
|
|
2824
2824
|
"headerMsg",
|
|
@@ -2831,22 +2831,22 @@ const $s = be({
|
|
|
2831
2831
|
"composed",
|
|
2832
2832
|
"class",
|
|
2833
2833
|
"style"
|
|
2834
|
-
]),
|
|
2835
|
-
custom_empty:
|
|
2836
|
-
data_empty:
|
|
2837
|
-
result_empty:
|
|
2838
|
-
search_empty:
|
|
2839
|
-
},
|
|
2834
|
+
]), Ls = {
|
|
2835
|
+
custom_empty: To,
|
|
2836
|
+
data_empty: Ss,
|
|
2837
|
+
result_empty: ks,
|
|
2838
|
+
search_empty: Es
|
|
2839
|
+
}, Ps = {
|
|
2840
2840
|
custom_empty: "customEmptyHeader",
|
|
2841
2841
|
data_empty: "dataEmptyHeader",
|
|
2842
2842
|
result_empty: "resultEmptyHeader",
|
|
2843
2843
|
search_empty: "searchEmptyHeader"
|
|
2844
|
-
},
|
|
2844
|
+
}, Ts = {
|
|
2845
2845
|
custom_empty: "customEmptyContent",
|
|
2846
2846
|
data_empty: "dataEmptyContent",
|
|
2847
2847
|
result_empty: "resultEmptyContent",
|
|
2848
2848
|
search_empty: "searchEmptyContent"
|
|
2849
|
-
},
|
|
2849
|
+
}, zs = be({
|
|
2850
2850
|
name: "moz-empty-state",
|
|
2851
2851
|
defaults: {
|
|
2852
2852
|
isReadOnly: !0,
|
|
@@ -2859,7 +2859,7 @@ const $s = be({
|
|
|
2859
2859
|
setup(e) {
|
|
2860
2860
|
const t = (l) => {
|
|
2861
2861
|
var i;
|
|
2862
|
-
return ((i = e.props.messages) == null ? void 0 : i[l]) || e.locale.EmptyState[l] ||
|
|
2862
|
+
return ((i = e.props.messages) == null ? void 0 : i[l]) || e.locale.EmptyState[l] || $s[l] || "";
|
|
2863
2863
|
}, o = () => {
|
|
2864
2864
|
const l = e.props, n = l.totalRowCount ?? 0, i = l.filterdRowCount ?? 0;
|
|
2865
2865
|
if (l.selectImg && (n === 0 || i === 0))
|
|
@@ -2877,7 +2877,7 @@ const $s = be({
|
|
|
2877
2877
|
};
|
|
2878
2878
|
return {
|
|
2879
2879
|
render() {
|
|
2880
|
-
const l = e.props, n = we(l,
|
|
2880
|
+
const l = e.props, n = we(l, xs);
|
|
2881
2881
|
if (l.composed)
|
|
2882
2882
|
return a`
|
|
2883
2883
|
<div
|
|
@@ -2894,12 +2894,12 @@ const $s = be({
|
|
|
2894
2894
|
`;
|
|
2895
2895
|
const i = o();
|
|
2896
2896
|
if (!i) return w;
|
|
2897
|
-
const h =
|
|
2897
|
+
const h = Ls[i] || To, d = typeof l.headerMsg == "string" ? l.headerMsg : t(Ps[i] || "customEmptyHeader"), s = typeof l.contentMsg == "string" ? l.contentMsg : t(Ts[i] || "customEmptyContent"), m = e.slots.has("icon") ? a`<div class="empty-icon">${e.slot("icon")}</div>` : l.useImg ? a`<img src=${h} alt="Empty state" class="empty-img" />` : w;
|
|
2898
2898
|
return a`
|
|
2899
2899
|
<div class=${V("empty-container", l.class)} style=${oe(ke(l.style))} ${pe(n)}>
|
|
2900
2900
|
${m}
|
|
2901
2901
|
<div class="empty-heading">${d}</div>
|
|
2902
|
-
<div class="empty-content"><span>${
|
|
2902
|
+
<div class="empty-content"><span>${bo(s)}</span></div>
|
|
2903
2903
|
<div class="empty-content">${e.slot("customState")}</div>
|
|
2904
2904
|
${e.slots.has("actions") ? a`<div class="empty-actions">${e.slot("actions")}</div>` : w}
|
|
2905
2905
|
</div>
|
|
@@ -2907,9 +2907,9 @@ const $s = be({
|
|
|
2907
2907
|
}
|
|
2908
2908
|
};
|
|
2909
2909
|
}
|
|
2910
|
-
}),
|
|
2910
|
+
}), Gr = {
|
|
2911
2911
|
name: "MozEmptyState",
|
|
2912
|
-
core:
|
|
2912
|
+
core: zs,
|
|
2913
2913
|
props: [
|
|
2914
2914
|
"isReadOnly",
|
|
2915
2915
|
"isCustomState",
|
|
@@ -2929,7 +2929,7 @@ const $s = be({
|
|
|
2929
2929
|
slots: ["customState", "icon", "heading", "description", "actions"],
|
|
2930
2930
|
expose: !1
|
|
2931
2931
|
};
|
|
2932
|
-
function
|
|
2932
|
+
function zo(e = "var(--moz-color-border)", t = !1, o = "") {
|
|
2933
2933
|
return a`<svg class=${o} data-icon="unchecked" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2934
2934
|
<path
|
|
2935
2935
|
d="M10 0H2C0.89543 0 0 0.89543 0 2V10C0 11.1046 0.89543 12 2 12H10C11.1046 12 12 11.1046 12 10V2C12 0.89543 11.1046 0 10 0Z"
|
|
@@ -2941,7 +2941,7 @@ function Mo(e = "var(--moz-color-border)", t = !1, o = "") {
|
|
|
2941
2941
|
></path>
|
|
2942
2942
|
</svg>`;
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function Mo(e = "var(--moz-color-accent)", t = !1, o = "") {
|
|
2945
2945
|
return a`<svg class=${o} data-icon="checked" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2946
2946
|
<path
|
|
2947
2947
|
d="M10 12H2C1.46957 12 0.960859 11.7893 0.585786 11.4142C0.210714 11.0391 0 10.5304 0 10V2C0 1.46957 0.210714 0.960859 0.585786 0.585786C0.960859 0.210714 1.46957 0 2 0L10 0C10.5304 0 11.0391 0.210714 11.4142 0.585786C11.7893 0.960859 12 1.46957 12 2V10C12 10.5304 11.7893 11.0391 11.4142 11.4142C11.0391 11.7893 10.5304 12 10 12ZM2.276 5.472C2.18827 5.47227 2.10149 5.49011 2.02077 5.52446C1.94005 5.5588 1.86702 5.60897 1.806 5.672C1.68191 5.79695 1.61227 5.9659 1.61227 6.142C1.61227 6.3181 1.68191 6.48705 1.806 6.612L4.2 9C4.32469 9.12457 4.49374 9.19455 4.67 9.19455C4.84626 9.19455 5.01531 9.12457 5.14 9L10.194 3.94C10.2557 3.87821 10.3047 3.80487 10.338 3.72417C10.3714 3.64347 10.3886 3.55698 10.3885 3.46965C10.3885 3.38231 10.3712 3.29584 10.3378 3.21518C10.3043 3.13451 10.2553 3.06122 10.1935 2.9995C10.1317 2.93778 10.0584 2.88883 9.97767 2.85545C9.89697 2.82208 9.81048 2.80492 9.72315 2.80497C9.63581 2.80501 9.54934 2.82226 9.46868 2.85572C9.38801 2.88919 9.31472 2.93821 9.253 3L4.667 7.587L2.747 5.667C2.68531 5.60494 2.61191 5.55574 2.53105 5.52227C2.4502 5.48879 2.36351 5.47171 2.276 5.472Z"
|
|
@@ -2949,13 +2949,13 @@ function Vo(e = "var(--moz-color-accent)", t = !1, o = "") {
|
|
|
2949
2949
|
></path>
|
|
2950
2950
|
</svg>`;
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function Vo(e = "var(--moz-color-accent)", t = !1, o = "") {
|
|
2953
2953
|
return a`<svg class=${o} data-icon="indeterminate" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2954
2954
|
<rect width="12" height="12" rx="2" fill=${t ? "var(--moz-color-text-muted)" : e}></rect>
|
|
2955
2955
|
<path d="M3 6H9" stroke="var(--moz-color-on-accent)" stroke-width="2" stroke-linecap="round"></path>
|
|
2956
2956
|
</svg>`;
|
|
2957
2957
|
}
|
|
2958
|
-
const
|
|
2958
|
+
const Ms = /* @__PURE__ */ new Set([
|
|
2959
2959
|
"label",
|
|
2960
2960
|
"fieldId",
|
|
2961
2961
|
"disabled",
|
|
@@ -2966,7 +2966,7 @@ const Vs = /* @__PURE__ */ new Set([
|
|
|
2966
2966
|
"class",
|
|
2967
2967
|
"style"
|
|
2968
2968
|
]);
|
|
2969
|
-
function
|
|
2969
|
+
function It(e = {}) {
|
|
2970
2970
|
const t = !!e.checked, o = !!e.disabled, l = !!e.indeterminate, n = () => {
|
|
2971
2971
|
var i;
|
|
2972
2972
|
o || (i = e.onChange) == null || i.call(e, !t);
|
|
@@ -2995,17 +2995,17 @@ function Ft(e = {}) {
|
|
|
2995
2995
|
}}
|
|
2996
2996
|
/>
|
|
2997
2997
|
<div class="checkbox-visual">
|
|
2998
|
-
${l ?
|
|
2998
|
+
${l ? Vo(void 0, o, "checked-icon") : t ? Mo(void 0, o, "checked-icon") : zo(void 0, o, "check-icon")}
|
|
2999
2999
|
</div>
|
|
3000
3000
|
</div>
|
|
3001
3001
|
</div>
|
|
3002
3002
|
`;
|
|
3003
3003
|
}
|
|
3004
|
-
const
|
|
3004
|
+
const Vs = be({
|
|
3005
3005
|
name: "moz-checkbox",
|
|
3006
3006
|
defaults: { disabled: !1, readonly: !1, indeterminate: !1, modelValue: !1 },
|
|
3007
3007
|
setup(e) {
|
|
3008
|
-
const t =
|
|
3008
|
+
const t = as();
|
|
3009
3009
|
let o = !1;
|
|
3010
3010
|
const l = () => {
|
|
3011
3011
|
const p = e.props;
|
|
@@ -3035,7 +3035,7 @@ const As = be({
|
|
|
3035
3035
|
};
|
|
3036
3036
|
return {
|
|
3037
3037
|
render() {
|
|
3038
|
-
const p = e.props, u = p.fieldId || t, v = l(), $ = we(p,
|
|
3038
|
+
const p = e.props, u = p.fieldId || t, v = l(), $ = we(p, Ms);
|
|
3039
3039
|
return a`
|
|
3040
3040
|
<div
|
|
3041
3041
|
class=${V("moz-checkbox", {
|
|
@@ -3066,7 +3066,7 @@ const As = be({
|
|
|
3066
3066
|
@keydown=${s}
|
|
3067
3067
|
/>
|
|
3068
3068
|
<div class=${V("checkbox-visual", { focused: o })}>
|
|
3069
|
-
${p.indeterminate ?
|
|
3069
|
+
${p.indeterminate ? Vo(void 0, !!p.disabled, "checked-icon") : v ? Mo(void 0, !!p.disabled, "checked-icon") : zo(void 0, !!p.disabled, "check-icon")}
|
|
3070
3070
|
</div>
|
|
3071
3071
|
</div>
|
|
3072
3072
|
${p.label ? Oe({ for: u, disabled: p.disabled }, p.label, "moz-checkbox-label") : w}
|
|
@@ -3075,14 +3075,14 @@ const As = be({
|
|
|
3075
3075
|
}
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
|
-
}),
|
|
3078
|
+
}), Yr = {
|
|
3079
3079
|
name: "MozCheckBox",
|
|
3080
|
-
core:
|
|
3080
|
+
core: Vs,
|
|
3081
3081
|
props: ["label", "fieldId", "disabled", "readonly", "checked", "indeterminate", "modelValue"],
|
|
3082
3082
|
emits: ["change", "update:modelValue"],
|
|
3083
3083
|
slots: [],
|
|
3084
3084
|
expose: !1
|
|
3085
|
-
},
|
|
3085
|
+
}, As = ["accent", "neutral", "info", "success", "warning", "danger"], Ds = /* @__PURE__ */ new Set([
|
|
3086
3086
|
"label",
|
|
3087
3087
|
"text",
|
|
3088
3088
|
"disabled",
|
|
@@ -3103,7 +3103,7 @@ const As = be({
|
|
|
3103
3103
|
"modelValue",
|
|
3104
3104
|
"class",
|
|
3105
3105
|
"style"
|
|
3106
|
-
]),
|
|
3106
|
+
]), qs = be({
|
|
3107
3107
|
name: "moz-radio",
|
|
3108
3108
|
defaults: {
|
|
3109
3109
|
label: "",
|
|
@@ -3125,7 +3125,7 @@ const As = be({
|
|
|
3125
3125
|
setup(e) {
|
|
3126
3126
|
const t = tt("radio_"), o = (s) => s.key === " " || s.key === "Enter" || s.key === "Spacebar" || s.key === "Space" || s.code === "Space" || s.code === "Enter" || s.keyCode === 32 || s.keyCode === 13, l = (s) => typeof requestAnimationFrame == "function" ? requestAnimationFrame(s) : setTimeout(s, 16), n = (s) => {
|
|
3127
3127
|
const m = s[e.props.toneExpr ?? "tone"];
|
|
3128
|
-
return typeof m == "string" &&
|
|
3128
|
+
return typeof m == "string" && As.includes(m) ? m : void 0;
|
|
3129
3129
|
}, i = (s) => {
|
|
3130
3130
|
const m = e.props;
|
|
3131
3131
|
return !!m.disabled || s[m.disabledExpr ?? "disabled"] === !0;
|
|
@@ -3145,7 +3145,7 @@ const As = be({
|
|
|
3145
3145
|
};
|
|
3146
3146
|
return {
|
|
3147
3147
|
render() {
|
|
3148
|
-
const s = e.props, m = s.itemsSource ?? [], r = s.valueExpr ?? "value", p = s.displayExpr ?? "label", u = !!s.disabled, v = s.modelValue, $ = s.value !== void 0 && m.length === 0, I = !$ && s.variant === "segment", S = we(s,
|
|
3148
|
+
const s = e.props, m = s.itemsSource ?? [], r = s.valueExpr ?? "value", p = s.displayExpr ?? "label", u = !!s.disabled, v = s.modelValue, $ = s.value !== void 0 && m.length === 0, I = !$ && s.variant === "segment", S = we(s, Ds), y = () => a`
|
|
3149
3149
|
<div class="radio-container">
|
|
3150
3150
|
<div class="radio">
|
|
3151
3151
|
<label for=${t} class=${V("label-container", { disabled: u })}>
|
|
@@ -3322,9 +3322,9 @@ const As = be({
|
|
|
3322
3322
|
}
|
|
3323
3323
|
};
|
|
3324
3324
|
}
|
|
3325
|
-
}),
|
|
3325
|
+
}), Zr = {
|
|
3326
3326
|
name: "MozRadio",
|
|
3327
|
-
core:
|
|
3327
|
+
core: qs,
|
|
3328
3328
|
props: [
|
|
3329
3329
|
"label",
|
|
3330
3330
|
"text",
|
|
@@ -3349,7 +3349,7 @@ const As = be({
|
|
|
3349
3349
|
slots: [],
|
|
3350
3350
|
expose: !1
|
|
3351
3351
|
};
|
|
3352
|
-
function
|
|
3352
|
+
function Ao(e = "var(--moz-color-text-subtle)") {
|
|
3353
3353
|
return a`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3354
3354
|
<g>
|
|
3355
3355
|
<path
|
|
@@ -3359,7 +3359,7 @@ function Do(e = "var(--moz-color-text-subtle)") {
|
|
|
3359
3359
|
</g>
|
|
3360
3360
|
</svg>`;
|
|
3361
3361
|
}
|
|
3362
|
-
const
|
|
3362
|
+
const Is = /* @__PURE__ */ new Set([
|
|
3363
3363
|
"label",
|
|
3364
3364
|
"value",
|
|
3365
3365
|
"name",
|
|
@@ -3376,7 +3376,7 @@ const Fs = /* @__PURE__ */ new Set([
|
|
|
3376
3376
|
"modelValue",
|
|
3377
3377
|
"class",
|
|
3378
3378
|
"style"
|
|
3379
|
-
]),
|
|
3379
|
+
]), Fs = be({
|
|
3380
3380
|
name: "moz-input",
|
|
3381
3381
|
defaults: {
|
|
3382
3382
|
type: "text",
|
|
@@ -3431,7 +3431,7 @@ const Fs = /* @__PURE__ */ new Set([
|
|
|
3431
3431
|
e.emit("mounted", (r == null ? void 0 : r.querySelector("input")) ?? null);
|
|
3432
3432
|
},
|
|
3433
3433
|
render() {
|
|
3434
|
-
const r = e.props, p = String(r.modelValue ?? ""), u = t.save || t.blur || t.change, v = !!r.useInvalidV2, $ = r.width ? typeof r.width == "number" ? `${r.width}px` : r.width : "100%", I = we(r,
|
|
3434
|
+
const r = e.props, p = String(r.modelValue ?? ""), u = t.save || t.blur || t.change, v = !!r.useInvalidV2, $ = r.width ? typeof r.width == "number" ? `${r.width}px` : r.width : "100%", I = we(r, Is);
|
|
3435
3435
|
return a`
|
|
3436
3436
|
<div
|
|
3437
3437
|
class=${V("moz-input-wrapper", { "is-invalid": u !== "" }, r.class)}
|
|
@@ -3451,7 +3451,7 @@ const Fs = /* @__PURE__ */ new Set([
|
|
|
3451
3451
|
placeholder=${Pe(r.placeholder)}
|
|
3452
3452
|
?disabled=${!!r.disabled}
|
|
3453
3453
|
?readonly=${!!r.isReadOnly}
|
|
3454
|
-
.value=${
|
|
3454
|
+
.value=${kt(p)}
|
|
3455
3455
|
${pe(I)}
|
|
3456
3456
|
@input=${i}
|
|
3457
3457
|
@keypress=${s}
|
|
@@ -3459,7 +3459,7 @@ const Fs = /* @__PURE__ */ new Set([
|
|
|
3459
3459
|
@blur=${d}
|
|
3460
3460
|
/>
|
|
3461
3461
|
${v && u !== "" && !o ? a`<div class="moz-input-invalid-icon-v2">
|
|
3462
|
-
${e.slots.has("invalidTooltip") ? e.slot("invalidTooltip", { message: u }) : a`<div title=${u}>${
|
|
3462
|
+
${e.slots.has("invalidTooltip") ? e.slot("invalidTooltip", { message: u }) : a`<div title=${u}>${Ao("var(--moz-color-danger)")}</div>`}
|
|
3463
3463
|
</div>` : w}
|
|
3464
3464
|
${!v && u !== "" && !o ? a`<span class=${V("moz-input-invalid-message", `position-${r.messagePosition}`)}
|
|
3465
3465
|
>${u}</span
|
|
@@ -3470,9 +3470,9 @@ const Fs = /* @__PURE__ */ new Set([
|
|
|
3470
3470
|
}
|
|
3471
3471
|
};
|
|
3472
3472
|
}
|
|
3473
|
-
}),
|
|
3473
|
+
}), jr = {
|
|
3474
3474
|
name: "MozInput",
|
|
3475
|
-
core:
|
|
3475
|
+
core: Fs,
|
|
3476
3476
|
props: [
|
|
3477
3477
|
"label",
|
|
3478
3478
|
"value",
|
|
@@ -3493,7 +3493,7 @@ const Fs = /* @__PURE__ */ new Set([
|
|
|
3493
3493
|
slots: ["invalidTooltip"],
|
|
3494
3494
|
expose: !1
|
|
3495
3495
|
};
|
|
3496
|
-
function
|
|
3496
|
+
function Rs() {
|
|
3497
3497
|
return a`<svg data-icon="password-hidden" width="18" height="18" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3498
3498
|
<path d="M1.5 1.5L16.5 14.5" stroke="var(--moz-color-text-secondary)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
3499
3499
|
<path
|
|
@@ -3510,7 +3510,7 @@ function Bs() {
|
|
|
3510
3510
|
></path>
|
|
3511
3511
|
</svg>`;
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function Bs() {
|
|
3514
3514
|
return a`<svg data-icon="password-visible" width="18" height="18" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3515
3515
|
<path
|
|
3516
3516
|
d="M7.5 6C7.5 5.17157 8.17157 4.5 9 4.5C9.82843 4.5 10.5 5.17157 10.5 6C10.5 6.82843 9.82843 7.5 9 7.5C8.17157 7.5 7.5 6.82843 7.5 6Z"
|
|
@@ -3526,7 +3526,7 @@ function Hs() {
|
|
|
3526
3526
|
></path>
|
|
3527
3527
|
</svg>`;
|
|
3528
3528
|
}
|
|
3529
|
-
const
|
|
3529
|
+
const Hs = /* @__PURE__ */ new Set([
|
|
3530
3530
|
"label",
|
|
3531
3531
|
"value",
|
|
3532
3532
|
"name",
|
|
@@ -3541,7 +3541,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3541
3541
|
"modelValue",
|
|
3542
3542
|
"class",
|
|
3543
3543
|
"style"
|
|
3544
|
-
]),
|
|
3544
|
+
]), Os = typeof navigator < "u" && /Edg/.test(navigator.userAgent) ? "edge-password" : "", Ns = be({
|
|
3545
3545
|
name: "moz-password-input",
|
|
3546
3546
|
defaults: { required: !1, disabled: !1, rules: [], messagePosition: "outside", width: "100%", useInvalidV2: !1 },
|
|
3547
3547
|
setup(e) {
|
|
@@ -3587,7 +3587,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3587
3587
|
render() {
|
|
3588
3588
|
const u = e.props;
|
|
3589
3589
|
u.disabled && (l = !1);
|
|
3590
|
-
const v = String(u.modelValue ?? ""), $ = t.save || t.blur || t.change, I = !!u.useInvalidV2, S = u.width ? typeof u.width == "number" ? `${u.width}px` : u.width : "100%", y = we(u,
|
|
3590
|
+
const v = String(u.modelValue ?? ""), $ = t.save || t.blur || t.change, I = !!u.useInvalidV2, S = u.width ? typeof u.width == "number" ? `${u.width}px` : u.width : "100%", y = we(u, Hs);
|
|
3591
3591
|
return a`
|
|
3592
3592
|
<div
|
|
3593
3593
|
class=${V("moz-password-input-container", { "is-invalid": $ !== "", disabled: u.disabled }, u.class)}
|
|
@@ -3598,7 +3598,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3598
3598
|
<input
|
|
3599
3599
|
autocomplete="new-password"
|
|
3600
3600
|
style="width:${S}"
|
|
3601
|
-
class=${V("moz-input",
|
|
3601
|
+
class=${V("moz-input", Os, {
|
|
3602
3602
|
disabled: u.disabled,
|
|
3603
3603
|
"has-inside-message": !I && u.messagePosition === "inside" && $ !== "" && !o,
|
|
3604
3604
|
"has-invalid-icon": I && $ !== "" && !o
|
|
@@ -3607,7 +3607,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3607
3607
|
type=${l ? "text" : "password"}
|
|
3608
3608
|
placeholder=${Pe(u.placeholder)}
|
|
3609
3609
|
?disabled=${!!u.disabled}
|
|
3610
|
-
.value=${
|
|
3610
|
+
.value=${kt(v)}
|
|
3611
3611
|
${pe(y)}
|
|
3612
3612
|
@input=${h}
|
|
3613
3613
|
@keypress=${m}
|
|
@@ -3625,10 +3625,10 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3625
3625
|
?disabled=${!!u.disabled}
|
|
3626
3626
|
@click=${r}
|
|
3627
3627
|
>
|
|
3628
|
-
${l ?
|
|
3628
|
+
${l ? Rs() : Bs()}
|
|
3629
3629
|
</button>
|
|
3630
3630
|
${I && $ !== "" && !o ? a`<div class="moz-input-invalid-icon-v2">
|
|
3631
|
-
${e.slots.has("invalidTooltip") ? e.slot("invalidTooltip", { message: $ }) : a`<div title=${$}>${
|
|
3631
|
+
${e.slots.has("invalidTooltip") ? e.slot("invalidTooltip", { message: $ }) : a`<div title=${$}>${Ao("var(--moz-color-danger)")}</div>`}
|
|
3632
3632
|
</div>` : w}
|
|
3633
3633
|
${!I && $ !== "" && !o ? a`<span class=${V("moz-input-invalid-message", `position-${u.messagePosition}`)}
|
|
3634
3634
|
>${$}</span
|
|
@@ -3640,9 +3640,9 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3640
3640
|
}
|
|
3641
3641
|
};
|
|
3642
3642
|
}
|
|
3643
|
-
}),
|
|
3643
|
+
}), Xr = {
|
|
3644
3644
|
name: "MozPasswordInput",
|
|
3645
|
-
core:
|
|
3645
|
+
core: Ns,
|
|
3646
3646
|
props: [
|
|
3647
3647
|
"label",
|
|
3648
3648
|
"value",
|
|
@@ -3660,7 +3660,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3660
3660
|
emits: ["enter", "mounted", "update:modelValue"],
|
|
3661
3661
|
slots: ["invalidTooltip"],
|
|
3662
3662
|
expose: !1
|
|
3663
|
-
},
|
|
3663
|
+
}, Us = /* @__PURE__ */ new Set([
|
|
3664
3664
|
"id",
|
|
3665
3665
|
"label",
|
|
3666
3666
|
"width",
|
|
@@ -3675,7 +3675,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3675
3675
|
"modelValue",
|
|
3676
3676
|
"class",
|
|
3677
3677
|
"style"
|
|
3678
|
-
]),
|
|
3678
|
+
]), _s = be({
|
|
3679
3679
|
name: "moz-textarea",
|
|
3680
3680
|
defaults: {
|
|
3681
3681
|
id: "moz-text-area-id",
|
|
@@ -3730,7 +3730,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3730
3730
|
e.props.immediatelyFocus && ((m = s == null ? void 0 : s.querySelector("textarea")) == null || m.focus());
|
|
3731
3731
|
},
|
|
3732
3732
|
render() {
|
|
3733
|
-
const s = e.props, m = String(s.modelValue ?? ""), r = t.save || t.blur || t.change, p = s.width ? typeof s.width == "number" ? `${ze(s.width)}rem` : s.width : "100%", u = `${ze(s.height ?? 80)}rem`, v = s.resize ?? "none", $ = v === "none" ? `height:${u}` : `min-height:${u}`, I = m.length, S = we(s,
|
|
3733
|
+
const s = e.props, m = String(s.modelValue ?? ""), r = t.save || t.blur || t.change, p = s.width ? typeof s.width == "number" ? `${ze(s.width)}rem` : s.width : "100%", u = `${ze(s.height ?? 80)}rem`, v = s.resize ?? "none", $ = v === "none" ? `height:${u}` : `min-height:${u}`, I = m.length, S = we(s, Us);
|
|
3734
3734
|
return a`
|
|
3735
3735
|
<div
|
|
3736
3736
|
class=${V("moz-textarea-wrapper", { disabled: s.disabled }, s.class)}
|
|
@@ -3742,7 +3742,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3742
3742
|
<textarea
|
|
3743
3743
|
id=${Pe(s.id)}
|
|
3744
3744
|
${pe(S)}
|
|
3745
|
-
.value=${
|
|
3745
|
+
.value=${kt(m)}
|
|
3746
3746
|
?disabled=${!!s.disabled}
|
|
3747
3747
|
maxlength=${Pe(s.maxLength ?? void 0)}
|
|
3748
3748
|
class=${V("moz-textarea", { disabled: s.disabled })}
|
|
@@ -3766,9 +3766,9 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3766
3766
|
}
|
|
3767
3767
|
};
|
|
3768
3768
|
}
|
|
3769
|
-
}),
|
|
3769
|
+
}), Qr = {
|
|
3770
3770
|
name: "MozTextArea",
|
|
3771
|
-
core:
|
|
3771
|
+
core: _s,
|
|
3772
3772
|
props: [
|
|
3773
3773
|
"id",
|
|
3774
3774
|
"label",
|
|
@@ -3787,27 +3787,27 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
3787
3787
|
slots: [],
|
|
3788
3788
|
expose: !1
|
|
3789
3789
|
};
|
|
3790
|
-
function
|
|
3790
|
+
function Ws(e = "var(--moz-color-on-accent)", t = !1) {
|
|
3791
3791
|
return a`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3792
3792
|
<path d="M7 1V13M1 7H13" stroke=${t ? "var(--moz-color-text-muted)" : e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
3793
3793
|
</svg>`;
|
|
3794
3794
|
}
|
|
3795
|
-
function
|
|
3795
|
+
function Ks(e = "var(--moz-color-on-accent)", t = !1) {
|
|
3796
3796
|
return a`<svg width="14" height="2" viewBox="0 0 14 2" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3797
3797
|
<path d="M1 1H13" stroke=${t ? "var(--moz-color-text-muted)" : e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
3798
3798
|
</svg>`;
|
|
3799
3799
|
}
|
|
3800
|
-
function
|
|
3800
|
+
function Gs(e = !1) {
|
|
3801
3801
|
return a`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3802
3802
|
<path d="M9.50097 7.73588L5.95565 4.27686L2.49904 7.73588" stroke=${e ? "var(--moz-color-text-muted)" : "var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
3803
3803
|
</svg>`;
|
|
3804
3804
|
}
|
|
3805
|
-
function
|
|
3805
|
+
function Ys(e = !1) {
|
|
3806
3806
|
return a`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3807
3807
|
<path d="M2.49901 4.27686L6.04435 7.73588L9.50099 4.27686" stroke=${e ? "var(--moz-color-text-muted)" : "var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
3808
3808
|
</svg>`;
|
|
3809
3809
|
}
|
|
3810
|
-
const
|
|
3810
|
+
const Zs = /* @__PURE__ */ new Set([
|
|
3811
3811
|
"label",
|
|
3812
3812
|
"name",
|
|
3813
3813
|
"width",
|
|
@@ -3821,7 +3821,7 @@ const js = /* @__PURE__ */ new Set([
|
|
|
3821
3821
|
"modelValue",
|
|
3822
3822
|
"class",
|
|
3823
3823
|
"style"
|
|
3824
|
-
]),
|
|
3824
|
+
]), js = be({
|
|
3825
3825
|
name: "moz-number-input",
|
|
3826
3826
|
defaults: {
|
|
3827
3827
|
label: "",
|
|
@@ -3876,12 +3876,12 @@ const js = /* @__PURE__ */ new Set([
|
|
|
3876
3876
|
return {
|
|
3877
3877
|
onMounted: (d) => e.emit("mounted", (d == null ? void 0 : d.querySelector("input")) ?? null),
|
|
3878
3878
|
render() {
|
|
3879
|
-
const d = e.props, s = d.modelValue, m = !!d.disabled, r = d.min, p = d.max, u = typeof d.width == "number" ? `${ze(d.width)}rem` : d.width, v = we(d,
|
|
3879
|
+
const d = e.props, s = d.modelValue, m = !!d.disabled, r = d.min, p = d.max, u = typeof d.width == "number" ? `${ze(d.width)}rem` : d.width, v = we(d, Zs), $ = (S) => V("moz-button", "moz-icon-button", "moz-icon-accent-button", "num-change-btn", S), I = a`
|
|
3880
3880
|
<div class=${V("moz-number-input", { "input-border": d.shortMode })}>
|
|
3881
3881
|
<input
|
|
3882
3882
|
name=${Pe(d.name)}
|
|
3883
3883
|
?disabled=${m}
|
|
3884
|
-
.value=${
|
|
3884
|
+
.value=${kt(String(s ?? ""))}
|
|
3885
3885
|
${pe(v)}
|
|
3886
3886
|
@input=${i}
|
|
3887
3887
|
@change=${i}
|
|
@@ -3892,8 +3892,8 @@ const js = /* @__PURE__ */ new Set([
|
|
|
3892
3892
|
/>
|
|
3893
3893
|
<div class="moz-number-input-btn">
|
|
3894
3894
|
${d.shortMode ? a`
|
|
3895
|
-
<button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" @click=${t}>${
|
|
3896
|
-
<button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" @click=${o}>${
|
|
3895
|
+
<button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" @click=${t}>${Gs(m)}</button>
|
|
3896
|
+
<button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" @click=${o}>${Ys(m)}</button>
|
|
3897
3897
|
` : w}
|
|
3898
3898
|
</div>
|
|
3899
3899
|
</div>
|
|
@@ -3913,7 +3913,7 @@ const js = /* @__PURE__ */ new Set([
|
|
|
3913
3913
|
?disabled=${m}
|
|
3914
3914
|
@click=${o}
|
|
3915
3915
|
>
|
|
3916
|
-
${
|
|
3916
|
+
${Ks("var(--moz-color-on-accent)", m || r >= s)}
|
|
3917
3917
|
</button>`}
|
|
3918
3918
|
${I}
|
|
3919
3919
|
${d.shortMode ? w : a`<button
|
|
@@ -3924,7 +3924,7 @@ const js = /* @__PURE__ */ new Set([
|
|
|
3924
3924
|
?disabled=${m}
|
|
3925
3925
|
@click=${t}
|
|
3926
3926
|
>
|
|
3927
|
-
${
|
|
3927
|
+
${Ws("var(--moz-color-on-accent)", m || p <= s)}
|
|
3928
3928
|
</button>`}
|
|
3929
3929
|
</div>
|
|
3930
3930
|
</div>
|
|
@@ -3932,20 +3932,20 @@ const js = /* @__PURE__ */ new Set([
|
|
|
3932
3932
|
}
|
|
3933
3933
|
};
|
|
3934
3934
|
}
|
|
3935
|
-
}),
|
|
3935
|
+
}), Jr = {
|
|
3936
3936
|
name: "MozNumberInput",
|
|
3937
|
-
core:
|
|
3937
|
+
core: js,
|
|
3938
3938
|
props: ["label", "name", "width", "required", "step", "min", "max", "disabled", "shortMode", "nullable", "modelValue"],
|
|
3939
3939
|
emits: ["change", "mounted", "enter", "update:modelValue"],
|
|
3940
3940
|
slots: [],
|
|
3941
3941
|
expose: !1
|
|
3942
3942
|
};
|
|
3943
|
-
function
|
|
3943
|
+
function Xs(e = "var(--moz-color-text-subtle)") {
|
|
3944
3944
|
return a`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3945
3945
|
<path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
3946
3946
|
</svg>`;
|
|
3947
3947
|
}
|
|
3948
|
-
const
|
|
3948
|
+
const Qs = /* @__PURE__ */ new Set(["itemSource", "vertical", "tabWidth", "maxTabWidth", "closeAble", "modelValue", "class", "style"]), Js = be({
|
|
3949
3949
|
name: "moz-tab",
|
|
3950
3950
|
defaults: { vertical: !1, tabWidth: 100, closeAble: !1, itemSource: [] },
|
|
3951
3951
|
setup(e) {
|
|
@@ -3985,7 +3985,7 @@ const Js = /* @__PURE__ */ new Set(["itemSource", "vertical", "tabWidth", "maxTa
|
|
|
3985
3985
|
});
|
|
3986
3986
|
},
|
|
3987
3987
|
render() {
|
|
3988
|
-
const s = e.props, m = s.itemSource ?? [], r = s.modelValue, p = we(s,
|
|
3988
|
+
const s = e.props, m = s.itemSource ?? [], r = s.modelValue, p = we(s, Qs), u = oe({
|
|
3989
3989
|
width: s.closeAble ? `${s.tabWidth}px` : "",
|
|
3990
3990
|
maxWidth: s.maxTabWidth ? `${s.maxTabWidth}px` : void 0,
|
|
3991
3991
|
display: "flex",
|
|
@@ -4028,7 +4028,7 @@ const Js = /* @__PURE__ */ new Set(["itemSource", "vertical", "tabWidth", "maxTa
|
|
|
4028
4028
|
I.stopPropagation(), d(v.id);
|
|
4029
4029
|
}}
|
|
4030
4030
|
>
|
|
4031
|
-
${
|
|
4031
|
+
${Xs()}
|
|
4032
4032
|
</button>` : w}
|
|
4033
4033
|
</div>
|
|
4034
4034
|
`;
|
|
@@ -4055,14 +4055,14 @@ const Js = /* @__PURE__ */ new Set(["itemSource", "vertical", "tabWidth", "maxTa
|
|
|
4055
4055
|
}
|
|
4056
4056
|
};
|
|
4057
4057
|
}
|
|
4058
|
-
}),
|
|
4058
|
+
}), ei = {
|
|
4059
4059
|
name: "MozTab",
|
|
4060
|
-
core:
|
|
4060
|
+
core: Js,
|
|
4061
4061
|
props: ["itemSource", "vertical", "tabWidth", "maxTabWidth", "closeAble", "modelValue"],
|
|
4062
4062
|
emits: ["change", "close", "update:modelValue"],
|
|
4063
4063
|
slots: [],
|
|
4064
4064
|
expose: !1
|
|
4065
|
-
},
|
|
4065
|
+
}, el = /* @__PURE__ */ new Set(["id", "width", "label", "min", "max", "step", "disabled", "modelValue", "class", "style"]), tl = be({
|
|
4066
4066
|
name: "moz-slider",
|
|
4067
4067
|
defaults: { id: "moz-slider-id", width: 150, min: 0, max: 100, step: 1, disabled: !1, modelValue: 0 },
|
|
4068
4068
|
setup(e) {
|
|
@@ -4094,7 +4094,7 @@ const Js = /* @__PURE__ */ new Set(["itemSource", "vertical", "tabWidth", "maxTa
|
|
|
4094
4094
|
window.removeEventListener("mousemove", n), window.removeEventListener("mouseup", i);
|
|
4095
4095
|
}), {
|
|
4096
4096
|
render() {
|
|
4097
|
-
const p = e.props, u = p.modelValue ?? 0, v = !!p.disabled, $ = p.min, I = p.max, S = typeof p.width == "number" ? `${ze(p.width)}rem` : p.width, y = typeof p.width == "number" ? p.width : Number.isNaN(parseFloat(String(p.width))) ? 150 : parseFloat(String(p.width)), E = (u - $) / (I - $) * (y - 18), z = E < 0 ? 0 : E, X = we(p,
|
|
4097
|
+
const p = e.props, u = p.modelValue ?? 0, v = !!p.disabled, $ = p.min, I = p.max, S = typeof p.width == "number" ? `${ze(p.width)}rem` : p.width, y = typeof p.width == "number" ? p.width : Number.isNaN(parseFloat(String(p.width))) ? 150 : parseFloat(String(p.width)), E = (u - $) / (I - $) * (y - 18), z = E < 0 ? 0 : E, X = we(p, el);
|
|
4098
4098
|
return a`
|
|
4099
4099
|
<div class=${V("moz-slider-wrapper", p.class)} style=${oe(ke(p.style))} ${pe(X)}>
|
|
4100
4100
|
${p.label ? Oe({ for: p.id }, p.label) : w}
|
|
@@ -4126,20 +4126,20 @@ const Js = /* @__PURE__ */ new Set(["itemSource", "vertical", "tabWidth", "maxTa
|
|
|
4126
4126
|
}
|
|
4127
4127
|
};
|
|
4128
4128
|
}
|
|
4129
|
-
}),
|
|
4129
|
+
}), ti = {
|
|
4130
4130
|
name: "MozSlider",
|
|
4131
|
-
core:
|
|
4131
|
+
core: tl,
|
|
4132
4132
|
props: ["id", "width", "label", "min", "max", "step", "disabled", "modelValue"],
|
|
4133
4133
|
emits: ["change", "update:modelValue"],
|
|
4134
4134
|
slots: [],
|
|
4135
4135
|
expose: !1
|
|
4136
4136
|
};
|
|
4137
|
-
function
|
|
4137
|
+
function ol(e = "var(--moz-color-text-subtle)") {
|
|
4138
4138
|
return a`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4139
4139
|
<path d="M3 4.5L6 7.5L9 4.5" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
4140
4140
|
</svg>`;
|
|
4141
4141
|
}
|
|
4142
|
-
function
|
|
4142
|
+
function sl(e = "var(--moz-color-text-subtle)") {
|
|
4143
4143
|
return a`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4144
4144
|
<path
|
|
4145
4145
|
fill-rule="evenodd"
|
|
@@ -4149,7 +4149,7 @@ function ll(e = "var(--moz-color-text-subtle)") {
|
|
|
4149
4149
|
></path>
|
|
4150
4150
|
</svg>`;
|
|
4151
4151
|
}
|
|
4152
|
-
function
|
|
4152
|
+
function ll(e = "var(--moz-color-text-subtle)") {
|
|
4153
4153
|
return a`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4154
4154
|
<path
|
|
4155
4155
|
fill-rule="evenodd"
|
|
@@ -4159,7 +4159,7 @@ function nl(e = "var(--moz-color-text-subtle)") {
|
|
|
4159
4159
|
></path>
|
|
4160
4160
|
</svg>`;
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function nl(e = "var(--moz-color-text-subtle)") {
|
|
4163
4163
|
return a`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4164
4164
|
<path
|
|
4165
4165
|
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"
|
|
@@ -4175,7 +4175,7 @@ function rl(e = "var(--moz-color-text-subtle)") {
|
|
|
4175
4175
|
<rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
|
|
4176
4176
|
</svg>`;
|
|
4177
4177
|
}
|
|
4178
|
-
const
|
|
4178
|
+
const rl = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "modelValue", "class", "style"]), il = (e, ...t) => e.filter((o) => !t.includes(o)), Do = be({
|
|
4179
4179
|
name: "moz-calendar",
|
|
4180
4180
|
defaults: { rowHeight: 36, exceptWeeks: [], min: null, max: null },
|
|
4181
4181
|
setup(e) {
|
|
@@ -4210,7 +4210,7 @@ const il = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4210
4210
|
render() {
|
|
4211
4211
|
const E = e.props;
|
|
4212
4212
|
E.modelValue !== o && (o = E.modelValue, t = E.modelValue ? Te(E.modelValue) : Te());
|
|
4213
|
-
const z = E.rowHeight ?? 36, X = ["ko", "zh", "zh-cn"].includes(Te().locale()), W = t.hour(), te = t.minute(), re = t.second(), ee = (T) => T.set("hour", W || 0).set("minute", te || 0).set("second", re || 0), K =
|
|
4213
|
+
const z = E.rowHeight ?? 36, X = ["ko", "zh", "zh-cn"].includes(Te().locale()), W = t.hour(), te = t.minute(), re = t.second(), ee = (T) => T.set("hour", W || 0).set("minute", te || 0).set("second", re || 0), K = il([0, 1, 2, 3, 4, 5, 6], ...E.exceptWeeks ?? []), D = [];
|
|
4214
4214
|
{
|
|
4215
4215
|
const T = ee(t.endOf("M"));
|
|
4216
4216
|
let A = ee(t.startOf("M")).startOf("w");
|
|
@@ -4243,15 +4243,15 @@ const il = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4243
4243
|
<div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
|
|
4244
4244
|
<div class="moz-calendar-select__text" @click=${v}>${t.format("YYYY")}</div>
|
|
4245
4245
|
`}
|
|
4246
|
-
<div class="moz-calendar-select-btn" @click=${u}>${
|
|
4246
|
+
<div class="moz-calendar-select-btn" @click=${u}>${ol("currentColor")}</div>
|
|
4247
4247
|
</div>
|
|
4248
4248
|
<div class="moz-calendar-header__spacer"></div>
|
|
4249
4249
|
<div class="moz-calendar-select-btn-group">
|
|
4250
|
-
${Q(
|
|
4251
|
-
|
|
4250
|
+
${Q(sl(), r, "이전 달")}${Q(
|
|
4251
|
+
nl(),
|
|
4252
4252
|
q,
|
|
4253
4253
|
"오늘"
|
|
4254
|
-
)}${Q(
|
|
4254
|
+
)}${Q(ll(), p, "다음 달")}
|
|
4255
4255
|
</div>
|
|
4256
4256
|
</div>
|
|
4257
4257
|
`, x = a`
|
|
@@ -4334,7 +4334,7 @@ const il = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4334
4334
|
)}
|
|
4335
4335
|
</div>`;
|
|
4336
4336
|
}
|
|
4337
|
-
const k = we(E,
|
|
4337
|
+
const k = we(E, rl);
|
|
4338
4338
|
return a`
|
|
4339
4339
|
<div class=${V("moz-calendar-container", E.class)} ${pe(k)}>
|
|
4340
4340
|
${U}${l ? x : w}${M}${_}
|
|
@@ -4343,25 +4343,25 @@ const il = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4343
4343
|
}
|
|
4344
4344
|
};
|
|
4345
4345
|
}
|
|
4346
|
-
}),
|
|
4346
|
+
}), oi = {
|
|
4347
4347
|
name: "MozCalendar",
|
|
4348
|
-
core:
|
|
4348
|
+
core: Do,
|
|
4349
4349
|
props: ["rowHeight", "exceptWeeks", "min", "max", "modelValue"],
|
|
4350
4350
|
emits: ["changed", "setMaxHeight", "update:modelValue"],
|
|
4351
4351
|
slots: [],
|
|
4352
4352
|
expose: !1
|
|
4353
4353
|
};
|
|
4354
|
-
function
|
|
4354
|
+
function al(e = "var(--moz-color-on-accent)", t = "14", o = !1) {
|
|
4355
4355
|
return a`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4356
4356
|
<path d="M8.5 3.5L5.5 7L8.5 10.5" stroke=${o ? "var(--moz-color-text-muted)" : e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
4357
4357
|
</svg>`;
|
|
4358
4358
|
}
|
|
4359
|
-
function
|
|
4359
|
+
function cl(e = "var(--moz-color-on-accent)", t = "14", o = !1) {
|
|
4360
4360
|
return a`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4361
4361
|
<path d="M5.5 3.5L8.5 7L5.5 10.5" stroke=${o ? "var(--moz-color-text-muted)" : e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
4362
4362
|
</svg>`;
|
|
4363
4363
|
}
|
|
4364
|
-
function
|
|
4364
|
+
function dl(e = "var(--moz-color-text-subtle)", t = "") {
|
|
4365
4365
|
return a`<svg class=${t} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4366
4366
|
<path
|
|
4367
4367
|
d="M12 2.70001H3.00001C2.28204 2.70001 1.70001 3.28204 1.70001 4.00001V12C1.70001 12.718 2.28204 13.3 3.00001 13.3H12C12.718 13.3 13.3 12.718 13.3 12V4.00001C13.3 3.28204 12.718 2.70001 12 2.70001Z"
|
|
@@ -4376,7 +4376,7 @@ function ul(e = "var(--moz-color-text-subtle)", t = "") {
|
|
|
4376
4376
|
></path>
|
|
4377
4377
|
</svg>`;
|
|
4378
4378
|
}
|
|
4379
|
-
const
|
|
4379
|
+
const ul = "YYYY-MM-DD", pl = /* @__PURE__ */ new Set([
|
|
4380
4380
|
"label",
|
|
4381
4381
|
"name",
|
|
4382
4382
|
"width",
|
|
@@ -4390,18 +4390,18 @@ const pl = "YYYY-MM-DD", ml = /* @__PURE__ */ new Set([
|
|
|
4390
4390
|
"modelValue",
|
|
4391
4391
|
"class",
|
|
4392
4392
|
"style"
|
|
4393
|
-
]),
|
|
4393
|
+
]), ml = be({
|
|
4394
4394
|
name: "moz-date-input",
|
|
4395
4395
|
defaults: { label: "", width: 200, required: !1, disabled: !1, readonly: !1, showSpin: !1, min: null, max: null },
|
|
4396
4396
|
setup(e) {
|
|
4397
4397
|
let t = !1, o = 270, l = e.props.modelValue, n = null, i = null;
|
|
4398
|
-
const h = new
|
|
4398
|
+
const h = new Ot(), d = (S) => {
|
|
4399
4399
|
const y = e.props.modelValue;
|
|
4400
4400
|
let q;
|
|
4401
4401
|
S && y instanceof Date ? q = Te(S).toDate() : S && Te.isDayjs(y) || !y && S ? q = Te(S) : q = void 0, e.emit("update:modelValue", q);
|
|
4402
4402
|
}, s = ((S, ...y) => {
|
|
4403
4403
|
S === "update:modelValue" ? d(y[0]) : S === "setMaxHeight" && (o = y[0], m.calcPosition());
|
|
4404
|
-
}), m = new
|
|
4404
|
+
}), m = new zt({
|
|
4405
4405
|
anchor: () => n == null ? void 0 : n.querySelector(".moz-date-input-wrapper"),
|
|
4406
4406
|
panel: () => h.element,
|
|
4407
4407
|
maxHeight: () => o,
|
|
@@ -4412,7 +4412,7 @@ const pl = "YYYY-MM-DD", ml = /* @__PURE__ */ new Set([
|
|
|
4412
4412
|
}
|
|
4413
4413
|
}), r = () => {
|
|
4414
4414
|
const S = h.open("calendar-container");
|
|
4415
|
-
i =
|
|
4415
|
+
i = Do(
|
|
4416
4416
|
S,
|
|
4417
4417
|
{ modelValue: e.props.modelValue, min: e.props.min, max: e.props.max },
|
|
4418
4418
|
s
|
|
@@ -4444,7 +4444,7 @@ const pl = "YYYY-MM-DD", ml = /* @__PURE__ */ new Set([
|
|
|
4444
4444
|
const re = S.modelValue;
|
|
4445
4445
|
queueMicrotask(() => e.emit("change", re)), i && i.update({ modelValue: S.modelValue });
|
|
4446
4446
|
}
|
|
4447
|
-
const y = S.format ||
|
|
4447
|
+
const y = S.format || ul, q = typeof S.width == "number" ? `${ze(S.width)}rem` : S.width, E = S.modelValue ? Te(S.modelValue).format(y) : "", z = !!S.min && Te(E).isSameOrBefore(Te(S.min), "day"), X = !!S.max && Te(E).isSameOrAfter(Te(S.max), "day"), W = we(S, pl), te = (re, ee, K, D) => a`<button
|
|
4448
4448
|
type="button"
|
|
4449
4449
|
aria-label=${ee === "left" ? e.locale.DateInput.prevDate : e.locale.DateInput.nextDate}
|
|
4450
4450
|
class=${V(
|
|
@@ -4472,7 +4472,7 @@ const pl = "YYYY-MM-DD", ml = /* @__PURE__ */ new Set([
|
|
|
4472
4472
|
) : w}
|
|
4473
4473
|
<div class="moz-date-input-wrapper" style="width:${q}">
|
|
4474
4474
|
${S.showSpin ? te(
|
|
4475
|
-
|
|
4475
|
+
al("var(--moz-color-on-accent)", "14", S.disabled || z),
|
|
4476
4476
|
"left",
|
|
4477
4477
|
z,
|
|
4478
4478
|
v
|
|
@@ -4495,14 +4495,14 @@ const pl = "YYYY-MM-DD", ml = /* @__PURE__ */ new Set([
|
|
|
4495
4495
|
@change=${I}
|
|
4496
4496
|
/>
|
|
4497
4497
|
${S.readonly ? w : a`<div class="moz-date-input__icon-container">
|
|
4498
|
-
${
|
|
4498
|
+
${dl(
|
|
4499
4499
|
"currentColor",
|
|
4500
4500
|
V("moz-date-input__icon", { "moz-date-input__icon--disabled": S.disabled })
|
|
4501
4501
|
)}
|
|
4502
4502
|
</div>`}
|
|
4503
4503
|
</div>
|
|
4504
4504
|
${S.showSpin ? te(
|
|
4505
|
-
|
|
4505
|
+
cl("var(--moz-color-on-accent)", "14", S.disabled || X),
|
|
4506
4506
|
"right",
|
|
4507
4507
|
X,
|
|
4508
4508
|
$
|
|
@@ -4513,9 +4513,9 @@ const pl = "YYYY-MM-DD", ml = /* @__PURE__ */ new Set([
|
|
|
4513
4513
|
}
|
|
4514
4514
|
};
|
|
4515
4515
|
}
|
|
4516
|
-
}),
|
|
4516
|
+
}), si = {
|
|
4517
4517
|
name: "MozDateInput",
|
|
4518
|
-
core:
|
|
4518
|
+
core: ml,
|
|
4519
4519
|
props: ["label", "name", "width", "required", "disabled", "readonly", "format", "showSpin", "min", "max", "modelValue"],
|
|
4520
4520
|
emits: ["change", "focus", "focusOut", "close", "update:modelValue"],
|
|
4521
4521
|
slots: [],
|
|
@@ -4533,7 +4533,7 @@ function ut(e) {
|
|
|
4533
4533
|
30: { width: 30, height: 30 }
|
|
4534
4534
|
}[e] ?? { width: 12, height: 12 };
|
|
4535
4535
|
}
|
|
4536
|
-
function
|
|
4536
|
+
function hl(e = "10", t = "var(--moz-color-text-muted)", o = !1, l = !1, n = "") {
|
|
4537
4537
|
const i = ut(e), h = n || w;
|
|
4538
4538
|
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">
|
|
4539
4539
|
<path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
@@ -4563,7 +4563,7 @@ function fl(e = "10", t = "var(--moz-color-text-muted)", o = !1, l = !1, n = "")
|
|
|
4563
4563
|
</g>
|
|
4564
4564
|
</svg>`;
|
|
4565
4565
|
}
|
|
4566
|
-
function
|
|
4566
|
+
function fl(e = "30", t = "var(--moz-color-danger)", o = "") {
|
|
4567
4567
|
const l = ut(e);
|
|
4568
4568
|
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">
|
|
4569
4569
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
@@ -4579,7 +4579,7 @@ function gl(e = "30", t = "var(--moz-color-danger)", o = "") {
|
|
|
4579
4579
|
</g>
|
|
4580
4580
|
</svg>`;
|
|
4581
4581
|
}
|
|
4582
|
-
function
|
|
4582
|
+
function gl(e = "30", t = "var(--moz-color-accent)", o = "") {
|
|
4583
4583
|
const l = ut(e);
|
|
4584
4584
|
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">
|
|
4585
4585
|
<g>
|
|
@@ -4592,7 +4592,7 @@ function vl(e = "30", t = "var(--moz-color-accent)", o = "") {
|
|
|
4592
4592
|
</g>
|
|
4593
4593
|
</svg>`;
|
|
4594
4594
|
}
|
|
4595
|
-
function
|
|
4595
|
+
function vl(e = "30", t = "var(--moz-color-success)", o = "") {
|
|
4596
4596
|
const l = ut(e);
|
|
4597
4597
|
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">
|
|
4598
4598
|
<g>
|
|
@@ -4605,7 +4605,7 @@ function wl(e = "30", t = "var(--moz-color-success)", o = "") {
|
|
|
4605
4605
|
</g>
|
|
4606
4606
|
</svg>`;
|
|
4607
4607
|
}
|
|
4608
|
-
function
|
|
4608
|
+
function wl(e = "30", t = "var(--moz-color-warning)", o = "") {
|
|
4609
4609
|
const l = ut(e);
|
|
4610
4610
|
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">
|
|
4611
4611
|
<mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
@@ -4621,7 +4621,7 @@ function bl(e = "30", t = "var(--moz-color-warning)", o = "") {
|
|
|
4621
4621
|
</g>
|
|
4622
4622
|
</svg>`;
|
|
4623
4623
|
}
|
|
4624
|
-
const
|
|
4624
|
+
const bl = /* @__PURE__ */ new Set([
|
|
4625
4625
|
"title",
|
|
4626
4626
|
"minWidth",
|
|
4627
4627
|
"minHeight",
|
|
@@ -4666,12 +4666,12 @@ const Cl = /* @__PURE__ */ new Set([
|
|
|
4666
4666
|
"autoPosition",
|
|
4667
4667
|
"hideOthers"
|
|
4668
4668
|
]);
|
|
4669
|
-
let at = 0,
|
|
4670
|
-
const
|
|
4671
|
-
at === 0 && (
|
|
4672
|
-
},
|
|
4673
|
-
at !== 0 && (at -= 1, at === 0 && (document.body.style.overflow =
|
|
4674
|
-
},
|
|
4669
|
+
let at = 0, qo = "";
|
|
4670
|
+
const Cl = () => {
|
|
4671
|
+
at === 0 && (qo = document.body.style.overflow, document.body.style.overflow = "hidden"), at += 1;
|
|
4672
|
+
}, yl = () => {
|
|
4673
|
+
at !== 0 && (at -= 1, at === 0 && (document.body.style.overflow = qo));
|
|
4674
|
+
}, $l = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', Sl = be({
|
|
4675
4675
|
name: "moz-popup",
|
|
4676
4676
|
portal: !0,
|
|
4677
4677
|
defaults: {
|
|
@@ -4726,18 +4726,18 @@ const yl = () => {
|
|
|
4726
4726
|
ee = [];
|
|
4727
4727
|
}, G = () => {
|
|
4728
4728
|
const C = t.value;
|
|
4729
|
-
return C ? Array.from(C.querySelectorAll(
|
|
4729
|
+
return C ? Array.from(C.querySelectorAll($l)).filter(
|
|
4730
4730
|
(F) => F.getAttribute("aria-hidden") !== "true"
|
|
4731
4731
|
) : [];
|
|
4732
4732
|
}, se = () => {
|
|
4733
4733
|
const C = document.querySelectorAll(".moz-popup");
|
|
4734
4734
|
return C.length > 0 && C[C.length - 1] === t.value;
|
|
4735
4735
|
}, ie = () => {
|
|
4736
|
-
i || (i =
|
|
4736
|
+
i || (i = yo(() => A()));
|
|
4737
4737
|
}, Q = () => {
|
|
4738
4738
|
i == null || i.release(), i = null;
|
|
4739
4739
|
}, U = () => {
|
|
4740
|
-
W || (W = !0, ie(), e.props.lockScroll && (
|
|
4740
|
+
W || (W = !0, ie(), e.props.lockScroll && (Cl(), te = !0), e.props.focusTrap && (re = document.activeElement instanceof HTMLElement ? document.activeElement : null, queueMicrotask(() => {
|
|
4741
4741
|
const C = t.value;
|
|
4742
4742
|
!C || !m() || (G()[0] ?? C).focus();
|
|
4743
4743
|
})), e.props.hideOthers && queueMicrotask(() => {
|
|
@@ -4745,7 +4745,7 @@ const yl = () => {
|
|
|
4745
4745
|
}));
|
|
4746
4746
|
}, x = () => {
|
|
4747
4747
|
if (Q(), !W) return;
|
|
4748
|
-
W = !1, te && (
|
|
4748
|
+
W = !1, te && (yl(), te = !1), D();
|
|
4749
4749
|
const C = re;
|
|
4750
4750
|
re = null, C && C.isConnected && C.focus();
|
|
4751
4751
|
}, M = () => {
|
|
@@ -4847,13 +4847,13 @@ const yl = () => {
|
|
|
4847
4847
|
}, $e = (C) => {
|
|
4848
4848
|
switch (C) {
|
|
4849
4849
|
case "error":
|
|
4850
|
-
return
|
|
4850
|
+
return fl("30", "var(--moz-color-danger)", "dialog-icon");
|
|
4851
4851
|
case "info":
|
|
4852
|
-
return
|
|
4852
|
+
return gl("30", "var(--moz-color-accent)", "dialog-icon");
|
|
4853
4853
|
case "success":
|
|
4854
|
-
return
|
|
4854
|
+
return vl("30", "var(--moz-color-success)", "dialog-icon");
|
|
4855
4855
|
case "warning":
|
|
4856
|
-
return
|
|
4856
|
+
return wl("30", "var(--moz-color-warning)", "dialog-icon");
|
|
4857
4857
|
default:
|
|
4858
4858
|
return w;
|
|
4859
4859
|
}
|
|
@@ -4877,11 +4877,11 @@ const yl = () => {
|
|
|
4877
4877
|
...Le ? { width: `${ze(Le)}rem` } : {},
|
|
4878
4878
|
...Me ? { height: `${ze(Me)}rem` } : {},
|
|
4879
4879
|
...We ? {} : { left: `${ze(I)}rem`, top: `${ze(S)}rem` }
|
|
4880
|
-
}, ot = !!C.draggable && !We, Qe = !!C.resizeable && !Ie, Ze = typeof C.contentsPadding == "number" ? `${ze(C.contentsPadding)}rem` : C.contentsPadding, g = Ee(), O = we(C,
|
|
4880
|
+
}, ot = !!C.draggable && !We, Qe = !!C.resizeable && !Ie, Ze = typeof C.contentsPadding == "number" ? `${ze(C.contentsPadding)}rem` : C.contentsPadding, g = Ee(), O = we(C, bl), R = e.slots.has("title") ? e.slot("title") : a`<span class="truncate">${C.title}</span>`, J = e.slots.has("description"), le = e.slots.has("default") ? e.slot("default") : a`<div class="moz-dialog-body">
|
|
4881
4881
|
${$e(C.dialogIcon)}
|
|
4882
|
-
<div class="dialog-message">${C.dialogMessage != null ?
|
|
4882
|
+
<div class="dialog-message">${C.dialogMessage != null ? bo(C.dialogMessage) : w}</div>
|
|
4883
4883
|
</div>`, me = e.slots.has("footer") ? e.slot("footer", { onConfirm: f, onCancel: A }) : a`
|
|
4884
|
-
${g.positive ?
|
|
4884
|
+
${g.positive ? bt(
|
|
4885
4885
|
{
|
|
4886
4886
|
class: "preset-btn",
|
|
4887
4887
|
loading: C.loading,
|
|
@@ -4890,7 +4890,7 @@ const yl = () => {
|
|
|
4890
4890
|
},
|
|
4891
4891
|
{ onClick: f, content: g.positive }
|
|
4892
4892
|
) : w}
|
|
4893
|
-
${g.negative ?
|
|
4893
|
+
${g.negative ? bt(
|
|
4894
4894
|
{ class: "preset-btn", type: "outline", disabled: C.loading, style: "min-width: 80px" },
|
|
4895
4895
|
{ onClick: A, content: g.negative }
|
|
4896
4896
|
) : w}
|
|
@@ -4924,9 +4924,9 @@ const yl = () => {
|
|
|
4924
4924
|
@touchstart=${Z}
|
|
4925
4925
|
>
|
|
4926
4926
|
${R}
|
|
4927
|
-
${C.showCloseButton ?
|
|
4927
|
+
${C.showCloseButton ? bt(
|
|
4928
4928
|
{ type: "icon", class: "close-button", "aria-label": e.locale.Popup.close },
|
|
4929
|
-
{ onClick: A, icon:
|
|
4929
|
+
{ onClick: A, icon: hl("14", "var(--moz-color-text-subtle)") }
|
|
4930
4930
|
) : w}
|
|
4931
4931
|
</div>`}
|
|
4932
4932
|
${J ? a`<div id=${n} class="moz-popup-description">${e.slot("description")}</div>` : w}
|
|
@@ -4941,9 +4941,9 @@ const yl = () => {
|
|
|
4941
4941
|
}
|
|
4942
4942
|
};
|
|
4943
4943
|
}
|
|
4944
|
-
}),
|
|
4944
|
+
}), li = {
|
|
4945
4945
|
name: "MozPopup",
|
|
4946
|
-
core:
|
|
4946
|
+
core: Sl,
|
|
4947
4947
|
props: [
|
|
4948
4948
|
"title",
|
|
4949
4949
|
"minWidth",
|
|
@@ -5009,7 +5009,7 @@ const yl = () => {
|
|
|
5009
5009
|
// (Popover·Collapsible 도 같은 이유로 켜져 있다).
|
|
5010
5010
|
syncUpdate: !0
|
|
5011
5011
|
};
|
|
5012
|
-
function
|
|
5012
|
+
function Vt(e, t = 12) {
|
|
5013
5013
|
return {
|
|
5014
5014
|
10: { width: 10, height: 10 },
|
|
5015
5015
|
12: { width: 12, height: 12 },
|
|
@@ -5021,8 +5021,8 @@ function At(e, t = 12) {
|
|
|
5021
5021
|
30: { width: 30, height: 30 }
|
|
5022
5022
|
}[e] ?? { width: t, height: t };
|
|
5023
5023
|
}
|
|
5024
|
-
function
|
|
5025
|
-
const n =
|
|
5024
|
+
function Wt(e = "12", t = "var(--moz-color-text-subtle)", o = !1, l = "") {
|
|
5025
|
+
const n = Vt(e), i = o ? "var(--moz-color-text-muted)" : t;
|
|
5026
5026
|
return a`<svg class=${l || w} xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 16 16">
|
|
5027
5027
|
<g style=${`fill: ${i}`}>
|
|
5028
5028
|
<path
|
|
@@ -5038,8 +5038,8 @@ function Kt(e = "12", t = "var(--moz-color-text-subtle)", o = !1, l = "") {
|
|
|
5038
5038
|
</g>
|
|
5039
5039
|
</svg>`;
|
|
5040
5040
|
}
|
|
5041
|
-
function
|
|
5042
|
-
const l =
|
|
5041
|
+
function Kt(e = "14", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
5042
|
+
const l = Vt(e, 14);
|
|
5043
5043
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 14 14" fill="none">
|
|
5044
5044
|
<path
|
|
5045
5045
|
fill-rule="evenodd"
|
|
@@ -5049,8 +5049,8 @@ function Gt(e = "14", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
|
5049
5049
|
></path>
|
|
5050
5050
|
</svg>`;
|
|
5051
5051
|
}
|
|
5052
|
-
function
|
|
5053
|
-
const l =
|
|
5052
|
+
function Gt(e = "14", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
5053
|
+
const l = Vt(e, 14);
|
|
5054
5054
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 14 14" fill="none">
|
|
5055
5055
|
<path
|
|
5056
5056
|
fill-rule="evenodd"
|
|
@@ -5060,8 +5060,8 @@ function Yt(e = "14", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
|
5060
5060
|
></path>
|
|
5061
5061
|
</svg>`;
|
|
5062
5062
|
}
|
|
5063
|
-
function
|
|
5064
|
-
const l =
|
|
5063
|
+
function Yt(e = "12", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
5064
|
+
const l = Vt(e), n = o ? "var(--moz-color-text-muted)" : t;
|
|
5065
5065
|
return l.width <= 13 ? a`<svg xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 12 12" fill="none">
|
|
5066
5066
|
<path
|
|
5067
5067
|
d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
|
|
@@ -5074,7 +5074,7 @@ function Zt(e = "12", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
|
5074
5074
|
></path>
|
|
5075
5075
|
</svg>`;
|
|
5076
5076
|
}
|
|
5077
|
-
const
|
|
5077
|
+
const to = 250, mt = 24, kl = /* @__PURE__ */ new Set([
|
|
5078
5078
|
"itemsSource",
|
|
5079
5079
|
"label",
|
|
5080
5080
|
"width",
|
|
@@ -5095,16 +5095,16 @@ const oo = 250, ht = 24, El = /* @__PURE__ */ new Set([
|
|
|
5095
5095
|
"class",
|
|
5096
5096
|
"style"
|
|
5097
5097
|
]);
|
|
5098
|
-
function
|
|
5098
|
+
function El(e, t) {
|
|
5099
5099
|
let o;
|
|
5100
5100
|
return (...l) => {
|
|
5101
5101
|
o && clearTimeout(o), o = setTimeout(() => e(...l), t);
|
|
5102
5102
|
};
|
|
5103
5103
|
}
|
|
5104
|
-
function
|
|
5104
|
+
function xl(e) {
|
|
5105
5105
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5106
5106
|
}
|
|
5107
|
-
const
|
|
5107
|
+
const Ll = be({
|
|
5108
5108
|
name: "moz-select",
|
|
5109
5109
|
defaults: {
|
|
5110
5110
|
label: null,
|
|
@@ -5129,15 +5129,15 @@ const Pl = be({
|
|
|
5129
5129
|
let p = !1, u = "";
|
|
5130
5130
|
const v = tt("moz-select-listbox-"), $ = { change: "", blur: "", save: "" };
|
|
5131
5131
|
let I = m();
|
|
5132
|
-
const S = () => e.props.keyProp || "id", y = new
|
|
5132
|
+
const S = () => e.props.keyProp || "id", y = new Et({
|
|
5133
5133
|
count: 0,
|
|
5134
5134
|
getScrollElement: () => d,
|
|
5135
|
-
estimateSize: () =>
|
|
5135
|
+
estimateSize: () => mt,
|
|
5136
5136
|
measureElement: (c) => c.getBoundingClientRect().height,
|
|
5137
5137
|
overscan: 5,
|
|
5138
|
-
observeElementRect:
|
|
5139
|
-
observeElementOffset:
|
|
5140
|
-
scrollToFn:
|
|
5138
|
+
observeElementRect: Pt,
|
|
5139
|
+
observeElementOffset: Lt,
|
|
5140
|
+
scrollToFn: xt,
|
|
5141
5141
|
onChange: () => e.requestUpdate()
|
|
5142
5142
|
});
|
|
5143
5143
|
e.onCleanup(() => {
|
|
@@ -5156,7 +5156,7 @@ const Pl = be({
|
|
|
5156
5156
|
return (e.props.itemsSource ?? []).filter((P) => z(P).toLowerCase().indexOf(c) > -1);
|
|
5157
5157
|
}, te = (c) => {
|
|
5158
5158
|
if (!u) return [{ part: c, highlight: !1 }];
|
|
5159
|
-
const P =
|
|
5159
|
+
const P = xl(u), Z = new RegExp(`(${P})`, "gi");
|
|
5160
5160
|
return c.split(Z).map((ae) => ({
|
|
5161
5161
|
part: ae,
|
|
5162
5162
|
highlight: u.toLowerCase() === ae.toLowerCase()
|
|
@@ -5187,10 +5187,10 @@ const Pl = be({
|
|
|
5187
5187
|
var c;
|
|
5188
5188
|
return (c = e.validator) == null ? void 0 : c.removeValidator(G);
|
|
5189
5189
|
}));
|
|
5190
|
-
const se = new
|
|
5190
|
+
const se = new zt({
|
|
5191
5191
|
anchor: () => o.value ?? null,
|
|
5192
5192
|
panel: () => l.value ?? null,
|
|
5193
|
-
maxHeight: () =>
|
|
5193
|
+
maxHeight: () => to,
|
|
5194
5194
|
container: () => t.value ?? null,
|
|
5195
5195
|
useMinWidth: !0,
|
|
5196
5196
|
listWidth: () => e.props.listWidth,
|
|
@@ -5203,12 +5203,12 @@ const Pl = be({
|
|
|
5203
5203
|
const ie = (c) => {
|
|
5204
5204
|
`${c.ctrlKey ? "ctrl+" : ""}${c.altKey ? "alt+" : ""}${c.key.toLowerCase()}` === "escape" && x(!1);
|
|
5205
5205
|
}, Q = (c) => {
|
|
5206
|
-
const Z =
|
|
5207
|
-
return Math.max(0, Z +
|
|
5206
|
+
const Z = mt * c - to / 2;
|
|
5207
|
+
return Math.max(0, Z + mt);
|
|
5208
5208
|
};
|
|
5209
5209
|
let U = null;
|
|
5210
5210
|
const x = (c) => {
|
|
5211
|
-
p !== c && (p = c, e.requestUpdate(), c ? (U =
|
|
5211
|
+
p !== c && (p = c, e.requestUpdate(), c ? (U = Mt(), se.open(), $.save = "", window.addEventListener("keydown", ie), queueMicrotask(() => {
|
|
5212
5212
|
var Z;
|
|
5213
5213
|
const P = m();
|
|
5214
5214
|
if (P && d) {
|
|
@@ -5226,7 +5226,7 @@ const Pl = be({
|
|
|
5226
5226
|
}, _ = (c) => {
|
|
5227
5227
|
var P;
|
|
5228
5228
|
r(c), x(!1), (P = i.value) == null || P.focus();
|
|
5229
|
-
}, k =
|
|
5229
|
+
}, k = El((c) => {
|
|
5230
5230
|
u = c.target.value, e.requestUpdate(), queueMicrotask(() => {
|
|
5231
5231
|
const P = W().length;
|
|
5232
5232
|
y.setOptions({ ...y.options, count: P }), y.measure(), d && (d.scrollTop = 0, y.scrollToIndex(0), y.measure());
|
|
@@ -5324,7 +5324,7 @@ const Pl = be({
|
|
|
5324
5324
|
);
|
|
5325
5325
|
});
|
|
5326
5326
|
}
|
|
5327
|
-
const Z = typeof c.width == "number" ? `${ze(c.width)}rem` : c.width, ae = we(c,
|
|
5327
|
+
const Z = typeof c.width == "number" ? `${ze(c.width)}rem` : c.width, ae = we(c, kl), { aria: ue, dom: Ee } = dt(ae), $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
|
|
5328
5328
|
type="button"
|
|
5329
5329
|
class="icon-container"
|
|
5330
5330
|
${pe(ue)}
|
|
@@ -5400,10 +5400,10 @@ const Pl = be({
|
|
|
5400
5400
|
if (!p) return w;
|
|
5401
5401
|
const c = e.props, P = m(), Z = S(), ae = W();
|
|
5402
5402
|
y.options.count !== ae.length && y.setOptions({ ...y.options, count: ae.length }), y._willUpdate();
|
|
5403
|
-
const ue =
|
|
5403
|
+
const ue = Tt(
|
|
5404
5404
|
y.getVirtualItems(),
|
|
5405
5405
|
ae.length,
|
|
5406
|
-
|
|
5406
|
+
mt,
|
|
5407
5407
|
d
|
|
5408
5408
|
), Ee = y.getTotalSize(), $e = ue.map((C) => {
|
|
5409
5409
|
if (C.index >= ae.length) return null;
|
|
@@ -5423,7 +5423,7 @@ const Pl = be({
|
|
|
5423
5423
|
@input=${k}
|
|
5424
5424
|
class="filter-input__field"
|
|
5425
5425
|
/>
|
|
5426
|
-
<div class="search-icon">${
|
|
5426
|
+
<div class="search-icon">${Yt("12", "var(--moz-color-text-subtle)")}</div>
|
|
5427
5427
|
</div>` : w}
|
|
5428
5428
|
<div
|
|
5429
5429
|
id=${v}
|
|
@@ -5457,7 +5457,7 @@ const Pl = be({
|
|
|
5457
5457
|
(Le) => a`<span class=${V({ highlight: Le.highlight })}>${Le.part}</span>`
|
|
5458
5458
|
)}
|
|
5459
5459
|
</div>`}
|
|
5460
|
-
${xe ?
|
|
5460
|
+
${xe ? Wt("12", "var(--moz-color-accent)", !1, "icon-check") : w}
|
|
5461
5461
|
</div>`;
|
|
5462
5462
|
})}
|
|
5463
5463
|
</div>
|
|
@@ -5470,9 +5470,9 @@ const Pl = be({
|
|
|
5470
5470
|
}
|
|
5471
5471
|
};
|
|
5472
5472
|
}
|
|
5473
|
-
}),
|
|
5473
|
+
}), ni = {
|
|
5474
5474
|
name: "MozSelect",
|
|
5475
|
-
core:
|
|
5475
|
+
core: Ll,
|
|
5476
5476
|
props: [
|
|
5477
5477
|
"itemsSource",
|
|
5478
5478
|
"label",
|
|
@@ -5496,7 +5496,7 @@ const Pl = be({
|
|
|
5496
5496
|
slots: ["input-container", "input", "icon", "list-item", "empty"],
|
|
5497
5497
|
expose: !0
|
|
5498
5498
|
};
|
|
5499
|
-
function
|
|
5499
|
+
function Zt(e, t = 12) {
|
|
5500
5500
|
return {
|
|
5501
5501
|
10: { width: 10, height: 10 },
|
|
5502
5502
|
12: { width: 12, height: 12 },
|
|
@@ -5508,8 +5508,8 @@ function jt(e, t = 12) {
|
|
|
5508
5508
|
30: { width: 30, height: 30 }
|
|
5509
5509
|
}[e] ?? { width: t, height: t };
|
|
5510
5510
|
}
|
|
5511
|
-
function
|
|
5512
|
-
const l =
|
|
5511
|
+
function Pl(e = "14", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
5512
|
+
const l = Zt(e, 14);
|
|
5513
5513
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 14 14" fill="none">
|
|
5514
5514
|
<path
|
|
5515
5515
|
fill-rule="evenodd"
|
|
@@ -5519,8 +5519,8 @@ function Tl(e = "14", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
|
5519
5519
|
></path>
|
|
5520
5520
|
</svg>`;
|
|
5521
5521
|
}
|
|
5522
|
-
function
|
|
5523
|
-
const l =
|
|
5522
|
+
function Tl(e = "14", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
5523
|
+
const l = Zt(e, 14);
|
|
5524
5524
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 14 14" fill="none">
|
|
5525
5525
|
<path
|
|
5526
5526
|
fill-rule="evenodd"
|
|
@@ -5530,8 +5530,8 @@ function zl(e = "14", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
|
5530
5530
|
></path>
|
|
5531
5531
|
</svg>`;
|
|
5532
5532
|
}
|
|
5533
|
-
function
|
|
5534
|
-
const l =
|
|
5533
|
+
function zl(e = "12", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
5534
|
+
const l = Zt(e), n = o ? "var(--moz-color-text-muted)" : t;
|
|
5535
5535
|
return l.width <= 13 ? a`<svg xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 12 12" fill="none">
|
|
5536
5536
|
<path
|
|
5537
5537
|
d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
|
|
@@ -5544,7 +5544,7 @@ function Ml(e = "12", t = "var(--moz-color-text-subtle)", o = !1) {
|
|
|
5544
5544
|
></path>
|
|
5545
5545
|
</svg>`;
|
|
5546
5546
|
}
|
|
5547
|
-
const
|
|
5547
|
+
const Ml = /* @__PURE__ */ new Set([
|
|
5548
5548
|
"itemsSource",
|
|
5549
5549
|
"inline",
|
|
5550
5550
|
"filterMode",
|
|
@@ -5575,10 +5575,10 @@ const Vl = /* @__PURE__ */ new Set([
|
|
|
5575
5575
|
"style",
|
|
5576
5576
|
"dropdown-item-height"
|
|
5577
5577
|
]);
|
|
5578
|
-
function
|
|
5578
|
+
function Vl(e) {
|
|
5579
5579
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5580
5580
|
}
|
|
5581
|
-
const
|
|
5581
|
+
const Al = be({
|
|
5582
5582
|
name: "moz-multi-select",
|
|
5583
5583
|
defaults: {
|
|
5584
5584
|
inline: !1,
|
|
@@ -5628,14 +5628,14 @@ const Dl = be({
|
|
|
5628
5628
|
} catch {
|
|
5629
5629
|
return 24;
|
|
5630
5630
|
}
|
|
5631
|
-
})(), W = new
|
|
5631
|
+
})(), W = new Et({
|
|
5632
5632
|
count: 0,
|
|
5633
5633
|
getScrollElement: () => h,
|
|
5634
5634
|
estimateSize: () => X,
|
|
5635
5635
|
overscan: 5,
|
|
5636
|
-
observeElementRect:
|
|
5637
|
-
observeElementOffset:
|
|
5638
|
-
scrollToFn:
|
|
5636
|
+
observeElementRect: Pt,
|
|
5637
|
+
observeElementOffset: Lt,
|
|
5638
|
+
scrollToFn: xt,
|
|
5639
5639
|
onChange: () => e.requestUpdate()
|
|
5640
5640
|
});
|
|
5641
5641
|
e.onCleanup(() => {
|
|
@@ -5652,7 +5652,7 @@ const Dl = be({
|
|
|
5652
5652
|
return (e.props.itemsSource ?? []).filter((O) => re(O).toLowerCase().indexOf(g) > -1);
|
|
5653
5653
|
}, D = (g) => {
|
|
5654
5654
|
if (!$) return [{ part: g, highlight: !1 }];
|
|
5655
|
-
const O =
|
|
5655
|
+
const O = Vl($), R = new RegExp(`(${O})`, "gi");
|
|
5656
5656
|
return g.split(R).map((J) => ({ part: J, highlight: $.toLowerCase() === J.toLowerCase() }));
|
|
5657
5657
|
}, G = (g) => new Set(r()).has(g[d()]), se = (g) => q.some((O) => it(O.item, g)), ie = () => {
|
|
5658
5658
|
const g = r(), O = K();
|
|
@@ -5794,7 +5794,7 @@ const Dl = be({
|
|
|
5794
5794
|
if (u === g) return;
|
|
5795
5795
|
const O = u;
|
|
5796
5796
|
if (u = g, e.requestUpdate(), g)
|
|
5797
|
-
C =
|
|
5797
|
+
C = Mt(), document.body.addEventListener("scroll", ue, { capture: !0 }), document.addEventListener("click", Ee, { capture: !0 }), E.save = "", window.addEventListener("keydown", $e), ae(), queueMicrotask(() => {
|
|
5798
5798
|
var R;
|
|
5799
5799
|
o.value && h && (S = Z(o.value, h)), ae(), W.measure(), h && (h.scrollTop = 0), i.value ? i.value.focus() : (R = n.value) == null || R.focus();
|
|
5800
5800
|
});
|
|
@@ -5866,7 +5866,7 @@ const Dl = be({
|
|
|
5866
5866
|
}, Ze = () => {
|
|
5867
5867
|
const g = e.props, O = d(), R = g.loading ? [] : K();
|
|
5868
5868
|
W.options.count !== R.length && W.setOptions({ ...W.options, count: R.length }), W._willUpdate();
|
|
5869
|
-
const J = new Set(r()), le =
|
|
5869
|
+
const J = new Set(r()), le = Tt(
|
|
5870
5870
|
W.getVirtualItems(),
|
|
5871
5871
|
R.length,
|
|
5872
5872
|
X,
|
|
@@ -5899,7 +5899,7 @@ const Dl = be({
|
|
|
5899
5899
|
@input=${Ie}
|
|
5900
5900
|
${ne(i)}
|
|
5901
5901
|
/>
|
|
5902
|
-
<div class="search-icon">${
|
|
5902
|
+
<div class="search-icon">${zl("12", "var(--moz-color-text-subtle)")}</div>
|
|
5903
5903
|
</div>` : w}
|
|
5904
5904
|
${g.useSelectAll && (g.itemsSource ?? []).length > 0 && R.length > 0 ? a`<div
|
|
5905
5905
|
class=${V("list-box-item multi-select-item multi-select-all", { "is-scrolled": I })}
|
|
@@ -5938,10 +5938,10 @@ const Dl = be({
|
|
|
5938
5938
|
${ne(te)}
|
|
5939
5939
|
>
|
|
5940
5940
|
<div class="inner-container" style=${oe({ height: `${me}px` })}>
|
|
5941
|
-
${le.map(({ index: Se, value: Ve, start: Ke, size: Je, isSelected: rt, isDisabled: st, isFocused:
|
|
5941
|
+
${le.map(({ index: Se, value: Ve, start: Ke, size: Je, isSelected: rt, isDisabled: st, isFocused: At }) => a`<div
|
|
5942
5942
|
class=${V("list-box-item multi-select-item virtual-row", {
|
|
5943
5943
|
"list-selected": rt,
|
|
5944
|
-
"moz-multi-focus":
|
|
5944
|
+
"moz-multi-focus": At
|
|
5945
5945
|
})}
|
|
5946
5946
|
style=${oe({ height: `${Je}px`, transform: `translateY(${Ke}px)` })}
|
|
5947
5947
|
role="option"
|
|
@@ -5984,12 +5984,12 @@ const Dl = be({
|
|
|
5984
5984
|
const ge = z, Se = g.itemsSource;
|
|
5985
5985
|
z = g.itemsSource, queueMicrotask(() => Qe(Se ?? [], ge ?? []));
|
|
5986
5986
|
}
|
|
5987
|
-
const O = typeof g.width == "number" ? `${ze(g.width)}rem` : g.width, R = we(g,
|
|
5987
|
+
const O = typeof g.width == "number" ? `${ze(g.width)}rem` : g.width, R = we(g, Ml), { aria: J, dom: le } = dt(R);
|
|
5988
5988
|
if (g.inline)
|
|
5989
5989
|
return a`<div class="moz-multi-select moz-multi-select-inline"
|
|
5990
5990
|
style=${oe({ width: O, ...ke(g.style) })}
|
|
5991
5991
|
${ne(t)}>${Ze()}</div>`;
|
|
5992
|
-
const me = e.slots.has("icon") ? e.slot("icon", { isOpen: u }) : u ?
|
|
5992
|
+
const me = e.slots.has("icon") ? e.slot("icon", { isOpen: u }) : u ? Tl("14", "var(--moz-color-accent)") : Pl("14", g.disabled ? "var(--moz-color-text-muted)" : "var(--moz-color-text-subtle)");
|
|
5993
5993
|
return a`
|
|
5994
5994
|
<div
|
|
5995
5995
|
class=${V("moz-multi-select", {
|
|
@@ -6040,9 +6040,9 @@ const Dl = be({
|
|
|
6040
6040
|
}
|
|
6041
6041
|
};
|
|
6042
6042
|
}
|
|
6043
|
-
}),
|
|
6043
|
+
}), ri = {
|
|
6044
6044
|
name: "MozMultiSelect",
|
|
6045
|
-
core:
|
|
6045
|
+
core: Al,
|
|
6046
6046
|
props: [
|
|
6047
6047
|
"itemsSource",
|
|
6048
6048
|
"inline",
|
|
@@ -6075,7 +6075,7 @@ const Dl = be({
|
|
|
6075
6075
|
slots: ["icon", "list-item", "empty"],
|
|
6076
6076
|
expose: !0
|
|
6077
6077
|
};
|
|
6078
|
-
function
|
|
6078
|
+
function Io(e, t = 14) {
|
|
6079
6079
|
return {
|
|
6080
6080
|
10: { width: 10, height: 10 },
|
|
6081
6081
|
12: { width: 12, height: 12 },
|
|
@@ -6087,8 +6087,8 @@ function Fo(e, t = 14) {
|
|
|
6087
6087
|
30: { width: 30, height: 30 }
|
|
6088
6088
|
}[e] ?? { width: t, height: t };
|
|
6089
6089
|
}
|
|
6090
|
-
function
|
|
6091
|
-
const o =
|
|
6090
|
+
function Dl(e = "14", t = "var(--moz-color-text-subtle)") {
|
|
6091
|
+
const o = Io(e, 14);
|
|
6092
6092
|
return a`<svg width=${o.width} height=${o.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6093
6093
|
<g clip-path="url(#clip0_4513_575)">
|
|
6094
6094
|
<path
|
|
@@ -6105,8 +6105,8 @@ function ql(e = "14", t = "var(--moz-color-text-subtle)") {
|
|
|
6105
6105
|
</defs>
|
|
6106
6106
|
</svg>`;
|
|
6107
6107
|
}
|
|
6108
|
-
function
|
|
6109
|
-
const n =
|
|
6108
|
+
function oo(e = "12", t = "var(--moz-color-text-subtle)", o = !1, l = "") {
|
|
6109
|
+
const n = Io(e, 12), i = o ? "var(--moz-color-text-muted)" : t;
|
|
6110
6110
|
return a`<svg class=${l || w} xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 16 16">
|
|
6111
6111
|
<g style=${`fill: ${i}`}>
|
|
6112
6112
|
<path
|
|
@@ -6122,7 +6122,7 @@ function so(e = "12", t = "var(--moz-color-text-subtle)", o = !1, l = "") {
|
|
|
6122
6122
|
</g>
|
|
6123
6123
|
</svg>`;
|
|
6124
6124
|
}
|
|
6125
|
-
const
|
|
6125
|
+
const ql = /* @__PURE__ */ new Set([
|
|
6126
6126
|
"width",
|
|
6127
6127
|
"modelValue",
|
|
6128
6128
|
"label",
|
|
@@ -6133,7 +6133,7 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6133
6133
|
"required",
|
|
6134
6134
|
"class",
|
|
6135
6135
|
"style"
|
|
6136
|
-
]),
|
|
6136
|
+
]), Il = Array.from({ length: 24 }, (e, t) => t), Fl = Array.from({ length: 60 }, (e, t) => t), Rl = be({
|
|
6137
6137
|
name: "moz-time-picker",
|
|
6138
6138
|
defaults: { width: "160px", modelValue: "09:00", label: "", disabled: !1, required: !1 },
|
|
6139
6139
|
setup(e) {
|
|
@@ -6147,7 +6147,7 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6147
6147
|
};
|
|
6148
6148
|
u(e.props.modelValue);
|
|
6149
6149
|
let v = e.props.modelValue, $ = r;
|
|
6150
|
-
const I = new
|
|
6150
|
+
const I = new zt({
|
|
6151
6151
|
anchor: () => o.value ?? null,
|
|
6152
6152
|
panel: () => n.value ?? null,
|
|
6153
6153
|
maxHeight: () => 210,
|
|
@@ -6234,7 +6234,7 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6234
6234
|
!isNaN(x) && !isNaN(M) && x >= 0 && x <= 23 && M >= 0 && M <= 59 && U !== D.modelValue && (s = x, m = M, queueMicrotask(() => e.emit("update:modelValue", U)));
|
|
6235
6235
|
}
|
|
6236
6236
|
}
|
|
6237
|
-
const G = D.disabled ? "var(--moz-color-text-muted)" : d ? "var(--moz-color-accent)" : "var(--moz-color-text-subtle)", se = we(D,
|
|
6237
|
+
const G = D.disabled ? "var(--moz-color-text-muted)" : d ? "var(--moz-color-accent)" : "var(--moz-color-text-subtle)", se = we(D, ql), ie = "__:__", Q = [];
|
|
6238
6238
|
for (let U = 0; U < ie.length; U++)
|
|
6239
6239
|
U < r.length ? Q.push({ char: r[U], isInput: !0 }) : Q.push({ char: ie[U], isInput: !1 });
|
|
6240
6240
|
return a`
|
|
@@ -6283,7 +6283,7 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6283
6283
|
</div>
|
|
6284
6284
|
</div>
|
|
6285
6285
|
<div class="icon-container">
|
|
6286
|
-
<span @click=${() => y(!0)}>${
|
|
6286
|
+
<span @click=${() => y(!0)}>${Dl("14", G)}</span>
|
|
6287
6287
|
</div>
|
|
6288
6288
|
</div>
|
|
6289
6289
|
</div>
|
|
@@ -6298,10 +6298,10 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6298
6298
|
<div class="time-label">${D.hourLabel ?? e.locale.TimePicker.hour}</div>
|
|
6299
6299
|
<div class="time-list">
|
|
6300
6300
|
<div class="time-option-wrapper" ${ne(i)}>
|
|
6301
|
-
${
|
|
6301
|
+
${Il.map(
|
|
6302
6302
|
(G) => a`<div @click=${() => E(G)} class="time-option">
|
|
6303
6303
|
<div class="time-option-text">${G.toString().padStart(2, "0")}</div>
|
|
6304
|
-
${s === G ?
|
|
6304
|
+
${s === G ? oo("12", "var(--moz-color-accent)", !1, "check-icon") : w}
|
|
6305
6305
|
</div>`
|
|
6306
6306
|
)}
|
|
6307
6307
|
</div>
|
|
@@ -6311,10 +6311,10 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6311
6311
|
<div class="time-label">${D.minuteLabel ?? e.locale.TimePicker.minute}</div>
|
|
6312
6312
|
<div class="time-list">
|
|
6313
6313
|
<div class="time-option-wrapper" ${ne(h)}>
|
|
6314
|
-
${
|
|
6314
|
+
${Fl.map(
|
|
6315
6315
|
(G) => a`<div @click=${() => z(G)} class="time-option">
|
|
6316
6316
|
<div class="time-option-text">${G.toString().padStart(2, "0")}</div>
|
|
6317
|
-
${m === G ?
|
|
6317
|
+
${m === G ? oo("12", "var(--moz-color-accent)", !1, "check-icon") : w}
|
|
6318
6318
|
</div>`
|
|
6319
6319
|
)}
|
|
6320
6320
|
</div>
|
|
@@ -6328,15 +6328,15 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6328
6328
|
}
|
|
6329
6329
|
};
|
|
6330
6330
|
}
|
|
6331
|
-
}),
|
|
6331
|
+
}), ii = {
|
|
6332
6332
|
name: "MozTimePicker",
|
|
6333
|
-
core:
|
|
6333
|
+
core: Rl,
|
|
6334
6334
|
props: ["width", "modelValue", "label", "disabled", "hourLabel", "minuteLabel", "currentTimeLabel", "required"],
|
|
6335
6335
|
emits: ["update:modelValue"],
|
|
6336
6336
|
slots: [],
|
|
6337
6337
|
expose: !1
|
|
6338
6338
|
};
|
|
6339
|
-
function
|
|
6339
|
+
function Bl(e, t = 12) {
|
|
6340
6340
|
return {
|
|
6341
6341
|
10: { width: 10, height: 10 },
|
|
6342
6342
|
12: { width: 12, height: 12 },
|
|
@@ -6348,13 +6348,13 @@ function Hl(e, t = 12) {
|
|
|
6348
6348
|
30: { width: 30, height: 30 }
|
|
6349
6349
|
}[e] ?? { width: t, height: t };
|
|
6350
6350
|
}
|
|
6351
|
-
function
|
|
6351
|
+
function Ut(e = "var(--moz-color-text-subtle)", t = "") {
|
|
6352
6352
|
return a`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6353
6353
|
<path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
6354
6354
|
</svg>`;
|
|
6355
6355
|
}
|
|
6356
|
-
function
|
|
6357
|
-
const n =
|
|
6356
|
+
function so(e = "12", t = "var(--moz-color-text-subtle)", o = !1, l = "") {
|
|
6357
|
+
const n = Bl(e, 12), i = o ? "var(--moz-color-text-muted)" : t;
|
|
6358
6358
|
return a`<svg class=${l} xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12">
|
|
6359
6359
|
<g transform="translate(-0.005)">
|
|
6360
6360
|
<path
|
|
@@ -6367,7 +6367,7 @@ function lo(e = "12", t = "var(--moz-color-text-subtle)", o = !1, l = "") {
|
|
|
6367
6367
|
</g>
|
|
6368
6368
|
</svg>`;
|
|
6369
6369
|
}
|
|
6370
|
-
const
|
|
6370
|
+
const Hl = /* @__PURE__ */ new Set([
|
|
6371
6371
|
"modelValue",
|
|
6372
6372
|
"itemsSource",
|
|
6373
6373
|
"label",
|
|
@@ -6382,13 +6382,13 @@ const Ol = /* @__PURE__ */ new Set([
|
|
|
6382
6382
|
"class",
|
|
6383
6383
|
"style"
|
|
6384
6384
|
]);
|
|
6385
|
-
function
|
|
6385
|
+
function Ol(e, t) {
|
|
6386
6386
|
let o;
|
|
6387
6387
|
return (...l) => {
|
|
6388
6388
|
o && clearTimeout(o), o = setTimeout(() => e(...l), t);
|
|
6389
6389
|
};
|
|
6390
6390
|
}
|
|
6391
|
-
const
|
|
6391
|
+
const Nl = be({
|
|
6392
6392
|
name: "moz-tag-input",
|
|
6393
6393
|
defaults: {
|
|
6394
6394
|
modelValue: [],
|
|
@@ -6485,7 +6485,7 @@ const Ul = be({
|
|
|
6485
6485
|
}
|
|
6486
6486
|
}, Q = (f) => {
|
|
6487
6487
|
r().dynamicSearch && r().requestRead && (s = !0, e.requestUpdate(), U(f.target.value));
|
|
6488
|
-
}, U =
|
|
6488
|
+
}, U = Ol((f) => {
|
|
6489
6489
|
r().requestRead && r().requestRead(f).then(() => {
|
|
6490
6490
|
s = !1, e.requestUpdate();
|
|
6491
6491
|
});
|
|
@@ -6554,7 +6554,7 @@ const Ul = be({
|
|
|
6554
6554
|
@keydown=${(j) => {
|
|
6555
6555
|
j.key !== "Enter" && j.key !== " " || (j.preventDefault(), G(f.idx));
|
|
6556
6556
|
}}
|
|
6557
|
-
>${
|
|
6557
|
+
>${so("10")}</span
|
|
6558
6558
|
>` : w}
|
|
6559
6559
|
<span
|
|
6560
6560
|
class="tag-input-button cursor-pointer"
|
|
@@ -6567,7 +6567,7 @@ const Ul = be({
|
|
|
6567
6567
|
@keydown=${(j) => {
|
|
6568
6568
|
j.key !== "Enter" && j.key !== " " || (j.preventDefault(), I(f.idx, !1), e.requestUpdate());
|
|
6569
6569
|
}}
|
|
6570
|
-
>${
|
|
6570
|
+
>${Ut()}</span
|
|
6571
6571
|
>
|
|
6572
6572
|
</div>
|
|
6573
6573
|
</div>
|
|
@@ -6583,7 +6583,7 @@ const Ul = be({
|
|
|
6583
6583
|
const j = v();
|
|
6584
6584
|
queueMicrotask(() => e.emit("update:modelValue", j));
|
|
6585
6585
|
}
|
|
6586
|
-
const Y = we(f,
|
|
6586
|
+
const Y = we(f, Hl);
|
|
6587
6587
|
return a`
|
|
6588
6588
|
<div class=${V("moz-tag-input-wrapper", f.class)} ${pe(Y)}>
|
|
6589
6589
|
${f.label ? a`<label class=${V("tag-input-label", { required: f.required })}>${f.label}</label>` : w}
|
|
@@ -6673,14 +6673,14 @@ const Ul = be({
|
|
|
6673
6673
|
@click=${(j) => {
|
|
6674
6674
|
j.stopPropagation(), G(Y);
|
|
6675
6675
|
}}
|
|
6676
|
-
>${
|
|
6676
|
+
>${so("10")}</span
|
|
6677
6677
|
>` : w}
|
|
6678
6678
|
${f.disableDelete ? w : a`<span
|
|
6679
6679
|
class="tag-input-button cursor-pointer"
|
|
6680
6680
|
@click=${(j) => {
|
|
6681
6681
|
j.stopPropagation(), y(Y), e.requestUpdate();
|
|
6682
6682
|
}}
|
|
6683
|
-
>${
|
|
6683
|
+
>${Ut()}</span
|
|
6684
6684
|
>`}
|
|
6685
6685
|
</div>
|
|
6686
6686
|
</span>`}
|
|
@@ -6694,9 +6694,9 @@ const Ul = be({
|
|
|
6694
6694
|
}
|
|
6695
6695
|
};
|
|
6696
6696
|
}
|
|
6697
|
-
}),
|
|
6697
|
+
}), ai = {
|
|
6698
6698
|
name: "MozTagInput",
|
|
6699
|
-
core:
|
|
6699
|
+
core: Nl,
|
|
6700
6700
|
props: [
|
|
6701
6701
|
"modelValue",
|
|
6702
6702
|
"required",
|
|
@@ -6720,7 +6720,7 @@ const Ul = be({
|
|
|
6720
6720
|
emits: ["update:modelValue", "modelChange", "onEnterEmpty"],
|
|
6721
6721
|
slots: ["left", "right"],
|
|
6722
6722
|
expose: !0
|
|
6723
|
-
},
|
|
6723
|
+
}, Ul = /* @__PURE__ */ new Set([
|
|
6724
6724
|
"itemSource",
|
|
6725
6725
|
"fixPosition",
|
|
6726
6726
|
"noPadding",
|
|
@@ -6728,13 +6728,13 @@ const Ul = be({
|
|
|
6728
6728
|
"class",
|
|
6729
6729
|
"style"
|
|
6730
6730
|
]);
|
|
6731
|
-
function
|
|
6731
|
+
function _l(e, t) {
|
|
6732
6732
|
let o;
|
|
6733
6733
|
return (...l) => {
|
|
6734
6734
|
o && clearTimeout(o), o = setTimeout(() => e(...l), t);
|
|
6735
6735
|
};
|
|
6736
6736
|
}
|
|
6737
|
-
const
|
|
6737
|
+
const Wl = 500, Kl = be({
|
|
6738
6738
|
name: "moz-context-menu",
|
|
6739
6739
|
defaults: { transition: "fade", minWidth: "150px", direction: "rb" },
|
|
6740
6740
|
setup(e) {
|
|
@@ -6784,7 +6784,7 @@ const Kl = 500, Gl = be({
|
|
|
6784
6784
|
});
|
|
6785
6785
|
const K = (x) => {
|
|
6786
6786
|
let M = S.get(x);
|
|
6787
|
-
return M || (M =
|
|
6787
|
+
return M || (M = _l((_, k, T) => {
|
|
6788
6788
|
k.children && (D(T, k), v.set(T, _), e.requestUpdate());
|
|
6789
6789
|
}, 400), S.set(x, M)), M;
|
|
6790
6790
|
}, D = (x, M) => {
|
|
@@ -6851,7 +6851,7 @@ const Kl = 500, Gl = be({
|
|
|
6851
6851
|
class=${V("context-menu-content-wrapper", T ? e.props.class : void 0)}
|
|
6852
6852
|
data-noPadding=${String(!!e.props.noPadding)}
|
|
6853
6853
|
style=${oe({ minWidth: e.props.minWidth })}
|
|
6854
|
-
${pe(T ? we(e.props,
|
|
6854
|
+
${pe(T ? we(e.props, Ul) : {})}
|
|
6855
6855
|
>
|
|
6856
6856
|
${x.map((A, B) => {
|
|
6857
6857
|
const f = `${k}/${M}-${B}`;
|
|
@@ -6903,7 +6903,7 @@ const Kl = 500, Gl = be({
|
|
|
6903
6903
|
"context-menu-content-init-bottom-right": p && m || k === "lt" || k.startsWith("l") && p || k.endsWith("t") && m
|
|
6904
6904
|
})}
|
|
6905
6905
|
style=${oe({
|
|
6906
|
-
transitionDuration: `${
|
|
6906
|
+
transitionDuration: `${Wl}ms`,
|
|
6907
6907
|
...x.toTopCenter ? { transform: "translate(-50%, -100%)" } : {},
|
|
6908
6908
|
...x.toBottomCenter ? { transform: "translate(-50%, 0)" } : {}
|
|
6909
6909
|
})}
|
|
@@ -6918,9 +6918,9 @@ const Kl = 500, Gl = be({
|
|
|
6918
6918
|
}
|
|
6919
6919
|
};
|
|
6920
6920
|
}
|
|
6921
|
-
}),
|
|
6921
|
+
}), ci = {
|
|
6922
6922
|
name: "MozContextMenu",
|
|
6923
|
-
core:
|
|
6923
|
+
core: Kl,
|
|
6924
6924
|
props: [
|
|
6925
6925
|
"itemSource",
|
|
6926
6926
|
"beforeClose",
|
|
@@ -6936,7 +6936,7 @@ const Kl = 500, Gl = be({
|
|
|
6936
6936
|
emits: ["open", "close"],
|
|
6937
6937
|
slots: [],
|
|
6938
6938
|
expose: !0
|
|
6939
|
-
},
|
|
6939
|
+
}, ht = 32, lo = 300, Gl = 29, Yl = 32, no = 120, Zl = 34, jl = 12, ro = 30, Xl = /* @__PURE__ */ new Set([
|
|
6940
6940
|
"itemsSource",
|
|
6941
6941
|
"label",
|
|
6942
6942
|
"width",
|
|
@@ -6959,16 +6959,16 @@ const Kl = 500, Gl = be({
|
|
|
6959
6959
|
"class",
|
|
6960
6960
|
"style"
|
|
6961
6961
|
]);
|
|
6962
|
-
function
|
|
6962
|
+
function Ql(e, t) {
|
|
6963
6963
|
let o;
|
|
6964
6964
|
return (...l) => {
|
|
6965
6965
|
o && clearTimeout(o), o = setTimeout(() => e(...l), t);
|
|
6966
6966
|
};
|
|
6967
6967
|
}
|
|
6968
|
-
function
|
|
6968
|
+
function Jl(e) {
|
|
6969
6969
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
6970
6970
|
}
|
|
6971
|
-
const
|
|
6971
|
+
const en = be({
|
|
6972
6972
|
name: "moz-table-select",
|
|
6973
6973
|
defaults: {
|
|
6974
6974
|
label: null,
|
|
@@ -6993,15 +6993,15 @@ const tn = be({
|
|
|
6993
6993
|
let p = !1, u = "", v = -1;
|
|
6994
6994
|
const $ = { change: "", blur: "", save: "" };
|
|
6995
6995
|
let I = m();
|
|
6996
|
-
const S = () => e.props.keyProp || "id", y = () => e.props.displayProps ?? ["text"], q = new
|
|
6996
|
+
const S = () => e.props.keyProp || "id", y = () => e.props.displayProps ?? ["text"], q = new Et({
|
|
6997
6997
|
count: 0,
|
|
6998
6998
|
getScrollElement: () => d,
|
|
6999
|
-
estimateSize: () =>
|
|
6999
|
+
estimateSize: () => ht,
|
|
7000
7000
|
measureElement: (c) => c.getBoundingClientRect().height,
|
|
7001
7001
|
overscan: 5,
|
|
7002
|
-
observeElementRect:
|
|
7003
|
-
observeElementOffset:
|
|
7004
|
-
scrollToFn:
|
|
7002
|
+
observeElementRect: Pt,
|
|
7003
|
+
observeElementOffset: Lt,
|
|
7004
|
+
scrollToFn: xt,
|
|
7005
7005
|
onChange: () => e.requestUpdate()
|
|
7006
7006
|
});
|
|
7007
7007
|
e.onCleanup(() => {
|
|
@@ -7018,14 +7018,14 @@ const tn = be({
|
|
|
7018
7018
|
const P = e.props.useObjKeyProp ? X() : W(c);
|
|
7019
7019
|
return P ? y().map((Z) => String(P[Z] ?? "")).join(e.props.separator) : null;
|
|
7020
7020
|
}, re = () => {
|
|
7021
|
-
const c = y(), P = e.props.columnWidths ?? [], Z = c.reduce((ue, Ee, $e) => ue + (P[$e] ??
|
|
7022
|
-
return Z + ae +
|
|
7021
|
+
const c = y(), P = e.props.columnWidths ?? [], Z = c.reduce((ue, Ee, $e) => ue + (P[$e] ?? no), 0), ae = Math.max(0, c.length - 1) * jl;
|
|
7022
|
+
return Z + ae + Zl + ro;
|
|
7023
7023
|
}, ee = () => {
|
|
7024
7024
|
const c = e.props.width;
|
|
7025
7025
|
return c != null ? typeof c == "number" ? `${ze(c)}rem` : c : `${re()}px`;
|
|
7026
7026
|
}, K = (c) => {
|
|
7027
|
-
const P = (e.props.columnWidths ?? [])[c] ??
|
|
7028
|
-
return `${P + (Z ?
|
|
7027
|
+
const P = (e.props.columnWidths ?? [])[c] ?? no, Z = c === y().length - 1;
|
|
7028
|
+
return `${P + (Z ? ro : 0)}px`;
|
|
7029
7029
|
}, D = () => {
|
|
7030
7030
|
if (!u) return e.props.itemsSource ?? [];
|
|
7031
7031
|
const c = u.toLowerCase();
|
|
@@ -7034,7 +7034,7 @@ const tn = be({
|
|
|
7034
7034
|
);
|
|
7035
7035
|
}, G = (c) => {
|
|
7036
7036
|
if (!u) return [{ part: c, highlight: !1 }];
|
|
7037
|
-
const P =
|
|
7037
|
+
const P = Jl(u), Z = new RegExp(`(${P})`, "gi");
|
|
7038
7038
|
return c.split(Z).map((ae) => ({ part: ae, highlight: u.toLowerCase() === ae.toLowerCase() }));
|
|
7039
7039
|
}, se = () => {
|
|
7040
7040
|
const c = m();
|
|
@@ -7065,10 +7065,10 @@ const tn = be({
|
|
|
7065
7065
|
var c;
|
|
7066
7066
|
return (c = e.validator) == null ? void 0 : c.removeValidator(M);
|
|
7067
7067
|
}));
|
|
7068
|
-
const _ = new
|
|
7068
|
+
const _ = new zt({
|
|
7069
7069
|
anchor: () => o.value ?? null,
|
|
7070
7070
|
panel: () => l.value ?? null,
|
|
7071
|
-
maxHeight: () =>
|
|
7071
|
+
maxHeight: () => lo,
|
|
7072
7072
|
container: () => t.value ?? null,
|
|
7073
7073
|
useMinWidth: !0,
|
|
7074
7074
|
listWidth: () => e.props.listWidth,
|
|
@@ -7081,12 +7081,12 @@ const tn = be({
|
|
|
7081
7081
|
const k = (c) => {
|
|
7082
7082
|
c.key === "Escape" && B(!1);
|
|
7083
7083
|
}, T = (c) => {
|
|
7084
|
-
const P = !!e.props.columnHeaders && e.props.columnHeaders.length > 0, Z =
|
|
7085
|
-
return Math.max(0, ue +
|
|
7084
|
+
const P = !!e.props.columnHeaders && e.props.columnHeaders.length > 0, Z = lo - (e.props.useFilter ? Gl : 0) - (P ? Yl : 0), ue = ht * c - Z / 2;
|
|
7085
|
+
return Math.max(0, ue + ht);
|
|
7086
7086
|
};
|
|
7087
7087
|
let A = null;
|
|
7088
7088
|
const B = (c) => {
|
|
7089
|
-
p !== c && (p = c, e.requestUpdate(), c ? (A =
|
|
7089
|
+
p !== c && (p = c, e.requestUpdate(), c ? (A = Mt(), _.open(), $.save = "", window.addEventListener("keydown", k), queueMicrotask(() => {
|
|
7090
7090
|
var Z;
|
|
7091
7091
|
if (m() != null) {
|
|
7092
7092
|
const ae = D().findIndex((ue) => z(ue));
|
|
@@ -7120,7 +7120,7 @@ const tn = be({
|
|
|
7120
7120
|
v >= 0 && v < P.length && H(P[v]);
|
|
7121
7121
|
}, _e = (c) => {
|
|
7122
7122
|
c.key === "ArrowDown" ? j(c) : c.key === "ArrowUp" ? Ce(c) : c.key === "Enter" && qe(c);
|
|
7123
|
-
}, He =
|
|
7123
|
+
}, He = Ql((c) => {
|
|
7124
7124
|
u = c.target.value;
|
|
7125
7125
|
const P = D().length;
|
|
7126
7126
|
v = P > 0 ? 0 : -1, e.requestUpdate(), queueMicrotask(() => {
|
|
@@ -7140,7 +7140,7 @@ const tn = be({
|
|
|
7140
7140
|
c.useObjKeyProp ? $e = X() : Ee != null && ($e = W(Ee)), e.emit("change", Ee, $e);
|
|
7141
7141
|
});
|
|
7142
7142
|
}
|
|
7143
|
-
const Z = we(c,
|
|
7143
|
+
const Z = we(c, Xl), { aria: ae, dom: ue } = dt(Z);
|
|
7144
7144
|
return a`
|
|
7145
7145
|
<div
|
|
7146
7146
|
class=${V("moz-table-select", {
|
|
@@ -7179,7 +7179,7 @@ const tn = be({
|
|
|
7179
7179
|
?disabled=${!!c.disabled}
|
|
7180
7180
|
${ne(i)}
|
|
7181
7181
|
>
|
|
7182
|
-
${p ?
|
|
7182
|
+
${p ? Gt("14", "var(--moz-color-accent)") : Kt("14", "var(--moz-color-text-subtle)", c.disabled)}
|
|
7183
7183
|
</button>
|
|
7184
7184
|
</div>
|
|
7185
7185
|
</div>
|
|
@@ -7191,10 +7191,10 @@ const tn = be({
|
|
|
7191
7191
|
if (!p) return w;
|
|
7192
7192
|
const c = e.props, P = y(), Z = D(), ae = !!c.columnHeaders && c.columnHeaders.length > 0;
|
|
7193
7193
|
q.options.count !== Z.length && q.setOptions({ ...q.options, count: Z.length }), q._willUpdate();
|
|
7194
|
-
const ue = q.getTotalSize(), Ee =
|
|
7194
|
+
const ue = q.getTotalSize(), Ee = Tt(
|
|
7195
7195
|
q.getVirtualItems(),
|
|
7196
7196
|
Z.length,
|
|
7197
|
-
|
|
7197
|
+
ht,
|
|
7198
7198
|
d
|
|
7199
7199
|
).map((C) => {
|
|
7200
7200
|
if (C.index >= Z.length) return null;
|
|
@@ -7208,7 +7208,7 @@ const tn = be({
|
|
|
7208
7208
|
${ne(l)}
|
|
7209
7209
|
>
|
|
7210
7210
|
${c.useFilter ? a`<div class="filter-input">
|
|
7211
|
-
<div class="search-icon">${
|
|
7211
|
+
<div class="search-icon">${Yt("12", "var(--moz-color-text-subtle)")}</div>
|
|
7212
7212
|
<input
|
|
7213
7213
|
${ne(h)}
|
|
7214
7214
|
@mousedown=${(C) => C.stopPropagation()}
|
|
@@ -7262,7 +7262,7 @@ const tn = be({
|
|
|
7262
7262
|
)}
|
|
7263
7263
|
</div>`
|
|
7264
7264
|
)}
|
|
7265
|
-
${xe ?
|
|
7265
|
+
${xe ? Wt("12", "var(--moz-color-accent)", !1, "icon-check") : w}
|
|
7266
7266
|
</div>`;
|
|
7267
7267
|
})}
|
|
7268
7268
|
</div>
|
|
@@ -7274,9 +7274,9 @@ const tn = be({
|
|
|
7274
7274
|
}
|
|
7275
7275
|
};
|
|
7276
7276
|
}
|
|
7277
|
-
}),
|
|
7277
|
+
}), di = {
|
|
7278
7278
|
name: "MozTableSelect",
|
|
7279
|
-
core:
|
|
7279
|
+
core: en,
|
|
7280
7280
|
props: [
|
|
7281
7281
|
"itemsSource",
|
|
7282
7282
|
"label",
|
|
@@ -7302,7 +7302,7 @@ const tn = be({
|
|
|
7302
7302
|
slots: ["empty"],
|
|
7303
7303
|
expose: !0
|
|
7304
7304
|
};
|
|
7305
|
-
function
|
|
7305
|
+
function tn(e = "var(--moz-color-text-subtle)", t = 12) {
|
|
7306
7306
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
|
|
7307
7307
|
<path
|
|
7308
7308
|
d="M2.49902 4.27679L6.04436 7.73581L9.501 4.27679"
|
|
@@ -7313,7 +7313,7 @@ function on(e = "var(--moz-color-text-subtle)", t = 12) {
|
|
|
7313
7313
|
></path>
|
|
7314
7314
|
</svg>`;
|
|
7315
7315
|
}
|
|
7316
|
-
function
|
|
7316
|
+
function on(e = "var(--moz-color-text-subtle)", t = 12) {
|
|
7317
7317
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
|
|
7318
7318
|
<path
|
|
7319
7319
|
d="M9.50095 7.73636L5.95563 4.27734L2.49902 7.73636"
|
|
@@ -7324,7 +7324,7 @@ function sn(e = "var(--moz-color-text-subtle)", t = 12) {
|
|
|
7324
7324
|
></path>
|
|
7325
7325
|
</svg>`;
|
|
7326
7326
|
}
|
|
7327
|
-
function
|
|
7327
|
+
function sn(e = "var(--moz-color-text-subtle)", t = 12, o = "") {
|
|
7328
7328
|
return a`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7329
7329
|
<path d="M1.71436 7.07145L3.00007 6.00002L1.71436 4.92859" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
7330
7330
|
<path d="M5.14307 4.71423H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
@@ -7333,7 +7333,7 @@ function ln(e = "var(--moz-color-text-subtle)", t = 12, o = "") {
|
|
|
7333
7333
|
<path d="M1.71436 9.85718L10.2858 9.85718" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
7334
7334
|
</svg>`;
|
|
7335
7335
|
}
|
|
7336
|
-
function
|
|
7336
|
+
function ln(e = "var(--moz-color-text-subtle)", t = 12, o = "") {
|
|
7337
7337
|
return a`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7338
7338
|
<path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423" fill=${e}></path>
|
|
7339
7339
|
<path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423V4.92852Z" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
@@ -7344,7 +7344,7 @@ function nn(e = "var(--moz-color-text-subtle)", t = 12, o = "") {
|
|
|
7344
7344
|
<path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
7345
7345
|
</svg>`;
|
|
7346
7346
|
}
|
|
7347
|
-
const
|
|
7347
|
+
const io = {
|
|
7348
7348
|
keyProp: "code",
|
|
7349
7349
|
displayProp: "name",
|
|
7350
7350
|
categoryLv1ID: "categoryLv1ID",
|
|
@@ -7353,7 +7353,7 @@ const ao = {
|
|
|
7353
7353
|
categoryLv2Label: "categoryLv2Label",
|
|
7354
7354
|
description: "description"
|
|
7355
7355
|
};
|
|
7356
|
-
function
|
|
7356
|
+
function nn(e, t) {
|
|
7357
7357
|
const o = (i) => t.displayProp && i[t.displayProp] ? i[t.displayProp] : i[t.keyProp], l = (i) => t.categoryLv1Label && i[t.categoryLv1Label] ? i[t.categoryLv1Label] : t.categoryLv1ID ? i[t.categoryLv1ID] : "", n = (i) => t.categoryLv2Label && i[t.categoryLv2Label] ? i[t.categoryLv2Label] : t.categoryLv2ID ? i[t.categoryLv2ID] : "";
|
|
7358
7358
|
return e.map((i) => ({
|
|
7359
7359
|
code: i[t.keyProp],
|
|
@@ -7365,11 +7365,11 @@ function rn(e, t) {
|
|
|
7365
7365
|
description: t.description && i[t.description] || ""
|
|
7366
7366
|
}));
|
|
7367
7367
|
}
|
|
7368
|
-
function
|
|
7368
|
+
function ft(e, t) {
|
|
7369
7369
|
let o = e.get(t);
|
|
7370
7370
|
return o || (o = [], e.set(t, o)), o;
|
|
7371
7371
|
}
|
|
7372
|
-
function
|
|
7372
|
+
function rn(e) {
|
|
7373
7373
|
const t = /* @__PURE__ */ new Map([
|
|
7374
7374
|
["depth0", []],
|
|
7375
7375
|
["depth1", []],
|
|
@@ -7379,10 +7379,10 @@ function an(e) {
|
|
|
7379
7379
|
const d = h.categoryLv1ID;
|
|
7380
7380
|
if (!o.get(d)) {
|
|
7381
7381
|
const s = { code: d, name: h.categoryLv1Label ?? d };
|
|
7382
|
-
o.set(d, s),
|
|
7382
|
+
o.set(d, s), ft(t, "depth0").push(s);
|
|
7383
7383
|
}
|
|
7384
7384
|
if (!h.categoryLv2ID || h.categoryLv2ID.trim() === "")
|
|
7385
|
-
|
|
7385
|
+
ft(t, "depth1").push({ ...h, parent: h.categoryLv1ID });
|
|
7386
7386
|
else {
|
|
7387
7387
|
const s = `${h.categoryLv1ID}-${h.categoryLv2ID}`;
|
|
7388
7388
|
if (!l.get(s)) {
|
|
@@ -7392,9 +7392,9 @@ function an(e) {
|
|
|
7392
7392
|
parent: h.categoryLv1ID,
|
|
7393
7393
|
isSubCategory: !0
|
|
7394
7394
|
};
|
|
7395
|
-
l.set(s, m),
|
|
7395
|
+
l.set(s, m), ft(t, "depth1").push(m);
|
|
7396
7396
|
}
|
|
7397
|
-
|
|
7397
|
+
ft(t, "depth2").push({ ...h, parent: h.categoryLv2ID });
|
|
7398
7398
|
}
|
|
7399
7399
|
});
|
|
7400
7400
|
function n(h, d, s, m) {
|
|
@@ -7414,69 +7414,69 @@ function an(e) {
|
|
|
7414
7414
|
const i = { depth0: "code", depth1: "parent", depth2: "parent" };
|
|
7415
7415
|
return (t.get("depth0") ?? []).flatMap((h) => n(h, 0, t, i));
|
|
7416
7416
|
}
|
|
7417
|
-
function
|
|
7417
|
+
function an(e) {
|
|
7418
7418
|
return new Set(e.map((t) => t.code));
|
|
7419
7419
|
}
|
|
7420
7420
|
function Ge(e, t) {
|
|
7421
7421
|
return t === e;
|
|
7422
7422
|
}
|
|
7423
|
-
function
|
|
7423
|
+
function Ct(e, t) {
|
|
7424
7424
|
return e.filter((o) => o.categoryLv1ID === t.code || o.categoryLv2ID === t.code);
|
|
7425
7425
|
}
|
|
7426
|
-
function
|
|
7426
|
+
function gt(e) {
|
|
7427
7427
|
return new Set(e.map((t) => t.code));
|
|
7428
7428
|
}
|
|
7429
|
-
function
|
|
7430
|
-
return { childDepthList:
|
|
7429
|
+
function Ft(e, t) {
|
|
7430
|
+
return { childDepthList: Ct(e, t) };
|
|
7431
7431
|
}
|
|
7432
|
-
function
|
|
7432
|
+
function ao(e, t) {
|
|
7433
7433
|
for (const o of e)
|
|
7434
7434
|
if (!t.has(o)) return !1;
|
|
7435
7435
|
return !0;
|
|
7436
7436
|
}
|
|
7437
|
-
function
|
|
7437
|
+
function St(e, t, o) {
|
|
7438
7438
|
t === 0 && e.categoryLv1Set.delete(o), t === 1 && e.categoryLv2Set.delete(o);
|
|
7439
7439
|
}
|
|
7440
7440
|
function ct(e, t, o) {
|
|
7441
7441
|
t === 0 && e.categoryLv1Set.add(o), t === 1 && e.categoryLv2Set.add(o);
|
|
7442
7442
|
}
|
|
7443
|
-
function
|
|
7443
|
+
function cn(e, t, o) {
|
|
7444
7444
|
t.length && e.categoryLv1Set.add(t), o.length && e.categoryLv2Set.add(o);
|
|
7445
7445
|
}
|
|
7446
|
-
function
|
|
7446
|
+
function vt(e) {
|
|
7447
7447
|
e.categoryLv1Set.clear(), e.categoryLv2Set.clear();
|
|
7448
7448
|
}
|
|
7449
|
-
function
|
|
7449
|
+
function Fo(e, t, o, l) {
|
|
7450
7450
|
if (ct(e, o.depth, o.code), o.parent) {
|
|
7451
7451
|
const n = t.find((i) => i.code === o.parent);
|
|
7452
|
-
n &&
|
|
7452
|
+
n && Fo(e, t, n);
|
|
7453
7453
|
}
|
|
7454
7454
|
}
|
|
7455
|
-
function
|
|
7455
|
+
function Ro(e, t, o, l) {
|
|
7456
7456
|
if (ct(e, o.depth, o.code), Ge(l, o.depth)) return;
|
|
7457
7457
|
t.filter((i) => i.parent === o.code).forEach((i) => {
|
|
7458
|
-
Ge(l, i.depth) ||
|
|
7458
|
+
Ge(l, i.depth) || Ro(e, t, i, l);
|
|
7459
7459
|
});
|
|
7460
7460
|
}
|
|
7461
|
-
function
|
|
7462
|
-
|
|
7461
|
+
function co(e, t, o, l) {
|
|
7462
|
+
Fo(e, t, o), Ro(e, t, o, l);
|
|
7463
7463
|
}
|
|
7464
|
-
function
|
|
7465
|
-
if (
|
|
7464
|
+
function Bo(e, t, o, l) {
|
|
7465
|
+
if (St(e, o.depth, o.code), o.parent) {
|
|
7466
7466
|
const n = t.find((i) => i.code === o.parent);
|
|
7467
|
-
n &&
|
|
7467
|
+
n && Bo(e, t, n);
|
|
7468
7468
|
}
|
|
7469
7469
|
}
|
|
7470
|
-
function
|
|
7471
|
-
if (
|
|
7470
|
+
function Ho(e, t, o, l) {
|
|
7471
|
+
if (St(e, o.depth, o.code), Ge(l, o.depth)) return;
|
|
7472
7472
|
t.filter((i) => i.parent === o.code).forEach((i) => {
|
|
7473
|
-
Ge(l, i.depth) ||
|
|
7473
|
+
Ge(l, i.depth) || Ho(e, t, i, l);
|
|
7474
7474
|
});
|
|
7475
7475
|
}
|
|
7476
|
-
function
|
|
7477
|
-
|
|
7476
|
+
function uo(e, t, o, l) {
|
|
7477
|
+
Bo(e, t, o), Ho(e, t, o, l);
|
|
7478
7478
|
}
|
|
7479
|
-
const
|
|
7479
|
+
const dn = /* @__PURE__ */ new Set([
|
|
7480
7480
|
"modelValue",
|
|
7481
7481
|
"itemsSource",
|
|
7482
7482
|
"label",
|
|
@@ -7492,7 +7492,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7492
7492
|
"useSelectAll",
|
|
7493
7493
|
"class",
|
|
7494
7494
|
"style"
|
|
7495
|
-
]),
|
|
7495
|
+
]), un = be({
|
|
7496
7496
|
name: "moz-tree-select",
|
|
7497
7497
|
defaults: {
|
|
7498
7498
|
label: null,
|
|
@@ -7509,13 +7509,13 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7509
7509
|
useSpecificSelect: !0,
|
|
7510
7510
|
treeLevels: 1,
|
|
7511
7511
|
useMultiSelect: !1,
|
|
7512
|
-
treeProps:
|
|
7512
|
+
treeProps: io,
|
|
7513
7513
|
modelValue: []
|
|
7514
7514
|
},
|
|
7515
7515
|
setup(e) {
|
|
7516
7516
|
const t = ve(), o = ve(), l = ve(), n = ve(), i = ve();
|
|
7517
7517
|
let h = null;
|
|
7518
|
-
const d = (e.props.treeLevels ?? 1) - 1, s = d, m = () => !!e.props.useMultiSelect, r = () => e.props.disabledProp || "disabled", p = () => e.props.treeProps ??
|
|
7518
|
+
const d = (e.props.treeLevels ?? 1) - 1, s = d, m = () => !!e.props.useMultiSelect, r = () => e.props.disabledProp || "disabled", p = () => e.props.treeProps ?? io;
|
|
7519
7519
|
let u = e.props.modelValue ?? (m() ? [] : "");
|
|
7520
7520
|
const v = () => e.controlled("modelValue") ? e.props.modelValue ?? [] : u, $ = () => {
|
|
7521
7521
|
const b = v();
|
|
@@ -7536,7 +7536,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7536
7536
|
const se = () => e.slots.has("list-item");
|
|
7537
7537
|
let ie = [], Q = [], U = e.props.itemsSource;
|
|
7538
7538
|
const x = () => {
|
|
7539
|
-
ie =
|
|
7539
|
+
ie = nn(e.props.itemsSource ?? [], p()), Q = rn(ie);
|
|
7540
7540
|
};
|
|
7541
7541
|
x();
|
|
7542
7542
|
const M = () => {
|
|
@@ -7566,7 +7566,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7566
7566
|
b.filter((he) => {
|
|
7567
7567
|
if (Ce(he, de)) return !0;
|
|
7568
7568
|
if (m() && !Ge(d, he.depth)) {
|
|
7569
|
-
const fe =
|
|
7569
|
+
const fe = Ct(Q, he);
|
|
7570
7570
|
if (fe.length > 0 && fe.some((Ae) => de.has(Ae.code))) return !0;
|
|
7571
7571
|
}
|
|
7572
7572
|
return !1;
|
|
@@ -7580,10 +7580,10 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7580
7580
|
}, f = () => B().filter((b) => !(b.categoryLv1ID || b.categoryLv2ID)), H = () => {
|
|
7581
7581
|
const b = f();
|
|
7582
7582
|
return B().filter((L) => !b.includes(L));
|
|
7583
|
-
}, Y = () => new Set(H().map((b) => b.code)), j = () =>
|
|
7583
|
+
}, Y = () => new Set(H().map((b) => b.code)), j = () => an(H()), Ce = (b, L) => m() ? Ge(s, b.depth) ? L.has(b.code) : re.has(b.code) || ee.has(b.code) : v() === b.code, qe = (b) => {
|
|
7584
7584
|
if (Ge(d, b.depth)) return !0;
|
|
7585
|
-
const L =
|
|
7586
|
-
return L.length === 0 ? !0 :
|
|
7585
|
+
const L = Ct(B(), b);
|
|
7586
|
+
return L.length === 0 ? !0 : ao(gt(L), A());
|
|
7587
7587
|
}, _e = () => {
|
|
7588
7588
|
const b = $().length, L = f().length;
|
|
7589
7589
|
if (b < L || b === 0 || L === 0) return !1;
|
|
@@ -7634,7 +7634,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7634
7634
|
}, ye = (b) => {
|
|
7635
7635
|
b.length === ie.length ? f().forEach((L) => ct(K, L.depth, L.code)) : b.forEach((L) => {
|
|
7636
7636
|
const N = H().find((de) => de.code === L);
|
|
7637
|
-
N &&
|
|
7637
|
+
N && cn(K, N.categoryLv1ID ?? "", N.categoryLv2ID ?? "");
|
|
7638
7638
|
});
|
|
7639
7639
|
}, xe = (b, L, N) => {
|
|
7640
7640
|
if (N.shiftKey && W.length > 0) {
|
|
@@ -7643,10 +7643,10 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7643
7643
|
} else N.ctrlKey ? W.push({ item: b, index: L }) : W = [{ item: b, index: L }];
|
|
7644
7644
|
}, Le = (b, L) => {
|
|
7645
7645
|
if (!Ge(d, b.depth)) {
|
|
7646
|
-
const { childDepthList: N } =
|
|
7646
|
+
const { childDepthList: N } = Ft(B(), b);
|
|
7647
7647
|
if (L) {
|
|
7648
|
-
const de =
|
|
7649
|
-
I($().filter((ce) => !de.has(ce))),
|
|
7648
|
+
const de = gt(N);
|
|
7649
|
+
I($().filter((ce) => !de.has(ce))), uo(K, B(), b, s);
|
|
7650
7650
|
} else {
|
|
7651
7651
|
const de = N.map((ce) => ce.code);
|
|
7652
7652
|
I([...$(), ...de]);
|
|
@@ -7656,11 +7656,11 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7656
7656
|
const de = W.map((fe) => fe.item).filter((fe) => fe.depth === s), ce = C(de, b);
|
|
7657
7657
|
let he = [];
|
|
7658
7658
|
if (L.depth !== d) {
|
|
7659
|
-
const { childDepthList: fe } =
|
|
7659
|
+
const { childDepthList: fe } = Ft(B(), L), Ae = gt(fe);
|
|
7660
7660
|
he = $().filter((Ne) => !Ae.has(Ne));
|
|
7661
7661
|
} else
|
|
7662
7662
|
he = $();
|
|
7663
|
-
b ? L.depth === d ? he = [...he, ...ce] :
|
|
7663
|
+
b ? L.depth === d ? he = [...he, ...ce] : co(K, B(), L, s) : (vt(K), he = he.filter((fe) => !ce.some((Ae) => fe === Ae))), F(he);
|
|
7664
7664
|
}, Ie = (b, L, N, de) => {
|
|
7665
7665
|
const ce = W.some((he) => he.item.code === b.code);
|
|
7666
7666
|
(W.length <= 1 || !ce) && xe(b, L, { shiftKey: !1, ctrlKey: !1 }), Me(!de, b), Le(b, de), e.requestUpdate();
|
|
@@ -7671,10 +7671,10 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7671
7671
|
let de = [], ce = !1;
|
|
7672
7672
|
const he = b.code;
|
|
7673
7673
|
if (Ge(d, b.depth))
|
|
7674
|
-
ce = $().length === 1 && $()[0] === he, ce || (de = [he]),
|
|
7674
|
+
ce = $().length === 1 && $()[0] === he, ce || (de = [he]), vt(K);
|
|
7675
7675
|
else {
|
|
7676
|
-
const { childDepthList: fe } =
|
|
7677
|
-
ce =
|
|
7676
|
+
const { childDepthList: fe } = Ft(B(), b), Ae = gt(fe);
|
|
7677
|
+
ce = ao(Ae, A()) && Ae.size === A().size, ce ? uo(K, B(), b, s) : (de = [], vt(K), co(K, B(), b, s));
|
|
7678
7678
|
}
|
|
7679
7679
|
F(de), Le(b, ce), xe(b, L, N), e.requestUpdate();
|
|
7680
7680
|
}, ot = (b) => {
|
|
@@ -7692,11 +7692,11 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7692
7692
|
L.isExpanded = b, L.depth > 0 ? L.isHidden = !b : L.isHidden = !1;
|
|
7693
7693
|
}), queueMicrotask(() => Fe.measure()), e.requestUpdate();
|
|
7694
7694
|
}, O = (b) => {
|
|
7695
|
-
b.stopPropagation(), Y().size === A().size && [...Y()].every((N) => A().has(N)) ? (f().forEach((N) =>
|
|
7695
|
+
b.stopPropagation(), Y().size === A().size && [...Y()].every((N) => A().has(N)) ? (f().forEach((N) => St(K, N.depth, N.code)), F([])) : (vt(K), f().forEach((N) => ct(K, N.depth, N.code)), F([...Y()]));
|
|
7696
7696
|
}, R = (b) => {
|
|
7697
7697
|
if (b.stopPropagation(), He()) {
|
|
7698
7698
|
const L = j();
|
|
7699
|
-
F($().filter((N) => !L.has(N))), f().forEach((N) =>
|
|
7699
|
+
F($().filter((N) => !L.has(N))), f().forEach((N) => St(K, N.depth, N.code));
|
|
7700
7700
|
} else {
|
|
7701
7701
|
const L = /* @__PURE__ */ new Set([...$(), ...Y()]);
|
|
7702
7702
|
F(Array.from(L)), f().forEach((N) => ct(K, N.depth, N.code));
|
|
@@ -7728,7 +7728,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7728
7728
|
});
|
|
7729
7729
|
let Ke = null;
|
|
7730
7730
|
const Je = (b) => {
|
|
7731
|
-
S !== b && (S = b, e.requestUpdate(), b ? (Ke =
|
|
7731
|
+
S !== b && (S = b, e.requestUpdate(), b ? (Ke = Mt(), document.body.addEventListener("scroll", ge, { capture: !0 }), document.addEventListener("click", Se, { capture: !0 }), te.save = "", window.addEventListener("keydown", Ve), le(), queueMicrotask(() => {
|
|
7732
7732
|
var L;
|
|
7733
7733
|
o.value && h && (E = me(o.value, h)), le(), i.value ? i.value.focus() : (L = n.value) == null || L.focus();
|
|
7734
7734
|
})) : (Ke == null || Ke.release(), Ke = null, document.body.removeEventListener("scroll", ge, { capture: !0 }), document.removeEventListener("click", Se, { capture: !0 }), ue($(), "blur"), window.removeEventListener("keydown", Ve), y = "", e.emit("close")));
|
|
@@ -7736,7 +7736,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7736
7736
|
e.props.disabled || Je(!S);
|
|
7737
7737
|
};
|
|
7738
7738
|
let st;
|
|
7739
|
-
const
|
|
7739
|
+
const At = (b) => {
|
|
7740
7740
|
const L = b.target.value;
|
|
7741
7741
|
st && clearTimeout(st), st = setTimeout(() => {
|
|
7742
7742
|
y = L, e.requestUpdate(), queueMicrotask(() => {
|
|
@@ -7747,7 +7747,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7747
7747
|
z = b, e.requestUpdate(), queueMicrotask(() => {
|
|
7748
7748
|
Fe.setOptions({ ...Fe.options, count: B().length }), Fe.measure();
|
|
7749
7749
|
});
|
|
7750
|
-
}, Fe = new
|
|
7750
|
+
}, Fe = new Et({
|
|
7751
7751
|
count: 0,
|
|
7752
7752
|
getScrollElement: () => h,
|
|
7753
7753
|
estimateSize: (b) => {
|
|
@@ -7756,36 +7756,36 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7756
7756
|
},
|
|
7757
7757
|
measureElement: (b) => b.getBoundingClientRect().height,
|
|
7758
7758
|
overscan: 3,
|
|
7759
|
-
observeElementRect:
|
|
7760
|
-
observeElementOffset:
|
|
7761
|
-
scrollToFn:
|
|
7759
|
+
observeElementRect: Pt,
|
|
7760
|
+
observeElementOffset: Lt,
|
|
7761
|
+
scrollToFn: xt,
|
|
7762
7762
|
onChange: () => e.requestUpdate()
|
|
7763
7763
|
});
|
|
7764
7764
|
e.onCleanup(Fe._didMount());
|
|
7765
|
-
const
|
|
7765
|
+
const Uo = (b) => {
|
|
7766
7766
|
h = b ?? null, b && (Fe._willUpdate(), e.requestUpdate());
|
|
7767
|
-
},
|
|
7767
|
+
}, _o = (b, L) => {
|
|
7768
7768
|
b && L === d && (G = b.getBoundingClientRect().height);
|
|
7769
|
-
},
|
|
7769
|
+
}, Wo = (b) => b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jt = (b, L) => {
|
|
7770
7770
|
if (!y || !Ge(d, L)) return [{ part: b, highlight: !1 }];
|
|
7771
|
-
const N = new RegExp(`(${
|
|
7771
|
+
const N = new RegExp(`(${Wo(y)})`, "gi");
|
|
7772
7772
|
return b.split(N).map((de) => ({ part: de, highlight: y.toLowerCase() === de.toLowerCase() }));
|
|
7773
7773
|
};
|
|
7774
|
-
let
|
|
7775
|
-
const
|
|
7774
|
+
let Xt = v();
|
|
7775
|
+
const Ko = (b) => {
|
|
7776
7776
|
const { index: L, item: N, start: de, isSelected: ce, isIndeterminate: he, isDisabled: fe, isFocused: Ae } = b;
|
|
7777
7777
|
if (N.isHidden) return w;
|
|
7778
7778
|
const Ne = e.props, Re = N.depth, Ue = Ge(d, Re), je = m(), nt = (Be) => {
|
|
7779
7779
|
Re !== d ? Ze(N, Be) : ot(N.code);
|
|
7780
|
-
},
|
|
7780
|
+
}, pt = (Be) => {
|
|
7781
7781
|
je ? We(N, L, Be, ce && qe(N)) : nt(Be);
|
|
7782
|
-
},
|
|
7782
|
+
}, Dt = () => {
|
|
7783
7783
|
Ie(N, L, {}, ce && qe(N));
|
|
7784
|
-
},
|
|
7784
|
+
}, qt = Ue ? "하나만" : "그룹만";
|
|
7785
7785
|
return a`<div
|
|
7786
7786
|
data-index=${L}
|
|
7787
7787
|
${ne((Be) => {
|
|
7788
|
-
Be && (Fe.measureElement(Be),
|
|
7788
|
+
Be && (Fe.measureElement(Be), _o(Be, Re));
|
|
7789
7789
|
})}
|
|
7790
7790
|
style=${oe({ transform: `translateY(${de}px)` })}
|
|
7791
7791
|
class=${V("list-box-item virtual-row tree-item", {
|
|
@@ -7807,7 +7807,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7807
7807
|
je || nt(Be);
|
|
7808
7808
|
}}
|
|
7809
7809
|
></div>
|
|
7810
|
-
<div class="item-content" @click=${
|
|
7810
|
+
<div class="item-content" @click=${pt}>
|
|
7811
7811
|
${Ue ? w : a`<button
|
|
7812
7812
|
type="button"
|
|
7813
7813
|
class="icon-container"
|
|
@@ -7815,26 +7815,26 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7815
7815
|
aria-label=${N.isExpanded ? e.locale.TreeSelect.collapse : e.locale.TreeSelect.expand}
|
|
7816
7816
|
@click=${(Be) => Ze(N, Be)}
|
|
7817
7817
|
>
|
|
7818
|
-
${e.slots.has("icon") ? e.slot("icon") : N.isExpanded ?
|
|
7818
|
+
${e.slots.has("icon") ? e.slot("icon") : N.isExpanded ? on("var(--moz-color-accent)") : tn("var(--moz-color-text-subtle)")}
|
|
7819
7819
|
</button>`}
|
|
7820
|
-
${je ?
|
|
7820
|
+
${je ? It({
|
|
7821
7821
|
checked: ce,
|
|
7822
7822
|
disabled: fe,
|
|
7823
7823
|
indeterminate: he,
|
|
7824
|
-
onChange:
|
|
7824
|
+
onChange: Dt
|
|
7825
7825
|
}) : w}
|
|
7826
7826
|
<div class="highlight-container">
|
|
7827
7827
|
${se() && Ue ? e.slot("list-item", {
|
|
7828
7828
|
text: { text: _(N), depth: Re },
|
|
7829
7829
|
item: N,
|
|
7830
|
-
highlightText:
|
|
7831
|
-
}) : a`${
|
|
7830
|
+
highlightText: jt(_(N), Re)
|
|
7831
|
+
}) : a`${jt(_(N), Re).map(
|
|
7832
7832
|
(Be) => a`<span class=${V({ highlight: Be.highlight })}>${Be.part}</span>`
|
|
7833
7833
|
)}`}
|
|
7834
7834
|
</div>
|
|
7835
|
-
${!je && ce && Ue ?
|
|
7835
|
+
${!je && ce && Ue ? Wt("12", "var(--moz-color-accent)", !1, "icon-check") : w}
|
|
7836
7836
|
${je && Ne.useSpecificSelect && !fe ? a`<button type="button" class="item-only item-only-btn" @click=${(Be) => Xe(N, L, Be)}>
|
|
7837
|
-
${
|
|
7837
|
+
${qt}
|
|
7838
7838
|
</button>` : w}
|
|
7839
7839
|
</div>
|
|
7840
7840
|
</div>`;
|
|
@@ -7845,8 +7845,8 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7845
7845
|
const b = e.props;
|
|
7846
7846
|
b.itemsSource !== U && (U = b.itemsSource, x());
|
|
7847
7847
|
const L = v();
|
|
7848
|
-
L !==
|
|
7849
|
-
const N = typeof b.width == "number" ? `${ze(b.width)}rem` : b.width, de = e.slots.has("icon") ? e.slot("icon", { isOpen: S }) : S ?
|
|
7848
|
+
L !== Xt && (Xt = L, typeof L != "string" && ye($()));
|
|
7849
|
+
const N = typeof b.width == "number" ? `${ze(b.width)}rem` : b.width, de = e.slots.has("icon") ? e.slot("icon", { isOpen: S }) : S ? Gt("14", "var(--moz-color-accent)") : Kt("14", "var(--moz-color-text-subtle)", b.disabled), ce = we(b, dn), { aria: he, dom: fe } = dt(ce);
|
|
7850
7850
|
return a`
|
|
7851
7851
|
<div
|
|
7852
7852
|
${pe(fe)}
|
|
@@ -7890,7 +7890,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7890
7890
|
if (!S) return w;
|
|
7891
7891
|
const b = e.props, L = B();
|
|
7892
7892
|
Fe.options.count !== L.length && Fe.setOptions({ ...Fe.options, count: L.length }), Fe._willUpdate();
|
|
7893
|
-
const N = Fe.getTotalSize(), de = A(), ce =
|
|
7893
|
+
const N = Fe.getTotalSize(), de = A(), ce = Tt(
|
|
7894
7894
|
Fe.getVirtualItems(),
|
|
7895
7895
|
L.length,
|
|
7896
7896
|
D,
|
|
@@ -7901,10 +7901,10 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7901
7901
|
if (!Re) return null;
|
|
7902
7902
|
let Ue = Ce(Re, de), je = !1;
|
|
7903
7903
|
if (m() && !Ge(d, Re.depth)) {
|
|
7904
|
-
const nt =
|
|
7904
|
+
const nt = Ct(Q, Re);
|
|
7905
7905
|
if (nt.length > 0) {
|
|
7906
|
-
const
|
|
7907
|
-
|
|
7906
|
+
const pt = nt.reduce((Dt, qt) => Dt + (de.has(qt.code) ? 1 : 0), 0);
|
|
7907
|
+
pt === 0 ? Ue = !1 : pt < nt.length ? (Ue = !0, je = !0) : Ue = !0;
|
|
7908
7908
|
}
|
|
7909
7909
|
}
|
|
7910
7910
|
return {
|
|
@@ -7926,26 +7926,26 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7926
7926
|
>
|
|
7927
7927
|
<div class="filter-input-wrapper">
|
|
7928
7928
|
${b.useFilter ? a`<div class="filter-input">
|
|
7929
|
-
<div class="search-icon">${
|
|
7930
|
-
<input placeholder=${e.locale.TreeSelect.search} @input=${
|
|
7929
|
+
<div class="search-icon">${Yt("12", "var(--moz-color-text-subtle)")}</div>
|
|
7930
|
+
<input placeholder=${e.locale.TreeSelect.search} @input=${At} ${ne(i)} />
|
|
7931
7931
|
</div>` : w}
|
|
7932
7932
|
<div class="tree-controls">
|
|
7933
|
-
<span class="control-btn" @click=${() => g(!0)}>${
|
|
7934
|
-
<span class="control-btn" @click=${() => g(!1)}>${
|
|
7933
|
+
<span class="control-btn" @click=${() => g(!0)}>${sn("currentColor")}</span>
|
|
7934
|
+
<span class="control-btn" @click=${() => g(!1)}>${ln("currentColor")}</span>
|
|
7935
7935
|
</div>
|
|
7936
7936
|
</div>
|
|
7937
7937
|
|
|
7938
7938
|
${c() && ie.length > 0 && L.length > 0 ? a`<div class=${V("list-box-item multi-select-item multi-select-all", { "is-scrolled": q })} @click=${R}>
|
|
7939
7939
|
<div class="select-all-content">
|
|
7940
|
-
${
|
|
7940
|
+
${It({ indeterminate: Ae > 0 && _e() === !1, checked: He() })}
|
|
7941
7941
|
<div><span title=${he}>${he}</span></div>
|
|
7942
7942
|
</div>
|
|
7943
7943
|
${y && L.length > 0 ? a`<button type="button" class="item-only" @click=${O}>${e.locale.TreeSelect.specificResults}</button>` : w}
|
|
7944
7944
|
</div>` : w}
|
|
7945
7945
|
|
|
7946
|
-
<div class="list-box-container" @scroll=${J} ${ne(
|
|
7946
|
+
<div class="list-box-container" @scroll=${J} ${ne(Uo)}>
|
|
7947
7947
|
<div class="inner-container" style=${oe({ height: `${N}px` })}>
|
|
7948
|
-
${ce.map((Ne) =>
|
|
7948
|
+
${ce.map((Ne) => Ko(Ne))}
|
|
7949
7949
|
</div>
|
|
7950
7950
|
${L.length <= 0 ? a`<div class="list-box-item loading not-hover">
|
|
7951
7951
|
${e.slots.has("empty") ? e.slot("empty") : e.locale.TreeSelect.noData}
|
|
@@ -7954,7 +7954,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7954
7954
|
|
|
7955
7955
|
${m() ? a`<div class="list-footer">
|
|
7956
7956
|
<label class="footer-checkbox">
|
|
7957
|
-
${
|
|
7957
|
+
${It({ checked: z, onChange: Ye, class: "moz-checkbox" })}
|
|
7958
7958
|
<span>${e.locale.TreeSelect.showSelectedOnly}</span>
|
|
7959
7959
|
</label>
|
|
7960
7960
|
</div>` : w}
|
|
@@ -7962,9 +7962,9 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7962
7962
|
}
|
|
7963
7963
|
};
|
|
7964
7964
|
}
|
|
7965
|
-
}),
|
|
7965
|
+
}), ui = {
|
|
7966
7966
|
name: "MozTreeSelect",
|
|
7967
|
-
core:
|
|
7967
|
+
core: un,
|
|
7968
7968
|
props: [
|
|
7969
7969
|
"itemsSource",
|
|
7970
7970
|
"label",
|
|
@@ -7987,14 +7987,14 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7987
7987
|
emits: ["change", "close", "update:modelValue"],
|
|
7988
7988
|
slots: ["icon", "list-item", "empty"],
|
|
7989
7989
|
expose: !0
|
|
7990
|
-
},
|
|
7990
|
+
}, pn = /* @__PURE__ */ new Set([
|
|
7991
7991
|
"panes",
|
|
7992
7992
|
"direction",
|
|
7993
7993
|
"resizable",
|
|
7994
7994
|
"minSize",
|
|
7995
7995
|
"class",
|
|
7996
7996
|
"style"
|
|
7997
|
-
]),
|
|
7997
|
+
]), po = (e, t) => e === void 0 ? t : typeof e == "number" ? `${e}px` : e, mn = be({
|
|
7998
7998
|
name: "moz-split-pane",
|
|
7999
7999
|
defaults: { horizontal: !1, panes: [] },
|
|
8000
8000
|
setup(e) {
|
|
@@ -8073,7 +8073,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8073
8073
|
e.props.panes !== Q && (Q = e.props.panes, queueMicrotask(() => {
|
|
8074
8074
|
E(), e.requestUpdate();
|
|
8075
8075
|
}));
|
|
8076
|
-
const x = y() ? "gridTemplateRows" : "gridTemplateColumns", M = U.length - 1, _ = we(e.props,
|
|
8076
|
+
const x = y() ? "gridTemplateRows" : "gridTemplateColumns", M = U.length - 1, _ = we(e.props, pn);
|
|
8077
8077
|
return a`
|
|
8078
8078
|
<div
|
|
8079
8079
|
${pe(_)}
|
|
@@ -8120,7 +8120,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8120
8120
|
})}
|
|
8121
8121
|
>
|
|
8122
8122
|
${U.map((k, T) => {
|
|
8123
|
-
const A =
|
|
8123
|
+
const A = po(k.minSize, "10px"), B = po(k.maxSize, "100%");
|
|
8124
8124
|
return a`<div
|
|
8125
8125
|
class="size-calculator min-size"
|
|
8126
8126
|
style=${oe({ width: A, height: A })}
|
|
@@ -8142,9 +8142,9 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8142
8142
|
}
|
|
8143
8143
|
};
|
|
8144
8144
|
}
|
|
8145
|
-
}),
|
|
8145
|
+
}), pi = {
|
|
8146
8146
|
name: "MozSplitPane",
|
|
8147
|
-
core:
|
|
8147
|
+
core: mn,
|
|
8148
8148
|
props: ["horizontal", "panes"],
|
|
8149
8149
|
emits: [],
|
|
8150
8150
|
// Vue 는 제공된 슬롯 전부(Object.keys) 등록하지만 React(createMozComponent)는 spec.slots 만 등록하므로
|
|
@@ -8152,7 +8152,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8152
8152
|
slots: ["pane-0", "pane-1", "pane-2", "pane-3", "pane-4", "pane-5", "pane-6", "pane-7"],
|
|
8153
8153
|
expose: !1
|
|
8154
8154
|
};
|
|
8155
|
-
function
|
|
8155
|
+
function hn(e = "currentColor", t = 14) {
|
|
8156
8156
|
return a`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8157
8157
|
<path
|
|
8158
8158
|
d="M12.25 12.25V3.8436L10.163 1.75H1.75V12.25H12.25ZM12.4448 14H1.55615C0.7002 14 0 13.3001 0 12.4446V1.55617C0 0.70013 0.69238 0 1.55615 0H10.2432C10.6558 0 11.0522 0.16353 11.3481 0.46009L13.5415 2.66039C13.8364 2.94828 14 3.34501 14 3.75673V12.4446C14 13.3001 13.3003 14 12.4448 14Z"
|
|
@@ -8170,7 +8170,7 @@ function fn(e = "currentColor", t = 14) {
|
|
|
8170
8170
|
></path>
|
|
8171
8171
|
</svg>`;
|
|
8172
8172
|
}
|
|
8173
|
-
function
|
|
8173
|
+
function fn(e = "currentColor", t = 14) {
|
|
8174
8174
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
8175
8175
|
<g clip-path="url(#clip0_16945_2363)">
|
|
8176
8176
|
<path
|
|
@@ -8189,7 +8189,7 @@ function gn(e = "currentColor", t = 14) {
|
|
|
8189
8189
|
</defs>
|
|
8190
8190
|
</svg>`;
|
|
8191
8191
|
}
|
|
8192
|
-
function
|
|
8192
|
+
function gn(e = "currentColor", t = 14) {
|
|
8193
8193
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
|
|
8194
8194
|
<path d="M0,0H14V14H0Z" fill="none"></path>
|
|
8195
8195
|
<line
|
|
@@ -8210,7 +8210,7 @@ function vn(e = "currentColor", t = 14) {
|
|
|
8210
8210
|
></line>
|
|
8211
8211
|
</svg>`;
|
|
8212
8212
|
}
|
|
8213
|
-
function
|
|
8213
|
+
function vn(e = "currentColor", t = 14) {
|
|
8214
8214
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
8215
8215
|
<path
|
|
8216
8216
|
d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
|
|
@@ -8218,7 +8218,7 @@ function wn(e = "currentColor", t = 14) {
|
|
|
8218
8218
|
></path>
|
|
8219
8219
|
</svg>`;
|
|
8220
8220
|
}
|
|
8221
|
-
function
|
|
8221
|
+
function wn(e = "currentColor", t = 14) {
|
|
8222
8222
|
return a`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
8223
8223
|
<path
|
|
8224
8224
|
d="M12.7988 6.23621C12.6596 5.99307 12.4571 5.79178 12.2126 5.65358L4.31964 1.20161C4.08323 1.06797 3.81572 0.998459 3.54385 1.00003C3.27199 1.00159 3.00531 1.07419 2.77047 1.21055C2.53563 1.3469 2.34088 1.54224 2.20567 1.77703C2.07046 2.01181 1.99953 2.27781 2 2.54843V11.4524C1.99975 11.7229 2.07082 11.9888 2.20609 12.2234C2.34136 12.4581 2.53611 12.6533 2.77089 12.7895C3.00567 12.9258 3.27225 12.9984 3.54402 13C3.81579 13.0016 4.08324 12.9322 4.31964 12.7987L12.2117 8.3472C12.5703 8.14432 12.8334 7.80821 12.9435 7.4125C13.0536 7.0168 13.0015 6.59379 12.7988 6.23621Z"
|
|
@@ -8226,14 +8226,14 @@ function bn(e = "currentColor", t = 14) {
|
|
|
8226
8226
|
></path>
|
|
8227
8227
|
</svg>`;
|
|
8228
8228
|
}
|
|
8229
|
-
const
|
|
8229
|
+
const bn = /* @__PURE__ */ new Set([
|
|
8230
8230
|
"navigations",
|
|
8231
8231
|
"containerStyle",
|
|
8232
8232
|
"headerStyle",
|
|
8233
8233
|
"class",
|
|
8234
8234
|
"style"
|
|
8235
8235
|
]);
|
|
8236
|
-
function
|
|
8236
|
+
function Cn(e) {
|
|
8237
8237
|
switch (e.action) {
|
|
8238
8238
|
case "Add":
|
|
8239
8239
|
return "IconPlus";
|
|
@@ -8249,23 +8249,23 @@ function yn(e) {
|
|
|
8249
8249
|
return e.icon ?? null;
|
|
8250
8250
|
}
|
|
8251
8251
|
}
|
|
8252
|
-
function
|
|
8252
|
+
function yn(e) {
|
|
8253
8253
|
switch (e) {
|
|
8254
8254
|
case "IconSave":
|
|
8255
|
-
return
|
|
8255
|
+
return hn();
|
|
8256
8256
|
case "IconTrash":
|
|
8257
|
-
return
|
|
8257
|
+
return fn();
|
|
8258
8258
|
case "IconPlus":
|
|
8259
|
-
return
|
|
8259
|
+
return gn();
|
|
8260
8260
|
case "IconSearch":
|
|
8261
|
-
return
|
|
8261
|
+
return vn();
|
|
8262
8262
|
case "IconPlay":
|
|
8263
|
-
return
|
|
8263
|
+
return wn();
|
|
8264
8264
|
default:
|
|
8265
8265
|
return a``;
|
|
8266
8266
|
}
|
|
8267
8267
|
}
|
|
8268
|
-
const
|
|
8268
|
+
const $n = be({
|
|
8269
8269
|
name: "moz-controller",
|
|
8270
8270
|
defaults: { height: 66, showFilterButton: !1, showFavorite: !0, showPreset: !0 },
|
|
8271
8271
|
setup(e) {
|
|
@@ -8292,9 +8292,9 @@ const Sn = be({
|
|
|
8292
8292
|
},
|
|
8293
8293
|
render() {
|
|
8294
8294
|
const u = e.props, v = e.slots.has("custom-filter"), $ = e.slots.has("action"), I = u.actions ?? [], S = I.find((E) => E.loading === !0), y = I.map((E) => {
|
|
8295
|
-
const z =
|
|
8295
|
+
const z = Cn(E), X = !!S && E.action !== S.action || !!E.disabled;
|
|
8296
8296
|
return { ...E, icon: z, disabled: X };
|
|
8297
|
-
}), q = we(u,
|
|
8297
|
+
}), q = we(u, bn);
|
|
8298
8298
|
return a`
|
|
8299
8299
|
<div
|
|
8300
8300
|
class=${V("moz-controller-root", u.class)}
|
|
@@ -8302,18 +8302,18 @@ const Sn = be({
|
|
|
8302
8302
|
${pe(q)}
|
|
8303
8303
|
>
|
|
8304
8304
|
<div class="moz-controller" style=${oe(ke(u.headerStyle))}>
|
|
8305
|
-
${u.navigations ?
|
|
8305
|
+
${u.navigations ? Po({ itemSource: u.navigations, showFavorite: !1, ariaLabel: e.locale.BreadCrumb.navigation }) : w}
|
|
8306
8306
|
<div class="spacer"></div>
|
|
8307
8307
|
|
|
8308
8308
|
<div class="moz-controller-actions">
|
|
8309
8309
|
${e.slot("beforeFilter")}
|
|
8310
|
-
${u.showFilterButton && !v ?
|
|
8310
|
+
${u.showFilterButton && !v ? Nt({
|
|
8311
8311
|
id: h,
|
|
8312
8312
|
model: t,
|
|
8313
8313
|
label: "조회 조건",
|
|
8314
8314
|
onChange: s
|
|
8315
8315
|
}) : w}
|
|
8316
|
-
${u.showFilterButton && v ?
|
|
8316
|
+
${u.showFilterButton && v ? Nt({
|
|
8317
8317
|
id: d,
|
|
8318
8318
|
model: l(),
|
|
8319
8319
|
label: "조회 조건",
|
|
@@ -8323,7 +8323,7 @@ const Sn = be({
|
|
|
8323
8323
|
${e.slot("action")}
|
|
8324
8324
|
${$ && y.length > 0 ? a`<div class="spacer between-buttons"></div>` : w}
|
|
8325
8325
|
${y.map(
|
|
8326
|
-
(E) =>
|
|
8326
|
+
(E) => bt(
|
|
8327
8327
|
{
|
|
8328
8328
|
action: E.action,
|
|
8329
8329
|
text: E.text,
|
|
@@ -8333,7 +8333,7 @@ const Sn = be({
|
|
|
8333
8333
|
style: { padding: E.text ? void 0 : "0" }
|
|
8334
8334
|
},
|
|
8335
8335
|
{
|
|
8336
|
-
icon:
|
|
8336
|
+
icon: yn(E.icon),
|
|
8337
8337
|
onClick: () => {
|
|
8338
8338
|
E.click && E.click();
|
|
8339
8339
|
},
|
|
@@ -8355,9 +8355,9 @@ const Sn = be({
|
|
|
8355
8355
|
}
|
|
8356
8356
|
};
|
|
8357
8357
|
}
|
|
8358
|
-
}),
|
|
8358
|
+
}), mi = {
|
|
8359
8359
|
name: "MozController",
|
|
8360
|
-
core:
|
|
8360
|
+
core: $n,
|
|
8361
8361
|
props: [
|
|
8362
8362
|
"height",
|
|
8363
8363
|
"setControlHeight",
|
|
@@ -8375,7 +8375,7 @@ const Sn = be({
|
|
|
8375
8375
|
slots: ["beforeFilter", "action", "filter", "custom-filter"],
|
|
8376
8376
|
expose: !1
|
|
8377
8377
|
};
|
|
8378
|
-
class
|
|
8378
|
+
class Sn {
|
|
8379
8379
|
constructor(t, o) {
|
|
8380
8380
|
De(this, "startedAt");
|
|
8381
8381
|
De(this, "callback");
|
|
@@ -8398,7 +8398,7 @@ class kn {
|
|
|
8398
8398
|
clearTimeout(this.timer);
|
|
8399
8399
|
}
|
|
8400
8400
|
}
|
|
8401
|
-
function
|
|
8401
|
+
function kn(e = "var(--moz-color-on-accent)") {
|
|
8402
8402
|
return a`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8403
8403
|
<path
|
|
8404
8404
|
fill-rule="evenodd"
|
|
@@ -8408,7 +8408,7 @@ function En(e = "var(--moz-color-on-accent)") {
|
|
|
8408
8408
|
></path>
|
|
8409
8409
|
</svg>`;
|
|
8410
8410
|
}
|
|
8411
|
-
function
|
|
8411
|
+
function En(e = "var(--moz-color-on-accent)") {
|
|
8412
8412
|
return a`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8413
8413
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
8414
8414
|
<path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
|
|
@@ -8421,7 +8421,7 @@ function xn(e = "var(--moz-color-on-accent)") {
|
|
|
8421
8421
|
</g>
|
|
8422
8422
|
</svg>`;
|
|
8423
8423
|
}
|
|
8424
|
-
function
|
|
8424
|
+
function xn(e = "var(--moz-color-on-accent)") {
|
|
8425
8425
|
return a`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8426
8426
|
<path
|
|
8427
8427
|
fill-rule="evenodd"
|
|
@@ -8431,7 +8431,7 @@ function Ln(e = "var(--moz-color-on-accent)") {
|
|
|
8431
8431
|
></path>
|
|
8432
8432
|
</svg>`;
|
|
8433
8433
|
}
|
|
8434
|
-
function
|
|
8434
|
+
function Ln(e = "var(--moz-color-on-accent)") {
|
|
8435
8435
|
return a`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8436
8436
|
<mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
8437
8437
|
<path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
|
|
@@ -8444,12 +8444,12 @@ function Pn(e = "var(--moz-color-on-accent)") {
|
|
|
8444
8444
|
</g>
|
|
8445
8445
|
</svg>`;
|
|
8446
8446
|
}
|
|
8447
|
-
const
|
|
8447
|
+
const Pn = () => a`
|
|
8448
8448
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
8449
8449
|
<path d="M18 6 6 18M6 6l12 12" />
|
|
8450
8450
|
</svg>
|
|
8451
|
-
`,
|
|
8452
|
-
function
|
|
8451
|
+
`, mo = /* @__PURE__ */ new Set(["message", "type", "position", "duration", "dismissible", "queue", "pauseOnHover", "onDismiss", "class", "style", "inline", "composed", "showProgress", "progressClass", "exitDuration"]);
|
|
8452
|
+
function ho(e) {
|
|
8453
8453
|
switch (e) {
|
|
8454
8454
|
case "success":
|
|
8455
8455
|
return "bg-success";
|
|
@@ -8461,7 +8461,7 @@ function fo(e) {
|
|
|
8461
8461
|
return "bg-warning";
|
|
8462
8462
|
}
|
|
8463
8463
|
}
|
|
8464
|
-
function
|
|
8464
|
+
function Tn(e) {
|
|
8465
8465
|
switch (e) {
|
|
8466
8466
|
case "top":
|
|
8467
8467
|
case "bottom":
|
|
@@ -8475,7 +8475,7 @@ function zn(e) {
|
|
|
8475
8475
|
return "position-start";
|
|
8476
8476
|
}
|
|
8477
8477
|
}
|
|
8478
|
-
function
|
|
8478
|
+
function zn(e) {
|
|
8479
8479
|
switch (e) {
|
|
8480
8480
|
case "top":
|
|
8481
8481
|
case "top-right":
|
|
@@ -8488,10 +8488,10 @@ function Mn(e) {
|
|
|
8488
8488
|
return ".toast--bottom";
|
|
8489
8489
|
}
|
|
8490
8490
|
}
|
|
8491
|
-
function
|
|
8492
|
-
return e === "error" ?
|
|
8491
|
+
function Mn(e) {
|
|
8492
|
+
return e === "error" ? En("var(--moz-color-on-accent)") : e === "info" ? xn("var(--moz-color-on-accent)") : e === "success" ? kn("var(--moz-color-on-accent)") : Ln("var(--moz-color-on-accent)");
|
|
8493
8493
|
}
|
|
8494
|
-
const
|
|
8494
|
+
const Oo = be({
|
|
8495
8495
|
name: "moz-toast",
|
|
8496
8496
|
defaults: {
|
|
8497
8497
|
type: "warning",
|
|
@@ -8528,7 +8528,7 @@ const No = be({
|
|
|
8528
8528
|
}
|
|
8529
8529
|
t = !0, e.requestUpdate();
|
|
8530
8530
|
const y = e.props.duration;
|
|
8531
|
-
y && (l = new
|
|
8531
|
+
y && (l = new Sn(r, y), e.props.showProgress && (i = setInterval(() => {
|
|
8532
8532
|
h = l ? Math.max(0, Math.min(100, l.remaining() / y * 100)) : 0, e.requestUpdate();
|
|
8533
8533
|
}, 50)));
|
|
8534
8534
|
}, u = (y) => {
|
|
@@ -8544,11 +8544,11 @@ const No = be({
|
|
|
8544
8544
|
return a`
|
|
8545
8545
|
<div
|
|
8546
8546
|
data-testid="toast-container"
|
|
8547
|
-
${pe(we(y,
|
|
8547
|
+
${pe(we(y, mo))}
|
|
8548
8548
|
role=${y.type === "error" ? "alert" : "status"}
|
|
8549
8549
|
aria-live=${y.type === "error" ? "assertive" : "polite"}
|
|
8550
8550
|
aria-atomic="true"
|
|
8551
|
-
class=${V("moz-toast", "moz-toast-composed",
|
|
8551
|
+
class=${V("moz-toast", "moz-toast-composed", ho(y.type), y.class)}
|
|
8552
8552
|
style=${t ? w : "display: none;"}
|
|
8553
8553
|
@mouseenter=${() => u(!0)}
|
|
8554
8554
|
@mouseleave=${() => u(!1)}
|
|
@@ -8563,7 +8563,7 @@ const No = be({
|
|
|
8563
8563
|
${e.slots.has("actions") ? a`<div class="moz-toast-actions">${e.slot("actions")}</div>` : w}
|
|
8564
8564
|
</div>
|
|
8565
8565
|
${y.dismissible ? a`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${r}>
|
|
8566
|
-
${
|
|
8566
|
+
${Pn()}
|
|
8567
8567
|
</button>` : w}
|
|
8568
8568
|
</div>
|
|
8569
8569
|
`;
|
|
@@ -8572,17 +8572,17 @@ const No = be({
|
|
|
8572
8572
|
return a`
|
|
8573
8573
|
<div
|
|
8574
8574
|
data-testid="toast-container"
|
|
8575
|
-
${pe(we(y,
|
|
8575
|
+
${pe(we(y, mo))}
|
|
8576
8576
|
role=${y.type === "error" ? "alert" : "status"}
|
|
8577
8577
|
aria-live=${y.type === "error" ? "assertive" : "polite"}
|
|
8578
8578
|
aria-atomic="true"
|
|
8579
|
-
class=${V("moz-toast",
|
|
8579
|
+
class=${V("moz-toast", ho(y.type), Tn(y.position), y.class)}
|
|
8580
8580
|
style=${t ? w : "display: none;"}
|
|
8581
8581
|
@mouseenter=${() => u(!0)}
|
|
8582
8582
|
@mouseleave=${() => u(!1)}
|
|
8583
8583
|
@click=${v}
|
|
8584
8584
|
>
|
|
8585
|
-
${
|
|
8585
|
+
${Mn(y.type)}
|
|
8586
8586
|
<span class="toast-message">${y.message}</span>
|
|
8587
8587
|
</div>
|
|
8588
8588
|
`;
|
|
@@ -8592,7 +8592,7 @@ const No = be({
|
|
|
8592
8592
|
p();
|
|
8593
8593
|
},
|
|
8594
8594
|
// 제자리 렌더면 포털을 열지 않는다(null → defineHeadless 가 포털 미개방).
|
|
8595
|
-
getPortalContainer: () => e.props.inline ? null : document.querySelector(
|
|
8595
|
+
getPortalContainer: () => e.props.inline ? null : document.querySelector(zn(e.props.position)),
|
|
8596
8596
|
renderPortal() {
|
|
8597
8597
|
return e.props.inline ? w : S();
|
|
8598
8598
|
},
|
|
@@ -8601,10 +8601,10 @@ const No = be({
|
|
|
8601
8601
|
}
|
|
8602
8602
|
};
|
|
8603
8603
|
}
|
|
8604
|
-
}),
|
|
8604
|
+
}), Vn = (e) => {
|
|
8605
8605
|
var t;
|
|
8606
8606
|
typeof e.remove < "u" ? e.remove() : (t = e.parentNode) == null || t.removeChild(e);
|
|
8607
|
-
},
|
|
8607
|
+
}, hi = (e = {}) => {
|
|
8608
8608
|
const t = (o) => {
|
|
8609
8609
|
let l;
|
|
8610
8610
|
typeof o == "string" && (l = o);
|
|
@@ -8613,7 +8613,7 @@ const No = be({
|
|
|
8613
8613
|
const i = {
|
|
8614
8614
|
message: l || o.message || "",
|
|
8615
8615
|
onDismiss: () => {
|
|
8616
|
-
|
|
8616
|
+
Vn(n);
|
|
8617
8617
|
}
|
|
8618
8618
|
}, h = Object.assign(
|
|
8619
8619
|
{},
|
|
@@ -8621,7 +8621,7 @@ const No = be({
|
|
|
8621
8621
|
e,
|
|
8622
8622
|
typeof o == "string" ? {} : o
|
|
8623
8623
|
);
|
|
8624
|
-
document.body.appendChild(n),
|
|
8624
|
+
document.body.appendChild(n), Oo(n, h, (() => {
|
|
8625
8625
|
}));
|
|
8626
8626
|
};
|
|
8627
8627
|
return {
|
|
@@ -8639,9 +8639,9 @@ const No = be({
|
|
|
8639
8639
|
return t({ message: o, type: "warning", ...l });
|
|
8640
8640
|
}
|
|
8641
8641
|
};
|
|
8642
|
-
},
|
|
8642
|
+
}, fi = {
|
|
8643
8643
|
name: "MozToast",
|
|
8644
|
-
core:
|
|
8644
|
+
core: Oo,
|
|
8645
8645
|
props: [
|
|
8646
8646
|
"message",
|
|
8647
8647
|
"type",
|
|
@@ -8663,13 +8663,13 @@ const No = be({
|
|
|
8663
8663
|
expose: !1,
|
|
8664
8664
|
// 소비자가 스택 컨테이너를 쥐는 제자리 렌더에서는 항목 추가·제거가 prop 으로 오므로 그 틱에 반영한다.
|
|
8665
8665
|
syncUpdate: !0
|
|
8666
|
-
},
|
|
8666
|
+
}, fo = {
|
|
8667
8667
|
top: "bottom",
|
|
8668
8668
|
bottom: "top",
|
|
8669
8669
|
left: "right",
|
|
8670
8670
|
right: "left"
|
|
8671
8671
|
};
|
|
8672
|
-
function
|
|
8672
|
+
function go(e, t, o, l, n, i) {
|
|
8673
8673
|
const h = (e === "top" || e === "bottom" ? o.height : o.width) + n + i;
|
|
8674
8674
|
return {
|
|
8675
8675
|
top: t.top,
|
|
@@ -8678,20 +8678,20 @@ function vo(e, t, o, l, n, i) {
|
|
|
8678
8678
|
right: l.width - (t.left + t.width)
|
|
8679
8679
|
}[e] >= h;
|
|
8680
8680
|
}
|
|
8681
|
-
function
|
|
8681
|
+
function wt(e, t, o, l) {
|
|
8682
8682
|
return e === "start" ? t : e === "end" ? t + o - l : t + o / 2 - l / 2;
|
|
8683
8683
|
}
|
|
8684
|
-
function
|
|
8684
|
+
function Rt(e, t, o) {
|
|
8685
8685
|
return o < t ? t : Math.min(Math.max(e, t), o);
|
|
8686
8686
|
}
|
|
8687
|
-
function
|
|
8687
|
+
function No(e, t, o, l) {
|
|
8688
8688
|
const { align: n, sideOffset: i, collisionPadding: h } = l, d = l.arrowSize ?? 0;
|
|
8689
8689
|
let s = l.side;
|
|
8690
|
-
!
|
|
8690
|
+
!go(s, e, t, o, i, h) && go(fo[s], e, t, o, i, h) && (s = fo[s]);
|
|
8691
8691
|
const m = s === "top" || s === "bottom";
|
|
8692
8692
|
let r, p;
|
|
8693
|
-
s === "top" ? (p = e.top - t.height - i, r =
|
|
8694
|
-
const u = m ? e.left + e.width / 2 : e.top + e.height / 2, v = m ? r : p, $ = m ? t.width : t.height, I =
|
|
8693
|
+
s === "top" ? (p = e.top - t.height - i, r = wt(n, e.left, e.width, t.width)) : s === "bottom" ? (p = e.top + e.height + i, r = wt(n, e.left, e.width, t.width)) : s === "left" ? (r = e.left - t.width - i, p = wt(n, e.top, e.height, t.height)) : (r = e.left + e.width + i, p = wt(n, e.top, e.height, t.height)), m ? r = Rt(r, h, o.width - t.width - h) : p = Rt(p, h, o.height - t.height - h);
|
|
8694
|
+
const u = m ? e.left + e.width / 2 : e.top + e.height / 2, v = m ? r : p, $ = m ? t.width : t.height, I = Rt(u - v, d * 2, $ - d * 2), S = {
|
|
8695
8695
|
top: e.top - i - h,
|
|
8696
8696
|
bottom: o.height - (e.top + e.height) - i - h,
|
|
8697
8697
|
left: o.height - h * 2,
|
|
@@ -8699,7 +8699,7 @@ function Uo(e, t, o, l) {
|
|
|
8699
8699
|
}, y = Math.max(0, S[s]);
|
|
8700
8700
|
return { side: s, x: r, y: p, arrowOffset: I, availableHeight: y };
|
|
8701
8701
|
}
|
|
8702
|
-
const
|
|
8702
|
+
const An = No, Dn = /* @__PURE__ */ new Set([
|
|
8703
8703
|
"open",
|
|
8704
8704
|
"anchor",
|
|
8705
8705
|
"text",
|
|
@@ -8711,11 +8711,11 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8711
8711
|
"tooltipId",
|
|
8712
8712
|
"class",
|
|
8713
8713
|
"style"
|
|
8714
|
-
]),
|
|
8714
|
+
]), qn = 5, In = typeof requestAnimationFrame == "function" ? (e) => {
|
|
8715
8715
|
requestAnimationFrame(e);
|
|
8716
8716
|
} : (e) => {
|
|
8717
8717
|
setTimeout(e, 0);
|
|
8718
|
-
},
|
|
8718
|
+
}, Fn = be({
|
|
8719
8719
|
name: "moz-tooltip",
|
|
8720
8720
|
defaults: {
|
|
8721
8721
|
open: !1,
|
|
@@ -8731,7 +8731,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8731
8731
|
const i = () => !!e.props.open && !!e.props.anchor, h = () => {
|
|
8732
8732
|
const s = e.props.anchor, m = t.value;
|
|
8733
8733
|
if (!s || !m || !e.props.open) return;
|
|
8734
|
-
const r =
|
|
8734
|
+
const r = An(
|
|
8735
8735
|
s.getBoundingClientRect(),
|
|
8736
8736
|
{ width: m.offsetWidth, height: m.offsetHeight },
|
|
8737
8737
|
{ width: window.innerWidth, height: window.innerHeight },
|
|
@@ -8740,7 +8740,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8740
8740
|
align: e.props.align ?? "center",
|
|
8741
8741
|
sideOffset: e.props.sideOffset ?? 8,
|
|
8742
8742
|
collisionPadding: e.props.collisionPadding ?? 8,
|
|
8743
|
-
arrowSize:
|
|
8743
|
+
arrowSize: qn
|
|
8744
8744
|
}
|
|
8745
8745
|
);
|
|
8746
8746
|
o !== null && n && o.side === r.side && o.x === r.x && o.y === r.y && o.arrowOffset === r.arrowOffset || (o = r, n = !0, e.requestUpdate(), l !== r.side && (l = r.side, e.emit("placed", r.side)));
|
|
@@ -8757,8 +8757,8 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8757
8757
|
const s = e.props;
|
|
8758
8758
|
if (!i())
|
|
8759
8759
|
return o = null, l = null, n = !1, w;
|
|
8760
|
-
|
|
8761
|
-
const m = (o == null ? void 0 : o.side) ?? s.side ?? "top", r = we(s,
|
|
8760
|
+
In(h);
|
|
8761
|
+
const m = (o == null ? void 0 : o.side) ?? s.side ?? "top", r = we(s, Dn), p = m === "top" || m === "bottom" ? "left" : "top";
|
|
8762
8762
|
return a`
|
|
8763
8763
|
<div
|
|
8764
8764
|
${ne(t)}
|
|
@@ -8795,14 +8795,14 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8795
8795
|
}
|
|
8796
8796
|
};
|
|
8797
8797
|
}
|
|
8798
|
-
}),
|
|
8798
|
+
}), gi = {
|
|
8799
8799
|
name: "MozTooltip",
|
|
8800
|
-
core:
|
|
8800
|
+
core: Fn,
|
|
8801
8801
|
props: ["open", "anchor", "text", "side", "align", "sideOffset", "collisionPadding", "arrow", "tooltipId"],
|
|
8802
8802
|
emits: ["placed"],
|
|
8803
8803
|
slots: ["content"],
|
|
8804
8804
|
expose: !0
|
|
8805
|
-
},
|
|
8805
|
+
}, Rn = /* @__PURE__ */ new Set([
|
|
8806
8806
|
"open",
|
|
8807
8807
|
"anchor",
|
|
8808
8808
|
"side",
|
|
@@ -8814,11 +8814,11 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8814
8814
|
"popoverId",
|
|
8815
8815
|
"class",
|
|
8816
8816
|
"style"
|
|
8817
|
-
]),
|
|
8817
|
+
]), Bn = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', vo = typeof requestAnimationFrame == "function" ? (e) => {
|
|
8818
8818
|
requestAnimationFrame(e);
|
|
8819
8819
|
} : (e) => {
|
|
8820
8820
|
setTimeout(e, 0);
|
|
8821
|
-
},
|
|
8821
|
+
}, Hn = be({
|
|
8822
8822
|
name: "moz-popover",
|
|
8823
8823
|
defaults: {
|
|
8824
8824
|
open: !1,
|
|
@@ -8835,13 +8835,13 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8835
8835
|
let o = null, l = null, n = !1, i = !1, h = null, d = null;
|
|
8836
8836
|
const s = () => !!e.props.open && !!e.props.anchor, m = () => {
|
|
8837
8837
|
const E = t.value;
|
|
8838
|
-
return E ? Array.from(E.querySelectorAll(
|
|
8838
|
+
return E ? Array.from(E.querySelectorAll(Bn)).filter(
|
|
8839
8839
|
(z) => z.getAttribute("aria-hidden") !== "true"
|
|
8840
8840
|
) : [];
|
|
8841
8841
|
}, r = () => {
|
|
8842
8842
|
const E = e.props.anchor, z = t.value;
|
|
8843
8843
|
if (!E || !z || !e.props.open) return;
|
|
8844
|
-
const X =
|
|
8844
|
+
const X = No(
|
|
8845
8845
|
E.getBoundingClientRect(),
|
|
8846
8846
|
{ width: z.offsetWidth, height: z.offsetHeight },
|
|
8847
8847
|
{ width: window.innerWidth, height: window.innerHeight },
|
|
@@ -8873,7 +8873,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8873
8873
|
const X = z[0], W = z[z.length - 1], te = document.activeElement;
|
|
8874
8874
|
E.shiftKey && (te === X || te === t.value) ? (E.preventDefault(), W.focus()) : !E.shiftKey && te === W && (E.preventDefault(), X.focus());
|
|
8875
8875
|
}, S = () => {
|
|
8876
|
-
d = document.activeElement ?? null, h =
|
|
8876
|
+
d = document.activeElement ?? null, h = yo(v), document.addEventListener("pointerdown", $, !0), vo(() => {
|
|
8877
8877
|
var z;
|
|
8878
8878
|
if (!s()) return;
|
|
8879
8879
|
const E = p("moz.openAutoFocus");
|
|
@@ -8899,8 +8899,8 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8899
8899
|
var re;
|
|
8900
8900
|
const E = e.props, z = s();
|
|
8901
8901
|
if (z !== i && (i = z, z ? S() : y()), !z) return w;
|
|
8902
|
-
|
|
8903
|
-
const X = (o == null ? void 0 : o.side) ?? E.side ?? "bottom", W = we(E,
|
|
8902
|
+
vo(r);
|
|
8903
|
+
const X = (o == null ? void 0 : o.side) ?? E.side ?? "bottom", W = we(E, Rn), te = ((re = E.anchor) == null ? void 0 : re.offsetWidth) ?? 0;
|
|
8904
8904
|
return a`
|
|
8905
8905
|
<div
|
|
8906
8906
|
${ne(t)}
|
|
@@ -8945,9 +8945,9 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8945
8945
|
}
|
|
8946
8946
|
};
|
|
8947
8947
|
}
|
|
8948
|
-
}),
|
|
8948
|
+
}), vi = {
|
|
8949
8949
|
name: "MozPopover",
|
|
8950
|
-
core:
|
|
8950
|
+
core: Hn,
|
|
8951
8951
|
props: [
|
|
8952
8952
|
"open",
|
|
8953
8953
|
"anchor",
|
|
@@ -8972,7 +8972,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8972
8972
|
// 소비처는 `open` 을 바꾼 **그 커밋에서** 패널이 있다고 기대한다(Radix 가 그랬다).
|
|
8973
8973
|
// microtask 배치를 두면 한 틱 늦어 같은 틱의 DOM 조회가 실패한다.
|
|
8974
8974
|
syncUpdate: !0
|
|
8975
|
-
},
|
|
8975
|
+
}, On = /* @__PURE__ */ new Set(["open", "contentId", "disabled", "forceMount", "class", "style"]), Nn = "--moz-collapsible-content-height", Un = be({
|
|
8976
8976
|
name: "moz-collapsible",
|
|
8977
8977
|
defaults: { open: !1, disabled: !1, forceMount: !1 },
|
|
8978
8978
|
setup(e) {
|
|
@@ -8981,7 +8981,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8981
8981
|
const d = t;
|
|
8982
8982
|
if (!d) return;
|
|
8983
8983
|
const s = d.scrollHeight;
|
|
8984
|
-
d.style.setProperty(
|
|
8984
|
+
d.style.setProperty(Nn, `${s}px`), s !== l && (l = s, e.emit("heightChange", s));
|
|
8985
8985
|
}, i = () => {
|
|
8986
8986
|
o == null || o.disconnect(), o = null;
|
|
8987
8987
|
}, h = (d) => {
|
|
@@ -8995,7 +8995,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
8995
8995
|
render() {
|
|
8996
8996
|
const d = e.props, s = !!d.open;
|
|
8997
8997
|
if (!s && !d.forceMount) return w;
|
|
8998
|
-
const m = we(d,
|
|
8998
|
+
const m = we(d, On);
|
|
8999
8999
|
return a`<div
|
|
9000
9000
|
${ne(h)}
|
|
9001
9001
|
class=${V("moz-collapsible-content", d.class)}
|
|
@@ -9011,9 +9011,9 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
9011
9011
|
}
|
|
9012
9012
|
};
|
|
9013
9013
|
}
|
|
9014
|
-
}),
|
|
9014
|
+
}), wi = {
|
|
9015
9015
|
name: "MozCollapsible",
|
|
9016
|
-
core:
|
|
9016
|
+
core: Un,
|
|
9017
9017
|
props: ["open", "contentId", "disabled", "forceMount"],
|
|
9018
9018
|
emits: ["heightChange"],
|
|
9019
9019
|
slots: ["content"],
|
|
@@ -9021,7 +9021,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
9021
9021
|
// 소비처는 `open` 을 바꾼 **그 커밋에서** 패널이 있다고 기대한다(Radix Collapsible 이 그랬다).
|
|
9022
9022
|
// microtask 배치를 두면 한 틱 늦어 같은 틱의 DOM 조회가 실패한다.
|
|
9023
9023
|
syncUpdate: !0
|
|
9024
|
-
},
|
|
9024
|
+
}, _n = /* @__PURE__ */ new Set(["src", "alt", "delayMs", "imageClass", "fallbackClass", "class", "style"]), Wn = be({
|
|
9025
9025
|
name: "moz-avatar",
|
|
9026
9026
|
setup(e) {
|
|
9027
9027
|
let t = "idle", o, l = !0, n, i;
|
|
@@ -9057,7 +9057,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
9057
9057
|
}), {
|
|
9058
9058
|
render() {
|
|
9059
9059
|
m();
|
|
9060
|
-
const r = e.props, p = we(r,
|
|
9060
|
+
const r = e.props, p = we(r, _n), u = t === "loaded", v = !u && l;
|
|
9061
9061
|
return a`<span
|
|
9062
9062
|
class=${V("moz-avatar", r.class)}
|
|
9063
9063
|
data-status=${t}
|
|
@@ -9079,14 +9079,14 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
9079
9079
|
}
|
|
9080
9080
|
};
|
|
9081
9081
|
}
|
|
9082
|
-
}),
|
|
9082
|
+
}), bi = {
|
|
9083
9083
|
name: "MozAvatar",
|
|
9084
|
-
core:
|
|
9084
|
+
core: Wn,
|
|
9085
9085
|
props: ["src", "alt", "delayMs", "imageClass", "fallbackClass"],
|
|
9086
9086
|
emits: ["loadingStatusChange"],
|
|
9087
9087
|
slots: ["fallback"],
|
|
9088
9088
|
expose: !0
|
|
9089
|
-
},
|
|
9089
|
+
}, Kn = /* @__PURE__ */ new Set(["viewport", "interactionRoot", "scrollbarVisibility", "orientation", "scrollbarClass", "thumbClass", "class", "style"]), Gn = 20, Yn = be({
|
|
9090
9090
|
name: "moz-scroll-area",
|
|
9091
9091
|
defaults: { orientation: "vertical", scrollbarVisibility: "always" },
|
|
9092
9092
|
setup(e) {
|
|
@@ -9126,7 +9126,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
9126
9126
|
if (!H || !Y) return !0;
|
|
9127
9127
|
const j = A ? H.clientHeight : H.clientWidth;
|
|
9128
9128
|
if (j <= 0) return !0;
|
|
9129
|
-
const Ce = f / B, qe = Math.max(j * Ce,
|
|
9129
|
+
const Ce = f / B, qe = Math.max(j * Ce, Gn), _e = j - qe, He = A ? T.scrollTop : T.scrollLeft, c = B - f, P = c > 0 ? He / c * _e : 0;
|
|
9130
9130
|
return A ? (Y.style.height = `${qe}px`, Y.style.transform = `translateY(${P}px)`) : (Y.style.width = `${qe}px`, Y.style.transform = `translateX(${P}px)`), !0;
|
|
9131
9131
|
}, ie = () => {
|
|
9132
9132
|
const k = se("vertical"), T = se("horizontal");
|
|
@@ -9206,7 +9206,7 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
9206
9206
|
return {
|
|
9207
9207
|
render() {
|
|
9208
9208
|
x(), D();
|
|
9209
|
-
const k = e.props, T = we(k,
|
|
9209
|
+
const k = e.props, T = we(k, Kn), A = G("vertical") && G("horizontal");
|
|
9210
9210
|
return a`<div
|
|
9211
9211
|
class=${V("moz-scroll-area-bars", k.class)}
|
|
9212
9212
|
data-orientation=${k.orientation ?? "vertical"}
|
|
@@ -9226,26 +9226,26 @@ const Dn = Uo, qn = /* @__PURE__ */ new Set([
|
|
|
9226
9226
|
}
|
|
9227
9227
|
};
|
|
9228
9228
|
}
|
|
9229
|
-
}),
|
|
9229
|
+
}), Ci = {
|
|
9230
9230
|
name: "MozScrollAreaBars",
|
|
9231
|
-
core:
|
|
9231
|
+
core: Yn,
|
|
9232
9232
|
props: ["viewport", "interactionRoot", "scrollbarVisibility", "orientation", "scrollbarClass", "thumbClass"],
|
|
9233
9233
|
emits: ["scroll"],
|
|
9234
9234
|
expose: !1,
|
|
9235
9235
|
// 뷰포트는 래퍼의 첫 커밋에서 생기고 그 다음 커밋에 prop 으로 들어온다. 배치를 두면
|
|
9236
9236
|
// 스크롤바가 또 한 틱 늦어 같은 커밋의 DOM 조회가 실패한다.
|
|
9237
9237
|
syncUpdate: !0
|
|
9238
|
-
},
|
|
9239
|
-
function
|
|
9238
|
+
}, Zn = ["accent", "neutral", "info", "success", "warning", "danger"], jn = ["soft", "outline", "solid"], Xn = ["sm", "md", "lg"], Qn = /* @__PURE__ */ new Set(["tone", "appearance", "size", "dot", "text", "class", "style"]);
|
|
9239
|
+
function Bt(e, t, o) {
|
|
9240
9240
|
return typeof t == "string" && e.includes(t) ? t : o;
|
|
9241
9241
|
}
|
|
9242
|
-
const
|
|
9242
|
+
const Jn = be({
|
|
9243
9243
|
name: "moz-badge",
|
|
9244
9244
|
defaults: { tone: "neutral", appearance: "soft", size: "md", dot: !1 },
|
|
9245
9245
|
setup(e) {
|
|
9246
9246
|
return {
|
|
9247
9247
|
render() {
|
|
9248
|
-
const t = e.props, o = we(t,
|
|
9248
|
+
const t = e.props, o = we(t, Qn), l = Bt(Zn, t.tone, "neutral"), n = Bt(jn, t.appearance, "soft"), i = Bt(Xn, t.size, "md"), h = e.slots.has("default") ? e.slot("default") : t.text ?? w;
|
|
9249
9249
|
return a`<span
|
|
9250
9250
|
class=${V("moz-badge", `size-${i}`, t.class)}
|
|
9251
9251
|
data-tone=${l}
|
|
@@ -9257,9 +9257,9 @@ const er = be({
|
|
|
9257
9257
|
}
|
|
9258
9258
|
};
|
|
9259
9259
|
}
|
|
9260
|
-
}),
|
|
9260
|
+
}), yi = {
|
|
9261
9261
|
name: "MozBadge",
|
|
9262
|
-
core:
|
|
9262
|
+
core: Jn,
|
|
9263
9263
|
props: ["tone", "appearance", "size", "dot", "text"],
|
|
9264
9264
|
emits: [],
|
|
9265
9265
|
slots: ["default"],
|
|
@@ -9267,7 +9267,7 @@ const er = be({
|
|
|
9267
9267
|
// 상태·이벤트가 없는 표시 컴포넌트라 갱신을 microtask 로 미룰 이유가 없다. 소비 앱 파사드가 `text`
|
|
9268
9268
|
// 로 넘기는 문자열이 rerender 직후 동기적으로 보여야 소비처의 동기 단언이 깨지지 않는다(ITSM-2026-002626).
|
|
9269
9269
|
syncUpdate: !0
|
|
9270
|
-
},
|
|
9270
|
+
}, er = ["accent", "neutral", "info", "success", "warning", "danger"], tr = ["outline", "soft"], or = ["sm", "md"], sr = /* @__PURE__ */ new Set([
|
|
9271
9271
|
"tone",
|
|
9272
9272
|
"appearance",
|
|
9273
9273
|
"size",
|
|
@@ -9280,10 +9280,10 @@ const er = be({
|
|
|
9280
9280
|
"class",
|
|
9281
9281
|
"style"
|
|
9282
9282
|
]);
|
|
9283
|
-
function
|
|
9283
|
+
function Ht(e, t, o) {
|
|
9284
9284
|
return typeof t == "string" && e.includes(t) ? t : o;
|
|
9285
9285
|
}
|
|
9286
|
-
const
|
|
9286
|
+
const lr = be({
|
|
9287
9287
|
name: "moz-chip",
|
|
9288
9288
|
defaults: {
|
|
9289
9289
|
tone: "accent",
|
|
@@ -9302,7 +9302,7 @@ const nr = be({
|
|
|
9302
9302
|
};
|
|
9303
9303
|
return {
|
|
9304
9304
|
render() {
|
|
9305
|
-
const l = e.props, n = we(l,
|
|
9305
|
+
const l = e.props, n = we(l, sr), i = Ht(er, l.tone, "accent"), h = Ht(tr, l.appearance, "outline"), d = Ht(or, l.size, "md"), s = !!l.disabled, m = e.slots.has("icon") ? a`<span class="moz-chip-icon">${e.slot("icon")}</span>` : w, r = e.slots.has("default") ? e.slot("default") : l.text ?? w;
|
|
9306
9306
|
if (l.removable) {
|
|
9307
9307
|
const v = l.labelInteractive !== !1 ? a`<button type="button" class="moz-chip-label" ?disabled=${s} @click=${t}
|
|
9308
9308
|
>${m}${r}</button
|
|
@@ -9319,7 +9319,7 @@ const nr = be({
|
|
|
9319
9319
|
aria-label=${l.removeLabel || e.locale.Chip.remove}
|
|
9320
9320
|
?disabled=${s}
|
|
9321
9321
|
@click=${o}
|
|
9322
|
-
>${
|
|
9322
|
+
>${Ut("currentColor")}</button
|
|
9323
9323
|
></span
|
|
9324
9324
|
>`;
|
|
9325
9325
|
}
|
|
@@ -9339,9 +9339,9 @@ const nr = be({
|
|
|
9339
9339
|
}
|
|
9340
9340
|
};
|
|
9341
9341
|
}
|
|
9342
|
-
}),
|
|
9342
|
+
}), $i = {
|
|
9343
9343
|
name: "MozChip",
|
|
9344
|
-
core:
|
|
9344
|
+
core: lr,
|
|
9345
9345
|
props: ["tone", "appearance", "size", "selected", "disabled", "removable", "labelInteractive", "removeLabel", "text"],
|
|
9346
9346
|
emits: ["click", "remove"],
|
|
9347
9347
|
slots: ["icon", "default"],
|
|
@@ -9349,7 +9349,7 @@ const nr = be({
|
|
|
9349
9349
|
// 상태·타이머가 없는 컨트롤이라 갱신을 microtask 로 미룰 이유가 없다 — `selected` 가 바뀐 뒤
|
|
9350
9350
|
// 소비처가 곧바로 aria-pressed 를 읽는다(Badge 와 같은 이유, ITSM-2026-002626).
|
|
9351
9351
|
syncUpdate: !0
|
|
9352
|
-
},
|
|
9352
|
+
}, wo = () => a`<svg
|
|
9353
9353
|
width="20"
|
|
9354
9354
|
height="20"
|
|
9355
9355
|
viewBox="0 0 20 20"
|
|
@@ -9357,28 +9357,64 @@ const nr = be({
|
|
|
9357
9357
|
xmlns="http://www.w3.org/2000/svg"
|
|
9358
9358
|
aria-hidden="true"
|
|
9359
9359
|
>
|
|
9360
|
-
|
|
9361
|
-
</svg>`, bo = () => pt(a`<path
|
|
9360
|
+
<path
|
|
9362
9361
|
fill-rule="evenodd"
|
|
9363
9362
|
clip-rule="evenodd"
|
|
9364
9363
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 11-2 0 1 1 0 012 0zm-2 3a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
|
|
9365
|
-
></path
|
|
9364
|
+
></path>
|
|
9365
|
+
</svg>`, nr = () => a`<svg
|
|
9366
|
+
width="20"
|
|
9367
|
+
height="20"
|
|
9368
|
+
viewBox="0 0 20 20"
|
|
9369
|
+
fill="currentColor"
|
|
9370
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9371
|
+
aria-hidden="true"
|
|
9372
|
+
>
|
|
9373
|
+
<path
|
|
9366
9374
|
fill-rule="evenodd"
|
|
9367
9375
|
clip-rule="evenodd"
|
|
9368
9376
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
|
|
9369
|
-
></path
|
|
9377
|
+
></path>
|
|
9378
|
+
</svg>`, rr = () => a`<svg
|
|
9379
|
+
width="20"
|
|
9380
|
+
height="20"
|
|
9381
|
+
viewBox="0 0 20 20"
|
|
9382
|
+
fill="currentColor"
|
|
9383
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9384
|
+
aria-hidden="true"
|
|
9385
|
+
>
|
|
9386
|
+
<path
|
|
9370
9387
|
fill-rule="evenodd"
|
|
9371
9388
|
clip-rule="evenodd"
|
|
9372
9389
|
d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"
|
|
9373
|
-
></path
|
|
9390
|
+
></path>
|
|
9391
|
+
</svg>`, ir = () => a`<svg
|
|
9392
|
+
width="20"
|
|
9393
|
+
height="20"
|
|
9394
|
+
viewBox="0 0 20 20"
|
|
9395
|
+
fill="currentColor"
|
|
9396
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9397
|
+
aria-hidden="true"
|
|
9398
|
+
>
|
|
9399
|
+
<path
|
|
9374
9400
|
fill-rule="evenodd"
|
|
9375
9401
|
clip-rule="evenodd"
|
|
9376
9402
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
|
|
9377
|
-
></path
|
|
9403
|
+
></path>
|
|
9404
|
+
</svg>`, ar = () => a`<svg
|
|
9405
|
+
width="20"
|
|
9406
|
+
height="20"
|
|
9407
|
+
viewBox="0 0 20 20"
|
|
9408
|
+
fill="currentColor"
|
|
9409
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9410
|
+
aria-hidden="true"
|
|
9411
|
+
>
|
|
9412
|
+
<path
|
|
9378
9413
|
fill-rule="evenodd"
|
|
9379
9414
|
clip-rule="evenodd"
|
|
9380
9415
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zm0-12a1 1 0 00-1 1v4a1 1 0 102 0V7a1 1 0 00-1-1zm0 8a1 1 0 100-2 1 1 0 000 2z"
|
|
9381
|
-
></path
|
|
9416
|
+
></path>
|
|
9417
|
+
</svg>`, cr = () => a`<svg
|
|
9382
9418
|
width="14"
|
|
9383
9419
|
height="14"
|
|
9384
9420
|
viewBox="0 0 24 24"
|
|
@@ -9390,7 +9426,7 @@ const nr = be({
|
|
|
9390
9426
|
aria-hidden="true"
|
|
9391
9427
|
>
|
|
9392
9428
|
<path d="M18 6 6 18M6 6l12 12"></path>
|
|
9393
|
-
</svg>`,
|
|
9429
|
+
</svg>`, dr = ["info", "success", "warning", "danger", "neutral", "accent"], ur = /* @__PURE__ */ new Set([
|
|
9394
9430
|
"tone",
|
|
9395
9431
|
"title",
|
|
9396
9432
|
"text",
|
|
@@ -9401,26 +9437,26 @@ const nr = be({
|
|
|
9401
9437
|
"live",
|
|
9402
9438
|
"class",
|
|
9403
9439
|
"style"
|
|
9404
|
-
]),
|
|
9405
|
-
info:
|
|
9406
|
-
success:
|
|
9407
|
-
warning:
|
|
9408
|
-
danger:
|
|
9409
|
-
neutral:
|
|
9440
|
+
]), pr = {
|
|
9441
|
+
info: wo,
|
|
9442
|
+
success: nr,
|
|
9443
|
+
warning: rr,
|
|
9444
|
+
danger: ir,
|
|
9445
|
+
neutral: ar,
|
|
9410
9446
|
// 브랜드 안내는 정보 안내와 같은 기호를 쓴다 — 색(data-tone)이 의미를 가른다.
|
|
9411
|
-
accent:
|
|
9447
|
+
accent: wo
|
|
9412
9448
|
};
|
|
9413
|
-
function
|
|
9414
|
-
return typeof e == "string" &&
|
|
9449
|
+
function mr(e) {
|
|
9450
|
+
return typeof e == "string" && dr.includes(e) ? e : "info";
|
|
9415
9451
|
}
|
|
9416
|
-
const
|
|
9452
|
+
const hr = be({
|
|
9417
9453
|
name: "moz-callout",
|
|
9418
9454
|
defaults: { tone: "info", dismissible: !1, hideIcon: !1, compact: !1, live: !1 },
|
|
9419
9455
|
setup(e) {
|
|
9420
9456
|
const t = (o) => e.emit("dismiss", o);
|
|
9421
9457
|
return {
|
|
9422
9458
|
render() {
|
|
9423
|
-
const o = e.props, l = we(o,
|
|
9459
|
+
const o = e.props, l = we(o, ur), n = mr(o.tone), i = n === "danger" || n === "warning", h = !!o.live, s = e.slots.has("heading") ? e.slot("heading") : o.title ? o.title : void 0, m = e.slots.has("default") ? e.slot("default") : o.text ?? w;
|
|
9424
9460
|
return a`<div
|
|
9425
9461
|
class=${V("moz-callout", { compact: !!o.compact }, o.class)}
|
|
9426
9462
|
data-tone=${n}
|
|
@@ -9431,7 +9467,7 @@ const fr = be({
|
|
|
9431
9467
|
${pe(l)}
|
|
9432
9468
|
>
|
|
9433
9469
|
${o.hideIcon ? w : a`<span class="moz-callout-icon"
|
|
9434
|
-
>${e.slots.has("icon") ? e.slot("icon") :
|
|
9470
|
+
>${e.slots.has("icon") ? e.slot("icon") : pr[n]()}</span
|
|
9435
9471
|
>`}
|
|
9436
9472
|
<div class="moz-callout-body">
|
|
9437
9473
|
${s !== void 0 ? a`<div class="moz-callout-title">${s}</div>` : w}
|
|
@@ -9443,15 +9479,15 @@ const fr = be({
|
|
|
9443
9479
|
aria-label=${o.dismissLabel || e.locale.Callout.dismiss}
|
|
9444
9480
|
@click=${t}
|
|
9445
9481
|
>
|
|
9446
|
-
${
|
|
9482
|
+
${cr()}
|
|
9447
9483
|
</button>` : w}
|
|
9448
9484
|
</div>`;
|
|
9449
9485
|
}
|
|
9450
9486
|
};
|
|
9451
9487
|
}
|
|
9452
|
-
}),
|
|
9488
|
+
}), Si = {
|
|
9453
9489
|
name: "MozCallout",
|
|
9454
|
-
core:
|
|
9490
|
+
core: hr,
|
|
9455
9491
|
props: ["tone", "title", "text", "dismissible", "dismissLabel", "hideIcon", "compact", "live"],
|
|
9456
9492
|
emits: ["dismiss"],
|
|
9457
9493
|
slots: ["icon", "heading", "default"],
|
|
@@ -9460,128 +9496,128 @@ const fr = be({
|
|
|
9460
9496
|
syncUpdate: !0
|
|
9461
9497
|
};
|
|
9462
9498
|
export {
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9499
|
+
bi as AVATAR_SPEC,
|
|
9500
|
+
jn as BADGE_APPEARANCES,
|
|
9501
|
+
Xn as BADGE_SIZES,
|
|
9502
|
+
yi as BADGE_SPEC,
|
|
9503
|
+
Zn as BADGE_TONES,
|
|
9504
|
+
Kr as BREADCRUMB_SPEC,
|
|
9505
|
+
Ur as BUTTON_SPEC,
|
|
9506
|
+
oi as CALENDAR_SPEC,
|
|
9507
|
+
Si as CALLOUT_SPEC,
|
|
9508
|
+
dr as CALLOUT_TONES,
|
|
9509
|
+
Yr as CHECKBOX_SPEC,
|
|
9510
|
+
tr as CHIP_APPEARANCES,
|
|
9511
|
+
or as CHIP_SIZES,
|
|
9512
|
+
$i as CHIP_SPEC,
|
|
9513
|
+
er as CHIP_TONES,
|
|
9514
|
+
Nn as COLLAPSIBLE_HEIGHT_VAR,
|
|
9515
|
+
wi as COLLAPSIBLE_SPEC,
|
|
9516
|
+
ci as CONTEXTMENU_SPEC,
|
|
9517
|
+
mi as CONTROLLER_SPEC,
|
|
9518
|
+
rs as ChromeComponent,
|
|
9519
|
+
si as DATEINPUT_SPEC,
|
|
9520
|
+
io as DEFAULT_TREE_PROPS,
|
|
9521
|
+
Gr as EMPTYSTATE_SPEC,
|
|
9522
|
+
jr as INPUT_SPEC,
|
|
9523
|
+
_r as LABEL_SPEC,
|
|
9524
|
+
ri as MULTISELECT_SPEC,
|
|
9525
|
+
Jr as NUMBERINPUT_SPEC,
|
|
9526
|
+
Ir as Observable,
|
|
9527
|
+
zt as Overlay,
|
|
9528
|
+
Xr as PASSWORDINPUT_SPEC,
|
|
9529
|
+
vi as POPOVER_SPEC,
|
|
9530
|
+
li as POPUP_SPEC,
|
|
9531
|
+
Ot as PortalHost,
|
|
9532
|
+
Zr as RADIO_SPEC,
|
|
9533
|
+
Ci as SCROLLAREA_SPEC,
|
|
9534
|
+
As as SEGMENT_TONES,
|
|
9535
|
+
ni as SELECT_SPEC,
|
|
9536
|
+
ti as SLIDER_SPEC,
|
|
9537
|
+
pi as SPLITPANE_SPEC,
|
|
9538
|
+
is as SlotHost,
|
|
9539
|
+
di as TABLESELECT_SPEC,
|
|
9540
|
+
ei as TAB_SPEC,
|
|
9541
|
+
ai as TAGINPUT_SPEC,
|
|
9542
|
+
Qr as TEXTAREA_SPEC,
|
|
9543
|
+
ii as TIMEPICKER_SPEC,
|
|
9544
|
+
fi as TOAST_SPEC,
|
|
9545
|
+
Wr as TOGGLE_SPEC,
|
|
9546
|
+
gi as TOOLTIP_SPEC,
|
|
9547
|
+
ui as TREESELECT_SPEC,
|
|
9548
|
+
Sn as Timer,
|
|
9549
|
+
Po as breadcrumbTemplate,
|
|
9550
|
+
bt as buttonTemplate,
|
|
9551
|
+
It as checkboxTemplate,
|
|
9552
|
+
$o as circleLoader,
|
|
9517
9553
|
V as cn,
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
+
An as computeTooltipPlacement,
|
|
9555
|
+
Wn as createAvatar,
|
|
9556
|
+
Jn as createBadge,
|
|
9557
|
+
ys as createBreadCrumb,
|
|
9558
|
+
gs as createButton,
|
|
9559
|
+
Do as createCalendar,
|
|
9560
|
+
hr as createCallout,
|
|
9561
|
+
Vs as createCheckBox,
|
|
9562
|
+
lr as createChip,
|
|
9563
|
+
Un as createCollapsible,
|
|
9564
|
+
Kl as createContextMenu,
|
|
9565
|
+
$n as createController,
|
|
9566
|
+
ml as createDateInput,
|
|
9567
|
+
zs as createEmptyState,
|
|
9568
|
+
Fs as createInput,
|
|
9569
|
+
ws as createLabel,
|
|
9570
|
+
Al as createMultiSelect,
|
|
9571
|
+
js as createNumberInput,
|
|
9572
|
+
Ns as createPasswordInput,
|
|
9573
|
+
Hn as createPopover,
|
|
9574
|
+
Sl as createPopup,
|
|
9575
|
+
qs as createRadio,
|
|
9576
|
+
Yn as createScrollArea,
|
|
9577
|
+
Ll as createSelect,
|
|
9578
|
+
tl as createSlider,
|
|
9579
|
+
mn as createSplitPane,
|
|
9580
|
+
Js as createTab,
|
|
9581
|
+
en as createTableSelect,
|
|
9582
|
+
Nl as createTagInput,
|
|
9583
|
+
_s as createTextArea,
|
|
9584
|
+
Rl as createTimePicker,
|
|
9585
|
+
Oo as createToast,
|
|
9586
|
+
Cs as createToggle,
|
|
9587
|
+
Fn as createTooltip,
|
|
9588
|
+
un as createTreeSelect,
|
|
9589
|
+
Hr as createValidator,
|
|
9554
9590
|
Te as dayjs,
|
|
9555
|
-
|
|
9591
|
+
$s as defaultEmptyStateMessages,
|
|
9556
9592
|
be as defineHeadless,
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
|
|
9593
|
+
Nr as dismissLayerCount,
|
|
9594
|
+
Fr as enUS,
|
|
9595
|
+
as as generateUUID,
|
|
9596
|
+
Eo as iconArrowRight,
|
|
9597
|
+
zo as iconCheckBox,
|
|
9598
|
+
Mo as iconCheckBoxChecked,
|
|
9599
|
+
Vo as iconCheckboxIndeterminate,
|
|
9600
|
+
Xs as iconClose,
|
|
9601
|
+
xo as iconFavorite,
|
|
9602
|
+
Lo as iconFavoriteFilled,
|
|
9603
|
+
Ao as iconInfo,
|
|
9604
|
+
Rs as iconPasswordHidden,
|
|
9605
|
+
Bs as iconPasswordVisible,
|
|
9606
|
+
Br as jaJP,
|
|
9607
|
+
Jt as koKR,
|
|
9608
|
+
ko as labelClass,
|
|
9573
9609
|
Oe as labelTemplate,
|
|
9574
9610
|
ke as normalizeStyle,
|
|
9575
9611
|
we as pickRest,
|
|
9576
9612
|
ze as pxToRem,
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9613
|
+
yo as registerDismissLayer,
|
|
9614
|
+
Or as registerForeignLayer,
|
|
9615
|
+
Mt as registerSelfHandledLayer,
|
|
9580
9616
|
it as shallowEqual,
|
|
9581
9617
|
pe as spread,
|
|
9582
|
-
|
|
9618
|
+
Nt as toggleTemplate,
|
|
9583
9619
|
tt as uniqueId,
|
|
9584
|
-
|
|
9585
|
-
|
|
9620
|
+
hi as useToast,
|
|
9621
|
+
Rr as zhCN
|
|
9586
9622
|
};
|
|
9587
9623
|
//# sourceMappingURL=index.js.map
|