@illinois-grad/grad-vue 3.0.12 → 3.0.13
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/table/TableColumn.d.ts +8 -1
- package/dist/{grad-vue-85A5znlz.js → grad-vue-BkZSETi2.js} +495 -471
- package/dist/{grad-vue-85A5znlz.js.map → grad-vue-BkZSETi2.js.map} +1 -1
- package/dist/grad-vue-elements.css +27 -27
- package/dist/grad-vue-elements.js +781 -727
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
|
@@ -3219,8 +3219,8 @@ function ys(e, t, n) {
|
|
|
3219
3219
|
return i.def = r, i;
|
|
3220
3220
|
}
|
|
3221
3221
|
var bs = typeof HTMLElement < "u" ? HTMLElement : class {}, xs = class e extends bs {
|
|
3222
|
-
constructor(e, t = {}, n =
|
|
3223
|
-
super(), this._def = e, this._props = t, this._createApp = n, this._isVueCE = !0, this._instance = null, this._app = null, this._nonce = this._def.nonce, this._connected = !1, this._resolved = !1, this._patching = !1, this._dirty = !1, this._numberProps = null, this._styleChildren = /* @__PURE__ */ new WeakSet(), this._ob = null, this.shadowRoot && n !==
|
|
3222
|
+
constructor(e, t = {}, n = zs) {
|
|
3223
|
+
super(), this._def = e, this._props = t, this._createApp = n, this._isVueCE = !0, this._instance = null, this._app = null, this._nonce = this._def.nonce, this._connected = !1, this._resolved = !1, this._patching = !1, this._dirty = !1, this._numberProps = null, this._styleChildren = /* @__PURE__ */ new WeakSet(), this._ob = null, this.shadowRoot && n !== zs ? this._root = this.shadowRoot : e.shadowRoot === !1 ? this._root = this : (this.attachShadow(s({}, e.shadowRootOptions, { mode: "open" })), this._root = this.shadowRoot);
|
|
3224
3224
|
}
|
|
3225
3225
|
connectedCallback() {
|
|
3226
3226
|
if (!this.isConnected) return;
|
|
@@ -3298,7 +3298,7 @@ var bs = typeof HTMLElement < "u" ? HTMLElement : class {}, xs = class e extends
|
|
|
3298
3298
|
}
|
|
3299
3299
|
_update() {
|
|
3300
3300
|
let e = this._createVNode();
|
|
3301
|
-
this._app && (e.appContext = this._app._context),
|
|
3301
|
+
this._app && (e.appContext = this._app._context), Rs(e, this._root);
|
|
3302
3302
|
}
|
|
3303
3303
|
_createVNode() {
|
|
3304
3304
|
let e = {};
|
|
@@ -3376,11 +3376,41 @@ var bs = typeof HTMLElement < "u" ? HTMLElement : class {}, xs = class e extends
|
|
|
3376
3376
|
}, Ss = (e) => {
|
|
3377
3377
|
let t = e.props["onUpdate:modelValue"] || !1;
|
|
3378
3378
|
return d(t) ? (e) => ae(t, e) : t;
|
|
3379
|
-
}
|
|
3379
|
+
};
|
|
3380
|
+
function Cs(e) {
|
|
3381
|
+
e.target.composing = !0;
|
|
3382
|
+
}
|
|
3383
|
+
function ws(e) {
|
|
3384
|
+
let t = e.target;
|
|
3385
|
+
t.composing && (t.composing = !1, t.dispatchEvent(new Event("input")));
|
|
3386
|
+
}
|
|
3387
|
+
var Ts = /* @__PURE__ */ Symbol("_assign");
|
|
3388
|
+
function Es(e, t, n) {
|
|
3389
|
+
return t && (e = e.trim()), n && (e = se(e)), e;
|
|
3390
|
+
}
|
|
3391
|
+
var Ds = {
|
|
3392
|
+
created(e, { modifiers: { lazy: t, trim: n, number: r } }, i) {
|
|
3393
|
+
e[Ts] = Ss(i);
|
|
3394
|
+
let a = r || i.props && i.props.type === "number";
|
|
3395
|
+
is(e, t ? "change" : "input", (t) => {
|
|
3396
|
+
t.target.composing || e[Ts](Es(e.value, n, a));
|
|
3397
|
+
}), (n || a) && is(e, "change", () => {
|
|
3398
|
+
e.value = Es(e.value, n, a);
|
|
3399
|
+
}), t || (is(e, "compositionstart", Cs), is(e, "compositionend", ws), is(e, "change", ws));
|
|
3400
|
+
},
|
|
3401
|
+
mounted(e, { value: t }) {
|
|
3402
|
+
e.value = t ?? "";
|
|
3403
|
+
},
|
|
3404
|
+
beforeUpdate(e, { value: t, oldValue: n, modifiers: { lazy: r, trim: i, number: a } }, o) {
|
|
3405
|
+
if (e[Ts] = Ss(o), e.composing) return;
|
|
3406
|
+
let s = (a || e.type === "number") && !/^0\d/.test(e.value) ? se(e.value) : e.value, c = t ?? "";
|
|
3407
|
+
s !== c && (document.activeElement === e && e.type !== "range" && (r && t === n || i && e.value.trim() === c) || (e.value = c));
|
|
3408
|
+
}
|
|
3409
|
+
}, Os = {
|
|
3380
3410
|
deep: !0,
|
|
3381
3411
|
created(e, t, n) {
|
|
3382
|
-
e[
|
|
3383
|
-
let t = e._modelValue, n =
|
|
3412
|
+
e[Ts] = Ss(n), is(e, "change", () => {
|
|
3413
|
+
let t = e._modelValue, n = As(e), r = e.checked, i = e[Ts];
|
|
3384
3414
|
if (d(t)) {
|
|
3385
3415
|
let e = Se(t, n), a = e !== -1;
|
|
3386
3416
|
if (r && !a) i(t.concat(n));
|
|
@@ -3391,38 +3421,38 @@ var bs = typeof HTMLElement < "u" ? HTMLElement : class {}, xs = class e extends
|
|
|
3391
3421
|
} else if (p(t)) {
|
|
3392
3422
|
let e = new Set(t);
|
|
3393
3423
|
r ? e.add(n) : e.delete(n), i(e);
|
|
3394
|
-
} else i(
|
|
3424
|
+
} else i(js(e, r));
|
|
3395
3425
|
});
|
|
3396
3426
|
},
|
|
3397
|
-
mounted:
|
|
3427
|
+
mounted: ks,
|
|
3398
3428
|
beforeUpdate(e, t, n) {
|
|
3399
|
-
e[
|
|
3429
|
+
e[Ts] = Ss(n), ks(e, t, n);
|
|
3400
3430
|
}
|
|
3401
3431
|
};
|
|
3402
|
-
function
|
|
3432
|
+
function ks(e, { value: t, oldValue: n }, r) {
|
|
3403
3433
|
e._modelValue = t;
|
|
3404
3434
|
let i;
|
|
3405
3435
|
if (d(t)) i = Se(t, r.props.value) > -1;
|
|
3406
3436
|
else if (p(t)) i = t.has(r.props.value);
|
|
3407
3437
|
else {
|
|
3408
3438
|
if (t === n) return;
|
|
3409
|
-
i = xe(t,
|
|
3439
|
+
i = xe(t, js(e, !0));
|
|
3410
3440
|
}
|
|
3411
3441
|
e.checked !== i && (e.checked = i);
|
|
3412
3442
|
}
|
|
3413
|
-
function
|
|
3443
|
+
function As(e) {
|
|
3414
3444
|
return "_value" in e ? e._value : e.value;
|
|
3415
3445
|
}
|
|
3416
|
-
function
|
|
3446
|
+
function js(e, t) {
|
|
3417
3447
|
let n = t ? "_trueValue" : "_falseValue";
|
|
3418
3448
|
return n in e ? e[n] : t;
|
|
3419
3449
|
}
|
|
3420
|
-
var
|
|
3450
|
+
var Ms = [
|
|
3421
3451
|
"ctrl",
|
|
3422
3452
|
"shift",
|
|
3423
3453
|
"alt",
|
|
3424
3454
|
"meta"
|
|
3425
|
-
],
|
|
3455
|
+
], Ns = {
|
|
3426
3456
|
stop: (e) => e.stopPropagation(),
|
|
3427
3457
|
prevent: (e) => e.preventDefault(),
|
|
3428
3458
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -3433,65 +3463,65 @@ var Os = [
|
|
|
3433
3463
|
left: (e) => "button" in e && e.button !== 0,
|
|
3434
3464
|
middle: (e) => "button" in e && e.button !== 1,
|
|
3435
3465
|
right: (e) => "button" in e && e.button !== 2,
|
|
3436
|
-
exact: (e, t) =>
|
|
3437
|
-
},
|
|
3466
|
+
exact: (e, t) => Ms.some((n) => e[`${n}Key`] && !t.includes(n))
|
|
3467
|
+
}, Ps = (e, t) => {
|
|
3438
3468
|
if (!e) return e;
|
|
3439
3469
|
let n = e._withMods ||= {}, r = t.join(".");
|
|
3440
3470
|
return n[r] || (n[r] = ((n, ...r) => {
|
|
3441
3471
|
for (let e = 0; e < t.length; e++) {
|
|
3442
|
-
let r =
|
|
3472
|
+
let r = Ns[t[e]];
|
|
3443
3473
|
if (r && r(n, t)) return;
|
|
3444
3474
|
}
|
|
3445
3475
|
return e(n, ...r);
|
|
3446
3476
|
}));
|
|
3447
|
-
},
|
|
3448
|
-
function
|
|
3449
|
-
return
|
|
3450
|
-
}
|
|
3451
|
-
var
|
|
3452
|
-
|
|
3453
|
-
}),
|
|
3454
|
-
let t =
|
|
3477
|
+
}, Fs = /* @__PURE__ */ s({ patchProp: gs }, xo), Is;
|
|
3478
|
+
function Ls() {
|
|
3479
|
+
return Is ||= ua(Fs);
|
|
3480
|
+
}
|
|
3481
|
+
var Rs = ((...e) => {
|
|
3482
|
+
Ls().render(...e);
|
|
3483
|
+
}), zs = ((...e) => {
|
|
3484
|
+
let t = Ls().createApp(...e), { mount: n } = t;
|
|
3455
3485
|
return t.mount = (e) => {
|
|
3456
|
-
let r =
|
|
3486
|
+
let r = Vs(e);
|
|
3457
3487
|
if (!r) return;
|
|
3458
3488
|
let i = t._component;
|
|
3459
3489
|
!h(i) && !i.render && !i.template && (i.template = r.innerHTML), r.nodeType === 1 && (r.textContent = "");
|
|
3460
|
-
let a = n(r, !1,
|
|
3490
|
+
let a = n(r, !1, Bs(r));
|
|
3461
3491
|
return r instanceof Element && (r.removeAttribute("v-cloak"), r.setAttribute("data-v-app", "")), a;
|
|
3462
3492
|
}, t;
|
|
3463
3493
|
});
|
|
3464
|
-
function
|
|
3494
|
+
function Bs(e) {
|
|
3465
3495
|
if (e instanceof SVGElement) return "svg";
|
|
3466
3496
|
if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
|
|
3467
3497
|
}
|
|
3468
|
-
function
|
|
3498
|
+
function Vs(e) {
|
|
3469
3499
|
return g(e) ? document.querySelector(e) : e;
|
|
3470
3500
|
}
|
|
3471
3501
|
//#endregion
|
|
3472
3502
|
//#region src/compose/useOverlayStack.ts
|
|
3473
|
-
var
|
|
3474
|
-
function
|
|
3475
|
-
if (!(typeof document > "u")) if (
|
|
3503
|
+
var Hs = 100, Us = 200, Ws = 102, Gs = /* @__PURE__ */ N([]), Ks = /* @__PURE__ */ N([]), qs = /* @__PURE__ */ N([]);
|
|
3504
|
+
function Js() {
|
|
3505
|
+
if (!(typeof document > "u")) if (qs.value.length > 0) {
|
|
3476
3506
|
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
3477
3507
|
document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
|
|
3478
3508
|
} else document.body.style.paddingRight = "0", document.body.classList.remove("g-scroll-lock"), document.body.style.removeProperty("--g-scrollbar-width");
|
|
3479
3509
|
}
|
|
3480
|
-
function
|
|
3510
|
+
function Ys(e, t = !1, n = !1) {
|
|
3481
3511
|
if (typeof document > "u") return {};
|
|
3482
|
-
let r = t ?
|
|
3512
|
+
let r = t ? Ks : Gs;
|
|
3483
3513
|
function i() {
|
|
3484
|
-
r.value.push(e), n && !
|
|
3514
|
+
r.value.push(e), n && !qs.value.includes(e) && (qs.value.push(e), Js());
|
|
3485
3515
|
}
|
|
3486
3516
|
function a() {
|
|
3487
3517
|
let t = r.value.lastIndexOf(e);
|
|
3488
3518
|
t !== -1 && r.value.splice(t, 1);
|
|
3489
|
-
let n =
|
|
3490
|
-
n !== -1 && (
|
|
3519
|
+
let n = qs.value.lastIndexOf(e);
|
|
3520
|
+
n !== -1 && (qs.value.splice(n, 1), Js());
|
|
3491
3521
|
}
|
|
3492
|
-
let o = Q(() => !t &&
|
|
3522
|
+
let o = Q(() => !t && Ks.value.length > 0 ? !1 : r.value.length > 0 && r.value[r.value.length - 1] === e), s = Q(() => {
|
|
3493
3523
|
let n = r.value.indexOf(e);
|
|
3494
|
-
return n === -1 ? 0 : (t ?
|
|
3524
|
+
return n === -1 ? 0 : (t ? Us : Hs) + n;
|
|
3495
3525
|
});
|
|
3496
3526
|
return Jr(a), {
|
|
3497
3527
|
push: i,
|
|
@@ -3500,42 +3530,42 @@ function Gs(e, t = !1, n = !1) {
|
|
|
3500
3530
|
zIndex: s
|
|
3501
3531
|
};
|
|
3502
3532
|
}
|
|
3503
|
-
function
|
|
3533
|
+
function Xs() {
|
|
3504
3534
|
return typeof document > "u" ? {} : {
|
|
3505
|
-
hasModal: Q(() =>
|
|
3506
|
-
hasOverlay: Q(() =>
|
|
3507
|
-
hasScrollLock: Q(() =>
|
|
3535
|
+
hasModal: Q(() => Ks.value.length > 0),
|
|
3536
|
+
hasOverlay: Q(() => Gs.value.length > 0 || Ks.value.length > 0),
|
|
3537
|
+
hasScrollLock: Q(() => qs.value.length > 0)
|
|
3508
3538
|
};
|
|
3509
3539
|
}
|
|
3510
|
-
function
|
|
3540
|
+
function Zs() {
|
|
3511
3541
|
let e = 0;
|
|
3512
|
-
return
|
|
3513
|
-
e = Math.max(e,
|
|
3514
|
-
}),
|
|
3515
|
-
e = Math.max(e,
|
|
3516
|
-
}), e > 0 ? e + 1 :
|
|
3542
|
+
return Gs.value.forEach((t, n) => {
|
|
3543
|
+
e = Math.max(e, Hs + n);
|
|
3544
|
+
}), Ks.value.forEach((t, n) => {
|
|
3545
|
+
e = Math.max(e, Us + n);
|
|
3546
|
+
}), e > 0 ? e + 1 : Ws;
|
|
3517
3547
|
}
|
|
3518
3548
|
//#endregion
|
|
3519
3549
|
//#region ../../node_modules/@vueuse/shared/dist/index.js
|
|
3520
|
-
function
|
|
3550
|
+
function Qs(e, t) {
|
|
3521
3551
|
return Oe() ? (ke(e, t), !0) : !1;
|
|
3522
3552
|
}
|
|
3523
|
-
var
|
|
3553
|
+
var $s = /* @__PURE__ */ new WeakMap(), ec = (...e) => {
|
|
3524
3554
|
let t = e[0], n = qa()?.proxy ?? Oe();
|
|
3525
3555
|
if (n == null && !Jn()) throw Error("injectLocal must be called in setup");
|
|
3526
|
-
return n &&
|
|
3527
|
-
},
|
|
3556
|
+
return n && $s.has(n) && t in $s.get(n) ? $s.get(n)[t] : qn(...e);
|
|
3557
|
+
}, tc = typeof window < "u" && typeof document < "u";
|
|
3528
3558
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
3529
|
-
var
|
|
3530
|
-
function
|
|
3559
|
+
var nc = (e) => e != null, rc = Object.prototype.toString, ic = (e) => rc.call(e) === "[object Object]", ac = () => {};
|
|
3560
|
+
function oc(...e) {
|
|
3531
3561
|
if (e.length !== 1) return /* @__PURE__ */ fn(...e);
|
|
3532
3562
|
let t = e[0];
|
|
3533
3563
|
return typeof t == "function" ? /* @__PURE__ */ Wt(ln(() => ({
|
|
3534
3564
|
get: t,
|
|
3535
|
-
set:
|
|
3565
|
+
set: ac
|
|
3536
3566
|
}))) : /* @__PURE__ */ N(t);
|
|
3537
3567
|
}
|
|
3538
|
-
function
|
|
3568
|
+
function sc(e, t) {
|
|
3539
3569
|
function n(...n) {
|
|
3540
3570
|
return new Promise((r, i) => {
|
|
3541
3571
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -3547,10 +3577,10 @@ function rc(e, t) {
|
|
|
3547
3577
|
}
|
|
3548
3578
|
return n;
|
|
3549
3579
|
}
|
|
3550
|
-
var
|
|
3551
|
-
function
|
|
3552
|
-
let n, r, i =
|
|
3553
|
-
clearTimeout(e), i(), i =
|
|
3580
|
+
var cc = (e) => e();
|
|
3581
|
+
function lc(e, t = {}) {
|
|
3582
|
+
let n, r, i = ac, a = (e) => {
|
|
3583
|
+
clearTimeout(e), i(), i = ac;
|
|
3554
3584
|
}, o;
|
|
3555
3585
|
return (s) => {
|
|
3556
3586
|
let c = an(e), l = an(t.maxWait);
|
|
@@ -3563,8 +3593,8 @@ function ac(e, t = {}) {
|
|
|
3563
3593
|
});
|
|
3564
3594
|
};
|
|
3565
3595
|
}
|
|
3566
|
-
function
|
|
3567
|
-
let { initialState: n = "active" } = t, r =
|
|
3596
|
+
function uc(e = cc, t = {}) {
|
|
3597
|
+
let { initialState: n = "active" } = t, r = oc(n === "active");
|
|
3568
3598
|
function i() {
|
|
3569
3599
|
r.value = !1;
|
|
3570
3600
|
}
|
|
@@ -3580,7 +3610,7 @@ function oc(e = ic, t = {}) {
|
|
|
3580
3610
|
}
|
|
3581
3611
|
};
|
|
3582
3612
|
}
|
|
3583
|
-
function
|
|
3613
|
+
function dc(e) {
|
|
3584
3614
|
let t;
|
|
3585
3615
|
function n() {
|
|
3586
3616
|
return t ||= e(), t;
|
|
@@ -3590,26 +3620,26 @@ function sc(e) {
|
|
|
3590
3620
|
t = void 0, e && await e;
|
|
3591
3621
|
}, n;
|
|
3592
3622
|
}
|
|
3593
|
-
function
|
|
3623
|
+
function fc(e) {
|
|
3594
3624
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
3595
3625
|
}
|
|
3596
|
-
function
|
|
3626
|
+
function pc(e) {
|
|
3597
3627
|
return Array.isArray(e) ? e : [e];
|
|
3598
3628
|
}
|
|
3599
|
-
function
|
|
3629
|
+
function mc(e) {
|
|
3600
3630
|
return e || qa();
|
|
3601
3631
|
}
|
|
3602
|
-
function
|
|
3603
|
-
return
|
|
3632
|
+
function hc(e, t = 200, n = {}) {
|
|
3633
|
+
return sc(lc(t, n), e);
|
|
3604
3634
|
}
|
|
3605
|
-
function
|
|
3606
|
-
let { eventFilter: r =
|
|
3607
|
-
return L(e,
|
|
3635
|
+
function gc(e, t, n = {}) {
|
|
3636
|
+
let { eventFilter: r = cc, ...i } = n;
|
|
3637
|
+
return L(e, sc(r, t), i);
|
|
3608
3638
|
}
|
|
3609
|
-
function
|
|
3610
|
-
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } =
|
|
3639
|
+
function _c(e, t, n = {}) {
|
|
3640
|
+
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = uc(r, { initialState: i });
|
|
3611
3641
|
return {
|
|
3612
|
-
stop:
|
|
3642
|
+
stop: gc(e, t, {
|
|
3613
3643
|
...a,
|
|
3614
3644
|
eventFilter: o
|
|
3615
3645
|
}),
|
|
@@ -3618,10 +3648,10 @@ function pc(e, t, n = {}) {
|
|
|
3618
3648
|
isActive: l
|
|
3619
3649
|
};
|
|
3620
3650
|
}
|
|
3621
|
-
function
|
|
3622
|
-
|
|
3651
|
+
function vc(e, t = !0, n) {
|
|
3652
|
+
mc(n) ? Gr(e, n) : t ? e() : F(e);
|
|
3623
3653
|
}
|
|
3624
|
-
function
|
|
3654
|
+
function yc(e, t, n = {}) {
|
|
3625
3655
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = /* @__PURE__ */ tn(!1), o;
|
|
3626
3656
|
function s() {
|
|
3627
3657
|
o &&= (clearTimeout(o), void 0);
|
|
@@ -3634,13 +3664,13 @@ function hc(e, t, n = {}) {
|
|
|
3634
3664
|
a.value = !1, o = void 0, e(...n);
|
|
3635
3665
|
}, an(t));
|
|
3636
3666
|
}
|
|
3637
|
-
return r && (a.value = !0,
|
|
3667
|
+
return r && (a.value = !0, tc && l()), Qs(c), {
|
|
3638
3668
|
isPending: /* @__PURE__ */ Gt(a),
|
|
3639
3669
|
start: l,
|
|
3640
3670
|
stop: c
|
|
3641
3671
|
};
|
|
3642
3672
|
}
|
|
3643
|
-
function
|
|
3673
|
+
function bc(e, t, n) {
|
|
3644
3674
|
return L(e, t, {
|
|
3645
3675
|
...n,
|
|
3646
3676
|
immediate: !0
|
|
@@ -3648,48 +3678,48 @@ function gc(e, t, n) {
|
|
|
3648
3678
|
}
|
|
3649
3679
|
//#endregion
|
|
3650
3680
|
//#region ../../node_modules/@vueuse/core/dist/index.js
|
|
3651
|
-
var
|
|
3652
|
-
|
|
3653
|
-
var
|
|
3654
|
-
|
|
3655
|
-
function
|
|
3681
|
+
var xc = tc ? window : void 0;
|
|
3682
|
+
tc && window.document;
|
|
3683
|
+
var Sc = tc ? window.navigator : void 0;
|
|
3684
|
+
tc && window.location;
|
|
3685
|
+
function Cc(e) {
|
|
3656
3686
|
let t = an(e);
|
|
3657
3687
|
return t?.$el ?? t;
|
|
3658
3688
|
}
|
|
3659
|
-
function
|
|
3689
|
+
function wc(...e) {
|
|
3660
3690
|
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = Q(() => {
|
|
3661
|
-
let t =
|
|
3691
|
+
let t = pc(an(e[0])).filter((e) => e != null);
|
|
3662
3692
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
3663
3693
|
});
|
|
3664
|
-
return
|
|
3665
|
-
n.value?.map((e) =>
|
|
3666
|
-
|
|
3667
|
-
|
|
3694
|
+
return bc(() => [
|
|
3695
|
+
n.value?.map((e) => Cc(e)) ?? [xc].filter((e) => e != null),
|
|
3696
|
+
pc(an(n.value ? e[1] : e[0])),
|
|
3697
|
+
pc(P(n.value ? e[2] : e[1])),
|
|
3668
3698
|
an(n.value ? e[3] : e[2])
|
|
3669
3699
|
], ([e, n, r, i], a, o) => {
|
|
3670
3700
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
3671
|
-
let s =
|
|
3701
|
+
let s = ic(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
3672
3702
|
o(() => {
|
|
3673
3703
|
c.forEach((e) => e());
|
|
3674
3704
|
});
|
|
3675
3705
|
}, { flush: "post" });
|
|
3676
3706
|
}
|
|
3677
|
-
function
|
|
3707
|
+
function Tc() {
|
|
3678
3708
|
let e = /* @__PURE__ */ tn(!1), t = qa();
|
|
3679
3709
|
return t && Gr(() => {
|
|
3680
3710
|
e.value = !0;
|
|
3681
3711
|
}, t), e;
|
|
3682
3712
|
}
|
|
3683
3713
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3684
|
-
function
|
|
3685
|
-
let t =
|
|
3714
|
+
function Ec(e) {
|
|
3715
|
+
let t = Tc();
|
|
3686
3716
|
return Q(() => (t.value, !!e()));
|
|
3687
3717
|
}
|
|
3688
|
-
function
|
|
3689
|
-
let { window: r =
|
|
3718
|
+
function Dc(e, t, n = {}) {
|
|
3719
|
+
let { window: r = xc, ...i } = n, a, o = /* @__PURE__ */ Ec(() => r && "MutationObserver" in r), s = () => {
|
|
3690
3720
|
a &&= (a.disconnect(), void 0);
|
|
3691
3721
|
}, c = L(Q(() => {
|
|
3692
|
-
let t =
|
|
3722
|
+
let t = pc(an(e)).map(Cc).filter(nc);
|
|
3693
3723
|
return new Set(t);
|
|
3694
3724
|
}), (e) => {
|
|
3695
3725
|
s(), o.value && e.size && (a = new MutationObserver(t), e.forEach((e) => a.observe(e, i)));
|
|
@@ -3699,21 +3729,21 @@ function Cc(e, t, n = {}) {
|
|
|
3699
3729
|
}), l = () => a?.takeRecords(), u = () => {
|
|
3700
3730
|
c(), s();
|
|
3701
3731
|
};
|
|
3702
|
-
return
|
|
3732
|
+
return Qs(u), {
|
|
3703
3733
|
isSupported: o,
|
|
3704
3734
|
stop: u,
|
|
3705
3735
|
takeRecords: l
|
|
3706
3736
|
};
|
|
3707
3737
|
}
|
|
3708
|
-
function
|
|
3709
|
-
let { window: r =
|
|
3710
|
-
if (!r || !i) return
|
|
3738
|
+
function Oc(e, t, n = {}) {
|
|
3739
|
+
let { window: r = xc, document: i = r?.document, flush: a = "sync" } = n;
|
|
3740
|
+
if (!r || !i) return ac;
|
|
3711
3741
|
let o, s = (e) => {
|
|
3712
3742
|
o?.(), o = e;
|
|
3713
3743
|
}, c = Zn(() => {
|
|
3714
|
-
let n =
|
|
3744
|
+
let n = Cc(e);
|
|
3715
3745
|
if (n) {
|
|
3716
|
-
let { stop: e } =
|
|
3746
|
+
let { stop: e } = Dc(i, (e) => {
|
|
3717
3747
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
3718
3748
|
}, {
|
|
3719
3749
|
window: r,
|
|
@@ -3725,10 +3755,10 @@ function wc(e, t, n = {}) {
|
|
|
3725
3755
|
}, { flush: a }), l = () => {
|
|
3726
3756
|
c(), s();
|
|
3727
3757
|
};
|
|
3728
|
-
return
|
|
3758
|
+
return Qs(l), l;
|
|
3729
3759
|
}
|
|
3730
|
-
function
|
|
3731
|
-
let { window: t =
|
|
3760
|
+
function kc(e = {}) {
|
|
3761
|
+
let { window: t = xc, deep: n = !0, triggerOnRemoval: r = !1 } = e, i = e.document ?? t?.document, a = () => {
|
|
3732
3762
|
let e = i?.activeElement;
|
|
3733
3763
|
if (n) for (var t; e?.shadowRoot;) e = e == null || (t = e.shadowRoot) == null ? void 0 : t.activeElement;
|
|
3734
3764
|
return e;
|
|
@@ -3740,39 +3770,39 @@ function Tc(e = {}) {
|
|
|
3740
3770
|
capture: !0,
|
|
3741
3771
|
passive: !0
|
|
3742
3772
|
};
|
|
3743
|
-
|
|
3773
|
+
wc(t, "blur", (e) => {
|
|
3744
3774
|
e.relatedTarget === null && s();
|
|
3745
|
-
}, e),
|
|
3775
|
+
}, e), wc(t, "focus", s, e);
|
|
3746
3776
|
}
|
|
3747
|
-
return r &&
|
|
3777
|
+
return r && Oc(o, s, { document: i }), s(), o;
|
|
3748
3778
|
}
|
|
3749
|
-
var
|
|
3779
|
+
var Ac = Symbol("vueuse-ssr-width");
|
|
3750
3780
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3751
|
-
function
|
|
3752
|
-
let e = Jn() ?
|
|
3781
|
+
function jc() {
|
|
3782
|
+
let e = Jn() ? ec(Ac, null) : null;
|
|
3753
3783
|
return typeof e == "number" ? e : void 0;
|
|
3754
3784
|
}
|
|
3755
|
-
function
|
|
3756
|
-
let { window: n =
|
|
3785
|
+
function Mc(e, t = {}) {
|
|
3786
|
+
let { window: n = xc, ssrWidth: r = /* @__PURE__ */ jc() } = t, i = /* @__PURE__ */ Ec(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = /* @__PURE__ */ tn(typeof r == "number"), o = /* @__PURE__ */ tn(), s = /* @__PURE__ */ tn(!1);
|
|
3757
3787
|
return Zn(() => {
|
|
3758
3788
|
if (a.value) {
|
|
3759
3789
|
a.value = !i.value, s.value = an(e).split(",").some((e) => {
|
|
3760
3790
|
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
|
|
3761
|
-
return n && a && (a = r >=
|
|
3791
|
+
return n && a && (a = r >= fc(n[1])), i && a && (a = r <= fc(i[1])), t ? !a : a;
|
|
3762
3792
|
});
|
|
3763
3793
|
return;
|
|
3764
3794
|
}
|
|
3765
3795
|
i.value && (o.value = n.matchMedia(an(e)), s.value = o.value.matches);
|
|
3766
|
-
}),
|
|
3796
|
+
}), wc(o, "change", (e) => {
|
|
3767
3797
|
s.value = e.matches;
|
|
3768
3798
|
}, { passive: !0 }), Q(() => s.value);
|
|
3769
3799
|
}
|
|
3770
|
-
function
|
|
3771
|
-
let { controls: n = !1, navigator: r =
|
|
3800
|
+
function Nc(e, t = {}) {
|
|
3801
|
+
let { controls: n = !1, navigator: r = Sc } = t, i = /* @__PURE__ */ Ec(() => r && "permissions" in r), a = /* @__PURE__ */ tn(), o = typeof e == "string" ? { name: e } : e, s = /* @__PURE__ */ tn(), c = () => {
|
|
3772
3802
|
s.value = a.value?.state ?? "prompt";
|
|
3773
3803
|
};
|
|
3774
|
-
|
|
3775
|
-
let l =
|
|
3804
|
+
wc(a, "change", c, { passive: !0 });
|
|
3805
|
+
let l = dc(async () => {
|
|
3776
3806
|
if (i.value) {
|
|
3777
3807
|
if (!a.value) try {
|
|
3778
3808
|
a.value = await r.permissions.query(o);
|
|
@@ -3790,8 +3820,8 @@ function kc(e, t = {}) {
|
|
|
3790
3820
|
query: l
|
|
3791
3821
|
} : s;
|
|
3792
3822
|
}
|
|
3793
|
-
function
|
|
3794
|
-
let { navigator: t =
|
|
3823
|
+
function Pc(e = {}) {
|
|
3824
|
+
let { navigator: t = Sc, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ Ec(() => t && "clipboard" in t), s = Nc("clipboard-read"), c = Nc("clipboard-write"), l = Q(() => o.value || a), u = /* @__PURE__ */ tn(""), d = /* @__PURE__ */ tn(!1), f = yc(() => d.value = !1, i, { immediate: !1 });
|
|
3795
3825
|
async function p() {
|
|
3796
3826
|
let e = !(o.value && _(s.value));
|
|
3797
3827
|
if (!e) try {
|
|
@@ -3801,7 +3831,7 @@ function Ac(e = {}) {
|
|
|
3801
3831
|
}
|
|
3802
3832
|
e && (u.value = g());
|
|
3803
3833
|
}
|
|
3804
|
-
l.value && n &&
|
|
3834
|
+
l.value && n && wc(["copy", "cut"], p, { passive: !0 });
|
|
3805
3835
|
async function m(e = an(r)) {
|
|
3806
3836
|
if (l.value && e != null) {
|
|
3807
3837
|
let n = !(o.value && _(c.value));
|
|
@@ -3831,17 +3861,17 @@ function Ac(e = {}) {
|
|
|
3831
3861
|
copy: m
|
|
3832
3862
|
};
|
|
3833
3863
|
}
|
|
3834
|
-
var
|
|
3835
|
-
function
|
|
3836
|
-
return
|
|
3864
|
+
var Fc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ic = "__vueuse_ssr_handlers__", Lc = /* @__PURE__ */ Rc();
|
|
3865
|
+
function Rc() {
|
|
3866
|
+
return Ic in Fc || (Fc[Ic] = Fc[Ic] || {}), Fc[Ic];
|
|
3837
3867
|
}
|
|
3838
|
-
function
|
|
3839
|
-
return
|
|
3868
|
+
function zc(e, t) {
|
|
3869
|
+
return Lc[e] || t;
|
|
3840
3870
|
}
|
|
3841
|
-
function
|
|
3871
|
+
function Bc(e) {
|
|
3842
3872
|
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
3843
3873
|
}
|
|
3844
|
-
var
|
|
3874
|
+
var Vc = {
|
|
3845
3875
|
boolean: {
|
|
3846
3876
|
read: (e) => e === "true",
|
|
3847
3877
|
write: (e) => String(e)
|
|
@@ -3874,29 +3904,29 @@ var Lc = {
|
|
|
3874
3904
|
read: (e) => new Date(e),
|
|
3875
3905
|
write: (e) => e.toISOString()
|
|
3876
3906
|
}
|
|
3877
|
-
},
|
|
3878
|
-
function
|
|
3879
|
-
let { flush: i = "pre", deep: a = !0, listenToStorageChanges: o = !0, writeDefaults: s = !0, mergeDefaults: c = !1, shallow: l, window: u =
|
|
3907
|
+
}, Hc = "vueuse-storage";
|
|
3908
|
+
function Uc(e, t, n, r = {}) {
|
|
3909
|
+
let { flush: i = "pre", deep: a = !0, listenToStorageChanges: o = !0, writeDefaults: s = !0, mergeDefaults: c = !1, shallow: l, window: u = xc, eventFilter: d, onError: f = (e) => {
|
|
3880
3910
|
console.error(e);
|
|
3881
3911
|
}, initOnMounted: p } = r, m = (l ? tn : N)(typeof t == "function" ? t() : t), h = Q(() => an(e));
|
|
3882
3912
|
if (!n) try {
|
|
3883
|
-
n =
|
|
3913
|
+
n = zc("getDefaultStorage", () => xc?.localStorage)();
|
|
3884
3914
|
} catch (e) {
|
|
3885
3915
|
f(e);
|
|
3886
3916
|
}
|
|
3887
3917
|
if (!n) return m;
|
|
3888
|
-
let g = an(t), _ =
|
|
3918
|
+
let g = an(t), _ = Bc(g), v = r.serializer ?? Vc[_], { pause: y, resume: b } = _c(m, (e) => C(e), {
|
|
3889
3919
|
flush: i,
|
|
3890
3920
|
deep: a,
|
|
3891
3921
|
eventFilter: d
|
|
3892
3922
|
});
|
|
3893
3923
|
L(h, () => T(), { flush: i });
|
|
3894
3924
|
let x = !1;
|
|
3895
|
-
u && o && (n instanceof Storage ?
|
|
3925
|
+
u && o && (n instanceof Storage ? wc(u, "storage", (e) => {
|
|
3896
3926
|
p && !x || T(e);
|
|
3897
|
-
}, { passive: !0 }) :
|
|
3927
|
+
}, { passive: !0 }) : wc(u, Hc, (e) => {
|
|
3898
3928
|
p && !x || E(e);
|
|
3899
|
-
})), p ?
|
|
3929
|
+
})), p ? vc(() => {
|
|
3900
3930
|
x = !0, T();
|
|
3901
3931
|
}) : T();
|
|
3902
3932
|
function S(e, t) {
|
|
@@ -3907,7 +3937,7 @@ function zc(e, t, n, r = {}) {
|
|
|
3907
3937
|
newValue: t,
|
|
3908
3938
|
storageArea: n
|
|
3909
3939
|
};
|
|
3910
|
-
u.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(
|
|
3940
|
+
u.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(Hc, { detail: r }));
|
|
3911
3941
|
}
|
|
3912
3942
|
}
|
|
3913
3943
|
function C(e) {
|
|
@@ -3958,12 +3988,12 @@ function zc(e, t, n, r = {}) {
|
|
|
3958
3988
|
}
|
|
3959
3989
|
return m;
|
|
3960
3990
|
}
|
|
3961
|
-
function
|
|
3962
|
-
let { window: r =
|
|
3991
|
+
function Wc(e, t, n = {}) {
|
|
3992
|
+
let { window: r = xc, ...i } = n, a, o = /* @__PURE__ */ Ec(() => r && "ResizeObserver" in r), s = () => {
|
|
3963
3993
|
a &&= (a.disconnect(), void 0);
|
|
3964
3994
|
}, c = L(Q(() => {
|
|
3965
3995
|
let t = an(e);
|
|
3966
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
3996
|
+
return Array.isArray(t) ? t.map((e) => Cc(e)) : [Cc(t)];
|
|
3967
3997
|
}), (e) => {
|
|
3968
3998
|
if (s(), o.value && r) {
|
|
3969
3999
|
a = new ResizeObserver(t);
|
|
@@ -3975,28 +4005,28 @@ function Bc(e, t, n = {}) {
|
|
|
3975
4005
|
}), l = () => {
|
|
3976
4006
|
s(), c();
|
|
3977
4007
|
};
|
|
3978
|
-
return
|
|
4008
|
+
return Qs(l), {
|
|
3979
4009
|
isSupported: o,
|
|
3980
4010
|
stop: l
|
|
3981
4011
|
};
|
|
3982
4012
|
}
|
|
3983
|
-
var
|
|
3984
|
-
function
|
|
3985
|
-
let { window: n =
|
|
4013
|
+
var Gc = "focusin", Kc = "focusout", qc = ":focus-within";
|
|
4014
|
+
function Jc(e, t = {}) {
|
|
4015
|
+
let { window: n = xc } = t, r = Q(() => Cc(e)), i = /* @__PURE__ */ tn(!1), a = Q(() => i.value), o = kc(t);
|
|
3986
4016
|
if (!n || !o.value) return { focused: a };
|
|
3987
4017
|
let s = { passive: !0 };
|
|
3988
|
-
return
|
|
4018
|
+
return wc(r, Gc, () => i.value = !0, s), wc(r, Kc, () => {
|
|
3989
4019
|
var e, t;
|
|
3990
|
-
return i.value = ((e = r.value) == null || (t = e.matches) == null ? void 0 : t.call(e,
|
|
4020
|
+
return i.value = ((e = r.value) == null || (t = e.matches) == null ? void 0 : t.call(e, qc)) ?? !1;
|
|
3991
4021
|
}, s), { focused: a };
|
|
3992
4022
|
}
|
|
3993
|
-
function
|
|
3994
|
-
let { window: r =
|
|
3995
|
-
return
|
|
4023
|
+
function Yc(e, t, n = {}) {
|
|
4024
|
+
let { window: r = xc } = n;
|
|
4025
|
+
return Uc(e, t, r?.sessionStorage, n);
|
|
3996
4026
|
}
|
|
3997
4027
|
//#endregion
|
|
3998
4028
|
//#region ../../node_modules/tabbable/dist/index.esm.js
|
|
3999
|
-
var
|
|
4029
|
+
var Xc = [
|
|
4000
4030
|
"input:not([inert]):not([inert] *)",
|
|
4001
4031
|
"select:not([inert]):not([inert] *)",
|
|
4002
4032
|
"textarea:not([inert]):not([inert] *)",
|
|
@@ -4008,35 +4038,35 @@ var Kc = [
|
|
|
4008
4038
|
"[contenteditable]:not([contenteditable=\"false\"]):not([inert]):not([inert] *)",
|
|
4009
4039
|
"details>summary:first-of-type:not([inert]):not([inert] *)",
|
|
4010
4040
|
"details:not([inert]):not([inert] *)"
|
|
4011
|
-
],
|
|
4041
|
+
], Zc = /* #__PURE__ */ Xc.join(","), Qc = typeof Element > "u", $c = Qc ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, el = !Qc && Element.prototype.getRootNode ? function(e) {
|
|
4012
4042
|
return e?.getRootNode?.call(e);
|
|
4013
4043
|
} : function(e) {
|
|
4014
4044
|
return e?.ownerDocument;
|
|
4015
|
-
},
|
|
4045
|
+
}, tl = function(e, t) {
|
|
4016
4046
|
t === void 0 && (t = !0);
|
|
4017
4047
|
var n = e?.getAttribute?.call(e, "inert");
|
|
4018
|
-
return n === "" || n === "true" || t && e && (typeof e.closest == "function" ? e.closest("[inert]") :
|
|
4019
|
-
},
|
|
4048
|
+
return n === "" || n === "true" || t && e && (typeof e.closest == "function" ? e.closest("[inert]") : tl(e.parentNode));
|
|
4049
|
+
}, nl = function(e) {
|
|
4020
4050
|
var t = e?.getAttribute?.call(e, "contenteditable");
|
|
4021
4051
|
return t === "" || t === "true";
|
|
4022
|
-
},
|
|
4023
|
-
if (
|
|
4024
|
-
var r = Array.prototype.slice.apply(e.querySelectorAll(
|
|
4025
|
-
return t &&
|
|
4026
|
-
},
|
|
4052
|
+
}, rl = function(e, t, n) {
|
|
4053
|
+
if (tl(e)) return [];
|
|
4054
|
+
var r = Array.prototype.slice.apply(e.querySelectorAll(Zc));
|
|
4055
|
+
return t && $c.call(e, Zc) && r.unshift(e), r = r.filter(n), r;
|
|
4056
|
+
}, il = function(e, t, n) {
|
|
4027
4057
|
for (var r = [], i = Array.from(e); i.length;) {
|
|
4028
4058
|
var a = i.shift();
|
|
4029
|
-
if (!
|
|
4030
|
-
var o = a.assignedElements(), s =
|
|
4059
|
+
if (!tl(a, !1)) if (a.tagName === "SLOT") {
|
|
4060
|
+
var o = a.assignedElements(), s = il(o.length ? o : a.children, !0, n);
|
|
4031
4061
|
n.flatten ? r.push.apply(r, s) : r.push({
|
|
4032
4062
|
scopeParent: a,
|
|
4033
4063
|
candidates: s
|
|
4034
4064
|
});
|
|
4035
4065
|
} else {
|
|
4036
|
-
|
|
4037
|
-
var c = a.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(a), l = !
|
|
4066
|
+
$c.call(a, Zc) && n.filter(a) && (t || !e.includes(a)) && r.push(a);
|
|
4067
|
+
var c = a.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(a), l = !tl(c, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
|
|
4038
4068
|
if (c && l) {
|
|
4039
|
-
var u =
|
|
4069
|
+
var u = il(c === !0 ? a.children : c.children, !0, n);
|
|
4040
4070
|
n.flatten ? r.push.apply(r, u) : r.push({
|
|
4041
4071
|
scopeParent: a,
|
|
4042
4072
|
candidates: u
|
|
@@ -4045,29 +4075,29 @@ var Kc = [
|
|
|
4045
4075
|
}
|
|
4046
4076
|
}
|
|
4047
4077
|
return r;
|
|
4048
|
-
},
|
|
4078
|
+
}, al = function(e) {
|
|
4049
4079
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
4050
|
-
},
|
|
4080
|
+
}, ol = function(e) {
|
|
4051
4081
|
if (!e) throw Error("No node provided");
|
|
4052
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
4053
|
-
},
|
|
4054
|
-
var n =
|
|
4055
|
-
return n < 0 && t && !
|
|
4056
|
-
},
|
|
4082
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || nl(e)) && !al(e) ? 0 : e.tabIndex;
|
|
4083
|
+
}, sl = function(e, t) {
|
|
4084
|
+
var n = ol(e);
|
|
4085
|
+
return n < 0 && t && !al(e) ? 0 : n;
|
|
4086
|
+
}, cl = function(e, t) {
|
|
4057
4087
|
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
4058
|
-
},
|
|
4088
|
+
}, ll = function(e) {
|
|
4059
4089
|
return e.tagName === "INPUT";
|
|
4060
|
-
},
|
|
4061
|
-
return
|
|
4062
|
-
},
|
|
4090
|
+
}, ul = function(e) {
|
|
4091
|
+
return ll(e) && e.type === "hidden";
|
|
4092
|
+
}, dl = function(e) {
|
|
4063
4093
|
return e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(e) {
|
|
4064
4094
|
return e.tagName === "SUMMARY";
|
|
4065
4095
|
});
|
|
4066
|
-
},
|
|
4096
|
+
}, fl = function(e, t) {
|
|
4067
4097
|
for (var n = 0; n < e.length; n++) if (e[n].checked && e[n].form === t) return e[n];
|
|
4068
|
-
},
|
|
4098
|
+
}, pl = function(e) {
|
|
4069
4099
|
if (!e.name) return !0;
|
|
4070
|
-
var t = e.form ||
|
|
4100
|
+
var t = e.form || el(e), n = function(e) {
|
|
4071
4101
|
return t.querySelectorAll("input[type=\"radio\"][name=\"" + e + "\"]");
|
|
4072
4102
|
}, r;
|
|
4073
4103
|
if (typeof window < "u" && window.CSS !== void 0 && typeof window.CSS.escape == "function") r = n(window.CSS.escape(e.name));
|
|
@@ -4076,26 +4106,26 @@ var Kc = [
|
|
|
4076
4106
|
} catch (e) {
|
|
4077
4107
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", e.message), !1;
|
|
4078
4108
|
}
|
|
4079
|
-
var i =
|
|
4109
|
+
var i = fl(r, e.form);
|
|
4080
4110
|
return !i || i === e;
|
|
4081
|
-
},
|
|
4082
|
-
return
|
|
4083
|
-
},
|
|
4084
|
-
return
|
|
4085
|
-
},
|
|
4086
|
-
var t = e &&
|
|
4111
|
+
}, ml = function(e) {
|
|
4112
|
+
return ll(e) && e.type === "radio";
|
|
4113
|
+
}, hl = function(e) {
|
|
4114
|
+
return ml(e) && !pl(e);
|
|
4115
|
+
}, gl = function(e) {
|
|
4116
|
+
var t = e && el(e), n = t?.host, r = !1;
|
|
4087
4117
|
if (t && t !== e) {
|
|
4088
4118
|
var i, a, o;
|
|
4089
4119
|
for (r = !!((i = n) != null && (a = i.ownerDocument) != null && a.contains(n) || e != null && (o = e.ownerDocument) != null && o.contains(e)); !r && n;) {
|
|
4090
4120
|
var s, c;
|
|
4091
|
-
t =
|
|
4121
|
+
t = el(n), n = t?.host, r = !!((s = n) != null && (c = s.ownerDocument) != null && c.contains(n));
|
|
4092
4122
|
}
|
|
4093
4123
|
}
|
|
4094
4124
|
return r;
|
|
4095
|
-
},
|
|
4125
|
+
}, _l = function(e) {
|
|
4096
4126
|
var t = e.getBoundingClientRect(), n = t.width, r = t.height;
|
|
4097
4127
|
return n === 0 && r === 0;
|
|
4098
|
-
},
|
|
4128
|
+
}, vl = function(e, t) {
|
|
4099
4129
|
var n = t.displayCheck, r = t.getShadowRoot;
|
|
4100
4130
|
if (n === "full-native" && "checkVisibility" in e) return !e.checkVisibility({
|
|
4101
4131
|
checkOpacity: !1,
|
|
@@ -4105,44 +4135,44 @@ var Kc = [
|
|
|
4105
4135
|
checkVisibilityCSS: !0
|
|
4106
4136
|
});
|
|
4107
4137
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
4108
|
-
var i =
|
|
4109
|
-
if (
|
|
4138
|
+
var i = $c.call(e, "details>summary:first-of-type") ? e.parentElement : e;
|
|
4139
|
+
if ($c.call(i, "details:not([open]) *")) return !0;
|
|
4110
4140
|
if (!n || n === "full" || n === "full-native" || n === "legacy-full") {
|
|
4111
4141
|
if (typeof r == "function") {
|
|
4112
4142
|
for (var a = e; e;) {
|
|
4113
|
-
var o = e.parentElement, s =
|
|
4114
|
-
if (o && !o.shadowRoot && r(o) === !0) return
|
|
4143
|
+
var o = e.parentElement, s = el(e);
|
|
4144
|
+
if (o && !o.shadowRoot && r(o) === !0) return _l(e);
|
|
4115
4145
|
e = e.assignedSlot ? e.assignedSlot : !o && s !== e.ownerDocument ? s.host : o;
|
|
4116
4146
|
}
|
|
4117
4147
|
e = a;
|
|
4118
4148
|
}
|
|
4119
|
-
if (
|
|
4149
|
+
if (gl(e)) return !e.getClientRects().length;
|
|
4120
4150
|
if (n !== "legacy-full") return !0;
|
|
4121
|
-
} else if (n === "non-zero-area") return
|
|
4151
|
+
} else if (n === "non-zero-area") return _l(e);
|
|
4122
4152
|
return !1;
|
|
4123
|
-
},
|
|
4153
|
+
}, yl = function(e) {
|
|
4124
4154
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) for (var t = e.parentElement; t;) {
|
|
4125
4155
|
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
4126
4156
|
for (var n = 0; n < t.children.length; n++) {
|
|
4127
4157
|
var r = t.children.item(n);
|
|
4128
|
-
if (r.tagName === "LEGEND") return
|
|
4158
|
+
if (r.tagName === "LEGEND") return $c.call(t, "fieldset[disabled] *") ? !0 : !r.contains(e);
|
|
4129
4159
|
}
|
|
4130
4160
|
return !0;
|
|
4131
4161
|
}
|
|
4132
4162
|
t = t.parentElement;
|
|
4133
4163
|
}
|
|
4134
4164
|
return !1;
|
|
4135
|
-
},
|
|
4136
|
-
return !(t.disabled ||
|
|
4137
|
-
},
|
|
4138
|
-
return !(
|
|
4139
|
-
},
|
|
4165
|
+
}, bl = function(e, t) {
|
|
4166
|
+
return !(t.disabled || ul(t) || vl(t, e) || dl(t) || yl(t));
|
|
4167
|
+
}, xl = function(e, t) {
|
|
4168
|
+
return !(hl(t) || ol(t) < 0 || !bl(e, t));
|
|
4169
|
+
}, Sl = function(e) {
|
|
4140
4170
|
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
4141
4171
|
return !!(isNaN(t) || t >= 0);
|
|
4142
|
-
},
|
|
4172
|
+
}, Cl = function(e) {
|
|
4143
4173
|
var t = [], n = [];
|
|
4144
4174
|
return e.forEach(function(e, r) {
|
|
4145
|
-
var i = !!e.scopeParent, a = i ? e.scopeParent : e, o =
|
|
4175
|
+
var i = !!e.scopeParent, a = i ? e.scopeParent : e, o = sl(a, i), s = i ? Cl(e.candidates) : a;
|
|
4146
4176
|
o === 0 ? i ? t.push.apply(t, s) : t.push(a) : n.push({
|
|
4147
4177
|
documentOrder: r,
|
|
4148
4178
|
tabIndex: o,
|
|
@@ -4150,43 +4180,43 @@ var Kc = [
|
|
|
4150
4180
|
isScope: i,
|
|
4151
4181
|
content: s
|
|
4152
4182
|
});
|
|
4153
|
-
}), n.sort(
|
|
4183
|
+
}), n.sort(cl).reduce(function(e, t) {
|
|
4154
4184
|
return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e;
|
|
4155
4185
|
}, []).concat(t);
|
|
4156
|
-
},
|
|
4157
|
-
return t ||= {},
|
|
4158
|
-
filter:
|
|
4186
|
+
}, wl = function(e, t) {
|
|
4187
|
+
return t ||= {}, Cl(t.getShadowRoot ? il([e], t.includeContainer, {
|
|
4188
|
+
filter: xl.bind(null, t),
|
|
4159
4189
|
flatten: !1,
|
|
4160
4190
|
getShadowRoot: t.getShadowRoot,
|
|
4161
|
-
shadowRootFilter:
|
|
4162
|
-
}) :
|
|
4163
|
-
},
|
|
4164
|
-
return t ||= {}, t.getShadowRoot ?
|
|
4165
|
-
filter:
|
|
4191
|
+
shadowRootFilter: Sl
|
|
4192
|
+
}) : rl(e, t.includeContainer, xl.bind(null, t)));
|
|
4193
|
+
}, Tl = function(e, t) {
|
|
4194
|
+
return t ||= {}, t.getShadowRoot ? il([e], t.includeContainer, {
|
|
4195
|
+
filter: bl.bind(null, t),
|
|
4166
4196
|
flatten: !0,
|
|
4167
4197
|
getShadowRoot: t.getShadowRoot
|
|
4168
|
-
}) :
|
|
4169
|
-
},
|
|
4198
|
+
}) : rl(e, t.includeContainer, bl.bind(null, t));
|
|
4199
|
+
}, El = function(e, t) {
|
|
4170
4200
|
if (t ||= {}, !e) throw Error("No node provided");
|
|
4171
|
-
return
|
|
4172
|
-
},
|
|
4201
|
+
return $c.call(e, Zc) === !1 ? !1 : xl(t, e);
|
|
4202
|
+
}, Dl = /* #__PURE__ */ Xc.concat("iframe:not([inert]):not([inert] *)").join(","), Ol = function(e, t) {
|
|
4173
4203
|
if (t ||= {}, !e) throw Error("No node provided");
|
|
4174
|
-
return
|
|
4204
|
+
return $c.call(e, Dl) === !1 ? !1 : bl(t, e);
|
|
4175
4205
|
};
|
|
4176
4206
|
//#endregion
|
|
4177
4207
|
//#region ../../node_modules/focus-trap/dist/focus-trap.esm.js
|
|
4178
|
-
function
|
|
4208
|
+
function kl(e, t) {
|
|
4179
4209
|
(t == null || t > e.length) && (t = e.length);
|
|
4180
4210
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
4181
4211
|
return r;
|
|
4182
4212
|
}
|
|
4183
|
-
function
|
|
4184
|
-
if (Array.isArray(e)) return
|
|
4213
|
+
function Al(e) {
|
|
4214
|
+
if (Array.isArray(e)) return kl(e);
|
|
4185
4215
|
}
|
|
4186
|
-
function
|
|
4216
|
+
function jl(e, t) {
|
|
4187
4217
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4188
4218
|
if (!n) {
|
|
4189
|
-
if (Array.isArray(e) || (n =
|
|
4219
|
+
if (Array.isArray(e) || (n = Bl(e)) || t) {
|
|
4190
4220
|
n && (e = n);
|
|
4191
4221
|
var r = 0, i = function() {};
|
|
4192
4222
|
return {
|
|
@@ -4226,21 +4256,21 @@ function Dl(e, t) {
|
|
|
4226
4256
|
}
|
|
4227
4257
|
};
|
|
4228
4258
|
}
|
|
4229
|
-
function
|
|
4230
|
-
return (t =
|
|
4259
|
+
function Ml(e, t, n) {
|
|
4260
|
+
return (t = zl(t)) in e ? Object.defineProperty(e, t, {
|
|
4231
4261
|
value: n,
|
|
4232
4262
|
enumerable: !0,
|
|
4233
4263
|
configurable: !0,
|
|
4234
4264
|
writable: !0
|
|
4235
4265
|
}) : e[t] = n, e;
|
|
4236
4266
|
}
|
|
4237
|
-
function
|
|
4267
|
+
function Nl(e) {
|
|
4238
4268
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4239
4269
|
}
|
|
4240
|
-
function
|
|
4270
|
+
function Pl() {
|
|
4241
4271
|
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4242
4272
|
}
|
|
4243
|
-
function
|
|
4273
|
+
function Fl(e, t) {
|
|
4244
4274
|
var n = Object.keys(e);
|
|
4245
4275
|
if (Object.getOwnPropertySymbols) {
|
|
4246
4276
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -4250,21 +4280,21 @@ function jl(e, t) {
|
|
|
4250
4280
|
}
|
|
4251
4281
|
return n;
|
|
4252
4282
|
}
|
|
4253
|
-
function
|
|
4283
|
+
function Il(e) {
|
|
4254
4284
|
for (var t = 1; t < arguments.length; t++) {
|
|
4255
4285
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
4256
|
-
t % 2 ?
|
|
4257
|
-
|
|
4258
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
4286
|
+
t % 2 ? Fl(Object(n), !0).forEach(function(t) {
|
|
4287
|
+
Ml(e, t, n[t]);
|
|
4288
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Fl(Object(n)).forEach(function(t) {
|
|
4259
4289
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
4260
4290
|
});
|
|
4261
4291
|
}
|
|
4262
4292
|
return e;
|
|
4263
4293
|
}
|
|
4264
|
-
function
|
|
4265
|
-
return
|
|
4294
|
+
function Ll(e) {
|
|
4295
|
+
return Al(e) || Nl(e) || Bl(e) || Pl();
|
|
4266
4296
|
}
|
|
4267
|
-
function
|
|
4297
|
+
function Rl(e, t) {
|
|
4268
4298
|
if (typeof e != "object" || !e) return e;
|
|
4269
4299
|
var n = e[Symbol.toPrimitive];
|
|
4270
4300
|
if (n !== void 0) {
|
|
@@ -4274,62 +4304,62 @@ function Pl(e, t) {
|
|
|
4274
4304
|
}
|
|
4275
4305
|
return (t === "string" ? String : Number)(e);
|
|
4276
4306
|
}
|
|
4277
|
-
function
|
|
4278
|
-
var t =
|
|
4307
|
+
function zl(e) {
|
|
4308
|
+
var t = Rl(e, "string");
|
|
4279
4309
|
return typeof t == "symbol" ? t : t + "";
|
|
4280
4310
|
}
|
|
4281
|
-
function
|
|
4311
|
+
function Bl(e, t) {
|
|
4282
4312
|
if (e) {
|
|
4283
|
-
if (typeof e == "string") return
|
|
4313
|
+
if (typeof e == "string") return kl(e, t);
|
|
4284
4314
|
var n = {}.toString.call(e).slice(8, -1);
|
|
4285
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
4315
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kl(e, t) : void 0;
|
|
4286
4316
|
}
|
|
4287
4317
|
}
|
|
4288
|
-
var
|
|
4318
|
+
var Vl = {
|
|
4289
4319
|
getActiveTrap: function(e) {
|
|
4290
4320
|
return e?.length > 0 ? e[e.length - 1] : null;
|
|
4291
4321
|
},
|
|
4292
4322
|
activateTrap: function(e, t) {
|
|
4293
|
-
t !==
|
|
4323
|
+
t !== Vl.getActiveTrap(e) && Vl.pauseTrap(e);
|
|
4294
4324
|
var n = e.indexOf(t);
|
|
4295
4325
|
n === -1 || e.splice(n, 1), e.push(t);
|
|
4296
4326
|
},
|
|
4297
4327
|
deactivateTrap: function(e, t) {
|
|
4298
4328
|
var n = e.indexOf(t);
|
|
4299
|
-
n !== -1 && e.splice(n, 1),
|
|
4329
|
+
n !== -1 && e.splice(n, 1), Vl.unpauseTrap(e);
|
|
4300
4330
|
},
|
|
4301
4331
|
pauseTrap: function(e) {
|
|
4302
|
-
|
|
4332
|
+
Vl.getActiveTrap(e)?._setPausedState(!0);
|
|
4303
4333
|
},
|
|
4304
4334
|
unpauseTrap: function(e) {
|
|
4305
|
-
var t =
|
|
4335
|
+
var t = Vl.getActiveTrap(e);
|
|
4306
4336
|
t && !t._isManuallyPaused() && t._setPausedState(!1);
|
|
4307
4337
|
}
|
|
4308
|
-
},
|
|
4338
|
+
}, Hl = function(e) {
|
|
4309
4339
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
4310
|
-
},
|
|
4340
|
+
}, Ul = function(e) {
|
|
4311
4341
|
return e?.key === "Escape" || e?.key === "Esc" || e?.keyCode === 27;
|
|
4312
|
-
},
|
|
4342
|
+
}, Wl = function(e) {
|
|
4313
4343
|
return e?.key === "Tab" || e?.keyCode === 9;
|
|
4314
|
-
},
|
|
4315
|
-
return
|
|
4316
|
-
},
|
|
4317
|
-
return
|
|
4318
|
-
},
|
|
4344
|
+
}, Gl = function(e) {
|
|
4345
|
+
return Wl(e) && !e.shiftKey;
|
|
4346
|
+
}, Kl = function(e) {
|
|
4347
|
+
return Wl(e) && e.shiftKey;
|
|
4348
|
+
}, ql = function(e) {
|
|
4319
4349
|
return setTimeout(e, 0);
|
|
4320
|
-
},
|
|
4350
|
+
}, Jl = function(e) {
|
|
4321
4351
|
var t = [...arguments].slice(1);
|
|
4322
4352
|
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
4323
|
-
},
|
|
4353
|
+
}, Yl = function(e) {
|
|
4324
4354
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
4325
|
-
},
|
|
4326
|
-
var n = t?.document || document, r = t?.trapStack ||
|
|
4355
|
+
}, Xl = [], Zl = function(e, t) {
|
|
4356
|
+
var n = t?.document || document, r = t?.trapStack || Xl, i = Il({
|
|
4327
4357
|
returnFocusOnDeactivate: !0,
|
|
4328
4358
|
escapeDeactivates: !0,
|
|
4329
4359
|
delayInitialFocus: !0,
|
|
4330
4360
|
isolateSubtrees: !1,
|
|
4331
|
-
isKeyForward:
|
|
4332
|
-
isKeyBackward:
|
|
4361
|
+
isKeyForward: Gl,
|
|
4362
|
+
isKeyBackward: Kl
|
|
4333
4363
|
}, t), a = {
|
|
4334
4364
|
containers: [],
|
|
4335
4365
|
containerGroups: [],
|
|
@@ -4355,7 +4385,7 @@ var Ll = {
|
|
|
4355
4385
|
});
|
|
4356
4386
|
}, l = function(e) {
|
|
4357
4387
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.hasFallback, a = r === void 0 ? !1 : r, o = t.params, s = o === void 0 ? [] : o, c = i[e];
|
|
4358
|
-
if (typeof c == "function" && (c = c.apply(void 0,
|
|
4388
|
+
if (typeof c == "function" && (c = c.apply(void 0, Ll(s))), c === !0 && (c = void 0), !c) {
|
|
4359
4389
|
if (c === void 0 || c === !1) return c;
|
|
4360
4390
|
throw Error(`\`${e}\` was specified but was not a node, or did not return a node`);
|
|
4361
4391
|
}
|
|
@@ -4372,7 +4402,7 @@ var Ll = {
|
|
|
4372
4402
|
}, u = function() {
|
|
4373
4403
|
var e = l("initialFocus", { hasFallback: !0 });
|
|
4374
4404
|
if (e === !1) return !1;
|
|
4375
|
-
if (e === void 0 || e && !
|
|
4405
|
+
if (e === void 0 || e && !Ol(e, i.tabbableOptions)) if (c(n.activeElement) >= 0) e = n.activeElement;
|
|
4376
4406
|
else {
|
|
4377
4407
|
var t = a.tabbableGroups[0];
|
|
4378
4408
|
e = t && t.firstTabbableNode || l("fallbackFocus");
|
|
@@ -4382,17 +4412,17 @@ var Ll = {
|
|
|
4382
4412
|
return e;
|
|
4383
4413
|
}, d = function() {
|
|
4384
4414
|
if (a.containerGroups = a.containers.map(function(e) {
|
|
4385
|
-
var t =
|
|
4386
|
-
return
|
|
4415
|
+
var t = wl(e, i.tabbableOptions), n = Tl(e, i.tabbableOptions), r = t.length > 0 ? t[0] : void 0, a = t.length > 0 ? t[t.length - 1] : void 0, o = n.find(function(e) {
|
|
4416
|
+
return El(e);
|
|
4387
4417
|
}), s = n.slice().reverse().find(function(e) {
|
|
4388
|
-
return
|
|
4418
|
+
return El(e);
|
|
4389
4419
|
});
|
|
4390
4420
|
return {
|
|
4391
4421
|
container: e,
|
|
4392
4422
|
tabbableNodes: t,
|
|
4393
4423
|
focusableNodes: n,
|
|
4394
4424
|
posTabIndexesFound: !!t.find(function(e) {
|
|
4395
|
-
return
|
|
4425
|
+
return ol(e) > 0;
|
|
4396
4426
|
}),
|
|
4397
4427
|
firstTabbableNode: r,
|
|
4398
4428
|
lastTabbableNode: a,
|
|
@@ -4401,9 +4431,9 @@ var Ll = {
|
|
|
4401
4431
|
nextTabbableNode: function(e) {
|
|
4402
4432
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, i = t.indexOf(e);
|
|
4403
4433
|
return i < 0 ? r ? n.slice(n.indexOf(e) + 1).find(function(e) {
|
|
4404
|
-
return
|
|
4434
|
+
return El(e);
|
|
4405
4435
|
}) : n.slice(0, n.indexOf(e)).reverse().find(function(e) {
|
|
4406
|
-
return
|
|
4436
|
+
return El(e);
|
|
4407
4437
|
}) : t[i + (r ? 1 : -1)];
|
|
4408
4438
|
}
|
|
4409
4439
|
};
|
|
@@ -4422,14 +4452,14 @@ var Ll = {
|
|
|
4422
4452
|
p(u());
|
|
4423
4453
|
return;
|
|
4424
4454
|
}
|
|
4425
|
-
e.focus({ preventScroll: !!i.preventScroll }), a.mostRecentlyFocusedNode = e,
|
|
4455
|
+
e.focus({ preventScroll: !!i.preventScroll }), a.mostRecentlyFocusedNode = e, Hl(e) && e.select();
|
|
4426
4456
|
}
|
|
4427
4457
|
}, m = function(e) {
|
|
4428
4458
|
var t = l("setReturnFocus", { params: [e] });
|
|
4429
4459
|
return t || (t === !1 ? !1 : e);
|
|
4430
4460
|
}, h = function(e) {
|
|
4431
4461
|
var t = e.target, n = e.event, r = e.isBackward, o = r === void 0 ? !1 : r;
|
|
4432
|
-
t ||=
|
|
4462
|
+
t ||= Yl(n), d();
|
|
4433
4463
|
var s = null;
|
|
4434
4464
|
if (a.tabbableGroups.length > 0) {
|
|
4435
4465
|
var u = c(t, n), f = u >= 0 ? a.containerGroups[u] : void 0;
|
|
@@ -4439,37 +4469,37 @@ var Ll = {
|
|
|
4439
4469
|
var n = e.firstTabbableNode;
|
|
4440
4470
|
return t === n;
|
|
4441
4471
|
});
|
|
4442
|
-
if (p < 0 && (f.container === t ||
|
|
4472
|
+
if (p < 0 && (f.container === t || Ol(t, i.tabbableOptions) && !El(t, i.tabbableOptions) && !f.nextTabbableNode(t, !1)) && (p = u), p >= 0) {
|
|
4443
4473
|
var m = p === 0 ? a.tabbableGroups.length - 1 : p - 1, h = a.tabbableGroups[m];
|
|
4444
|
-
s =
|
|
4445
|
-
} else
|
|
4474
|
+
s = ol(t) >= 0 ? h.lastTabbableNode : h.lastDomTabbableNode;
|
|
4475
|
+
} else Wl(n) || (s = f.nextTabbableNode(t, !1));
|
|
4446
4476
|
} else {
|
|
4447
4477
|
var g = a.tabbableGroups.findIndex(function(e) {
|
|
4448
4478
|
var n = e.lastTabbableNode;
|
|
4449
4479
|
return t === n;
|
|
4450
4480
|
});
|
|
4451
|
-
if (g < 0 && (f.container === t ||
|
|
4481
|
+
if (g < 0 && (f.container === t || Ol(t, i.tabbableOptions) && !El(t, i.tabbableOptions) && !f.nextTabbableNode(t)) && (g = u), g >= 0) {
|
|
4452
4482
|
var _ = g === a.tabbableGroups.length - 1 ? 0 : g + 1, v = a.tabbableGroups[_];
|
|
4453
|
-
s =
|
|
4454
|
-
} else
|
|
4483
|
+
s = ol(t) >= 0 ? v.firstTabbableNode : v.firstDomTabbableNode;
|
|
4484
|
+
} else Wl(n) || (s = f.nextTabbableNode(t));
|
|
4455
4485
|
}
|
|
4456
4486
|
} else s = l("fallbackFocus");
|
|
4457
4487
|
return s;
|
|
4458
4488
|
}, g = function(e) {
|
|
4459
|
-
if (!(c(
|
|
4460
|
-
if (
|
|
4489
|
+
if (!(c(Yl(e), e) >= 0)) {
|
|
4490
|
+
if (Jl(i.clickOutsideDeactivates, e)) {
|
|
4461
4491
|
o.deactivate({ returnFocus: i.returnFocusOnDeactivate });
|
|
4462
4492
|
return;
|
|
4463
4493
|
}
|
|
4464
|
-
|
|
4494
|
+
Jl(i.allowOutsideClick, e) || e.preventDefault();
|
|
4465
4495
|
}
|
|
4466
4496
|
}, _ = function(e) {
|
|
4467
|
-
var t =
|
|
4497
|
+
var t = Yl(e), n = c(t, e) >= 0;
|
|
4468
4498
|
if (n || t instanceof Document) n && (a.mostRecentlyFocusedNode = t);
|
|
4469
4499
|
else {
|
|
4470
4500
|
e.stopImmediatePropagation();
|
|
4471
4501
|
var r, o = !0;
|
|
4472
|
-
if (a.mostRecentlyFocusedNode) if (
|
|
4502
|
+
if (a.mostRecentlyFocusedNode) if (ol(a.mostRecentlyFocusedNode) > 0) {
|
|
4473
4503
|
var s = c(a.mostRecentlyFocusedNode), l = a.containerGroups[s].tabbableNodes;
|
|
4474
4504
|
if (l.length > 0) {
|
|
4475
4505
|
var d = l.findIndex(function(e) {
|
|
@@ -4479,7 +4509,7 @@ var Ll = {
|
|
|
4479
4509
|
}
|
|
4480
4510
|
} else a.containerGroups.some(function(e) {
|
|
4481
4511
|
return e.tabbableNodes.some(function(e) {
|
|
4482
|
-
return
|
|
4512
|
+
return ol(e) > 0;
|
|
4483
4513
|
});
|
|
4484
4514
|
}) || (o = !1);
|
|
4485
4515
|
else o = !1;
|
|
@@ -4496,15 +4526,15 @@ var Ll = {
|
|
|
4496
4526
|
event: e,
|
|
4497
4527
|
isBackward: t
|
|
4498
4528
|
});
|
|
4499
|
-
n && (
|
|
4529
|
+
n && (Wl(e) && e.preventDefault(), p(n));
|
|
4500
4530
|
}, y = function(e) {
|
|
4501
4531
|
(i.isKeyForward(e) || i.isKeyBackward(e)) && v(e, i.isKeyBackward(e));
|
|
4502
4532
|
}, b = function(e) {
|
|
4503
|
-
|
|
4533
|
+
Ul(e) && Jl(i.escapeDeactivates, e) !== !1 && (e.preventDefault(), o.deactivate());
|
|
4504
4534
|
}, x = function(e) {
|
|
4505
|
-
c(
|
|
4535
|
+
c(Yl(e), e) >= 0 || Jl(i.clickOutsideDeactivates, e) || Jl(i.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
|
|
4506
4536
|
}, S = function() {
|
|
4507
|
-
if (a.active) return
|
|
4537
|
+
if (a.active) return Vl.activateTrap(r, o), a.delayInitialFocusTimer = i.delayInitialFocus ? ql(function() {
|
|
4508
4538
|
p(u());
|
|
4509
4539
|
}) : p(u()), n.addEventListener("focusin", _, !0), n.addEventListener("mousedown", g, {
|
|
4510
4540
|
capture: !0,
|
|
@@ -4521,7 +4551,7 @@ var Ll = {
|
|
|
4521
4551
|
}), n.addEventListener("keydown", b), o;
|
|
4522
4552
|
}, C = function(e) {
|
|
4523
4553
|
a.active && !a.paused && o._setSubtreeIsolation(!1), a.adjacentElements.clear(), a.alreadySilent.clear();
|
|
4524
|
-
var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r =
|
|
4554
|
+
var t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = jl(e), i;
|
|
4525
4555
|
try {
|
|
4526
4556
|
for (r.s(); !(i = r.n()).done;) {
|
|
4527
4557
|
var s = i.value;
|
|
@@ -4530,7 +4560,7 @@ var Ll = {
|
|
|
4530
4560
|
t.add(l);
|
|
4531
4561
|
var u = l.parentElement, d = [];
|
|
4532
4562
|
u ? d = u.children : !u && c && (d = l.getRootNode().children, u = l.getRootNode().host, c = typeof ShadowRoot < "u" && u.getRootNode() instanceof ShadowRoot);
|
|
4533
|
-
var f =
|
|
4563
|
+
var f = jl(d), p;
|
|
4534
4564
|
try {
|
|
4535
4565
|
for (f.s(); !(p = f.n()).done;) {
|
|
4536
4566
|
var m = p.value;
|
|
@@ -4577,7 +4607,7 @@ var Ll = {
|
|
|
4577
4607
|
},
|
|
4578
4608
|
activate: function(e) {
|
|
4579
4609
|
if (a.active) return this;
|
|
4580
|
-
var t = s(e, "onActivate"), c = s(e, "onPostActivate"), l = s(e, "checkCanFocusTrap"), u =
|
|
4610
|
+
var t = s(e, "onActivate"), c = s(e, "onPostActivate"), l = s(e, "checkCanFocusTrap"), u = Vl.getActiveTrap(r), p = !1;
|
|
4581
4611
|
if (u && !u.paused) {
|
|
4582
4612
|
var m;
|
|
4583
4613
|
(m = u._setSubtreeIsolation) == null || m.call(u, !1), p = !0;
|
|
@@ -4590,7 +4620,7 @@ var Ll = {
|
|
|
4590
4620
|
if (l) return l(a.containers.concat()).then(h, h), this;
|
|
4591
4621
|
h();
|
|
4592
4622
|
} catch (e) {
|
|
4593
|
-
if (u ===
|
|
4623
|
+
if (u === Vl.getActiveTrap(r) && p) {
|
|
4594
4624
|
var g;
|
|
4595
4625
|
(g = u._setSubtreeIsolation) == null || g.call(u, !0);
|
|
4596
4626
|
}
|
|
@@ -4600,16 +4630,16 @@ var Ll = {
|
|
|
4600
4630
|
},
|
|
4601
4631
|
deactivate: function(e) {
|
|
4602
4632
|
if (!a.active) return this;
|
|
4603
|
-
var t =
|
|
4633
|
+
var t = Il({
|
|
4604
4634
|
onDeactivate: i.onDeactivate,
|
|
4605
4635
|
onPostDeactivate: i.onPostDeactivate,
|
|
4606
4636
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
4607
4637
|
}, e);
|
|
4608
|
-
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, a.paused || o._setSubtreeIsolation(!1), a.alreadySilent.clear(), w(), a.active = !1, a.paused = !1, E(),
|
|
4638
|
+
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, a.paused || o._setSubtreeIsolation(!1), a.alreadySilent.clear(), w(), a.active = !1, a.paused = !1, E(), Vl.deactivateTrap(r, o);
|
|
4609
4639
|
var n = s(t, "onDeactivate"), c = s(t, "onPostDeactivate"), l = s(t, "checkCanReturnFocus"), u = s(t, "returnFocus", "returnFocusOnDeactivate");
|
|
4610
4640
|
n?.();
|
|
4611
4641
|
var d = function() {
|
|
4612
|
-
|
|
4642
|
+
ql(function() {
|
|
4613
4643
|
u && p(m(a.nodeFocusedBeforeActivation)), c?.();
|
|
4614
4644
|
});
|
|
4615
4645
|
};
|
|
@@ -4665,13 +4695,13 @@ var Ll = {
|
|
|
4665
4695
|
};
|
|
4666
4696
|
//#endregion
|
|
4667
4697
|
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
|
|
4668
|
-
function
|
|
4698
|
+
function Ql(e, t = {}) {
|
|
4669
4699
|
let n, { immediate: r, ...i } = t, a = /* @__PURE__ */ tn(!1), o = /* @__PURE__ */ tn(!1), s = (e) => n && n.activate(e), c = (e) => n && n.deactivate(e);
|
|
4670
|
-
return L(Q(() =>
|
|
4700
|
+
return L(Q(() => pc(an(e)).map((e) => {
|
|
4671
4701
|
let t = an(e);
|
|
4672
|
-
return typeof t == "string" ? t :
|
|
4673
|
-
}).filter(
|
|
4674
|
-
if (e.length) if (!n) n =
|
|
4702
|
+
return typeof t == "string" ? t : Cc(t);
|
|
4703
|
+
}).filter(nc)), (e) => {
|
|
4704
|
+
if (e.length) if (!n) n = Zl(e, {
|
|
4675
4705
|
...i,
|
|
4676
4706
|
onActivate() {
|
|
4677
4707
|
a.value = !0, t.onActivate && t.onActivate();
|
|
@@ -4684,7 +4714,7 @@ function Jl(e, t = {}) {
|
|
|
4684
4714
|
let t = n?.active;
|
|
4685
4715
|
n?.updateContainerElements(e), !t && r && s();
|
|
4686
4716
|
}
|
|
4687
|
-
}, { flush: "post" }),
|
|
4717
|
+
}, { flush: "post" }), Qs(() => c()), {
|
|
4688
4718
|
hasFocus: a,
|
|
4689
4719
|
isPaused: o,
|
|
4690
4720
|
activate: s,
|
|
@@ -4699,7 +4729,7 @@ function Jl(e, t = {}) {
|
|
|
4699
4729
|
}
|
|
4700
4730
|
//#endregion
|
|
4701
4731
|
//#region src/compose/useOverlayFocus.ts
|
|
4702
|
-
var
|
|
4732
|
+
var $l = [
|
|
4703
4733
|
"a[href]",
|
|
4704
4734
|
"button:not([disabled])",
|
|
4705
4735
|
"input:not([disabled])",
|
|
@@ -4708,8 +4738,8 @@ var Yl = [
|
|
|
4708
4738
|
"[tabindex]:not([tabindex='-1'])",
|
|
4709
4739
|
"[contenteditable='true']"
|
|
4710
4740
|
].join(",");
|
|
4711
|
-
function
|
|
4712
|
-
let r = /* @__PURE__ */ N(!1), i = () => !!e.value?.querySelector(
|
|
4741
|
+
function eu(e, t, n = !1) {
|
|
4742
|
+
let r = /* @__PURE__ */ N(!1), i = () => !!e.value?.querySelector($l), { activate: a, deactivate: o, pause: s, unpause: c } = Ql(e, {
|
|
4713
4743
|
immediate: !1,
|
|
4714
4744
|
clickOutsideDeactivates: n,
|
|
4715
4745
|
initialFocus: () => {
|
|
@@ -4753,7 +4783,7 @@ function Xl(e, t, n = !1) {
|
|
|
4753
4783
|
}
|
|
4754
4784
|
//#endregion
|
|
4755
4785
|
//#region src/compose/useOverlayEscape.ts
|
|
4756
|
-
function
|
|
4786
|
+
function tu(e, t, n, r, i) {
|
|
4757
4787
|
function a(i) {
|
|
4758
4788
|
if (!(!n.value || !t.value)) {
|
|
4759
4789
|
for (let t of e) if (t.value?.contains(i.target)) return;
|
|
@@ -4773,10 +4803,10 @@ function Zl(e, t, n, r, i) {
|
|
|
4773
4803
|
}
|
|
4774
4804
|
//#endregion
|
|
4775
4805
|
//#region src/compose/useCustomElementAttrs.ts
|
|
4776
|
-
function
|
|
4806
|
+
function nu() {
|
|
4777
4807
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
4778
4808
|
}
|
|
4779
|
-
function
|
|
4809
|
+
function ru(e = {}) {
|
|
4780
4810
|
let t = di(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, r = e.omitInCustomElement ?? [];
|
|
4781
4811
|
return {
|
|
4782
4812
|
attrs: t,
|
|
@@ -4791,7 +4821,7 @@ function $l(e = {}) {
|
|
|
4791
4821
|
}
|
|
4792
4822
|
//#endregion
|
|
4793
4823
|
//#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
|
|
4794
|
-
var
|
|
4824
|
+
var iu = { class: "g-btn--icon" }, au = { class: "g-btn--label" }, ou = /*@__PURE__*/ R({
|
|
4795
4825
|
inheritAttrs: !1,
|
|
4796
4826
|
__name: "GButton",
|
|
4797
4827
|
props: {
|
|
@@ -4840,7 +4870,7 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /*@__PUR
|
|
|
4840
4870
|
"mouseleave"
|
|
4841
4871
|
],
|
|
4842
4872
|
setup(e) {
|
|
4843
|
-
let t = e, n = ui(), { forwardedAttrs: r } =
|
|
4873
|
+
let t = e, n = ui(), { forwardedAttrs: r } = ru({ omitInCustomElement: ["id"] }), i = Q(() => [
|
|
4844
4874
|
"g-btn",
|
|
4845
4875
|
`g-btn--${t.size}`,
|
|
4846
4876
|
`g-btn--${t.theme}`,
|
|
@@ -4868,11 +4898,11 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /*@__PUR
|
|
|
4868
4898
|
onMouseenter: o[7] ||= (e) => a.$emit("mouseenter", e),
|
|
4869
4899
|
onMouseleave: o[8] ||= (e) => a.$emit("mouseleave", e)
|
|
4870
4900
|
}), {
|
|
4871
|
-
default: I(() => [e.icon || n.icon ? (G(), K(W, { key: 0 }, [J("span",
|
|
4901
|
+
default: I(() => [e.icon || n.icon ? (G(), K(W, { key: 0 }, [J("span", iu, [n.icon ? V(a.$slots, "icon", { key: 0 }) : (G(), K("span", {
|
|
4872
4902
|
key: 1,
|
|
4873
4903
|
class: k(e.icon + " g-btn--icon-span"),
|
|
4874
4904
|
"aria-hidden": "true"
|
|
4875
|
-
}, null, 2))]), J("span",
|
|
4905
|
+
}, null, 2))]), J("span", au, [V(a.$slots, "default")])], 64)) : V(a.$slots, "default", { key: 1 })]),
|
|
4876
4906
|
_: 3
|
|
4877
4907
|
}, 16, [
|
|
4878
4908
|
"to",
|
|
@@ -4884,11 +4914,11 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /*@__PUR
|
|
|
4884
4914
|
let n = e.__vccOpts || e;
|
|
4885
4915
|
for (let [e, r] of t) n[e] = r;
|
|
4886
4916
|
return n;
|
|
4887
|
-
},
|
|
4917
|
+
}, su = /*#__PURE__*/ $(ou, [["styles", [""]]]), cu = [
|
|
4888
4918
|
"id",
|
|
4889
4919
|
"aria-labelledby",
|
|
4890
4920
|
"aria-describedby"
|
|
4891
|
-
],
|
|
4921
|
+
], lu = { class: "g-alertdialog-inner" }, uu = ["id"], du = ["id"], fu = { class: "g-alertdialog-actions" }, pu = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
4892
4922
|
__name: "GAlertDialog",
|
|
4893
4923
|
props: {
|
|
4894
4924
|
label: {
|
|
@@ -4906,11 +4936,11 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /*@__PUR
|
|
|
4906
4936
|
},
|
|
4907
4937
|
emits: ["cancel", "confirm"],
|
|
4908
4938
|
setup(e, { emit: t }) {
|
|
4909
|
-
let n = e, r = t, i = /* @__PURE__ */ N(null), a = /* @__PURE__ */ N(!0), o = z(), { pop: s, push: c, isTop: l, zIndex: u } =
|
|
4939
|
+
let n = e, r = t, i = /* @__PURE__ */ N(null), a = /* @__PURE__ */ N(!0), o = z(), { pop: s, push: c, isTop: l, zIndex: u } = Ys(o, !0, !0), { deactivate: d, activate: f } = eu(i, l);
|
|
4910
4940
|
function p() {
|
|
4911
4941
|
r("cancel");
|
|
4912
4942
|
}
|
|
4913
|
-
return
|
|
4943
|
+
return tu([i], l, a, p, s), Gr(() => {
|
|
4914
4944
|
c(), f();
|
|
4915
4945
|
}), Wr(() => {
|
|
4916
4946
|
s(), d();
|
|
@@ -4928,39 +4958,39 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /*@__PUR
|
|
|
4928
4958
|
ref_key: "dialog",
|
|
4929
4959
|
ref: i,
|
|
4930
4960
|
style: de({ zIndex: P(u) })
|
|
4931
|
-
}, [J("div",
|
|
4961
|
+
}, [J("div", lu, [
|
|
4932
4962
|
J("h2", {
|
|
4933
4963
|
id: "alertdialog-label-" + P(o),
|
|
4934
4964
|
class: "g-alertdialog-label"
|
|
4935
|
-
}, A(n.label), 9,
|
|
4965
|
+
}, A(n.label), 9, uu),
|
|
4936
4966
|
J("div", {
|
|
4937
4967
|
id: "alertdialog-description-" + P(o),
|
|
4938
4968
|
class: "g-alertdialog-content"
|
|
4939
|
-
}, [V(e.$slots, "default")], 8,
|
|
4940
|
-
J("div",
|
|
4969
|
+
}, [V(e.$slots, "default")], 8, du),
|
|
4970
|
+
J("div", fu, [Y(su, {
|
|
4941
4971
|
outlined: "",
|
|
4942
4972
|
onClick: t[0] ||= (e) => r("cancel")
|
|
4943
4973
|
}, {
|
|
4944
4974
|
default: I(() => [...t[2] ||= [X("Cancel", -1)]]),
|
|
4945
4975
|
_: 1
|
|
4946
|
-
}), Y(
|
|
4976
|
+
}), Y(su, {
|
|
4947
4977
|
theme: n.buttonColor,
|
|
4948
4978
|
onClick: t[1] ||= (e) => r("confirm")
|
|
4949
4979
|
}, {
|
|
4950
4980
|
default: I(() => [X(A(n.buttonText), 1)]),
|
|
4951
4981
|
_: 1
|
|
4952
4982
|
}, 8, ["theme"])])
|
|
4953
|
-
])], 12,
|
|
4983
|
+
])], 12, cu)]),
|
|
4954
4984
|
_: 3
|
|
4955
4985
|
})]));
|
|
4956
4986
|
}
|
|
4957
|
-
}), [["styles", [""]]]),
|
|
4987
|
+
}), [["styles", [""]]]), mu = { class: /*@__PURE__*/ k({ "g-app-header": !0 }) }, hu = { class: "g-app-header__brand" }, gu = {
|
|
4958
4988
|
class: "g-app-header__brand-text",
|
|
4959
4989
|
href: "/"
|
|
4960
|
-
},
|
|
4990
|
+
}, _u = {
|
|
4961
4991
|
key: 0,
|
|
4962
4992
|
class: "g-app-header__block-i-container"
|
|
4963
|
-
},
|
|
4993
|
+
}, vu = { class: "g-app-header__title" }, yu = { class: "g-app-header__app-controls-wrap" }, bu = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
4964
4994
|
__name: "GAppHeader",
|
|
4965
4995
|
props: {
|
|
4966
4996
|
illinois: {
|
|
@@ -4973,10 +5003,10 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /*@__PUR
|
|
|
4973
5003
|
}
|
|
4974
5004
|
},
|
|
4975
5005
|
setup(e) {
|
|
4976
|
-
return (t, n) => (G(), K("header",
|
|
5006
|
+
return (t, n) => (G(), K("header", mu, [
|
|
4977
5007
|
n[1] ||= J("div", { class: "g-app-header__background" }, [J("div", { class: "g-app-header__background-pattern" }), J("div", { class: "g-app-header__background-gradient" })], -1),
|
|
4978
|
-
J("div",
|
|
4979
|
-
e.illinois ? (G(), K("div",
|
|
5008
|
+
J("div", hu, [V(t.$slots, "left", {}, () => [J("a", gu, A(e.brand), 1)])]),
|
|
5009
|
+
e.illinois ? (G(), K("div", _u, [...n[0] ||= [J("svg", {
|
|
4980
5010
|
class: "g-app-header__block-i",
|
|
4981
5011
|
role: "img",
|
|
4982
5012
|
width: "55",
|
|
@@ -4993,14 +5023,14 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /*@__PUR
|
|
|
4993
5023
|
d: "M42.1 18.1h9V3H3v15h9c1.7 0 3 1.3 3 3v36.1c0 1.7-1.3 3-3 3H3v15h48.1v-15h-9c-1.7 0-3-1.3-3-3v-36c0-1.7 1.4-3 3-3z"
|
|
4994
5024
|
})
|
|
4995
5025
|
], -1)]])) : V(t.$slots, "icon", { key: 1 }),
|
|
4996
|
-
J("div",
|
|
4997
|
-
J("div",
|
|
5026
|
+
J("div", vu, [V(t.$slots, "title")]),
|
|
5027
|
+
J("div", yu, [V(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
|
|
4998
5028
|
]));
|
|
4999
5029
|
}
|
|
5000
5030
|
}), [["styles", [""]]]);
|
|
5001
5031
|
//#endregion
|
|
5002
5032
|
//#region src/compose/useForm.ts
|
|
5003
|
-
function
|
|
5033
|
+
function xu() {
|
|
5004
5034
|
let e = /* @__PURE__ */ Ut({}), t = /* @__PURE__ */ N(!1), n = Q(() => {
|
|
5005
5035
|
let t = {};
|
|
5006
5036
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -5042,18 +5072,18 @@ function _u() {
|
|
|
5042
5072
|
}
|
|
5043
5073
|
//#endregion
|
|
5044
5074
|
//#region src/compose/useWebComponentForm.ts
|
|
5045
|
-
function
|
|
5075
|
+
function Su() {
|
|
5046
5076
|
let e = globalThis;
|
|
5047
5077
|
return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
|
|
5048
5078
|
}
|
|
5049
|
-
function
|
|
5050
|
-
let t =
|
|
5051
|
-
return t.has(n) || t.set(n,
|
|
5079
|
+
function Cu(e = "default") {
|
|
5080
|
+
let t = Su(), n = e || "default";
|
|
5081
|
+
return t.has(n) || t.set(n, xu()), t.get(n);
|
|
5052
5082
|
}
|
|
5053
5083
|
//#endregion
|
|
5054
5084
|
//#region src/compose/useFormField.ts
|
|
5055
|
-
function
|
|
5056
|
-
let t = di(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, r = e.formKey ?? n ?? "default", i = qn("form", null) ?? (
|
|
5085
|
+
function wu(e) {
|
|
5086
|
+
let t = di(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, r = e.formKey ?? n ?? "default", i = qn("form", null) ?? (nu() ? Cu(r) : null), a = Q(() => {
|
|
5057
5087
|
let t = [];
|
|
5058
5088
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
5059
5089
|
}), o = Q(() => a.value.length > 0), s = e.name;
|
|
@@ -5072,7 +5102,7 @@ function bu(e) {
|
|
|
5072
5102
|
}
|
|
5073
5103
|
//#endregion
|
|
5074
5104
|
//#region src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
|
|
5075
|
-
var
|
|
5105
|
+
var Tu = ["id"], Eu = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5076
5106
|
__name: "GFormErrorMessages",
|
|
5077
5107
|
props: {
|
|
5078
5108
|
errors: { type: Array },
|
|
@@ -5095,23 +5125,23 @@ var xu = ["id"], Su = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
5095
5125
|
}, [J("path", {
|
|
5096
5126
|
fill: "currentColor",
|
|
5097
5127
|
d: "M320 64C334.7 64 348.2 72.1 355.2 85L571.2 485C577.9 497.4 577.6 512.4 570.4 524.5C563.2 536.6 550.1 544 536 544L104 544C89.9 544 76.8 536.6 69.6 524.5C62.4 512.4 62.1 497.4 68.8 485L284.8 85C291.8 72.1 305.3 64 320 64zM320 416C302.3 416 288 430.3 288 448C288 465.7 302.3 480 320 480C337.7 480 352 465.7 352 448C352 430.3 337.7 416 320 416zM320 224C301.8 224 287.3 239.5 288.6 257.7L296 361.7C296.9 374.2 307.4 384 319.9 384C332.5 384 342.9 374.3 343.8 361.7L351.2 257.7C352.5 239.5 338.1 224 319.8 224z"
|
|
5098
|
-
})], -1), X(" " + A(e), 1)]))), 128))], 8,
|
|
5128
|
+
})], -1), X(" " + A(e), 1)]))), 128))], 8, Tu)) : Z("", !0);
|
|
5099
5129
|
}
|
|
5100
|
-
}), [["styles", [""]]]),
|
|
5130
|
+
}), [["styles", [""]]]), Du = {
|
|
5101
5131
|
key: 0,
|
|
5102
5132
|
class: "g-checkbox-group__legend"
|
|
5103
|
-
},
|
|
5133
|
+
}, Ou = {
|
|
5104
5134
|
key: 0,
|
|
5105
5135
|
class: "g-checkbox-group__required",
|
|
5106
5136
|
"aria-hidden": "true"
|
|
5107
|
-
},
|
|
5137
|
+
}, ku = {
|
|
5108
5138
|
key: 1,
|
|
5109
5139
|
class: "g-checkbox-group__label"
|
|
5110
|
-
},
|
|
5140
|
+
}, Au = {
|
|
5111
5141
|
key: 0,
|
|
5112
5142
|
class: "g-checkbox-group__required",
|
|
5113
5143
|
"aria-hidden": "true"
|
|
5114
|
-
},
|
|
5144
|
+
}, ju = ["id"], Mu = { class: "g-checkbox-group__options" }, Nu = ["for"], Pu = [
|
|
5115
5145
|
"id",
|
|
5116
5146
|
"type",
|
|
5117
5147
|
"name",
|
|
@@ -5120,7 +5150,7 @@ var xu = ["id"], Su = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
5120
5150
|
"disabled",
|
|
5121
5151
|
"required",
|
|
5122
5152
|
"onChange"
|
|
5123
|
-
],
|
|
5153
|
+
], Fu = { class: "g-checkbox-group__label-text" }, Iu = ["id"], Lu = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5124
5154
|
__name: "GCheckboxGroup",
|
|
5125
5155
|
props: /*@__PURE__*/ H({
|
|
5126
5156
|
label: {
|
|
@@ -5158,7 +5188,7 @@ var xu = ["id"], Su = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
5158
5188
|
}),
|
|
5159
5189
|
emits: /*@__PURE__*/ H(["change"], ["update:modelValue"]),
|
|
5160
5190
|
setup(e, { emit: t }) {
|
|
5161
|
-
let n = e, r = U(e, "modelValue"), i = z(), { displayErrors: a, hasErrors: o } =
|
|
5191
|
+
let n = e, r = U(e, "modelValue"), i = z(), { displayErrors: a, hasErrors: o } = wu({
|
|
5162
5192
|
name: n.name,
|
|
5163
5193
|
value: r,
|
|
5164
5194
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -5196,13 +5226,13 @@ var xu = ["id"], Su = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
5196
5226
|
}
|
|
5197
5227
|
return (t, n) => (G(), q(ni(p.value ? "fieldset" : "div"), Va({ class: ["g-checkbox-group", { "g-checkbox-group--error": P(o) }] }, m.value), {
|
|
5198
5228
|
default: I(() => [
|
|
5199
|
-
p.value && e.label ? (G(), K("legend",
|
|
5229
|
+
p.value && e.label ? (G(), K("legend", Du, [X(A(e.label), 1), e.required ? (G(), K("span", Ou, "\xA0*")) : Z("", !0)])) : !p.value && e.label ? (G(), K("div", ku, [X(A(e.label), 1), e.required ? (G(), K("span", Au, "\xA0*")) : Z("", !0)])) : Z("", !0),
|
|
5200
5230
|
e.instructions ? (G(), K("div", {
|
|
5201
5231
|
key: 2,
|
|
5202
5232
|
id: f.value,
|
|
5203
5233
|
class: "g-checkbox-group__instructions"
|
|
5204
|
-
}, A(e.instructions), 9,
|
|
5205
|
-
J("div",
|
|
5234
|
+
}, A(e.instructions), 9, ju)) : Z("", !0),
|
|
5235
|
+
J("div", Mu, [(G(!0), K(W, null, B(e.options, (t, n) => (G(), K("div", {
|
|
5206
5236
|
key: t.value,
|
|
5207
5237
|
class: k(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": t.disabled }])
|
|
5208
5238
|
}, [J("label", {
|
|
@@ -5217,12 +5247,12 @@ var xu = ["id"], Su = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
5217
5247
|
disabled: t.disabled,
|
|
5218
5248
|
required: e.required && (e.radio && n === 0 || !e.radio && e.options.length === 1),
|
|
5219
5249
|
class: "g-checkbox-group__input"
|
|
5220
|
-
}, { ref_for: !0 }, _(t, n), { onChange: (e) => l(t.value, e.target.checked) }), null, 16,
|
|
5250
|
+
}, { ref_for: !0 }, _(t, n), { onChange: (e) => l(t.value, e.target.checked) }), null, 16, Pu), J("span", Fu, A(t.label), 1)], 10, Nu), t.hint ? (G(), K("div", {
|
|
5221
5251
|
key: 0,
|
|
5222
5252
|
id: h(n),
|
|
5223
5253
|
class: "g-checkbox-group__hint"
|
|
5224
|
-
}, A(t.hint), 9,
|
|
5225
|
-
Y(
|
|
5254
|
+
}, A(t.hint), 9, Iu)) : Z("", !0)], 2))), 128))]),
|
|
5255
|
+
Y(Eu, {
|
|
5226
5256
|
errors: P(a),
|
|
5227
5257
|
id: d.value
|
|
5228
5258
|
}, null, 8, ["errors", "id"])
|
|
@@ -5233,7 +5263,7 @@ var xu = ["id"], Su = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
5233
5263
|
}), [["styles", [""]]]);
|
|
5234
5264
|
//#endregion
|
|
5235
5265
|
//#region src/compose/popoverPosition.ts
|
|
5236
|
-
function
|
|
5266
|
+
function Ru(e, t, n, r) {
|
|
5237
5267
|
let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
|
|
5238
5268
|
o ? e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i <= n.bottom - a ? l = e.bottom + i : (l = n.top + a, c = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i <= n.top + a ? (l = n.top + a, c = !0) : l = e.bottom + i;
|
|
5239
5269
|
let u = e.left + (e.width - t.width) / 2;
|
|
@@ -5249,51 +5279,51 @@ function Pu(e, t, n, r) {
|
|
|
5249
5279
|
}
|
|
5250
5280
|
//#endregion
|
|
5251
5281
|
//#region src/compose/tooltipDom.ts
|
|
5252
|
-
var
|
|
5253
|
-
function
|
|
5254
|
-
return `${e}-${++
|
|
5282
|
+
var zu = 1;
|
|
5283
|
+
function Bu(e = "v-gtooltip") {
|
|
5284
|
+
return `${e}-${++zu}`;
|
|
5255
5285
|
}
|
|
5256
|
-
function
|
|
5286
|
+
function Vu(e, t = "v-gtooltip") {
|
|
5257
5287
|
let n = e.getAttribute("aria-describedby");
|
|
5258
5288
|
if (n) return n;
|
|
5259
|
-
let r =
|
|
5289
|
+
let r = Bu(t);
|
|
5260
5290
|
return e.setAttribute("aria-describedby", r), r;
|
|
5261
5291
|
}
|
|
5262
|
-
function
|
|
5292
|
+
function Hu(e, t) {
|
|
5263
5293
|
let n = document.createElement("div");
|
|
5264
5294
|
return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
|
|
5265
5295
|
}
|
|
5266
|
-
function
|
|
5296
|
+
function Uu(e) {
|
|
5267
5297
|
(document.getElementById("modal-root") ?? document.body).appendChild(e);
|
|
5268
5298
|
}
|
|
5269
|
-
function
|
|
5270
|
-
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } =
|
|
5299
|
+
function Wu(e, t) {
|
|
5300
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = Ru(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
|
|
5271
5301
|
gap: 8,
|
|
5272
5302
|
margin: 8,
|
|
5273
5303
|
preferAbove: !0
|
|
5274
5304
|
}), s = (n.left + n.width / 2 - a) / r.width * 100;
|
|
5275
|
-
t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${
|
|
5305
|
+
t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Zs()}`, t.style.visibility = "visible", t.style.opacity = "1";
|
|
5276
5306
|
}
|
|
5277
|
-
function
|
|
5307
|
+
function Gu(e) {
|
|
5278
5308
|
e.style.opacity = "0", e.style.visibility = "hidden";
|
|
5279
5309
|
}
|
|
5280
5310
|
//#endregion
|
|
5281
5311
|
//#region src/directives/v-gtooltip.ts
|
|
5282
|
-
var
|
|
5312
|
+
var Ku = {
|
|
5283
5313
|
mounted(e, t) {
|
|
5284
|
-
let n = /* @__PURE__ */ N(null), r = /* @__PURE__ */ N(!1), i = /* @__PURE__ */ N(!1), a = /* @__PURE__ */ N(t.value), o = null, s = !1, c =
|
|
5285
|
-
n.value || (n.value =
|
|
5286
|
-
n.value && (r.value || i.value) &&
|
|
5314
|
+
let n = /* @__PURE__ */ N(null), r = /* @__PURE__ */ N(!1), i = /* @__PURE__ */ N(!1), a = /* @__PURE__ */ N(t.value), o = null, s = !1, c = Vu(e), l = () => {
|
|
5315
|
+
n.value || (n.value = Hu(a.value, c), Uu(n.value), o = new ResizeObserver(() => {
|
|
5316
|
+
n.value && (r.value || i.value) && Wu(e, n.value);
|
|
5287
5317
|
}), o.observe(n.value));
|
|
5288
5318
|
};
|
|
5289
5319
|
Zn(() => {
|
|
5290
5320
|
n.value && (n.value.textContent = a.value);
|
|
5291
5321
|
});
|
|
5292
5322
|
let u = () => {
|
|
5293
|
-
n.value && (r.value || i.value) &&
|
|
5323
|
+
n.value && (r.value || i.value) && Wu(e, n.value);
|
|
5294
5324
|
};
|
|
5295
5325
|
Zn(() => {
|
|
5296
|
-
r.value || i.value ? (l(), n.value &&
|
|
5326
|
+
r.value || i.value ? (l(), n.value && Wu(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (Gu(n.value), setTimeout(() => {
|
|
5297
5327
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
5298
5328
|
}, 150)));
|
|
5299
5329
|
});
|
|
@@ -5331,7 +5361,7 @@ var Hu = {
|
|
|
5331
5361
|
let t = e._v_gtooltip;
|
|
5332
5362
|
t && t.tooltip && t.tooltip.value && (t.resizeObserver && t.resizeObserver.disconnect(), t.tooltip.value.remove(), t.tooltip.value = null), t && t.onScroll && window.removeEventListener("scroll", t.onScroll, { capture: !0 }), e.removeEventListener("mouseenter", t.onMouseEnter), e.removeEventListener("mouseleave", t.onMouseLeave), e.removeEventListener("focus", t.onFocus), e.removeEventListener("blur", t.onBlur), e.removeEventListener("keydown", t.onKeyDown), e.removeAttribute("aria-describedby");
|
|
5333
5363
|
}
|
|
5334
|
-
},
|
|
5364
|
+
}, qu = { class: "g-clipboard-text" }, Ju = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5335
5365
|
__name: "GClipboard",
|
|
5336
5366
|
props: {
|
|
5337
5367
|
text: { type: String },
|
|
@@ -5339,12 +5369,12 @@ var Hu = {
|
|
|
5339
5369
|
copyLabel: { type: String }
|
|
5340
5370
|
},
|
|
5341
5371
|
setup(e) {
|
|
5342
|
-
let t = e, n =
|
|
5372
|
+
let t = e, n = Ku, { text: r, copy: i, copied: a, isSupported: o } = Pc({ source: t.text }), s = /* @__PURE__ */ N(t.copyLabel ?? "Copy to clipboard"), c = () => {
|
|
5343
5373
|
o.value ? (i(), s.value = "Copied") : s.value = "Copy not supported";
|
|
5344
5374
|
}, l = () => {
|
|
5345
5375
|
s.value = t.copyLabel ?? "Copy to clipboard";
|
|
5346
5376
|
};
|
|
5347
|
-
return (r, i) => (G(), K("div",
|
|
5377
|
+
return (r, i) => (G(), K("div", qu, [e.hideText ? Z("", !0) : (G(), K(W, { key: 0 }, [X(A(t.text), 1)], 64)), Wn((G(), K("button", {
|
|
5348
5378
|
type: "button",
|
|
5349
5379
|
"aria-label": "Copy",
|
|
5350
5380
|
onClick: c,
|
|
@@ -5361,23 +5391,23 @@ var Hu = {
|
|
|
5361
5391
|
d: "M480 400L288 400C279.2 400 272 392.8 272 384L272 128C272 119.2 279.2 112 288 112L421.5 112C425.7 112 429.8 113.7 432.8 116.7L491.3 175.2C494.3 178.2 496 182.3 496 186.5L496 384C496 392.8 488.8 400 480 400zM288 448L480 448C515.3 448 544 419.3 544 384L544 186.5C544 169.5 537.3 153.2 525.3 141.2L466.7 82.7C454.7 70.7 438.5 64 421.5 64L288 64C252.7 64 224 92.7 224 128L224 384C224 419.3 252.7 448 288 448zM160 192C124.7 192 96 220.7 96 256L96 512C96 547.3 124.7 576 160 576L352 576C387.3 576 416 547.3 416 512L416 496L368 496L368 512C368 520.8 360.8 528 352 528L160 528C151.2 528 144 520.8 144 512L144 256C144 247.2 151.2 240 160 240L176 240L176 192L160 192z"
|
|
5362
5392
|
})], -1)]], 32)), [[P(n), s.value]])]));
|
|
5363
5393
|
}
|
|
5364
|
-
}), [["styles", [""]]]),
|
|
5394
|
+
}), [["styles", [""]]]), Yu = ["for"], Xu = {
|
|
5365
5395
|
key: 0,
|
|
5366
5396
|
class: "g-text-input-required",
|
|
5367
5397
|
"aria-hidden": "true"
|
|
5368
|
-
},
|
|
5398
|
+
}, Zu = ["id"], Qu = {
|
|
5369
5399
|
key: 0,
|
|
5370
5400
|
class: "g-text-input-prefix"
|
|
5371
|
-
},
|
|
5401
|
+
}, $u = [
|
|
5372
5402
|
"value",
|
|
5373
5403
|
"placeholder",
|
|
5374
5404
|
"disabled",
|
|
5375
5405
|
"required",
|
|
5376
5406
|
"aria-invalid"
|
|
5377
|
-
],
|
|
5407
|
+
], ed = {
|
|
5378
5408
|
key: 1,
|
|
5379
5409
|
class: "g-text-input-suffix"
|
|
5380
|
-
},
|
|
5410
|
+
}, td = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5381
5411
|
inheritAttrs: !1,
|
|
5382
5412
|
__name: "GTextInput",
|
|
5383
5413
|
props: /*@__PURE__*/ H({
|
|
@@ -5431,7 +5461,7 @@ var Hu = {
|
|
|
5431
5461
|
}),
|
|
5432
5462
|
emits: /*@__PURE__*/ H(["change"], ["update:modelValue"]),
|
|
5433
5463
|
setup(e, { emit: t }) {
|
|
5434
|
-
let n = e, r = U(e, "modelValue"), i = z(), { attrs: a, isCustomElement: o, forwardedAttrs: s } =
|
|
5464
|
+
let n = e, r = U(e, "modelValue"), i = z(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = ru({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } = wu({
|
|
5435
5465
|
name: n.name,
|
|
5436
5466
|
value: r,
|
|
5437
5467
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -5468,14 +5498,14 @@ var Hu = {
|
|
|
5468
5498
|
key: 0,
|
|
5469
5499
|
for: c.value,
|
|
5470
5500
|
class: "g-text-input-label"
|
|
5471
|
-
}, [X(A(n.label), 1), n.required ? (G(), K("span",
|
|
5501
|
+
}, [X(A(n.label), 1), n.required ? (G(), K("span", Xu, " *")) : Z("", !0)], 8, Yu)) : Z("", !0),
|
|
5472
5502
|
t.$slots.instructions || e.instructions ? (G(), K("div", {
|
|
5473
5503
|
key: 1,
|
|
5474
5504
|
id: "instructions-" + P(i),
|
|
5475
5505
|
class: "g-text-input-instructions"
|
|
5476
|
-
}, [V(t.$slots, "instructions", {}, () => [X(A(e.instructions), 1)])], 8,
|
|
5506
|
+
}, [V(t.$slots, "instructions", {}, () => [X(A(e.instructions), 1)])], 8, Zu)) : Z("", !0),
|
|
5477
5507
|
J("div", { class: k([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
|
|
5478
|
-
n.prefix ? (G(), K("span",
|
|
5508
|
+
n.prefix ? (G(), K("span", Qu, A(n.prefix), 1)) : Z("", !0),
|
|
5479
5509
|
J("input", Va({
|
|
5480
5510
|
value: r.value,
|
|
5481
5511
|
placeholder: n.placeholder,
|
|
@@ -5492,16 +5522,16 @@ var Hu = {
|
|
|
5492
5522
|
id: c.value,
|
|
5493
5523
|
"aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + P(i) : void 0,
|
|
5494
5524
|
"aria-errormessage": P(u) ? "error-message-" + P(i) : void 0
|
|
5495
|
-
}, { "aria-invalid": P(u) ? "true" : "false" }), null, 16,
|
|
5496
|
-
n.suffix ? (G(), K("span",
|
|
5525
|
+
}, { "aria-invalid": P(u) ? "true" : "false" }), null, 16, $u),
|
|
5526
|
+
n.suffix ? (G(), K("span", ed, A(n.suffix), 1)) : Z("", !0)
|
|
5497
5527
|
], 2),
|
|
5498
|
-
Y(
|
|
5528
|
+
Y(Eu, {
|
|
5499
5529
|
errors: P(l),
|
|
5500
5530
|
id: "error-message-" + P(i)
|
|
5501
5531
|
}, null, 8, ["errors", "id"])
|
|
5502
5532
|
], 2));
|
|
5503
5533
|
}
|
|
5504
|
-
}), [["styles", [""]]]),
|
|
5534
|
+
}), [["styles", [""]]]), nd = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5505
5535
|
__name: "GCurrencyInput",
|
|
5506
5536
|
props: /*@__PURE__*/ H({
|
|
5507
5537
|
label: {
|
|
@@ -5543,7 +5573,7 @@ var Hu = {
|
|
|
5543
5573
|
emits: ["update:modelValue"],
|
|
5544
5574
|
setup(e) {
|
|
5545
5575
|
let t = e, n = U(e, "modelValue");
|
|
5546
|
-
return (e, r) => (G(), q(
|
|
5576
|
+
return (e, r) => (G(), q(td, Va({
|
|
5547
5577
|
modelValue: n.value,
|
|
5548
5578
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
5549
5579
|
name: t.name,
|
|
@@ -5570,7 +5600,7 @@ var Hu = {
|
|
|
5570
5600
|
"form-key"
|
|
5571
5601
|
]));
|
|
5572
5602
|
}
|
|
5573
|
-
}), [["styles", [""]]]),
|
|
5603
|
+
}), [["styles", [""]]]), rd = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5574
5604
|
__name: "GDateInput",
|
|
5575
5605
|
props: /*@__PURE__*/ H({
|
|
5576
5606
|
label: {
|
|
@@ -5612,7 +5642,7 @@ var Hu = {
|
|
|
5612
5642
|
emits: ["update:modelValue"],
|
|
5613
5643
|
setup(e) {
|
|
5614
5644
|
let t = e, n = U(e, "modelValue");
|
|
5615
|
-
return (e, r) => (G(), q(
|
|
5645
|
+
return (e, r) => (G(), q(td, Va({
|
|
5616
5646
|
modelValue: n.value,
|
|
5617
5647
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
5618
5648
|
name: t.name,
|
|
@@ -5636,21 +5666,21 @@ var Hu = {
|
|
|
5636
5666
|
"form-key"
|
|
5637
5667
|
]));
|
|
5638
5668
|
}
|
|
5639
|
-
}), [["styles", [""]]]),
|
|
5669
|
+
}), [["styles", [""]]]), id = { class: "g-date-range-input" }, ad = {
|
|
5640
5670
|
key: 0,
|
|
5641
5671
|
class: "g-date-range-input__label"
|
|
5642
|
-
},
|
|
5672
|
+
}, od = {
|
|
5643
5673
|
key: 0,
|
|
5644
5674
|
class: "g-date-range-input__required",
|
|
5645
5675
|
"aria-hidden": "true"
|
|
5646
|
-
},
|
|
5676
|
+
}, sd = {
|
|
5647
5677
|
key: 1,
|
|
5648
5678
|
class: "g-date-range-input__instructions"
|
|
5649
|
-
},
|
|
5679
|
+
}, cd = { class: "g-date-range-input__fields" }, ld = {
|
|
5650
5680
|
key: 2,
|
|
5651
5681
|
class: "g-date-range-input__errors",
|
|
5652
5682
|
role: "alert"
|
|
5653
|
-
},
|
|
5683
|
+
}, ud = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5654
5684
|
__name: "GDateRangeInput",
|
|
5655
5685
|
props: /*@__PURE__*/ H({
|
|
5656
5686
|
label: {
|
|
@@ -5698,7 +5728,7 @@ var Hu = {
|
|
|
5698
5728
|
}),
|
|
5699
5729
|
emits: ["update:modelValue"],
|
|
5700
5730
|
setup(e) {
|
|
5701
|
-
let t = e, n = U(e, "modelValue"), r = /* @__PURE__ */ N(n.value.start || null), i = /* @__PURE__ */ N(n.value.end || null), { displayErrors: a } =
|
|
5731
|
+
let t = e, n = U(e, "modelValue"), r = /* @__PURE__ */ N(n.value.start || null), i = /* @__PURE__ */ N(n.value.end || null), { displayErrors: a } = wu({
|
|
5702
5732
|
name: t.name,
|
|
5703
5733
|
value: n,
|
|
5704
5734
|
errors: /* @__PURE__ */ fn(t, "errors"),
|
|
@@ -5711,10 +5741,10 @@ var Hu = {
|
|
|
5711
5741
|
};
|
|
5712
5742
|
}), L(n, (e) => {
|
|
5713
5743
|
e.start !== r.value && (r.value = e.start), e.end !== i.value && (i.value = e.end);
|
|
5714
|
-
}, { deep: !0 }), (e, n) => (G(), K("div",
|
|
5715
|
-
t.label ? (G(), K("div",
|
|
5716
|
-
t.instructions ? (G(), K("div",
|
|
5717
|
-
J("div",
|
|
5744
|
+
}, { deep: !0 }), (e, n) => (G(), K("div", id, [
|
|
5745
|
+
t.label ? (G(), K("div", ad, [X(A(t.label), 1), t.required ? (G(), K("span", od, " *")) : Z("", !0)])) : Z("", !0),
|
|
5746
|
+
t.instructions ? (G(), K("div", sd, A(t.instructions), 1)) : Z("", !0),
|
|
5747
|
+
J("div", cd, [Y(rd, {
|
|
5718
5748
|
modelValue: r.value,
|
|
5719
5749
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
5720
5750
|
label: t.startLabel,
|
|
@@ -5726,7 +5756,7 @@ var Hu = {
|
|
|
5726
5756
|
"label",
|
|
5727
5757
|
"disabled",
|
|
5728
5758
|
"required"
|
|
5729
|
-
]), Y(
|
|
5759
|
+
]), Y(rd, {
|
|
5730
5760
|
modelValue: i.value,
|
|
5731
5761
|
"onUpdate:modelValue": n[1] ||= (e) => i.value = e,
|
|
5732
5762
|
label: t.endLabel,
|
|
@@ -5739,13 +5769,13 @@ var Hu = {
|
|
|
5739
5769
|
"disabled",
|
|
5740
5770
|
"required"
|
|
5741
5771
|
])]),
|
|
5742
|
-
P(a).length > 0 ? (G(), K("div",
|
|
5772
|
+
P(a).length > 0 ? (G(), K("div", ld, [(G(!0), K(W, null, B(P(a), (e, t) => (G(), K("div", {
|
|
5743
5773
|
key: t,
|
|
5744
5774
|
class: "g-date-range-input__error"
|
|
5745
5775
|
}, A(e), 1))), 128))])) : Z("", !0)
|
|
5746
5776
|
]));
|
|
5747
5777
|
}
|
|
5748
|
-
}), [["styles", [""]]]),
|
|
5778
|
+
}), [["styles", [""]]]), dd = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5749
5779
|
__name: "GDetailList",
|
|
5750
5780
|
props: { variant: {
|
|
5751
5781
|
default: "grid",
|
|
@@ -5755,13 +5785,13 @@ var Hu = {
|
|
|
5755
5785
|
let t = e;
|
|
5756
5786
|
return (e, n) => (G(), K("dl", { class: k(["g-detail-list", `g-detail-list--${t.variant}`]) }, [V(e.$slots, "default")], 2));
|
|
5757
5787
|
}
|
|
5758
|
-
}), [["styles", [""]]]),
|
|
5788
|
+
}), [["styles", [""]]]), fd = { class: "g-detail-list-item" }, pd = { class: "g-detail-list-item__label" }, md = { class: "g-detail-list-item__value" }, hd = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5759
5789
|
__name: "GDetailListItem",
|
|
5760
5790
|
props: { label: { type: String } },
|
|
5761
5791
|
setup(e) {
|
|
5762
|
-
return (t, n) => (G(), K("div",
|
|
5792
|
+
return (t, n) => (G(), K("div", fd, [J("dt", pd, [V(t.$slots, "label", {}, () => [X(A(e.label), 1)])]), J("dd", md, [V(t.$slots, "default")])]));
|
|
5763
5793
|
}
|
|
5764
|
-
}), [["styles", [""]]]),
|
|
5794
|
+
}), [["styles", [""]]]), gd = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5765
5795
|
__name: "GEmailInput",
|
|
5766
5796
|
props: /*@__PURE__*/ H({
|
|
5767
5797
|
label: {
|
|
@@ -5799,7 +5829,7 @@ var Hu = {
|
|
|
5799
5829
|
emits: ["update:modelValue"],
|
|
5800
5830
|
setup(e) {
|
|
5801
5831
|
let t = U(e, "modelValue");
|
|
5802
|
-
return (n, r) => (G(), q(
|
|
5832
|
+
return (n, r) => (G(), q(td, Va({
|
|
5803
5833
|
modelValue: t.value,
|
|
5804
5834
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
5805
5835
|
name: e.name,
|
|
@@ -5821,13 +5851,13 @@ var Hu = {
|
|
|
5821
5851
|
"instructions"
|
|
5822
5852
|
]));
|
|
5823
5853
|
}
|
|
5824
|
-
}), [["styles", [""]]]),
|
|
5854
|
+
}), [["styles", [""]]]), _d = ["for"], vd = {
|
|
5825
5855
|
key: 0,
|
|
5826
5856
|
class: "g-file-input-required"
|
|
5827
|
-
},
|
|
5857
|
+
}, yd = {
|
|
5828
5858
|
key: 0,
|
|
5829
5859
|
class: "g-file-input-box-header"
|
|
5830
|
-
},
|
|
5860
|
+
}, bd = ["id"], xd = [
|
|
5831
5861
|
"id",
|
|
5832
5862
|
"disabled",
|
|
5833
5863
|
"required",
|
|
@@ -5836,11 +5866,11 @@ var Hu = {
|
|
|
5836
5866
|
"aria-invalid",
|
|
5837
5867
|
"aria-describedby",
|
|
5838
5868
|
"aria-errormessage"
|
|
5839
|
-
],
|
|
5869
|
+
], Sd = {
|
|
5840
5870
|
key: 1,
|
|
5841
5871
|
class: "g-file-input-pills",
|
|
5842
5872
|
"aria-label": "Selected files"
|
|
5843
|
-
},
|
|
5873
|
+
}, Cd = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5844
5874
|
inheritAttrs: !1,
|
|
5845
5875
|
__name: "GFileInput",
|
|
5846
5876
|
props: /*@__PURE__*/ H({
|
|
@@ -5876,7 +5906,7 @@ var Hu = {
|
|
|
5876
5906
|
}),
|
|
5877
5907
|
emits: /*@__PURE__*/ H(["change"], ["update:modelValue"]),
|
|
5878
5908
|
setup(e, { emit: t }) {
|
|
5879
|
-
let n = e, r = U(e, "modelValue"), i = z(), { displayErrors: a } =
|
|
5909
|
+
let n = e, r = U(e, "modelValue"), i = z(), { displayErrors: a } = wu({
|
|
5880
5910
|
name: n.name,
|
|
5881
5911
|
value: r,
|
|
5882
5912
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -5903,12 +5933,12 @@ var Hu = {
|
|
|
5903
5933
|
key: 0,
|
|
5904
5934
|
for: P(i),
|
|
5905
5935
|
class: "g-file-input-label"
|
|
5906
|
-
}, [X(A(e.label) + " ", 1), e.required ? (G(), K("span",
|
|
5936
|
+
}, [X(A(e.label) + " ", 1), e.required ? (G(), K("span", vd, "*")) : Z("", !0)], 8, _d)) : Z("", !0),
|
|
5907
5937
|
J("div", { class: k(["g-file-input-box", { "g-file-input-box--disabled": e.disabled }]) }, [
|
|
5908
|
-
e.instructions ? (G(), K("div",
|
|
5938
|
+
e.instructions ? (G(), K("div", yd, [J("span", {
|
|
5909
5939
|
id: "instructions-" + P(i),
|
|
5910
5940
|
class: "g-file-input-instructions"
|
|
5911
|
-
}, A(e.instructions), 9,
|
|
5941
|
+
}, A(e.instructions), 9, bd)])) : Z("", !0),
|
|
5912
5942
|
J("input", {
|
|
5913
5943
|
id: P(i),
|
|
5914
5944
|
type: "file",
|
|
@@ -5921,8 +5951,8 @@ var Hu = {
|
|
|
5921
5951
|
"aria-describedby": e.instructions ? "instructions-" + P(i) : void 0,
|
|
5922
5952
|
"aria-errormessage": d.value ? "error-message-" + P(i) : void 0,
|
|
5923
5953
|
onChange: l
|
|
5924
|
-
}, null, 40,
|
|
5925
|
-
e.multiple && f.value.length > 0 ? (G(), K("ul",
|
|
5954
|
+
}, null, 40, xd),
|
|
5955
|
+
e.multiple && f.value.length > 0 ? (G(), K("ul", Sd, [(G(!0), K(W, null, B(f.value, (e) => (G(), K("li", {
|
|
5926
5956
|
key: e,
|
|
5927
5957
|
class: "g-file-input-pill"
|
|
5928
5958
|
}, [n[0] ||= J("svg", {
|
|
@@ -5932,13 +5962,13 @@ var Hu = {
|
|
|
5932
5962
|
viewBox: "0 0 640 640"
|
|
5933
5963
|
}, [J("path", { d: "M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z" })], -1), X(" " + A(e), 1)]))), 128))])) : Z("", !0)
|
|
5934
5964
|
], 2),
|
|
5935
|
-
Y(
|
|
5965
|
+
Y(Eu, {
|
|
5936
5966
|
errors: u.value,
|
|
5937
5967
|
id: "error-message-" + P(i)
|
|
5938
5968
|
}, null, 8, ["errors", "id"])
|
|
5939
5969
|
], 2));
|
|
5940
5970
|
}
|
|
5941
|
-
}), [["styles", [""]]]),
|
|
5971
|
+
}), [["styles", [""]]]), wd = ["action", "method"], Td = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
5942
5972
|
__name: "GForm",
|
|
5943
5973
|
props: /*@__PURE__*/ H({
|
|
5944
5974
|
action: {
|
|
@@ -5959,7 +5989,7 @@ var Hu = {
|
|
|
5959
5989
|
}),
|
|
5960
5990
|
emits: /*@__PURE__*/ H(["submit"], ["update:modelValue"]),
|
|
5961
5991
|
setup(e, { emit: t }) {
|
|
5962
|
-
let n = e, r = U(e, "modelValue"), i = t, a = qn("form", null), o = a ?? (
|
|
5992
|
+
let n = e, r = U(e, "modelValue"), i = t, a = qn("form", null), o = a ?? (nu() ? Cu(n.formKey) : xu());
|
|
5963
5993
|
a || Kn("form", o), L(() => o.values.value, (e) => {
|
|
5964
5994
|
r.value = { ...e };
|
|
5965
5995
|
}, { deep: !0 }), L(() => r.value, (e) => {
|
|
@@ -5987,27 +6017,27 @@ var Hu = {
|
|
|
5987
6017
|
hasErrors: P(o).hasErrors.value,
|
|
5988
6018
|
values: P(o).values.value,
|
|
5989
6019
|
errors: P(o).errors.value
|
|
5990
|
-
})], 40,
|
|
6020
|
+
})], 40, wd));
|
|
5991
6021
|
}
|
|
5992
6022
|
}), [["styles", [""]]]);
|
|
5993
6023
|
//#endregion
|
|
5994
6024
|
//#region src/compose/useWebComponentSidebar.ts
|
|
5995
|
-
function
|
|
6025
|
+
function Ed(e) {
|
|
5996
6026
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
5997
6027
|
}
|
|
5998
|
-
function
|
|
6028
|
+
function Dd() {
|
|
5999
6029
|
let e = globalThis;
|
|
6000
6030
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
6001
6031
|
}
|
|
6002
|
-
function
|
|
6003
|
-
let n =
|
|
6032
|
+
function Od(e = "default", t) {
|
|
6033
|
+
let n = Dd(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
|
|
6004
6034
|
if (!n.has(r)) {
|
|
6005
|
-
let e =
|
|
6035
|
+
let e = Ed(r), t = /* @__PURE__ */ N(a);
|
|
6006
6036
|
n.set(r, {
|
|
6007
6037
|
id: `g-wc-sidebar-${e}`,
|
|
6008
6038
|
open: /* @__PURE__ */ N(!1),
|
|
6009
6039
|
breakpoint: t,
|
|
6010
|
-
isCollapsible:
|
|
6040
|
+
isCollapsible: Mc(t, { ssrWidth: 1e3 }),
|
|
6011
6041
|
toggle: () => void 0
|
|
6012
6042
|
});
|
|
6013
6043
|
}
|
|
@@ -6039,15 +6069,15 @@ function wd(e = "default", t) {
|
|
|
6039
6069
|
}
|
|
6040
6070
|
//#endregion
|
|
6041
6071
|
//#region src/components/GHamburgerMenu.vue?vue&type=script&setup=true&lang.ts
|
|
6042
|
-
var
|
|
6072
|
+
var kd = [
|
|
6043
6073
|
"id",
|
|
6044
6074
|
"aria-expanded",
|
|
6045
6075
|
"aria-label",
|
|
6046
6076
|
"aria-controls"
|
|
6047
|
-
],
|
|
6077
|
+
], Ad = {
|
|
6048
6078
|
key: 0,
|
|
6049
6079
|
class: "g-hamburger-label"
|
|
6050
|
-
},
|
|
6080
|
+
}, jd = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6051
6081
|
__name: "GHamburgerMenu",
|
|
6052
6082
|
props: {
|
|
6053
6083
|
label: {
|
|
@@ -6066,7 +6096,7 @@ var Td = [
|
|
|
6066
6096
|
},
|
|
6067
6097
|
emits: ["toggle"],
|
|
6068
6098
|
setup(e, { emit: t }) {
|
|
6069
|
-
let n = e, r = qn("sidebar") ?? (
|
|
6099
|
+
let n = e, r = qn("sidebar") ?? (nu() ? Od(n.sidebarKey, /* @__PURE__ */ fn(n, "mediaQuery")) : void 0), i = t;
|
|
6070
6100
|
function a() {
|
|
6071
6101
|
i("toggle"), r?.toggle();
|
|
6072
6102
|
}
|
|
@@ -6089,17 +6119,17 @@ var Td = [
|
|
|
6089
6119
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6090
6120
|
viewBox: "0 0 51.26 51.26",
|
|
6091
6121
|
role: "none"
|
|
6092
|
-
}, [J("g", { fill: "currentColor" }, [J("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (G(), K("span",
|
|
6122
|
+
}, [J("g", { fill: "currentColor" }, [J("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (G(), K("span", Ad, A(e.label), 1)) : Z("", !0)], 42, kd));
|
|
6093
6123
|
}
|
|
6094
|
-
}), [["styles", [""]]]),
|
|
6124
|
+
}), [["styles", [""]]]), Md = { class: "g-history-scroller-wrapper" }, Nd = {
|
|
6095
6125
|
key: 0,
|
|
6096
6126
|
class: "g-history-shadow g-history-shadow--top",
|
|
6097
6127
|
"aria-hidden": "true"
|
|
6098
|
-
},
|
|
6128
|
+
}, Pd = {
|
|
6099
6129
|
key: 1,
|
|
6100
6130
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
6101
6131
|
"aria-hidden": "true"
|
|
6102
|
-
},
|
|
6132
|
+
}, Fd = ["role", "aria-label"], Id = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6103
6133
|
__name: "GHistoryScroller",
|
|
6104
6134
|
props: {
|
|
6105
6135
|
label: { type: String },
|
|
@@ -6126,17 +6156,17 @@ var Td = [
|
|
|
6126
6156
|
}
|
|
6127
6157
|
Gr(() => {
|
|
6128
6158
|
F(o);
|
|
6129
|
-
}),
|
|
6159
|
+
}), Wc(n, () => {
|
|
6130
6160
|
i.value && o();
|
|
6131
|
-
}),
|
|
6161
|
+
}), Wc(r, () => {
|
|
6132
6162
|
i.value && o();
|
|
6133
6163
|
}), L(() => t.entries, async () => {
|
|
6134
6164
|
i.value && (await F(), o());
|
|
6135
6165
|
});
|
|
6136
6166
|
let c = Q(() => [...t.entries].reverse());
|
|
6137
|
-
return (t, l) => (G(), K("div",
|
|
6138
|
-
a.value ? Z("", !0) : (G(), K("div",
|
|
6139
|
-
i.value ? Z("", !0) : (G(), K("div",
|
|
6167
|
+
return (t, l) => (G(), K("div", Md, [
|
|
6168
|
+
a.value ? Z("", !0) : (G(), K("div", Nd)),
|
|
6169
|
+
i.value ? Z("", !0) : (G(), K("div", Pd)),
|
|
6140
6170
|
J("div", {
|
|
6141
6171
|
ref_key: "scrollerRef",
|
|
6142
6172
|
ref: n,
|
|
@@ -6144,7 +6174,7 @@ var Td = [
|
|
|
6144
6174
|
role: e.label ? "log" : void 0,
|
|
6145
6175
|
"aria-label": e.label,
|
|
6146
6176
|
onScroll: s
|
|
6147
|
-
}, [Y(
|
|
6177
|
+
}, [Y(su, {
|
|
6148
6178
|
class: k(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": i.value }]),
|
|
6149
6179
|
size: "small",
|
|
6150
6180
|
type: "button",
|
|
@@ -6171,10 +6201,10 @@ var Td = [
|
|
|
6171
6201
|
key: e.id,
|
|
6172
6202
|
class: "g-history-entry",
|
|
6173
6203
|
tabindex: "-1"
|
|
6174
|
-
}, [V(t.$slots, "default", { entry: e })]))), 128))], 512)], 40,
|
|
6204
|
+
}, [V(t.$slots, "default", { entry: e })]))), 128))], 512)], 40, Fd)
|
|
6175
6205
|
]));
|
|
6176
6206
|
}
|
|
6177
|
-
}), [["styles", [""]]]),
|
|
6207
|
+
}), [["styles", [""]]]), Ld = ["id"], Rd = { class: "g-modal-inner" }, zd = { class: "g-modal-header" }, Bd = ["id"], Vd = ["id"], Hd = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6178
6208
|
__name: "GModal",
|
|
6179
6209
|
props: {
|
|
6180
6210
|
label: { type: String },
|
|
@@ -6194,11 +6224,11 @@ var Td = [
|
|
|
6194
6224
|
},
|
|
6195
6225
|
emits: ["close"],
|
|
6196
6226
|
setup(e, { emit: t }) {
|
|
6197
|
-
let n = e, r = t, i = jr("dialog"), a = /* @__PURE__ */ N(!0), o = z(), { pop: s, push: c, isTop: l, zIndex: u } =
|
|
6227
|
+
let n = e, r = t, i = jr("dialog"), a = /* @__PURE__ */ N(!0), o = z(), { pop: s, push: c, isTop: l, zIndex: u } = Ys(o, !0, !0), { deactivate: d, activate: f } = eu(i, l);
|
|
6198
6228
|
function p() {
|
|
6199
6229
|
r("close");
|
|
6200
6230
|
}
|
|
6201
|
-
|
|
6231
|
+
tu([i], l, a, p, s), Gr(() => {
|
|
6202
6232
|
c(), f();
|
|
6203
6233
|
}), Wr(() => {
|
|
6204
6234
|
s(), d();
|
|
@@ -6224,12 +6254,12 @@ var Td = [
|
|
|
6224
6254
|
ref_key: "dialog",
|
|
6225
6255
|
ref: i,
|
|
6226
6256
|
style: { zIndex: P(u) }
|
|
6227
|
-
}), [J("div",
|
|
6257
|
+
}), [J("div", Rd, [J("div", zd, [e.hiddenLabel ? Z("", !0) : (G(), K("h2", {
|
|
6228
6258
|
key: 0,
|
|
6229
6259
|
id: "modal-label-" + P(o),
|
|
6230
6260
|
class: "g-modal-label",
|
|
6231
6261
|
tabindex: "-1"
|
|
6232
|
-
}, A(e.label), 9,
|
|
6262
|
+
}, A(e.label), 9, Bd)), J("button", {
|
|
6233
6263
|
class: "g-modal-close",
|
|
6234
6264
|
onClick: p,
|
|
6235
6265
|
"aria-label": "Close"
|
|
@@ -6244,21 +6274,21 @@ var Td = [
|
|
|
6244
6274
|
})], -1)]])]), J("div", {
|
|
6245
6275
|
id: "modal-description-" + P(o),
|
|
6246
6276
|
class: "g-modal-content"
|
|
6247
|
-
}, [V(t.$slots, "default")], 8,
|
|
6277
|
+
}, [V(t.$slots, "default")], 8, Vd)])], 16, Ld)]),
|
|
6248
6278
|
_: 3
|
|
6249
6279
|
})]));
|
|
6250
6280
|
}
|
|
6251
6281
|
}), [["styles", [""]]]);
|
|
6252
6282
|
//#endregion
|
|
6253
6283
|
//#region src/compose/useSelectDropdown.ts
|
|
6254
|
-
function
|
|
6284
|
+
function Ud(e) {
|
|
6255
6285
|
return e.map((e) => typeof e == "string" ? {
|
|
6256
6286
|
label: e,
|
|
6257
6287
|
value: e
|
|
6258
6288
|
} : e);
|
|
6259
6289
|
}
|
|
6260
|
-
function
|
|
6261
|
-
let { push: a, pop: o, isTop: s } =
|
|
6290
|
+
function Wd({ open: e, anchorRef: t, listboxRef: n, baseId: r, activeIndex: i }) {
|
|
6291
|
+
let { push: a, pop: o, isTop: s } = Ys(r), c = /* @__PURE__ */ N("below"), l = /* @__PURE__ */ N(null), u = Q(() => {
|
|
6262
6292
|
let e = {};
|
|
6263
6293
|
return l.value !== null && (e.maxHeight = `${l.value}px`), c.value === "above" ? (e.top = "auto", e.bottom = "100%") : (e.top = "100%", e.bottom = "auto"), e;
|
|
6264
6294
|
});
|
|
@@ -6301,15 +6331,15 @@ function Bd({ open: e, anchorRef: t, listboxRef: n, baseId: r, activeIndex: i })
|
|
|
6301
6331
|
}
|
|
6302
6332
|
//#endregion
|
|
6303
6333
|
//#region src/components/GMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6304
|
-
var
|
|
6334
|
+
var Gd = ["id", "for"], Kd = {
|
|
6305
6335
|
key: 0,
|
|
6306
6336
|
class: "g-multiselect-required",
|
|
6307
6337
|
"aria-hidden": "true"
|
|
6308
|
-
},
|
|
6338
|
+
}, qd = ["id"], Jd = ["aria-labelledby"], Yd = { class: "g-multiselect-chip-label" }, Xd = [
|
|
6309
6339
|
"aria-label",
|
|
6310
6340
|
"disabled",
|
|
6311
6341
|
"onClick"
|
|
6312
|
-
],
|
|
6342
|
+
], Zd = [
|
|
6313
6343
|
"id",
|
|
6314
6344
|
"value",
|
|
6315
6345
|
"placeholder",
|
|
@@ -6319,23 +6349,23 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6319
6349
|
"aria-activedescendant",
|
|
6320
6350
|
"aria-describedby",
|
|
6321
6351
|
"aria-required"
|
|
6322
|
-
],
|
|
6352
|
+
], Qd = ["id"], $d = [
|
|
6323
6353
|
"id",
|
|
6324
6354
|
"aria-selected",
|
|
6325
6355
|
"onClick"
|
|
6326
|
-
],
|
|
6356
|
+
], ef = {
|
|
6327
6357
|
class: "g-multiselect-option-check",
|
|
6328
6358
|
"aria-hidden": "true"
|
|
6329
|
-
},
|
|
6359
|
+
}, tf = {
|
|
6330
6360
|
key: 0,
|
|
6331
6361
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6332
6362
|
viewBox: "0 0 640 640",
|
|
6333
6363
|
width: "1.25em"
|
|
6334
|
-
},
|
|
6364
|
+
}, nf = {
|
|
6335
6365
|
key: 1,
|
|
6336
6366
|
"aria-live": "polite",
|
|
6337
6367
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
6338
|
-
},
|
|
6368
|
+
}, rf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6339
6369
|
__name: "GMultiSelect",
|
|
6340
6370
|
props: /*@__PURE__*/ H({
|
|
6341
6371
|
options: { type: Array },
|
|
@@ -6366,18 +6396,18 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6366
6396
|
}),
|
|
6367
6397
|
emits: /*@__PURE__*/ H(["change"], ["update:modelValue"]),
|
|
6368
6398
|
setup(e, { emit: t }) {
|
|
6369
|
-
let n = e, r = t, i = U(e, "modelValue"), a = z(), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(0), d = /* @__PURE__ */ N(""), f = /* @__PURE__ */ N(!1), { displayErrors: p, hasErrors: m } =
|
|
6399
|
+
let n = e, r = t, i = U(e, "modelValue"), a = z(), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(0), d = /* @__PURE__ */ N(""), f = /* @__PURE__ */ N(!1), { displayErrors: p, hasErrors: m } = wu({
|
|
6370
6400
|
name: n.name,
|
|
6371
6401
|
value: i,
|
|
6372
6402
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
6373
6403
|
formKey: n.formKey
|
|
6374
|
-
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } =
|
|
6404
|
+
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } = Wd({
|
|
6375
6405
|
open: l,
|
|
6376
6406
|
anchorRef: s,
|
|
6377
6407
|
listboxRef: c,
|
|
6378
6408
|
baseId: a,
|
|
6379
6409
|
activeIndex: u
|
|
6380
|
-
}), y = Q(() =>
|
|
6410
|
+
}), y = Q(() => Ud(n.options)), b = Q(() => {
|
|
6381
6411
|
if (!d.value) return y.value;
|
|
6382
6412
|
let e = d.value.toLowerCase();
|
|
6383
6413
|
return y.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
@@ -6472,12 +6502,12 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6472
6502
|
id: oe.value,
|
|
6473
6503
|
for: ae.value,
|
|
6474
6504
|
class: "g-multiselect-label"
|
|
6475
|
-
}, [X(A(e.label), 1), e.required ? (G(), K("span",
|
|
6505
|
+
}, [X(A(e.label), 1), e.required ? (G(), K("span", Kd, " *")) : Z("", !0)], 8, Gd)),
|
|
6476
6506
|
e.instructions ? (G(), K("div", {
|
|
6477
6507
|
key: 1,
|
|
6478
6508
|
id: se.value,
|
|
6479
6509
|
class: "g-multiselect-instructions"
|
|
6480
|
-
}, A(e.instructions), 9,
|
|
6510
|
+
}, A(e.instructions), 9, qd)) : Z("", !0),
|
|
6481
6511
|
J("div", {
|
|
6482
6512
|
ref_key: "controlRef",
|
|
6483
6513
|
ref: s,
|
|
@@ -6491,13 +6521,13 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6491
6521
|
}, [(G(!0), K(W, null, B(i.value, (t) => (G(), K("li", {
|
|
6492
6522
|
key: t,
|
|
6493
6523
|
class: "g-multiselect-chip"
|
|
6494
|
-
}, [J("span",
|
|
6524
|
+
}, [J("span", Yd, A(S(t)), 1), J("button", {
|
|
6495
6525
|
type: "button",
|
|
6496
6526
|
class: "g-multiselect-chip-remove",
|
|
6497
6527
|
"aria-label": `Remove ${S(t)}`,
|
|
6498
6528
|
disabled: e.disabled,
|
|
6499
6529
|
onMousedown: re,
|
|
6500
|
-
onClick:
|
|
6530
|
+
onClick: Ps((e) => E(t), ["stop"])
|
|
6501
6531
|
}, [...n[0] ||= [J("svg", {
|
|
6502
6532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6503
6533
|
viewBox: "0 0 51.26 51.26",
|
|
@@ -6506,7 +6536,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6506
6536
|
}, [J("path", {
|
|
6507
6537
|
fill: "currentColor",
|
|
6508
6538
|
d: "m37.84 32.94-7.63-7.63 7.63-7.63a3.24 3.24 0 0 0-4.58-4.58l-7.63 7.63L18 13.1a3.24 3.24 0 0 0-4.58 4.58L21 25.31l-7.62 7.63A3.24 3.24 0 1 0 18 37.52l7.63-7.63 7.63 7.63a3.24 3.24 0 0 0 4.58-4.58Z"
|
|
6509
|
-
})], -1)]], 40,
|
|
6539
|
+
})], -1)]], 40, Xd)]))), 128))], 8, Jd)) : Z("", !0),
|
|
6510
6540
|
J("input", Va({
|
|
6511
6541
|
ref_key: "inputRef",
|
|
6512
6542
|
ref: o,
|
|
@@ -6530,7 +6560,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6530
6560
|
onKeydown: ie,
|
|
6531
6561
|
onFocus: te,
|
|
6532
6562
|
onBlur: O
|
|
6533
|
-
}), null, 16,
|
|
6563
|
+
}), null, 16, Zd),
|
|
6534
6564
|
n[2] ||= J("svg", {
|
|
6535
6565
|
class: "g-multiselect-caret",
|
|
6536
6566
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6562,35 +6592,35 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6562
6592
|
"aria-selected": x(e.value) ? "true" : "false",
|
|
6563
6593
|
onMousedown: ne,
|
|
6564
6594
|
onClick: (e) => T(t)
|
|
6565
|
-
}, [J("span",
|
|
6595
|
+
}, [J("span", ef, [x(e.value) ? (G(), K("svg", tf, [...n[1] ||= [J("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : Z("", !0)]), X(" " + A(e.label), 1)], 42, $d))), 128)) : (G(), K("div", nf, " No results found. "))], 16, Qd), [[Go, l.value]])
|
|
6566
6596
|
], 2),
|
|
6567
|
-
Y(
|
|
6597
|
+
Y(Eu, {
|
|
6568
6598
|
errors: P(p),
|
|
6569
6599
|
id: ce.value
|
|
6570
6600
|
}, null, 8, ["errors", "id"])
|
|
6571
6601
|
], 2));
|
|
6572
6602
|
}
|
|
6573
|
-
}), [["styles", [""]]]),
|
|
6603
|
+
}), [["styles", [""]]]), af = {
|
|
6574
6604
|
key: 0,
|
|
6575
6605
|
class: "g-scroll-lock-overlay"
|
|
6576
|
-
},
|
|
6606
|
+
}, of = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6577
6607
|
__name: "GOverlay",
|
|
6578
6608
|
setup(e) {
|
|
6579
|
-
let { hasScrollLock: t } =
|
|
6609
|
+
let { hasScrollLock: t } = Xs();
|
|
6580
6610
|
return (e, n) => (G(), q(Do, { name: "g-fade" }, {
|
|
6581
|
-
default: I(() => [P(t) ? (G(), K("div",
|
|
6611
|
+
default: I(() => [P(t) ? (G(), K("div", af)) : Z("", !0)]),
|
|
6582
6612
|
_: 1
|
|
6583
6613
|
}));
|
|
6584
6614
|
}
|
|
6585
|
-
}), [["styles", [""]]]),
|
|
6615
|
+
}), [["styles", [""]]]), sf = /* @__PURE__ */ R({
|
|
6586
6616
|
__name: "GClientOnly",
|
|
6587
6617
|
setup(e) {
|
|
6588
|
-
let t = /* @__PURE__ */ N(
|
|
6618
|
+
let t = /* @__PURE__ */ N(nu());
|
|
6589
6619
|
return Gr(() => {
|
|
6590
6620
|
t.value = !0;
|
|
6591
6621
|
}), (e, n) => t.value ? V(e.$slots, "default", { key: 0 }) : V(e.$slots, "fallback", { key: 1 });
|
|
6592
6622
|
}
|
|
6593
|
-
}),
|
|
6623
|
+
}), cf = { class: "g-popover-wrap" }, lf = ["id"], uf = ["aria-labelledby", "aria-label"], df = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6594
6624
|
__name: "GPopover",
|
|
6595
6625
|
props: {
|
|
6596
6626
|
minimal: {
|
|
@@ -6612,8 +6642,8 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6612
6642
|
L(/* @__PURE__ */ fn(r, "modelValue"), (e) => {
|
|
6613
6643
|
a.value = e;
|
|
6614
6644
|
});
|
|
6615
|
-
let o = ui(), s = Q(() => !!o.trigger), c = jr("triggerRef"), l = jr("popoverRef"), { isCustomElement: u } =
|
|
6616
|
-
|
|
6645
|
+
let o = ui(), s = Q(() => !!o.trigger), c = jr("triggerRef"), l = jr("popoverRef"), { isCustomElement: u } = ru(), d = u, f = z(), { push: p, pop: m, isTop: h, zIndex: g } = Ys(f, !0), { activate: _, deactivate: v } = eu(l, h, !0);
|
|
6646
|
+
tu([l, c], h, a, b, m), L(a, (e) => {
|
|
6617
6647
|
e ? (F(() => {
|
|
6618
6648
|
F(() => _());
|
|
6619
6649
|
}), p(), i("show")) : (v(), m(), i("hide"));
|
|
@@ -6648,7 +6678,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6648
6678
|
}, T.value = !1, w.value = !1, C.value = { left: "50%" };
|
|
6649
6679
|
return;
|
|
6650
6680
|
}
|
|
6651
|
-
let { top: i, left: a, xOffset: o, placedAbove: s, overlay: c } =
|
|
6681
|
+
let { top: i, left: a, xOffset: o, placedAbove: s, overlay: c } = Ru(n.getBoundingClientRect(), e, t, { gap: r.minimal ? 0 : 8 });
|
|
6652
6682
|
S.value = {
|
|
6653
6683
|
top: i,
|
|
6654
6684
|
left: a
|
|
@@ -6668,13 +6698,13 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6668
6698
|
show: y,
|
|
6669
6699
|
hide: b,
|
|
6670
6700
|
toggle: x
|
|
6671
|
-
}), (t, n) => (G(), K("div",
|
|
6701
|
+
}), (t, n) => (G(), K("div", cf, [s.value ? (G(), K("div", {
|
|
6672
6702
|
key: 0,
|
|
6673
6703
|
ref_key: "triggerRef",
|
|
6674
6704
|
ref: c,
|
|
6675
6705
|
class: "g-popover-trigger",
|
|
6676
6706
|
id: `${P(f)}-trigger`
|
|
6677
|
-
}, [V(t.$slots, "trigger", { toggle: x })], 8,
|
|
6707
|
+
}, [V(t.$slots, "trigger", { toggle: x })], 8, lf)) : Z("", !0), Y(sf, null, {
|
|
6678
6708
|
default: I(() => [(G(), q(fr, {
|
|
6679
6709
|
to: "#modal-root",
|
|
6680
6710
|
disabled: P(d)
|
|
@@ -6724,13 +6754,13 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6724
6754
|
fill: "currentColor",
|
|
6725
6755
|
d: "m37.84 32.94-7.63-7.63 7.63-7.63a3.24 3.24 0 0 0-4.58-4.58l-7.63 7.63L18 13.1a3.24 3.24 0 0 0-4.58 4.58L21 25.31l-7.62 7.63A3.24 3.24 0 1 0 18 37.52l7.63-7.63 7.63 7.63a3.24 3.24 0 0 0 4.58-4.58Z"
|
|
6726
6756
|
})], -1)]]))
|
|
6727
|
-
], 14,
|
|
6757
|
+
], 14, uf)), [[Go, a.value]]) : Z("", !0)]),
|
|
6728
6758
|
_: 3
|
|
6729
6759
|
})], 8, ["disabled"]))]),
|
|
6730
6760
|
_: 3
|
|
6731
6761
|
})]));
|
|
6732
6762
|
}
|
|
6733
|
-
}), [["styles", [""]]]),
|
|
6763
|
+
}), [["styles", [""]]]), ff = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6734
6764
|
__name: "GTooltip",
|
|
6735
6765
|
props: { text: { type: String } },
|
|
6736
6766
|
emits: ["tooltip-hide"],
|
|
@@ -6745,12 +6775,12 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6745
6775
|
return t instanceof HTMLElement ? t : null;
|
|
6746
6776
|
}
|
|
6747
6777
|
function v() {
|
|
6748
|
-
g && (h || (h = o.value ?
|
|
6749
|
-
l.value && (u.value || d.value) && g &&
|
|
6778
|
+
g && (h || (h = o.value ? Bu("g-tooltip") : Vu(g, "g-tooltip"), o.value && g.setAttribute("aria-describedby", h)), l.value || (l.value = Hu(r.text, h), Uu(l.value), f = new ResizeObserver(() => {
|
|
6779
|
+
l.value && (u.value || d.value) && g && Wu(g, l.value);
|
|
6750
6780
|
}), f.observe(l.value)));
|
|
6751
6781
|
}
|
|
6752
6782
|
function y() {
|
|
6753
|
-
l.value && (u.value || d.value) && g &&
|
|
6783
|
+
l.value && (u.value || d.value) && g && Wu(g, l.value);
|
|
6754
6784
|
}
|
|
6755
6785
|
function b() {
|
|
6756
6786
|
u.value = !0;
|
|
@@ -6796,10 +6826,10 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6796
6826
|
l.value && (l.value.textContent = e);
|
|
6797
6827
|
}), L(() => u.value || d.value, (e) => {
|
|
6798
6828
|
if (e) {
|
|
6799
|
-
v(), l.value && g &&
|
|
6829
|
+
v(), l.value && g && Wu(g, l.value), p ||= (window.addEventListener("scroll", y, { capture: !0 }), !0);
|
|
6800
6830
|
return;
|
|
6801
6831
|
}
|
|
6802
|
-
p &&= (window.removeEventListener("scroll", y, { capture: !0 }), !1), l.value && (
|
|
6832
|
+
p &&= (window.removeEventListener("scroll", y, { capture: !0 }), !1), l.value && (Gu(l.value), m && clearTimeout(m), m = window.setTimeout(() => {
|
|
6803
6833
|
i("tooltip-hide");
|
|
6804
6834
|
}, 150));
|
|
6805
6835
|
}), Jr(() => {
|
|
@@ -6819,21 +6849,21 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6819
6849
|
class: "g-tooltip-trigger"
|
|
6820
6850
|
}, [V(e.$slots, "trigger")], 512)) : Z("", !0)], 512));
|
|
6821
6851
|
}
|
|
6822
|
-
}), [["styles", [""]]]),
|
|
6852
|
+
}), [["styles", [""]]]), pf = ["width", "height"], mf = [
|
|
6823
6853
|
"cx",
|
|
6824
6854
|
"cy",
|
|
6825
6855
|
"r"
|
|
6826
|
-
],
|
|
6856
|
+
], hf = [
|
|
6827
6857
|
"cx",
|
|
6828
6858
|
"cy",
|
|
6829
6859
|
"r",
|
|
6830
6860
|
"stroke-dasharray",
|
|
6831
6861
|
"stroke-dashoffset"
|
|
6832
|
-
],
|
|
6862
|
+
], gf = [
|
|
6833
6863
|
"cx",
|
|
6834
6864
|
"cy",
|
|
6835
6865
|
"r"
|
|
6836
|
-
],
|
|
6866
|
+
], _f = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6837
6867
|
__name: "GProgress",
|
|
6838
6868
|
props: {
|
|
6839
6869
|
label: {
|
|
@@ -6883,7 +6913,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6883
6913
|
r: r.value,
|
|
6884
6914
|
"stroke-width": 4,
|
|
6885
6915
|
fill: "none"
|
|
6886
|
-
}, null, 8,
|
|
6916
|
+
}, null, 8, mf), n.value ? (G(), K("circle", {
|
|
6887
6917
|
key: 0,
|
|
6888
6918
|
class: "g-progress__value",
|
|
6889
6919
|
cx: r.value + 4 / 2,
|
|
@@ -6897,7 +6927,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6897
6927
|
transform: "rotate(-90deg)",
|
|
6898
6928
|
"transform-origin": "center"
|
|
6899
6929
|
}
|
|
6900
|
-
}, null, 8,
|
|
6930
|
+
}, null, 8, hf)) : (G(), K("circle", {
|
|
6901
6931
|
key: 1,
|
|
6902
6932
|
class: "g-progress__spinner",
|
|
6903
6933
|
cx: r.value + 4 / 2,
|
|
@@ -6905,29 +6935,29 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6905
6935
|
r: r.value,
|
|
6906
6936
|
"stroke-width": 4,
|
|
6907
6937
|
fill: "none"
|
|
6908
|
-
}, null, 8,
|
|
6938
|
+
}, null, 8, gf))], 10, pf))], 16));
|
|
6909
6939
|
}
|
|
6910
|
-
}), [["styles", [""]]]),
|
|
6940
|
+
}), [["styles", [""]]]), vf = ["aria-label"], yf = [
|
|
6911
6941
|
"placeholder",
|
|
6912
6942
|
"value",
|
|
6913
6943
|
"aria-expanded",
|
|
6914
6944
|
"aria-controls",
|
|
6915
6945
|
"aria-activedescendant"
|
|
6916
|
-
],
|
|
6946
|
+
], bf = {
|
|
6917
6947
|
key: 0,
|
|
6918
6948
|
class: "g-search-dropdown"
|
|
6919
|
-
},
|
|
6949
|
+
}, xf = {
|
|
6920
6950
|
"aria-live": "polite",
|
|
6921
6951
|
class: "g-search-result-count"
|
|
6922
|
-
},
|
|
6952
|
+
}, Sf = ["id"], Cf = ["aria-label"], wf = { class: "g-search-group-label" }, Tf = [
|
|
6923
6953
|
"id",
|
|
6924
6954
|
"onMousedown",
|
|
6925
6955
|
"aria-selected"
|
|
6926
|
-
],
|
|
6956
|
+
], Ef = [
|
|
6927
6957
|
"id",
|
|
6928
6958
|
"onMousedown",
|
|
6929
6959
|
"aria-selected"
|
|
6930
|
-
],
|
|
6960
|
+
], Df = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
6931
6961
|
__name: "GSearch",
|
|
6932
6962
|
props: /*@__PURE__*/ H({
|
|
6933
6963
|
results: { type: Array },
|
|
@@ -6961,7 +6991,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6961
6991
|
e && e.scrollIntoView({ block: "nearest" });
|
|
6962
6992
|
});
|
|
6963
6993
|
}
|
|
6964
|
-
let { focused: p } =
|
|
6994
|
+
let { focused: p } = Jc(a);
|
|
6965
6995
|
function m(e) {
|
|
6966
6996
|
let t = e.altKey;
|
|
6967
6997
|
if (e.key === "ArrowDown") {
|
|
@@ -6985,7 +7015,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6985
7015
|
function h(e) {
|
|
6986
7016
|
i("select", e), n.value = "", s.value = !0, c.value = -1;
|
|
6987
7017
|
}
|
|
6988
|
-
let g = Q(() => !!r.loading), _ = Q(() => p.value && !s.value), v =
|
|
7018
|
+
let g = Q(() => !!r.loading), _ = Q(() => p.value && !s.value), v = hc(() => {
|
|
6989
7019
|
i("submit", n.value);
|
|
6990
7020
|
}, 300);
|
|
6991
7021
|
L(() => n.value, (e) => {
|
|
@@ -6998,7 +7028,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6998
7028
|
"aria-label": r.label
|
|
6999
7029
|
}, [J("form", {
|
|
7000
7030
|
class: "g-search-form",
|
|
7001
|
-
onSubmit: t[0] ||=
|
|
7031
|
+
onSubmit: t[0] ||= Ps((e) => h(null), ["prevent"])
|
|
7002
7032
|
}, [J("input", {
|
|
7003
7033
|
ref_key: "inputRef",
|
|
7004
7034
|
ref: a,
|
|
@@ -7014,12 +7044,12 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7014
7044
|
"aria-autocomplete": "list",
|
|
7015
7045
|
"aria-controls": `${P(y)}-list`,
|
|
7016
7046
|
"aria-activedescendant": c.value >= 0 ? "g-search-option-" + l.value[c.value].id : void 0
|
|
7017
|
-
}, null, 40,
|
|
7047
|
+
}, null, 40, yf), J("button", {
|
|
7018
7048
|
type: "submit",
|
|
7019
7049
|
class: "g-search-submit",
|
|
7020
7050
|
"aria-label": "Submit search",
|
|
7021
7051
|
onKeydown: m
|
|
7022
|
-
}, [g.value ? (G(), q(
|
|
7052
|
+
}, [g.value ? (G(), q(_f, {
|
|
7023
7053
|
key: 0,
|
|
7024
7054
|
size: "tiny"
|
|
7025
7055
|
})) : Z("", !0), t[1] ||= J("svg", {
|
|
@@ -7030,7 +7060,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7030
7060
|
}, [J("path", {
|
|
7031
7061
|
fill: "currentColor",
|
|
7032
7062
|
d: "M30 9.76A14.05 14.05 0 1 0 28.3 31l11.3 13a3.34 3.34 0 0 0 4.72-4.72L31.44 27.86A14.05 14.05 0 0 0 30 9.76ZM27.27 27a10.26 10.26 0 1 1 0-14.5 10.25 10.25 0 0 1 0 14.5Z"
|
|
7033
|
-
})], -1)], 32)], 32), _.value ? (G(), K("div",
|
|
7063
|
+
})], -1)], 32)], 32), _.value ? (G(), K("div", bf, [J("div", xf, [g.value ? Z("", !0) : (G(), K(W, { key: 0 }, [X(A(u.value) + " result" + A(u.value === 1 ? "" : "s"), 1)], 64))]), J("div", {
|
|
7034
7064
|
role: "listbox",
|
|
7035
7065
|
id: `${P(y)}-list`,
|
|
7036
7066
|
ref_key: "listboxRef",
|
|
@@ -7041,27 +7071,27 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7041
7071
|
class: "g-search-group",
|
|
7042
7072
|
role: "group",
|
|
7043
7073
|
"aria-label": t.label
|
|
7044
|
-
}, [V(e.$slots, "group", { group: t }, () => [J("div",
|
|
7074
|
+
}, [V(e.$slots, "group", { group: t }, () => [J("div", wf, A(t.label), 1)]), (G(!0), K(W, null, B(t.items, (t, n) => (G(), K("div", {
|
|
7045
7075
|
key: t.id,
|
|
7046
7076
|
id: "g-search-option-" + t.id,
|
|
7047
7077
|
class: k(["g-search-option", { "g-search-option-active": l.value[c.value] && l.value[c.value].id === t.id }]),
|
|
7048
7078
|
role: "option",
|
|
7049
|
-
onMousedown:
|
|
7079
|
+
onMousedown: Ps((e) => h(t), ["prevent"]),
|
|
7050
7080
|
"aria-selected": l.value[c.value] && l.value[c.value].id === t.id
|
|
7051
|
-
}, [V(e.$slots, "option", { option: t }, () => [X(A(t.title), 1)])], 42,
|
|
7081
|
+
}, [V(e.$slots, "option", { option: t }, () => [X(A(t.title), 1)])], 42, Tf))), 128))], 8, Cf))), 128)) : u.value > 0 ? (G(!0), K(W, { key: 1 }, B(l.value, (t, n) => (G(), K("div", {
|
|
7052
7082
|
key: t.id,
|
|
7053
7083
|
id: "g-search-option-" + t.id,
|
|
7054
7084
|
class: k(["g-search-option", { "g-search-option-active": c.value === n }]),
|
|
7055
7085
|
role: "option",
|
|
7056
|
-
onMousedown:
|
|
7086
|
+
onMousedown: Ps((e) => h(t), ["prevent"]),
|
|
7057
7087
|
"aria-selected": c.value === n
|
|
7058
|
-
}, [V(e.$slots, "option", { option: t }, () => [X(A(t.title), 1)])], 42,
|
|
7088
|
+
}, [V(e.$slots, "option", { option: t }, () => [X(A(t.title), 1)])], 42, Ef))), 128)) : Z("", !0)], 8, Sf)])) : Z("", !0)], 8, vf));
|
|
7059
7089
|
}
|
|
7060
|
-
}), [["styles", [""]]]),
|
|
7090
|
+
}), [["styles", [""]]]), Of = ["id"], kf = {
|
|
7061
7091
|
key: 0,
|
|
7062
7092
|
class: "g-select-required",
|
|
7063
7093
|
"aria-hidden": "true"
|
|
7064
|
-
},
|
|
7094
|
+
}, Af = { class: "g-select-input-wrap" }, jf = ["id"], Mf = [
|
|
7065
7095
|
"value",
|
|
7066
7096
|
"placeholder",
|
|
7067
7097
|
"disabled",
|
|
@@ -7069,21 +7099,21 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7069
7099
|
"aria-expanded",
|
|
7070
7100
|
"aria-required",
|
|
7071
7101
|
"aria-activedescendant"
|
|
7072
|
-
],
|
|
7102
|
+
], Nf = [
|
|
7073
7103
|
"id",
|
|
7074
7104
|
"aria-controls",
|
|
7075
7105
|
"aria-expanded",
|
|
7076
7106
|
"aria-required",
|
|
7077
7107
|
"aria-activedescendant"
|
|
7078
|
-
],
|
|
7108
|
+
], Pf = ["id"], Ff = [
|
|
7079
7109
|
"id",
|
|
7080
7110
|
"aria-selected",
|
|
7081
7111
|
"onClick"
|
|
7082
|
-
],
|
|
7112
|
+
], If = {
|
|
7083
7113
|
key: 1,
|
|
7084
7114
|
"aria-live": "polite",
|
|
7085
7115
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
7086
|
-
},
|
|
7116
|
+
}, Lf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
7087
7117
|
__name: "GSelect",
|
|
7088
7118
|
props: /*@__PURE__*/ H({
|
|
7089
7119
|
options: { type: Array },
|
|
@@ -7119,18 +7149,18 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7119
7149
|
}),
|
|
7120
7150
|
emits: /*@__PURE__*/ H(["change"], ["update:modelValue"]),
|
|
7121
7151
|
setup(e, { emit: t }) {
|
|
7122
|
-
let n = e, r = t, i = U(e, "modelValue"), a = z(), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(0), d = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), { displayErrors: p, hasErrors: m } =
|
|
7152
|
+
let n = e, r = t, i = U(e, "modelValue"), a = z(), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(0), d = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), { displayErrors: p, hasErrors: m } = wu({
|
|
7123
7153
|
name: n.name,
|
|
7124
7154
|
value: i,
|
|
7125
7155
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
7126
7156
|
formKey: n.formKey
|
|
7127
|
-
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } =
|
|
7157
|
+
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } = Wd({
|
|
7128
7158
|
open: l,
|
|
7129
7159
|
anchorRef: o,
|
|
7130
7160
|
listboxRef: s,
|
|
7131
7161
|
baseId: a,
|
|
7132
7162
|
activeIndex: u
|
|
7133
|
-
}), y = Q(() =>
|
|
7163
|
+
}), y = Q(() => Ud(n.options)), b = /* @__PURE__ */ N(""), x = Q(() => {
|
|
7134
7164
|
if (!n.searchable || !l.value || !b.value) return y.value;
|
|
7135
7165
|
let e = b.value.toLowerCase();
|
|
7136
7166
|
return y.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
@@ -7238,8 +7268,8 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7238
7268
|
key: 0,
|
|
7239
7269
|
id: P(a) + "-label",
|
|
7240
7270
|
class: "g-select-combo-label g-select-label"
|
|
7241
|
-
}, [X(A(n.label), 1), n.required ? (G(), K("span",
|
|
7242
|
-
J("div",
|
|
7271
|
+
}, [X(A(n.label), 1), n.required ? (G(), K("span", kf, " *")) : Z("", !0)], 8, Of)),
|
|
7272
|
+
J("div", Af, [n.searchable ? (G(), K("div", {
|
|
7243
7273
|
key: 0,
|
|
7244
7274
|
class: "g-select-combo-input g-select-control",
|
|
7245
7275
|
id: P(a)
|
|
@@ -7266,7 +7296,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7266
7296
|
}, e.hiddenLabel ? { "aria-label": n.label } : { "aria-labelledby": P(a) + "-label" }, {
|
|
7267
7297
|
role: "combobox",
|
|
7268
7298
|
autocomplete: "off"
|
|
7269
|
-
}), null, 16,
|
|
7299
|
+
}), null, 16, Mf),
|
|
7270
7300
|
ie.value ? (G(), K("button", {
|
|
7271
7301
|
key: 0,
|
|
7272
7302
|
type: "button",
|
|
@@ -7292,7 +7322,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7292
7322
|
fill: "currentColor",
|
|
7293
7323
|
d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
|
|
7294
7324
|
})], -1)
|
|
7295
|
-
], 8,
|
|
7325
|
+
], 8, jf)) : (G(), K("div", Va({
|
|
7296
7326
|
key: 1,
|
|
7297
7327
|
ref_key: "comboRef",
|
|
7298
7328
|
ref: o,
|
|
@@ -7316,7 +7346,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7316
7346
|
key: 0,
|
|
7317
7347
|
type: "button",
|
|
7318
7348
|
class: "g-select-clear-btn",
|
|
7319
|
-
onClick:
|
|
7349
|
+
onClick: Ps(ae, ["stop"])
|
|
7320
7350
|
}, [...r[2] ||= [J("svg", {
|
|
7321
7351
|
role: "img",
|
|
7322
7352
|
"aria-label": "Clear Selection",
|
|
@@ -7337,7 +7367,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7337
7367
|
fill: "currentColor",
|
|
7338
7368
|
d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
|
|
7339
7369
|
})], -1)
|
|
7340
|
-
], 16,
|
|
7370
|
+
], 16, Nf)), Wn(J("div", Va({
|
|
7341
7371
|
ref_key: "listboxRef",
|
|
7342
7372
|
ref: s,
|
|
7343
7373
|
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": P(h) === "above" }],
|
|
@@ -7359,18 +7389,18 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7359
7389
|
option: e,
|
|
7360
7390
|
selected: e.value === i.value,
|
|
7361
7391
|
index: n
|
|
7362
|
-
}, () => [X(A(e.label), 1)])], 42,
|
|
7363
|
-
Y(
|
|
7392
|
+
}, () => [X(A(e.label), 1)])], 42, Ff))), 128)) : (G(), K("div", If, " No results found. "))], 16, Pf), [[Go, l.value]])]),
|
|
7393
|
+
Y(Eu, {
|
|
7364
7394
|
errors: P(p),
|
|
7365
7395
|
id: "error-message-" + P(a)
|
|
7366
7396
|
}, null, 8, ["errors", "id"])
|
|
7367
7397
|
], 2));
|
|
7368
7398
|
}
|
|
7369
|
-
}), [["styles", [""]]]),
|
|
7399
|
+
}), [["styles", [""]]]), Rf = ["disabled"], zf = { class: "g-select-btn-legend" }, Bf = {
|
|
7370
7400
|
key: 0,
|
|
7371
7401
|
class: "g-select-btn-required",
|
|
7372
7402
|
"aria-hidden": "true"
|
|
7373
|
-
},
|
|
7403
|
+
}, Vf = { class: "g-select-btn-row" }, Hf = [
|
|
7374
7404
|
"id",
|
|
7375
7405
|
"name",
|
|
7376
7406
|
"value",
|
|
@@ -7378,7 +7408,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7378
7408
|
"disabled",
|
|
7379
7409
|
"required",
|
|
7380
7410
|
"onChange"
|
|
7381
|
-
],
|
|
7411
|
+
], Uf = ["for"], Wf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
7382
7412
|
__name: "GSelectButton",
|
|
7383
7413
|
props: /*@__PURE__*/ H({
|
|
7384
7414
|
options: { type: Array },
|
|
@@ -7413,7 +7443,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7413
7443
|
}),
|
|
7414
7444
|
emits: /*@__PURE__*/ H(["change"], ["update:modelValue"]),
|
|
7415
7445
|
setup(e, { emit: t }) {
|
|
7416
|
-
let n = e, r = t, i = U(e, "modelValue"), a = z(), { displayErrors: o, hasErrors: s } =
|
|
7446
|
+
let n = e, r = t, i = U(e, "modelValue"), a = z(), { displayErrors: o, hasErrors: s } = wu({
|
|
7417
7447
|
name: n.name,
|
|
7418
7448
|
value: i,
|
|
7419
7449
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -7432,7 +7462,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7432
7462
|
return (e, t) => (G(), K("fieldset", {
|
|
7433
7463
|
class: k(l.value),
|
|
7434
7464
|
disabled: n.disabled
|
|
7435
|
-
}, [J("legend",
|
|
7465
|
+
}, [J("legend", zf, [X(A(n.label), 1), n.required ? (G(), K("span", Bf, " *")) : Z("", !0)]), J("div", { class: k(["g-select-btn-wrapper", { "g-select-btn-has-error": P(s) }]) }, [J("div", Vf, [(G(!0), K(W, null, B(c.value, (e, t) => (G(), K(W, { key: e.value }, [J("input", {
|
|
7436
7466
|
class: "g-select-btn-radio",
|
|
7437
7467
|
type: "radio",
|
|
7438
7468
|
id: `${P(a)}-${e.value}`,
|
|
@@ -7442,19 +7472,19 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7442
7472
|
disabled: n.disabled,
|
|
7443
7473
|
required: n.required && t === 0,
|
|
7444
7474
|
onChange: (t) => d(e.value)
|
|
7445
|
-
}, null, 40,
|
|
7475
|
+
}, null, 40, Hf), J("label", {
|
|
7446
7476
|
for: `${P(a)}-${e.value}`,
|
|
7447
7477
|
class: k(u(e.value === i.value))
|
|
7448
|
-
}, A(e.label), 11,
|
|
7478
|
+
}, A(e.label), 11, Uf)], 64))), 128))]), Y(Eu, {
|
|
7449
7479
|
errors: P(o),
|
|
7450
7480
|
id: "error-message-" + P(a)
|
|
7451
|
-
}, null, 8, ["errors", "id"])], 2)], 10,
|
|
7481
|
+
}, null, 8, ["errors", "id"])], 2)], 10, Rf));
|
|
7452
7482
|
}
|
|
7453
7483
|
}), [["styles", [""]]]);
|
|
7454
7484
|
//#endregion
|
|
7455
7485
|
//#region src/compose/useScrollRestore.ts
|
|
7456
|
-
function
|
|
7457
|
-
let n = t ?
|
|
7486
|
+
function Gf(e, t) {
|
|
7487
|
+
let n = t ? Yc(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = /* @__PURE__ */ N(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
7458
7488
|
function c(e) {
|
|
7459
7489
|
let t = window.getComputedStyle(e);
|
|
7460
7490
|
return t.overflowY === "auto" || t.overflowY === "scroll";
|
|
@@ -7536,7 +7566,7 @@ function Vf(e, t) {
|
|
|
7536
7566
|
}
|
|
7537
7567
|
//#endregion
|
|
7538
7568
|
//#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
7539
|
-
var
|
|
7569
|
+
var Kf = ["id"], qf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
7540
7570
|
__name: "GSidebar",
|
|
7541
7571
|
props: {
|
|
7542
7572
|
backgroundColor: {
|
|
@@ -7571,7 +7601,7 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7571
7601
|
storageKey: { type: String }
|
|
7572
7602
|
},
|
|
7573
7603
|
setup(e) {
|
|
7574
|
-
let t = e, n = qn("sidebar", () => void 0, !0) ?? (
|
|
7604
|
+
let t = e, n = qn("sidebar", () => void 0, !0) ?? (nu() ? Od(t.sidebarKey, /* @__PURE__ */ fn(t, "mediaQuery")) : void 0), r = Q(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), i = Q(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), a = Q(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), o = z(), { isPendingScrollRestore: s } = Gf(jr("sidebar-ref"), t.storageKey);
|
|
7575
7605
|
function c(e) {
|
|
7576
7606
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
7577
7607
|
}
|
|
@@ -7592,13 +7622,13 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7592
7622
|
width: "var(--g-sidebar-width)"
|
|
7593
7623
|
}),
|
|
7594
7624
|
onKeydown: c
|
|
7595
|
-
}, [V(t.$slots, "default")], 46,
|
|
7625
|
+
}, [V(t.$slots, "default")], 46, Kf));
|
|
7596
7626
|
}
|
|
7597
|
-
}), [["styles", [""]]]),
|
|
7627
|
+
}), [["styles", [""]]]), Jf = ["id"], Yf = { class: "g-sidebar-menu__list" }, Xf = [
|
|
7598
7628
|
"href",
|
|
7599
7629
|
"aria-current",
|
|
7600
7630
|
"onClick"
|
|
7601
|
-
],
|
|
7631
|
+
], Zf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
7602
7632
|
__name: "GSidebarMenu",
|
|
7603
7633
|
props: /*@__PURE__*/ H({
|
|
7604
7634
|
heading: { type: String },
|
|
@@ -7652,13 +7682,13 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7652
7682
|
key: 0,
|
|
7653
7683
|
id: P(c),
|
|
7654
7684
|
class: "g-sidebar-menu__title"
|
|
7655
|
-
}, A(e.heading), 9,
|
|
7685
|
+
}, A(e.heading), 9, Jf)) : Z("", !0),
|
|
7656
7686
|
a[0] ||= J("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
7657
7687
|
J("div", {
|
|
7658
7688
|
class: "g-sidebar-menu__content",
|
|
7659
7689
|
ref_key: "content",
|
|
7660
7690
|
ref: i
|
|
7661
|
-
}, [J("ul",
|
|
7691
|
+
}, [J("ul", Yf, [(G(!0), K(W, null, B(e.items, (e) => (G(), K("li", {
|
|
7662
7692
|
key: e.href || e.to,
|
|
7663
7693
|
class: "g-sidebar-menu__item",
|
|
7664
7694
|
ref_for: !0,
|
|
@@ -7676,10 +7706,10 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7676
7706
|
href: e.href || e.to || "#",
|
|
7677
7707
|
"aria-current": r.value === (e.href || "") ? "location" : void 0,
|
|
7678
7708
|
onClick: (t) => s(t, e)
|
|
7679
|
-
}, A(e.label), 11,
|
|
7709
|
+
}, A(e.label), 11, Xf))]))), 128))])], 512)
|
|
7680
7710
|
], 16));
|
|
7681
7711
|
}
|
|
7682
|
-
}), [["styles", [""]]]),
|
|
7712
|
+
}), [["styles", [""]]]), Qf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
7683
7713
|
__name: "GSubmitButton",
|
|
7684
7714
|
props: {
|
|
7685
7715
|
disabled: {
|
|
@@ -7700,8 +7730,8 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7700
7730
|
}
|
|
7701
7731
|
},
|
|
7702
7732
|
setup(e) {
|
|
7703
|
-
let t = e, n = di(), r = typeof n["form-key"] == "string" ? n["form-key"] : void 0, i = t.formKey || r || "default", a = qn("form", null) ?? (
|
|
7704
|
-
return (e, n) => (G(), q(
|
|
7733
|
+
let t = e, n = di(), r = typeof n["form-key"] == "string" ? n["form-key"] : void 0, i = t.formKey || r || "default", a = qn("form", null) ?? (nu() ? Cu(i) : null), o = Q(() => t.disabled || (a?.isSubmitting.value ?? !1)), s = Q(() => a?.isSubmitting.value ?? !1);
|
|
7734
|
+
return (e, n) => (G(), q(su, {
|
|
7705
7735
|
type: "submit",
|
|
7706
7736
|
disabled: o.value,
|
|
7707
7737
|
variant: t.variant,
|
|
@@ -7711,45 +7741,45 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7711
7741
|
_: 3
|
|
7712
7742
|
}, 8, ["disabled", "variant"]));
|
|
7713
7743
|
}
|
|
7714
|
-
}), [["styles", [""]]]),
|
|
7744
|
+
}), [["styles", [""]]]), $f = {
|
|
7715
7745
|
ref: "tableBodyRef",
|
|
7716
7746
|
class: "efficient-table-body"
|
|
7717
|
-
},
|
|
7747
|
+
}, ep = ["aria-rowindex"], tp = {
|
|
7718
7748
|
key: 0,
|
|
7719
7749
|
class: "table-group-checkbox"
|
|
7720
|
-
},
|
|
7750
|
+
}, np = ["colspan"], rp = [
|
|
7721
7751
|
"aria-rowindex",
|
|
7722
7752
|
"onMousedown",
|
|
7723
7753
|
"onClick"
|
|
7724
|
-
],
|
|
7754
|
+
], ip = [
|
|
7725
7755
|
"checked",
|
|
7726
7756
|
"onClick",
|
|
7727
7757
|
"aria-label",
|
|
7728
7758
|
"name"
|
|
7729
|
-
],
|
|
7759
|
+
], ap = ["id"], op = {
|
|
7730
7760
|
key: 0,
|
|
7731
7761
|
class: "editable-cell"
|
|
7732
|
-
},
|
|
7762
|
+
}, sp = {
|
|
7733
7763
|
key: 0,
|
|
7734
7764
|
class: "cell-prefix"
|
|
7735
|
-
},
|
|
7765
|
+
}, cp = [
|
|
7736
7766
|
"value",
|
|
7737
7767
|
"onChange",
|
|
7738
7768
|
"aria-labelledby",
|
|
7739
7769
|
"aria-invalid",
|
|
7740
7770
|
"aria-errormessage",
|
|
7741
7771
|
"name"
|
|
7742
|
-
],
|
|
7772
|
+
], lp = ["value"], up = [
|
|
7743
7773
|
"value",
|
|
7744
7774
|
"onInput",
|
|
7745
7775
|
"aria-labelledby",
|
|
7746
7776
|
"aria-invalid",
|
|
7747
7777
|
"aria-errormessage",
|
|
7748
7778
|
"name"
|
|
7749
|
-
],
|
|
7779
|
+
], dp = {
|
|
7750
7780
|
key: 3,
|
|
7751
7781
|
class: "cell-suffix"
|
|
7752
|
-
},
|
|
7782
|
+
}, fp = ["id"], pp = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
7753
7783
|
__name: "GTableBody",
|
|
7754
7784
|
props: {
|
|
7755
7785
|
data: { type: Array },
|
|
@@ -7818,13 +7848,13 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7818
7848
|
function m(e, t) {
|
|
7819
7849
|
if (n.changeTracker) return n.changeTracker.getError(e.key, t.key);
|
|
7820
7850
|
}
|
|
7821
|
-
return (t, n) => (G(), K("tbody",
|
|
7851
|
+
return (t, n) => (G(), K("tbody", $f, [(G(!0), K(W, null, B(e.data, (t, r) => (G(), K(W, { key: t.key }, [e.groupBy && (r === 0 || t[e.groupBy] !== e.data[r - 1][e.groupBy]) ? (G(), K("tr", {
|
|
7822
7852
|
key: 0,
|
|
7823
7853
|
"aria-rowindex": e.startIndex + r + 2
|
|
7824
|
-
}, [e.bulkSelectionEnabled ? (G(), K("td",
|
|
7854
|
+
}, [e.bulkSelectionEnabled ? (G(), K("td", tp)) : Z("", !0), J("td", {
|
|
7825
7855
|
colspan: e.columns.length,
|
|
7826
7856
|
class: "table-group-row"
|
|
7827
|
-
}, [e.groupRender ? (G(), q(ni(e.groupRender(t[e.groupBy], t)), { key: 0 })) : (G(), K(W, { key: 1 }, [X(A(t[e.groupBy]), 1)], 64))], 8,
|
|
7857
|
+
}, [e.groupRender ? (G(), q(ni(e.groupRender(t[e.groupBy], t)), { key: 0 })) : (G(), K(W, { key: 1 }, [X(A(t[e.groupBy]), 1)], 64))], 8, np)], 8, ep)) : Z("", !0), J("tr", {
|
|
7828
7858
|
class: k([
|
|
7829
7859
|
"efficient-table-row",
|
|
7830
7860
|
{
|
|
@@ -7839,7 +7869,7 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7839
7869
|
}, [e.bulkSelectionEnabled ? (G(), K("td", {
|
|
7840
7870
|
key: 0,
|
|
7841
7871
|
class: "td-checkbox",
|
|
7842
|
-
onClick: n[0] ||=
|
|
7872
|
+
onClick: n[0] ||= Ps(() => {}, ["stop"])
|
|
7843
7873
|
}, [J("input", {
|
|
7844
7874
|
type: "checkbox",
|
|
7845
7875
|
checked: o(t.key),
|
|
@@ -7847,7 +7877,7 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7847
7877
|
"aria-label": `Select row ${t.key}`,
|
|
7848
7878
|
name: `row-${t.key}-checkbox`,
|
|
7849
7879
|
class: "g-bulk-select-checkbox"
|
|
7850
|
-
}, null, 8,
|
|
7880
|
+
}, null, 8, ip)])) : Z("", !0), (G(!0), K(W, null, B(e.columns, (n) => (G(), K("td", {
|
|
7851
7881
|
key: n.key,
|
|
7852
7882
|
id: d(n) ? `${e.tableId}-td-${t.key}-${String(n.key)}` : void 0,
|
|
7853
7883
|
class: k([
|
|
@@ -7856,8 +7886,8 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7856
7886
|
p(t, n) ? "g-cell-error" : "",
|
|
7857
7887
|
typeof n.tdClass == "function" ? n.tdClass(t) : n.tdClass
|
|
7858
7888
|
])
|
|
7859
|
-
}, [n.editable ? (G(), K("div",
|
|
7860
|
-
n.editable.prefix ? (G(), K("span",
|
|
7889
|
+
}, [n.editable ? (G(), K("div", op, [
|
|
7890
|
+
n.editable.prefix ? (G(), K("span", sp, A(n.editable.prefix), 1)) : Z("", !0),
|
|
7861
7891
|
n.editable.type === "select" ? (G(), K("select", {
|
|
7862
7892
|
key: 1,
|
|
7863
7893
|
value: t[n.key],
|
|
@@ -7870,7 +7900,7 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7870
7900
|
}, [(G(!0), K(W, null, B(n.editable.options, (e) => (G(), K("option", {
|
|
7871
7901
|
key: e.value,
|
|
7872
7902
|
value: e.value
|
|
7873
|
-
}, A(e.label), 9,
|
|
7903
|
+
}, A(e.label), 9, lp))), 128))], 40, cp)) : (G(), K("input", Va({
|
|
7874
7904
|
key: 2,
|
|
7875
7905
|
value: t[n.key]
|
|
7876
7906
|
}, { ref_for: !0 }, n.editable.inputAttributes, {
|
|
@@ -7884,29 +7914,29 @@ var Hf = ["id"], Uf = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
|
7884
7914
|
paddingLeft: n.editable.prefix ? "1.5rem" : void 0,
|
|
7885
7915
|
paddingRight: n.editable.suffix ? "2rem" : void 0
|
|
7886
7916
|
}
|
|
7887
|
-
}), null, 16,
|
|
7888
|
-
n.editable.suffix ? (G(), K("span",
|
|
7917
|
+
}), null, 16, up)),
|
|
7918
|
+
n.editable.suffix ? (G(), K("span", dp, A(n.editable.suffix), 1)) : Z("", !0)
|
|
7889
7919
|
])) : n.display ? (G(), q(ni(n.display(t)), { key: 1 })) : (G(), K(W, { key: 2 }, [X(A(t[n.key]), 1)], 64)), p(t, n) ? (G(), K("div", {
|
|
7890
7920
|
key: 3,
|
|
7891
7921
|
role: "alert",
|
|
7892
7922
|
class: "g-cell-error-message",
|
|
7893
7923
|
id: `${e.tableId}-error-${t.key}-${String(n.key)}`
|
|
7894
|
-
}, A(m(t, n)), 9,
|
|
7924
|
+
}, A(m(t, n)), 9, fp)) : Z("", !0)], 10, ap))), 128))], 42, rp)], 64))), 128))], 512));
|
|
7895
7925
|
}
|
|
7896
7926
|
}), [["styles", [""]]]);
|
|
7897
7927
|
//#endregion
|
|
7898
7928
|
//#region src/compose/useFiltering.ts
|
|
7899
|
-
function
|
|
7929
|
+
function mp(e) {
|
|
7900
7930
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
7901
7931
|
}
|
|
7902
|
-
function
|
|
7932
|
+
function hp(e) {
|
|
7903
7933
|
let t = {};
|
|
7904
7934
|
return Object.keys(e).forEach((n) => {
|
|
7905
7935
|
let r = e[n];
|
|
7906
7936
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
7907
7937
|
}), t;
|
|
7908
7938
|
}
|
|
7909
|
-
function
|
|
7939
|
+
function gp(e, t = {}) {
|
|
7910
7940
|
let n = /* @__PURE__ */ Ht(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), r = t.syncWith;
|
|
7911
7941
|
if (r) {
|
|
7912
7942
|
if (r.value) {
|
|
@@ -7919,13 +7949,13 @@ function fp(e, t = {}) {
|
|
|
7919
7949
|
});
|
|
7920
7950
|
}
|
|
7921
7951
|
L(n, (e) => {
|
|
7922
|
-
r.value =
|
|
7952
|
+
r.value = hp(e);
|
|
7923
7953
|
}, { deep: !0 });
|
|
7924
7954
|
}
|
|
7925
7955
|
return {
|
|
7926
7956
|
filters: n,
|
|
7927
7957
|
isFiltered: Q(() => {
|
|
7928
|
-
for (let t of Object.keys(e)) if (
|
|
7958
|
+
for (let t of Object.keys(e)) if (mp(n[t])) return !0;
|
|
7929
7959
|
return !1;
|
|
7930
7960
|
}),
|
|
7931
7961
|
clearFilters: () => {
|
|
@@ -7935,48 +7965,56 @@ function fp(e, t = {}) {
|
|
|
7935
7965
|
},
|
|
7936
7966
|
filteredColumns: Q(() => {
|
|
7937
7967
|
let t = {};
|
|
7938
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
7968
|
+
for (let r of Object.keys(e)) t[r] = !!mp(n[r]);
|
|
7939
7969
|
return t;
|
|
7940
7970
|
})
|
|
7941
7971
|
};
|
|
7942
7972
|
}
|
|
7943
7973
|
//#endregion
|
|
7944
7974
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
7945
|
-
var
|
|
7975
|
+
var _p = { class: "g-table-outer-wrap" }, vp = {
|
|
7946
7976
|
key: 0,
|
|
7947
7977
|
class: "g-table-controls"
|
|
7948
|
-
},
|
|
7978
|
+
}, yp = { class: "g-clear-filters-wrap" }, bp = {
|
|
7949
7979
|
key: 0,
|
|
7950
7980
|
class: "pagination"
|
|
7951
|
-
},
|
|
7981
|
+
}, xp = { class: "g-result-count" }, Sp = ["aria-label", "aria-rowcount"], Cp = { class: "g-table-head" }, wp = { "aria-rowindex": "1" }, Tp = {
|
|
7952
7982
|
key: 0,
|
|
7953
7983
|
scope: "col",
|
|
7954
7984
|
class: "g-th g-th-checkbox"
|
|
7955
|
-
},
|
|
7985
|
+
}, Ep = [
|
|
7956
7986
|
"checked",
|
|
7957
7987
|
"indeterminate",
|
|
7958
7988
|
"aria-label"
|
|
7959
|
-
],
|
|
7989
|
+
], Dp = ["id", "aria-sort"], Op = { class: "th-inner" }, kp = ["onClick"], Ap = {
|
|
7960
7990
|
key: 0,
|
|
7961
7991
|
class: "sort-indicator"
|
|
7962
|
-
},
|
|
7992
|
+
}, jp = ["aria-label"], Mp = {
|
|
7963
7993
|
key: 1,
|
|
7964
7994
|
class: "g-column-head"
|
|
7965
|
-
},
|
|
7995
|
+
}, Np = ["onClick", "aria-label"], Pp = {
|
|
7996
|
+
key: 1,
|
|
7997
|
+
class: "g-filter-search",
|
|
7998
|
+
role: "search"
|
|
7999
|
+
}, Fp = [
|
|
8000
|
+
"onUpdate:modelValue",
|
|
8001
|
+
"placeholder",
|
|
8002
|
+
"aria-label"
|
|
8003
|
+
], Ip = { key: 2 }, Lp = { class: "g-filter-toggle" }, Rp = [
|
|
7966
8004
|
"onUpdate:modelValue",
|
|
7967
8005
|
"id",
|
|
7968
8006
|
"aria-describedby"
|
|
7969
|
-
],
|
|
7970
|
-
key:
|
|
8007
|
+
], zp = ["for"], Bp = ["id"], Vp = {
|
|
8008
|
+
key: 4,
|
|
7971
8009
|
class: "g-multi-select"
|
|
7972
|
-
},
|
|
8010
|
+
}, Hp = [
|
|
7973
8011
|
"onUpdate:modelValue",
|
|
7974
8012
|
"id",
|
|
7975
8013
|
"value"
|
|
7976
|
-
],
|
|
8014
|
+
], Up = ["for"], Wp = {
|
|
7977
8015
|
key: 1,
|
|
7978
8016
|
class: "g-bulk-actions-toolbar"
|
|
7979
|
-
},
|
|
8017
|
+
}, Gp = { class: "g-selected-count" }, Kp = { class: "g-bulk-actions" }, qp = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
7980
8018
|
__name: "GTable",
|
|
7981
8019
|
props: /*@__PURE__*/ H({
|
|
7982
8020
|
label: { type: String },
|
|
@@ -8028,7 +8066,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8028
8066
|
e.sortable && (n.value === e.key ? r.value === 1 ? r.value = -1 : r.value === -1 && (n.value = void 0, r.value = 1) : (n.value = e.key, r.value = 1));
|
|
8029
8067
|
}
|
|
8030
8068
|
let l = o.filtering;
|
|
8031
|
-
l ||=
|
|
8069
|
+
l ||= gp({});
|
|
8032
8070
|
let { filters: u, filteredColumns: d, isFiltered: f, clearFilters: p } = l, m = Q(() => o.data.map((e) => e.key)), h = Q(() => a.value.filter((e) => m.value.includes(e))), g = Q(() => !o.bulkSelectionEnabled || o.data.length === 0 ? !1 : h.value.length === m.value.length), _ = Q(() => !o.bulkSelectionEnabled || o.data.length === 0 ? !1 : h.value.length > 0 && h.value.length < m.value.length), v = /* @__PURE__ */ N(null);
|
|
8033
8071
|
function y() {
|
|
8034
8072
|
if (g.value) a.value = a.value.filter((e) => !m.value.includes(e));
|
|
@@ -8074,9 +8112,9 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8074
8112
|
let e = i.value[t.key];
|
|
8075
8113
|
i.value[t.key] = e ? [e] : [];
|
|
8076
8114
|
}
|
|
8077
|
-
}, { immediate: !0 }), (t, s) => (G(), K("div",
|
|
8078
|
-
ee.value ? (G(), K("div",
|
|
8079
|
-
J("div",
|
|
8115
|
+
}, { immediate: !0 }), (t, s) => (G(), K("div", _p, [
|
|
8116
|
+
ee.value ? (G(), K("div", vp, [
|
|
8117
|
+
J("div", yp, [P(f) ? (G(), q(su, {
|
|
8080
8118
|
key: 0,
|
|
8081
8119
|
outlined: "",
|
|
8082
8120
|
size: "small",
|
|
@@ -8094,22 +8132,22 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8094
8132
|
})], -1), J("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
8095
8133
|
_: 1
|
|
8096
8134
|
}, 8, ["onClick"])) : Z("", !0)]),
|
|
8097
|
-
E.value ? (G(), K("div",
|
|
8098
|
-
J("span",
|
|
8135
|
+
E.value ? (G(), K("div", bp, [V(t.$slots, "pagination")])) : Z("", !0),
|
|
8136
|
+
J("span", xp, A(o.resultCount || e.data.length) + " results", 1)
|
|
8099
8137
|
])) : Z("", !0),
|
|
8100
8138
|
J("table", {
|
|
8101
8139
|
class: "g-table",
|
|
8102
8140
|
ref: "tableRef",
|
|
8103
8141
|
"aria-label": e.label,
|
|
8104
8142
|
"aria-rowcount": o.resultCount || e.data.length
|
|
8105
|
-
}, [J("thead",
|
|
8143
|
+
}, [J("thead", Cp, [J("tr", wp, [e.bulkSelectionEnabled ? (G(), K("th", Tp, [J("input", {
|
|
8106
8144
|
type: "checkbox",
|
|
8107
8145
|
checked: g.value,
|
|
8108
8146
|
indeterminate: _.value,
|
|
8109
8147
|
onChange: y,
|
|
8110
8148
|
"aria-label": g.value ? "Deselect all rows" : "Select all rows",
|
|
8111
8149
|
class: "g-bulk-select-checkbox"
|
|
8112
|
-
}, null, 40,
|
|
8150
|
+
}, null, 40, Ep)])) : Z("", !0), (G(!0), K(W, null, B(e.columns, (e) => (G(), K("th", {
|
|
8113
8151
|
key: e.key,
|
|
8114
8152
|
id: `${P(w)}-th-${String(e.key)}`,
|
|
8115
8153
|
"aria-sort": n.value === e.key ? r.value === 1 ? "ascending" : "descending" : "none",
|
|
@@ -8119,12 +8157,12 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8119
8157
|
{ filtered: P(d)[e.key] }
|
|
8120
8158
|
]),
|
|
8121
8159
|
scope: "col"
|
|
8122
|
-
}, [J("div",
|
|
8160
|
+
}, [J("div", Op, [e.sortable ? (G(), K("button", {
|
|
8123
8161
|
key: 0,
|
|
8124
8162
|
type: "button",
|
|
8125
8163
|
class: "g-column-head",
|
|
8126
8164
|
onClick: (t) => c(e)
|
|
8127
|
-
}, [X(A(e.label) + " ", 1), n.value === e.key ? (G(), K("span",
|
|
8165
|
+
}, [X(A(e.label) + " ", 1), n.value === e.key ? (G(), K("span", Ap, [(G(), K("svg", {
|
|
8128
8166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8129
8167
|
viewBox: "0 0 640 640",
|
|
8130
8168
|
height: "1.5em",
|
|
@@ -8134,9 +8172,9 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8134
8172
|
}, [...s[1] ||= [J("path", {
|
|
8135
8173
|
fill: "currentColor",
|
|
8136
8174
|
d: "M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z"
|
|
8137
|
-
}, null, -1)]], 12,
|
|
8175
|
+
}, null, -1)]], 12, jp))])) : Z("", !0)], 8, kp)) : (G(), K("span", Mp, A(e.label), 1)), e.filter ? (G(), q(df, { key: 2 }, {
|
|
8138
8176
|
trigger: I(({ toggle: t }) => [J("button", {
|
|
8139
|
-
onClick:
|
|
8177
|
+
onClick: Ps(t, ["stop"]),
|
|
8140
8178
|
"aria-label": P(d)[e.key] ? "Column Filtered" : "Filter Column",
|
|
8141
8179
|
class: k(["g-filter-btn", { "g-active": P(d)[e.key] }]),
|
|
8142
8180
|
type: "button"
|
|
@@ -8148,8 +8186,8 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8148
8186
|
}, [J("path", {
|
|
8149
8187
|
fill: "currentColor",
|
|
8150
8188
|
d: "M96 128C83.1 128 71.4 135.8 66.4 147.8C61.4 159.8 64.2 173.5 73.4 182.6L256 365.3L256 480C256 488.5 259.4 496.6 265.4 502.6L329.4 566.6C338.6 575.8 352.3 578.5 364.3 573.5C376.3 568.5 384 556.9 384 544L384 365.3L566.6 182.7C575.8 173.5 578.5 159.8 573.5 147.8C568.5 135.8 556.9 128 544 128L96 128z"
|
|
8151
|
-
})], -1)]], 10,
|
|
8152
|
-
default: I(() => [e.filter.type === "select" ? (G(), q(
|
|
8189
|
+
})], -1)]], 10, Np)]),
|
|
8190
|
+
default: I(() => [e.filter.type === "select" ? (G(), q(Lf, {
|
|
8153
8191
|
key: 0,
|
|
8154
8192
|
modelValue: i.value[e.key],
|
|
8155
8193
|
"onUpdate:modelValue": (t) => i.value[e.key] = t,
|
|
@@ -8162,21 +8200,37 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8162
8200
|
"modelValue",
|
|
8163
8201
|
"onUpdate:modelValue",
|
|
8164
8202
|
"options"
|
|
8165
|
-
])) : e.filter.type === "
|
|
8203
|
+
])) : e.filter.type === "search" ? (G(), K("div", Pp, [s[3] ||= J("span", {
|
|
8204
|
+
class: "g-filter-search-icon",
|
|
8205
|
+
"aria-hidden": "true"
|
|
8206
|
+
}, [J("svg", {
|
|
8207
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8208
|
+
viewBox: "0 0 51.26 51.26",
|
|
8209
|
+
height: "1em"
|
|
8210
|
+
}, [J("path", {
|
|
8211
|
+
fill: "currentColor",
|
|
8212
|
+
d: "M30 9.76A14.05 14.05 0 1 0 28.3 31l11.3 13a3.34 3.34 0 0 0 4.72-4.72L31.44 27.86A14.05 14.05 0 0 0 30 9.76ZM27.27 27a10.26 10.26 0 1 1 0-14.5 10.25 10.25 0 0 1 0 14.5Z"
|
|
8213
|
+
})])], -1), Wn(J("input", {
|
|
8214
|
+
type: "search",
|
|
8215
|
+
class: "g-filter-search-input",
|
|
8216
|
+
"onUpdate:modelValue": (t) => i.value[e.key] = t,
|
|
8217
|
+
placeholder: e.filter.placeholder,
|
|
8218
|
+
"aria-label": `Search ${e.label}`
|
|
8219
|
+
}, null, 8, Fp), [[Ds, i.value[e.key]]])])) : e.filter.type === "toggle" ? (G(), K("div", Ip, [J("div", Lp, [
|
|
8166
8220
|
Wn(J("input", {
|
|
8167
8221
|
type: "checkbox",
|
|
8168
8222
|
"onUpdate:modelValue": (t) => i.value[e.key] = t,
|
|
8169
8223
|
id: `${P(w)}-filter-${String(e.key)}`,
|
|
8170
8224
|
"aria-describedby": e.filter.description ? `${P(w)}-filter-description-${String(e.key)}` : void 0
|
|
8171
|
-
}, null, 8,
|
|
8172
|
-
J("label", { for: `${P(w)}-filter-${String(e.key)}` }, A(e.filter.label), 9,
|
|
8225
|
+
}, null, 8, Rp), [[Os, i.value[e.key]]]),
|
|
8226
|
+
J("label", { for: `${P(w)}-filter-${String(e.key)}` }, A(e.filter.label), 9, zp),
|
|
8173
8227
|
e.filter.description ? (G(), K("span", {
|
|
8174
8228
|
key: 0,
|
|
8175
8229
|
class: "g-filter-description",
|
|
8176
8230
|
id: `${P(w)}-filter-description-${String(e.key)}`
|
|
8177
|
-
}, A(e.filter.description), 9,
|
|
8178
|
-
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (G(), q(
|
|
8179
|
-
key:
|
|
8231
|
+
}, A(e.filter.description), 9, Bp)) : Z("", !0)
|
|
8232
|
+
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (G(), q(rf, {
|
|
8233
|
+
key: 3,
|
|
8180
8234
|
modelValue: i.value[e.key],
|
|
8181
8235
|
"onUpdate:modelValue": (t) => i.value[e.key] = t,
|
|
8182
8236
|
options: e.filter.options,
|
|
@@ -8188,28 +8242,28 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8188
8242
|
"onUpdate:modelValue",
|
|
8189
8243
|
"options",
|
|
8190
8244
|
"placeholder"
|
|
8191
|
-
])) : e.filter.type === "multi-select" ? (G(), K("fieldset",
|
|
8192
|
-
s[
|
|
8245
|
+
])) : e.filter.type === "multi-select" ? (G(), K("fieldset", Vp, [
|
|
8246
|
+
s[5] ||= J("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
|
|
8193
8247
|
(G(!0), K(W, null, B(e.filter.options, (t) => (G(), K("div", { key: t.value }, [Wn(J("input", {
|
|
8194
8248
|
type: "checkbox",
|
|
8195
8249
|
"onUpdate:modelValue": (t) => i.value[e.key] = t,
|
|
8196
8250
|
id: `filter-${String(e.key)}-${t.value}`,
|
|
8197
8251
|
value: t.value,
|
|
8198
8252
|
name: "filter-multiselect"
|
|
8199
|
-
}, null, 8,
|
|
8200
|
-
i.value[e.key] && i.value[e.key].length ? (G(), q(
|
|
8253
|
+
}, null, 8, Hp), [[Os, i.value[e.key]]]), J("label", { for: `filter-${String(e.key)}-${t.value}` }, A(t.label), 9, Up)]))), 128)),
|
|
8254
|
+
i.value[e.key] && i.value[e.key].length ? (G(), q(su, {
|
|
8201
8255
|
key: 0,
|
|
8202
8256
|
class: "clear-multiselect-btn",
|
|
8203
8257
|
theme: "accent",
|
|
8204
8258
|
size: "small",
|
|
8205
8259
|
onClick: (t) => i.value[e.key] = []
|
|
8206
8260
|
}, {
|
|
8207
|
-
default: I(() => [...s[
|
|
8261
|
+
default: I(() => [...s[4] ||= [X(" Clear ", -1)]]),
|
|
8208
8262
|
_: 1
|
|
8209
8263
|
}, 8, ["onClick"])) : Z("", !0)
|
|
8210
8264
|
])) : Z("", !0)]),
|
|
8211
8265
|
_: 2
|
|
8212
|
-
}, 1024)) : Z("", !0)])], 10,
|
|
8266
|
+
}, 1024)) : Z("", !0)])], 10, Dp))), 128))])]), Y(pp, {
|
|
8213
8267
|
data: e.data,
|
|
8214
8268
|
columns: e.columns,
|
|
8215
8269
|
"group-by": e.groupBy,
|
|
@@ -8236,8 +8290,8 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8236
8290
|
"selected-rows",
|
|
8237
8291
|
"table-id",
|
|
8238
8292
|
"change-tracker"
|
|
8239
|
-
])], 8,
|
|
8240
|
-
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div",
|
|
8293
|
+
])], 8, Sp),
|
|
8294
|
+
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div", Wp, [J("span", Gp, A(a.value.length) + " row" + A(a.value.length === 1 ? "" : "s") + " selected", 1), J("ul", Kp, [(G(!0), K(W, null, B(e.bulkActions, (e) => (G(), K("li", { key: e.id }, [Y(su, {
|
|
8241
8295
|
theme: e.theme || "accent",
|
|
8242
8296
|
onClick: (t) => S(e.id),
|
|
8243
8297
|
size: "small"
|
|
@@ -8247,10 +8301,10 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8247
8301
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : Z("", !0)
|
|
8248
8302
|
]));
|
|
8249
8303
|
}
|
|
8250
|
-
}), [["styles", [""]]]),
|
|
8304
|
+
}), [["styles", [""]]]), Jp = {
|
|
8251
8305
|
class: "g-pagination",
|
|
8252
8306
|
"aria-label": "Pagination"
|
|
8253
|
-
},
|
|
8307
|
+
}, Yp = ["disabled"], Xp = ["disabled"], Zp = { class: "page-range" }, Qp = ["disabled"], $p = ["disabled"], em = ["value"], tm = ["value"], nm = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
8254
8308
|
__name: "GTablePagination",
|
|
8255
8309
|
props: /*@__PURE__*/ H({
|
|
8256
8310
|
start: { type: Number },
|
|
@@ -8272,7 +8326,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8272
8326
|
function d(e) {
|
|
8273
8327
|
i.value = parseInt(e.target.value, 10);
|
|
8274
8328
|
}
|
|
8275
|
-
return (e, r) => (G(), K("nav",
|
|
8329
|
+
return (e, r) => (G(), K("nav", Jp, [
|
|
8276
8330
|
J("button", {
|
|
8277
8331
|
class: "first-page g-pagination-button",
|
|
8278
8332
|
disabled: l.value === 1,
|
|
@@ -8297,7 +8351,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8297
8351
|
}),
|
|
8298
8352
|
J("path", { d: "M11 7l-5 5l5 5" }),
|
|
8299
8353
|
J("path", { d: "M17 7l-5 5l5 5" })
|
|
8300
|
-
], -1)]], 8,
|
|
8354
|
+
], -1)]], 8, Yp),
|
|
8301
8355
|
J("button", {
|
|
8302
8356
|
class: "prev-page g-pagination-button",
|
|
8303
8357
|
disabled: l.value === 1,
|
|
@@ -8318,8 +8372,8 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8318
8372
|
stroke: "none",
|
|
8319
8373
|
d: "M0 0h24v24H0z",
|
|
8320
8374
|
fill: "none"
|
|
8321
|
-
}), J("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
8322
|
-
J("span",
|
|
8375
|
+
}), J("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Xp),
|
|
8376
|
+
J("span", Zp, A(s.value) + " to " + A(c.value), 1),
|
|
8323
8377
|
J("button", {
|
|
8324
8378
|
class: "next-page g-pagination-button",
|
|
8325
8379
|
disabled: l.value === n.value,
|
|
@@ -8340,7 +8394,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8340
8394
|
stroke: "none",
|
|
8341
8395
|
d: "M0 0h24v24H0z",
|
|
8342
8396
|
fill: "none"
|
|
8343
|
-
}), J("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
8397
|
+
}), J("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Qp),
|
|
8344
8398
|
J("button", {
|
|
8345
8399
|
class: "last-page g-pagination-button",
|
|
8346
8400
|
disabled: l.value === n.value,
|
|
@@ -8365,7 +8419,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8365
8419
|
}),
|
|
8366
8420
|
J("path", { d: "M7 7l5 5l-5 5" }),
|
|
8367
8421
|
J("path", { d: "M13 7l5 5l-5 5" })
|
|
8368
|
-
], -1)]], 8,
|
|
8422
|
+
], -1)]], 8, $p),
|
|
8369
8423
|
J("select", {
|
|
8370
8424
|
id: "page-size-select",
|
|
8371
8425
|
class: "page-size-select",
|
|
@@ -8379,14 +8433,14 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8379
8433
|
], (e) => (G(), K("option", {
|
|
8380
8434
|
key: e,
|
|
8381
8435
|
value: e
|
|
8382
|
-
}, A(e), 9,
|
|
8436
|
+
}, A(e), 9, tm))), 128))], 40, em),
|
|
8383
8437
|
r[8] ||= J("label", {
|
|
8384
8438
|
class: "page-size-label",
|
|
8385
8439
|
for: "page-size-select"
|
|
8386
8440
|
}, "per page", -1)
|
|
8387
8441
|
]));
|
|
8388
8442
|
}
|
|
8389
|
-
}), [["styles", [""]]]),
|
|
8443
|
+
}), [["styles", [""]]]), rm = { class: "popover-content" }, im = { class: "year-dropdown" }, am = { class: "month-selector" }, om = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
8390
8444
|
__name: "GTermSelectorControl",
|
|
8391
8445
|
props: /*@__PURE__*/ H({
|
|
8392
8446
|
termYears: {
|
|
@@ -8419,7 +8473,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8419
8473
|
emits: ["update:modelValue"],
|
|
8420
8474
|
setup(e) {
|
|
8421
8475
|
let t = U(e, "modelValue");
|
|
8422
|
-
return (n, r) => (G(), K("div",
|
|
8476
|
+
return (n, r) => (G(), K("div", rm, [J("div", im, [Y(Lf, {
|
|
8423
8477
|
modelValue: t.value.year,
|
|
8424
8478
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
8425
8479
|
options: e.termYears,
|
|
@@ -8428,7 +8482,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8428
8482
|
"modelValue",
|
|
8429
8483
|
"options",
|
|
8430
8484
|
"label"
|
|
8431
|
-
])]), J("div",
|
|
8485
|
+
])]), J("div", am, [Y(Wf, {
|
|
8432
8486
|
modelValue: t.value.name,
|
|
8433
8487
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
8434
8488
|
options: e.termNames,
|
|
@@ -8440,10 +8494,10 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8440
8494
|
"label"
|
|
8441
8495
|
])])]));
|
|
8442
8496
|
}
|
|
8443
|
-
}), [["styles", [""]]]),
|
|
8497
|
+
}), [["styles", [""]]]), sm = { class: "g-term-selector" }, cm = { class: "g-term-label" }, lm = {
|
|
8444
8498
|
class: "g-popover-title",
|
|
8445
8499
|
tabindex: "-1"
|
|
8446
|
-
},
|
|
8500
|
+
}, um = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
8447
8501
|
__name: "GTermSelector",
|
|
8448
8502
|
props: /*@__PURE__*/ H({
|
|
8449
8503
|
heading: {
|
|
@@ -8474,8 +8528,8 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8474
8528
|
emits: ["update:modelValue"],
|
|
8475
8529
|
setup(e) {
|
|
8476
8530
|
let t = U(e, "modelValue");
|
|
8477
|
-
return (n, r) => (G(), K("div",
|
|
8478
|
-
trigger: I(({ toggle: e }) => [Y(
|
|
8531
|
+
return (n, r) => (G(), K("div", sm, [Y(df, null, {
|
|
8532
|
+
trigger: I(({ toggle: e }) => [Y(su, {
|
|
8479
8533
|
class: "g-term-selector-button",
|
|
8480
8534
|
theme: "none",
|
|
8481
8535
|
outlined: "",
|
|
@@ -8487,7 +8541,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8487
8541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8488
8542
|
viewBox: "0 0 640 640"
|
|
8489
8543
|
}, [J("path", { d: "M224 64C206.3 64 192 78.3 192 96L192 128L160 128C124.7 128 96 156.7 96 192L96 240L544 240L544 192C544 156.7 515.3 128 480 128L448 128L448 96C448 78.3 433.7 64 416 64C398.3 64 384 78.3 384 96L384 128L256 128L256 96C256 78.3 241.7 64 224 64zM96 288L96 480C96 515.3 124.7 544 160 544L480 544C515.3 544 544 515.3 544 480L544 288L96 288z" })])], -1),
|
|
8490
|
-
J("span",
|
|
8544
|
+
J("span", cm, A(t.value?.name) + " " + A(t.value?.year), 1),
|
|
8491
8545
|
r[1] ||= J("span", { class: "g-caret" }, [J("svg", {
|
|
8492
8546
|
role: "none",
|
|
8493
8547
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8496,15 +8550,15 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8496
8550
|
]),
|
|
8497
8551
|
_: 1
|
|
8498
8552
|
}, 8, ["onClick"])]),
|
|
8499
|
-
default: I(() => [J("h2",
|
|
8553
|
+
default: I(() => [J("h2", lm, A(e.heading), 1), Y(om, ge(Ia(n.$props)), null, 16)]),
|
|
8500
8554
|
_: 1
|
|
8501
8555
|
})]));
|
|
8502
8556
|
}
|
|
8503
|
-
}), [["styles", [""]]]),
|
|
8557
|
+
}), [["styles", [""]]]), dm = ["for"], fm = {
|
|
8504
8558
|
key: 0,
|
|
8505
8559
|
class: "g-textarea-required",
|
|
8506
8560
|
"aria-hidden": "true"
|
|
8507
|
-
},
|
|
8561
|
+
}, pm = ["id"], mm = [
|
|
8508
8562
|
"value",
|
|
8509
8563
|
"placeholder",
|
|
8510
8564
|
"disabled",
|
|
@@ -8513,11 +8567,11 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8513
8567
|
"rows",
|
|
8514
8568
|
"maxlength",
|
|
8515
8569
|
"aria-invalid"
|
|
8516
|
-
],
|
|
8570
|
+
], hm = {
|
|
8517
8571
|
key: 2,
|
|
8518
8572
|
class: "g-textarea-char-count",
|
|
8519
8573
|
"aria-live": "polite"
|
|
8520
|
-
},
|
|
8574
|
+
}, gm = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
8521
8575
|
inheritAttrs: !1,
|
|
8522
8576
|
__name: "GTextarea",
|
|
8523
8577
|
props: /*@__PURE__*/ H({
|
|
@@ -8575,7 +8629,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8575
8629
|
}),
|
|
8576
8630
|
emits: /*@__PURE__*/ H(["change"], ["update:modelValue"]),
|
|
8577
8631
|
setup(e, { emit: t }) {
|
|
8578
|
-
let n = e, r = U(e, "modelValue"), i = z(), { attrs: a, isCustomElement: o, forwardedAttrs: s } =
|
|
8632
|
+
let n = e, r = U(e, "modelValue"), i = z(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = ru({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } = wu({
|
|
8579
8633
|
name: n.name,
|
|
8580
8634
|
value: r,
|
|
8581
8635
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -8614,12 +8668,12 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8614
8668
|
key: 0,
|
|
8615
8669
|
for: c.value,
|
|
8616
8670
|
class: "g-textarea-label"
|
|
8617
|
-
}, [X(A(n.label), 1), n.required ? (G(), K("span",
|
|
8671
|
+
}, [X(A(n.label), 1), n.required ? (G(), K("span", fm, " *")) : Z("", !0)], 8, dm)) : Z("", !0),
|
|
8618
8672
|
t.$slots.instructions || e.instructions ? (G(), K("div", {
|
|
8619
8673
|
key: 1,
|
|
8620
8674
|
id: "instructions-" + P(i),
|
|
8621
8675
|
class: "g-textarea-instructions"
|
|
8622
|
-
}, [V(t.$slots, "instructions", {}, () => [X(A(e.instructions), 1)])], 8,
|
|
8676
|
+
}, [V(t.$slots, "instructions", {}, () => [X(A(e.instructions), 1)])], 8, pm)) : Z("", !0),
|
|
8623
8677
|
J("textarea", Va({
|
|
8624
8678
|
ref: "textareaEl",
|
|
8625
8679
|
value: r.value ?? "",
|
|
@@ -8640,36 +8694,36 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8640
8694
|
onInput: h,
|
|
8641
8695
|
onBlur: g,
|
|
8642
8696
|
onPaste: _
|
|
8643
|
-
}), null, 16,
|
|
8644
|
-
n.maxlength === void 0 ? Z("", !0) : (G(), K("div",
|
|
8645
|
-
Y(
|
|
8697
|
+
}), null, 16, mm),
|
|
8698
|
+
n.maxlength === void 0 ? Z("", !0) : (G(), K("div", hm, A((r.value ?? "").length) + " / " + A(n.maxlength), 1)),
|
|
8699
|
+
Y(Eu, {
|
|
8646
8700
|
errors: P(l),
|
|
8647
8701
|
id: "error-message-" + P(i)
|
|
8648
8702
|
}, null, 8, ["errors", "id"])
|
|
8649
8703
|
], 2));
|
|
8650
8704
|
}
|
|
8651
|
-
}), [["styles", [""]]]),
|
|
8705
|
+
}), [["styles", [""]]]), _m = { class: "g-three-way-toggle-wrapper" }, vm = { class: "g-three-way-toggle-control" }, ym = ["id"], bm = [
|
|
8652
8706
|
"aria-labelledby",
|
|
8653
8707
|
"aria-describedby",
|
|
8654
8708
|
"disabled",
|
|
8655
8709
|
"aria-invalid",
|
|
8656
8710
|
"aria-errormessage"
|
|
8657
|
-
],
|
|
8711
|
+
], xm = { key: 0 }, Sm = { key: 1 }, Cm = { key: 2 }, wm = ["for"], Tm = [
|
|
8658
8712
|
"id",
|
|
8659
8713
|
"name",
|
|
8660
8714
|
"checked",
|
|
8661
8715
|
"disabled"
|
|
8662
|
-
],
|
|
8716
|
+
], Em = ["for"], Dm = [
|
|
8663
8717
|
"id",
|
|
8664
8718
|
"name",
|
|
8665
8719
|
"checked",
|
|
8666
8720
|
"disabled"
|
|
8667
|
-
],
|
|
8721
|
+
], Om = ["for"], km = [
|
|
8668
8722
|
"id",
|
|
8669
8723
|
"name",
|
|
8670
8724
|
"checked",
|
|
8671
8725
|
"disabled"
|
|
8672
|
-
],
|
|
8726
|
+
], Am = ["id"], jm = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
8673
8727
|
__name: "GThreeWayToggle",
|
|
8674
8728
|
props: /*@__PURE__*/ H({
|
|
8675
8729
|
label: { type: String },
|
|
@@ -8703,10 +8757,10 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8703
8757
|
function m(e) {
|
|
8704
8758
|
n.disabled || (e.key === "n" || e.key === "N" ? (a(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (a(!0), e.preventDefault()));
|
|
8705
8759
|
}
|
|
8706
|
-
return (t, n) => (G(), K("div",
|
|
8760
|
+
return (t, n) => (G(), K("div", _m, [J("div", vm, [J("span", {
|
|
8707
8761
|
class: "g-label",
|
|
8708
8762
|
id: P(c)
|
|
8709
|
-
}, [V(t.$slots, "label", {}, () => [X(A(e.label), 1)])], 8,
|
|
8763
|
+
}, [V(t.$slots, "label", {}, () => [X(A(e.label), 1)])], 8, ym), J("fieldset", {
|
|
8710
8764
|
class: k(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
8711
8765
|
role: "radiogroup",
|
|
8712
8766
|
"aria-labelledby": P(c),
|
|
@@ -8718,7 +8772,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8718
8772
|
J("span", {
|
|
8719
8773
|
class: k(["g-toggle-thumb", p.value]),
|
|
8720
8774
|
"aria-hidden": "true"
|
|
8721
|
-
}, [r.value === !1 ? (G(), K("span",
|
|
8775
|
+
}, [r.value === !1 ? (G(), K("span", xm, "NO")) : r.value === !0 ? (G(), K("span", Sm, "YES")) : (G(), K("span", Cm))], 2),
|
|
8722
8776
|
J("label", {
|
|
8723
8777
|
for: P(u),
|
|
8724
8778
|
class: "g-toggle-option g-left",
|
|
@@ -8732,7 +8786,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8732
8786
|
value: "false",
|
|
8733
8787
|
disabled: e.disabled,
|
|
8734
8788
|
onChange: n[0] ||= (e) => o(!1)
|
|
8735
|
-
}, null, 40,
|
|
8789
|
+
}, null, 40, Tm), n[5] ||= J("span", { class: "ilw-sr-only" }, "No", -1)], 40, wm),
|
|
8736
8790
|
J("label", {
|
|
8737
8791
|
for: P(d),
|
|
8738
8792
|
class: "g-toggle-option g-center",
|
|
@@ -8744,7 +8798,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8744
8798
|
checked: r.value === null,
|
|
8745
8799
|
disabled: e.disabled,
|
|
8746
8800
|
onChange: n[2] ||= (e) => o(null)
|
|
8747
|
-
}, null, 40,
|
|
8801
|
+
}, null, 40, Dm), n[6] ||= J("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Em),
|
|
8748
8802
|
J("label", {
|
|
8749
8803
|
for: P(f),
|
|
8750
8804
|
class: "g-toggle-option g-right",
|
|
@@ -8758,22 +8812,22 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8758
8812
|
checked: r.value === !0,
|
|
8759
8813
|
disabled: e.disabled,
|
|
8760
8814
|
onChange: n[3] ||= (e) => o(!0)
|
|
8761
|
-
}, null, 40,
|
|
8762
|
-
], 2)], 10,
|
|
8815
|
+
}, null, 40, km), n[7] ||= J("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Om)
|
|
8816
|
+
], 2)], 10, bm)]), e.error ? (G(), K("div", {
|
|
8763
8817
|
key: 0,
|
|
8764
8818
|
id: `${P(c)}-error`,
|
|
8765
8819
|
class: "g-form-error",
|
|
8766
8820
|
role: "alert",
|
|
8767
8821
|
"aria-atomic": "true"
|
|
8768
|
-
}, A(e.error), 9,
|
|
8822
|
+
}, A(e.error), 9, Am)) : Z("", !0)]));
|
|
8769
8823
|
}
|
|
8770
|
-
}), [["styles", [""]]]),
|
|
8824
|
+
}), [["styles", [""]]]), Mm = { class: "g-tree-menu__divider" }, Nm = {
|
|
8771
8825
|
key: 0,
|
|
8772
8826
|
class: "g-tree-menu__divider-line"
|
|
8773
|
-
},
|
|
8827
|
+
}, Pm = {
|
|
8774
8828
|
key: 1,
|
|
8775
8829
|
class: "g-tree-menu__expand-all-wrapper"
|
|
8776
|
-
},
|
|
8830
|
+
}, Fm = { class: "g-tree-menu__content" }, Im = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
8777
8831
|
__name: "GTreeMenu",
|
|
8778
8832
|
props: {
|
|
8779
8833
|
heading: { type: String },
|
|
@@ -8801,7 +8855,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8801
8855
|
},
|
|
8802
8856
|
setup(e) {
|
|
8803
8857
|
let t = e, n = z();
|
|
8804
|
-
Kn("g-tree-menu-list-type", t.listType), Kn("g-tree-menu-expanded-storage", t.storageKey ?
|
|
8858
|
+
Kn("g-tree-menu-list-type", t.listType), Kn("g-tree-menu-expanded-storage", t.storageKey ? Yc(t.storageKey, {}) : null);
|
|
8805
8859
|
let r = /* @__PURE__ */ Ht(/* @__PURE__ */ new Map());
|
|
8806
8860
|
Kn("g-tree-menu-expandable-items", r);
|
|
8807
8861
|
let i = /* @__PURE__ */ N({
|
|
@@ -8892,7 +8946,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8892
8946
|
default: I(() => [X(A(e.heading), 1)]),
|
|
8893
8947
|
_: 1
|
|
8894
8948
|
}, 8, ["id"])) : Z("", !0),
|
|
8895
|
-
J("div",
|
|
8949
|
+
J("div", Mm, [e.smallHeading ? Z("", !0) : (G(), K("div", Nm)), e.showExpandAll ? (G(), K("div", Pm, [J("button", {
|
|
8896
8950
|
class: "g-tree-menu__expand-all-btn",
|
|
8897
8951
|
onClick: o
|
|
8898
8952
|
}, [(G(), K("svg", {
|
|
@@ -8905,17 +8959,17 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8905
8959
|
"stroke-linecap": "round",
|
|
8906
8960
|
"stroke-linejoin": "round"
|
|
8907
8961
|
}, [...i[0] ||= [J("polyline", { points: "7 8 12 13 17 8" }, null, -1), J("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), X(" " + A(a.value ? "Collapse all" : "Expand all"), 1)])])) : Z("", !0)]),
|
|
8908
|
-
J("div",
|
|
8962
|
+
J("div", Fm, [V(r.$slots, "default")])
|
|
8909
8963
|
], 16));
|
|
8910
8964
|
}
|
|
8911
|
-
}), [["styles", [""]]]),
|
|
8965
|
+
}), [["styles", [""]]]), Lm = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
8912
8966
|
name: "GTreeMenuList",
|
|
8913
8967
|
props: { listType: {
|
|
8914
8968
|
default: void 0,
|
|
8915
8969
|
type: String
|
|
8916
8970
|
} },
|
|
8917
8971
|
setup(e) {
|
|
8918
|
-
let t = e, n = qn("g-tree-menu-list-type", "ul"), r = Q(() => t.listType ?? n ?? "ul"), i =
|
|
8972
|
+
let t = e, n = qn("g-tree-menu-list-type", "ul"), r = Q(() => t.listType ?? n ?? "ul"), i = nu(), a = qa();
|
|
8919
8973
|
return Gr(() => {
|
|
8920
8974
|
if (!i) return;
|
|
8921
8975
|
let e = a?.ce;
|
|
@@ -8928,13 +8982,13 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8928
8982
|
_: 3
|
|
8929
8983
|
}, 8, ["role"]));
|
|
8930
8984
|
}
|
|
8931
|
-
}), [["styles", [""]]]),
|
|
8985
|
+
}), [["styles", [""]]]), Rm = {
|
|
8932
8986
|
key: 0,
|
|
8933
8987
|
class: "g-tree-menu__row"
|
|
8934
|
-
},
|
|
8988
|
+
}, zm = { class: "g-tree-menu__row-content-text" }, Bm = {
|
|
8935
8989
|
key: 1,
|
|
8936
8990
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
8937
|
-
},
|
|
8991
|
+
}, Vm = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
8938
8992
|
name: "GTreeMenuItem",
|
|
8939
8993
|
inheritAttrs: !1,
|
|
8940
8994
|
props: {
|
|
@@ -8992,7 +9046,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
8992
9046
|
function S(e) {
|
|
8993
9047
|
(e.key === "Enter" || e.key === " ") && (m(), e.preventDefault());
|
|
8994
9048
|
}
|
|
8995
|
-
let C =
|
|
9049
|
+
let C = nu(), w = a?.ce;
|
|
8996
9050
|
Gr(() => {
|
|
8997
9051
|
C && w && w.setAttribute("role", "listitem");
|
|
8998
9052
|
});
|
|
@@ -9006,7 +9060,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
9006
9060
|
class: "g-tree-menu__item",
|
|
9007
9061
|
"data-tree-expandable": c.value ? "true" : void 0
|
|
9008
9062
|
}), {
|
|
9009
|
-
default: I(() => [c.value ? (G(), K("div",
|
|
9063
|
+
default: I(() => [c.value ? (G(), K("div", Rm, [J("div", {
|
|
9010
9064
|
class: "g-tree-menu__toggle-btn",
|
|
9011
9065
|
onClick: m
|
|
9012
9066
|
}, [(G(), K("svg", {
|
|
@@ -9025,12 +9079,12 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
9025
9079
|
"data-tree-primary": "",
|
|
9026
9080
|
onClick: x,
|
|
9027
9081
|
onKeydown: S
|
|
9028
|
-
}, [J("span",
|
|
9082
|
+
}, [J("span", zm, [V(e.$slots, "default")])], 544)])) : (G(), K("div", Bm, [t[1] ||= J("span", { class: "g-tree-menu__spacer" }, null, -1), J("span", {
|
|
9029
9083
|
class: "g-tree-menu__row-content",
|
|
9030
9084
|
ref_key: "contentRef",
|
|
9031
9085
|
ref: f,
|
|
9032
9086
|
"data-tree-primary": ""
|
|
9033
|
-
}, [V(e.$slots, "default")], 512)])), c.value && d.value ? (G(), q(
|
|
9087
|
+
}, [V(e.$slots, "default")], 512)])), c.value && d.value ? (G(), q(Lm, {
|
|
9034
9088
|
key: 2,
|
|
9035
9089
|
id: P(o) + "-children"
|
|
9036
9090
|
}, {
|
|
@@ -9040,11 +9094,11 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
9040
9094
|
_: 3
|
|
9041
9095
|
}, 16, ["role", "data-tree-expandable"]));
|
|
9042
9096
|
}
|
|
9043
|
-
}), [["styles", [""]]]),
|
|
9097
|
+
}), [["styles", [""]]]), Hm = { class: "g-user-menu" }, Um = [
|
|
9044
9098
|
"aria-label",
|
|
9045
9099
|
"aria-expanded",
|
|
9046
9100
|
"onClick"
|
|
9047
|
-
],
|
|
9101
|
+
], Wm = { class: "g-user-menu__popover" }, Gm = { class: "g-user-menu__list" }, Km = /*#__PURE__*/ $(/* @__PURE__ */ R({
|
|
9048
9102
|
__name: "GUserMenu",
|
|
9049
9103
|
props: {
|
|
9050
9104
|
initials: { type: String },
|
|
@@ -9062,7 +9116,7 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
9062
9116
|
let t = `${z()}-email`, n = /* @__PURE__ */ N(!1), r = jr("emailHeading");
|
|
9063
9117
|
qa()?.appContext?.components?.RouterLink;
|
|
9064
9118
|
let i = ui();
|
|
9065
|
-
return (a, o) => (G(), K("div",
|
|
9119
|
+
return (a, o) => (G(), K("div", Hm, [Y(df, {
|
|
9066
9120
|
modelValue: n.value,
|
|
9067
9121
|
"onUpdate:modelValue": o[0] ||= (e) => n.value = e,
|
|
9068
9122
|
minimal: ""
|
|
@@ -9074,8 +9128,8 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
9074
9128
|
"aria-expanded": n.value,
|
|
9075
9129
|
"aria-haspopup": "menu",
|
|
9076
9130
|
onClick: t
|
|
9077
|
-
}, A(e.initials), 13,
|
|
9078
|
-
default: I(() => [J("div",
|
|
9131
|
+
}, A(e.initials), 13, Um)]),
|
|
9132
|
+
default: I(() => [J("div", Wm, [J("h2", {
|
|
9079
9133
|
id: t,
|
|
9080
9134
|
ref_key: "emailHeading",
|
|
9081
9135
|
ref: r,
|
|
@@ -9084,61 +9138,61 @@ var pp = { class: "g-table-outer-wrap" }, mp = {
|
|
|
9084
9138
|
}, A(e.email), 513), J("nav", {
|
|
9085
9139
|
class: "g-user-menu__nav",
|
|
9086
9140
|
"aria-labelledby": t
|
|
9087
|
-
}, [J("ul",
|
|
9141
|
+
}, [J("ul", Gm, [(G(!0), K(W, null, B(i.default(), (e, t) => (G(), K("li", { key: t }, [(G(), q(ni(e)))]))), 128))])])])]),
|
|
9088
9142
|
_: 1
|
|
9089
9143
|
}, 8, ["modelValue"])]));
|
|
9090
9144
|
}
|
|
9091
|
-
}), [["styles", [""]]]),
|
|
9092
|
-
|
|
9093
|
-
var
|
|
9145
|
+
}), [["styles", [""]]]), qm = globalThis;
|
|
9146
|
+
qm.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ = !0;
|
|
9147
|
+
var Jm = {
|
|
9094
9148
|
shadowRoot: !1,
|
|
9095
9149
|
configureApp(e) {
|
|
9096
|
-
let t = (
|
|
9097
|
-
|
|
9098
|
-
}
|
|
9099
|
-
},
|
|
9100
|
-
["g-alert-dialog",
|
|
9101
|
-
["g-app-header",
|
|
9102
|
-
["g-button",
|
|
9103
|
-
["g-checkbox-group",
|
|
9104
|
-
["g-clipboard",
|
|
9105
|
-
["g-currency-input",
|
|
9106
|
-
["g-date-input",
|
|
9107
|
-
["g-date-range-input",
|
|
9108
|
-
["g-detail-list",
|
|
9109
|
-
["g-detail-list-item",
|
|
9110
|
-
["g-email-input",
|
|
9111
|
-
["g-file-input",
|
|
9112
|
-
["g-form",
|
|
9113
|
-
["g-hamburger-menu",
|
|
9114
|
-
["g-history-scroller",
|
|
9115
|
-
["g-modal",
|
|
9116
|
-
["g-multi-select",
|
|
9117
|
-
["g-overlay",
|
|
9118
|
-
["g-popover",
|
|
9119
|
-
["g-tooltip",
|
|
9120
|
-
["g-progress",
|
|
9121
|
-
["g-search",
|
|
9122
|
-
["g-select",
|
|
9123
|
-
["g-select-button",
|
|
9124
|
-
["g-sidebar",
|
|
9125
|
-
["g-sidebar-menu",
|
|
9126
|
-
["g-submit-button",
|
|
9127
|
-
["g-table",
|
|
9128
|
-
["g-table-body",
|
|
9129
|
-
["g-table-pagination",
|
|
9130
|
-
["g-term-selector",
|
|
9131
|
-
["g-term-selector-control",
|
|
9132
|
-
["g-text-input",
|
|
9133
|
-
["g-textarea",
|
|
9134
|
-
["g-three-way-toggle",
|
|
9135
|
-
["g-tree-menu",
|
|
9136
|
-
["g-tree-menu-list",
|
|
9137
|
-
["g-tree-menu-item",
|
|
9138
|
-
["g-user-menu",
|
|
9150
|
+
let t = (qm.__GRAD_VUE_WC_APP_ID__ ?? 0) + 1;
|
|
9151
|
+
qm.__GRAD_VUE_WC_APP_ID__ = t, e.config.idPrefix = `g-wc-${t}-`;
|
|
9152
|
+
}
|
|
9153
|
+
}, Ym = [
|
|
9154
|
+
["g-alert-dialog", pu],
|
|
9155
|
+
["g-app-header", bu],
|
|
9156
|
+
["g-button", su],
|
|
9157
|
+
["g-checkbox-group", Lu],
|
|
9158
|
+
["g-clipboard", Ju],
|
|
9159
|
+
["g-currency-input", nd],
|
|
9160
|
+
["g-date-input", rd],
|
|
9161
|
+
["g-date-range-input", ud],
|
|
9162
|
+
["g-detail-list", dd],
|
|
9163
|
+
["g-detail-list-item", hd],
|
|
9164
|
+
["g-email-input", gd],
|
|
9165
|
+
["g-file-input", Cd],
|
|
9166
|
+
["g-form", Td],
|
|
9167
|
+
["g-hamburger-menu", jd],
|
|
9168
|
+
["g-history-scroller", Id],
|
|
9169
|
+
["g-modal", Hd],
|
|
9170
|
+
["g-multi-select", rf],
|
|
9171
|
+
["g-overlay", of],
|
|
9172
|
+
["g-popover", df],
|
|
9173
|
+
["g-tooltip", ff],
|
|
9174
|
+
["g-progress", _f],
|
|
9175
|
+
["g-search", Df],
|
|
9176
|
+
["g-select", Lf],
|
|
9177
|
+
["g-select-button", Wf],
|
|
9178
|
+
["g-sidebar", qf],
|
|
9179
|
+
["g-sidebar-menu", Zf],
|
|
9180
|
+
["g-submit-button", Qf],
|
|
9181
|
+
["g-table", qp],
|
|
9182
|
+
["g-table-body", pp],
|
|
9183
|
+
["g-table-pagination", nm],
|
|
9184
|
+
["g-term-selector", um],
|
|
9185
|
+
["g-term-selector-control", om],
|
|
9186
|
+
["g-text-input", td],
|
|
9187
|
+
["g-textarea", gm],
|
|
9188
|
+
["g-three-way-toggle", jm],
|
|
9189
|
+
["g-tree-menu", Im],
|
|
9190
|
+
["g-tree-menu-list", Lm],
|
|
9191
|
+
["g-tree-menu-item", Vm],
|
|
9192
|
+
["g-user-menu", Km]
|
|
9139
9193
|
];
|
|
9140
|
-
for (let [e, t] of
|
|
9141
|
-
let n = /* @__PURE__ */ ys(t,
|
|
9194
|
+
for (let [e, t] of Ym) {
|
|
9195
|
+
let n = /* @__PURE__ */ ys(t, Jm);
|
|
9142
9196
|
customElements.define(e, n);
|
|
9143
9197
|
}
|
|
9144
9198
|
//#endregion
|