@illinois-grad/grad-vue 7.2.7 → 7.2.8
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/README.md +28 -0
- package/dist/components/GAppUpdateNotice.vue.d.ts +93 -0
- package/dist/compose/useAppUpdateCheck.d.ts +30 -0
- package/dist/{grad-vue-COt_mmY9.js → grad-vue-DSPqd1gb.js} +726 -644
- package/dist/grad-vue-DSPqd1gb.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.d.ts +4 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.js +4 -4
- package/dist/plugin.js.map +1 -1
- package/dist/vite.d.ts +22 -0
- package/dist/vite.js +38 -0
- package/dist/vite.js.map +1 -0
- package/package.json +13 -1
- package/dist/grad-vue-COt_mmY9.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, getCurrentScope as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeMount as y, onBeforeUnmount as b, onMounted as x, onScopeDispose as S, onUnmounted as C, openBlock as w, provide as T, reactive as E, readonly as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, shallowReactive as M, shallowRef as N, toDisplayString as P, toRaw as F, toRef as I, toValue as L, unref as R, useAttrs as z, useId as B, useModel as V, useSlots as H, useTemplateRef as U, vShow as ee, watch as W, watchEffect as G, withCtx as K, withDirectives as te, withModifiers as q } from "vue";
|
|
2
|
-
import { createEventHook as ne, toArray as re, tryOnScopeDispose as ie, unrefElement as J, useClipboard as ae, useDebounceFn as Y,
|
|
3
|
-
import { createFocusTrap as
|
|
2
|
+
import { createEventHook as ne, toArray as re, tryOnScopeDispose as ie, unrefElement as J, useClipboard as ae, useDebounceFn as Y, useEventListener as X, useFocusWithin as oe, useIntersectionObserver as se, useIntervalFn as ce, useLocalStorage as Z, useMediaQuery as le, useMutationObserver as ue, useResizeObserver as de, useSessionStorage as fe } from "@vueuse/core";
|
|
3
|
+
import { createFocusTrap as pe } from "focus-trap";
|
|
4
4
|
// src/compose/useCustomElementAttrs.ts
|
|
5
|
-
function
|
|
5
|
+
function Q() {
|
|
6
6
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function me(e = {}) {
|
|
9
9
|
let t = z(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
|
|
10
10
|
return {
|
|
11
11
|
attrs: t,
|
|
@@ -19,7 +19,7 @@ function pe(e = {}) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
// src/components/GButton.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var
|
|
22
|
+
var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, $ = /* @__PURE__ */ u({
|
|
23
23
|
inheritAttrs: !1,
|
|
24
24
|
__name: "GButton",
|
|
25
25
|
props: {
|
|
@@ -54,7 +54,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
54
54
|
"mouseleave"
|
|
55
55
|
],
|
|
56
56
|
setup(t, { emit: n }) {
|
|
57
|
-
let a = t, c = H(), l = n, { forwardedAttrs: u } =
|
|
57
|
+
let a = t, c = H(), l = n, { forwardedAttrs: u } = me({ omitInCustomElement: ["id"] }), d = r(() => [
|
|
58
58
|
"g-btn",
|
|
59
59
|
`g-btn--${a.size}`,
|
|
60
60
|
`g-btn--${a.theme}`,
|
|
@@ -88,11 +88,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
88
88
|
onMouseenter: r[6] ||= (e) => n.$emit("mouseenter", e),
|
|
89
89
|
onMouseleave: r[7] ||= (e) => n.$emit("mouseleave", e)
|
|
90
90
|
}), {
|
|
91
|
-
default: K(() => [t.icon || c.icon ? (w(), o(e, { key: 0 }, [s("span",
|
|
91
|
+
default: K(() => [t.icon || c.icon ? (w(), o(e, { key: 0 }, [s("span", he, [c.icon ? A(n.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
|
|
92
92
|
key: 1,
|
|
93
93
|
class: _(t.icon + " g-btn--icon-span"),
|
|
94
94
|
"aria-hidden": "true"
|
|
95
|
-
}, null, 2))]), s("span",
|
|
95
|
+
}, null, 2))]), s("span", ge, [A(n.$slots, "default")])], 64)) : A(n.$slots, "default", {}, void 0, void 0, 1)]),
|
|
96
96
|
_: 3
|
|
97
97
|
}, 16, [
|
|
98
98
|
"to",
|
|
@@ -102,13 +102,13 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
102
102
|
"aria-disabled"
|
|
103
103
|
]));
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
105
|
+
}), _e = { class: "g-tree-menu__divider" }, ve = {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: "g-tree-menu__divider-line"
|
|
108
|
-
},
|
|
108
|
+
}, ye = {
|
|
109
109
|
key: 1,
|
|
110
110
|
class: "g-tree-menu__expand-all-wrapper"
|
|
111
|
-
},
|
|
111
|
+
}, be = { class: "g-tree-menu__content" }, xe = /* @__PURE__ */ u({
|
|
112
112
|
__name: "GTreeMenu",
|
|
113
113
|
props: {
|
|
114
114
|
heading: {},
|
|
@@ -128,7 +128,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
128
128
|
setup(e) {
|
|
129
129
|
let t = e, n = H(), l = d(), u = B(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
|
|
130
130
|
T("g-tree-menu-list-type", t.listType);
|
|
131
|
-
let m = t.storageKey ?
|
|
131
|
+
let m = t.storageKey ? fe(t.storageKey, {}) : null;
|
|
132
132
|
T("g-tree-menu-expanded-storage", m);
|
|
133
133
|
let g = E(/* @__PURE__ */ new Map());
|
|
134
134
|
T("g-tree-menu-expandable-items", g);
|
|
@@ -161,7 +161,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
161
161
|
default: K(() => [A(n.$slots, "heading", {}, () => [c(P(e.heading), 1)])]),
|
|
162
162
|
_: 3
|
|
163
163
|
}, 8, ["id"])) : a("", !0),
|
|
164
|
-
s("div",
|
|
164
|
+
s("div", _e, [e.smallHeading ? a("", !0) : (w(), o("div", ve)), e.showExpandAll ? (w(), o("div", ye, [s("button", {
|
|
165
165
|
class: "g-tree-menu__expand-all-btn",
|
|
166
166
|
onClick: b
|
|
167
167
|
}, [(w(), o("svg", {
|
|
@@ -174,14 +174,14 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
174
174
|
"stroke-linecap": "round",
|
|
175
175
|
"stroke-linejoin": "round"
|
|
176
176
|
}, [...r[0] ||= [s("polyline", { points: "7 8 12 13 17 8" }, null, -1), s("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), c(" " + P(y.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
|
|
177
|
-
s("div",
|
|
177
|
+
s("div", be, [A(n.$slots, "default")])
|
|
178
178
|
], 16));
|
|
179
179
|
}
|
|
180
|
-
}),
|
|
180
|
+
}), Se = /* @__PURE__ */ u({
|
|
181
181
|
name: "GTreeMenuList",
|
|
182
182
|
props: { listType: { default: void 0 } },
|
|
183
183
|
setup(e) {
|
|
184
|
-
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o =
|
|
184
|
+
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = Q(), s = d();
|
|
185
185
|
return x(() => {
|
|
186
186
|
if (!o) return;
|
|
187
187
|
let e = s?.ce;
|
|
@@ -194,20 +194,20 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
194
194
|
_: 3
|
|
195
195
|
}, 8, ["role"]));
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), Ce = {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: "g-tree-menu__row"
|
|
200
|
-
},
|
|
200
|
+
}, we = { class: "g-tree-menu__row-content-text" }, Te = [
|
|
201
201
|
"aria-controls",
|
|
202
202
|
"aria-expanded",
|
|
203
203
|
"aria-label"
|
|
204
|
-
],
|
|
204
|
+
], Ee = {
|
|
205
205
|
key: 1,
|
|
206
206
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
207
|
-
},
|
|
207
|
+
}, De = {
|
|
208
208
|
class: "g-tree-menu__row-content",
|
|
209
209
|
"data-tree-primary": ""
|
|
210
|
-
},
|
|
210
|
+
}, Oe = /* @__PURE__ */ u({
|
|
211
211
|
name: "GTreeMenuItem",
|
|
212
212
|
inheritAttrs: !1,
|
|
213
213
|
props: {
|
|
@@ -258,7 +258,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
258
258
|
function F(e) {
|
|
259
259
|
e.target.closest("a, button") || T();
|
|
260
260
|
}
|
|
261
|
-
let I =
|
|
261
|
+
let I = Q(), L = u?.ce;
|
|
262
262
|
x(() => {
|
|
263
263
|
I && L && L.setAttribute("role", "listitem");
|
|
264
264
|
});
|
|
@@ -272,11 +272,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
272
272
|
class: "g-tree-menu__item",
|
|
273
273
|
"data-tree-expandable": g.value ? "true" : void 0
|
|
274
274
|
}), {
|
|
275
|
-
default: K(() => [g.value ? (w(), o("div",
|
|
275
|
+
default: K(() => [g.value ? (w(), o("div", Ce, [s("span", {
|
|
276
276
|
class: "g-tree-menu__row-content",
|
|
277
277
|
"data-tree-primary": "",
|
|
278
278
|
onClick: F
|
|
279
|
-
}, [s("span",
|
|
279
|
+
}, [s("span", we, [A(e.$slots, "default")])]), s("button", {
|
|
280
280
|
type: "button",
|
|
281
281
|
class: "g-tree-menu__toggle-btn",
|
|
282
282
|
"aria-controls": R(f) + "-children",
|
|
@@ -294,7 +294,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
294
294
|
"stroke-width": "2.5",
|
|
295
295
|
"stroke-linecap": "round",
|
|
296
296
|
"stroke-linejoin": "round"
|
|
297
|
-
}, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8,
|
|
297
|
+
}, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, Te)])) : (w(), o("div", Ee, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", De, [A(e.$slots, "default")])])), g.value && C.value ? (w(), i(Se, {
|
|
298
298
|
key: 2,
|
|
299
299
|
id: R(f) + "-children"
|
|
300
300
|
}, {
|
|
@@ -306,7 +306,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
306
306
|
}
|
|
307
307
|
});
|
|
308
308
|
// src/compose/useForm.ts
|
|
309
|
-
function
|
|
309
|
+
function ke() {
|
|
310
310
|
let e = M({}), t = O(!1), n = r(() => {
|
|
311
311
|
let t = {};
|
|
312
312
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -347,17 +347,17 @@ function Oe() {
|
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
349
|
// src/compose/useWebComponentForm.ts
|
|
350
|
-
function
|
|
350
|
+
function Ae() {
|
|
351
351
|
let e = globalThis;
|
|
352
352
|
return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
let t =
|
|
356
|
-
return t.has(n) || t.set(n,
|
|
354
|
+
function je(e = "default") {
|
|
355
|
+
let t = Ae(), n = e || "default";
|
|
356
|
+
return t.has(n) || t.set(n, ke()), t.get(n);
|
|
357
357
|
}
|
|
358
358
|
// src/compose/useFormField.ts
|
|
359
|
-
function
|
|
360
|
-
let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (
|
|
359
|
+
function Me(e) {
|
|
360
|
+
let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (Q() ? je(i) : null), o = r(() => {
|
|
361
361
|
let t = [];
|
|
362
362
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
363
363
|
}), s = r(() => o.value.length > 0), c = e.name;
|
|
@@ -375,7 +375,7 @@ function $(e) {
|
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
377
|
// src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
|
|
378
|
-
var
|
|
378
|
+
var Ne = ["id"], Pe = /* @__PURE__ */ u({
|
|
379
379
|
__name: "GFormErrorMessages",
|
|
380
380
|
props: {
|
|
381
381
|
errors: {},
|
|
@@ -398,25 +398,25 @@ var je = ["id"], Me = /* @__PURE__ */ u({
|
|
|
398
398
|
}, [s("path", {
|
|
399
399
|
fill: "currentColor",
|
|
400
400
|
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"
|
|
401
|
-
})], -1), c(" " + P(e), 1)]))), 128))], 8,
|
|
401
|
+
})], -1), c(" " + P(e), 1)]))), 128))], 8, Ne)) : a("", !0);
|
|
402
402
|
}
|
|
403
|
-
}),
|
|
403
|
+
}), Fe = ["for"], Ie = {
|
|
404
404
|
key: 0,
|
|
405
405
|
class: "g-text-input-required",
|
|
406
406
|
"aria-hidden": "true"
|
|
407
|
-
},
|
|
407
|
+
}, Le = ["id"], Re = {
|
|
408
408
|
key: 0,
|
|
409
409
|
class: "g-text-input-prefix"
|
|
410
|
-
},
|
|
410
|
+
}, ze = [
|
|
411
411
|
"value",
|
|
412
412
|
"placeholder",
|
|
413
413
|
"disabled",
|
|
414
414
|
"required",
|
|
415
415
|
"aria-invalid"
|
|
416
|
-
],
|
|
416
|
+
], Be = {
|
|
417
417
|
key: 1,
|
|
418
418
|
class: "g-text-input-suffix"
|
|
419
|
-
},
|
|
419
|
+
}, Ve = /* @__PURE__ */ u({
|
|
420
420
|
inheritAttrs: !1,
|
|
421
421
|
__name: "GTextInput",
|
|
422
422
|
props: /*@__PURE__*/ m({
|
|
@@ -443,7 +443,7 @@ var je = ["id"], Me = /* @__PURE__ */ u({
|
|
|
443
443
|
}),
|
|
444
444
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
445
445
|
setup(e, { emit: t }) {
|
|
446
|
-
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
446
|
+
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = me({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = Me({
|
|
447
447
|
name: n.name,
|
|
448
448
|
value: i,
|
|
449
449
|
errors: I(n, "errors"),
|
|
@@ -481,14 +481,14 @@ var je = ["id"], Me = /* @__PURE__ */ u({
|
|
|
481
481
|
key: 0,
|
|
482
482
|
for: m.value,
|
|
483
483
|
class: "g-text-input-label"
|
|
484
|
-
}, [c(P(n.label), 1), n.required ? (w(), o("span",
|
|
484
|
+
}, [c(P(n.label), 1), n.required ? (w(), o("span", Ie, " *")) : a("", !0)], 8, Fe)) : a("", !0),
|
|
485
485
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
486
486
|
key: 1,
|
|
487
487
|
id: "instructions-" + R(u),
|
|
488
488
|
class: "g-text-input-instructions"
|
|
489
|
-
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8,
|
|
489
|
+
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Le)) : a("", !0),
|
|
490
490
|
s("div", { class: _([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
|
|
491
|
-
n.prefix ? (w(), o("span",
|
|
491
|
+
n.prefix ? (w(), o("span", Re, P(n.prefix), 1)) : a("", !0),
|
|
492
492
|
s("input", h({
|
|
493
493
|
value: i.value,
|
|
494
494
|
placeholder: n.placeholder,
|
|
@@ -505,39 +505,39 @@ var je = ["id"], Me = /* @__PURE__ */ u({
|
|
|
505
505
|
id: m.value,
|
|
506
506
|
"aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + R(u) : void 0,
|
|
507
507
|
"aria-errormessage": R(v) ? "error-message-" + R(u) : void 0
|
|
508
|
-
}, { "aria-invalid": R(v) ? "true" : "false" }), null, 16,
|
|
509
|
-
n.suffix ? (w(), o("span",
|
|
508
|
+
}, { "aria-invalid": R(v) ? "true" : "false" }), null, 16, ze),
|
|
509
|
+
n.suffix ? (w(), o("span", Be, P(n.suffix), 1)) : a("", !0)
|
|
510
510
|
], 2),
|
|
511
|
-
l(
|
|
511
|
+
l(Pe, {
|
|
512
512
|
errors: R(g),
|
|
513
513
|
id: "error-message-" + R(u)
|
|
514
514
|
}, null, 8, ["errors", "id"])
|
|
515
515
|
], 2));
|
|
516
516
|
}
|
|
517
|
-
}),
|
|
518
|
-
function
|
|
517
|
+
}), He = 100, Ue = 200, We = 102, Ge = O([]), Ke = O([]), qe = O([]);
|
|
518
|
+
function Je() {
|
|
519
519
|
if (typeof document < "u") {
|
|
520
|
-
if (
|
|
520
|
+
if (qe.value.length > 0) {
|
|
521
521
|
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
522
522
|
document.body.classList.add("g-scroll-lock"), document.body.style.paddingRight = `${e}px`, document.body.style.setProperty("--g-scrollbar-width", `${e}px`);
|
|
523
523
|
} else document.body.style.paddingRight = "0", document.body.classList.remove("g-scroll-lock"), document.body.style.removeProperty("--g-scrollbar-width");
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Ye(e, t = !1, n = !1) {
|
|
527
527
|
if (typeof document > "u") return {};
|
|
528
|
-
let i = t ?
|
|
528
|
+
let i = t ? Ke : Ge;
|
|
529
529
|
function a() {
|
|
530
|
-
i.value.push(e), n && !
|
|
530
|
+
i.value.push(e), n && !qe.value.includes(e) && (qe.value.push(e), Je());
|
|
531
531
|
}
|
|
532
532
|
function o() {
|
|
533
533
|
let t = i.value.lastIndexOf(e);
|
|
534
534
|
t !== -1 && i.value.splice(t, 1);
|
|
535
|
-
let n =
|
|
536
|
-
n !== -1 && (
|
|
535
|
+
let n = qe.value.lastIndexOf(e);
|
|
536
|
+
n !== -1 && (qe.value.splice(n, 1), Je());
|
|
537
537
|
}
|
|
538
|
-
let s = r(() => !t &&
|
|
538
|
+
let s = r(() => !t && Ke.value.length > 0 ? !1 : i.value.length > 0 && i.value[i.value.length - 1] === e), c = r(() => {
|
|
539
539
|
let n = i.value.indexOf(e);
|
|
540
|
-
return n === -1 ? 0 : (t ?
|
|
540
|
+
return n === -1 ? 0 : (t ? Ue : He) + n;
|
|
541
541
|
});
|
|
542
542
|
return b(o), {
|
|
543
543
|
push: a,
|
|
@@ -546,25 +546,25 @@ function qe(e, t = !1, n = !1) {
|
|
|
546
546
|
zIndex: c
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Xe() {
|
|
550
550
|
return typeof document > "u" ? {} : {
|
|
551
|
-
hasModal: r(() =>
|
|
552
|
-
hasOverlay: r(() =>
|
|
553
|
-
hasScrollLock: r(() =>
|
|
551
|
+
hasModal: r(() => Ke.value.length > 0),
|
|
552
|
+
hasOverlay: r(() => Ge.value.length > 0 || Ke.value.length > 0),
|
|
553
|
+
hasScrollLock: r(() => qe.value.length > 0)
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Ze() {
|
|
557
557
|
let e = 0;
|
|
558
|
-
return
|
|
559
|
-
e = Math.max(e,
|
|
560
|
-
}),
|
|
561
|
-
e = Math.max(e,
|
|
562
|
-
}), e > 0 ? e + 1 :
|
|
558
|
+
return Ge.value.forEach((t, n) => {
|
|
559
|
+
e = Math.max(e, He + n);
|
|
560
|
+
}), Ke.value.forEach((t, n) => {
|
|
561
|
+
e = Math.max(e, Ue + n);
|
|
562
|
+
}), e > 0 ? e + 1 : We;
|
|
563
563
|
}
|
|
564
564
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
565
|
-
var
|
|
565
|
+
var Qe = (e) => e != null;
|
|
566
566
|
// ../../node_modules/@vueuse/integrations/dist/useFocusTrap.js
|
|
567
|
-
function
|
|
567
|
+
function $e(e, t = {}) {
|
|
568
568
|
let n, { immediate: i, ...a } = t, o = N(!1), s = N(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e), u = () => {
|
|
569
569
|
n && (n.pause(), s.value = !0);
|
|
570
570
|
}, d = () => {
|
|
@@ -574,11 +574,11 @@ function Ze(e, t = {}) {
|
|
|
574
574
|
return re(t).map((e) => {
|
|
575
575
|
let t = L(e);
|
|
576
576
|
return typeof t == "string" ? t : J(t);
|
|
577
|
-
}).filter(
|
|
577
|
+
}).filter(Qe);
|
|
578
578
|
});
|
|
579
579
|
return W(f, (e) => {
|
|
580
580
|
if (e.length) {
|
|
581
|
-
if (!n) n =
|
|
581
|
+
if (!n) n = pe(e, {
|
|
582
582
|
...a,
|
|
583
583
|
onActivate(e) {
|
|
584
584
|
o.value = !0, t.onActivate && t.onActivate(e);
|
|
@@ -602,17 +602,17 @@ function Ze(e, t = {}) {
|
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
// src/compose/focusable.ts
|
|
605
|
-
var
|
|
606
|
-
function
|
|
607
|
-
return e ? Array.from(e.querySelectorAll(
|
|
605
|
+
var et = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1']),[contenteditable='true']";
|
|
606
|
+
function tt(e) {
|
|
607
|
+
return e ? Array.from(e.querySelectorAll(et)) : [];
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function nt(e) {
|
|
610
610
|
let t = document.activeElement;
|
|
611
611
|
return t ? e.findIndex((e) => e === t || e.contains(t)) : -1;
|
|
612
612
|
}
|
|
613
613
|
// src/compose/useOverlayFocus.ts
|
|
614
|
-
function
|
|
615
|
-
let r = O(!1), i = () => !!e.value?.querySelector(
|
|
614
|
+
function rt(e, t, n = !1) {
|
|
615
|
+
let r = O(!1), i = () => !!e.value?.querySelector(et), { activate: a, deactivate: o, pause: s, unpause: c } = $e(e, {
|
|
616
616
|
immediate: !1,
|
|
617
617
|
clickOutsideDeactivates: n,
|
|
618
618
|
initialFocus: () => {
|
|
@@ -655,7 +655,7 @@ function tt(e, t, n = !1) {
|
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
657
|
// src/compose/useOverlayEscape.ts
|
|
658
|
-
function
|
|
658
|
+
function it(e, t, n, r, i) {
|
|
659
659
|
function a(i) {
|
|
660
660
|
if (n.value && t.value) {
|
|
661
661
|
for (let t of e) if (t.value?.contains(i.target)) return;
|
|
@@ -674,7 +674,7 @@ function nt(e, t, n, r, i) {
|
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
676
|
// src/compose/popoverPosition.ts
|
|
677
|
-
function
|
|
677
|
+
function at(e, t, n, r) {
|
|
678
678
|
let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
|
|
679
679
|
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;
|
|
680
680
|
let u = e.left + (e.width - t.width) / 2;
|
|
@@ -689,19 +689,19 @@ function rt(e, t, n, r) {
|
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
691
|
// src/components/GClientOnly.vue
|
|
692
|
-
var
|
|
692
|
+
var ot = /* @__PURE__ */ u({
|
|
693
693
|
__name: "GClientOnly",
|
|
694
694
|
setup(e) {
|
|
695
|
-
let t = O(
|
|
695
|
+
let t = O(Q());
|
|
696
696
|
return x(() => {
|
|
697
697
|
t.value = !0;
|
|
698
698
|
}), (e, n) => t.value ? A(e.$slots, "default", {}, void 0, void 0, 0) : A(e.$slots, "fallback", {}, void 0, void 0, 1);
|
|
699
699
|
}
|
|
700
|
-
}),
|
|
700
|
+
}), st = { class: "g-popover-wrap" }, ct = ["id"], lt = [
|
|
701
701
|
"id",
|
|
702
702
|
"aria-labelledby",
|
|
703
703
|
"aria-label"
|
|
704
|
-
],
|
|
704
|
+
], ut = /* @__PURE__ */ u({
|
|
705
705
|
__name: "GPopover",
|
|
706
706
|
props: {
|
|
707
707
|
ariaLabelledby: {},
|
|
@@ -724,8 +724,8 @@ var it = /* @__PURE__ */ u({
|
|
|
724
724
|
W(I(d, "modelValue"), (e) => {
|
|
725
725
|
p.value = e;
|
|
726
726
|
});
|
|
727
|
-
let m = H(), h = r(() => !!m.trigger), y = U("triggerRef"), x = U("popoverRef"), S = U("popoverContentRef"), { isCustomElement: C } =
|
|
728
|
-
|
|
727
|
+
let m = H(), h = r(() => !!m.trigger), y = U("triggerRef"), x = U("popoverRef"), S = U("popoverContentRef"), { isCustomElement: C } = me(), T = C, E = B(), { push: D, pop: k, isTop: j, zIndex: M } = Ye(E, !0), { activate: N, deactivate: P } = rt(x, j, !0);
|
|
728
|
+
it([x, y], j, p, L, k), W(p, (e) => {
|
|
729
729
|
e ? (g(() => {
|
|
730
730
|
g(() => N());
|
|
731
731
|
}), D(), f("show")) : (P(), k(), f("hide"), re.value = !1, ie.value = null);
|
|
@@ -762,7 +762,7 @@ var it = /* @__PURE__ */ u({
|
|
|
762
762
|
}, ne.value = !1, q.value = !1, G.value = { left: "50%" };
|
|
763
763
|
return;
|
|
764
764
|
}
|
|
765
|
-
let { top: c, left: l, xOffset: u, placedAbove: f, overlay: p } =
|
|
765
|
+
let { top: c, left: l, xOffset: u, placedAbove: f, overlay: p } = at(s.getBoundingClientRect(), o, n, { gap: d.minimal ? 0 : 8 });
|
|
766
766
|
V.value = {
|
|
767
767
|
top: c,
|
|
768
768
|
left: l
|
|
@@ -782,7 +782,7 @@ var it = /* @__PURE__ */ u({
|
|
|
782
782
|
show: F,
|
|
783
783
|
hide: L,
|
|
784
784
|
toggle: z
|
|
785
|
-
}), (r, c) => (w(), o("div",
|
|
785
|
+
}), (r, c) => (w(), o("div", st, [h.value ? (w(), o("div", {
|
|
786
786
|
key: 0,
|
|
787
787
|
ref_key: "triggerRef",
|
|
788
788
|
ref: y,
|
|
@@ -792,7 +792,7 @@ var it = /* @__PURE__ */ u({
|
|
|
792
792
|
toggle: z,
|
|
793
793
|
open: p.value,
|
|
794
794
|
popoverId: `${R(E)}-popover`
|
|
795
|
-
})], 8,
|
|
795
|
+
})], 8, ct)) : a("", !0), l(ot, null, {
|
|
796
796
|
default: K(() => [(w(), i(t, {
|
|
797
797
|
to: "#modal-root",
|
|
798
798
|
disabled: R(T)
|
|
@@ -849,42 +849,42 @@ var it = /* @__PURE__ */ u({
|
|
|
849
849
|
fill: "currentColor",
|
|
850
850
|
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"
|
|
851
851
|
})], -1)]]))
|
|
852
|
-
], 14,
|
|
852
|
+
], 14, lt)), [[ee, p.value]]) : a("", !0)]),
|
|
853
853
|
_: 3
|
|
854
854
|
})], 8, ["disabled"]))]),
|
|
855
855
|
_: 3
|
|
856
856
|
})]));
|
|
857
857
|
}
|
|
858
|
-
}),
|
|
859
|
-
function
|
|
860
|
-
return `${e}-${++
|
|
858
|
+
}), dt = 1;
|
|
859
|
+
function ft(e = "v-gtooltip") {
|
|
860
|
+
return `${e}-${++dt}`;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function pt(e, t = "v-gtooltip") {
|
|
863
863
|
let n = e.getAttribute("aria-describedby");
|
|
864
864
|
if (n) return n;
|
|
865
|
-
let r =
|
|
865
|
+
let r = ft(t);
|
|
866
866
|
return e.setAttribute("aria-describedby", r), r;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function mt(e, t) {
|
|
869
869
|
let n = document.createElement("div");
|
|
870
870
|
return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function ht(e) {
|
|
873
873
|
(document.getElementById("modal-root") ?? document.body).appendChild(e);
|
|
874
874
|
}
|
|
875
|
-
function
|
|
876
|
-
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } =
|
|
875
|
+
function gt(e, t) {
|
|
876
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = at(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
|
|
877
877
|
gap: 8,
|
|
878
878
|
margin: 8,
|
|
879
879
|
preferAbove: !0
|
|
880
880
|
}), s = (n.left + n.width / 2 - a) / r.width * 100;
|
|
881
|
-
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 = `${
|
|
881
|
+
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 = `${Ze()}`, t.style.visibility = "visible", t.style.opacity = "1";
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function _t(e) {
|
|
884
884
|
e.style.opacity = "0", e.style.visibility = "hidden";
|
|
885
885
|
}
|
|
886
886
|
// src/components/GTooltip.vue
|
|
887
|
-
var
|
|
887
|
+
var vt = /* @__PURE__ */ u({
|
|
888
888
|
__name: "GTooltip",
|
|
889
889
|
props: { text: {} },
|
|
890
890
|
emits: ["tooltip-hide"],
|
|
@@ -899,12 +899,12 @@ var gt = /* @__PURE__ */ u({
|
|
|
899
899
|
return t instanceof HTMLElement ? t : null;
|
|
900
900
|
}
|
|
901
901
|
function S() {
|
|
902
|
-
y && (v || (v = l.value ?
|
|
903
|
-
f.value && (p.value || m.value) && y &&
|
|
902
|
+
y && (v || (v = l.value ? ft("g-tooltip") : pt(y, "g-tooltip"), l.value && y.setAttribute("aria-describedby", v)), f.value || (f.value = mt(i.text, v), ht(f.value), h = new ResizeObserver(() => {
|
|
903
|
+
f.value && (p.value || m.value) && y && gt(y, f.value);
|
|
904
904
|
}), h.observe(f.value)));
|
|
905
905
|
}
|
|
906
906
|
function C() {
|
|
907
|
-
f.value && (p.value || m.value) && y &&
|
|
907
|
+
f.value && (p.value || m.value) && y && gt(y, f.value);
|
|
908
908
|
}
|
|
909
909
|
function T() {
|
|
910
910
|
p.value = !0;
|
|
@@ -945,7 +945,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
945
945
|
}, { immediate: !0 }), W(() => i.text, (e) => {
|
|
946
946
|
f.value && (f.value.textContent = e);
|
|
947
947
|
}), W(() => p.value || m.value, (e) => {
|
|
948
|
-
e ? (S(), f.value && y &&
|
|
948
|
+
e ? (S(), f.value && y && gt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0)) : (g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (_t(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
|
|
949
949
|
s("tooltip-hide");
|
|
950
950
|
}, 150)));
|
|
951
951
|
}), b(() => {
|
|
@@ -965,11 +965,11 @@ var gt = /* @__PURE__ */ u({
|
|
|
965
965
|
class: "g-tooltip-trigger"
|
|
966
966
|
}, [A(e.$slots, "trigger")], 512)) : a("", !0)], 512));
|
|
967
967
|
}
|
|
968
|
-
}),
|
|
968
|
+
}), yt = ["disabled"], bt = { class: "g-select-btn-legend" }, xt = {
|
|
969
969
|
key: 0,
|
|
970
970
|
class: "g-select-btn-required",
|
|
971
971
|
"aria-hidden": "true"
|
|
972
|
-
},
|
|
972
|
+
}, St = { class: "g-select-btn-row" }, Ct = [
|
|
973
973
|
"id",
|
|
974
974
|
"name",
|
|
975
975
|
"value",
|
|
@@ -977,7 +977,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
977
977
|
"disabled",
|
|
978
978
|
"required",
|
|
979
979
|
"onChange"
|
|
980
|
-
],
|
|
980
|
+
], wt = ["for"], Tt = /* @__PURE__ */ u({
|
|
981
981
|
__name: "GSelectButton",
|
|
982
982
|
props: /*@__PURE__*/ m({
|
|
983
983
|
options: {},
|
|
@@ -1000,7 +1000,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
1000
1000
|
}),
|
|
1001
1001
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
1002
1002
|
setup(t, { emit: n }) {
|
|
1003
|
-
let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } =
|
|
1003
|
+
let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = Me({
|
|
1004
1004
|
name: i.name,
|
|
1005
1005
|
value: d,
|
|
1006
1006
|
errors: I(i, "errors"),
|
|
@@ -1019,7 +1019,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
1019
1019
|
return (t, n) => (w(), o("fieldset", {
|
|
1020
1020
|
class: _(g.value),
|
|
1021
1021
|
disabled: i.disabled
|
|
1022
|
-
}, [s("legend",
|
|
1022
|
+
}, [s("legend", bt, [c(P(i.label), 1), i.required ? (w(), o("span", xt, " *")) : a("", !0)]), s("div", { class: _(["g-select-btn-wrapper", { "g-select-btn-has-error": R(m) }]) }, [s("div", St, [(w(!0), o(e, null, k(h.value, (t, n) => (w(), o(e, { key: t.value }, [s("input", {
|
|
1023
1023
|
class: "g-select-btn-radio",
|
|
1024
1024
|
type: "radio",
|
|
1025
1025
|
id: `${R(f)}-${t.value}`,
|
|
@@ -1029,29 +1029,29 @@ var gt = /* @__PURE__ */ u({
|
|
|
1029
1029
|
disabled: i.disabled,
|
|
1030
1030
|
required: i.required && n === 0,
|
|
1031
1031
|
onChange: (e) => y(t.value)
|
|
1032
|
-
}, null, 40,
|
|
1032
|
+
}, null, 40, Ct), s("label", {
|
|
1033
1033
|
for: `${R(f)}-${t.value}`,
|
|
1034
1034
|
class: _(v(t.value === d.value))
|
|
1035
|
-
}, P(t.label), 11,
|
|
1035
|
+
}, P(t.label), 11, wt)], 64))), 128))]), l(Pe, {
|
|
1036
1036
|
errors: R(p),
|
|
1037
1037
|
id: "error-message-" + R(f)
|
|
1038
|
-
}, null, 8, ["errors", "id"])], 2)], 10,
|
|
1038
|
+
}, null, 8, ["errors", "id"])], 2)], 10, yt));
|
|
1039
1039
|
}
|
|
1040
|
-
}),
|
|
1040
|
+
}), Et = ["width", "height"], Dt = [
|
|
1041
1041
|
"cx",
|
|
1042
1042
|
"cy",
|
|
1043
1043
|
"r"
|
|
1044
|
-
],
|
|
1044
|
+
], Ot = [
|
|
1045
1045
|
"cx",
|
|
1046
1046
|
"cy",
|
|
1047
1047
|
"r",
|
|
1048
1048
|
"stroke-dasharray",
|
|
1049
1049
|
"stroke-dashoffset"
|
|
1050
|
-
],
|
|
1050
|
+
], kt = [
|
|
1051
1051
|
"cx",
|
|
1052
1052
|
"cy",
|
|
1053
1053
|
"r"
|
|
1054
|
-
],
|
|
1054
|
+
], At = /* @__PURE__ */ u({
|
|
1055
1055
|
__name: "GProgress",
|
|
1056
1056
|
props: {
|
|
1057
1057
|
label: { default: "Loading" },
|
|
@@ -1092,7 +1092,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
1092
1092
|
r: i.value,
|
|
1093
1093
|
"stroke-width": 4,
|
|
1094
1094
|
fill: "none"
|
|
1095
|
-
}, null, 8,
|
|
1095
|
+
}, null, 8, Dt), n.value ? (w(), o("circle", {
|
|
1096
1096
|
key: 0,
|
|
1097
1097
|
class: "g-progress__value",
|
|
1098
1098
|
cx: i.value + 2,
|
|
@@ -1106,7 +1106,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
1106
1106
|
transform: "rotate(-90deg)",
|
|
1107
1107
|
"transform-origin": "center"
|
|
1108
1108
|
}
|
|
1109
|
-
}, null, 8,
|
|
1109
|
+
}, null, 8, Ot)) : (w(), o("circle", {
|
|
1110
1110
|
key: 1,
|
|
1111
1111
|
class: "g-progress__spinner",
|
|
1112
1112
|
cx: i.value + 2,
|
|
@@ -1114,13 +1114,13 @@ var gt = /* @__PURE__ */ u({
|
|
|
1114
1114
|
r: i.value,
|
|
1115
1115
|
"stroke-width": 4,
|
|
1116
1116
|
fill: "none"
|
|
1117
|
-
}, null, 8,
|
|
1117
|
+
}, null, 8, kt))], 10, Et))], 16));
|
|
1118
1118
|
}
|
|
1119
|
-
}),
|
|
1119
|
+
}), jt = [
|
|
1120
1120
|
"id",
|
|
1121
1121
|
"aria-labelledby",
|
|
1122
1122
|
"aria-describedby"
|
|
1123
|
-
],
|
|
1123
|
+
], Mt = { class: "g-alertdialog-inner" }, Nt = ["id"], Pt = ["id"], Ft = { class: "g-alertdialog-actions" }, It = /* @__PURE__ */ u({
|
|
1124
1124
|
__name: "GAlertDialog",
|
|
1125
1125
|
props: {
|
|
1126
1126
|
label: { default: "Confirmation" },
|
|
@@ -1129,11 +1129,11 @@ var gt = /* @__PURE__ */ u({
|
|
|
1129
1129
|
},
|
|
1130
1130
|
emits: ["cancel", "confirm"],
|
|
1131
1131
|
setup(e, { emit: r }) {
|
|
1132
|
-
let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } =
|
|
1132
|
+
let a = e, o = r, u = O(null), d = O(!0), f = B(), { pop: p, push: m, isTop: h, zIndex: g } = Ye(f, !0, !0), { deactivate: _, activate: b } = rt(u, h);
|
|
1133
1133
|
function S() {
|
|
1134
1134
|
o("cancel");
|
|
1135
1135
|
}
|
|
1136
|
-
return
|
|
1136
|
+
return it([u], h, d, S, p), x(() => {
|
|
1137
1137
|
m(), b();
|
|
1138
1138
|
}), y(() => {
|
|
1139
1139
|
p(), _();
|
|
@@ -1151,42 +1151,42 @@ var gt = /* @__PURE__ */ u({
|
|
|
1151
1151
|
ref_key: "dialog",
|
|
1152
1152
|
ref: u,
|
|
1153
1153
|
style: v({ zIndex: R(g) })
|
|
1154
|
-
}, [s("div",
|
|
1154
|
+
}, [s("div", Mt, [
|
|
1155
1155
|
s("h2", {
|
|
1156
1156
|
id: "alertdialog-label-" + R(f),
|
|
1157
1157
|
class: "g-alertdialog-label"
|
|
1158
|
-
}, P(a.label), 9,
|
|
1158
|
+
}, P(a.label), 9, Nt),
|
|
1159
1159
|
s("div", {
|
|
1160
1160
|
id: "alertdialog-description-" + R(f),
|
|
1161
1161
|
class: "g-alertdialog-content"
|
|
1162
|
-
}, [A(e.$slots, "default")], 8,
|
|
1163
|
-
s("div",
|
|
1162
|
+
}, [A(e.$slots, "default")], 8, Pt),
|
|
1163
|
+
s("div", Ft, [l($, {
|
|
1164
1164
|
outlined: "",
|
|
1165
1165
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1166
1166
|
}, {
|
|
1167
1167
|
default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
|
|
1168
1168
|
_: 1
|
|
1169
|
-
}), l(
|
|
1169
|
+
}), l($, {
|
|
1170
1170
|
theme: a.buttonColor,
|
|
1171
1171
|
onClick: r[1] ||= (e) => o("confirm")
|
|
1172
1172
|
}, {
|
|
1173
1173
|
default: K(() => [c(P(a.buttonText), 1)]),
|
|
1174
1174
|
_: 1
|
|
1175
1175
|
}, 8, ["theme"])])
|
|
1176
|
-
])], 12,
|
|
1176
|
+
])], 12, jt)]),
|
|
1177
1177
|
_: 3
|
|
1178
1178
|
})]));
|
|
1179
1179
|
}
|
|
1180
1180
|
});
|
|
1181
1181
|
// src/compose/useSelectDropdown.ts
|
|
1182
|
-
function
|
|
1182
|
+
function Lt(e) {
|
|
1183
1183
|
return e.map((e) => typeof e == "string" ? {
|
|
1184
1184
|
label: e,
|
|
1185
1185
|
value: e
|
|
1186
1186
|
} : e);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
let { push: o, pop: s, isTop: c } =
|
|
1188
|
+
function Rt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a }) {
|
|
1189
|
+
let { push: o, pop: s, isTop: c } = Ye(i), l = O("below"), u = O(null), d = r(() => {
|
|
1190
1190
|
let e = {};
|
|
1191
1191
|
return u.value !== null && (e.maxHeight = `${u.value}px`), l.value === "above" ? (e.top = "auto", e.bottom = "100%") : (e.top = "100%", e.bottom = "auto"), e;
|
|
1192
1192
|
});
|
|
@@ -1228,11 +1228,11 @@ function It({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
|
|
|
1228
1228
|
};
|
|
1229
1229
|
}
|
|
1230
1230
|
// src/components/GSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1231
|
-
var
|
|
1231
|
+
var zt = ["id"], Bt = {
|
|
1232
1232
|
key: 0,
|
|
1233
1233
|
class: "g-select-required",
|
|
1234
1234
|
"aria-hidden": "true"
|
|
1235
|
-
},
|
|
1235
|
+
}, Vt = { class: "g-select-input-wrap" }, Ht = ["id"], Ut = [
|
|
1236
1236
|
"value",
|
|
1237
1237
|
"placeholder",
|
|
1238
1238
|
"disabled",
|
|
@@ -1240,24 +1240,24 @@ var Lt = ["id"], Rt = {
|
|
|
1240
1240
|
"aria-expanded",
|
|
1241
1241
|
"aria-required",
|
|
1242
1242
|
"aria-activedescendant"
|
|
1243
|
-
],
|
|
1243
|
+
], Wt = [
|
|
1244
1244
|
"id",
|
|
1245
1245
|
"aria-controls",
|
|
1246
1246
|
"aria-expanded",
|
|
1247
1247
|
"aria-required",
|
|
1248
1248
|
"aria-activedescendant"
|
|
1249
|
-
],
|
|
1249
|
+
], Gt = ["id"], Kt = [
|
|
1250
1250
|
"id",
|
|
1251
1251
|
"aria-selected",
|
|
1252
1252
|
"onClick"
|
|
1253
|
-
],
|
|
1253
|
+
], qt = { class: "g-select-option-label" }, Jt = {
|
|
1254
1254
|
key: 0,
|
|
1255
1255
|
class: "g-select-option-description"
|
|
1256
|
-
},
|
|
1256
|
+
}, Yt = {
|
|
1257
1257
|
key: 1,
|
|
1258
1258
|
"aria-live": "polite",
|
|
1259
1259
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
1260
|
-
},
|
|
1260
|
+
}, Xt = /* @__PURE__ */ u({
|
|
1261
1261
|
__name: "GSelect",
|
|
1262
1262
|
props: /*@__PURE__*/ m({
|
|
1263
1263
|
options: {},
|
|
@@ -1294,18 +1294,18 @@ var Lt = ["id"], Rt = {
|
|
|
1294
1294
|
}),
|
|
1295
1295
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
1296
1296
|
setup(t, { emit: n }) {
|
|
1297
|
-
let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(!1), S = O(!1), { displayErrors: C, hasErrors: T } =
|
|
1297
|
+
let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(!1), S = O(!1), { displayErrors: C, hasErrors: T } = Me({
|
|
1298
1298
|
name: i.name,
|
|
1299
1299
|
value: d,
|
|
1300
1300
|
errors: I(i, "errors"),
|
|
1301
1301
|
formKey: i.formKey
|
|
1302
|
-
}), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } =
|
|
1302
|
+
}), { menuPlacement: E, menuStyle: D, isTop: j, scrollOptionIntoView: M } = Rt({
|
|
1303
1303
|
open: y,
|
|
1304
1304
|
anchorRef: p,
|
|
1305
1305
|
listboxRef: m,
|
|
1306
1306
|
baseId: f,
|
|
1307
1307
|
activeIndex: b
|
|
1308
|
-
}), N = r(() =>
|
|
1308
|
+
}), N = r(() => Lt(i.options)), F = O(""), L = r(() => {
|
|
1309
1309
|
if (!i.searchable || !y.value || !F.value) return N.value;
|
|
1310
1310
|
let e = F.value.toLowerCase();
|
|
1311
1311
|
return N.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
|
|
@@ -1403,8 +1403,8 @@ var Lt = ["id"], Rt = {
|
|
|
1403
1403
|
key: 0,
|
|
1404
1404
|
id: R(f) + "-label",
|
|
1405
1405
|
class: "g-select-combo-label g-select-label"
|
|
1406
|
-
}, [c(P(i.label), 1), i.required ? (w(), o("span",
|
|
1407
|
-
s("div",
|
|
1406
|
+
}, [c(P(i.label), 1), i.required ? (w(), o("span", Bt, " *")) : a("", !0)], 8, zt)),
|
|
1407
|
+
s("div", Vt, [i.searchable ? (w(), o("div", {
|
|
1408
1408
|
key: 0,
|
|
1409
1409
|
class: "g-select-combo-input g-select-control",
|
|
1410
1410
|
id: R(f)
|
|
@@ -1431,7 +1431,7 @@ var Lt = ["id"], Rt = {
|
|
|
1431
1431
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
|
|
1432
1432
|
role: "combobox",
|
|
1433
1433
|
autocomplete: "off"
|
|
1434
|
-
}), null, 16,
|
|
1434
|
+
}), null, 16, Ut),
|
|
1435
1435
|
X.value ? (w(), o("button", {
|
|
1436
1436
|
key: 0,
|
|
1437
1437
|
type: "button",
|
|
@@ -1457,7 +1457,7 @@ var Lt = ["id"], Rt = {
|
|
|
1457
1457
|
fill: "currentColor",
|
|
1458
1458
|
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"
|
|
1459
1459
|
})], -1)
|
|
1460
|
-
], 8,
|
|
1460
|
+
], 8, Ht)) : (w(), o("div", h({
|
|
1461
1461
|
key: 1,
|
|
1462
1462
|
ref_key: "comboRef",
|
|
1463
1463
|
ref: p,
|
|
@@ -1502,7 +1502,7 @@ var Lt = ["id"], Rt = {
|
|
|
1502
1502
|
fill: "currentColor",
|
|
1503
1503
|
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"
|
|
1504
1504
|
})], -1)
|
|
1505
|
-
], 16,
|
|
1505
|
+
], 16, Wt)), te(s("div", h({
|
|
1506
1506
|
ref_key: "listboxRef",
|
|
1507
1507
|
ref: m,
|
|
1508
1508
|
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": R(E) === "above" }],
|
|
@@ -1524,35 +1524,35 @@ var Lt = ["id"], Rt = {
|
|
|
1524
1524
|
option: e,
|
|
1525
1525
|
selected: e.value === d.value,
|
|
1526
1526
|
index: t
|
|
1527
|
-
}, () => [s("span",
|
|
1528
|
-
l(
|
|
1527
|
+
}, () => [s("span", qt, P(e.label), 1), e.description ? (w(), o("span", Jt, P(e.description), 1)) : a("", !0)])], 42, Kt))), 128)) : (w(), o("div", Yt, " No results found. "))], 16, Gt), [[ee, y.value]])]),
|
|
1528
|
+
l(Pe, {
|
|
1529
1529
|
errors: R(C),
|
|
1530
1530
|
id: "error-message-" + R(f)
|
|
1531
1531
|
}, null, 8, ["errors", "id"])
|
|
1532
1532
|
], 2));
|
|
1533
1533
|
}
|
|
1534
|
-
}),
|
|
1534
|
+
}), Zt = ["aria-label"], Qt = [
|
|
1535
1535
|
"placeholder",
|
|
1536
1536
|
"value",
|
|
1537
1537
|
"aria-label",
|
|
1538
1538
|
"aria-expanded",
|
|
1539
1539
|
"aria-controls",
|
|
1540
1540
|
"aria-activedescendant"
|
|
1541
|
-
],
|
|
1541
|
+
], $t = {
|
|
1542
1542
|
key: 0,
|
|
1543
1543
|
class: "g-search-dropdown"
|
|
1544
|
-
},
|
|
1544
|
+
}, en = {
|
|
1545
1545
|
"aria-live": "polite",
|
|
1546
1546
|
class: "g-search-result-count"
|
|
1547
|
-
},
|
|
1547
|
+
}, tn = ["id"], nn = ["aria-label"], rn = { class: "g-search-group-label" }, an = [
|
|
1548
1548
|
"id",
|
|
1549
1549
|
"onMousedown",
|
|
1550
1550
|
"aria-selected"
|
|
1551
|
-
],
|
|
1551
|
+
], on = [
|
|
1552
1552
|
"id",
|
|
1553
1553
|
"onMousedown",
|
|
1554
1554
|
"aria-selected"
|
|
1555
|
-
],
|
|
1555
|
+
], sn = /* @__PURE__ */ u({
|
|
1556
1556
|
__name: "GSearch",
|
|
1557
1557
|
props: /*@__PURE__*/ m({
|
|
1558
1558
|
results: {},
|
|
@@ -1580,7 +1580,7 @@ var Lt = ["id"], Rt = {
|
|
|
1580
1580
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1581
1581
|
});
|
|
1582
1582
|
}
|
|
1583
|
-
let { focused: S } =
|
|
1583
|
+
let { focused: S } = oe(f);
|
|
1584
1584
|
function C(e) {
|
|
1585
1585
|
let t = e.altKey;
|
|
1586
1586
|
if (e.key === "ArrowDown") {
|
|
@@ -1634,11 +1634,11 @@ var Lt = ["id"], Rt = {
|
|
|
1634
1634
|
"aria-autocomplete": "list",
|
|
1635
1635
|
"aria-controls": `${R(M)}-list`,
|
|
1636
1636
|
"aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
|
|
1637
|
-
}, null, 40,
|
|
1637
|
+
}, null, 40, Qt), s("button", {
|
|
1638
1638
|
type: "submit",
|
|
1639
1639
|
class: "g-search-submit",
|
|
1640
1640
|
onKeydown: C
|
|
1641
|
-
}, [E.value ? (w(), i(
|
|
1641
|
+
}, [E.value ? (w(), i(At, {
|
|
1642
1642
|
key: 0,
|
|
1643
1643
|
size: "tiny"
|
|
1644
1644
|
})) : a("", !0), n[1] ||= s("svg", {
|
|
@@ -1649,7 +1649,7 @@ var Lt = ["id"], Rt = {
|
|
|
1649
1649
|
}, [s("path", {
|
|
1650
1650
|
fill: "currentColor",
|
|
1651
1651
|
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"
|
|
1652
|
-
})], -1)], 32)], 32), D.value ? (w(), o("div",
|
|
1652
|
+
})], -1)], 32)], 32), D.value ? (w(), o("div", $t, [s("div", en, [E.value ? a("", !0) : (w(), o(e, { key: 0 }, [c(P(y.value) + " result" + P(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
|
|
1653
1653
|
role: "listbox",
|
|
1654
1654
|
id: `${R(M)}-list`,
|
|
1655
1655
|
ref_key: "listboxRef",
|
|
@@ -1660,40 +1660,40 @@ var Lt = ["id"], Rt = {
|
|
|
1660
1660
|
class: "g-search-group",
|
|
1661
1661
|
role: "group",
|
|
1662
1662
|
"aria-label": n.label
|
|
1663
|
-
}, [A(t.$slots, "group", { group: n }, () => [s("div",
|
|
1663
|
+
}, [A(t.$slots, "group", { group: n }, () => [s("div", rn, P(n.label), 1)]), (w(!0), o(e, null, k(n.items, (e, n) => (w(), o("div", {
|
|
1664
1664
|
key: e.id,
|
|
1665
1665
|
id: "g-search-option-" + e.id,
|
|
1666
1666
|
class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
|
|
1667
1667
|
role: "option",
|
|
1668
1668
|
onMousedown: q((t) => T(e), ["prevent"]),
|
|
1669
1669
|
"aria-selected": v.value[h.value] && v.value[h.value].id === e.id
|
|
1670
|
-
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42,
|
|
1670
|
+
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, an))), 128))], 8, nn))), 128)) : y.value > 0 ? (w(!0), o(e, { key: 1 }, k(v.value, (e, n) => (w(), o("div", {
|
|
1671
1671
|
key: e.id,
|
|
1672
1672
|
id: "g-search-option-" + e.id,
|
|
1673
1673
|
class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
|
|
1674
1674
|
role: "option",
|
|
1675
1675
|
onMousedown: q((t) => T(e), ["prevent"]),
|
|
1676
1676
|
"aria-selected": h.value === n
|
|
1677
|
-
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42,
|
|
1677
|
+
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, on))), 128)) : a("", !0)], 8, tn)])) : a("", !0)], 8, Zt));
|
|
1678
1678
|
}
|
|
1679
1679
|
});
|
|
1680
1680
|
// src/compose/useWebComponentSidebar.ts
|
|
1681
|
-
function
|
|
1681
|
+
function cn(e) {
|
|
1682
1682
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function ln() {
|
|
1685
1685
|
let e = globalThis;
|
|
1686
1686
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1689
|
-
let n =
|
|
1688
|
+
function un(e = "default", t) {
|
|
1689
|
+
let n = ln(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
|
|
1690
1690
|
if (!n.has(r)) {
|
|
1691
|
-
let e =
|
|
1691
|
+
let e = cn(r), t = O(a);
|
|
1692
1692
|
n.set(r, {
|
|
1693
1693
|
id: `g-wc-sidebar-${e}`,
|
|
1694
1694
|
open: O(!1),
|
|
1695
1695
|
breakpoint: t,
|
|
1696
|
-
isCollapsible:
|
|
1696
|
+
isCollapsible: le(t, { ssrWidth: 1e3 }),
|
|
1697
1697
|
toggle: () => void 0
|
|
1698
1698
|
});
|
|
1699
1699
|
}
|
|
@@ -1724,16 +1724,16 @@ function cn(e = "default", t) {
|
|
|
1724
1724
|
}), o;
|
|
1725
1725
|
}
|
|
1726
1726
|
// src/components/hamburger/GHamburgerMenuButton.vue?vue&type=script&setup=true&lang.ts
|
|
1727
|
-
var
|
|
1727
|
+
var dn = [
|
|
1728
1728
|
"id",
|
|
1729
1729
|
"aria-controls",
|
|
1730
1730
|
"aria-expanded",
|
|
1731
1731
|
"aria-haspopup",
|
|
1732
1732
|
"aria-label"
|
|
1733
|
-
],
|
|
1733
|
+
], fn = {
|
|
1734
1734
|
key: 0,
|
|
1735
1735
|
class: "g-hamburger-label"
|
|
1736
|
-
},
|
|
1736
|
+
}, pn = /* @__PURE__ */ u({
|
|
1737
1737
|
__name: "GHamburgerMenuButton",
|
|
1738
1738
|
props: {
|
|
1739
1739
|
id: {},
|
|
@@ -1766,9 +1766,9 @@ var ln = [
|
|
|
1766
1766
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1767
1767
|
viewBox: "0 0 51.26 51.26",
|
|
1768
1768
|
role: "none"
|
|
1769
|
-
}, [s("g", { fill: "currentColor" }, [s("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 ? (w(), o("span",
|
|
1769
|
+
}, [s("g", { fill: "currentColor" }, [s("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 ? (w(), o("span", fn, P(e.label), 1)) : a("", !0)], 10, dn));
|
|
1770
1770
|
}
|
|
1771
|
-
}),
|
|
1771
|
+
}), mn = ["id"], hn = /* @__PURE__ */ u({
|
|
1772
1772
|
__name: "GHamburgerMenu",
|
|
1773
1773
|
props: {
|
|
1774
1774
|
label: { default: "Main Navigation" },
|
|
@@ -1786,7 +1786,7 @@ var ln = [
|
|
|
1786
1786
|
},
|
|
1787
1787
|
emits: ["toggle", "update:modelValue"],
|
|
1788
1788
|
setup(e, { expose: t, emit: n }) {
|
|
1789
|
-
let a = e, o = p("sidebar", void 0) ?? (
|
|
1789
|
+
let a = e, o = p("sidebar", void 0) ?? (Q() ? un(a.sidebarKey, I(a, "mediaQuery")) : void 0), c = n, u = r(() => a.mode === "popover"), d = O(a.modelValue);
|
|
1790
1790
|
W(I(a, "modelValue"), (e) => {
|
|
1791
1791
|
d.value = e;
|
|
1792
1792
|
});
|
|
@@ -1808,12 +1808,12 @@ var ln = [
|
|
|
1808
1808
|
}
|
|
1809
1809
|
let x = B(), S = r(() => `${o?.id ?? x}-hamburger`), C = r(() => u.value ? d.value : !!o?.open?.value), T = r(() => u.value ? `${x}-popover` : o ? `${o.id}-sidebar` : void 0);
|
|
1810
1810
|
function E() {
|
|
1811
|
-
return
|
|
1811
|
+
return nt(tt(m.value));
|
|
1812
1812
|
}
|
|
1813
1813
|
async function D(e) {
|
|
1814
1814
|
if (e < 0) return !1;
|
|
1815
1815
|
await g();
|
|
1816
|
-
let t =
|
|
1816
|
+
let t = tt(m.value)[e];
|
|
1817
1817
|
return t ? (t.focus(), !0) : !1;
|
|
1818
1818
|
}
|
|
1819
1819
|
function k() {
|
|
@@ -1826,13 +1826,13 @@ var ln = [
|
|
|
1826
1826
|
focusItem: D,
|
|
1827
1827
|
focusTrigger: k,
|
|
1828
1828
|
getFocusedItemIndex: E
|
|
1829
|
-
}), (t, n) => u.value ? (w(), i(
|
|
1829
|
+
}), (t, n) => u.value ? (w(), i(ut, {
|
|
1830
1830
|
key: 0,
|
|
1831
1831
|
minimal: "",
|
|
1832
1832
|
"model-value": d.value,
|
|
1833
1833
|
"onUpdate:modelValue": h
|
|
1834
1834
|
}, {
|
|
1835
|
-
trigger: K(() => [l(
|
|
1835
|
+
trigger: K(() => [l(pn, {
|
|
1836
1836
|
ref_key: "triggerButtonRef",
|
|
1837
1837
|
ref: f,
|
|
1838
1838
|
id: S.value,
|
|
@@ -1855,9 +1855,9 @@ var ln = [
|
|
|
1855
1855
|
ref_key: "popoverMenuRef",
|
|
1856
1856
|
ref: m,
|
|
1857
1857
|
class: "g-hamburger-popover"
|
|
1858
|
-
}, [A(t.$slots, "default")], 8,
|
|
1858
|
+
}, [A(t.$slots, "default")], 8, mn)]),
|
|
1859
1859
|
_: 3
|
|
1860
|
-
}, 8, ["model-value"])) : (w(), i(
|
|
1860
|
+
}, 8, ["model-value"])) : (w(), i(pn, {
|
|
1861
1861
|
key: 1,
|
|
1862
1862
|
ref_key: "triggerButtonRef",
|
|
1863
1863
|
ref: f,
|
|
@@ -1878,16 +1878,16 @@ var ln = [
|
|
|
1878
1878
|
"collapsible"
|
|
1879
1879
|
]));
|
|
1880
1880
|
}
|
|
1881
|
-
}),
|
|
1881
|
+
}), gn = { class: "g-app-header__brand" }, _n = {
|
|
1882
1882
|
class: "g-app-header__brand-text",
|
|
1883
1883
|
href: "/"
|
|
1884
|
-
},
|
|
1884
|
+
}, vn = {
|
|
1885
1885
|
key: 0,
|
|
1886
1886
|
class: "g-app-header__block-i-container"
|
|
1887
|
-
},
|
|
1887
|
+
}, yn = { class: "g-app-header__title" }, bn = ["aria-label"], xn = ["aria-label"], Sn = {
|
|
1888
1888
|
key: 4,
|
|
1889
1889
|
class: "g-app-header__app-controls-wrap"
|
|
1890
|
-
},
|
|
1890
|
+
}, Cn = /* @__PURE__ */ u({
|
|
1891
1891
|
__name: "GAppHeader",
|
|
1892
1892
|
props: {
|
|
1893
1893
|
illinois: {
|
|
@@ -1899,15 +1899,15 @@ var ln = [
|
|
|
1899
1899
|
navigationMediaQuery: { default: "(max-width: 800px)" }
|
|
1900
1900
|
},
|
|
1901
1901
|
setup(e) {
|
|
1902
|
-
let t =
|
|
1902
|
+
let t = le(I(e, "navigationMediaQuery"), { ssrWidth: 1e3 }), n = U("desktopNavigationRef"), r = U("mobileNavigationRef");
|
|
1903
1903
|
function c() {
|
|
1904
|
-
return
|
|
1904
|
+
return tt(n.value);
|
|
1905
1905
|
}
|
|
1906
1906
|
function l(e) {
|
|
1907
1907
|
e < 0 || c()[e]?.focus();
|
|
1908
1908
|
}
|
|
1909
1909
|
return W(t, async (e) => {
|
|
1910
|
-
let t = e ?
|
|
1910
|
+
let t = e ? nt(c()) : r.value?.getFocusedItemIndex() ?? -1;
|
|
1911
1911
|
if (t !== -1) {
|
|
1912
1912
|
if (e) {
|
|
1913
1913
|
if (t < 0) return;
|
|
@@ -1916,8 +1916,8 @@ var ln = [
|
|
|
1916
1916
|
}
|
|
1917
1917
|
}), (c, l) => (w(), o("header", { class: _(["g-app-header", { "g-app-header--no-app-controls": !c.$slots["app-controls"] }]) }, [
|
|
1918
1918
|
l[1] ||= s("div", { class: "g-app-header__background" }, [s("div", { class: "g-app-header__background-pattern" }), s("div", { class: "g-app-header__background-gradient" })], -1),
|
|
1919
|
-
s("div",
|
|
1920
|
-
e.illinois ? (w(), o("div",
|
|
1919
|
+
s("div", gn, [A(c.$slots, "left", {}, () => [s("a", _n, P(e.brand), 1)])]),
|
|
1920
|
+
e.illinois ? (w(), o("div", vn, [...l[0] ||= [s("svg", {
|
|
1921
1921
|
class: "g-app-header__block-i",
|
|
1922
1922
|
role: "img",
|
|
1923
1923
|
width: "55",
|
|
@@ -1934,14 +1934,14 @@ var ln = [
|
|
|
1934
1934
|
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"
|
|
1935
1935
|
})
|
|
1936
1936
|
], -1)]])) : A(c.$slots, "icon", {}, void 0, void 0, 1),
|
|
1937
|
-
s("div",
|
|
1937
|
+
s("div", yn, [A(c.$slots, "title")]),
|
|
1938
1938
|
c.$slots.navigation && !R(t) ? (w(), o("nav", {
|
|
1939
1939
|
key: 2,
|
|
1940
1940
|
ref_key: "desktopNavigationRef",
|
|
1941
1941
|
ref: n,
|
|
1942
1942
|
class: "g-app-header__navigation",
|
|
1943
1943
|
"aria-label": e.navigationLabel
|
|
1944
|
-
}, [A(c.$slots, "navigation")], 8,
|
|
1944
|
+
}, [A(c.$slots, "navigation")], 8, bn)) : c.$slots.navigation ? (w(), i(hn, {
|
|
1945
1945
|
key: 3,
|
|
1946
1946
|
ref_key: "mobileNavigationRef",
|
|
1947
1947
|
ref: r,
|
|
@@ -1952,16 +1952,16 @@ var ln = [
|
|
|
1952
1952
|
default: K(() => [s("nav", {
|
|
1953
1953
|
class: "g-app-header__navigation-popover",
|
|
1954
1954
|
"aria-label": e.navigationLabel
|
|
1955
|
-
}, [A(c.$slots, "navigation")], 8,
|
|
1955
|
+
}, [A(c.$slots, "navigation")], 8, xn)]),
|
|
1956
1956
|
_: 3
|
|
1957
1957
|
}, 8, ["label"])) : a("", !0),
|
|
1958
|
-
c.$slots["app-controls"] ? (w(), o("div",
|
|
1958
|
+
c.$slots["app-controls"] ? (w(), o("div", Sn, [A(c.$slots, "app-controls")])) : a("", !0)
|
|
1959
1959
|
], 2));
|
|
1960
1960
|
}
|
|
1961
1961
|
});
|
|
1962
1962
|
// src/compose/useScrollRestore.ts
|
|
1963
|
-
function
|
|
1964
|
-
let n = t ?
|
|
1963
|
+
function wn(e, t) {
|
|
1964
|
+
let n = t ? fe(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
1965
1965
|
function c(e) {
|
|
1966
1966
|
let t = window.getComputedStyle(e);
|
|
1967
1967
|
return t.overflowY === "auto" || t.overflowY === "scroll";
|
|
@@ -2016,7 +2016,7 @@ function Sn(e, t) {
|
|
|
2016
2016
|
}), { isPendingScrollRestore: r };
|
|
2017
2017
|
}
|
|
2018
2018
|
// src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2019
|
-
var
|
|
2019
|
+
var Tn = ["id"], En = /* @__PURE__ */ u({
|
|
2020
2020
|
__name: "GSidebar",
|
|
2021
2021
|
props: {
|
|
2022
2022
|
backgroundColor: { default: "" },
|
|
@@ -2030,7 +2030,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2030
2030
|
storageKey: {}
|
|
2031
2031
|
},
|
|
2032
2032
|
setup(e) {
|
|
2033
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (
|
|
2033
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (Q() ? un(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "var(--g-sidebar-background-image, none)"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = B(), { isPendingScrollRestore: l } = wn(U("sidebar-ref"), t.storageKey);
|
|
2034
2034
|
function u(e) {
|
|
2035
2035
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
2036
2036
|
}
|
|
@@ -2051,13 +2051,13 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2051
2051
|
width: "var(--g-sidebar-width)"
|
|
2052
2052
|
}),
|
|
2053
2053
|
onKeydown: u
|
|
2054
|
-
}, [A(t.$slots, "default")], 46,
|
|
2054
|
+
}, [A(t.$slots, "default")], 46, Tn));
|
|
2055
2055
|
}
|
|
2056
|
-
}),
|
|
2056
|
+
}), Dn = ["id"], On = { class: "g-sidebar-menu__list" }, kn = [
|
|
2057
2057
|
"href",
|
|
2058
2058
|
"aria-current",
|
|
2059
2059
|
"onClick"
|
|
2060
|
-
],
|
|
2060
|
+
], An = /* @__PURE__ */ u({
|
|
2061
2061
|
__name: "GSidebarMenu",
|
|
2062
2062
|
props: /*@__PURE__*/ m({
|
|
2063
2063
|
heading: {},
|
|
@@ -2105,13 +2105,13 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2105
2105
|
key: 0,
|
|
2106
2106
|
id: R(y),
|
|
2107
2107
|
class: "g-sidebar-menu__title"
|
|
2108
|
-
}, P(t.heading), 9,
|
|
2108
|
+
}, P(t.heading), 9, Dn)) : a("", !0),
|
|
2109
2109
|
l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
2110
2110
|
s("div", {
|
|
2111
2111
|
class: "g-sidebar-menu__content",
|
|
2112
2112
|
ref_key: "content",
|
|
2113
2113
|
ref: f
|
|
2114
|
-
}, [s("ul",
|
|
2114
|
+
}, [s("ul", On, [(w(!0), o(e, null, k(t.items, (e) => (w(), o("li", {
|
|
2115
2115
|
key: e.href || e.to,
|
|
2116
2116
|
class: "g-sidebar-menu__item",
|
|
2117
2117
|
ref_for: !0,
|
|
@@ -2129,24 +2129,24 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2129
2129
|
href: e.href || e.to || "#",
|
|
2130
2130
|
"aria-current": u.value === (e.href || "") ? "location" : void 0,
|
|
2131
2131
|
onClick: (t) => v(t, e)
|
|
2132
|
-
}, P(e.label), 11,
|
|
2132
|
+
}, P(e.label), 11, kn))]))), 128))])], 512)
|
|
2133
2133
|
], 16));
|
|
2134
2134
|
}
|
|
2135
|
-
}),
|
|
2135
|
+
}), jn = {
|
|
2136
2136
|
mounted(e, t) {
|
|
2137
|
-
let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c =
|
|
2138
|
-
n.value || (n.value =
|
|
2139
|
-
n.value && (r.value || i.value) &&
|
|
2137
|
+
let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = pt(e), l = () => {
|
|
2138
|
+
n.value || (n.value = mt(a.value, c), ht(n.value), o = new ResizeObserver(() => {
|
|
2139
|
+
n.value && (r.value || i.value) && gt(e, n.value);
|
|
2140
2140
|
}), o.observe(n.value));
|
|
2141
2141
|
};
|
|
2142
2142
|
G(() => {
|
|
2143
2143
|
n.value && (n.value.textContent = a.value);
|
|
2144
2144
|
});
|
|
2145
2145
|
let u = () => {
|
|
2146
|
-
n.value && (r.value || i.value) &&
|
|
2146
|
+
n.value && (r.value || i.value) && gt(e, n.value);
|
|
2147
2147
|
};
|
|
2148
2148
|
G(() => {
|
|
2149
|
-
r.value || i.value ? (l(), n.value &&
|
|
2149
|
+
r.value || i.value ? (l(), n.value && gt(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (_t(n.value), setTimeout(() => {
|
|
2150
2150
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
2151
2151
|
}, 150)));
|
|
2152
2152
|
});
|
|
@@ -2184,7 +2184,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2184
2184
|
let t = e._v_gtooltip;
|
|
2185
2185
|
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");
|
|
2186
2186
|
}
|
|
2187
|
-
},
|
|
2187
|
+
}, Mn = { class: "g-clipboard-text" }, Nn = /* @__PURE__ */ u({
|
|
2188
2188
|
__name: "GClipboard",
|
|
2189
2189
|
props: {
|
|
2190
2190
|
text: {},
|
|
@@ -2192,12 +2192,12 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2192
2192
|
copyLabel: {}
|
|
2193
2193
|
},
|
|
2194
2194
|
setup(t) {
|
|
2195
|
-
let n = t, r =
|
|
2195
|
+
let n = t, r = jn, { text: i, copy: l, copied: u, isSupported: d } = ae({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2196
2196
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2197
2197
|
}, m = () => {
|
|
2198
2198
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
2199
2199
|
};
|
|
2200
|
-
return (i, l) => (w(), o("div",
|
|
2200
|
+
return (i, l) => (w(), o("div", Mn, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(P(n.text), 1)], 64)), te((w(), o("button", {
|
|
2201
2201
|
type: "button",
|
|
2202
2202
|
"aria-label": "Copy",
|
|
2203
2203
|
onClick: p,
|
|
@@ -2214,15 +2214,15 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2214
2214
|
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"
|
|
2215
2215
|
})], -1)]], 32)), [[R(r), f.value]])]));
|
|
2216
2216
|
}
|
|
2217
|
-
}),
|
|
2217
|
+
}), Pn = { class: "g-history-scroller-wrapper" }, Fn = {
|
|
2218
2218
|
key: 0,
|
|
2219
2219
|
class: "g-history-shadow g-history-shadow--top",
|
|
2220
2220
|
"aria-hidden": "true"
|
|
2221
|
-
},
|
|
2221
|
+
}, In = {
|
|
2222
2222
|
key: 1,
|
|
2223
2223
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
2224
2224
|
"aria-hidden": "true"
|
|
2225
|
-
},
|
|
2225
|
+
}, Ln = ["role", "aria-label"], Rn = /* @__PURE__ */ u({
|
|
2226
2226
|
__name: "GHistoryScroller",
|
|
2227
2227
|
props: {
|
|
2228
2228
|
label: {},
|
|
@@ -2246,17 +2246,17 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2246
2246
|
}
|
|
2247
2247
|
x(() => {
|
|
2248
2248
|
g(f);
|
|
2249
|
-
}),
|
|
2249
|
+
}), de(i, () => {
|
|
2250
2250
|
u.value && f();
|
|
2251
|
-
}),
|
|
2251
|
+
}), de(c, () => {
|
|
2252
2252
|
u.value && f();
|
|
2253
2253
|
}), W(() => n.entries, async () => {
|
|
2254
2254
|
u.value && (await g(), f());
|
|
2255
2255
|
});
|
|
2256
2256
|
let m = r(() => [...n.entries].reverse());
|
|
2257
|
-
return (n, r) => (w(), o("div",
|
|
2258
|
-
d.value ? a("", !0) : (w(), o("div",
|
|
2259
|
-
u.value ? a("", !0) : (w(), o("div",
|
|
2257
|
+
return (n, r) => (w(), o("div", Pn, [
|
|
2258
|
+
d.value ? a("", !0) : (w(), o("div", Fn)),
|
|
2259
|
+
u.value ? a("", !0) : (w(), o("div", In)),
|
|
2260
2260
|
s("div", {
|
|
2261
2261
|
ref_key: "scrollerRef",
|
|
2262
2262
|
ref: i,
|
|
@@ -2264,7 +2264,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2264
2264
|
role: t.label ? "log" : void 0,
|
|
2265
2265
|
"aria-label": t.label,
|
|
2266
2266
|
onScroll: p
|
|
2267
|
-
}, [l(
|
|
2267
|
+
}, [l($, {
|
|
2268
2268
|
class: _(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": u.value }]),
|
|
2269
2269
|
size: "small",
|
|
2270
2270
|
type: "button",
|
|
@@ -2291,31 +2291,31 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2291
2291
|
key: e.id,
|
|
2292
2292
|
class: "g-history-entry",
|
|
2293
2293
|
tabindex: "-1"
|
|
2294
|
-
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40,
|
|
2294
|
+
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Ln)
|
|
2295
2295
|
]));
|
|
2296
2296
|
}
|
|
2297
|
-
}),
|
|
2297
|
+
}), zn = { class: "g-three-way-toggle-wrapper" }, Bn = { class: "g-three-way-toggle-control" }, Vn = ["id"], Hn = [
|
|
2298
2298
|
"aria-labelledby",
|
|
2299
2299
|
"aria-describedby",
|
|
2300
2300
|
"disabled",
|
|
2301
2301
|
"aria-invalid",
|
|
2302
2302
|
"aria-errormessage"
|
|
2303
|
-
],
|
|
2303
|
+
], Un = { key: 0 }, Wn = { key: 1 }, Gn = { key: 2 }, Kn = ["for"], qn = [
|
|
2304
2304
|
"id",
|
|
2305
2305
|
"name",
|
|
2306
2306
|
"checked",
|
|
2307
2307
|
"disabled"
|
|
2308
|
-
],
|
|
2308
|
+
], Jn = ["for"], Yn = [
|
|
2309
2309
|
"id",
|
|
2310
2310
|
"name",
|
|
2311
2311
|
"checked",
|
|
2312
2312
|
"disabled"
|
|
2313
|
-
],
|
|
2313
|
+
], Xn = ["for"], Zn = [
|
|
2314
2314
|
"id",
|
|
2315
2315
|
"name",
|
|
2316
2316
|
"checked",
|
|
2317
2317
|
"disabled"
|
|
2318
|
-
],
|
|
2318
|
+
], Qn = ["id"], $n = /* @__PURE__ */ u({
|
|
2319
2319
|
__name: "GThreeWayToggle",
|
|
2320
2320
|
props: /*@__PURE__*/ m({
|
|
2321
2321
|
label: {},
|
|
@@ -2349,10 +2349,10 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2349
2349
|
function b(e) {
|
|
2350
2350
|
n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
|
|
2351
2351
|
}
|
|
2352
|
-
return (t, n) => (w(), o("div",
|
|
2352
|
+
return (t, n) => (w(), o("div", zn, [s("div", Bn, [s("span", {
|
|
2353
2353
|
class: "g-label",
|
|
2354
2354
|
id: R(p)
|
|
2355
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
2355
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Vn), s("fieldset", {
|
|
2356
2356
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2357
2357
|
role: "radiogroup",
|
|
2358
2358
|
"aria-labelledby": R(p),
|
|
@@ -2364,7 +2364,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2364
2364
|
s("span", {
|
|
2365
2365
|
class: _(["g-toggle-thumb", y.value]),
|
|
2366
2366
|
"aria-hidden": "true"
|
|
2367
|
-
}, [i.value === !1 ? (w(), o("span",
|
|
2367
|
+
}, [i.value === !1 ? (w(), o("span", Un, "NO")) : i.value === !0 ? (w(), o("span", Wn, "YES")) : (w(), o("span", Gn))], 2),
|
|
2368
2368
|
s("label", {
|
|
2369
2369
|
for: R(h),
|
|
2370
2370
|
class: "g-toggle-option g-left",
|
|
@@ -2378,7 +2378,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2378
2378
|
value: "false",
|
|
2379
2379
|
disabled: e.disabled,
|
|
2380
2380
|
onChange: n[0] ||= (e) => d(!1)
|
|
2381
|
-
}, null, 40,
|
|
2381
|
+
}, null, 40, qn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, Kn),
|
|
2382
2382
|
s("label", {
|
|
2383
2383
|
for: R(g),
|
|
2384
2384
|
class: "g-toggle-option g-center",
|
|
@@ -2390,7 +2390,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2390
2390
|
checked: i.value === null,
|
|
2391
2391
|
disabled: e.disabled,
|
|
2392
2392
|
onChange: n[2] ||= (e) => d(null)
|
|
2393
|
-
}, null, 40,
|
|
2393
|
+
}, null, 40, Yn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Jn),
|
|
2394
2394
|
s("label", {
|
|
2395
2395
|
for: R(v),
|
|
2396
2396
|
class: "g-toggle-option g-right",
|
|
@@ -2404,54 +2404,54 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2404
2404
|
checked: i.value === !0,
|
|
2405
2405
|
disabled: e.disabled,
|
|
2406
2406
|
onChange: n[3] ||= (e) => d(!0)
|
|
2407
|
-
}, null, 40,
|
|
2408
|
-
], 2)], 10,
|
|
2407
|
+
}, null, 40, Zn), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Xn)
|
|
2408
|
+
], 2)], 10, Hn)]), e.error ? (w(), o("div", {
|
|
2409
2409
|
key: 0,
|
|
2410
2410
|
id: `${R(p)}-error`,
|
|
2411
2411
|
class: "g-form-error",
|
|
2412
2412
|
role: "alert",
|
|
2413
2413
|
"aria-atomic": "true"
|
|
2414
|
-
}, P(e.error), 9,
|
|
2414
|
+
}, P(e.error), 9, Qn)) : a("", !0)]));
|
|
2415
2415
|
}
|
|
2416
|
-
}),
|
|
2416
|
+
}), er = {
|
|
2417
2417
|
ref: "tableBodyRef",
|
|
2418
2418
|
class: "efficient-table-body"
|
|
2419
|
-
},
|
|
2419
|
+
}, tr = ["aria-rowindex"], nr = {
|
|
2420
2420
|
key: 0,
|
|
2421
2421
|
class: "table-group-checkbox"
|
|
2422
|
-
},
|
|
2422
|
+
}, rr = ["colspan"], ir = [
|
|
2423
2423
|
"aria-rowindex",
|
|
2424
2424
|
"onMousedown",
|
|
2425
2425
|
"onClick"
|
|
2426
|
-
],
|
|
2426
|
+
], ar = [
|
|
2427
2427
|
"checked",
|
|
2428
2428
|
"onClick",
|
|
2429
2429
|
"aria-label",
|
|
2430
2430
|
"name"
|
|
2431
|
-
],
|
|
2431
|
+
], or = ["id"], sr = {
|
|
2432
2432
|
key: 0,
|
|
2433
2433
|
class: "editable-cell"
|
|
2434
|
-
},
|
|
2434
|
+
}, cr = {
|
|
2435
2435
|
key: 0,
|
|
2436
2436
|
class: "cell-prefix"
|
|
2437
|
-
},
|
|
2437
|
+
}, lr = [
|
|
2438
2438
|
"value",
|
|
2439
2439
|
"onChange",
|
|
2440
2440
|
"aria-labelledby",
|
|
2441
2441
|
"aria-invalid",
|
|
2442
2442
|
"aria-errormessage",
|
|
2443
2443
|
"name"
|
|
2444
|
-
],
|
|
2444
|
+
], ur = ["value"], dr = [
|
|
2445
2445
|
"value",
|
|
2446
2446
|
"onInput",
|
|
2447
2447
|
"aria-labelledby",
|
|
2448
2448
|
"aria-invalid",
|
|
2449
2449
|
"aria-errormessage",
|
|
2450
2450
|
"name"
|
|
2451
|
-
],
|
|
2451
|
+
], fr = {
|
|
2452
2452
|
key: 3,
|
|
2453
2453
|
class: "cell-suffix"
|
|
2454
|
-
},
|
|
2454
|
+
}, pr = ["id"], mr = /* @__PURE__ */ u({
|
|
2455
2455
|
__name: "GTableBody",
|
|
2456
2456
|
props: {
|
|
2457
2457
|
data: {},
|
|
@@ -2524,13 +2524,13 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2524
2524
|
function E(e, t) {
|
|
2525
2525
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2526
2526
|
}
|
|
2527
|
-
return (n, r) => (w(), o("tbody",
|
|
2527
|
+
return (n, r) => (w(), o("tbody", er, [(w(!0), o(e, null, k(t.data, (n, l) => (w(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (w(), o("tr", {
|
|
2528
2528
|
key: 0,
|
|
2529
2529
|
"aria-rowindex": t.startIndex + l + 2
|
|
2530
|
-
}, [t.bulkSelectionEnabled ? (w(), o("td",
|
|
2530
|
+
}, [t.bulkSelectionEnabled ? (w(), o("td", nr)) : a("", !0), s("td", {
|
|
2531
2531
|
colspan: x.value,
|
|
2532
2532
|
class: "table-group-row"
|
|
2533
|
-
}, [t.groupRender ? (w(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8,
|
|
2533
|
+
}, [t.groupRender ? (w(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8, rr)], 8, tr)) : a("", !0), s("tr", {
|
|
2534
2534
|
class: _([
|
|
2535
2535
|
"efficient-table-row",
|
|
2536
2536
|
{
|
|
@@ -2553,7 +2553,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2553
2553
|
"aria-label": `Select row ${n.key}`,
|
|
2554
2554
|
name: `row-${n.key}-checkbox`,
|
|
2555
2555
|
class: "g-bulk-select-checkbox"
|
|
2556
|
-
}, null, 8,
|
|
2556
|
+
}, null, 8, ar)])) : a("", !0), (w(!0), o(e, null, k(t.columns, (r) => (w(), o("td", {
|
|
2557
2557
|
key: r.key,
|
|
2558
2558
|
id: S(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2559
2559
|
class: _([
|
|
@@ -2562,8 +2562,8 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2562
2562
|
T(n, r) ? "g-cell-error" : "",
|
|
2563
2563
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2564
2564
|
])
|
|
2565
|
-
}, [r.editable ? (w(), o("div",
|
|
2566
|
-
r.editable.prefix ? (w(), o("span",
|
|
2565
|
+
}, [r.editable ? (w(), o("div", sr, [
|
|
2566
|
+
r.editable.prefix ? (w(), o("span", cr, P(r.editable.prefix), 1)) : a("", !0),
|
|
2567
2567
|
r.editable.type === "select" ? (w(), o("select", {
|
|
2568
2568
|
key: 1,
|
|
2569
2569
|
value: n[r.key],
|
|
@@ -2576,7 +2576,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2576
2576
|
}, [(w(!0), o(e, null, k(r.editable.options, (e) => (w(), o("option", {
|
|
2577
2577
|
key: e.value,
|
|
2578
2578
|
value: e.value
|
|
2579
|
-
}, P(e.label), 9,
|
|
2579
|
+
}, P(e.label), 9, ur))), 128))], 40, lr)) : (w(), o("input", h({
|
|
2580
2580
|
key: 2,
|
|
2581
2581
|
value: n[r.key]
|
|
2582
2582
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
@@ -2590,36 +2590,36 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2590
2590
|
paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
|
|
2591
2591
|
paddingRight: r.editable.suffix ? "2rem" : void 0
|
|
2592
2592
|
}
|
|
2593
|
-
}), null, 16,
|
|
2594
|
-
r.editable.suffix ? (w(), o("span",
|
|
2593
|
+
}), null, 16, dr)),
|
|
2594
|
+
r.editable.suffix ? (w(), o("span", fr, P(r.editable.suffix), 1)) : a("", !0)
|
|
2595
2595
|
])) : r.display ? (w(), i(j(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), T(n, r) ? (w(), o("div", {
|
|
2596
2596
|
key: 3,
|
|
2597
2597
|
role: "alert",
|
|
2598
2598
|
class: "g-cell-error-message",
|
|
2599
2599
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2600
|
-
}, P(E(n, r)), 9,
|
|
2600
|
+
}, P(E(n, r)), 9, pr)) : a("", !0)], 10, or))), 128))], 42, ir)], 64))), 128))], 512));
|
|
2601
2601
|
}
|
|
2602
2602
|
});
|
|
2603
2603
|
// src/components/table/columnFilters.ts
|
|
2604
|
-
function
|
|
2604
|
+
function hr(e) {
|
|
2605
2605
|
return e.filter?.key ?? e.key;
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2607
|
+
function gr(e) {
|
|
2608
2608
|
return e == null || e === "";
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2610
|
+
function _r(e, t) {
|
|
2611
2611
|
let n = e.find((e) => e.value === t);
|
|
2612
2612
|
if (n) return n.value;
|
|
2613
2613
|
let r = String(t), i = e.find((e) => String(e.value) === r);
|
|
2614
2614
|
return i ? i.value : t;
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2617
|
-
return
|
|
2616
|
+
function vr(e) {
|
|
2617
|
+
return gr(e) ? "" : Array.isArray(e) ? e.join(",") : String(e);
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2620
|
-
return
|
|
2619
|
+
function yr(e) {
|
|
2620
|
+
return gr(e) ? [] : (Array.isArray(e) ? e : [e]).filter((e) => !gr(e));
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function br(e, t) {
|
|
2623
2623
|
switch (t) {
|
|
2624
2624
|
case "contains": return `%${e}%`;
|
|
2625
2625
|
case "startsWith": return `${e}%`;
|
|
@@ -2627,57 +2627,57 @@ function vr(e, t) {
|
|
|
2627
2627
|
default: return e;
|
|
2628
2628
|
}
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2630
|
+
function xr(e, t) {
|
|
2631
2631
|
switch (e.type) {
|
|
2632
|
-
case "search": return
|
|
2632
|
+
case "search": return vr(t);
|
|
2633
2633
|
case "select": {
|
|
2634
|
-
if (
|
|
2634
|
+
if (gr(t) || Array.isArray(t) && t.length === 0) return;
|
|
2635
2635
|
let n = Array.isArray(t) ? t.join(",") : t;
|
|
2636
|
-
return
|
|
2636
|
+
return _r(e.options, n);
|
|
2637
2637
|
}
|
|
2638
|
-
case "multi-select": return
|
|
2638
|
+
case "multi-select": return yr(t).map((t) => _r(e.options, t));
|
|
2639
2639
|
case "toggle": return t === !0 || t === "true";
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
-
function
|
|
2642
|
+
function Sr(e, t) {
|
|
2643
2643
|
switch (e.type) {
|
|
2644
2644
|
case "search": return typeof t == "string" && t !== "" ? t : void 0;
|
|
2645
|
-
case "select": return
|
|
2645
|
+
case "select": return gr(t) ? void 0 : t;
|
|
2646
2646
|
case "multi-select": return Array.isArray(t) ? [...t] : void 0;
|
|
2647
2647
|
case "toggle": return t === !0 || void 0;
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2651
|
-
let n =
|
|
2652
|
-
return Array.isArray(n) ? n.length > 0 : e.type === "toggle" ? n === !0 : !
|
|
2650
|
+
function Cr(e, t) {
|
|
2651
|
+
let n = xr(e, t);
|
|
2652
|
+
return Array.isArray(n) ? n.length > 0 : e.type === "toggle" ? n === !0 : !gr(n);
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2654
|
+
function wr(e, t) {
|
|
2655
2655
|
switch (e.type) {
|
|
2656
2656
|
case "search": {
|
|
2657
|
-
let n =
|
|
2658
|
-
return n ? e.transform ? e.transform(n) :
|
|
2657
|
+
let n = vr(t).trim();
|
|
2658
|
+
return n ? e.transform ? e.transform(n) : br(n, e.match ?? "exact") : void 0;
|
|
2659
2659
|
}
|
|
2660
2660
|
case "select": {
|
|
2661
|
-
let n =
|
|
2662
|
-
return
|
|
2661
|
+
let n = xr(e, t);
|
|
2662
|
+
return gr(n) || Array.isArray(n) ? void 0 : e.transform ? e.transform(n) : n;
|
|
2663
2663
|
}
|
|
2664
2664
|
case "multi-select": {
|
|
2665
|
-
let n =
|
|
2665
|
+
let n = yr(t).map((t) => _r(e.options, t));
|
|
2666
2666
|
return n.length === 0 ? void 0 : e.transform ? e.transform(n) : n;
|
|
2667
2667
|
}
|
|
2668
|
-
case "toggle": return
|
|
2668
|
+
case "toggle": return xr(e, t) === !0 ? !e.transform || e.transform(!0) : void 0;
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
2671
|
// src/components/GMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
2672
|
-
var
|
|
2672
|
+
var Tr = ["id", "for"], Er = {
|
|
2673
2673
|
key: 0,
|
|
2674
2674
|
class: "g-multiselect-required",
|
|
2675
2675
|
"aria-hidden": "true"
|
|
2676
|
-
},
|
|
2676
|
+
}, Dr = ["id"], Or = ["aria-labelledby"], kr = { class: "g-multiselect-chip-label" }, Ar = [
|
|
2677
2677
|
"aria-label",
|
|
2678
2678
|
"disabled",
|
|
2679
2679
|
"onClick"
|
|
2680
|
-
],
|
|
2680
|
+
], jr = [
|
|
2681
2681
|
"id",
|
|
2682
2682
|
"value",
|
|
2683
2683
|
"placeholder",
|
|
@@ -2687,26 +2687,26 @@ var Cr = ["id", "for"], wr = {
|
|
|
2687
2687
|
"aria-activedescendant",
|
|
2688
2688
|
"aria-describedby",
|
|
2689
2689
|
"aria-required"
|
|
2690
|
-
],
|
|
2690
|
+
], Mr = ["id"], Nr = [
|
|
2691
2691
|
"id",
|
|
2692
2692
|
"aria-selected",
|
|
2693
2693
|
"onClick"
|
|
2694
|
-
],
|
|
2694
|
+
], Pr = {
|
|
2695
2695
|
class: "g-multiselect-option-check",
|
|
2696
2696
|
"aria-hidden": "true"
|
|
2697
|
-
},
|
|
2697
|
+
}, Fr = {
|
|
2698
2698
|
key: 0,
|
|
2699
2699
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2700
2700
|
viewBox: "0 0 640 640",
|
|
2701
2701
|
width: "1.25em"
|
|
2702
|
-
},
|
|
2702
|
+
}, Ir = { class: "g-multiselect-option-text" }, Lr = { class: "g-multiselect-option-label" }, Rr = {
|
|
2703
2703
|
key: 0,
|
|
2704
2704
|
class: "g-multiselect-option-description"
|
|
2705
|
-
},
|
|
2705
|
+
}, zr = {
|
|
2706
2706
|
key: 1,
|
|
2707
2707
|
"aria-live": "polite",
|
|
2708
2708
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
2709
|
-
},
|
|
2709
|
+
}, Br = /* @__PURE__ */ u({
|
|
2710
2710
|
__name: "GMultiSelect",
|
|
2711
2711
|
props: /*@__PURE__*/ m({
|
|
2712
2712
|
options: {},
|
|
@@ -2738,18 +2738,18 @@ var Cr = ["id", "for"], wr = {
|
|
|
2738
2738
|
}),
|
|
2739
2739
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
2740
2740
|
setup(t, { emit: n }) {
|
|
2741
|
-
let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(""), S = O(!1), { displayErrors: C, hasErrors: T } =
|
|
2741
|
+
let i = t, u = n, d = V(t, "modelValue"), f = B(), p = O(null), m = O(null), v = O(null), y = O(!1), b = O(0), x = O(""), S = O(!1), { displayErrors: C, hasErrors: T } = Me({
|
|
2742
2742
|
name: i.name,
|
|
2743
2743
|
value: d,
|
|
2744
2744
|
errors: I(i, "errors"),
|
|
2745
2745
|
formKey: i.formKey
|
|
2746
|
-
}), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } =
|
|
2746
|
+
}), { menuPlacement: E, menuStyle: D, isTop: A, scrollOptionIntoView: j } = Rt({
|
|
2747
2747
|
open: y,
|
|
2748
2748
|
anchorRef: m,
|
|
2749
2749
|
listboxRef: v,
|
|
2750
2750
|
baseId: f,
|
|
2751
2751
|
activeIndex: b
|
|
2752
|
-
}), M = r(() =>
|
|
2752
|
+
}), M = r(() => Lt(i.options)), N = r(() => {
|
|
2753
2753
|
if (!x.value) return M.value;
|
|
2754
2754
|
let e = x.value.toLowerCase();
|
|
2755
2755
|
return M.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
|
|
@@ -2842,12 +2842,12 @@ var Cr = ["id", "for"], wr = {
|
|
|
2842
2842
|
id: X.value,
|
|
2843
2843
|
for: Y.value,
|
|
2844
2844
|
class: "g-multiselect-label"
|
|
2845
|
-
}, [c(P(t.label), 1), t.required ? (w(), o("span",
|
|
2845
|
+
}, [c(P(t.label), 1), t.required ? (w(), o("span", Er, " *")) : a("", !0)], 8, Tr)),
|
|
2846
2846
|
t.instructions ? (w(), o("div", {
|
|
2847
2847
|
key: 1,
|
|
2848
2848
|
id: oe.value,
|
|
2849
2849
|
class: "g-multiselect-instructions"
|
|
2850
|
-
}, P(t.instructions), 9,
|
|
2850
|
+
}, P(t.instructions), 9, Dr)) : a("", !0),
|
|
2851
2851
|
s("div", {
|
|
2852
2852
|
ref_key: "controlRef",
|
|
2853
2853
|
ref: m,
|
|
@@ -2861,7 +2861,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2861
2861
|
}, [(w(!0), o(e, null, k(d.value, (e) => (w(), o("li", {
|
|
2862
2862
|
key: e,
|
|
2863
2863
|
class: "g-multiselect-chip"
|
|
2864
|
-
}, [s("span",
|
|
2864
|
+
}, [s("span", kr, P(L(e)), 1), s("button", {
|
|
2865
2865
|
type: "button",
|
|
2866
2866
|
class: "g-multiselect-chip-remove",
|
|
2867
2867
|
"aria-label": `Remove ${L(e)}`,
|
|
@@ -2876,7 +2876,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2876
2876
|
}, [s("path", {
|
|
2877
2877
|
fill: "currentColor",
|
|
2878
2878
|
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"
|
|
2879
|
-
})], -1)]], 40,
|
|
2879
|
+
})], -1)]], 40, Ar)]))), 128))], 8, Or)) : a("", !0),
|
|
2880
2880
|
s("input", h({
|
|
2881
2881
|
ref_key: "inputRef",
|
|
2882
2882
|
ref: p,
|
|
@@ -2900,7 +2900,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2900
2900
|
onKeydown: ae,
|
|
2901
2901
|
onFocus: ne,
|
|
2902
2902
|
onBlur: re
|
|
2903
|
-
}), null, 16,
|
|
2903
|
+
}), null, 16, jr),
|
|
2904
2904
|
r[2] ||= s("svg", {
|
|
2905
2905
|
class: "g-multiselect-caret",
|
|
2906
2906
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2932,29 +2932,29 @@ var Cr = ["id", "for"], wr = {
|
|
|
2932
2932
|
"aria-selected": F(e.value) ? "true" : "false",
|
|
2933
2933
|
onMousedown: ie,
|
|
2934
2934
|
onClick: (e) => U(t)
|
|
2935
|
-
}, [s("span",
|
|
2935
|
+
}, [s("span", Pr, [F(e.value) ? (w(), o("svg", Fr, [...r[1] ||= [s("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)]])) : a("", !0)]), s("span", Ir, [s("span", Lr, P(e.label), 1), e.description ? (w(), o("span", Rr, P(e.description), 1)) : a("", !0)])], 42, Nr))), 128)) : (w(), o("div", zr, " No results found. "))], 16, Mr), [[ee, y.value]])
|
|
2936
2936
|
], 2),
|
|
2937
|
-
l(
|
|
2937
|
+
l(Pe, {
|
|
2938
2938
|
errors: R(C),
|
|
2939
2939
|
id: se.value
|
|
2940
2940
|
}, null, 8, ["errors", "id"])
|
|
2941
2941
|
], 2));
|
|
2942
2942
|
}
|
|
2943
|
-
}),
|
|
2943
|
+
}), Vr = {
|
|
2944
2944
|
key: 0,
|
|
2945
2945
|
class: "g-checkbox-group__legend"
|
|
2946
|
-
},
|
|
2946
|
+
}, Hr = {
|
|
2947
2947
|
key: 0,
|
|
2948
2948
|
class: "g-checkbox-group__required",
|
|
2949
2949
|
"aria-hidden": "true"
|
|
2950
|
-
},
|
|
2950
|
+
}, Ur = {
|
|
2951
2951
|
key: 1,
|
|
2952
2952
|
class: "g-checkbox-group__label"
|
|
2953
|
-
},
|
|
2953
|
+
}, Wr = {
|
|
2954
2954
|
key: 0,
|
|
2955
2955
|
class: "g-checkbox-group__required",
|
|
2956
2956
|
"aria-hidden": "true"
|
|
2957
|
-
},
|
|
2957
|
+
}, Gr = ["id"], Kr = { class: "g-checkbox-group__options" }, qr = ["for"], Jr = [
|
|
2958
2958
|
"id",
|
|
2959
2959
|
"type",
|
|
2960
2960
|
"name",
|
|
@@ -2963,7 +2963,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2963
2963
|
"disabled",
|
|
2964
2964
|
"required",
|
|
2965
2965
|
"onChange"
|
|
2966
|
-
],
|
|
2966
|
+
], Yr = { class: "g-checkbox-group__label-text" }, Xr = ["id"], Zr = /* @__PURE__ */ u({
|
|
2967
2967
|
__name: "GCheckboxGroup",
|
|
2968
2968
|
props: /*@__PURE__*/ m({
|
|
2969
2969
|
label: { default: void 0 },
|
|
@@ -2986,7 +2986,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2986
2986
|
}),
|
|
2987
2987
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
2988
2988
|
setup(t, { emit: n }) {
|
|
2989
|
-
let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } =
|
|
2989
|
+
let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = Me({
|
|
2990
2990
|
name: u.name,
|
|
2991
2991
|
value: d,
|
|
2992
2992
|
errors: I(u, "errors"),
|
|
@@ -3024,13 +3024,13 @@ var Cr = ["id", "for"], wr = {
|
|
|
3024
3024
|
}
|
|
3025
3025
|
return (n, r) => (w(), i(j(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": R(m) }] }, T.value), {
|
|
3026
3026
|
default: K(() => [
|
|
3027
|
-
C.value && t.label ? (w(), o("legend",
|
|
3027
|
+
C.value && t.label ? (w(), o("legend", Vr, [c(P(t.label), 1), t.required ? (w(), o("span", Hr, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Ur, [c(P(t.label), 1), t.required ? (w(), o("span", Wr, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
3028
3028
|
t.instructions ? (w(), o("div", {
|
|
3029
3029
|
key: 2,
|
|
3030
3030
|
id: S.value,
|
|
3031
3031
|
class: "g-checkbox-group__instructions"
|
|
3032
|
-
}, P(t.instructions), 9,
|
|
3033
|
-
s("div",
|
|
3032
|
+
}, P(t.instructions), 9, Gr)) : a("", !0),
|
|
3033
|
+
s("div", Kr, [(w(!0), o(e, null, k(t.options, (e, n) => (w(), o("div", {
|
|
3034
3034
|
key: e.value,
|
|
3035
3035
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
3036
3036
|
}, [s("label", {
|
|
@@ -3045,12 +3045,12 @@ var Cr = ["id", "for"], wr = {
|
|
|
3045
3045
|
disabled: e.disabled,
|
|
3046
3046
|
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
3047
3047
|
class: "g-checkbox-group__input"
|
|
3048
|
-
}, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16,
|
|
3048
|
+
}, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, Jr), s("span", Yr, P(e.label), 1)], 10, qr), e.hint ? (w(), o("div", {
|
|
3049
3049
|
key: 0,
|
|
3050
3050
|
id: E(n),
|
|
3051
3051
|
class: "g-checkbox-group__hint"
|
|
3052
|
-
}, P(e.hint), 9,
|
|
3053
|
-
l(
|
|
3052
|
+
}, P(e.hint), 9, Xr)) : a("", !0)], 2))), 128))]),
|
|
3053
|
+
l(Pe, {
|
|
3054
3054
|
errors: R(p),
|
|
3055
3055
|
id: x.value
|
|
3056
3056
|
}, null, 8, ["errors", "id"])
|
|
@@ -3058,15 +3058,15 @@ var Cr = ["id", "for"], wr = {
|
|
|
3058
3058
|
_: 1
|
|
3059
3059
|
}, 16, ["class"]));
|
|
3060
3060
|
}
|
|
3061
|
-
}),
|
|
3061
|
+
}), Qr = {
|
|
3062
3062
|
class: "g-pagination",
|
|
3063
3063
|
"aria-label": "Pagination"
|
|
3064
|
-
},
|
|
3064
|
+
}, $r = ["disabled"], ei = ["disabled"], ti = { class: "page-range" }, ni = ["disabled"], ri = ["disabled"], ii = { class: "g-pagination-page-size" }, ai = { class: "page-size-select-wrap" }, oi = ["id", "value"], si = ["value"], ci = ["for"], li = { class: "g-pagination-overflow" }, ui = ["onClick"], di = { class: "g-pagination-overflow-popover" }, fi = { class: "g-pagination-overflow-page-size" }, pi = ["for"], mi = { class: "page-size-select-wrap" }, hi = ["id", "value"], gi = ["value"], _i = { class: "g-pagination-overflow-actions" }, vi = ["disabled"], yi = ["disabled"], bi = {
|
|
3065
3065
|
class: "ilw-sr-only",
|
|
3066
3066
|
role: "status",
|
|
3067
3067
|
"aria-live": "polite",
|
|
3068
3068
|
"aria-atomic": "true"
|
|
3069
|
-
},
|
|
3069
|
+
}, xi = /* @__PURE__ */ u({
|
|
3070
3070
|
__name: "GTablePagination",
|
|
3071
3071
|
props: /*@__PURE__*/ m({
|
|
3072
3072
|
start: {},
|
|
@@ -3097,7 +3097,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3097
3097
|
function C(e) {
|
|
3098
3098
|
u.value = parseInt(e.target.value, 10), a.value = 0;
|
|
3099
3099
|
}
|
|
3100
|
-
return (t, n) => (w(), o("nav",
|
|
3100
|
+
return (t, n) => (w(), o("nav", Qr, [
|
|
3101
3101
|
s("button", {
|
|
3102
3102
|
class: "first-page g-pagination-button",
|
|
3103
3103
|
type: "button",
|
|
@@ -3124,7 +3124,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3124
3124
|
}),
|
|
3125
3125
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3126
3126
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3127
|
-
], -1)]], 8,
|
|
3127
|
+
], -1)]], 8, $r),
|
|
3128
3128
|
s("button", {
|
|
3129
3129
|
class: "prev-page g-pagination-button",
|
|
3130
3130
|
type: "button",
|
|
@@ -3147,8 +3147,8 @@ var Cr = ["id", "for"], wr = {
|
|
|
3147
3147
|
stroke: "none",
|
|
3148
3148
|
d: "M0 0h24v24H0z",
|
|
3149
3149
|
fill: "none"
|
|
3150
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
3151
|
-
s("span",
|
|
3150
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, ei),
|
|
3151
|
+
s("span", ti, P(v.value) + " to " + P(y.value), 1),
|
|
3152
3152
|
s("button", {
|
|
3153
3153
|
class: "next-page g-pagination-button",
|
|
3154
3154
|
type: "button",
|
|
@@ -3171,7 +3171,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3171
3171
|
stroke: "none",
|
|
3172
3172
|
d: "M0 0h24v24H0z",
|
|
3173
3173
|
fill: "none"
|
|
3174
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
3174
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, ni),
|
|
3175
3175
|
s("button", {
|
|
3176
3176
|
class: "last-page g-pagination-button",
|
|
3177
3177
|
type: "button",
|
|
@@ -3198,8 +3198,8 @@ var Cr = ["id", "for"], wr = {
|
|
|
3198
3198
|
}),
|
|
3199
3199
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3200
3200
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3201
|
-
], -1)]], 8,
|
|
3202
|
-
s("div",
|
|
3201
|
+
], -1)]], 8, ri),
|
|
3202
|
+
s("div", ii, [s("div", ai, [s("select", {
|
|
3203
3203
|
id: R(d),
|
|
3204
3204
|
class: "page-size-select",
|
|
3205
3205
|
value: m.value,
|
|
@@ -3207,7 +3207,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3207
3207
|
}, [(w(!0), o(e, null, k(h.value, (e) => (w(), o("option", {
|
|
3208
3208
|
key: e,
|
|
3209
3209
|
value: e
|
|
3210
|
-
}, P(e), 9,
|
|
3210
|
+
}, P(e), 9, si))), 128))], 40, oi), n[10] ||= s("span", {
|
|
3211
3211
|
class: "page-size-select-caret",
|
|
3212
3212
|
"aria-hidden": "true"
|
|
3213
3213
|
}, [s("svg", {
|
|
@@ -3221,8 +3221,8 @@ var Cr = ["id", "for"], wr = {
|
|
|
3221
3221
|
})])], -1)]), s("label", {
|
|
3222
3222
|
class: "page-size-label",
|
|
3223
3223
|
for: R(d)
|
|
3224
|
-
}, " per page ", 8,
|
|
3225
|
-
s("div",
|
|
3224
|
+
}, " per page ", 8, ci)]),
|
|
3225
|
+
s("div", li, [l(ut, null, {
|
|
3226
3226
|
trigger: K(({ toggle: e }) => [s("button", {
|
|
3227
3227
|
type: "button",
|
|
3228
3228
|
class: "g-pagination-button g-pagination-overflow-trigger",
|
|
@@ -3237,17 +3237,17 @@ var Cr = ["id", "for"], wr = {
|
|
|
3237
3237
|
}, [s("path", {
|
|
3238
3238
|
fill: "currentColor",
|
|
3239
3239
|
d: "M96 320C96 284.7 124.7 256 160 256C195.3 256 224 284.7 224 320C224 355.3 195.3 384 160 384C124.7 384 96 355.3 96 320zM256 320C256 284.7 284.7 256 320 256C355.3 256 384 284.7 384 320C384 355.3 355.3 384 320 384C284.7 384 256 355.3 256 320zM480 256C515.3 256 544 284.7 544 320C544 355.3 515.3 384 480 384C444.7 384 416 355.3 416 320C416 284.7 444.7 256 480 256z"
|
|
3240
|
-
})], -1)]], 8,
|
|
3241
|
-
default: K(() => [s("div",
|
|
3240
|
+
})], -1)]], 8, ui)]),
|
|
3241
|
+
default: K(() => [s("div", di, [
|
|
3242
3242
|
n[15] ||= s("h2", {
|
|
3243
3243
|
class: "g-pagination-overflow-title",
|
|
3244
3244
|
tabindex: "-1",
|
|
3245
3245
|
"popover-focus": ""
|
|
3246
3246
|
}, " Pagination options ", -1),
|
|
3247
|
-
s("div",
|
|
3247
|
+
s("div", fi, [s("label", {
|
|
3248
3248
|
class: "page-size-label",
|
|
3249
3249
|
for: R(f)
|
|
3250
|
-
}, " Rows per page ", 8,
|
|
3250
|
+
}, " Rows per page ", 8, pi), s("div", mi, [s("select", {
|
|
3251
3251
|
id: R(f),
|
|
3252
3252
|
class: "page-size-select",
|
|
3253
3253
|
value: m.value,
|
|
@@ -3255,7 +3255,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3255
3255
|
}, [(w(!0), o(e, null, k(h.value, (e) => (w(), o("option", {
|
|
3256
3256
|
key: `overflow-${e}`,
|
|
3257
3257
|
value: e
|
|
3258
|
-
}, P(e), 9,
|
|
3258
|
+
}, P(e), 9, gi))), 128))], 40, hi), n[12] ||= s("span", {
|
|
3259
3259
|
class: "page-size-select-caret",
|
|
3260
3260
|
"aria-hidden": "true"
|
|
3261
3261
|
}, [s("svg", {
|
|
@@ -3267,7 +3267,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3267
3267
|
fill: "currentColor",
|
|
3268
3268
|
d: "M300.3 439.8C312.8 450.1 331.3 449.3 343.1 437.6L471.1 309.6C480.3 300.4 483 286.7 478 274.7C473 262.7 461.4 255 448.5 255L192.5 255C179.6 255 167.9 262.8 162.9 274.8C157.9 286.8 160.7 300.5 169.9 309.6L297.9 437.6L300.3 439.8z"
|
|
3269
3269
|
})])], -1)])]),
|
|
3270
|
-
s("div",
|
|
3270
|
+
s("div", _i, [s("button", {
|
|
3271
3271
|
type: "button",
|
|
3272
3272
|
class: "g-pagination-overflow-action",
|
|
3273
3273
|
disabled: g.value,
|
|
@@ -3293,7 +3293,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3293
3293
|
}),
|
|
3294
3294
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3295
3295
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3296
|
-
])], -1), c(" First Page ", -1)]], 8,
|
|
3296
|
+
])], -1), c(" First Page ", -1)]], 8, vi), s("button", {
|
|
3297
3297
|
type: "button",
|
|
3298
3298
|
class: "g-pagination-overflow-action",
|
|
3299
3299
|
disabled: _.value,
|
|
@@ -3319,43 +3319,43 @@ var Cr = ["id", "for"], wr = {
|
|
|
3319
3319
|
}),
|
|
3320
3320
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3321
3321
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3322
|
-
])], -1), c(" Last Page ", -1)]], 8,
|
|
3322
|
+
])], -1), c(" Last Page ", -1)]], 8, yi)])
|
|
3323
3323
|
])]),
|
|
3324
3324
|
_: 1
|
|
3325
3325
|
})]),
|
|
3326
|
-
s("span",
|
|
3326
|
+
s("span", bi, P(x.value), 1)
|
|
3327
3327
|
]));
|
|
3328
3328
|
}
|
|
3329
3329
|
});
|
|
3330
3330
|
// src/compose/useFiltering.ts
|
|
3331
|
-
function
|
|
3331
|
+
function Si(e) {
|
|
3332
3332
|
if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function Ci(e) {
|
|
3335
3335
|
return Object.fromEntries(Object.entries(e).filter(([, e]) => e && (!Array.isArray(e) || e.length > 0)));
|
|
3336
3336
|
}
|
|
3337
|
-
function
|
|
3337
|
+
function wi(e) {
|
|
3338
3338
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
3339
3339
|
}
|
|
3340
|
-
function
|
|
3340
|
+
function Ti(e) {
|
|
3341
3341
|
if (e == null) return;
|
|
3342
3342
|
if (typeof e == "string") return e.includes(",") ? e.split(",") : [e];
|
|
3343
3343
|
let t = [];
|
|
3344
3344
|
for (let n of e) n !== null && t.push(n);
|
|
3345
3345
|
return t.length > 0 ? t : void 0;
|
|
3346
3346
|
}
|
|
3347
|
-
function
|
|
3347
|
+
function Ei(e) {
|
|
3348
3348
|
return Array.isArray(e) ? [...e] : e;
|
|
3349
3349
|
}
|
|
3350
|
-
function
|
|
3350
|
+
function Di(e, t) {
|
|
3351
3351
|
return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
|
|
3352
3352
|
}
|
|
3353
|
-
function
|
|
3353
|
+
function Oi(e, t) {
|
|
3354
3354
|
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
3355
|
-
for (let r of n) if (!
|
|
3355
|
+
for (let r of n) if (!Di(e[r], t[r])) return !1;
|
|
3356
3356
|
return !0;
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function ki(e) {
|
|
3359
3359
|
if (e != null && e !== "") {
|
|
3360
3360
|
if (Array.isArray(e)) {
|
|
3361
3361
|
let t = e.filter((e) => e != null && e !== "").map((e) => String(e));
|
|
@@ -3364,76 +3364,76 @@ function Di(e) {
|
|
|
3364
3364
|
return String(e);
|
|
3365
3365
|
}
|
|
3366
3366
|
}
|
|
3367
|
-
function
|
|
3368
|
-
return
|
|
3367
|
+
function Ai(e) {
|
|
3368
|
+
return ki(e) !== void 0;
|
|
3369
3369
|
}
|
|
3370
|
-
function
|
|
3370
|
+
function ji(e) {
|
|
3371
3371
|
let t = {};
|
|
3372
3372
|
for (let [n, r] of Object.entries(F(e))) {
|
|
3373
|
-
let e =
|
|
3373
|
+
let e = ki(r);
|
|
3374
3374
|
e !== void 0 && (t[n] = e);
|
|
3375
3375
|
}
|
|
3376
3376
|
return t;
|
|
3377
3377
|
}
|
|
3378
|
-
function
|
|
3378
|
+
function Mi(e, t) {
|
|
3379
3379
|
let n = {}, r = t, i = n;
|
|
3380
3380
|
for (let t of e) {
|
|
3381
3381
|
if (!t.filter) continue;
|
|
3382
|
-
let e =
|
|
3382
|
+
let e = hr(t), n = wr(t.filter, r[e]);
|
|
3383
3383
|
n !== void 0 && (i[e] = n);
|
|
3384
3384
|
}
|
|
3385
3385
|
return n;
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3387
|
+
function Ni(e) {
|
|
3388
3388
|
let t = {};
|
|
3389
|
-
for (let n of e) n.filter && (t[
|
|
3389
|
+
for (let n of e) n.filter && (t[hr(n)] = n.filter.type === "multi-select" ? [] : void 0);
|
|
3390
3390
|
return t;
|
|
3391
3391
|
}
|
|
3392
|
-
function
|
|
3392
|
+
function Pi(e, t, n = {}) {
|
|
3393
3393
|
let r = e, i = new Set(n.booleanArrayKeys ?? []), a = {};
|
|
3394
3394
|
for (let e of Object.keys(r)) {
|
|
3395
|
-
let n =
|
|
3396
|
-
a[e] = i.has(e) && n !== void 0 ?
|
|
3395
|
+
let n = Fi(t[e], Array.isArray(r[e]));
|
|
3396
|
+
a[e] = i.has(e) && n !== void 0 ? Ii(n) : n;
|
|
3397
3397
|
}
|
|
3398
3398
|
return a;
|
|
3399
3399
|
}
|
|
3400
|
-
function
|
|
3401
|
-
if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e :
|
|
3400
|
+
function Fi(e, t) {
|
|
3401
|
+
if (e != null) return !t && typeof e == "string" ? e.includes(",") ? e.split(",") : e : Ti(e);
|
|
3402
3402
|
}
|
|
3403
|
-
function
|
|
3403
|
+
function Ii(e) {
|
|
3404
3404
|
return (Array.isArray(e) ? e : [e]).flatMap((e) => e === "true" ? [!0] : e === "false" ? [!1] : []);
|
|
3405
3405
|
}
|
|
3406
|
-
function
|
|
3406
|
+
function Li(e) {
|
|
3407
3407
|
let t = {};
|
|
3408
3408
|
for (let [n, r] of Object.entries(F(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : t[n] = r === !0 ? "true" : r || void 0;
|
|
3409
3409
|
return t;
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function Ri(e) {
|
|
3412
3412
|
let t = {};
|
|
3413
3413
|
return Object.keys(e).forEach((n) => {
|
|
3414
3414
|
let r = e[n];
|
|
3415
3415
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
3416
3416
|
}), t;
|
|
3417
3417
|
}
|
|
3418
|
-
function
|
|
3418
|
+
function zi(e, t) {
|
|
3419
3419
|
let n = e, r = Object.keys(e), i = O(((e) => {
|
|
3420
3420
|
let t = {};
|
|
3421
3421
|
for (let i of r) {
|
|
3422
3422
|
let r = e[i];
|
|
3423
|
-
r !== void 0 && (t[i] =
|
|
3423
|
+
r !== void 0 && (t[i] = Fi(r, Array.isArray(n[i])));
|
|
3424
3424
|
}
|
|
3425
3425
|
return t;
|
|
3426
|
-
})(t.route.query)), a =
|
|
3427
|
-
return W(() =>
|
|
3426
|
+
})(t.route.query)), a = Bi(e, { syncWith: i }), o = a.filters;
|
|
3427
|
+
return W(() => Pi(e, t.route.query, t), (e) => {
|
|
3428
3428
|
let t = e;
|
|
3429
|
-
for (let e of r)
|
|
3429
|
+
for (let e of r) Di(o[e], t[e]) || (o[e] = t[e]);
|
|
3430
3430
|
}, { immediate: !0 }), W(i, (e) => {
|
|
3431
3431
|
let n = { ...t.route.query };
|
|
3432
|
-
for (let t of r) e[t] === void 0 ? delete n[t] : n[t] =
|
|
3433
|
-
|
|
3432
|
+
for (let t of r) e[t] === void 0 ? delete n[t] : n[t] = Ei(e[t]);
|
|
3433
|
+
Oi(t.route.query, n) || t.router.replace({ query: n });
|
|
3434
3434
|
}), a;
|
|
3435
3435
|
}
|
|
3436
|
-
function
|
|
3436
|
+
function Bi(e, t = {}) {
|
|
3437
3437
|
let n = Object.keys(e), i = E({ ...e }), a = t.syncWith;
|
|
3438
3438
|
if (a) {
|
|
3439
3439
|
if (a.value) {
|
|
@@ -3444,12 +3444,12 @@ function Ri(e, t = {}) {
|
|
|
3444
3444
|
});
|
|
3445
3445
|
}
|
|
3446
3446
|
W(i, (e) => {
|
|
3447
|
-
a.value =
|
|
3447
|
+
a.value = ji(e);
|
|
3448
3448
|
}, { deep: !0 });
|
|
3449
3449
|
}
|
|
3450
3450
|
return {
|
|
3451
3451
|
filters: i,
|
|
3452
|
-
isFiltered: r(() => n.some((e) =>
|
|
3452
|
+
isFiltered: r(() => n.some((e) => Ai(i[e]))),
|
|
3453
3453
|
clearFilters: () => {
|
|
3454
3454
|
Object.keys(i).forEach((e) => {
|
|
3455
3455
|
i[e] = void 0;
|
|
@@ -3457,93 +3457,93 @@ function Ri(e, t = {}) {
|
|
|
3457
3457
|
},
|
|
3458
3458
|
filteredColumns: r(() => {
|
|
3459
3459
|
let e = {};
|
|
3460
|
-
for (let t of n) e[t] =
|
|
3460
|
+
for (let t of n) e[t] = Ai(i[t]);
|
|
3461
3461
|
return e;
|
|
3462
3462
|
})
|
|
3463
3463
|
};
|
|
3464
3464
|
}
|
|
3465
3465
|
// src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
3466
|
-
var
|
|
3466
|
+
var Vi = { class: "g-table-inner-wrap" }, Hi = { class: "g-table-control-actions" }, Ui = {
|
|
3467
3467
|
key: 0,
|
|
3468
3468
|
class: "g-sort-builder-wrap"
|
|
3469
|
-
},
|
|
3469
|
+
}, Wi = {
|
|
3470
3470
|
key: 0,
|
|
3471
3471
|
class: "g-sort-builder-count"
|
|
3472
|
-
},
|
|
3472
|
+
}, Gi = {
|
|
3473
3473
|
key: 0,
|
|
3474
3474
|
class: "g-sort-builder-list"
|
|
3475
|
-
},
|
|
3475
|
+
}, Ki = ["data-sort-row-key", "aria-label"], qi = {
|
|
3476
3476
|
class: "g-sort-builder-rule-priority",
|
|
3477
3477
|
"aria-hidden": "true"
|
|
3478
|
-
},
|
|
3478
|
+
}, Ji = { class: "g-sort-builder-rule-label" }, Yi = ["aria-label", "onClick"], Xi = { class: "g-visually-hidden" }, Zi = {
|
|
3479
3479
|
class: "sort-indicator",
|
|
3480
3480
|
"aria-hidden": "true"
|
|
3481
|
-
},
|
|
3481
|
+
}, Qi = ["aria-label", "onClick"], $i = {
|
|
3482
3482
|
key: 1,
|
|
3483
3483
|
class: "g-sort-builder-empty"
|
|
3484
|
-
},
|
|
3484
|
+
}, ea = {
|
|
3485
3485
|
key: 2,
|
|
3486
3486
|
class: "g-sort-builder-add"
|
|
3487
|
-
},
|
|
3487
|
+
}, ta = { class: "g-sort-builder-add-list" }, na = { class: "g-sort-builder-add-name" }, ra = { class: "g-sort-builder-add-actions" }, ia = ["aria-label", "onClick"], aa = ["aria-label", "onClick"], oa = {
|
|
3488
3488
|
class: "sort-indicator",
|
|
3489
3489
|
"aria-hidden": "true"
|
|
3490
|
-
},
|
|
3490
|
+
}, sa = {
|
|
3491
3491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3492
3492
|
viewBox: "0 0 640 640",
|
|
3493
3493
|
height: "1.25em",
|
|
3494
3494
|
style: { transform: "rotate(180deg)" }
|
|
3495
|
-
},
|
|
3495
|
+
}, ca = {
|
|
3496
3496
|
key: 1,
|
|
3497
3497
|
class: "g-column-visibility-wrap"
|
|
3498
|
-
},
|
|
3498
|
+
}, la = {
|
|
3499
3499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3500
3500
|
viewBox: "0 0 640 640",
|
|
3501
3501
|
height: "1.5em",
|
|
3502
3502
|
style: { transform: "rotate(90deg)" },
|
|
3503
3503
|
"aria-hidden": "true"
|
|
3504
|
-
},
|
|
3504
|
+
}, ua = ["aria-labelledby"], da = { class: "g-column-visibility-header" }, fa = ["id"], pa = { class: "g-column-visibility-legend-action" }, ma = { class: "g-column-visibility-list" }, ha = ["checked", "onChange"], ga = {
|
|
3505
3505
|
key: 2,
|
|
3506
3506
|
class: "g-table-custom-controls"
|
|
3507
|
-
},
|
|
3507
|
+
}, _a = { class: "g-clear-filters-wrap" }, va = {
|
|
3508
3508
|
key: 0,
|
|
3509
3509
|
class: "pagination"
|
|
3510
|
-
},
|
|
3510
|
+
}, ya = { class: "g-table-controls-right" }, ba = { class: "g-result-count" }, xa = ["aria-rowcount"], Sa = { class: "g-visually-hidden" }, Ca = { key: 0 }, wa = ["data-column-key"], Ta = { class: "g-table-head" }, Ea = { "aria-rowindex": "1" }, Da = {
|
|
3511
3511
|
key: 0,
|
|
3512
3512
|
scope: "col",
|
|
3513
3513
|
class: "g-th g-th-checkbox"
|
|
3514
|
-
},
|
|
3514
|
+
}, Oa = [
|
|
3515
3515
|
"checked",
|
|
3516
3516
|
"indeterminate",
|
|
3517
3517
|
"aria-label"
|
|
3518
|
-
],
|
|
3518
|
+
], ka = ["id", "aria-sort"], Aa = { class: "th-inner" }, ja = ["aria-describedby", "onClick"], Ma = {
|
|
3519
3519
|
key: 0,
|
|
3520
3520
|
class: "sort-indicator",
|
|
3521
3521
|
"aria-hidden": "true"
|
|
3522
|
-
},
|
|
3522
|
+
}, Na = {
|
|
3523
3523
|
key: 1,
|
|
3524
3524
|
class: "g-column-head"
|
|
3525
|
-
},
|
|
3525
|
+
}, Pa = [
|
|
3526
3526
|
"onClick",
|
|
3527
3527
|
"aria-describedby",
|
|
3528
3528
|
"aria-expanded"
|
|
3529
|
-
],
|
|
3529
|
+
], Fa = {
|
|
3530
3530
|
key: 1,
|
|
3531
3531
|
class: "g-filter-search",
|
|
3532
3532
|
role: "search"
|
|
3533
|
-
},
|
|
3533
|
+
}, Ia = [
|
|
3534
3534
|
"value",
|
|
3535
3535
|
"onInput",
|
|
3536
3536
|
"placeholder",
|
|
3537
3537
|
"aria-label"
|
|
3538
|
-
],
|
|
3538
|
+
], La = { key: 2 }, Ra = { class: "g-filter-toggle" }, za = [
|
|
3539
3539
|
"checked",
|
|
3540
3540
|
"onChange",
|
|
3541
3541
|
"id",
|
|
3542
3542
|
"aria-describedby"
|
|
3543
|
-
],
|
|
3543
|
+
], Ba = ["for"], Va = ["id"], Ha = {
|
|
3544
3544
|
key: 4,
|
|
3545
3545
|
class: "g-multi-select"
|
|
3546
|
-
},
|
|
3546
|
+
}, Ua = [
|
|
3547
3547
|
"data-column-key",
|
|
3548
3548
|
"aria-label",
|
|
3549
3549
|
"aria-valuemax",
|
|
@@ -3551,10 +3551,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3551
3551
|
"aria-valuetext",
|
|
3552
3552
|
"onKeydown",
|
|
3553
3553
|
"onPointerdown"
|
|
3554
|
-
],
|
|
3554
|
+
], Wa = { key: 0 }, Ga = { "aria-rowindex": "2" }, Ka = ["colspan"], qa = { hidden: "" }, Ja = ["id"], Ya = ["id"], Xa = ["id"], Za = {
|
|
3555
3555
|
key: 1,
|
|
3556
3556
|
class: "g-bulk-actions-toolbar"
|
|
3557
|
-
},
|
|
3557
|
+
}, Qa = { class: "g-selected-count" }, $a = { class: "g-bulk-actions" }, eo = /* @__PURE__ */ u({
|
|
3558
3558
|
__name: "GTable",
|
|
3559
3559
|
props: /*@__PURE__*/ m({
|
|
3560
3560
|
label: {},
|
|
@@ -3611,7 +3611,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3611
3611
|
"update:selectedRows"
|
|
3612
3612
|
]),
|
|
3613
3613
|
setup(t, { emit: n }) {
|
|
3614
|
-
let u = V(t, "sort"), f = V(t, "filter"), p = V(t, "columnState"), m = V(t, "selectedRows"), h = t, y = n, { isFiltered: S, clearFilters: C } = h.filtering ??
|
|
3614
|
+
let u = V(t, "sort"), f = V(t, "filter"), p = V(t, "columnState"), m = V(t, "selectedRows"), h = t, y = n, { isFiltered: S, clearFilters: C } = h.filtering ?? Bi({}), T = r(() => h.data.map((e) => e.key)), E = r(() => m.value.filter((e) => T.value.includes(e))), D = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : E.value.length === T.value.length), j = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : E.value.length > 0 && E.value.length < T.value.length), M = O(null);
|
|
3615
3615
|
function N() {
|
|
3616
3616
|
if (D.value) m.value = m.value.filter((e) => !T.value.includes(e));
|
|
3617
3617
|
else {
|
|
@@ -3653,7 +3653,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3653
3653
|
e !== void 0 && y("update:pageSize", e);
|
|
3654
3654
|
}
|
|
3655
3655
|
let G = B(), te = d(), ne = O(null), re = O(null), ie = O(null), J = O(null), ae = O(null), Y = O(0);
|
|
3656
|
-
|
|
3656
|
+
de(ae, (e) => {
|
|
3657
3657
|
let t = e[0];
|
|
3658
3658
|
Y.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
|
|
3659
3659
|
});
|
|
@@ -3669,104 +3669,104 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3669
3669
|
};
|
|
3670
3670
|
}
|
|
3671
3671
|
let Z = r(() => se(u.value));
|
|
3672
|
-
function
|
|
3672
|
+
function le(e) {
|
|
3673
3673
|
u.value = se(e);
|
|
3674
3674
|
}
|
|
3675
|
-
let
|
|
3675
|
+
let ue = r(() => h.columns.filter((e) => e.sortable)), fe = r(() => ue.value.length > 1), pe = r(() => {
|
|
3676
3676
|
let e = new Set(Z.value.map((e) => String(e.key)));
|
|
3677
|
-
return
|
|
3677
|
+
return ue.value.filter((t) => !e.has(String(t.key)));
|
|
3678
3678
|
});
|
|
3679
|
-
function
|
|
3679
|
+
function Q(e) {
|
|
3680
3680
|
return Z.value.findIndex((t) => t.key === e);
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3682
|
+
function me(e) {
|
|
3683
3683
|
return Z.value.find((t) => t.key === e);
|
|
3684
3684
|
}
|
|
3685
|
-
function
|
|
3685
|
+
function he(e) {
|
|
3686
3686
|
return h.columns.find((t) => t.key === e)?.label || String(e);
|
|
3687
3687
|
}
|
|
3688
|
-
function
|
|
3689
|
-
let t =
|
|
3688
|
+
function ge(e) {
|
|
3689
|
+
let t = Q(e);
|
|
3690
3690
|
return t === -1 ? "none" : t > 0 ? "other" : Z.value[0]?.order === 1 ? "ascending" : "descending";
|
|
3691
3691
|
}
|
|
3692
|
-
function
|
|
3693
|
-
let t =
|
|
3692
|
+
function _e(e) {
|
|
3693
|
+
let t = Q(e);
|
|
3694
3694
|
if (t === -1) return "Sortable, not sorted";
|
|
3695
3695
|
let n = Z.value[t].order === 1 ? "ascending" : "descending";
|
|
3696
3696
|
return Z.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
|
|
3697
3697
|
}
|
|
3698
|
-
let
|
|
3698
|
+
let ve = r(() => Z.value.length === 0 ? "" : `sorted by ${Z.value.map((e) => `${he(e.key)} ${e.order === 1 ? "ascending" : "descending"}`).join(", then ")}`), ye = r(() => {
|
|
3699
3699
|
let e = h.columns.filter((e) => ot(e));
|
|
3700
3700
|
return e.length === 0 ? "" : `filtered by ${e.map((e) => e.label).join(", ")}`;
|
|
3701
3701
|
});
|
|
3702
|
-
function
|
|
3702
|
+
function be(e) {
|
|
3703
3703
|
return e === 1 ? "Ascending" : "Descending";
|
|
3704
3704
|
}
|
|
3705
|
-
function
|
|
3705
|
+
function xe(e) {
|
|
3706
3706
|
let t = Z.value[0]?.key === e ? Z.value[0] : void 0;
|
|
3707
3707
|
return t ? t.order === 1 ? [ce(e, -1)] : [] : [ce(e, 1)];
|
|
3708
3708
|
}
|
|
3709
|
-
function
|
|
3709
|
+
function Se(e) {
|
|
3710
3710
|
let t = [...Z.value], n = t.findIndex((t) => t.key === e);
|
|
3711
3711
|
return n === -1 ? (t.push(ce(e, 1)), t) : t[n].order === 1 ? (t[n] = ce(e, -1), t) : (t.splice(n, 1), t);
|
|
3712
3712
|
}
|
|
3713
|
-
function
|
|
3713
|
+
function Ce(e, t = !1) {
|
|
3714
3714
|
if (!e.sortable) return;
|
|
3715
3715
|
let n = e.key;
|
|
3716
|
-
|
|
3716
|
+
le(t ? Se(n) : xe(n));
|
|
3717
3717
|
}
|
|
3718
|
-
function
|
|
3719
|
-
|
|
3718
|
+
function we(e, t) {
|
|
3719
|
+
le([...Z.value, ce(e, t)]), g(() => {
|
|
3720
3720
|
let t = ne.value;
|
|
3721
3721
|
t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
|
|
3722
3722
|
}).catch((e) => {
|
|
3723
3723
|
console.error(e);
|
|
3724
3724
|
});
|
|
3725
3725
|
}
|
|
3726
|
-
function
|
|
3727
|
-
|
|
3726
|
+
function Te(e) {
|
|
3727
|
+
le(Z.value.map((t) => t.key === e ? ce(t.key, t.order === 1 ? -1 : 1) : t));
|
|
3728
3728
|
}
|
|
3729
|
-
function
|
|
3730
|
-
|
|
3729
|
+
function Ee(e) {
|
|
3730
|
+
le(Z.value.filter((t) => t.key !== e));
|
|
3731
3731
|
}
|
|
3732
|
-
function
|
|
3733
|
-
|
|
3732
|
+
function De() {
|
|
3733
|
+
le([]);
|
|
3734
3734
|
}
|
|
3735
|
-
function
|
|
3735
|
+
function Oe(e) {
|
|
3736
3736
|
return p.value[e] ?? {};
|
|
3737
3737
|
}
|
|
3738
|
-
function
|
|
3738
|
+
function ke(e, t) {
|
|
3739
3739
|
p.value = {
|
|
3740
3740
|
...p.value,
|
|
3741
3741
|
[e]: {
|
|
3742
|
-
...
|
|
3742
|
+
...Oe(e),
|
|
3743
3743
|
...t
|
|
3744
3744
|
}
|
|
3745
3745
|
};
|
|
3746
3746
|
}
|
|
3747
|
-
function
|
|
3747
|
+
function Ae(e) {
|
|
3748
3748
|
return Math.max(50, Math.round(e));
|
|
3749
3749
|
}
|
|
3750
3750
|
function je(e) {
|
|
3751
|
-
let t =
|
|
3752
|
-
if (typeof t == "number" && Number.isFinite(t)) return
|
|
3751
|
+
let t = Oe(e).width;
|
|
3752
|
+
if (typeof t == "number" && Number.isFinite(t)) return Ae(t);
|
|
3753
3753
|
}
|
|
3754
3754
|
function Me(e) {
|
|
3755
3755
|
return document.getElementById(`${G}-th-${String(e)}`);
|
|
3756
3756
|
}
|
|
3757
3757
|
function Ne(e) {
|
|
3758
3758
|
let t = Me(e)?.getBoundingClientRect().width;
|
|
3759
|
-
return
|
|
3759
|
+
return Ae(t ?? 50);
|
|
3760
3760
|
}
|
|
3761
3761
|
function Pe(e) {
|
|
3762
3762
|
return je(e) ?? Ne(e);
|
|
3763
3763
|
}
|
|
3764
3764
|
function Fe(e) {
|
|
3765
3765
|
let t = Pe(e), n = ie.value?.getBoundingClientRect().width ?? re.value?.getBoundingClientRect().width ?? t;
|
|
3766
|
-
return
|
|
3766
|
+
return Ae(Math.max(t, n));
|
|
3767
3767
|
}
|
|
3768
3768
|
function Ie(e, t) {
|
|
3769
|
-
|
|
3769
|
+
ke(e, { width: Ae(t) });
|
|
3770
3770
|
}
|
|
3771
3771
|
function Le(e, t) {
|
|
3772
3772
|
Ie(e, Pe(e) + t);
|
|
@@ -3824,18 +3824,18 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3824
3824
|
let Ge = r(() => {
|
|
3825
3825
|
let e = te?.vnode.props ?? {};
|
|
3826
3826
|
return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
|
|
3827
|
-
}), Ke = r(() => h.columns.filter((e) =>
|
|
3827
|
+
}), Ke = r(() => h.columns.filter((e) => Oe(e.key).visible !== !1)), qe = H(), Je = r(() => Ke.value.length !== h.columns.length), Ye = r(() => Ge.value && h.columns.length > 0), Xe = r(() => !!qe.controls || !!qe["right-controls"]), Ze = r(() => h.resultCount ?? h.data.length);
|
|
3828
3828
|
function Qe(e) {
|
|
3829
|
-
return
|
|
3829
|
+
return Oe(e.key).visible !== !1;
|
|
3830
3830
|
}
|
|
3831
3831
|
function $e(e, t) {
|
|
3832
|
-
|
|
3832
|
+
ke(e.key, { visible: t });
|
|
3833
3833
|
}
|
|
3834
3834
|
function et() {
|
|
3835
3835
|
p.value = h.columns.reduce((e, t) => ({
|
|
3836
3836
|
...e,
|
|
3837
3837
|
[t.key]: {
|
|
3838
|
-
...
|
|
3838
|
+
...Oe(t.key),
|
|
3839
3839
|
visible: !0
|
|
3840
3840
|
}
|
|
3841
3841
|
}), { ...p.value });
|
|
@@ -3845,22 +3845,22 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3845
3845
|
return f.value;
|
|
3846
3846
|
}
|
|
3847
3847
|
function it(e) {
|
|
3848
|
-
if (e.filter) return
|
|
3848
|
+
if (e.filter) return xr(e.filter, rt()[hr(e)]);
|
|
3849
3849
|
}
|
|
3850
3850
|
function at(e, t) {
|
|
3851
|
-
e.filter && (rt()[
|
|
3851
|
+
e.filter && (rt()[hr(e)] = Sr(e.filter, t));
|
|
3852
3852
|
}
|
|
3853
3853
|
function ot(e) {
|
|
3854
|
-
return e.filter ?
|
|
3854
|
+
return e.filter ? Cr(e.filter, rt()[hr(e)]) : !1;
|
|
3855
3855
|
}
|
|
3856
3856
|
function st(e) {
|
|
3857
3857
|
return e.filter?.type !== "select" && e.filter?.type !== "multi-select" ? [] : e.filter.options;
|
|
3858
3858
|
}
|
|
3859
|
-
function
|
|
3859
|
+
function ct(e, t) {
|
|
3860
3860
|
let n = st(e).findIndex((e) => e.value === t);
|
|
3861
3861
|
return n === -1 ? void 0 : String(n);
|
|
3862
3862
|
}
|
|
3863
|
-
function
|
|
3863
|
+
function lt(e, t) {
|
|
3864
3864
|
return st(e)[Number(t)]?.value;
|
|
3865
3865
|
}
|
|
3866
3866
|
function dt(e) {
|
|
@@ -3878,17 +3878,17 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3878
3878
|
}));
|
|
3879
3879
|
}
|
|
3880
3880
|
function pt(e) {
|
|
3881
|
-
return
|
|
3881
|
+
return ct(e, it(e)) ?? null;
|
|
3882
3882
|
}
|
|
3883
3883
|
function mt(e, t) {
|
|
3884
|
-
at(e, t == null ? void 0 :
|
|
3884
|
+
at(e, t == null ? void 0 : lt(e, t));
|
|
3885
3885
|
}
|
|
3886
3886
|
function ht(e) {
|
|
3887
3887
|
let t = it(e);
|
|
3888
|
-
return Array.isArray(t) ? t.map((t) =>
|
|
3888
|
+
return Array.isArray(t) ? t.map((t) => ct(e, t)).filter((e) => e !== void 0) : [];
|
|
3889
3889
|
}
|
|
3890
3890
|
function gt(e, t) {
|
|
3891
|
-
at(e, t.map((t) =>
|
|
3891
|
+
at(e, t.map((t) => lt(e, t)));
|
|
3892
3892
|
}
|
|
3893
3893
|
return b(() => {
|
|
3894
3894
|
Re();
|
|
@@ -3900,16 +3900,16 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3900
3900
|
ref: ie,
|
|
3901
3901
|
class: "g-table-outer-wrap",
|
|
3902
3902
|
style: v({ "--g-table-controls-height": `${nt.value ? Y.value : 0}px` })
|
|
3903
|
-
}, [s("div",
|
|
3903
|
+
}, [s("div", Vi, [
|
|
3904
3904
|
nt.value ? (w(), o("div", {
|
|
3905
3905
|
key: 0,
|
|
3906
3906
|
ref_key: "controlsRef",
|
|
3907
3907
|
ref: ae,
|
|
3908
3908
|
class: "g-table-controls"
|
|
3909
3909
|
}, [
|
|
3910
|
-
s("div",
|
|
3911
|
-
fe.value ? (w(), o("div",
|
|
3912
|
-
trigger: K(({ toggle: e }) => [l(
|
|
3910
|
+
s("div", Hi, [
|
|
3911
|
+
fe.value ? (w(), o("div", Ui, [l(ut, null, {
|
|
3912
|
+
trigger: K(({ toggle: e }) => [l($, {
|
|
3913
3913
|
size: "small",
|
|
3914
3914
|
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
|
|
3915
3915
|
"aria-label": "Choose sort order",
|
|
@@ -3924,7 +3924,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3924
3924
|
}, [s("path", {
|
|
3925
3925
|
fill: "currentColor",
|
|
3926
3926
|
d: "M130.4 268.2C135.4 280.2 147 288 160 288L480 288C492.9 288 504.6 280.2 509.6 268.2C514.6 256.2 511.8 242.5 502.7 233.3L342.7 73.3C330.2 60.8 309.9 60.8 297.4 73.3L137.4 233.3C128.2 242.5 125.5 256.2 130.5 268.2zM130.4 371.7C125.4 383.7 128.2 397.4 137.3 406.6L297.3 566.6C309.8 579.1 330.1 579.1 342.6 566.6L502.6 406.6C511.8 397.4 514.5 383.7 509.5 371.7C504.5 359.7 492.9 352 480 352L160 352C147.1 352 135.4 359.8 130.4 371.8z"
|
|
3927
|
-
})], -1), Z.value.length ? (w(), o("span",
|
|
3927
|
+
})], -1), Z.value.length ? (w(), o("span", Wi, P(Z.value.length), 1)) : a("", !0)]),
|
|
3928
3928
|
_: 1
|
|
3929
3929
|
}, 8, ["class", "onClick"])]),
|
|
3930
3930
|
default: K(() => [s("fieldset", {
|
|
@@ -3936,21 +3936,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3936
3936
|
}, [
|
|
3937
3937
|
r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
3938
3938
|
r[9] ||= s("p", { class: "g-sort-builder-help" }, " Click a column header to change the primary sort. Use Shift-click as a shortcut to add or update secondary sorts. ", -1),
|
|
3939
|
-
Z.value.length ? (w(), o("ol",
|
|
3939
|
+
Z.value.length ? (w(), o("ol", Gi, [(w(!0), o(e, null, k(Z.value, (e, t) => (w(), o("li", {
|
|
3940
3940
|
key: e.key,
|
|
3941
3941
|
class: "g-sort-builder-rule",
|
|
3942
3942
|
tabindex: "-1",
|
|
3943
3943
|
"data-sort-row-key": String(e.key),
|
|
3944
|
-
"aria-label": `${
|
|
3944
|
+
"aria-label": `${he(e.key)} ${be(e.order)} sort, priority ${t + 1}`
|
|
3945
3945
|
}, [
|
|
3946
|
-
s("span",
|
|
3947
|
-
s("span",
|
|
3946
|
+
s("span", qi, P(t + 1), 1),
|
|
3947
|
+
s("span", Ji, P(he(e.key)), 1),
|
|
3948
3948
|
s("button", {
|
|
3949
3949
|
type: "button",
|
|
3950
3950
|
class: "g-sort-builder-direction",
|
|
3951
|
-
"aria-label": `Toggle ${
|
|
3952
|
-
onClick: (t) =>
|
|
3953
|
-
}, [s("span",
|
|
3951
|
+
"aria-label": `Toggle ${he(e.key)} sort direction`,
|
|
3952
|
+
onClick: (t) => Te(e.key)
|
|
3953
|
+
}, [s("span", Xi, P(be(e.order)), 1), s("span", Zi, [(w(), o("svg", {
|
|
3954
3954
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3955
3955
|
viewBox: "0 0 640 640",
|
|
3956
3956
|
height: "1.25em",
|
|
@@ -3958,22 +3958,22 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3958
3958
|
}, [...r[2] ||= [s("path", {
|
|
3959
3959
|
fill: "currentColor",
|
|
3960
3960
|
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"
|
|
3961
|
-
}, null, -1)]], 4))])], 8,
|
|
3961
|
+
}, null, -1)]], 4))])], 8, Yi),
|
|
3962
3962
|
s("button", {
|
|
3963
3963
|
type: "button",
|
|
3964
3964
|
class: "g-sort-builder-remove",
|
|
3965
|
-
"aria-label": `Remove ${
|
|
3966
|
-
onClick: (t) =>
|
|
3967
|
-
}, " Remove ", 8,
|
|
3968
|
-
], 8,
|
|
3969
|
-
pe.value.length ? (w(), o("div",
|
|
3965
|
+
"aria-label": `Remove ${he(e.key)} sort`,
|
|
3966
|
+
onClick: (t) => Ee(e.key)
|
|
3967
|
+
}, " Remove ", 8, Qi)
|
|
3968
|
+
], 8, Ki))), 128))])) : (w(), o("p", $i, " No active sort rules. ")),
|
|
3969
|
+
pe.value.length ? (w(), o("div", ea, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", ta, [(w(!0), o(e, null, k(pe.value, (e) => (w(), o("li", {
|
|
3970
3970
|
key: e.key,
|
|
3971
3971
|
class: "g-sort-builder-add-item"
|
|
3972
|
-
}, [s("span",
|
|
3972
|
+
}, [s("span", na, P(e.label), 1), s("div", ra, [s("button", {
|
|
3973
3973
|
type: "button",
|
|
3974
3974
|
class: "g-sort-builder-direction",
|
|
3975
3975
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
3976
|
-
onClick: (t) =>
|
|
3976
|
+
onClick: (t) => we(e.key, 1)
|
|
3977
3977
|
}, [...r[3] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
|
|
3978
3978
|
class: "sort-indicator",
|
|
3979
3979
|
"aria-hidden": "true"
|
|
@@ -3984,21 +3984,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3984
3984
|
}, [s("path", {
|
|
3985
3985
|
fill: "currentColor",
|
|
3986
3986
|
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"
|
|
3987
|
-
})])], -1)]], 8,
|
|
3987
|
+
})])], -1)]], 8, ia), s("button", {
|
|
3988
3988
|
type: "button",
|
|
3989
3989
|
class: "g-sort-builder-direction",
|
|
3990
3990
|
"aria-label": `Add ${e.label} descending sort`,
|
|
3991
|
-
onClick: (t) =>
|
|
3992
|
-
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span",
|
|
3991
|
+
onClick: (t) => we(e.key, -1)
|
|
3992
|
+
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", oa, [(w(), o("svg", sa, [...r[4] ||= [s("path", {
|
|
3993
3993
|
fill: "currentColor",
|
|
3994
3994
|
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"
|
|
3995
|
-
}, null, -1)]]))])], 8,
|
|
3996
|
-
Z.value.length ? (w(), i(
|
|
3995
|
+
}, null, -1)]]))])], 8, aa)])]))), 128))])])) : a("", !0),
|
|
3996
|
+
Z.value.length ? (w(), i($, {
|
|
3997
3997
|
key: 3,
|
|
3998
3998
|
outlined: "",
|
|
3999
3999
|
size: "small",
|
|
4000
4000
|
class: "g-sort-builder-clear",
|
|
4001
|
-
onClick:
|
|
4001
|
+
onClick: De
|
|
4002
4002
|
}, {
|
|
4003
4003
|
default: K(() => [...r[7] ||= [c(" Clear sort ", -1)]]),
|
|
4004
4004
|
_: 1
|
|
@@ -4006,14 +4006,14 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4006
4006
|
], 512)]),
|
|
4007
4007
|
_: 1
|
|
4008
4008
|
})])) : a("", !0),
|
|
4009
|
-
Ye.value ? (w(), o("div",
|
|
4010
|
-
trigger: K(({ toggle: e }) => [l(
|
|
4009
|
+
Ye.value ? (w(), o("div", ca, [l(ut, null, {
|
|
4010
|
+
trigger: K(({ toggle: e }) => [l($, {
|
|
4011
4011
|
size: "small",
|
|
4012
4012
|
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Je.value }]),
|
|
4013
4013
|
"aria-label": "Choose visible columns",
|
|
4014
4014
|
onClick: e
|
|
4015
4015
|
}, {
|
|
4016
|
-
default: K(() => [(w(), o("svg",
|
|
4016
|
+
default: K(() => [(w(), o("svg", la, [...r[10] ||= [s("path", {
|
|
4017
4017
|
fill: "currentColor",
|
|
4018
4018
|
d: "M64 160C64 142.3 78.3 128 96 128L480 128C497.7 128 512 142.3 512 160C512 177.7 497.7 192 480 192L96 192C78.3 192 64 177.7 64 160zM128 320C128 302.3 142.3 288 160 288L544 288C561.7 288 576 302.3 576 320C576 337.7 561.7 352 544 352L160 352C142.3 352 128 337.7 128 320zM512 480C512 497.7 497.7 512 480 512L96 512C78.3 512 64 497.7 64 480C64 462.3 78.3 448 96 448L480 448C497.7 448 512 462.3 512 480z"
|
|
4019
4019
|
}, null, -1)]]))]),
|
|
@@ -4022,10 +4022,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4022
4022
|
default: K(() => [s("fieldset", {
|
|
4023
4023
|
class: "g-column-visibility-popover",
|
|
4024
4024
|
"aria-labelledby": `${R(G)}-column-visibility-heading`
|
|
4025
|
-
}, [s("div",
|
|
4025
|
+
}, [s("div", da, [s("span", {
|
|
4026
4026
|
id: `${R(G)}-column-visibility-heading`,
|
|
4027
4027
|
class: "g-column-visibility-heading"
|
|
4028
|
-
}, " Shown columns ", 8,
|
|
4028
|
+
}, " Shown columns ", 8, fa), s("span", pa, [l($, {
|
|
4029
4029
|
text: "",
|
|
4030
4030
|
size: "small",
|
|
4031
4031
|
class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Je.value }]),
|
|
@@ -4033,18 +4033,18 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4033
4033
|
}, {
|
|
4034
4034
|
default: K(() => [...r[11] ||= [c(" Show All ", -1)]]),
|
|
4035
4035
|
_: 1
|
|
4036
|
-
}, 8, ["class"])])]), s("div",
|
|
4036
|
+
}, 8, ["class"])])]), s("div", ma, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
|
|
4037
4037
|
key: e.key,
|
|
4038
4038
|
class: "g-column-visibility-option"
|
|
4039
4039
|
}, [s("input", {
|
|
4040
4040
|
checked: Qe(e),
|
|
4041
4041
|
type: "checkbox",
|
|
4042
4042
|
onChange: (t) => $e(e, t.target.checked)
|
|
4043
|
-
}, null, 40,
|
|
4043
|
+
}, null, 40, ha), s("span", null, P(e.label), 1)]))), 128))])], 8, ua)]),
|
|
4044
4044
|
_: 1
|
|
4045
4045
|
})])) : a("", !0),
|
|
4046
|
-
Xe.value ? (w(), o("div",
|
|
4047
|
-
s("div",
|
|
4046
|
+
Xe.value ? (w(), o("div", ga, [A(n.$slots, "controls")])) : a("", !0),
|
|
4047
|
+
s("div", _a, [R(S) ? (w(), i($, {
|
|
4048
4048
|
key: 0,
|
|
4049
4049
|
outlined: "",
|
|
4050
4050
|
size: "small",
|
|
@@ -4064,7 +4064,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4064
4064
|
_: 1
|
|
4065
4065
|
}, 8, ["onClick"])) : a("", !0)])
|
|
4066
4066
|
]),
|
|
4067
|
-
tt.value ? (w(), o("div",
|
|
4067
|
+
tt.value ? (w(), o("div", va, [l(xi, {
|
|
4068
4068
|
start: t.startIndex,
|
|
4069
4069
|
"page-size": t.pageSize,
|
|
4070
4070
|
"page-sizes": t.pageSizes,
|
|
@@ -4077,7 +4077,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4077
4077
|
"page-sizes",
|
|
4078
4078
|
"total"
|
|
4079
4079
|
])])) : a("", !0),
|
|
4080
|
-
s("div",
|
|
4080
|
+
s("div", ya, [s("span", ba, P(Ze.value) + " results", 1), A(n.$slots, "right-controls")])
|
|
4081
4081
|
], 512)) : a("", !0),
|
|
4082
4082
|
s("div", {
|
|
4083
4083
|
ref_key: "tableWrapRef",
|
|
@@ -4090,49 +4090,49 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4090
4090
|
ref: re,
|
|
4091
4091
|
"aria-rowcount": Ze.value
|
|
4092
4092
|
}, [
|
|
4093
|
-
s("caption",
|
|
4093
|
+
s("caption", Sa, P([
|
|
4094
4094
|
t.label,
|
|
4095
|
-
|
|
4096
|
-
|
|
4095
|
+
ve.value,
|
|
4096
|
+
ye.value
|
|
4097
4097
|
].filter(Boolean).join(", ")), 1),
|
|
4098
|
-
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col",
|
|
4098
|
+
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", Ca)) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("col", {
|
|
4099
4099
|
key: e.key,
|
|
4100
4100
|
"data-column-key": String(e.key),
|
|
4101
4101
|
style: v(He(e))
|
|
4102
|
-
}, null, 12,
|
|
4103
|
-
s("thead",
|
|
4102
|
+
}, null, 12, wa))), 128))]),
|
|
4103
|
+
s("thead", Ta, [s("tr", Ea, [t.bulkSelectionEnabled ? (w(), o("th", Da, [s("input", {
|
|
4104
4104
|
type: "checkbox",
|
|
4105
4105
|
checked: D.value,
|
|
4106
4106
|
indeterminate: j.value,
|
|
4107
4107
|
onChange: N,
|
|
4108
4108
|
"aria-label": D.value ? "Deselect all rows" : "Select all rows",
|
|
4109
4109
|
class: "g-bulk-select-checkbox"
|
|
4110
|
-
}, null, 40,
|
|
4110
|
+
}, null, 40, Oa)])) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("th", {
|
|
4111
4111
|
key: e.key,
|
|
4112
4112
|
id: `${R(G)}-th-${String(e.key)}`,
|
|
4113
|
-
"aria-sort":
|
|
4113
|
+
"aria-sort": ge(e.key),
|
|
4114
4114
|
class: _([
|
|
4115
4115
|
"g-th",
|
|
4116
4116
|
{ "g-th--resizable": t.resizableColumns },
|
|
4117
|
-
{ sorted:
|
|
4117
|
+
{ sorted: Q(e.key) !== -1 },
|
|
4118
4118
|
{ filtered: ot(e) }
|
|
4119
4119
|
]),
|
|
4120
4120
|
scope: "col"
|
|
4121
|
-
}, [s("div",
|
|
4121
|
+
}, [s("div", Aa, [e.sortable ? (w(), o("button", {
|
|
4122
4122
|
key: 0,
|
|
4123
4123
|
type: "button",
|
|
4124
4124
|
class: "g-column-head",
|
|
4125
4125
|
"aria-describedby": `${R(G)}-sort-desc-${String(e.key)}`,
|
|
4126
|
-
onClick: (t) =>
|
|
4127
|
-
}, [c(P(e.label) + " ", 1),
|
|
4126
|
+
onClick: (t) => Ce(e, t.shiftKey)
|
|
4127
|
+
}, [c(P(e.label) + " ", 1), Q(e.key) === -1 ? a("", !0) : (w(), o("span", Ma, [(w(), o("svg", {
|
|
4128
4128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4129
4129
|
viewBox: "0 0 640 640",
|
|
4130
4130
|
height: "1.5em",
|
|
4131
|
-
style: v({ transform: `rotate(${
|
|
4131
|
+
style: v({ transform: `rotate(${me(e.key)?.order === 1 ? 0 : 180}deg)` })
|
|
4132
4132
|
}, [...r[13] ||= [s("path", {
|
|
4133
4133
|
fill: "currentColor",
|
|
4134
4134
|
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"
|
|
4135
|
-
}, null, -1)]], 4))]))], 8,
|
|
4135
|
+
}, null, -1)]], 4))]))], 8, ja)) : (w(), o("span", Na, P(e.label), 1)), e.filter ? (w(), i(ut, {
|
|
4136
4136
|
key: 2,
|
|
4137
4137
|
"aria-labelledby": `${R(G)}-filter-label-${String(e.key)}`
|
|
4138
4138
|
}, {
|
|
@@ -4151,8 +4151,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4151
4151
|
}, [s("path", {
|
|
4152
4152
|
fill: "currentColor",
|
|
4153
4153
|
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"
|
|
4154
|
-
})], -1)]], 10,
|
|
4155
|
-
default: K(() => [e.filter.type === "select" ? (w(), i(
|
|
4154
|
+
})], -1)]], 10, Pa)]),
|
|
4155
|
+
default: K(() => [e.filter.type === "select" ? (w(), i(Xt, {
|
|
4156
4156
|
key: 0,
|
|
4157
4157
|
"model-value": pt(e),
|
|
4158
4158
|
"onUpdate:modelValue": (t) => mt(e, t),
|
|
@@ -4167,7 +4167,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4167
4167
|
"onUpdate:modelValue",
|
|
4168
4168
|
"options",
|
|
4169
4169
|
"search-description"
|
|
4170
|
-
])) : e.filter.type === "search" ? (w(), o("div",
|
|
4170
|
+
])) : e.filter.type === "search" ? (w(), o("div", Fa, [r[15] ||= s("span", {
|
|
4171
4171
|
class: "g-filter-search-icon",
|
|
4172
4172
|
"aria-hidden": "true"
|
|
4173
4173
|
}, [s("svg", {
|
|
@@ -4184,21 +4184,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4184
4184
|
onInput: (t) => at(e, t.target.value),
|
|
4185
4185
|
placeholder: e.filter.placeholder,
|
|
4186
4186
|
"aria-label": `Search ${e.label}`
|
|
4187
|
-
}, null, 40,
|
|
4187
|
+
}, null, 40, Ia)])) : e.filter.type === "toggle" ? (w(), o("div", La, [s("div", Ra, [
|
|
4188
4188
|
s("input", {
|
|
4189
4189
|
type: "checkbox",
|
|
4190
4190
|
checked: it(e) === !0,
|
|
4191
4191
|
onChange: (t) => at(e, t.target.checked),
|
|
4192
4192
|
id: `${R(G)}-filter-${String(e.key)}`,
|
|
4193
4193
|
"aria-describedby": e.filter.description ? `${R(G)}-filter-description-${String(e.key)}` : void 0
|
|
4194
|
-
}, null, 40,
|
|
4195
|
-
s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9,
|
|
4194
|
+
}, null, 40, za),
|
|
4195
|
+
s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, Ba),
|
|
4196
4196
|
e.filter.description ? (w(), o("span", {
|
|
4197
4197
|
key: 0,
|
|
4198
4198
|
class: "g-filter-description",
|
|
4199
4199
|
id: `${R(G)}-filter-description-${String(e.key)}`
|
|
4200
|
-
}, P(e.filter.description), 9,
|
|
4201
|
-
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(
|
|
4200
|
+
}, P(e.filter.description), 9, Va)) : a("", !0)
|
|
4201
|
+
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Br, {
|
|
4202
4202
|
key: 3,
|
|
4203
4203
|
"model-value": ht(e),
|
|
4204
4204
|
"onUpdate:modelValue": (t) => gt(e, t),
|
|
@@ -4213,7 +4213,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4213
4213
|
"options",
|
|
4214
4214
|
"placeholder",
|
|
4215
4215
|
"search-description"
|
|
4216
|
-
])) : e.filter.type === "multi-select" ? (w(), o("div",
|
|
4216
|
+
])) : e.filter.type === "multi-select" ? (w(), o("div", Ha, [l(Zr, {
|
|
4217
4217
|
"model-value": ht(e),
|
|
4218
4218
|
"onUpdate:modelValue": (t) => gt(e, t),
|
|
4219
4219
|
options: ft(e),
|
|
@@ -4222,7 +4222,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4222
4222
|
"model-value",
|
|
4223
4223
|
"onUpdate:modelValue",
|
|
4224
4224
|
"options"
|
|
4225
|
-
]), ot(e) ? (w(), i(
|
|
4225
|
+
]), ot(e) ? (w(), i($, {
|
|
4226
4226
|
key: 0,
|
|
4227
4227
|
class: "clear-multiselect-btn",
|
|
4228
4228
|
theme: "accent",
|
|
@@ -4249,11 +4249,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4249
4249
|
onClick: r[0] ||= q(() => {}, ["stop", "prevent"]),
|
|
4250
4250
|
onKeydown: (t) => Ve(t, e.key),
|
|
4251
4251
|
onPointerdown: (t) => Be(t, e.key)
|
|
4252
|
-
}, null, 42,
|
|
4253
|
-
t.data.length === 0 ? (w(), o("tbody",
|
|
4252
|
+
}, null, 42, Ua)) : a("", !0)], 10, ka))), 128))])]),
|
|
4253
|
+
t.data.length === 0 ? (w(), o("tbody", Wa, [s("tr", Ga, [s("td", {
|
|
4254
4254
|
class: "g-table-empty",
|
|
4255
4255
|
colspan: Ke.value.length + +!!t.bulkSelectionEnabled
|
|
4256
|
-
}, [A(n.$slots, "empty")], 8,
|
|
4256
|
+
}, [A(n.$slots, "empty")], 8, Ka)])])) : (w(), i(mr, {
|
|
4257
4257
|
key: 1,
|
|
4258
4258
|
data: t.data,
|
|
4259
4259
|
columns: Ke.value,
|
|
@@ -4282,11 +4282,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4282
4282
|
"table-id",
|
|
4283
4283
|
"change-tracker"
|
|
4284
4284
|
]))
|
|
4285
|
-
], 10,
|
|
4285
|
+
], 10, xa), s("div", qa, [(w(!0), o(e, null, k(Ke.value, (t) => (w(), o(e, { key: t.key }, [t.sortable ? (w(), o("span", {
|
|
4286
4286
|
key: 0,
|
|
4287
4287
|
id: `${R(G)}-sort-desc-${String(t.key)}`
|
|
4288
|
-
}, P(
|
|
4289
|
-
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div",
|
|
4288
|
+
}, P(_e(t.key)), 9, Ja)) : a("", !0), t.filter ? (w(), o(e, { key: 1 }, [s("span", { id: `${R(G)}-filter-desc-${String(t.key)}` }, P(t.label) + " column" + P(ot(t) ? ", filtered" : ""), 9, Ya), s("span", { id: `${R(G)}-filter-label-${String(t.key)}` }, "Filter " + P(t.label) + " column", 9, Xa)], 64)) : a("", !0)], 64))), 128))])], 512),
|
|
4289
|
+
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Za, [s("span", Qa, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", $a, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l($, {
|
|
4290
4290
|
theme: e.theme || "accent",
|
|
4291
4291
|
onClick: (t) => z(e.id),
|
|
4292
4292
|
size: "small"
|
|
@@ -4296,7 +4296,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4296
4296
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
4297
4297
|
])], 4));
|
|
4298
4298
|
}
|
|
4299
|
-
}),
|
|
4299
|
+
}), to = ["id"], no = { class: "g-modal-inner" }, ro = { class: "g-modal-header" }, io = ["id"], ao = ["id"], oo = /* @__PURE__ */ u({
|
|
4300
4300
|
__name: "GModal",
|
|
4301
4301
|
props: {
|
|
4302
4302
|
label: {},
|
|
@@ -4310,11 +4310,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4310
4310
|
},
|
|
4311
4311
|
emits: ["close"],
|
|
4312
4312
|
setup(e, { emit: c }) {
|
|
4313
|
-
let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: b } =
|
|
4313
|
+
let u = e, d = c, f = U("dialog"), p = O(!0), m = B(), { pop: g, push: _, isTop: v, zIndex: b } = Ye(m, !0, !0), { deactivate: S, activate: C } = rt(f, v);
|
|
4314
4314
|
function T() {
|
|
4315
4315
|
d("close");
|
|
4316
4316
|
}
|
|
4317
|
-
|
|
4317
|
+
it([f], v, p, T, g), x(() => {
|
|
4318
4318
|
_(), C();
|
|
4319
4319
|
}), y(() => {
|
|
4320
4320
|
g(), S();
|
|
@@ -4340,12 +4340,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4340
4340
|
ref_key: "dialog",
|
|
4341
4341
|
ref: f,
|
|
4342
4342
|
style: { zIndex: R(b) }
|
|
4343
|
-
}), [s("div",
|
|
4343
|
+
}), [s("div", no, [s("div", ro, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
|
|
4344
4344
|
key: 0,
|
|
4345
4345
|
id: "modal-label-" + R(m),
|
|
4346
4346
|
class: "g-modal-label",
|
|
4347
4347
|
tabindex: "-1"
|
|
4348
|
-
}, P(e.label), 9,
|
|
4348
|
+
}, P(e.label), 9, io)), s("button", {
|
|
4349
4349
|
class: "g-modal-close",
|
|
4350
4350
|
onClick: T,
|
|
4351
4351
|
"aria-label": "Close"
|
|
@@ -4360,36 +4360,36 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4360
4360
|
})], -1)]])]), s("div", {
|
|
4361
4361
|
id: "modal-description-" + R(m),
|
|
4362
4362
|
class: "g-modal-content"
|
|
4363
|
-
}, [A(r.$slots, "default")], 8,
|
|
4363
|
+
}, [A(r.$slots, "default")], 8, ao)])], 16, to)]),
|
|
4364
4364
|
_: 3
|
|
4365
4365
|
})]));
|
|
4366
4366
|
}
|
|
4367
|
-
}),
|
|
4367
|
+
}), so = /* @__PURE__ */ u({
|
|
4368
4368
|
__name: "GDetailList",
|
|
4369
4369
|
props: { variant: { default: "grid" } },
|
|
4370
4370
|
setup(e) {
|
|
4371
4371
|
let t = e;
|
|
4372
4372
|
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
|
|
4373
4373
|
}
|
|
4374
|
-
}),
|
|
4374
|
+
}), co = { class: "g-detail-list-item" }, lo = { class: "g-detail-list-item__label" }, uo = { class: "g-detail-list-item__value" }, fo = /* @__PURE__ */ u({
|
|
4375
4375
|
__name: "GDetailListItem",
|
|
4376
4376
|
props: { label: {} },
|
|
4377
4377
|
setup(e) {
|
|
4378
|
-
return (t, n) => (w(), o("div",
|
|
4378
|
+
return (t, n) => (w(), o("div", co, [s("dt", lo, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", uo, [A(t.$slots, "default")])]));
|
|
4379
4379
|
}
|
|
4380
|
-
}),
|
|
4380
|
+
}), po = {
|
|
4381
4381
|
key: 0,
|
|
4382
4382
|
class: "g-scroll-lock-overlay"
|
|
4383
|
-
},
|
|
4383
|
+
}, mo = /* @__PURE__ */ u({
|
|
4384
4384
|
__name: "GOverlay",
|
|
4385
4385
|
setup(e) {
|
|
4386
|
-
let { hasScrollLock: t } =
|
|
4386
|
+
let { hasScrollLock: t } = Xe();
|
|
4387
4387
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
4388
|
-
default: K(() => [R(t) ? (w(), o("div",
|
|
4388
|
+
default: K(() => [R(t) ? (w(), o("div", po)) : a("", !0)]),
|
|
4389
4389
|
_: 1
|
|
4390
4390
|
}));
|
|
4391
4391
|
}
|
|
4392
|
-
}),
|
|
4392
|
+
}), ho = { class: "popover-content" }, go = { class: "year-dropdown" }, _o = { class: "month-selector" }, vo = /* @__PURE__ */ u({
|
|
4393
4393
|
__name: "GTermSelectorControl",
|
|
4394
4394
|
props: /*@__PURE__*/ m({
|
|
4395
4395
|
termYears: { default: () => ["2026"] },
|
|
@@ -4410,7 +4410,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4410
4410
|
emits: ["update:modelValue"],
|
|
4411
4411
|
setup(e) {
|
|
4412
4412
|
let t = V(e, "modelValue");
|
|
4413
|
-
return (n, r) => (w(), o("div",
|
|
4413
|
+
return (n, r) => (w(), o("div", ho, [s("div", go, [l(Xt, {
|
|
4414
4414
|
modelValue: t.value.year,
|
|
4415
4415
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
4416
4416
|
options: e.termYears,
|
|
@@ -4419,7 +4419,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4419
4419
|
"modelValue",
|
|
4420
4420
|
"options",
|
|
4421
4421
|
"label"
|
|
4422
|
-
])]), s("div",
|
|
4422
|
+
])]), s("div", _o, [l(Tt, {
|
|
4423
4423
|
modelValue: t.value.name,
|
|
4424
4424
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
4425
4425
|
options: e.termNames,
|
|
@@ -4431,7 +4431,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4431
4431
|
"label"
|
|
4432
4432
|
])])]));
|
|
4433
4433
|
}
|
|
4434
|
-
}),
|
|
4434
|
+
}), yo = { class: "g-term-selector" }, bo = { class: "g-term-label" }, xo = /* @__PURE__ */ u({
|
|
4435
4435
|
__name: "GTermSelector",
|
|
4436
4436
|
props: /*@__PURE__*/ m({
|
|
4437
4437
|
heading: { default: "Period Selection" },
|
|
@@ -4453,8 +4453,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4453
4453
|
emits: ["update:modelValue"],
|
|
4454
4454
|
setup(e) {
|
|
4455
4455
|
let t = V(e, "modelValue"), n = `${B()}-heading`;
|
|
4456
|
-
return (r, i) => (w(), o("div",
|
|
4457
|
-
trigger: K(({ toggle: e, open: n, popoverId: r }) => [l(
|
|
4456
|
+
return (r, i) => (w(), o("div", yo, [l(ut, { "aria-labelledby": n }, {
|
|
4457
|
+
trigger: K(({ toggle: e, open: n, popoverId: r }) => [l($, {
|
|
4458
4458
|
class: "g-term-selector-button",
|
|
4459
4459
|
theme: "none",
|
|
4460
4460
|
outlined: "",
|
|
@@ -4469,7 +4469,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4469
4469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4470
4470
|
viewBox: "0 0 640 640"
|
|
4471
4471
|
}, [s("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),
|
|
4472
|
-
s("span",
|
|
4472
|
+
s("span", bo, P(t.value?.name) + " " + P(t.value?.year), 1),
|
|
4473
4473
|
i[2] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
4474
4474
|
role: "none",
|
|
4475
4475
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4486,18 +4486,18 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4486
4486
|
id: n,
|
|
4487
4487
|
class: "g-popover-title",
|
|
4488
4488
|
tabindex: "-1"
|
|
4489
|
-
}, P(e.heading), 1), l(
|
|
4489
|
+
}, P(e.heading), 1), l(vo, h(r.$props, {
|
|
4490
4490
|
modelValue: t.value,
|
|
4491
4491
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e
|
|
4492
4492
|
}), null, 16, ["modelValue"])]),
|
|
4493
4493
|
_: 1
|
|
4494
4494
|
})]));
|
|
4495
4495
|
}
|
|
4496
|
-
}),
|
|
4496
|
+
}), So = { class: "g-user-menu" }, Co = [
|
|
4497
4497
|
"aria-label",
|
|
4498
4498
|
"aria-expanded",
|
|
4499
4499
|
"onClick"
|
|
4500
|
-
],
|
|
4500
|
+
], wo = { class: "g-user-menu__popover" }, To = { class: "g-user-menu__list" }, Eo = /* @__PURE__ */ u({
|
|
4501
4501
|
__name: "GUserMenu",
|
|
4502
4502
|
props: {
|
|
4503
4503
|
initials: {},
|
|
@@ -4512,7 +4512,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4512
4512
|
e.target?.closest("a") && (r.value = !1);
|
|
4513
4513
|
}
|
|
4514
4514
|
let u = H();
|
|
4515
|
-
return (d, f) => (w(), o("div",
|
|
4515
|
+
return (d, f) => (w(), o("div", So, [l(ut, {
|
|
4516
4516
|
modelValue: r.value,
|
|
4517
4517
|
"onUpdate:modelValue": f[0] ||= (e) => r.value = e,
|
|
4518
4518
|
minimal: ""
|
|
@@ -4524,8 +4524,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4524
4524
|
"aria-expanded": r.value,
|
|
4525
4525
|
"aria-haspopup": "menu",
|
|
4526
4526
|
onClick: e
|
|
4527
|
-
}, P(t.initials), 13,
|
|
4528
|
-
default: K(() => [s("div",
|
|
4527
|
+
}, P(t.initials), 13, Co)]),
|
|
4528
|
+
default: K(() => [s("div", wo, [s("h2", {
|
|
4529
4529
|
id: n,
|
|
4530
4530
|
ref_key: "emailHeading",
|
|
4531
4531
|
ref: a,
|
|
@@ -4535,11 +4535,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4535
4535
|
class: "g-user-menu__nav",
|
|
4536
4536
|
"aria-labelledby": n,
|
|
4537
4537
|
onClick: c
|
|
4538
|
-
}, [s("ul",
|
|
4538
|
+
}, [s("ul", To, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
|
|
4539
4539
|
_: 1
|
|
4540
4540
|
}, 8, ["modelValue"])]));
|
|
4541
4541
|
}
|
|
4542
|
-
}),
|
|
4542
|
+
}), Do = /* @__PURE__ */ u({
|
|
4543
4543
|
__name: "GCurrencyInput",
|
|
4544
4544
|
props: /*@__PURE__*/ m({
|
|
4545
4545
|
label: { default: void 0 },
|
|
@@ -4563,7 +4563,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4563
4563
|
emits: ["update:modelValue"],
|
|
4564
4564
|
setup(e) {
|
|
4565
4565
|
let t = e, n = V(e, "modelValue");
|
|
4566
|
-
return (e, r) => (w(), i(
|
|
4566
|
+
return (e, r) => (w(), i(Ve, h({
|
|
4567
4567
|
modelValue: n.value,
|
|
4568
4568
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
4569
4569
|
name: t.name,
|
|
@@ -4590,7 +4590,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4590
4590
|
"form-key"
|
|
4591
4591
|
]));
|
|
4592
4592
|
}
|
|
4593
|
-
}),
|
|
4593
|
+
}), Oo = /* @__PURE__ */ u({
|
|
4594
4594
|
__name: "GEmailInput",
|
|
4595
4595
|
props: /*@__PURE__*/ m({
|
|
4596
4596
|
label: { default: void 0 },
|
|
@@ -4613,7 +4613,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4613
4613
|
emits: ["update:modelValue"],
|
|
4614
4614
|
setup(e) {
|
|
4615
4615
|
let t = V(e, "modelValue");
|
|
4616
|
-
return (n, r) => (w(), i(
|
|
4616
|
+
return (n, r) => (w(), i(Ve, h({
|
|
4617
4617
|
modelValue: t.value,
|
|
4618
4618
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
4619
4619
|
name: e.name,
|
|
@@ -4635,13 +4635,13 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4635
4635
|
"instructions"
|
|
4636
4636
|
]));
|
|
4637
4637
|
}
|
|
4638
|
-
}),
|
|
4638
|
+
}), ko = ["for"], Ao = {
|
|
4639
4639
|
key: 0,
|
|
4640
4640
|
class: "g-file-input-required"
|
|
4641
|
-
},
|
|
4641
|
+
}, jo = {
|
|
4642
4642
|
key: 0,
|
|
4643
4643
|
class: "g-file-input-box-header"
|
|
4644
|
-
},
|
|
4644
|
+
}, Mo = ["id"], No = [
|
|
4645
4645
|
"id",
|
|
4646
4646
|
"disabled",
|
|
4647
4647
|
"required",
|
|
@@ -4650,11 +4650,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4650
4650
|
"aria-invalid",
|
|
4651
4651
|
"aria-describedby",
|
|
4652
4652
|
"aria-errormessage"
|
|
4653
|
-
],
|
|
4653
|
+
], Po = {
|
|
4654
4654
|
key: 1,
|
|
4655
4655
|
class: "g-file-input-pills",
|
|
4656
4656
|
"aria-label": "Selected files"
|
|
4657
|
-
},
|
|
4657
|
+
}, Fo = /* @__PURE__ */ u({
|
|
4658
4658
|
inheritAttrs: !1,
|
|
4659
4659
|
__name: "GFileInput",
|
|
4660
4660
|
props: /*@__PURE__*/ m({
|
|
@@ -4684,7 +4684,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4684
4684
|
}),
|
|
4685
4685
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
4686
4686
|
setup(t, { emit: n }) {
|
|
4687
|
-
let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } =
|
|
4687
|
+
let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = Me({
|
|
4688
4688
|
name: i.name,
|
|
4689
4689
|
value: u,
|
|
4690
4690
|
errors: I(i, "errors"),
|
|
@@ -4711,12 +4711,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4711
4711
|
key: 0,
|
|
4712
4712
|
for: R(d),
|
|
4713
4713
|
class: "g-file-input-label"
|
|
4714
|
-
}, [c(P(t.label) + " ", 1), t.required ? (w(), o("span",
|
|
4714
|
+
}, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", Ao, "*")) : a("", !0)], 8, ko)) : a("", !0),
|
|
4715
4715
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
4716
|
-
t.instructions ? (w(), o("div",
|
|
4716
|
+
t.instructions ? (w(), o("div", jo, [s("span", {
|
|
4717
4717
|
id: "instructions-" + R(d),
|
|
4718
4718
|
class: "g-file-input-instructions"
|
|
4719
|
-
}, P(t.instructions), 9,
|
|
4719
|
+
}, P(t.instructions), 9, Mo)])) : a("", !0),
|
|
4720
4720
|
s("input", {
|
|
4721
4721
|
id: R(d),
|
|
4722
4722
|
type: "file",
|
|
@@ -4729,8 +4729,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4729
4729
|
"aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
|
|
4730
4730
|
"aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
|
|
4731
4731
|
onChange: g
|
|
4732
|
-
}, null, 40,
|
|
4733
|
-
t.multiple && b.value.length > 0 ? (w(), o("ul",
|
|
4732
|
+
}, null, 40, No),
|
|
4733
|
+
t.multiple && b.value.length > 0 ? (w(), o("ul", Po, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
|
|
4734
4734
|
key: e,
|
|
4735
4735
|
class: "g-file-input-pill"
|
|
4736
4736
|
}, [r[0] ||= s("svg", {
|
|
@@ -4740,13 +4740,13 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4740
4740
|
viewBox: "0 0 640 640"
|
|
4741
4741
|
}, [s("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), c(" " + P(e), 1)]))), 128))])) : a("", !0)
|
|
4742
4742
|
], 2),
|
|
4743
|
-
l(
|
|
4743
|
+
l(Pe, {
|
|
4744
4744
|
errors: v.value,
|
|
4745
4745
|
id: "error-message-" + R(d)
|
|
4746
4746
|
}, null, 8, ["errors", "id"])
|
|
4747
4747
|
], 2));
|
|
4748
4748
|
}
|
|
4749
|
-
}),
|
|
4749
|
+
}), Io = /* @__PURE__ */ u({
|
|
4750
4750
|
__name: "GDateInput",
|
|
4751
4751
|
props: /*@__PURE__*/ m({
|
|
4752
4752
|
label: { default: void 0 },
|
|
@@ -4770,7 +4770,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4770
4770
|
emits: ["update:modelValue"],
|
|
4771
4771
|
setup(e) {
|
|
4772
4772
|
let t = e, n = V(e, "modelValue");
|
|
4773
|
-
return (e, r) => (w(), i(
|
|
4773
|
+
return (e, r) => (w(), i(Ve, h({
|
|
4774
4774
|
modelValue: n.value,
|
|
4775
4775
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
4776
4776
|
name: t.name,
|
|
@@ -4794,21 +4794,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4794
4794
|
"form-key"
|
|
4795
4795
|
]));
|
|
4796
4796
|
}
|
|
4797
|
-
}),
|
|
4797
|
+
}), Lo = { class: "g-date-range-input" }, Ro = {
|
|
4798
4798
|
key: 0,
|
|
4799
4799
|
class: "g-date-range-input__label"
|
|
4800
|
-
},
|
|
4800
|
+
}, zo = {
|
|
4801
4801
|
key: 0,
|
|
4802
4802
|
class: "g-date-range-input__required",
|
|
4803
4803
|
"aria-hidden": "true"
|
|
4804
|
-
},
|
|
4804
|
+
}, Bo = {
|
|
4805
4805
|
key: 1,
|
|
4806
4806
|
class: "g-date-range-input__instructions"
|
|
4807
|
-
},
|
|
4807
|
+
}, Vo = { class: "g-date-range-input__fields" }, Ho = {
|
|
4808
4808
|
key: 2,
|
|
4809
4809
|
class: "g-date-range-input__errors",
|
|
4810
4810
|
role: "alert"
|
|
4811
|
-
},
|
|
4811
|
+
}, Uo = /* @__PURE__ */ u({
|
|
4812
4812
|
__name: "GDateRangeInput",
|
|
4813
4813
|
props: /*@__PURE__*/ m({
|
|
4814
4814
|
label: { default: void 0 },
|
|
@@ -4835,7 +4835,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4835
4835
|
}),
|
|
4836
4836
|
emits: ["update:modelValue"],
|
|
4837
4837
|
setup(t) {
|
|
4838
|
-
let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } =
|
|
4838
|
+
let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = Me({
|
|
4839
4839
|
name: n.name,
|
|
4840
4840
|
value: r,
|
|
4841
4841
|
errors: I(n, "errors"),
|
|
@@ -4848,10 +4848,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4848
4848
|
};
|
|
4849
4849
|
}), W(r, (e) => {
|
|
4850
4850
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4851
|
-
}, { deep: !0 }), (t, r) => (w(), o("div",
|
|
4852
|
-
n.label ? (w(), o("div",
|
|
4853
|
-
n.instructions ? (w(), o("div",
|
|
4854
|
-
s("div",
|
|
4851
|
+
}, { deep: !0 }), (t, r) => (w(), o("div", Lo, [
|
|
4852
|
+
n.label ? (w(), o("div", Ro, [c(P(n.label), 1), n.required ? (w(), o("span", zo, " *")) : a("", !0)])) : a("", !0),
|
|
4853
|
+
n.instructions ? (w(), o("div", Bo, P(n.instructions), 1)) : a("", !0),
|
|
4854
|
+
s("div", Vo, [l(Io, {
|
|
4855
4855
|
modelValue: i.value,
|
|
4856
4856
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
4857
4857
|
label: n.startLabel,
|
|
@@ -4863,7 +4863,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4863
4863
|
"label",
|
|
4864
4864
|
"disabled",
|
|
4865
4865
|
"required"
|
|
4866
|
-
]), l(
|
|
4866
|
+
]), l(Io, {
|
|
4867
4867
|
modelValue: u.value,
|
|
4868
4868
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
4869
4869
|
label: n.endLabel,
|
|
@@ -4876,13 +4876,13 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4876
4876
|
"disabled",
|
|
4877
4877
|
"required"
|
|
4878
4878
|
])]),
|
|
4879
|
-
R(d).length > 0 ? (w(), o("div",
|
|
4879
|
+
R(d).length > 0 ? (w(), o("div", Ho, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
|
|
4880
4880
|
key: t,
|
|
4881
4881
|
class: "g-date-range-input__error"
|
|
4882
4882
|
}, P(e), 1))), 128))])) : a("", !0)
|
|
4883
4883
|
]));
|
|
4884
4884
|
}
|
|
4885
|
-
}),
|
|
4885
|
+
}), Wo = ["action", "method"], Go = /* @__PURE__ */ u({
|
|
4886
4886
|
__name: "GForm",
|
|
4887
4887
|
props: /*@__PURE__*/ m({
|
|
4888
4888
|
action: { default: void 0 },
|
|
@@ -4894,7 +4894,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4894
4894
|
}),
|
|
4895
4895
|
emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
|
|
4896
4896
|
setup(e, { emit: t }) {
|
|
4897
|
-
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (
|
|
4897
|
+
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (Q() ? je(n.formKey) : ke());
|
|
4898
4898
|
a || T("form", s), W(() => s.values.value, (e) => {
|
|
4899
4899
|
r.value = { ...e };
|
|
4900
4900
|
}, { deep: !0 }), W(() => r.value, (e) => {
|
|
@@ -4922,9 +4922,9 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4922
4922
|
hasErrors: R(s).hasErrors.value,
|
|
4923
4923
|
values: R(s).values.value,
|
|
4924
4924
|
errors: R(s).errors.value
|
|
4925
|
-
})], 40,
|
|
4925
|
+
})], 40, Wo));
|
|
4926
4926
|
}
|
|
4927
|
-
}),
|
|
4927
|
+
}), Ko = /* @__PURE__ */ u({
|
|
4928
4928
|
__name: "GSubmitButton",
|
|
4929
4929
|
props: {
|
|
4930
4930
|
disabled: {
|
|
@@ -4936,8 +4936,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4936
4936
|
formKey: { default: "default" }
|
|
4937
4937
|
},
|
|
4938
4938
|
setup(e) {
|
|
4939
|
-
let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (
|
|
4940
|
-
return (e, n) => (w(), i(
|
|
4939
|
+
let t = e, n = z(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (Q() ? je(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
|
|
4940
|
+
return (e, n) => (w(), i($, {
|
|
4941
4941
|
type: "submit",
|
|
4942
4942
|
disabled: u.value,
|
|
4943
4943
|
variant: t.variant,
|
|
@@ -4947,11 +4947,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4947
4947
|
_: 3
|
|
4948
4948
|
}, 8, ["disabled", "variant"]));
|
|
4949
4949
|
}
|
|
4950
|
-
}),
|
|
4950
|
+
}), qo = ["for"], Jo = {
|
|
4951
4951
|
key: 0,
|
|
4952
4952
|
class: "g-textarea-required",
|
|
4953
4953
|
"aria-hidden": "true"
|
|
4954
|
-
},
|
|
4954
|
+
}, Yo = ["id"], Xo = [
|
|
4955
4955
|
"value",
|
|
4956
4956
|
"placeholder",
|
|
4957
4957
|
"disabled",
|
|
@@ -4960,11 +4960,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4960
4960
|
"rows",
|
|
4961
4961
|
"maxlength",
|
|
4962
4962
|
"aria-invalid"
|
|
4963
|
-
],
|
|
4963
|
+
], Zo = {
|
|
4964
4964
|
key: 2,
|
|
4965
4965
|
class: "g-textarea-char-count",
|
|
4966
4966
|
"aria-live": "polite"
|
|
4967
|
-
},
|
|
4967
|
+
}, Qo = /* @__PURE__ */ u({
|
|
4968
4968
|
inheritAttrs: !1,
|
|
4969
4969
|
__name: "GTextarea",
|
|
4970
4970
|
props: /*@__PURE__*/ m({
|
|
@@ -4998,7 +4998,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4998
4998
|
}),
|
|
4999
4999
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
5000
5000
|
setup(e, { emit: t }) {
|
|
5001
|
-
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
5001
|
+
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = me({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = Me({
|
|
5002
5002
|
name: n.name,
|
|
5003
5003
|
value: i,
|
|
5004
5004
|
errors: I(n, "errors"),
|
|
@@ -5038,12 +5038,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5038
5038
|
key: 0,
|
|
5039
5039
|
for: m.value,
|
|
5040
5040
|
class: "g-textarea-label"
|
|
5041
|
-
}, [c(P(n.label), 1), n.required ? (w(), o("span",
|
|
5041
|
+
}, [c(P(n.label), 1), n.required ? (w(), o("span", Jo, " *")) : a("", !0)], 8, qo)) : a("", !0),
|
|
5042
5042
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
5043
5043
|
key: 1,
|
|
5044
5044
|
id: "instructions-" + R(u),
|
|
5045
5045
|
class: "g-textarea-instructions"
|
|
5046
|
-
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8,
|
|
5046
|
+
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Yo)) : a("", !0),
|
|
5047
5047
|
s("textarea", h({
|
|
5048
5048
|
ref: "textareaEl",
|
|
5049
5049
|
value: i.value ?? "",
|
|
@@ -5064,15 +5064,15 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5064
5064
|
onInput: T,
|
|
5065
5065
|
onBlur: E,
|
|
5066
5066
|
onPaste: D
|
|
5067
|
-
}), null, 16,
|
|
5068
|
-
n.maxlength === void 0 ? a("", !0) : (w(), o("div",
|
|
5069
|
-
l(
|
|
5067
|
+
}), null, 16, Xo),
|
|
5068
|
+
n.maxlength === void 0 ? a("", !0) : (w(), o("div", Zo, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
|
|
5069
|
+
l(Pe, {
|
|
5070
5070
|
errors: R(v),
|
|
5071
5071
|
id: "error-message-" + R(u)
|
|
5072
5072
|
}, null, 8, ["errors", "id"])
|
|
5073
5073
|
], 2));
|
|
5074
5074
|
}
|
|
5075
|
-
}),
|
|
5075
|
+
}), $o = { class: "g-toggle-wrapper" }, es = ["for"], ts = [
|
|
5076
5076
|
"id",
|
|
5077
5077
|
"checked",
|
|
5078
5078
|
"disabled",
|
|
@@ -5080,7 +5080,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5080
5080
|
"aria-describedby",
|
|
5081
5081
|
"aria-invalid",
|
|
5082
5082
|
"aria-errormessage"
|
|
5083
|
-
],
|
|
5083
|
+
], ns = ["id"], rs = /* @__PURE__ */ u({
|
|
5084
5084
|
__name: "GToggle",
|
|
5085
5085
|
props: /*@__PURE__*/ m({
|
|
5086
5086
|
label: {},
|
|
@@ -5115,11 +5115,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5115
5115
|
n.disabled || (e.key === "n" || e.key === "N" || e.key === "ArrowLeft" ? (l(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y" || e.key === "ArrowRight") && (l(!0), e.preventDefault()));
|
|
5116
5116
|
}
|
|
5117
5117
|
let p = B(), m = B();
|
|
5118
|
-
return (t, n) => (w(), o("div",
|
|
5118
|
+
return (t, n) => (w(), o("div", $o, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
|
|
5119
5119
|
key: 0,
|
|
5120
5120
|
class: "g-label",
|
|
5121
5121
|
for: R(m)
|
|
5122
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
5122
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, es)), s("div", { class: _(["g-toggle", { "g-has-error": e.error }]) }, [s("div", { class: _(["g-toggle-track", [r.value ? "g-right" : "g-left", { "g-disabled": e.disabled }]]) }, [s("span", {
|
|
5123
5123
|
class: _(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
|
|
5124
5124
|
"aria-hidden": "true"
|
|
5125
5125
|
}, null, 2), s("input", {
|
|
@@ -5133,44 +5133,44 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5133
5133
|
"aria-errormessage": e.error ? R(p) + "-error" : void 0,
|
|
5134
5134
|
onChange: d,
|
|
5135
5135
|
onKeydown: f
|
|
5136
|
-
}, null, 40,
|
|
5136
|
+
}, null, 40, ts)], 2)], 2)], 2), e.error ? (w(), o("div", {
|
|
5137
5137
|
key: 0,
|
|
5138
5138
|
id: `${R(p)}-error`,
|
|
5139
5139
|
class: "g-form-error",
|
|
5140
5140
|
role: "alert",
|
|
5141
5141
|
"aria-atomic": "true"
|
|
5142
|
-
}, P(e.error), 9,
|
|
5142
|
+
}, P(e.error), 9, ns)) : a("", !0)]));
|
|
5143
5143
|
}
|
|
5144
|
-
}),
|
|
5145
|
-
function
|
|
5144
|
+
}), is = "g-route-announcer";
|
|
5145
|
+
function as(e) {
|
|
5146
5146
|
return document.getElementById(e) ?? document.querySelector("main");
|
|
5147
5147
|
}
|
|
5148
|
-
function
|
|
5148
|
+
function os(e) {
|
|
5149
5149
|
e.hasAttribute("tabindex") || (e.setAttribute("tabindex", "-1"), e.addEventListener("blur", () => {
|
|
5150
5150
|
e.getAttribute("tabindex") === "-1" && e.removeAttribute("tabindex");
|
|
5151
5151
|
}, { once: !0 }));
|
|
5152
5152
|
}
|
|
5153
|
-
function
|
|
5153
|
+
function ss(e = "main-content", t = !0) {
|
|
5154
5154
|
if (typeof document > "u") return !1;
|
|
5155
|
-
let n =
|
|
5155
|
+
let n = as(e);
|
|
5156
5156
|
if (!n) return !1;
|
|
5157
5157
|
let r = t ? n.querySelector("h1") : null;
|
|
5158
5158
|
for (let e of [r, n]) {
|
|
5159
5159
|
if (!e) continue;
|
|
5160
5160
|
let n = e.hasAttribute("tabindex");
|
|
5161
|
-
if (
|
|
5161
|
+
if (os(e), e.focus({ preventScroll: t }), document.activeElement === e) return !0;
|
|
5162
5162
|
n || e.removeAttribute("tabindex");
|
|
5163
5163
|
}
|
|
5164
5164
|
return !1;
|
|
5165
5165
|
}
|
|
5166
|
-
function
|
|
5167
|
-
let e = document.getElementById(
|
|
5166
|
+
function cs() {
|
|
5167
|
+
let e = document.getElementById(is);
|
|
5168
5168
|
if (e) return {
|
|
5169
5169
|
el: e,
|
|
5170
5170
|
created: !1
|
|
5171
5171
|
};
|
|
5172
5172
|
let t = document.createElement("div");
|
|
5173
|
-
return t.id =
|
|
5173
|
+
return t.id = is, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
|
|
5174
5174
|
position: "absolute",
|
|
5175
5175
|
width: "1px",
|
|
5176
5176
|
height: "1px",
|
|
@@ -5185,10 +5185,10 @@ function os() {
|
|
|
5185
5185
|
created: !0
|
|
5186
5186
|
};
|
|
5187
5187
|
}
|
|
5188
|
-
function
|
|
5188
|
+
function ls() {
|
|
5189
5189
|
return new Promise((e) => requestAnimationFrame(() => e()));
|
|
5190
5190
|
}
|
|
5191
|
-
function
|
|
5191
|
+
function us(e, t = {}) {
|
|
5192
5192
|
let n = O(""), { mainId: r = "main-content", isNewPage: i = (e, t) => e.path !== t.path, focus: a = !0, ready: o, message: s = (e, t) => t ? `Navigated to ${t}` : "" } = t;
|
|
5193
5193
|
if (typeof window > "u") return {
|
|
5194
5194
|
message: D(n),
|
|
@@ -5197,7 +5197,7 @@ function cs(e, t = {}) {
|
|
|
5197
5197
|
};
|
|
5198
5198
|
let c = null, l, u = 0;
|
|
5199
5199
|
function d(e) {
|
|
5200
|
-
n.value = e, c ??=
|
|
5200
|
+
n.value = e, c ??= cs();
|
|
5201
5201
|
let t = c.el;
|
|
5202
5202
|
t.textContent = "", clearTimeout(l), l = setTimeout(() => {
|
|
5203
5203
|
t.textContent = e;
|
|
@@ -5206,9 +5206,9 @@ function cs(e, t = {}) {
|
|
|
5206
5206
|
let p = e.afterEach(async (e, t, n) => {
|
|
5207
5207
|
if (n || !t.matched?.length || !i(e, t)) return;
|
|
5208
5208
|
let c = ++u, l = document.activeElement;
|
|
5209
|
-
if (await g(), await
|
|
5210
|
-
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!
|
|
5211
|
-
f && !e.hash && !m &&
|
|
5209
|
+
if (await g(), await ls(), o && (await o(e, t), await g(), await ls()), c !== u) return;
|
|
5210
|
+
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!as(r)?.contains(p);
|
|
5211
|
+
f && !e.hash && !m && ss(r);
|
|
5212
5212
|
let h = s(e, document.title);
|
|
5213
5213
|
h && d(h);
|
|
5214
5214
|
});
|
|
@@ -5222,7 +5222,7 @@ function cs(e, t = {}) {
|
|
|
5222
5222
|
};
|
|
5223
5223
|
}
|
|
5224
5224
|
// src/components/GSkipLink.vue?vue&type=script&setup=true&lang.ts
|
|
5225
|
-
var
|
|
5225
|
+
var ds = ["href"], fs = /*@__PURE__*/ u({
|
|
5226
5226
|
__name: "GSkipLink",
|
|
5227
5227
|
props: {
|
|
5228
5228
|
target: { default: "main-content" },
|
|
@@ -5231,19 +5231,19 @@ var ls = ["href"], us = /*@__PURE__*/ u({
|
|
|
5231
5231
|
setup(e) {
|
|
5232
5232
|
let t = e;
|
|
5233
5233
|
function n(e) {
|
|
5234
|
-
|
|
5234
|
+
ss(t.target, !1) && e.preventDefault();
|
|
5235
5235
|
}
|
|
5236
5236
|
return (e, r) => (w(), o("a", {
|
|
5237
5237
|
class: "g-skip-link",
|
|
5238
5238
|
href: `#${t.target}`,
|
|
5239
5239
|
onClick: n
|
|
5240
|
-
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8,
|
|
5240
|
+
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, ds));
|
|
5241
5241
|
}
|
|
5242
|
-
}),
|
|
5242
|
+
}), ps = (e, t) => {
|
|
5243
5243
|
let n = e.__vccOpts || e;
|
|
5244
5244
|
for (let [e, r] of t) n[e] = r;
|
|
5245
5245
|
return n;
|
|
5246
|
-
},
|
|
5246
|
+
}, ms = /*#__PURE__*/ ps(fs, [["__scopeId", "data-v-1d350630"]]), hs = ["id"], gs = /*#__PURE__*/ ps(/* @__PURE__ */ u({
|
|
5247
5247
|
__name: "GMain",
|
|
5248
5248
|
props: { id: { default: "main-content" } },
|
|
5249
5249
|
setup(e) {
|
|
@@ -5251,11 +5251,93 @@ var ls = ["href"], us = /*@__PURE__*/ u({
|
|
|
5251
5251
|
return (e, n) => (w(), o("main", {
|
|
5252
5252
|
id: t.id,
|
|
5253
5253
|
class: "g-main"
|
|
5254
|
-
}, [A(e.$slots, "default", {}, void 0, !0)], 8,
|
|
5254
|
+
}, [A(e.$slots, "default", {}, void 0, !0)], 8, hs));
|
|
5255
|
+
}
|
|
5256
|
+
}), [["__scopeId", "data-v-139f5ef2"]]), _s = "app-build-id", vs = typeof window < "u" && typeof document < "u";
|
|
5257
|
+
function ys() {
|
|
5258
|
+
return {
|
|
5259
|
+
buildId: document.querySelector("meta[name=\"app-build-id\"]")?.content || void 0,
|
|
5260
|
+
versionUrl: globalThis.__GRAD_VUE_APP_VERSION_URL__
|
|
5261
|
+
};
|
|
5262
|
+
}
|
|
5263
|
+
function bs(e = {}) {
|
|
5264
|
+
let t = vs ? ys() : {}, n = e.intervalMs ?? 6e5, r = e.currentBuildId ?? t.buildId, i = e.versionUrl ?? t.versionUrl, a = vs && !!(r && i), o = O(!1), s = !1;
|
|
5265
|
+
async function c() {
|
|
5266
|
+
if (!(!a || o.value || s || document.visibilityState !== "visible")) {
|
|
5267
|
+
s = !0;
|
|
5268
|
+
try {
|
|
5269
|
+
let e = await fetch(i, { cache: "no-store" });
|
|
5270
|
+
if (!e.ok) return;
|
|
5271
|
+
let { buildId: t } = await e.json();
|
|
5272
|
+
typeof t == "string" && t !== r && (o.value = !0);
|
|
5273
|
+
} catch {} finally {
|
|
5274
|
+
s = !1;
|
|
5275
|
+
}
|
|
5276
|
+
}
|
|
5277
|
+
}
|
|
5278
|
+
a && (X(document, "visibilitychange", c), X(window, "focus", c), ce(c, n));
|
|
5279
|
+
function l() {
|
|
5280
|
+
window.location.reload();
|
|
5281
|
+
}
|
|
5282
|
+
return {
|
|
5283
|
+
updateAvailable: o,
|
|
5284
|
+
check: c,
|
|
5285
|
+
reload: l
|
|
5286
|
+
};
|
|
5287
|
+
}
|
|
5288
|
+
var xs = "g-app-update:stale-chunk-reload-at";
|
|
5289
|
+
function Ss() {
|
|
5290
|
+
vs && window.addEventListener("vite:preloadError", (e) => {
|
|
5291
|
+
try {
|
|
5292
|
+
let e = Number(sessionStorage.getItem(xs) ?? 0);
|
|
5293
|
+
if (Date.now() - e < 1e4) return;
|
|
5294
|
+
sessionStorage.setItem(xs, String(Date.now()));
|
|
5295
|
+
} catch {
|
|
5296
|
+
return;
|
|
5297
|
+
}
|
|
5298
|
+
e.preventDefault(), window.location.reload();
|
|
5299
|
+
});
|
|
5300
|
+
}
|
|
5301
|
+
// src/components/GAppUpdateNotice.vue?vue&type=script&setup=true&lang.ts
|
|
5302
|
+
var Cs = { role: "status" }, ws = {
|
|
5303
|
+
key: 0,
|
|
5304
|
+
class: "g-app-update-notice"
|
|
5305
|
+
}, Ts = { class: "g-app-update-notice__actions" }, Es = /*#__PURE__*/ ps(/* @__PURE__ */ u({
|
|
5306
|
+
__name: "GAppUpdateNotice",
|
|
5307
|
+
props: {
|
|
5308
|
+
message: { default: "This app has been updated. Refresh the page to see the latest changes." },
|
|
5309
|
+
reloadLabel: { default: "Refresh page" },
|
|
5310
|
+
dismissLabel: { default: "Not now" },
|
|
5311
|
+
intervalMs: { default: 6e5 },
|
|
5312
|
+
versionUrl: {},
|
|
5313
|
+
currentBuildId: {}
|
|
5314
|
+
},
|
|
5315
|
+
setup(e, { expose: t }) {
|
|
5316
|
+
let n = e, { updateAvailable: r, check: i, reload: u } = bs({
|
|
5317
|
+
intervalMs: n.intervalMs,
|
|
5318
|
+
versionUrl: n.versionUrl,
|
|
5319
|
+
currentBuildId: n.currentBuildId
|
|
5320
|
+
}), d = O(!1);
|
|
5321
|
+
return t({ check: i }), (e, t) => (w(), o("div", Cs, [R(r) && !d.value ? (w(), o("div", ws, [s("span", null, P(n.message), 1), s("div", Ts, [l($, {
|
|
5322
|
+
size: "small",
|
|
5323
|
+
theme: "accent",
|
|
5324
|
+
onClick: R(u)
|
|
5325
|
+
}, {
|
|
5326
|
+
default: K(() => [c(P(n.reloadLabel), 1)]),
|
|
5327
|
+
_: 1
|
|
5328
|
+
}, 8, ["onClick"]), l($, {
|
|
5329
|
+
size: "small",
|
|
5330
|
+
theme: "primary",
|
|
5331
|
+
outlined: "",
|
|
5332
|
+
onClick: t[0] ||= (e) => d.value = !0
|
|
5333
|
+
}, {
|
|
5334
|
+
default: K(() => [c(P(n.dismissLabel), 1)]),
|
|
5335
|
+
_: 1
|
|
5336
|
+
})])])) : a("", !0)]));
|
|
5255
5337
|
}
|
|
5256
|
-
}), [["__scopeId", "data-v-
|
|
5338
|
+
}), [["__scopeId", "data-v-bd5a72ec"]]);
|
|
5257
5339
|
// src/compose/useActiveLink.ts
|
|
5258
|
-
function
|
|
5340
|
+
function Ds(e, t, n) {
|
|
5259
5341
|
let r = [
|
|
5260
5342
|
0,
|
|
5261
5343
|
.25,
|
|
@@ -5272,8 +5354,8 @@ function hs(e, t, n) {
|
|
|
5272
5354
|
}, {
|
|
5273
5355
|
immediate: !0,
|
|
5274
5356
|
flush: "post"
|
|
5275
|
-
}),
|
|
5276
|
-
let { stop: c } =
|
|
5357
|
+
}), ue(e, s, { childList: !0 });
|
|
5358
|
+
let { stop: c } = se(o, (e) => {
|
|
5277
5359
|
let t = o.value[o.value.length - 1];
|
|
5278
5360
|
for (let n of e) a.set(n.target, n.isIntersecting ? Math.ceil(100 * n.intersectionRatio) / 100 : 0), n.target === t && n.intersectionRatio === 1 && a.set(n.target, Infinity);
|
|
5279
5361
|
let r = null, i = 0;
|
|
@@ -5291,8 +5373,8 @@ function hs(e, t, n) {
|
|
|
5291
5373
|
return { stop: c };
|
|
5292
5374
|
}
|
|
5293
5375
|
// src/compose/useSidebar.ts
|
|
5294
|
-
function
|
|
5295
|
-
let t = B(), n = O(!1), r =
|
|
5376
|
+
function Os(e = "(max-width: 800px)") {
|
|
5377
|
+
let t = B(), n = O(!1), r = le(e, { ssrWidth: 1e3 });
|
|
5296
5378
|
function i(e) {
|
|
5297
5379
|
if (!r.value || !n.value) return;
|
|
5298
5380
|
let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
|
|
@@ -5321,41 +5403,41 @@ function gs(e = "(max-width: 800px)") {
|
|
|
5321
5403
|
};
|
|
5322
5404
|
}
|
|
5323
5405
|
// src/compose/usePaging.ts
|
|
5324
|
-
function
|
|
5406
|
+
function ks(e) {
|
|
5325
5407
|
let t = /* @__PURE__ */ new Set();
|
|
5326
5408
|
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
5327
5409
|
}
|
|
5328
|
-
function
|
|
5329
|
-
return e == null ? [] :
|
|
5410
|
+
function As(e) {
|
|
5411
|
+
return e == null ? [] : ks((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
5330
5412
|
key: e.replace(/^-/, ""),
|
|
5331
5413
|
order: e.startsWith("-") ? -1 : 1
|
|
5332
5414
|
})));
|
|
5333
5415
|
}
|
|
5334
|
-
function
|
|
5335
|
-
let t =
|
|
5416
|
+
function js(e) {
|
|
5417
|
+
let t = ks(e);
|
|
5336
5418
|
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
5337
5419
|
}
|
|
5338
|
-
function
|
|
5339
|
-
let n =
|
|
5420
|
+
function Ms(e, t = []) {
|
|
5421
|
+
let n = ks(e);
|
|
5340
5422
|
if (n.length === 0) return;
|
|
5341
5423
|
let r = n.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`), i = new Set(n.map(({ key: e }) => String(e))), a = n.length === 1 && n[0].order === -1 ? "-" : "";
|
|
5342
5424
|
return t.forEach((e) => {
|
|
5343
5425
|
i.has(e) || r.push(`${a}${e}`);
|
|
5344
5426
|
}), r.join(",");
|
|
5345
5427
|
}
|
|
5346
|
-
function
|
|
5428
|
+
function Ns(e) {
|
|
5347
5429
|
return Array.isArray(e) ? [...e] : e;
|
|
5348
5430
|
}
|
|
5349
|
-
function
|
|
5431
|
+
function Ps(e, t) {
|
|
5350
5432
|
return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
|
|
5351
5433
|
}
|
|
5352
|
-
function
|
|
5434
|
+
function Fs(e, t) {
|
|
5353
5435
|
return e.length === t.length && e.every((e, n) => {
|
|
5354
5436
|
let r = t[n];
|
|
5355
5437
|
return e.key === r?.key && e.order === r?.order;
|
|
5356
5438
|
});
|
|
5357
5439
|
}
|
|
5358
|
-
function
|
|
5440
|
+
function Is(e, t) {
|
|
5359
5441
|
if (typeof e == "string") return Number(e);
|
|
5360
5442
|
if (Array.isArray(e)) {
|
|
5361
5443
|
let n = e.find((e) => e !== null);
|
|
@@ -5363,35 +5445,35 @@ function ws(e, t) {
|
|
|
5363
5445
|
}
|
|
5364
5446
|
return t;
|
|
5365
5447
|
}
|
|
5366
|
-
function
|
|
5448
|
+
function Ls(e = {}) {
|
|
5367
5449
|
let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = N([]), c = O(t), l = O(n);
|
|
5368
5450
|
return e.route && e.router && (W(() => e.route?.query[i], (e) => {
|
|
5369
|
-
let t =
|
|
5370
|
-
|
|
5451
|
+
let t = As(e);
|
|
5452
|
+
Fs(s.value, t) || (s.value = t);
|
|
5371
5453
|
}, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
|
|
5372
|
-
let n =
|
|
5454
|
+
let n = Is(e, t);
|
|
5373
5455
|
c.value !== n && (c.value = n);
|
|
5374
5456
|
}, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
|
|
5375
|
-
let t =
|
|
5457
|
+
let t = Is(e, n);
|
|
5376
5458
|
l.value !== t && (l.value = t);
|
|
5377
5459
|
}, { immediate: !0 }), W([
|
|
5378
5460
|
s,
|
|
5379
5461
|
c,
|
|
5380
5462
|
l
|
|
5381
5463
|
], ([r, s, c]) => {
|
|
5382
|
-
let l = { ...e.route.query }, u =
|
|
5383
|
-
u === void 0 ? delete l[i] : l[i] =
|
|
5464
|
+
let l = { ...e.route.query }, u = js(r);
|
|
5465
|
+
u === void 0 ? delete l[i] : l[i] = Ns(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
|
|
5384
5466
|
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
5385
|
-
for (let t of d) if (!
|
|
5467
|
+
for (let t of d) if (!Ps(e.route.query[t], l[t])) {
|
|
5386
5468
|
f = !0;
|
|
5387
5469
|
break;
|
|
5388
5470
|
}
|
|
5389
5471
|
f && e.router.replace({ query: l });
|
|
5390
5472
|
})), {
|
|
5391
5473
|
sort: r({
|
|
5392
|
-
get: () =>
|
|
5474
|
+
get: () => ks(s.value),
|
|
5393
5475
|
set: (e) => {
|
|
5394
|
-
s.value =
|
|
5476
|
+
s.value = ks(e);
|
|
5395
5477
|
}
|
|
5396
5478
|
}),
|
|
5397
5479
|
pageSize: c,
|
|
@@ -5399,7 +5481,7 @@ function Ts(e = {}) {
|
|
|
5399
5481
|
};
|
|
5400
5482
|
}
|
|
5401
5483
|
// src/compose/useTableChanges.ts
|
|
5402
|
-
function
|
|
5484
|
+
function Rs() {
|
|
5403
5485
|
let e = M(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
|
|
5404
5486
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
5405
5487
|
e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
|
|
@@ -5502,7 +5584,7 @@ function Es() {
|
|
|
5502
5584
|
};
|
|
5503
5585
|
}
|
|
5504
5586
|
// src/compose/usePersistentTableColumnState.ts
|
|
5505
|
-
function
|
|
5587
|
+
function zs(e, t) {
|
|
5506
5588
|
if (!e || typeof e != "object" || Array.isArray(e)) return {};
|
|
5507
5589
|
let n = new Set(t.map(({ key: e }) => String(e))), r = {};
|
|
5508
5590
|
for (let [t, i] of Object.entries(e)) {
|
|
@@ -5512,12 +5594,12 @@ function Ds(e, t) {
|
|
|
5512
5594
|
}
|
|
5513
5595
|
return r;
|
|
5514
5596
|
}
|
|
5515
|
-
function
|
|
5516
|
-
let n =
|
|
5597
|
+
function Bs(e, t) {
|
|
5598
|
+
let n = Z(e, {});
|
|
5517
5599
|
return W(() => L(t).map(({ key: e }) => String(e)), () => {
|
|
5518
|
-
n.value =
|
|
5600
|
+
n.value = zs(n.value, L(t));
|
|
5519
5601
|
}, { immediate: !0 }), { columnState: n };
|
|
5520
5602
|
}
|
|
5521
|
-
export {
|
|
5603
|
+
export { An as $, mo as A, Ci as B, Io as C, xe as Ct, Eo as D, Do as E, wi as F, zi as G, Ri as H, Mi as I, mr as J, Zr as K, Si as L, so as M, oo as N, xo as O, eo as P, jn as Q, Li as R, Uo as S, Se as St, Oo as T, Ti as U, Pi as V, Bi as W, Rn as X, $n as Y, Nn as Z, us as _, Ve as _t, As as a, sn as at, Ko as b, ke as bt, Os as c, At as ct, _s as d, ut as dt, En as et, Ss as f, at as ft, ss as g, Xe as gt, ms as h, Ye as ht, ks as i, un as it, fo as j, vo as k, Ds as l, Tt as lt, gs as m, rt as mt, Rs as n, Cn as nt, js as o, Xt as ot, bs as p, it as pt, Br as q, Ms as r, hn as rt, Ls as s, It as st, Bs as t, wn as tt, Es as u, vt as ut, rs as v, Me as vt, Fo as w, $ as wt, Go as x, Oe as xt, Qo as y, je as yt, Ni as z };
|
|
5522
5604
|
|
|
5523
|
-
//# sourceMappingURL=grad-vue-
|
|
5605
|
+
//# sourceMappingURL=grad-vue-DSPqd1gb.js.map
|