@illinois-grad/grad-vue 7.2.0 → 7.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{grad-vue-Cx1uTli6.js → grad-vue-B8FlsuZs.js} +530 -573
- package/dist/grad-vue-B8FlsuZs.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js +444 -522
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -2
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
- package/dist/grad-vue-Cx1uTli6.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
|
|
3
|
-
import { createFocusTrap as
|
|
2
|
+
import { createEventHook as ne, toArray as J, tryOnScopeDispose as re, unrefElement as Y, useClipboard as ie, useDebounceFn as X, useFocusWithin as Z, useIntersectionObserver as ae, useLocalStorage as oe, useMediaQuery as se, useMutationObserver as Q, useResizeObserver as ce, useSessionStorage as le } from "@vueuse/core";
|
|
3
|
+
import { createFocusTrap as ue } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
|
-
function
|
|
5
|
+
function de() {
|
|
6
6
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function fe(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,
|
|
@@ -20,7 +20,7 @@ function pe(e = {}) {
|
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
-
var
|
|
23
|
+
var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PURE__ */ u({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
__name: "GButton",
|
|
26
26
|
props: {
|
|
@@ -55,7 +55,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
55
55
|
"mouseleave"
|
|
56
56
|
],
|
|
57
57
|
setup(t, { emit: n }) {
|
|
58
|
-
let a = t, c = H(), l = n, { forwardedAttrs: u } =
|
|
58
|
+
let a = t, c = H(), l = n, { forwardedAttrs: u } = fe({ omitInCustomElement: ["id"] }), d = r(() => [
|
|
59
59
|
"g-btn",
|
|
60
60
|
`g-btn--${a.size}`,
|
|
61
61
|
`g-btn--${a.theme}`,
|
|
@@ -71,11 +71,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
71
71
|
}
|
|
72
72
|
]);
|
|
73
73
|
function f(e) {
|
|
74
|
-
|
|
75
|
-
e.preventDefault(), e.stopPropagation();
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
l("click", e);
|
|
74
|
+
a.disabled ? (e.preventDefault(), e.stopPropagation()) : l("click", e);
|
|
79
75
|
}
|
|
80
76
|
return (n, r) => (w(), i(j(a.component ? a.component : "button"), h(R(u), {
|
|
81
77
|
to: a.to,
|
|
@@ -93,11 +89,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
93
89
|
onMouseenter: r[6] ||= (e) => n.$emit("mouseenter", e),
|
|
94
90
|
onMouseleave: r[7] ||= (e) => n.$emit("mouseleave", e)
|
|
95
91
|
}), {
|
|
96
|
-
default: K(() => [t.icon || c.icon ? (w(), o(e, { key: 0 }, [s("span",
|
|
92
|
+
default: K(() => [t.icon || c.icon ? (w(), o(e, { key: 0 }, [s("span", pe, [c.icon ? A(n.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
|
|
97
93
|
key: 1,
|
|
98
94
|
class: _(t.icon + " g-btn--icon-span"),
|
|
99
95
|
"aria-hidden": "true"
|
|
100
|
-
}, null, 2))]), s("span",
|
|
96
|
+
}, null, 2))]), s("span", me, [A(n.$slots, "default")])], 64)) : A(n.$slots, "default", {}, void 0, void 0, 1)]),
|
|
101
97
|
_: 3
|
|
102
98
|
}, 16, [
|
|
103
99
|
"to",
|
|
@@ -107,13 +103,13 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
107
103
|
"aria-disabled"
|
|
108
104
|
]));
|
|
109
105
|
}
|
|
110
|
-
}),
|
|
106
|
+
}), he = { class: "g-tree-menu__divider" }, ge = {
|
|
111
107
|
key: 0,
|
|
112
108
|
class: "g-tree-menu__divider-line"
|
|
113
|
-
},
|
|
109
|
+
}, _e = {
|
|
114
110
|
key: 1,
|
|
115
111
|
class: "g-tree-menu__expand-all-wrapper"
|
|
116
|
-
},
|
|
112
|
+
}, ve = { class: "g-tree-menu__content" }, ye = /* @__PURE__ */ u({
|
|
117
113
|
__name: "GTreeMenu",
|
|
118
114
|
props: {
|
|
119
115
|
heading: {},
|
|
@@ -133,7 +129,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
133
129
|
setup(e) {
|
|
134
130
|
let t = e, n = H(), l = d(), u = B(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
|
|
135
131
|
T("g-tree-menu-list-type", t.listType);
|
|
136
|
-
let m = t.storageKey ?
|
|
132
|
+
let m = t.storageKey ? le(t.storageKey, {}) : null;
|
|
137
133
|
T("g-tree-menu-expanded-storage", m);
|
|
138
134
|
let g = E(/* @__PURE__ */ new Map());
|
|
139
135
|
T("g-tree-menu-expandable-items", g);
|
|
@@ -166,7 +162,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
166
162
|
default: K(() => [A(n.$slots, "heading", {}, () => [c(P(e.heading), 1)])]),
|
|
167
163
|
_: 3
|
|
168
164
|
}, 8, ["id"])) : a("", !0),
|
|
169
|
-
s("div",
|
|
165
|
+
s("div", he, [e.smallHeading ? a("", !0) : (w(), o("div", ge)), e.showExpandAll ? (w(), o("div", _e, [s("button", {
|
|
170
166
|
class: "g-tree-menu__expand-all-btn",
|
|
171
167
|
onClick: b
|
|
172
168
|
}, [(w(), o("svg", {
|
|
@@ -179,14 +175,14 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
179
175
|
"stroke-linecap": "round",
|
|
180
176
|
"stroke-linejoin": "round"
|
|
181
177
|
}, [...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)]),
|
|
182
|
-
s("div",
|
|
178
|
+
s("div", ve, [A(n.$slots, "default")])
|
|
183
179
|
], 16));
|
|
184
180
|
}
|
|
185
|
-
}),
|
|
181
|
+
}), be = /* @__PURE__ */ u({
|
|
186
182
|
name: "GTreeMenuList",
|
|
187
183
|
props: { listType: { default: void 0 } },
|
|
188
184
|
setup(e) {
|
|
189
|
-
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o =
|
|
185
|
+
let t = e, n = p("g-tree-menu-list-type", "ul"), a = r(() => t.listType ?? n ?? "ul"), o = de(), s = d();
|
|
190
186
|
return x(() => {
|
|
191
187
|
if (!o) return;
|
|
192
188
|
let e = s?.ce;
|
|
@@ -199,20 +195,20 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
199
195
|
_: 3
|
|
200
196
|
}, 8, ["role"]));
|
|
201
197
|
}
|
|
202
|
-
}),
|
|
198
|
+
}), xe = {
|
|
203
199
|
key: 0,
|
|
204
200
|
class: "g-tree-menu__row"
|
|
205
|
-
},
|
|
201
|
+
}, Se = { class: "g-tree-menu__row-content-text" }, Ce = [
|
|
206
202
|
"aria-controls",
|
|
207
203
|
"aria-expanded",
|
|
208
204
|
"aria-label"
|
|
209
|
-
],
|
|
205
|
+
], we = {
|
|
210
206
|
key: 1,
|
|
211
207
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
212
|
-
},
|
|
208
|
+
}, Te = {
|
|
213
209
|
class: "g-tree-menu__row-content",
|
|
214
210
|
"data-tree-primary": ""
|
|
215
|
-
},
|
|
211
|
+
}, Ee = /* @__PURE__ */ u({
|
|
216
212
|
name: "GTreeMenuItem",
|
|
217
213
|
inheritAttrs: !1,
|
|
218
214
|
props: {
|
|
@@ -263,7 +259,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
263
259
|
function F(e) {
|
|
264
260
|
e.target.closest("a, button") || T();
|
|
265
261
|
}
|
|
266
|
-
let I =
|
|
262
|
+
let I = de(), L = u?.ce;
|
|
267
263
|
x(() => {
|
|
268
264
|
I && L && L.setAttribute("role", "listitem");
|
|
269
265
|
});
|
|
@@ -277,11 +273,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
277
273
|
class: "g-tree-menu__item",
|
|
278
274
|
"data-tree-expandable": g.value ? "true" : void 0
|
|
279
275
|
}), {
|
|
280
|
-
default: K(() => [g.value ? (w(), o("div",
|
|
276
|
+
default: K(() => [g.value ? (w(), o("div", xe, [s("span", {
|
|
281
277
|
class: "g-tree-menu__row-content",
|
|
282
278
|
"data-tree-primary": "",
|
|
283
279
|
onClick: F
|
|
284
|
-
}, [s("span",
|
|
280
|
+
}, [s("span", Se, [A(e.$slots, "default")])]), s("button", {
|
|
285
281
|
type: "button",
|
|
286
282
|
class: "g-tree-menu__toggle-btn",
|
|
287
283
|
"aria-controls": R(f) + "-children",
|
|
@@ -299,7 +295,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
299
295
|
"stroke-width": "2.5",
|
|
300
296
|
"stroke-linecap": "round",
|
|
301
297
|
"stroke-linejoin": "round"
|
|
302
|
-
}, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8,
|
|
298
|
+
}, [...t[0] ||= [s("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, Ce)])) : (w(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Te, [A(e.$slots, "default")])])), g.value && C.value ? (w(), i(be, {
|
|
303
299
|
key: 2,
|
|
304
300
|
id: R(f) + "-children"
|
|
305
301
|
}, {
|
|
@@ -312,7 +308,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
312
308
|
});
|
|
313
309
|
//#endregion
|
|
314
310
|
//#region src/compose/useForm.ts
|
|
315
|
-
function
|
|
311
|
+
function De() {
|
|
316
312
|
let e = M({}), t = O(!1), n = r(() => {
|
|
317
313
|
let t = {};
|
|
318
314
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -354,18 +350,18 @@ function Oe() {
|
|
|
354
350
|
}
|
|
355
351
|
//#endregion
|
|
356
352
|
//#region src/compose/useWebComponentForm.ts
|
|
357
|
-
function
|
|
353
|
+
function Oe() {
|
|
358
354
|
let e = globalThis;
|
|
359
355
|
return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
|
|
360
356
|
}
|
|
361
|
-
function
|
|
362
|
-
let t =
|
|
363
|
-
return t.has(n) || t.set(n,
|
|
357
|
+
function ke(e = "default") {
|
|
358
|
+
let t = Oe(), n = e || "default";
|
|
359
|
+
return t.has(n) || t.set(n, De()), t.get(n);
|
|
364
360
|
}
|
|
365
361
|
//#endregion
|
|
366
362
|
//#region src/compose/useFormField.ts
|
|
367
|
-
function
|
|
368
|
-
let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (
|
|
363
|
+
function Ae(e) {
|
|
364
|
+
let t = z(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (de() ? ke(i) : null), o = r(() => {
|
|
369
365
|
let t = [];
|
|
370
366
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
371
367
|
}), s = r(() => o.value.length > 0), c = e.name;
|
|
@@ -452,7 +448,7 @@ var je = ["id"], Me = /* @__PURE__ */ u({
|
|
|
452
448
|
}),
|
|
453
449
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
454
450
|
setup(e, { emit: t }) {
|
|
455
|
-
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
451
|
+
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = Ae({
|
|
456
452
|
name: n.name,
|
|
457
453
|
value: i,
|
|
458
454
|
errors: I(n, "errors"),
|
|
@@ -581,14 +577,14 @@ function Ze(e, t = {}) {
|
|
|
581
577
|
n && (n.unpause(), s.value = !1);
|
|
582
578
|
}, f = r(() => {
|
|
583
579
|
let t = L(e);
|
|
584
|
-
return
|
|
580
|
+
return J(t).map((e) => {
|
|
585
581
|
let t = L(e);
|
|
586
|
-
return typeof t == "string" ? t :
|
|
582
|
+
return typeof t == "string" ? t : Y(t);
|
|
587
583
|
}).filter(Xe);
|
|
588
584
|
});
|
|
589
585
|
return W(f, (e) => {
|
|
590
586
|
if (e.length) {
|
|
591
|
-
if (!n) n =
|
|
587
|
+
if (!n) n = ue(e, {
|
|
592
588
|
...a,
|
|
593
589
|
onActivate(e) {
|
|
594
590
|
o.value = !0, t.onActivate && t.onActivate(e);
|
|
@@ -602,7 +598,7 @@ function Ze(e, t = {}) {
|
|
|
602
598
|
n?.updateContainerElements(e), !t && i && c();
|
|
603
599
|
}
|
|
604
600
|
}
|
|
605
|
-
}, { flush: "post" }),
|
|
601
|
+
}, { flush: "post" }), re(() => l()), {
|
|
606
602
|
hasFocus: o,
|
|
607
603
|
isPaused: s,
|
|
608
604
|
activate: c,
|
|
@@ -715,7 +711,7 @@ function rt(e, t, n, r) {
|
|
|
715
711
|
var it = /* @__PURE__ */ u({
|
|
716
712
|
__name: "GClientOnly",
|
|
717
713
|
setup(e) {
|
|
718
|
-
let t = O(
|
|
714
|
+
let t = O(de());
|
|
719
715
|
return x(() => {
|
|
720
716
|
t.value = !0;
|
|
721
717
|
}), (e, n) => t.value ? A(e.$slots, "default", {}, void 0, void 0, 0) : A(e.$slots, "fallback", {}, void 0, void 0, 1);
|
|
@@ -747,11 +743,11 @@ var it = /* @__PURE__ */ u({
|
|
|
747
743
|
W(I(d, "modelValue"), (e) => {
|
|
748
744
|
p.value = e;
|
|
749
745
|
});
|
|
750
|
-
let m = H(), h = r(() => !!m.trigger), y = U("triggerRef"), x = U("popoverRef"), S = U("popoverContentRef"), { isCustomElement: C } =
|
|
746
|
+
let m = H(), h = r(() => !!m.trigger), y = U("triggerRef"), x = U("popoverRef"), S = U("popoverContentRef"), { isCustomElement: C } = fe(), T = C, E = B(), { push: D, pop: k, isTop: j, zIndex: M } = qe(E, !0), { activate: N, deactivate: P } = tt(x, j, !0);
|
|
751
747
|
nt([x, y], j, p, L, k), W(p, (e) => {
|
|
752
748
|
e ? (g(() => {
|
|
753
749
|
g(() => N());
|
|
754
|
-
}), D(), f("show")) : (P(), k(), f("hide"),
|
|
750
|
+
}), D(), f("show")) : (P(), k(), f("hide"), J.value = !1, re.value = null);
|
|
755
751
|
});
|
|
756
752
|
function F() {
|
|
757
753
|
p.value = !0, f("update:modelValue", !0);
|
|
@@ -765,19 +761,19 @@ var it = /* @__PURE__ */ u({
|
|
|
765
761
|
let V = O({
|
|
766
762
|
top: 0,
|
|
767
763
|
left: 0
|
|
768
|
-
}), G = O({ left: "50%" }), q = O(!1), ne = O(!1),
|
|
769
|
-
function
|
|
764
|
+
}), G = O({ left: "50%" }), q = O(!1), ne = O(!1), J = O(!1), re = O(null), Y = null;
|
|
765
|
+
function ie() {
|
|
770
766
|
if (y.value) return y.value;
|
|
771
767
|
let e = x.value?.parentElement ?? null;
|
|
772
768
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
773
769
|
let t = e?.previousElementSibling;
|
|
774
770
|
return t instanceof HTMLElement ? t : null;
|
|
775
771
|
}
|
|
776
|
-
function
|
|
772
|
+
function X() {
|
|
777
773
|
if (!x.value || !S.value) return;
|
|
778
774
|
let e = x.value, t = S.value, n = new DOMRect(0, 0, window.innerWidth, window.innerHeight), r = Math.max(n.height - 32, 0), i = window.getComputedStyle(e), a = t.offsetHeight + Number.parseFloat(i.paddingTop) + Number.parseFloat(i.paddingBottom) + Number.parseFloat(i.borderTopWidth) + Number.parseFloat(i.borderBottomWidth);
|
|
779
|
-
|
|
780
|
-
let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s =
|
|
775
|
+
J.value = a > r, re.value = J.value ? r : null;
|
|
776
|
+
let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s = ie();
|
|
781
777
|
if (!s) {
|
|
782
778
|
V.value = {
|
|
783
779
|
top: Math.max((n.height - o.height) / 2, 16),
|
|
@@ -797,10 +793,10 @@ var it = /* @__PURE__ */ u({
|
|
|
797
793
|
}
|
|
798
794
|
return W(p, (e) => {
|
|
799
795
|
e ? g(() => {
|
|
800
|
-
|
|
801
|
-
}) : (window.removeEventListener("resize",
|
|
796
|
+
X(), window.addEventListener("resize", X), window.addEventListener("scroll", X, { capture: !0 }), x.value && (Y && Y.disconnect(), Y = new ResizeObserver(() => X()), S.value && Y.observe(S.value));
|
|
797
|
+
}) : (window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect());
|
|
802
798
|
}), b(() => {
|
|
803
|
-
window.removeEventListener("resize",
|
|
799
|
+
window.removeEventListener("resize", X), window.removeEventListener("scroll", X, { capture: !0 }), Y && Y.disconnect();
|
|
804
800
|
}), c({
|
|
805
801
|
show: F,
|
|
806
802
|
hide: L,
|
|
@@ -833,7 +829,7 @@ var it = /* @__PURE__ */ u({
|
|
|
833
829
|
"g-popover-above": q.value,
|
|
834
830
|
"g-popover-below": !q.value,
|
|
835
831
|
"g-popover-minimal": e.minimal,
|
|
836
|
-
"g-popover-scrollable":
|
|
832
|
+
"g-popover-scrollable": J.value
|
|
837
833
|
}),
|
|
838
834
|
role: "dialog",
|
|
839
835
|
"aria-modal": "true",
|
|
@@ -843,10 +839,10 @@ var it = /* @__PURE__ */ u({
|
|
|
843
839
|
top: V.value.top + "px",
|
|
844
840
|
left: V.value.left + "px",
|
|
845
841
|
zIndex: R(M),
|
|
846
|
-
maxHeight:
|
|
842
|
+
maxHeight: re.value === null ? void 0 : `${re.value}px`
|
|
847
843
|
})
|
|
848
844
|
}, [
|
|
849
|
-
!ne.value && !e.minimal && !
|
|
845
|
+
!ne.value && !e.minimal && !J.value ? (w(), o("div", {
|
|
850
846
|
key: 0,
|
|
851
847
|
class: _(["g-popover-arrow", { "g-popover-arrow-above": q.value }]),
|
|
852
848
|
style: v(G.value),
|
|
@@ -937,11 +933,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
937
933
|
p.value = !1, m.value = !1;
|
|
938
934
|
}
|
|
939
935
|
function D() {
|
|
940
|
-
|
|
941
|
-
E();
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
T();
|
|
936
|
+
p.value || m.value ? E() : T();
|
|
945
937
|
}
|
|
946
938
|
function k(e) {
|
|
947
939
|
y !== e && (j(), y = e, y && (y.addEventListener("mouseenter", M), y.addEventListener("mouseleave", N), y.addEventListener("focusin", P), y.addEventListener("focusout", F), y.addEventListener("keydown", I)));
|
|
@@ -973,13 +965,9 @@ var gt = /* @__PURE__ */ u({
|
|
|
973
965
|
}, { immediate: !0 }), W(() => i.text, (e) => {
|
|
974
966
|
f.value && (f.value.textContent = e);
|
|
975
967
|
}), W(() => p.value || m.value, (e) => {
|
|
976
|
-
|
|
977
|
-
S(), f.value && y && mt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
|
|
978
|
-
return;
|
|
979
|
-
}
|
|
980
|
-
g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (ht(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
|
|
968
|
+
e ? (S(), f.value && y && mt(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0)) : (g &&= (window.removeEventListener("scroll", C, { capture: !0 }), !1), f.value && (ht(f.value), _ && clearTimeout(_), _ = window.setTimeout(() => {
|
|
981
969
|
s("tooltip-hide");
|
|
982
|
-
}, 150));
|
|
970
|
+
}, 150)));
|
|
983
971
|
}), b(() => {
|
|
984
972
|
g && window.removeEventListener("scroll", C, { capture: !0 }), h && h.disconnect(), f.value &&= (f.value.remove(), null), _ && clearTimeout(_), l.value && y && y.removeAttribute("aria-describedby"), j();
|
|
985
973
|
}), t({
|
|
@@ -1032,7 +1020,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
1032
1020
|
}),
|
|
1033
1021
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
1034
1022
|
setup(t, { emit: n }) {
|
|
1035
|
-
let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } =
|
|
1023
|
+
let i = t, u = n, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = Ae({
|
|
1036
1024
|
name: i.name,
|
|
1037
1025
|
value: d,
|
|
1038
1026
|
errors: I(i, "errors"),
|
|
@@ -1192,13 +1180,13 @@ var gt = /* @__PURE__ */ u({
|
|
|
1192
1180
|
id: "alertdialog-description-" + R(f),
|
|
1193
1181
|
class: "g-alertdialog-content"
|
|
1194
1182
|
}, [A(e.$slots, "default")], 8, Mt),
|
|
1195
|
-
s("div", Nt, [l(
|
|
1183
|
+
s("div", Nt, [l($, {
|
|
1196
1184
|
outlined: "",
|
|
1197
1185
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1198
1186
|
}, {
|
|
1199
1187
|
default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
|
|
1200
1188
|
_: 1
|
|
1201
|
-
}), l(
|
|
1189
|
+
}), l($, {
|
|
1202
1190
|
theme: a.buttonColor,
|
|
1203
1191
|
onClick: r[1] ||= (e) => o("confirm")
|
|
1204
1192
|
}, {
|
|
@@ -1328,7 +1316,7 @@ var Lt = ["id"], Rt = {
|
|
|
1328
1316
|
}),
|
|
1329
1317
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
1330
1318
|
setup(t, { emit: n }) {
|
|
1331
|
-
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 } =
|
|
1319
|
+
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 } = Ae({
|
|
1332
1320
|
name: i.name,
|
|
1333
1321
|
value: d,
|
|
1334
1322
|
errors: I(i, "errors"),
|
|
@@ -1377,22 +1365,18 @@ var Lt = ["id"], Rt = {
|
|
|
1377
1365
|
}
|
|
1378
1366
|
function ne(e) {
|
|
1379
1367
|
let t = e.relatedTarget;
|
|
1380
|
-
|
|
1381
|
-
x.value = !1;
|
|
1382
|
-
return;
|
|
1383
|
-
}
|
|
1384
|
-
t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
|
|
1368
|
+
x.value ? x.value = !1 : t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
|
|
1385
1369
|
}
|
|
1386
|
-
function
|
|
1370
|
+
function J(e) {
|
|
1387
1371
|
let t = L.value[e];
|
|
1388
1372
|
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
|
|
1389
1373
|
S.value = !1;
|
|
1390
1374
|
}, 100);
|
|
1391
1375
|
}
|
|
1392
|
-
function
|
|
1376
|
+
function re() {
|
|
1393
1377
|
i.disabled || (y.value ? U() : H());
|
|
1394
1378
|
}
|
|
1395
|
-
function
|
|
1379
|
+
function Y(e) {
|
|
1396
1380
|
if (i.disabled) return;
|
|
1397
1381
|
let t = L.value.length - 1;
|
|
1398
1382
|
if (!y.value && [
|
|
@@ -1400,11 +1384,8 @@ var Lt = ["id"], Rt = {
|
|
|
1400
1384
|
"ArrowUp",
|
|
1401
1385
|
"Enter",
|
|
1402
1386
|
" "
|
|
1403
|
-
].includes(e.key))
|
|
1404
|
-
|
|
1405
|
-
return;
|
|
1406
|
-
}
|
|
1407
|
-
switch (e.key) {
|
|
1387
|
+
].includes(e.key)) e.preventDefault(), H();
|
|
1388
|
+
else switch (e.key) {
|
|
1408
1389
|
case "ArrowDown":
|
|
1409
1390
|
e.preventDefault(), y.value ? (b.value = Math.min(t, b.value + 1), M()) : H();
|
|
1410
1391
|
break;
|
|
@@ -1418,21 +1399,21 @@ var Lt = ["id"], Rt = {
|
|
|
1418
1399
|
e.preventDefault(), b.value = t, M();
|
|
1419
1400
|
break;
|
|
1420
1401
|
case "Enter":
|
|
1421
|
-
e.preventDefault(), y.value ?
|
|
1402
|
+
e.preventDefault(), y.value ? J(b.value) : H();
|
|
1422
1403
|
break;
|
|
1423
1404
|
case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
|
|
1424
1405
|
U();
|
|
1425
1406
|
}, 0));
|
|
1426
1407
|
}
|
|
1427
1408
|
}
|
|
1428
|
-
function
|
|
1429
|
-
|
|
1409
|
+
function ie(e) {
|
|
1410
|
+
J(e);
|
|
1430
1411
|
}
|
|
1431
|
-
function
|
|
1412
|
+
function X() {
|
|
1432
1413
|
x.value = !0;
|
|
1433
1414
|
}
|
|
1434
|
-
let
|
|
1435
|
-
function
|
|
1415
|
+
let Z = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
1416
|
+
function ae() {
|
|
1436
1417
|
i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
|
|
1437
1418
|
}
|
|
1438
1419
|
return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
@@ -1461,7 +1442,7 @@ var Lt = ["id"], Rt = {
|
|
|
1461
1442
|
disabled: i.disabled,
|
|
1462
1443
|
onFocus: G,
|
|
1463
1444
|
onInput: K,
|
|
1464
|
-
onKeydown:
|
|
1445
|
+
onKeydown: Y,
|
|
1465
1446
|
onBlur: ne,
|
|
1466
1447
|
"aria-autocomplete": "list",
|
|
1467
1448
|
"aria-controls": R(f) + "-listbox",
|
|
@@ -1473,11 +1454,11 @@ var Lt = ["id"], Rt = {
|
|
|
1473
1454
|
role: "combobox",
|
|
1474
1455
|
autocomplete: "off"
|
|
1475
1456
|
}), null, 16, Vt),
|
|
1476
|
-
|
|
1457
|
+
Z.value ? (w(), o("button", {
|
|
1477
1458
|
key: 0,
|
|
1478
1459
|
type: "button",
|
|
1479
1460
|
class: "g-select-clear-btn",
|
|
1480
|
-
onClick:
|
|
1461
|
+
onClick: ae
|
|
1481
1462
|
}, [...r[0] ||= [s("svg", {
|
|
1482
1463
|
role: "img",
|
|
1483
1464
|
"aria-label": "Clear Selection",
|
|
@@ -1512,17 +1493,17 @@ var Lt = ["id"], Rt = {
|
|
|
1512
1493
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
|
|
1513
1494
|
"aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0,
|
|
1514
1495
|
tabindex: "0",
|
|
1515
|
-
onClick:
|
|
1516
|
-
onKeydown:
|
|
1496
|
+
onClick: re,
|
|
1497
|
+
onKeydown: Y,
|
|
1517
1498
|
onFocus: G,
|
|
1518
1499
|
onBlur: ne
|
|
1519
1500
|
}), [
|
|
1520
1501
|
c(P(N.value[z.value] ? N.value[z.value].label : "") + " ", 1),
|
|
1521
|
-
|
|
1502
|
+
Z.value ? (w(), o("button", {
|
|
1522
1503
|
key: 0,
|
|
1523
1504
|
type: "button",
|
|
1524
1505
|
class: "g-select-clear-btn",
|
|
1525
|
-
onClick: q(
|
|
1506
|
+
onClick: q(ae, ["stop"])
|
|
1526
1507
|
}, [...r[2] ||= [s("svg", {
|
|
1527
1508
|
role: "img",
|
|
1528
1509
|
"aria-label": "Clear Selection",
|
|
@@ -1559,8 +1540,8 @@ var Lt = ["id"], Rt = {
|
|
|
1559
1540
|
}]),
|
|
1560
1541
|
role: "option",
|
|
1561
1542
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1562
|
-
onMousedown:
|
|
1563
|
-
onClick: (e) =>
|
|
1543
|
+
onMousedown: X,
|
|
1544
|
+
onClick: (e) => ie(t)
|
|
1564
1545
|
}, [A(n.$slots, "option", {
|
|
1565
1546
|
option: e,
|
|
1566
1547
|
selected: e.value === d.value,
|
|
@@ -1621,7 +1602,7 @@ var Lt = ["id"], Rt = {
|
|
|
1621
1602
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1622
1603
|
});
|
|
1623
1604
|
}
|
|
1624
|
-
let { focused: S } =
|
|
1605
|
+
let { focused: S } = Z(f);
|
|
1625
1606
|
function C(e) {
|
|
1626
1607
|
let t = e.altKey;
|
|
1627
1608
|
if (e.key === "ArrowDown") {
|
|
@@ -1645,7 +1626,7 @@ var Lt = ["id"], Rt = {
|
|
|
1645
1626
|
function T(e) {
|
|
1646
1627
|
d("select", e), l.value = "", m.value = !0, h.value = -1;
|
|
1647
1628
|
}
|
|
1648
|
-
let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j =
|
|
1629
|
+
let E = r(() => !!u.loading), D = r(() => S.value && !m.value), j = X(() => {
|
|
1649
1630
|
d("submit", l.value);
|
|
1650
1631
|
}, 300);
|
|
1651
1632
|
W(() => l.value, (e) => {
|
|
@@ -1829,7 +1810,7 @@ var ln = [
|
|
|
1829
1810
|
},
|
|
1830
1811
|
emits: ["toggle", "update:modelValue"],
|
|
1831
1812
|
setup(e, { expose: t, emit: n }) {
|
|
1832
|
-
let a = e, o = p("sidebar", void 0) ?? (
|
|
1813
|
+
let a = e, o = p("sidebar", void 0) ?? (de() ? cn(a.sidebarKey, I(a, "mediaQuery")) : void 0), c = n, u = r(() => a.mode === "popover"), d = O(a.modelValue);
|
|
1833
1814
|
W(I(a, "modelValue"), (e) => {
|
|
1834
1815
|
d.value = e;
|
|
1835
1816
|
});
|
|
@@ -1838,25 +1819,13 @@ var ln = [
|
|
|
1838
1819
|
d.value !== e && (d.value = e, c("update:modelValue", e));
|
|
1839
1820
|
}
|
|
1840
1821
|
function _() {
|
|
1841
|
-
|
|
1842
|
-
h(!0);
|
|
1843
|
-
return;
|
|
1844
|
-
}
|
|
1845
|
-
o?.open && (o.open.value = !0);
|
|
1822
|
+
u.value ? h(!0) : o?.open && (o.open.value = !0);
|
|
1846
1823
|
}
|
|
1847
1824
|
function v() {
|
|
1848
|
-
|
|
1849
|
-
h(!1);
|
|
1850
|
-
return;
|
|
1851
|
-
}
|
|
1852
|
-
o?.open && (o.open.value = !1);
|
|
1825
|
+
u.value ? h(!1) : o?.open && (o.open.value = !1);
|
|
1853
1826
|
}
|
|
1854
1827
|
function y() {
|
|
1855
|
-
|
|
1856
|
-
h(!d.value);
|
|
1857
|
-
return;
|
|
1858
|
-
}
|
|
1859
|
-
o?.toggle();
|
|
1828
|
+
c("toggle"), u.value ? h(!d.value) : o?.toggle();
|
|
1860
1829
|
}
|
|
1861
1830
|
function b(e) {
|
|
1862
1831
|
e.key === "Escape" && v();
|
|
@@ -1967,9 +1936,7 @@ var ln = [
|
|
|
1967
1936
|
if (e) {
|
|
1968
1937
|
if (t < 0) return;
|
|
1969
1938
|
await g(), r.value?.show(), await r.value?.focusItem(t);
|
|
1970
|
-
|
|
1971
|
-
}
|
|
1972
|
-
r.value?.hide(), !(t < 0) && (await g(), l(t));
|
|
1939
|
+
} else r.value?.hide(), !(t < 0) && (await g(), l(t));
|
|
1973
1940
|
}
|
|
1974
1941
|
}), (c, l) => (w(), o("header", { class: _(["g-app-header", { "g-app-header--no-app-controls": !c.$slots["app-controls"] }]) }, [
|
|
1975
1942
|
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),
|
|
@@ -2019,7 +1986,7 @@ var ln = [
|
|
|
2019
1986
|
//#endregion
|
|
2020
1987
|
//#region src/compose/useScrollRestore.ts
|
|
2021
1988
|
function Sn(e, t) {
|
|
2022
|
-
let n = t ?
|
|
1989
|
+
let n = t ? le(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
2023
1990
|
function c(e) {
|
|
2024
1991
|
let t = window.getComputedStyle(e);
|
|
2025
1992
|
return t.overflowY === "auto" || t.overflowY === "scroll";
|
|
@@ -2047,21 +2014,7 @@ function Sn(e, t) {
|
|
|
2047
2014
|
return !e.value || !i ? !1 : e.value.getClientRects().length > 0 && i.getClientRects().length > 0 && i.clientHeight > 0;
|
|
2048
2015
|
}
|
|
2049
2016
|
function m() {
|
|
2050
|
-
|
|
2051
|
-
f();
|
|
2052
|
-
return;
|
|
2053
|
-
}
|
|
2054
|
-
if (n.value <= 0) {
|
|
2055
|
-
f();
|
|
2056
|
-
return;
|
|
2057
|
-
}
|
|
2058
|
-
if (p()) {
|
|
2059
|
-
if (i.scrollHeight - i.clientHeight <= 0) {
|
|
2060
|
-
f(), d();
|
|
2061
|
-
return;
|
|
2062
|
-
}
|
|
2063
|
-
i.scrollTop = n.value, s = i.scrollTop > 0, s && (f(), d());
|
|
2064
|
-
}
|
|
2017
|
+
!n || !i || s || n.value <= 0 ? f() : p() && (i.scrollHeight - i.clientHeight <= 0 ? (f(), d()) : (i.scrollTop = n.value, s = i.scrollTop > 0, s && (f(), d())));
|
|
2065
2018
|
}
|
|
2066
2019
|
function h(e) {
|
|
2067
2020
|
if (typeof MutationObserver > "u") return;
|
|
@@ -2080,21 +2033,9 @@ function Sn(e, t) {
|
|
|
2080
2033
|
}), t = t.parentElement;
|
|
2081
2034
|
}
|
|
2082
2035
|
return x(() => {
|
|
2083
|
-
|
|
2084
|
-
f();
|
|
2085
|
-
return;
|
|
2086
|
-
}
|
|
2087
|
-
if (!n) {
|
|
2088
|
-
f();
|
|
2089
|
-
return;
|
|
2090
|
-
}
|
|
2091
|
-
if (i = l(e.value), !i) {
|
|
2092
|
-
f();
|
|
2093
|
-
return;
|
|
2094
|
-
}
|
|
2095
|
-
m(), typeof ResizeObserver < "u" && (a = new ResizeObserver(() => {
|
|
2036
|
+
e.value && n ? (i = l(e.value), i ? (m(), typeof ResizeObserver < "u" && (a = new ResizeObserver(() => {
|
|
2096
2037
|
m();
|
|
2097
|
-
}), a.observe(e.value), a.observe(i)), h(e.value), i.addEventListener("scroll", u);
|
|
2038
|
+
}), a.observe(e.value), a.observe(i)), h(e.value), i.addEventListener("scroll", u)) : f()) : f();
|
|
2098
2039
|
}), C(() => {
|
|
2099
2040
|
d(), i &&= (i.removeEventListener("scroll", u), null), s = !1;
|
|
2100
2041
|
}), { isPendingScrollRestore: r };
|
|
@@ -2115,7 +2056,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2115
2056
|
storageKey: {}
|
|
2116
2057
|
},
|
|
2117
2058
|
setup(e) {
|
|
2118
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (
|
|
2059
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ? cn(t.sidebarKey, I(t, "mediaQuery")) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), 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 } = Sn(U("sidebar-ref"), t.storageKey);
|
|
2119
2060
|
function u(e) {
|
|
2120
2061
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
2121
2062
|
}
|
|
@@ -2277,7 +2218,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2277
2218
|
copyLabel: {}
|
|
2278
2219
|
},
|
|
2279
2220
|
setup(t) {
|
|
2280
|
-
let n = t, r = kn, { text: i, copy: l, copied: u, isSupported: d } =
|
|
2221
|
+
let n = t, r = kn, { text: i, copy: l, copied: u, isSupported: d } = ie({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2281
2222
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2282
2223
|
}, m = () => {
|
|
2283
2224
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
@@ -2331,9 +2272,9 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2331
2272
|
}
|
|
2332
2273
|
x(() => {
|
|
2333
2274
|
g(f);
|
|
2334
|
-
}),
|
|
2275
|
+
}), ce(i, () => {
|
|
2335
2276
|
u.value && f();
|
|
2336
|
-
}),
|
|
2277
|
+
}), ce(c, () => {
|
|
2337
2278
|
u.value && f();
|
|
2338
2279
|
}), W(() => n.entries, async () => {
|
|
2339
2280
|
u.value && (await g(), f());
|
|
@@ -2349,7 +2290,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2349
2290
|
role: t.label ? "log" : void 0,
|
|
2350
2291
|
"aria-label": t.label,
|
|
2351
2292
|
onScroll: p
|
|
2352
|
-
}, [l(
|
|
2293
|
+
}, [l($, {
|
|
2353
2294
|
class: _(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": u.value }]),
|
|
2354
2295
|
size: "small",
|
|
2355
2296
|
type: "button",
|
|
@@ -2558,27 +2499,31 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2558
2499
|
],
|
|
2559
2500
|
setup(t, { emit: n }) {
|
|
2560
2501
|
let l = t, u = n;
|
|
2561
|
-
function d(e
|
|
2562
|
-
|
|
2502
|
+
function d(e) {
|
|
2503
|
+
let t = e.currentTarget, n = e.target.closest("a,button,[tabindex],input");
|
|
2504
|
+
return !!n && t.contains(n);
|
|
2563
2505
|
}
|
|
2564
2506
|
function f(e, t) {
|
|
2565
|
-
|
|
2507
|
+
l.bulkSelectionEnabled && e.shiftKey && !d(e) && e.preventDefault();
|
|
2508
|
+
}
|
|
2509
|
+
function p(e, t) {
|
|
2510
|
+
if (!l.rowClickable && !l.bulkSelectionEnabled || d(e)) return;
|
|
2566
2511
|
let n = e.target.closest("tr");
|
|
2567
2512
|
if (n) {
|
|
2568
|
-
if (l.bulkSelectionEnabled) n.querySelector("input[type=checkbox]") &&
|
|
2513
|
+
if (l.bulkSelectionEnabled) n.querySelector("input[type=checkbox]") && g(t, e.shiftKey);
|
|
2569
2514
|
else if (l.rowClickable) {
|
|
2570
2515
|
let e = n.querySelector("a[href]")?.getAttribute("href");
|
|
2571
2516
|
e && u("row-click", e);
|
|
2572
2517
|
}
|
|
2573
2518
|
}
|
|
2574
2519
|
}
|
|
2575
|
-
function
|
|
2520
|
+
function m(e) {
|
|
2576
2521
|
return l.selectedRows?.includes(e) ?? !1;
|
|
2577
2522
|
}
|
|
2578
|
-
function
|
|
2523
|
+
function g(e, t = !1) {
|
|
2579
2524
|
u("toggle-row", e, t);
|
|
2580
2525
|
}
|
|
2581
|
-
function
|
|
2526
|
+
function v(e, t, n) {
|
|
2582
2527
|
let r = e.target.value;
|
|
2583
2528
|
u("cell-change", {
|
|
2584
2529
|
row: t,
|
|
@@ -2586,30 +2531,30 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2586
2531
|
value: r
|
|
2587
2532
|
});
|
|
2588
2533
|
}
|
|
2589
|
-
function
|
|
2534
|
+
function y(e, t) {
|
|
2590
2535
|
let n = `${l.tableId}-th-${String(t.key)}`;
|
|
2591
2536
|
return t.editable?.labelKey ? `${`${l.tableId}-td-${e.key}-${t.editable.labelKey}`} ${n} ` : n;
|
|
2592
2537
|
}
|
|
2593
|
-
let
|
|
2538
|
+
let b = r(() => {
|
|
2594
2539
|
for (let e of l.columns) if (e.editable?.labelKey) return e.editable.labelKey;
|
|
2595
|
-
}),
|
|
2596
|
-
function
|
|
2597
|
-
return e.key ===
|
|
2540
|
+
}), x = r(() => Math.max(l.columns.length, 1));
|
|
2541
|
+
function S(e) {
|
|
2542
|
+
return e.key === b.value;
|
|
2598
2543
|
}
|
|
2599
|
-
function
|
|
2544
|
+
function C(e, t) {
|
|
2600
2545
|
return l.changeTracker ? l.changeTracker.hasChange(e.key, t.key) : !1;
|
|
2601
2546
|
}
|
|
2602
|
-
function
|
|
2547
|
+
function T(e, t) {
|
|
2603
2548
|
return l.changeTracker ? l.changeTracker.hasError(e.key, t.key) : !1;
|
|
2604
2549
|
}
|
|
2605
|
-
function
|
|
2550
|
+
function E(e, t) {
|
|
2606
2551
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2607
2552
|
}
|
|
2608
2553
|
return (n, r) => (w(), o("tbody", Qn, [(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", {
|
|
2609
2554
|
key: 0,
|
|
2610
2555
|
"aria-rowindex": t.startIndex + l + 2
|
|
2611
2556
|
}, [t.bulkSelectionEnabled ? (w(), o("td", er)) : a("", !0), s("td", {
|
|
2612
|
-
colspan:
|
|
2557
|
+
colspan: x.value,
|
|
2613
2558
|
class: "table-group-row"
|
|
2614
2559
|
}, [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, tr)], 8, $n)) : a("", !0), s("tr", {
|
|
2615
2560
|
class: _([
|
|
@@ -2621,26 +2566,26 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2621
2566
|
t.rowClass ? t.rowClass(n) : void 0
|
|
2622
2567
|
]),
|
|
2623
2568
|
"aria-rowindex": t.startIndex + l + 2,
|
|
2624
|
-
onMousedown: (e) =>
|
|
2625
|
-
onClick: (e) =>
|
|
2569
|
+
onMousedown: (e) => f(e, n.key),
|
|
2570
|
+
onClick: (e) => p(e, n.key)
|
|
2626
2571
|
}, [t.bulkSelectionEnabled ? (w(), o("td", {
|
|
2627
2572
|
key: 0,
|
|
2628
2573
|
class: "td-checkbox",
|
|
2629
2574
|
onClick: r[0] ||= q(() => {}, ["stop"])
|
|
2630
2575
|
}, [s("input", {
|
|
2631
2576
|
type: "checkbox",
|
|
2632
|
-
checked:
|
|
2633
|
-
onClick: (e) =>
|
|
2577
|
+
checked: m(n.key),
|
|
2578
|
+
onClick: (e) => g(n.key, e.shiftKey),
|
|
2634
2579
|
"aria-label": `Select row ${n.key}`,
|
|
2635
2580
|
name: `row-${n.key}-checkbox`,
|
|
2636
2581
|
class: "g-bulk-select-checkbox"
|
|
2637
2582
|
}, null, 8, rr)])) : a("", !0), (w(!0), o(e, null, k(t.columns, (r) => (w(), o("td", {
|
|
2638
2583
|
key: r.key,
|
|
2639
|
-
id:
|
|
2584
|
+
id: S(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2640
2585
|
class: _([
|
|
2641
2586
|
r.editable ? "editable-td" : "",
|
|
2642
|
-
|
|
2643
|
-
|
|
2587
|
+
C(n, r) ? "g-cell-changed" : "",
|
|
2588
|
+
T(n, r) ? "g-cell-error" : "",
|
|
2644
2589
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2645
2590
|
])
|
|
2646
2591
|
}, [r.editable ? (w(), o("div", ar, [
|
|
@@ -2648,10 +2593,10 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2648
2593
|
r.editable.type === "select" ? (w(), o("select", {
|
|
2649
2594
|
key: 1,
|
|
2650
2595
|
value: n[r.key],
|
|
2651
|
-
onChange: (e) =>
|
|
2652
|
-
"aria-labelledby":
|
|
2653
|
-
"aria-invalid":
|
|
2654
|
-
"aria-errormessage":
|
|
2596
|
+
onChange: (e) => v(e, n, r),
|
|
2597
|
+
"aria-labelledby": y(n, r),
|
|
2598
|
+
"aria-invalid": T(n, r),
|
|
2599
|
+
"aria-errormessage": T(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
|
|
2655
2600
|
name: `row-${n.key}-${String(r.key)}-select`,
|
|
2656
2601
|
class: "editable-input editable-select"
|
|
2657
2602
|
}, [(w(!0), o(e, null, k(r.editable.options, (e) => (w(), o("option", {
|
|
@@ -2661,10 +2606,10 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2661
2606
|
key: 2,
|
|
2662
2607
|
value: n[r.key]
|
|
2663
2608
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
2664
|
-
onInput: (e) =>
|
|
2665
|
-
"aria-labelledby":
|
|
2666
|
-
"aria-invalid":
|
|
2667
|
-
"aria-errormessage":
|
|
2609
|
+
onInput: (e) => v(e, n, r),
|
|
2610
|
+
"aria-labelledby": y(n, r),
|
|
2611
|
+
"aria-invalid": T(n, r),
|
|
2612
|
+
"aria-errormessage": T(n, r) ? `${t.tableId}-error-${n.key}-${String(r.key)}` : void 0,
|
|
2668
2613
|
name: `row-${n.key}-${String(r.key)}-input`,
|
|
2669
2614
|
class: "editable-input",
|
|
2670
2615
|
style: {
|
|
@@ -2673,12 +2618,12 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2673
2618
|
}
|
|
2674
2619
|
}), null, 16, lr)),
|
|
2675
2620
|
r.editable.suffix ? (w(), o("span", ur, P(r.editable.suffix), 1)) : a("", !0)
|
|
2676
|
-
])) : r.display ? (w(), i(j(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)),
|
|
2621
|
+
])) : 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", {
|
|
2677
2622
|
key: 3,
|
|
2678
2623
|
role: "alert",
|
|
2679
2624
|
class: "g-cell-error-message",
|
|
2680
2625
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2681
|
-
}, P(
|
|
2626
|
+
}, P(E(n, r)), 9, dr)) : a("", !0)], 10, ir))), 128))], 42, nr)], 64))), 128))], 512));
|
|
2682
2627
|
}
|
|
2683
2628
|
});
|
|
2684
2629
|
//#endregion
|
|
@@ -2821,7 +2766,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2821
2766
|
}),
|
|
2822
2767
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
2823
2768
|
setup(t, { emit: n }) {
|
|
2824
|
-
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 } =
|
|
2769
|
+
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 } = Ae({
|
|
2825
2770
|
name: i.name,
|
|
2826
2771
|
value: d,
|
|
2827
2772
|
errors: I(i, "errors"),
|
|
@@ -2870,7 +2815,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2870
2815
|
function ne() {
|
|
2871
2816
|
i.disabled || y.value || z();
|
|
2872
2817
|
}
|
|
2873
|
-
function
|
|
2818
|
+
function J(e) {
|
|
2874
2819
|
if (S.value) {
|
|
2875
2820
|
S.value = !1;
|
|
2876
2821
|
return;
|
|
@@ -2878,13 +2823,13 @@ var Cr = ["id", "for"], wr = {
|
|
|
2878
2823
|
let t = e.relatedTarget;
|
|
2879
2824
|
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
2880
2825
|
}
|
|
2881
|
-
function
|
|
2826
|
+
function re(e) {
|
|
2882
2827
|
e.preventDefault();
|
|
2883
2828
|
}
|
|
2884
|
-
function
|
|
2829
|
+
function Y() {
|
|
2885
2830
|
S.value = !0;
|
|
2886
2831
|
}
|
|
2887
|
-
function
|
|
2832
|
+
function ie(e) {
|
|
2888
2833
|
if (i.disabled) return;
|
|
2889
2834
|
let t = N.value.length - 1;
|
|
2890
2835
|
switch (e.key) {
|
|
@@ -2912,9 +2857,9 @@ var Cr = ["id", "for"], wr = {
|
|
|
2912
2857
|
case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
|
|
2913
2858
|
}
|
|
2914
2859
|
}
|
|
2915
|
-
let
|
|
2860
|
+
let X = r(() => `${f}-input`), Z = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
|
|
2916
2861
|
let e = [];
|
|
2917
|
-
return i.instructions && e.push(
|
|
2862
|
+
return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
|
|
2918
2863
|
});
|
|
2919
2864
|
return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
|
|
2920
2865
|
"g-multiselect-open": y.value,
|
|
@@ -2922,13 +2867,13 @@ var Cr = ["id", "for"], wr = {
|
|
|
2922
2867
|
}]) }, [
|
|
2923
2868
|
t.hiddenLabel ? a("", !0) : (w(), o("label", {
|
|
2924
2869
|
key: 0,
|
|
2925
|
-
id:
|
|
2926
|
-
for:
|
|
2870
|
+
id: Z.value,
|
|
2871
|
+
for: X.value,
|
|
2927
2872
|
class: "g-multiselect-label"
|
|
2928
2873
|
}, [c(P(t.label), 1), t.required ? (w(), o("span", wr, " *")) : a("", !0)], 8, Cr)),
|
|
2929
2874
|
t.instructions ? (w(), o("div", {
|
|
2930
2875
|
key: 1,
|
|
2931
|
-
id:
|
|
2876
|
+
id: ae.value,
|
|
2932
2877
|
class: "g-multiselect-instructions"
|
|
2933
2878
|
}, P(t.instructions), 9, Tr)) : a("", !0),
|
|
2934
2879
|
s("div", {
|
|
@@ -2940,7 +2885,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2940
2885
|
d.value.length ? (w(), o("ul", {
|
|
2941
2886
|
key: 0,
|
|
2942
2887
|
class: "g-multiselect-chips",
|
|
2943
|
-
"aria-labelledby":
|
|
2888
|
+
"aria-labelledby": Z.value
|
|
2944
2889
|
}, [(w(!0), o(e, null, k(d.value, (e) => (w(), o("li", {
|
|
2945
2890
|
key: e,
|
|
2946
2891
|
class: "g-multiselect-chip"
|
|
@@ -2949,7 +2894,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2949
2894
|
class: "g-multiselect-chip-remove",
|
|
2950
2895
|
"aria-label": `Remove ${L(e)}`,
|
|
2951
2896
|
disabled: t.disabled,
|
|
2952
|
-
onMousedown:
|
|
2897
|
+
onMousedown: Y,
|
|
2953
2898
|
onClick: q((t) => W(e), ["stop"])
|
|
2954
2899
|
}, [...r[0] ||= [s("svg", {
|
|
2955
2900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2966,7 +2911,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2966
2911
|
type: "text",
|
|
2967
2912
|
role: "combobox",
|
|
2968
2913
|
class: "g-multiselect-input",
|
|
2969
|
-
id:
|
|
2914
|
+
id: X.value,
|
|
2970
2915
|
value: x.value,
|
|
2971
2916
|
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
2972
2917
|
disabled: t.disabled,
|
|
@@ -2980,9 +2925,9 @@ var Cr = ["id", "for"], wr = {
|
|
|
2980
2925
|
"aria-describedby": se.value,
|
|
2981
2926
|
"aria-required": t.required ? "true" : void 0,
|
|
2982
2927
|
onInput: K,
|
|
2983
|
-
onKeydown:
|
|
2928
|
+
onKeydown: ie,
|
|
2984
2929
|
onFocus: ne,
|
|
2985
|
-
onBlur:
|
|
2930
|
+
onBlur: J
|
|
2986
2931
|
}), null, 16, kr),
|
|
2987
2932
|
r[2] ||= s("svg", {
|
|
2988
2933
|
class: "g-multiselect-caret",
|
|
@@ -3000,7 +2945,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3000
2945
|
id: R(f) + "-listbox",
|
|
3001
2946
|
role: "listbox",
|
|
3002
2947
|
"aria-multiselectable": "true"
|
|
3003
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby":
|
|
2948
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": Z.value }, {
|
|
3004
2949
|
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": R(E) === "above" }],
|
|
3005
2950
|
style: R(D),
|
|
3006
2951
|
tabindex: "-1"
|
|
@@ -3013,7 +2958,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3013
2958
|
"g-multiselect-option--selected": F(e.value)
|
|
3014
2959
|
}]),
|
|
3015
2960
|
"aria-selected": F(e.value) ? "true" : "false",
|
|
3016
|
-
onMousedown:
|
|
2961
|
+
onMousedown: re,
|
|
3017
2962
|
onClick: (e) => U(t)
|
|
3018
2963
|
}, [s("span", Mr, [F(e.value) ? (w(), o("svg", Nr, [...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", Pr, [s("span", Fr, P(e.label), 1), e.description ? (w(), o("span", Ir, P(e.description), 1)) : a("", !0)])], 42, jr))), 128)) : (w(), o("div", Lr, " No results found. "))], 16, Ar), [[ee, y.value]])
|
|
3019
2964
|
], 2),
|
|
@@ -3069,7 +3014,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3069
3014
|
}),
|
|
3070
3015
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
3071
3016
|
setup(t, { emit: n }) {
|
|
3072
|
-
let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } =
|
|
3017
|
+
let u = t, d = V(t, "modelValue"), f = B(), { displayErrors: p, hasErrors: m } = Ae({
|
|
3073
3018
|
name: u.name,
|
|
3074
3019
|
value: d,
|
|
3075
3020
|
errors: I(u, "errors"),
|
|
@@ -3548,89 +3493,86 @@ function Ri(e, t = {}) {
|
|
|
3548
3493
|
}
|
|
3549
3494
|
//#endregion
|
|
3550
3495
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
3551
|
-
var zi = { class: "g-table-
|
|
3552
|
-
key: 0,
|
|
3553
|
-
class: "g-table-controls"
|
|
3554
|
-
}, Vi = { class: "g-table-control-actions" }, Hi = {
|
|
3496
|
+
var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions" }, Vi = {
|
|
3555
3497
|
key: 0,
|
|
3556
3498
|
class: "g-sort-builder-wrap"
|
|
3557
|
-
},
|
|
3499
|
+
}, Hi = {
|
|
3558
3500
|
key: 0,
|
|
3559
3501
|
class: "g-sort-builder-count"
|
|
3560
|
-
},
|
|
3502
|
+
}, Ui = {
|
|
3561
3503
|
key: 0,
|
|
3562
3504
|
class: "g-sort-builder-list"
|
|
3563
|
-
},
|
|
3505
|
+
}, Wi = ["data-sort-row-key", "aria-label"], Gi = {
|
|
3564
3506
|
class: "g-sort-builder-rule-priority",
|
|
3565
3507
|
"aria-hidden": "true"
|
|
3566
|
-
},
|
|
3508
|
+
}, Ki = { class: "g-sort-builder-rule-label" }, qi = ["aria-label", "onClick"], Ji = { class: "g-visually-hidden" }, Yi = {
|
|
3567
3509
|
class: "sort-indicator",
|
|
3568
3510
|
"aria-hidden": "true"
|
|
3569
|
-
},
|
|
3511
|
+
}, Xi = ["aria-label", "onClick"], Zi = {
|
|
3570
3512
|
key: 1,
|
|
3571
3513
|
class: "g-sort-builder-empty"
|
|
3572
|
-
},
|
|
3514
|
+
}, Qi = {
|
|
3573
3515
|
key: 2,
|
|
3574
3516
|
class: "g-sort-builder-add"
|
|
3575
|
-
},
|
|
3517
|
+
}, $i = { class: "g-sort-builder-add-list" }, ea = { class: "g-sort-builder-add-name" }, ta = { class: "g-sort-builder-add-actions" }, na = ["aria-label", "onClick"], ra = ["aria-label", "onClick"], ia = {
|
|
3576
3518
|
class: "sort-indicator",
|
|
3577
3519
|
"aria-hidden": "true"
|
|
3578
|
-
},
|
|
3520
|
+
}, aa = {
|
|
3579
3521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3580
3522
|
viewBox: "0 0 640 640",
|
|
3581
3523
|
height: "1.25em",
|
|
3582
3524
|
style: { transform: "rotate(180deg)" }
|
|
3583
|
-
},
|
|
3525
|
+
}, oa = {
|
|
3584
3526
|
key: 1,
|
|
3585
3527
|
class: "g-column-visibility-wrap"
|
|
3586
|
-
},
|
|
3528
|
+
}, sa = {
|
|
3587
3529
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3588
3530
|
viewBox: "0 0 640 640",
|
|
3589
3531
|
height: "1.5em",
|
|
3590
3532
|
style: { transform: "rotate(90deg)" },
|
|
3591
3533
|
"aria-hidden": "true"
|
|
3592
|
-
},
|
|
3534
|
+
}, ca = ["aria-labelledby"], la = { class: "g-column-visibility-header" }, ua = ["id"], da = { class: "g-column-visibility-legend-action" }, fa = { class: "g-column-visibility-list" }, pa = ["checked", "onChange"], ma = {
|
|
3593
3535
|
key: 2,
|
|
3594
3536
|
class: "g-table-custom-controls"
|
|
3595
|
-
},
|
|
3537
|
+
}, ha = { class: "g-clear-filters-wrap" }, ga = {
|
|
3596
3538
|
key: 0,
|
|
3597
3539
|
class: "pagination"
|
|
3598
|
-
},
|
|
3540
|
+
}, _a = { class: "g-table-controls-right" }, va = { class: "g-result-count" }, ya = ["aria-label", "aria-rowcount"], ba = { key: 0 }, xa = ["data-column-key"], Sa = { class: "g-table-head" }, Ca = { "aria-rowindex": "1" }, wa = {
|
|
3599
3541
|
key: 0,
|
|
3600
3542
|
scope: "col",
|
|
3601
3543
|
class: "g-th g-th-checkbox"
|
|
3602
|
-
},
|
|
3544
|
+
}, Ta = [
|
|
3603
3545
|
"checked",
|
|
3604
3546
|
"indeterminate",
|
|
3605
3547
|
"aria-label"
|
|
3606
|
-
],
|
|
3548
|
+
], Ea = ["id", "aria-sort"], Da = { class: "th-inner" }, Oa = ["onClick"], ka = {
|
|
3607
3549
|
key: 0,
|
|
3608
3550
|
class: "sort-indicator",
|
|
3609
3551
|
"aria-hidden": "true"
|
|
3610
|
-
},
|
|
3552
|
+
}, Aa = {
|
|
3611
3553
|
key: 1,
|
|
3612
3554
|
class: "g-visually-hidden"
|
|
3613
|
-
},
|
|
3555
|
+
}, ja = {
|
|
3614
3556
|
key: 1,
|
|
3615
3557
|
class: "g-column-head"
|
|
3616
|
-
},
|
|
3558
|
+
}, Ma = ["onClick", "aria-label"], Na = {
|
|
3617
3559
|
key: 1,
|
|
3618
3560
|
class: "g-filter-search",
|
|
3619
3561
|
role: "search"
|
|
3620
|
-
},
|
|
3562
|
+
}, Pa = [
|
|
3621
3563
|
"value",
|
|
3622
3564
|
"onInput",
|
|
3623
3565
|
"placeholder",
|
|
3624
3566
|
"aria-label"
|
|
3625
|
-
],
|
|
3567
|
+
], Fa = { key: 2 }, Ia = { class: "g-filter-toggle" }, La = [
|
|
3626
3568
|
"checked",
|
|
3627
3569
|
"onChange",
|
|
3628
3570
|
"id",
|
|
3629
3571
|
"aria-describedby"
|
|
3630
|
-
],
|
|
3572
|
+
], Ra = ["for"], za = ["id"], Ba = {
|
|
3631
3573
|
key: 4,
|
|
3632
3574
|
class: "g-multi-select"
|
|
3633
|
-
},
|
|
3575
|
+
}, Va = [
|
|
3634
3576
|
"data-column-key",
|
|
3635
3577
|
"aria-label",
|
|
3636
3578
|
"aria-valuemax",
|
|
@@ -3638,10 +3580,10 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
3638
3580
|
"aria-valuetext",
|
|
3639
3581
|
"onKeydown",
|
|
3640
3582
|
"onPointerdown"
|
|
3641
|
-
],
|
|
3583
|
+
], Ha = { key: 0 }, Ua = { "aria-rowindex": "2" }, Wa = ["colspan"], Ga = {
|
|
3642
3584
|
key: 1,
|
|
3643
3585
|
class: "g-bulk-actions-toolbar"
|
|
3644
|
-
},
|
|
3586
|
+
}, Ka = { class: "g-selected-count" }, qa = { class: "g-bulk-actions" }, Ja = /* @__PURE__ */ u({
|
|
3645
3587
|
__name: "GTable",
|
|
3646
3588
|
props: /*@__PURE__*/ m({
|
|
3647
3589
|
label: {},
|
|
@@ -3739,247 +3681,262 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
3739
3681
|
function W(e) {
|
|
3740
3682
|
e !== void 0 && y("update:pageSize", e);
|
|
3741
3683
|
}
|
|
3742
|
-
let G = B(), te = d(), ne = O(null), re = O(null),
|
|
3743
|
-
|
|
3684
|
+
let G = B(), te = d(), ne = O(null), J = O(null), re = O(null), Y = O(null), ie = O(null), X = O(0);
|
|
3685
|
+
ce(ie, (e) => {
|
|
3686
|
+
let t = e[0];
|
|
3687
|
+
X.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
|
|
3688
|
+
});
|
|
3689
|
+
let Z = O(null), ae = `${G}-table`;
|
|
3690
|
+
function oe(e) {
|
|
3744
3691
|
let t = /* @__PURE__ */ new Set();
|
|
3745
3692
|
return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
|
|
3746
3693
|
}
|
|
3747
|
-
function
|
|
3694
|
+
function se(e, t) {
|
|
3748
3695
|
return {
|
|
3749
3696
|
key: e,
|
|
3750
3697
|
order: t
|
|
3751
3698
|
};
|
|
3752
3699
|
}
|
|
3753
|
-
let
|
|
3754
|
-
function
|
|
3755
|
-
u.value =
|
|
3700
|
+
let Q = r(() => oe(u.value));
|
|
3701
|
+
function le(e) {
|
|
3702
|
+
u.value = oe(e);
|
|
3756
3703
|
}
|
|
3757
|
-
let
|
|
3758
|
-
let e = new Set(
|
|
3759
|
-
return
|
|
3704
|
+
let ue = r(() => h.columns.filter((e) => e.sortable)), de = r(() => ue.value.length > 1), fe = r(() => {
|
|
3705
|
+
let e = new Set(Q.value.map((e) => String(e.key)));
|
|
3706
|
+
return ue.value.filter((t) => !e.has(String(t.key)));
|
|
3760
3707
|
});
|
|
3761
|
-
function
|
|
3762
|
-
return
|
|
3708
|
+
function pe(e) {
|
|
3709
|
+
return Q.value.findIndex((t) => t.key === e);
|
|
3763
3710
|
}
|
|
3764
|
-
function
|
|
3765
|
-
return
|
|
3711
|
+
function me(e) {
|
|
3712
|
+
return Q.value.find((t) => t.key === e);
|
|
3766
3713
|
}
|
|
3767
|
-
function
|
|
3714
|
+
function he(e) {
|
|
3768
3715
|
return h.columns.find((t) => t.key === e)?.label || String(e);
|
|
3769
3716
|
}
|
|
3770
|
-
function
|
|
3771
|
-
let t =
|
|
3772
|
-
return t === -1 ? "none" : t > 0 ? "other" :
|
|
3717
|
+
function ge(e) {
|
|
3718
|
+
let t = pe(e);
|
|
3719
|
+
return t === -1 ? "none" : t > 0 ? "other" : Q.value[0]?.order === 1 ? "ascending" : "descending";
|
|
3773
3720
|
}
|
|
3774
|
-
function
|
|
3775
|
-
let t =
|
|
3721
|
+
function _e(e) {
|
|
3722
|
+
let t = pe(e);
|
|
3776
3723
|
if (t === -1) return "";
|
|
3777
|
-
let n =
|
|
3778
|
-
return
|
|
3724
|
+
let n = Q.value[t].order === 1 ? "ascending" : "descending";
|
|
3725
|
+
return Q.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
|
|
3779
3726
|
}
|
|
3780
|
-
function
|
|
3727
|
+
function ve(e) {
|
|
3781
3728
|
return e === 1 ? "Ascending" : "Descending";
|
|
3782
3729
|
}
|
|
3783
|
-
function
|
|
3784
|
-
let t =
|
|
3785
|
-
return t ? t.order === 1 ? [
|
|
3730
|
+
function ye(e) {
|
|
3731
|
+
let t = Q.value[0]?.key === e ? Q.value[0] : void 0;
|
|
3732
|
+
return t ? t.order === 1 ? [se(e, -1)] : [] : [se(e, 1)];
|
|
3786
3733
|
}
|
|
3787
|
-
function
|
|
3788
|
-
let t = [...
|
|
3789
|
-
return n === -1 ? (t.push(
|
|
3734
|
+
function be(e) {
|
|
3735
|
+
let t = [...Q.value], n = t.findIndex((t) => t.key === e);
|
|
3736
|
+
return n === -1 ? (t.push(se(e, 1)), t) : t[n].order === 1 ? (t[n] = se(e, -1), t) : (t.splice(n, 1), t);
|
|
3790
3737
|
}
|
|
3791
|
-
function
|
|
3738
|
+
function xe(e, t = !1) {
|
|
3792
3739
|
if (!e.sortable) return;
|
|
3793
3740
|
let n = e.key;
|
|
3794
|
-
|
|
3741
|
+
le(t ? be(n) : ye(n));
|
|
3795
3742
|
}
|
|
3796
|
-
function
|
|
3797
|
-
|
|
3743
|
+
function Se(e, t) {
|
|
3744
|
+
le([...Q.value, se(e, t)]), g(() => {
|
|
3798
3745
|
let t = ne.value;
|
|
3799
3746
|
t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
|
|
3800
3747
|
}).catch((e) => {
|
|
3801
3748
|
console.error(e);
|
|
3802
3749
|
});
|
|
3803
3750
|
}
|
|
3804
|
-
function
|
|
3805
|
-
|
|
3751
|
+
function Ce(e) {
|
|
3752
|
+
le(Q.value.map((t) => t.key === e ? se(t.key, t.order === 1 ? -1 : 1) : t));
|
|
3806
3753
|
}
|
|
3807
|
-
function
|
|
3808
|
-
|
|
3754
|
+
function we(e) {
|
|
3755
|
+
le(Q.value.filter((t) => t.key !== e));
|
|
3809
3756
|
}
|
|
3810
|
-
function
|
|
3811
|
-
|
|
3757
|
+
function Te() {
|
|
3758
|
+
le([]);
|
|
3812
3759
|
}
|
|
3813
|
-
function
|
|
3760
|
+
function Ee(e) {
|
|
3814
3761
|
return p.value[e] ?? {};
|
|
3815
3762
|
}
|
|
3816
|
-
function
|
|
3763
|
+
function De(e, t) {
|
|
3817
3764
|
p.value = {
|
|
3818
3765
|
...p.value,
|
|
3819
3766
|
[e]: {
|
|
3820
|
-
...
|
|
3767
|
+
...Ee(e),
|
|
3821
3768
|
...t
|
|
3822
3769
|
}
|
|
3823
3770
|
};
|
|
3824
3771
|
}
|
|
3825
|
-
function
|
|
3772
|
+
function Oe(e) {
|
|
3826
3773
|
return Math.max(50, Math.round(e));
|
|
3827
3774
|
}
|
|
3828
|
-
function
|
|
3829
|
-
let t =
|
|
3830
|
-
if (typeof t == "number" && Number.isFinite(t)) return
|
|
3775
|
+
function ke(e) {
|
|
3776
|
+
let t = Ee(e).width;
|
|
3777
|
+
if (typeof t == "number" && Number.isFinite(t)) return Oe(t);
|
|
3831
3778
|
}
|
|
3832
|
-
function
|
|
3779
|
+
function Ae(e) {
|
|
3833
3780
|
return document.getElementById(`${G}-th-${String(e)}`);
|
|
3834
3781
|
}
|
|
3835
|
-
function
|
|
3836
|
-
let t =
|
|
3837
|
-
return
|
|
3782
|
+
function je(e) {
|
|
3783
|
+
let t = Ae(e)?.getBoundingClientRect().width;
|
|
3784
|
+
return Oe(t ?? 50);
|
|
3838
3785
|
}
|
|
3839
|
-
function
|
|
3840
|
-
return
|
|
3786
|
+
function Me(e) {
|
|
3787
|
+
return ke(e) ?? je(e);
|
|
3841
3788
|
}
|
|
3842
|
-
function
|
|
3843
|
-
let t =
|
|
3844
|
-
return
|
|
3789
|
+
function Ne(e) {
|
|
3790
|
+
let t = Me(e), n = re.value?.getBoundingClientRect().width ?? J.value?.getBoundingClientRect().width ?? t;
|
|
3791
|
+
return Oe(Math.max(t, n));
|
|
3845
3792
|
}
|
|
3846
|
-
function
|
|
3847
|
-
|
|
3793
|
+
function Pe(e, t) {
|
|
3794
|
+
De(e, { width: Oe(t) });
|
|
3848
3795
|
}
|
|
3849
|
-
function
|
|
3850
|
-
|
|
3796
|
+
function Fe(e, t) {
|
|
3797
|
+
Pe(e, Me(e) + t);
|
|
3851
3798
|
}
|
|
3852
|
-
function
|
|
3853
|
-
|
|
3799
|
+
function Ie() {
|
|
3800
|
+
Z.value = null, window.removeEventListener("pointermove", Le), window.removeEventListener("pointerup", Ie), window.removeEventListener("pointercancel", Ie);
|
|
3854
3801
|
}
|
|
3855
|
-
function
|
|
3856
|
-
if (!
|
|
3857
|
-
let t =
|
|
3858
|
-
|
|
3802
|
+
function Le(e) {
|
|
3803
|
+
if (!Z.value) return;
|
|
3804
|
+
let t = Z.value.startWidth + (e.clientX - Z.value.startX);
|
|
3805
|
+
Pe(Z.value.key, t);
|
|
3859
3806
|
}
|
|
3860
|
-
function
|
|
3807
|
+
function Re(e, t) {
|
|
3861
3808
|
if (!h.resizableColumns) return;
|
|
3862
3809
|
e.preventDefault(), e.stopPropagation();
|
|
3863
|
-
let n =
|
|
3864
|
-
|
|
3810
|
+
let n = Me(t);
|
|
3811
|
+
Pe(t, n), Z.value = {
|
|
3865
3812
|
key: t,
|
|
3866
3813
|
startX: e.clientX,
|
|
3867
3814
|
startWidth: n
|
|
3868
|
-
}, e.currentTarget?.focus(), window.addEventListener("pointermove",
|
|
3815
|
+
}, e.currentTarget?.focus(), window.addEventListener("pointermove", Le), window.addEventListener("pointerup", Ie), window.addEventListener("pointercancel", Ie);
|
|
3869
3816
|
}
|
|
3870
|
-
function
|
|
3817
|
+
function ze(e, t) {
|
|
3871
3818
|
let n = e.shiftKey ? 48 : 16;
|
|
3872
3819
|
switch (e.key) {
|
|
3873
3820
|
case "ArrowLeft":
|
|
3874
|
-
e.preventDefault(),
|
|
3821
|
+
e.preventDefault(), Fe(t, -n);
|
|
3875
3822
|
return;
|
|
3876
3823
|
case "ArrowRight":
|
|
3877
|
-
e.preventDefault(),
|
|
3824
|
+
e.preventDefault(), Fe(t, n);
|
|
3878
3825
|
return;
|
|
3879
3826
|
case "Home":
|
|
3880
|
-
e.preventDefault(),
|
|
3827
|
+
e.preventDefault(), Pe(t, 50);
|
|
3881
3828
|
return;
|
|
3882
3829
|
case "End":
|
|
3883
|
-
e.preventDefault(),
|
|
3830
|
+
e.preventDefault(), Pe(t, Ne(t));
|
|
3884
3831
|
return;
|
|
3885
3832
|
default: return;
|
|
3886
3833
|
}
|
|
3887
3834
|
}
|
|
3888
|
-
function
|
|
3835
|
+
function Be(e) {
|
|
3889
3836
|
if (!h.resizableColumns) return;
|
|
3890
|
-
let t =
|
|
3837
|
+
let t = ke(e.key);
|
|
3891
3838
|
if (t !== void 0) return {
|
|
3892
3839
|
width: `${t}px`,
|
|
3893
3840
|
minWidth: `${t}px`
|
|
3894
3841
|
};
|
|
3895
3842
|
}
|
|
3896
|
-
function
|
|
3897
|
-
return
|
|
3843
|
+
function Ve(e) {
|
|
3844
|
+
return Me(e);
|
|
3898
3845
|
}
|
|
3899
|
-
function
|
|
3900
|
-
return `${
|
|
3846
|
+
function He(e) {
|
|
3847
|
+
return `${Ve(e)} pixels`;
|
|
3901
3848
|
}
|
|
3902
|
-
let
|
|
3849
|
+
let Ue = r(() => {
|
|
3903
3850
|
let e = te?.vnode.props ?? {};
|
|
3904
3851
|
return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
|
|
3905
|
-
}),
|
|
3906
|
-
function
|
|
3907
|
-
return
|
|
3852
|
+
}), We = r(() => h.columns.filter((e) => Ee(e.key).visible !== !1)), Ge = H(), Ke = r(() => We.value.length !== h.columns.length), qe = r(() => Ue.value && h.columns.length > 0), Je = r(() => !!Ge.controls || !!Ge["right-controls"]), Ye = r(() => h.resultCount ?? h.data.length);
|
|
3853
|
+
function Xe(e) {
|
|
3854
|
+
return Ee(e.key).visible !== !1;
|
|
3908
3855
|
}
|
|
3909
|
-
function
|
|
3910
|
-
|
|
3856
|
+
function Ze(e, t) {
|
|
3857
|
+
De(e.key, { visible: t });
|
|
3911
3858
|
}
|
|
3912
|
-
function
|
|
3859
|
+
function Qe() {
|
|
3913
3860
|
p.value = h.columns.reduce((e, t) => ({
|
|
3914
3861
|
...e,
|
|
3915
3862
|
[t.key]: {
|
|
3916
|
-
...
|
|
3863
|
+
...Ee(t.key),
|
|
3917
3864
|
visible: !0
|
|
3918
3865
|
}
|
|
3919
3866
|
}), { ...p.value });
|
|
3920
3867
|
}
|
|
3921
|
-
let
|
|
3922
|
-
function
|
|
3868
|
+
let $e = r(() => h.pagination && typeof h.pageSize == "number"), et = r(() => !!(de.value || S.value || $e.value || qe.value || Je.value));
|
|
3869
|
+
function tt() {
|
|
3923
3870
|
return f.value;
|
|
3924
3871
|
}
|
|
3925
|
-
function
|
|
3926
|
-
if (e.filter) return yr(e.filter,
|
|
3872
|
+
function nt(e) {
|
|
3873
|
+
if (e.filter) return yr(e.filter, tt()[pr(e)]);
|
|
3927
3874
|
}
|
|
3928
|
-
function
|
|
3929
|
-
e.filter && (
|
|
3875
|
+
function rt(e, t) {
|
|
3876
|
+
e.filter && (tt()[pr(e)] = br(e.filter, t));
|
|
3930
3877
|
}
|
|
3931
|
-
function
|
|
3932
|
-
return e.filter ? xr(e.filter,
|
|
3878
|
+
function it(e) {
|
|
3879
|
+
return e.filter ? xr(e.filter, tt()[pr(e)]) : !1;
|
|
3933
3880
|
}
|
|
3934
|
-
function
|
|
3881
|
+
function at(e) {
|
|
3935
3882
|
return e.filter?.type !== "select" && e.filter?.type !== "multi-select" ? [] : e.filter.options;
|
|
3936
3883
|
}
|
|
3937
|
-
function
|
|
3938
|
-
let n =
|
|
3884
|
+
function ot(e, t) {
|
|
3885
|
+
let n = at(e).findIndex((e) => e.value === t);
|
|
3939
3886
|
return n === -1 ? void 0 : String(n);
|
|
3940
3887
|
}
|
|
3941
|
-
function
|
|
3942
|
-
return
|
|
3888
|
+
function st(e, t) {
|
|
3889
|
+
return at(e)[Number(t)]?.value;
|
|
3943
3890
|
}
|
|
3944
|
-
function
|
|
3945
|
-
return
|
|
3891
|
+
function lt(e) {
|
|
3892
|
+
return at(e).map((e, t) => ({
|
|
3946
3893
|
label: e.label,
|
|
3947
3894
|
value: String(t),
|
|
3948
3895
|
description: e.description
|
|
3949
3896
|
}));
|
|
3950
3897
|
}
|
|
3951
|
-
function
|
|
3952
|
-
return
|
|
3898
|
+
function ut(e) {
|
|
3899
|
+
return at(e).map((e, t) => ({
|
|
3953
3900
|
label: e.label,
|
|
3954
3901
|
value: String(t),
|
|
3955
3902
|
hint: e.description
|
|
3956
3903
|
}));
|
|
3957
3904
|
}
|
|
3958
|
-
function
|
|
3959
|
-
return
|
|
3905
|
+
function dt(e) {
|
|
3906
|
+
return ot(e, nt(e)) ?? null;
|
|
3960
3907
|
}
|
|
3961
|
-
function
|
|
3962
|
-
|
|
3908
|
+
function ft(e, t) {
|
|
3909
|
+
rt(e, t == null ? void 0 : st(e, t));
|
|
3963
3910
|
}
|
|
3964
|
-
function
|
|
3965
|
-
let t =
|
|
3966
|
-
return Array.isArray(t) ? t.map((t) =>
|
|
3911
|
+
function pt(e) {
|
|
3912
|
+
let t = nt(e);
|
|
3913
|
+
return Array.isArray(t) ? t.map((t) => ot(e, t)).filter((e) => e !== void 0) : [];
|
|
3967
3914
|
}
|
|
3968
|
-
function
|
|
3969
|
-
|
|
3915
|
+
function mt(e, t) {
|
|
3916
|
+
rt(e, t.map((t) => st(e, t)));
|
|
3970
3917
|
}
|
|
3971
3918
|
return b(() => {
|
|
3972
|
-
|
|
3919
|
+
Ie();
|
|
3973
3920
|
}), x(() => {
|
|
3974
3921
|
h.rowClickable && h.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
3975
3922
|
for (let e of h.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
|
|
3976
|
-
}), (n, r) => (w(), o("div",
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3923
|
+
}), (n, r) => (w(), o("div", {
|
|
3924
|
+
ref_key: "outerWrapRef",
|
|
3925
|
+
ref: re,
|
|
3926
|
+
class: "g-table-outer-wrap",
|
|
3927
|
+
style: v({ "--g-table-controls-height": `${et.value ? X.value : 0}px` })
|
|
3928
|
+
}, [s("div", zi, [
|
|
3929
|
+
et.value ? (w(), o("div", {
|
|
3930
|
+
key: 0,
|
|
3931
|
+
ref_key: "controlsRef",
|
|
3932
|
+
ref: ie,
|
|
3933
|
+
class: "g-table-controls"
|
|
3934
|
+
}, [
|
|
3935
|
+
s("div", Bi, [
|
|
3936
|
+
de.value ? (w(), o("div", Vi, [l(ct, null, {
|
|
3937
|
+
trigger: K(({ toggle: e }) => [l($, {
|
|
3981
3938
|
size: "small",
|
|
3982
|
-
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active":
|
|
3939
|
+
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Q.value.length > 0 }]),
|
|
3983
3940
|
"aria-label": "Choose sort order",
|
|
3984
3941
|
onClick: e
|
|
3985
3942
|
}, {
|
|
@@ -3992,7 +3949,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
3992
3949
|
}, [s("path", {
|
|
3993
3950
|
fill: "currentColor",
|
|
3994
3951
|
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"
|
|
3995
|
-
})], -1),
|
|
3952
|
+
})], -1), Q.value.length ? (w(), o("span", Hi, P(Q.value.length), 1)) : a("", !0)]),
|
|
3996
3953
|
_: 1
|
|
3997
3954
|
}, 8, ["class", "onClick"])]),
|
|
3998
3955
|
default: K(() => [s("fieldset", {
|
|
@@ -4004,21 +3961,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4004
3961
|
}, [
|
|
4005
3962
|
r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
4006
3963
|
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),
|
|
4007
|
-
|
|
3964
|
+
Q.value.length ? (w(), o("ol", Ui, [(w(!0), o(e, null, k(Q.value, (e, t) => (w(), o("li", {
|
|
4008
3965
|
key: e.key,
|
|
4009
3966
|
class: "g-sort-builder-rule",
|
|
4010
3967
|
tabindex: "-1",
|
|
4011
3968
|
"data-sort-row-key": String(e.key),
|
|
4012
|
-
"aria-label": `${
|
|
3969
|
+
"aria-label": `${he(e.key)} ${ve(e.order)} sort, priority ${t + 1}`
|
|
4013
3970
|
}, [
|
|
4014
|
-
s("span",
|
|
4015
|
-
s("span",
|
|
3971
|
+
s("span", Gi, P(t + 1), 1),
|
|
3972
|
+
s("span", Ki, P(he(e.key)), 1),
|
|
4016
3973
|
s("button", {
|
|
4017
3974
|
type: "button",
|
|
4018
3975
|
class: "g-sort-builder-direction",
|
|
4019
|
-
"aria-label": `Toggle ${
|
|
4020
|
-
onClick: (t) =>
|
|
4021
|
-
}, [s("span",
|
|
3976
|
+
"aria-label": `Toggle ${he(e.key)} sort direction`,
|
|
3977
|
+
onClick: (t) => Ce(e.key)
|
|
3978
|
+
}, [s("span", Ji, P(ve(e.order)), 1), s("span", Yi, [(w(), o("svg", {
|
|
4022
3979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4023
3980
|
viewBox: "0 0 640 640",
|
|
4024
3981
|
height: "1.25em",
|
|
@@ -4026,22 +3983,22 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4026
3983
|
}, [...r[2] ||= [s("path", {
|
|
4027
3984
|
fill: "currentColor",
|
|
4028
3985
|
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"
|
|
4029
|
-
}, null, -1)]], 4))])], 8,
|
|
3986
|
+
}, null, -1)]], 4))])], 8, qi),
|
|
4030
3987
|
s("button", {
|
|
4031
3988
|
type: "button",
|
|
4032
3989
|
class: "g-sort-builder-remove",
|
|
4033
|
-
"aria-label": `Remove ${
|
|
4034
|
-
onClick: (t) =>
|
|
4035
|
-
}, " Remove ", 8,
|
|
4036
|
-
], 8,
|
|
4037
|
-
|
|
3990
|
+
"aria-label": `Remove ${he(e.key)} sort`,
|
|
3991
|
+
onClick: (t) => we(e.key)
|
|
3992
|
+
}, " Remove ", 8, Xi)
|
|
3993
|
+
], 8, Wi))), 128))])) : (w(), o("p", Zi, " No active sort rules. ")),
|
|
3994
|
+
fe.value.length ? (w(), o("div", Qi, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", $i, [(w(!0), o(e, null, k(fe.value, (e) => (w(), o("li", {
|
|
4038
3995
|
key: e.key,
|
|
4039
3996
|
class: "g-sort-builder-add-item"
|
|
4040
|
-
}, [s("span",
|
|
3997
|
+
}, [s("span", ea, P(e.label), 1), s("div", ta, [s("button", {
|
|
4041
3998
|
type: "button",
|
|
4042
3999
|
class: "g-sort-builder-direction",
|
|
4043
4000
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
4044
|
-
onClick: (t) =>
|
|
4001
|
+
onClick: (t) => Se(e.key, 1)
|
|
4045
4002
|
}, [...r[3] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
|
|
4046
4003
|
class: "sort-indicator",
|
|
4047
4004
|
"aria-hidden": "true"
|
|
@@ -4052,21 +4009,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4052
4009
|
}, [s("path", {
|
|
4053
4010
|
fill: "currentColor",
|
|
4054
4011
|
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"
|
|
4055
|
-
})])], -1)]], 8,
|
|
4012
|
+
})])], -1)]], 8, na), s("button", {
|
|
4056
4013
|
type: "button",
|
|
4057
4014
|
class: "g-sort-builder-direction",
|
|
4058
4015
|
"aria-label": `Add ${e.label} descending sort`,
|
|
4059
|
-
onClick: (t) =>
|
|
4060
|
-
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span",
|
|
4016
|
+
onClick: (t) => Se(e.key, -1)
|
|
4017
|
+
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ia, [(w(), o("svg", aa, [...r[4] ||= [s("path", {
|
|
4061
4018
|
fill: "currentColor",
|
|
4062
4019
|
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"
|
|
4063
|
-
}, null, -1)]]))])], 8,
|
|
4064
|
-
|
|
4020
|
+
}, null, -1)]]))])], 8, ra)])]))), 128))])])) : a("", !0),
|
|
4021
|
+
Q.value.length ? (w(), i($, {
|
|
4065
4022
|
key: 3,
|
|
4066
4023
|
outlined: "",
|
|
4067
4024
|
size: "small",
|
|
4068
4025
|
class: "g-sort-builder-clear",
|
|
4069
|
-
onClick:
|
|
4026
|
+
onClick: Te
|
|
4070
4027
|
}, {
|
|
4071
4028
|
default: K(() => [...r[7] ||= [c(" Clear sort ", -1)]]),
|
|
4072
4029
|
_: 1
|
|
@@ -4074,14 +4031,14 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4074
4031
|
], 512)]),
|
|
4075
4032
|
_: 1
|
|
4076
4033
|
})])) : a("", !0),
|
|
4077
|
-
|
|
4078
|
-
trigger: K(({ toggle: e }) => [l(
|
|
4034
|
+
qe.value ? (w(), o("div", oa, [l(ct, null, {
|
|
4035
|
+
trigger: K(({ toggle: e }) => [l($, {
|
|
4079
4036
|
size: "small",
|
|
4080
|
-
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active":
|
|
4037
|
+
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Ke.value }]),
|
|
4081
4038
|
"aria-label": "Choose visible columns",
|
|
4082
4039
|
onClick: e
|
|
4083
4040
|
}, {
|
|
4084
|
-
default: K(() => [(w(), o("svg",
|
|
4041
|
+
default: K(() => [(w(), o("svg", sa, [...r[10] ||= [s("path", {
|
|
4085
4042
|
fill: "currentColor",
|
|
4086
4043
|
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"
|
|
4087
4044
|
}, null, -1)]]))]),
|
|
@@ -4090,29 +4047,29 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4090
4047
|
default: K(() => [s("fieldset", {
|
|
4091
4048
|
class: "g-column-visibility-popover",
|
|
4092
4049
|
"aria-labelledby": `${R(G)}-column-visibility-heading`
|
|
4093
|
-
}, [s("div",
|
|
4050
|
+
}, [s("div", la, [s("span", {
|
|
4094
4051
|
id: `${R(G)}-column-visibility-heading`,
|
|
4095
4052
|
class: "g-column-visibility-heading"
|
|
4096
|
-
}, " Shown columns ", 8,
|
|
4053
|
+
}, " Shown columns ", 8, ua), s("span", da, [l($, {
|
|
4097
4054
|
text: "",
|
|
4098
4055
|
size: "small",
|
|
4099
|
-
class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !
|
|
4100
|
-
onClick:
|
|
4056
|
+
class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Ke.value }]),
|
|
4057
|
+
onClick: Qe
|
|
4101
4058
|
}, {
|
|
4102
4059
|
default: K(() => [...r[11] ||= [c(" Show All ", -1)]]),
|
|
4103
4060
|
_: 1
|
|
4104
|
-
}, 8, ["class"])])]), s("div",
|
|
4061
|
+
}, 8, ["class"])])]), s("div", fa, [(w(!0), o(e, null, k(t.columns, (e) => (w(), o("label", {
|
|
4105
4062
|
key: e.key,
|
|
4106
4063
|
class: "g-column-visibility-option"
|
|
4107
4064
|
}, [s("input", {
|
|
4108
|
-
checked:
|
|
4065
|
+
checked: Xe(e),
|
|
4109
4066
|
type: "checkbox",
|
|
4110
|
-
onChange: (t) =>
|
|
4111
|
-
}, null, 40,
|
|
4067
|
+
onChange: (t) => Ze(e, t.target.checked)
|
|
4068
|
+
}, null, 40, pa), s("span", null, P(e.label), 1)]))), 128))])], 8, ca)]),
|
|
4112
4069
|
_: 1
|
|
4113
4070
|
})])) : a("", !0),
|
|
4114
|
-
|
|
4115
|
-
s("div",
|
|
4071
|
+
Je.value ? (w(), o("div", ma, [A(n.$slots, "controls")])) : a("", !0),
|
|
4072
|
+
s("div", ha, [R(S) ? (w(), i($, {
|
|
4116
4073
|
key: 0,
|
|
4117
4074
|
outlined: "",
|
|
4118
4075
|
size: "small",
|
|
@@ -4132,11 +4089,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4132
4089
|
_: 1
|
|
4133
4090
|
}, 8, ["onClick"])) : a("", !0)])
|
|
4134
4091
|
]),
|
|
4135
|
-
|
|
4092
|
+
$e.value ? (w(), o("div", ga, [l(yi, {
|
|
4136
4093
|
start: t.startIndex,
|
|
4137
4094
|
"page-size": t.pageSize,
|
|
4138
4095
|
"page-sizes": t.pageSizes,
|
|
4139
|
-
total:
|
|
4096
|
+
total: Ye.value,
|
|
4140
4097
|
"onUpdate:start": ee,
|
|
4141
4098
|
"onUpdate:pageSize": W
|
|
4142
4099
|
}, null, 8, [
|
|
@@ -4145,66 +4102,66 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4145
4102
|
"page-sizes",
|
|
4146
4103
|
"total"
|
|
4147
4104
|
])])) : a("", !0),
|
|
4148
|
-
s("div",
|
|
4149
|
-
])) : a("", !0),
|
|
4105
|
+
s("div", _a, [s("span", va, P(Ye.value) + " results", 1), A(n.$slots, "right-controls")])
|
|
4106
|
+
], 512)) : a("", !0),
|
|
4150
4107
|
s("div", {
|
|
4151
4108
|
ref_key: "tableWrapRef",
|
|
4152
|
-
ref:
|
|
4109
|
+
ref: Y,
|
|
4153
4110
|
class: "g-table-table-wrap"
|
|
4154
4111
|
}, [s("table", {
|
|
4155
4112
|
id: ae,
|
|
4156
4113
|
class: _(["g-table", { "g-table--resizable": t.resizableColumns }]),
|
|
4157
4114
|
ref_key: "tableRef",
|
|
4158
|
-
ref:
|
|
4115
|
+
ref: J,
|
|
4159
4116
|
"aria-label": t.label,
|
|
4160
|
-
"aria-rowcount":
|
|
4117
|
+
"aria-rowcount": Ye.value
|
|
4161
4118
|
}, [
|
|
4162
|
-
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col",
|
|
4119
|
+
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", ba)) : a("", !0), (w(!0), o(e, null, k(We.value, (e) => (w(), o("col", {
|
|
4163
4120
|
key: e.key,
|
|
4164
4121
|
"data-column-key": String(e.key),
|
|
4165
|
-
style: v(
|
|
4166
|
-
}, null, 12,
|
|
4167
|
-
s("thead",
|
|
4122
|
+
style: v(Be(e))
|
|
4123
|
+
}, null, 12, xa))), 128))]),
|
|
4124
|
+
s("thead", Sa, [s("tr", Ca, [t.bulkSelectionEnabled ? (w(), o("th", wa, [s("input", {
|
|
4168
4125
|
type: "checkbox",
|
|
4169
4126
|
checked: D.value,
|
|
4170
4127
|
indeterminate: j.value,
|
|
4171
4128
|
onChange: N,
|
|
4172
4129
|
"aria-label": D.value ? "Deselect all rows" : "Select all rows",
|
|
4173
4130
|
class: "g-bulk-select-checkbox"
|
|
4174
|
-
}, null, 40,
|
|
4131
|
+
}, null, 40, Ta)])) : a("", !0), (w(!0), o(e, null, k(We.value, (e) => (w(), o("th", {
|
|
4175
4132
|
key: e.key,
|
|
4176
4133
|
id: `${R(G)}-th-${String(e.key)}`,
|
|
4177
|
-
"aria-sort":
|
|
4134
|
+
"aria-sort": ge(e.key),
|
|
4178
4135
|
class: _([
|
|
4179
4136
|
"g-th",
|
|
4180
4137
|
{ "g-th--resizable": t.resizableColumns },
|
|
4181
|
-
{ sorted:
|
|
4182
|
-
{ filtered:
|
|
4138
|
+
{ sorted: pe(e.key) !== -1 },
|
|
4139
|
+
{ filtered: it(e) }
|
|
4183
4140
|
]),
|
|
4184
4141
|
scope: "col"
|
|
4185
|
-
}, [s("div",
|
|
4142
|
+
}, [s("div", Da, [e.sortable ? (w(), o("button", {
|
|
4186
4143
|
key: 0,
|
|
4187
4144
|
type: "button",
|
|
4188
4145
|
class: "g-column-head",
|
|
4189
|
-
onClick: (t) =>
|
|
4146
|
+
onClick: (t) => xe(e, t.shiftKey)
|
|
4190
4147
|
}, [
|
|
4191
4148
|
r[14] ||= s("span", { class: "g-visually-hidden" }, "Sort by ", -1),
|
|
4192
4149
|
c(" " + P(e.label) + " ", 1),
|
|
4193
|
-
|
|
4150
|
+
pe(e.key) === -1 ? a("", !0) : (w(), o("span", ka, [(w(), o("svg", {
|
|
4194
4151
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4195
4152
|
viewBox: "0 0 640 640",
|
|
4196
4153
|
height: "1.5em",
|
|
4197
|
-
style: v({ transform: `rotate(${
|
|
4154
|
+
style: v({ transform: `rotate(${me(e.key)?.order === 1 ? 0 : 180}deg)` })
|
|
4198
4155
|
}, [...r[13] ||= [s("path", {
|
|
4199
4156
|
fill: "currentColor",
|
|
4200
4157
|
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"
|
|
4201
4158
|
}, null, -1)]], 4))])),
|
|
4202
|
-
|
|
4203
|
-
], 8,
|
|
4159
|
+
pe(e.key) === -1 ? a("", !0) : (w(), o("span", Aa, P(_e(e.key)), 1))
|
|
4160
|
+
], 8, Oa)) : (w(), o("span", ja, P(e.label), 1)), e.filter ? (w(), i(ct, { key: 2 }, {
|
|
4204
4161
|
trigger: K(({ toggle: t }) => [s("button", {
|
|
4205
4162
|
onClick: q(t, ["stop"]),
|
|
4206
|
-
"aria-label":
|
|
4207
|
-
class: _(["g-filter-btn", { "g-active":
|
|
4163
|
+
"aria-label": it(e) ? `Filter ${e.label} column (filtered)` : `Filter ${e.label} column`,
|
|
4164
|
+
class: _(["g-filter-btn", { "g-active": it(e) }]),
|
|
4208
4165
|
type: "button"
|
|
4209
4166
|
}, [...r[15] ||= [s("svg", {
|
|
4210
4167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4214,12 +4171,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4214
4171
|
}, [s("path", {
|
|
4215
4172
|
fill: "currentColor",
|
|
4216
4173
|
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"
|
|
4217
|
-
})], -1)]], 10,
|
|
4174
|
+
})], -1)]], 10, Ma)]),
|
|
4218
4175
|
default: K(() => [e.filter.type === "select" ? (w(), i(Jt, {
|
|
4219
4176
|
key: 0,
|
|
4220
|
-
"model-value":
|
|
4221
|
-
"onUpdate:modelValue": (t) =>
|
|
4222
|
-
options:
|
|
4177
|
+
"model-value": dt(e),
|
|
4178
|
+
"onUpdate:modelValue": (t) => ft(e, t),
|
|
4179
|
+
options: lt(e),
|
|
4223
4180
|
class: "g-filter-select",
|
|
4224
4181
|
label: "Filter select",
|
|
4225
4182
|
searchable: "",
|
|
@@ -4230,7 +4187,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4230
4187
|
"onUpdate:modelValue",
|
|
4231
4188
|
"options",
|
|
4232
4189
|
"search-description"
|
|
4233
|
-
])) : e.filter.type === "search" ? (w(), o("div",
|
|
4190
|
+
])) : e.filter.type === "search" ? (w(), o("div", Na, [r[16] ||= s("span", {
|
|
4234
4191
|
class: "g-filter-search-icon",
|
|
4235
4192
|
"aria-hidden": "true"
|
|
4236
4193
|
}, [s("svg", {
|
|
@@ -4243,29 +4200,29 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4243
4200
|
})])], -1), s("input", {
|
|
4244
4201
|
type: "search",
|
|
4245
4202
|
class: "g-filter-search-input",
|
|
4246
|
-
value:
|
|
4247
|
-
onInput: (t) =>
|
|
4203
|
+
value: nt(e),
|
|
4204
|
+
onInput: (t) => rt(e, t.target.value),
|
|
4248
4205
|
placeholder: e.filter.placeholder,
|
|
4249
4206
|
"aria-label": `Search ${e.label}`
|
|
4250
|
-
}, null, 40,
|
|
4207
|
+
}, null, 40, Pa)])) : e.filter.type === "toggle" ? (w(), o("div", Fa, [s("div", Ia, [
|
|
4251
4208
|
s("input", {
|
|
4252
4209
|
type: "checkbox",
|
|
4253
|
-
checked:
|
|
4254
|
-
onChange: (t) =>
|
|
4210
|
+
checked: nt(e) === !0,
|
|
4211
|
+
onChange: (t) => rt(e, t.target.checked),
|
|
4255
4212
|
id: `${R(G)}-filter-${String(e.key)}`,
|
|
4256
4213
|
"aria-describedby": e.filter.description ? `${R(G)}-filter-description-${String(e.key)}` : void 0
|
|
4257
|
-
}, null, 40,
|
|
4258
|
-
s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9,
|
|
4214
|
+
}, null, 40, La),
|
|
4215
|
+
s("label", { for: `${R(G)}-filter-${String(e.key)}` }, P(e.filter.label), 9, Ra),
|
|
4259
4216
|
e.filter.description ? (w(), o("span", {
|
|
4260
4217
|
key: 0,
|
|
4261
4218
|
class: "g-filter-description",
|
|
4262
4219
|
id: `${R(G)}-filter-description-${String(e.key)}`
|
|
4263
|
-
}, P(e.filter.description), 9,
|
|
4220
|
+
}, P(e.filter.description), 9, za)) : a("", !0)
|
|
4264
4221
|
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Rr, {
|
|
4265
4222
|
key: 3,
|
|
4266
|
-
"model-value":
|
|
4267
|
-
"onUpdate:modelValue": (t) =>
|
|
4268
|
-
options:
|
|
4223
|
+
"model-value": pt(e),
|
|
4224
|
+
"onUpdate:modelValue": (t) => mt(e, t),
|
|
4225
|
+
options: lt(e),
|
|
4269
4226
|
label: "Include values",
|
|
4270
4227
|
placeholder: e.filter.placeholder,
|
|
4271
4228
|
"search-description": e.filter.searchDescription,
|
|
@@ -4276,21 +4233,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4276
4233
|
"options",
|
|
4277
4234
|
"placeholder",
|
|
4278
4235
|
"search-description"
|
|
4279
|
-
])) : e.filter.type === "multi-select" ? (w(), o("div",
|
|
4280
|
-
"model-value":
|
|
4281
|
-
"onUpdate:modelValue": (t) =>
|
|
4282
|
-
options:
|
|
4236
|
+
])) : e.filter.type === "multi-select" ? (w(), o("div", Ba, [l(Yr, {
|
|
4237
|
+
"model-value": pt(e),
|
|
4238
|
+
"onUpdate:modelValue": (t) => mt(e, t),
|
|
4239
|
+
options: ut(e),
|
|
4283
4240
|
label: "Include values"
|
|
4284
4241
|
}, null, 8, [
|
|
4285
4242
|
"model-value",
|
|
4286
4243
|
"onUpdate:modelValue",
|
|
4287
4244
|
"options"
|
|
4288
|
-
]),
|
|
4245
|
+
]), it(e) ? (w(), i($, {
|
|
4289
4246
|
key: 0,
|
|
4290
4247
|
class: "clear-multiselect-btn",
|
|
4291
4248
|
theme: "accent",
|
|
4292
4249
|
size: "small",
|
|
4293
|
-
onClick: (t) =>
|
|
4250
|
+
onClick: (t) => rt(e, [])
|
|
4294
4251
|
}, {
|
|
4295
4252
|
default: K(() => [...r[17] ||= [c(" Clear ", -1)]]),
|
|
4296
4253
|
_: 1
|
|
@@ -4299,27 +4256,27 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4299
4256
|
}, 1024)) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
|
|
4300
4257
|
key: 0,
|
|
4301
4258
|
"data-column-key": String(e.key),
|
|
4302
|
-
class: _(["g-column-resize-handle", { "g-column-resize-handle--active":
|
|
4259
|
+
class: _(["g-column-resize-handle", { "g-column-resize-handle--active": Z.value?.key === e.key }]),
|
|
4303
4260
|
role: "separator",
|
|
4304
4261
|
tabindex: "0",
|
|
4305
4262
|
"aria-orientation": "vertical",
|
|
4306
4263
|
"aria-controls": ae,
|
|
4307
4264
|
"aria-label": `Resize ${e.label} column`,
|
|
4308
4265
|
"aria-valuemin": 50,
|
|
4309
|
-
"aria-valuemax":
|
|
4310
|
-
"aria-valuenow":
|
|
4311
|
-
"aria-valuetext":
|
|
4266
|
+
"aria-valuemax": Ne(e.key),
|
|
4267
|
+
"aria-valuenow": Ve(e.key),
|
|
4268
|
+
"aria-valuetext": He(e.key),
|
|
4312
4269
|
onClick: r[0] ||= q(() => {}, ["stop", "prevent"]),
|
|
4313
|
-
onKeydown: (t) =>
|
|
4314
|
-
onPointerdown: (t) =>
|
|
4315
|
-
}, null, 42,
|
|
4316
|
-
t.data.length === 0 ? (w(), o("tbody",
|
|
4270
|
+
onKeydown: (t) => ze(t, e.key),
|
|
4271
|
+
onPointerdown: (t) => Re(t, e.key)
|
|
4272
|
+
}, null, 42, Va)) : a("", !0)], 10, Ea))), 128))])]),
|
|
4273
|
+
t.data.length === 0 ? (w(), o("tbody", Ha, [s("tr", Ua, [s("td", {
|
|
4317
4274
|
class: "g-table-empty",
|
|
4318
|
-
colspan:
|
|
4319
|
-
}, [A(n.$slots, "empty")], 8,
|
|
4275
|
+
colspan: We.value.length + +!!t.bulkSelectionEnabled
|
|
4276
|
+
}, [A(n.$slots, "empty")], 8, Wa)])])) : (w(), i(fr, {
|
|
4320
4277
|
key: 1,
|
|
4321
4278
|
data: t.data,
|
|
4322
|
-
columns:
|
|
4279
|
+
columns: We.value,
|
|
4323
4280
|
"group-by": t.groupBy,
|
|
4324
4281
|
"group-render": t.groupRender,
|
|
4325
4282
|
"row-clickable": t.rowClickable,
|
|
@@ -4345,8 +4302,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4345
4302
|
"table-id",
|
|
4346
4303
|
"change-tracker"
|
|
4347
4304
|
]))
|
|
4348
|
-
], 10,
|
|
4349
|
-
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div",
|
|
4305
|
+
], 10, ya)], 512),
|
|
4306
|
+
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Ga, [s("span", Ka, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", qa, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l($, {
|
|
4350
4307
|
theme: e.theme || "accent",
|
|
4351
4308
|
onClick: (t) => z(e.id),
|
|
4352
4309
|
size: "small"
|
|
@@ -4354,9 +4311,9 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4354
4311
|
default: K(() => [c(P(e.label) + " " + P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s"), 1)]),
|
|
4355
4312
|
_: 2
|
|
4356
4313
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
4357
|
-
]));
|
|
4314
|
+
])], 4));
|
|
4358
4315
|
}
|
|
4359
|
-
}),
|
|
4316
|
+
}), Ya = ["id"], Xa = { class: "g-modal-inner" }, Za = { class: "g-modal-header" }, Qa = ["id"], $a = ["id"], eo = /* @__PURE__ */ u({
|
|
4360
4317
|
__name: "GModal",
|
|
4361
4318
|
props: {
|
|
4362
4319
|
label: {},
|
|
@@ -4400,12 +4357,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4400
4357
|
ref_key: "dialog",
|
|
4401
4358
|
ref: f,
|
|
4402
4359
|
style: { zIndex: R(b) }
|
|
4403
|
-
}), [s("div",
|
|
4360
|
+
}), [s("div", Xa, [s("div", Za, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
|
|
4404
4361
|
key: 0,
|
|
4405
4362
|
id: "modal-label-" + R(m),
|
|
4406
4363
|
class: "g-modal-label",
|
|
4407
4364
|
tabindex: "-1"
|
|
4408
|
-
}, P(e.label), 9,
|
|
4365
|
+
}, P(e.label), 9, Qa)), s("button", {
|
|
4409
4366
|
class: "g-modal-close",
|
|
4410
4367
|
onClick: T,
|
|
4411
4368
|
"aria-label": "Close"
|
|
@@ -4420,36 +4377,36 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4420
4377
|
})], -1)]])]), s("div", {
|
|
4421
4378
|
id: "modal-description-" + R(m),
|
|
4422
4379
|
class: "g-modal-content"
|
|
4423
|
-
}, [A(r.$slots, "default")], 8,
|
|
4380
|
+
}, [A(r.$slots, "default")], 8, $a)])], 16, Ya)]),
|
|
4424
4381
|
_: 3
|
|
4425
4382
|
})]));
|
|
4426
4383
|
}
|
|
4427
|
-
}),
|
|
4384
|
+
}), to = /* @__PURE__ */ u({
|
|
4428
4385
|
__name: "GDetailList",
|
|
4429
4386
|
props: { variant: { default: "grid" } },
|
|
4430
4387
|
setup(e) {
|
|
4431
4388
|
let t = e;
|
|
4432
4389
|
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
|
|
4433
4390
|
}
|
|
4434
|
-
}),
|
|
4391
|
+
}), no = { class: "g-detail-list-item" }, ro = { class: "g-detail-list-item__label" }, io = { class: "g-detail-list-item__value" }, ao = /* @__PURE__ */ u({
|
|
4435
4392
|
__name: "GDetailListItem",
|
|
4436
4393
|
props: { label: {} },
|
|
4437
4394
|
setup(e) {
|
|
4438
|
-
return (t, n) => (w(), o("div",
|
|
4395
|
+
return (t, n) => (w(), o("div", no, [s("dt", ro, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", io, [A(t.$slots, "default")])]));
|
|
4439
4396
|
}
|
|
4440
|
-
}),
|
|
4397
|
+
}), oo = {
|
|
4441
4398
|
key: 0,
|
|
4442
4399
|
class: "g-scroll-lock-overlay"
|
|
4443
|
-
},
|
|
4400
|
+
}, so = /* @__PURE__ */ u({
|
|
4444
4401
|
__name: "GOverlay",
|
|
4445
4402
|
setup(e) {
|
|
4446
4403
|
let { hasScrollLock: t } = Je();
|
|
4447
4404
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
4448
|
-
default: K(() => [R(t) ? (w(), o("div",
|
|
4405
|
+
default: K(() => [R(t) ? (w(), o("div", oo)) : a("", !0)]),
|
|
4449
4406
|
_: 1
|
|
4450
4407
|
}));
|
|
4451
4408
|
}
|
|
4452
|
-
}),
|
|
4409
|
+
}), co = { class: "popover-content" }, lo = { class: "year-dropdown" }, uo = { class: "month-selector" }, fo = /* @__PURE__ */ u({
|
|
4453
4410
|
__name: "GTermSelectorControl",
|
|
4454
4411
|
props: /*@__PURE__*/ m({
|
|
4455
4412
|
termYears: { default: () => ["2026"] },
|
|
@@ -4470,7 +4427,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4470
4427
|
emits: ["update:modelValue"],
|
|
4471
4428
|
setup(e) {
|
|
4472
4429
|
let t = V(e, "modelValue");
|
|
4473
|
-
return (n, r) => (w(), o("div",
|
|
4430
|
+
return (n, r) => (w(), o("div", co, [s("div", lo, [l(Jt, {
|
|
4474
4431
|
modelValue: t.value.year,
|
|
4475
4432
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
4476
4433
|
options: e.termYears,
|
|
@@ -4479,7 +4436,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4479
4436
|
"modelValue",
|
|
4480
4437
|
"options",
|
|
4481
4438
|
"label"
|
|
4482
|
-
])]), s("div",
|
|
4439
|
+
])]), s("div", uo, [l(Ct, {
|
|
4483
4440
|
modelValue: t.value.name,
|
|
4484
4441
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
4485
4442
|
options: e.termNames,
|
|
@@ -4491,7 +4448,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4491
4448
|
"label"
|
|
4492
4449
|
])])]));
|
|
4493
4450
|
}
|
|
4494
|
-
}),
|
|
4451
|
+
}), po = { class: "g-term-selector" }, mo = { class: "g-term-label" }, ho = /* @__PURE__ */ u({
|
|
4495
4452
|
__name: "GTermSelector",
|
|
4496
4453
|
props: /*@__PURE__*/ m({
|
|
4497
4454
|
heading: { default: "Period Selection" },
|
|
@@ -4513,8 +4470,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4513
4470
|
emits: ["update:modelValue"],
|
|
4514
4471
|
setup(e) {
|
|
4515
4472
|
let t = V(e, "modelValue"), n = `${B()}-heading`;
|
|
4516
|
-
return (r, i) => (w(), o("div",
|
|
4517
|
-
trigger: K(({ toggle: e, open: n, popoverId: r }) => [l(
|
|
4473
|
+
return (r, i) => (w(), o("div", po, [l(ct, { "aria-labelledby": n }, {
|
|
4474
|
+
trigger: K(({ toggle: e, open: n, popoverId: r }) => [l($, {
|
|
4518
4475
|
class: "g-term-selector-button",
|
|
4519
4476
|
theme: "none",
|
|
4520
4477
|
outlined: "",
|
|
@@ -4529,7 +4486,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4529
4486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4530
4487
|
viewBox: "0 0 640 640"
|
|
4531
4488
|
}, [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),
|
|
4532
|
-
s("span",
|
|
4489
|
+
s("span", mo, P(t.value?.name) + " " + P(t.value?.year), 1),
|
|
4533
4490
|
i[2] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
4534
4491
|
role: "none",
|
|
4535
4492
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4546,18 +4503,18 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4546
4503
|
id: n,
|
|
4547
4504
|
class: "g-popover-title",
|
|
4548
4505
|
tabindex: "-1"
|
|
4549
|
-
}, P(e.heading), 1), l(
|
|
4506
|
+
}, P(e.heading), 1), l(fo, h(r.$props, {
|
|
4550
4507
|
modelValue: t.value,
|
|
4551
4508
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e
|
|
4552
4509
|
}), null, 16, ["modelValue"])]),
|
|
4553
4510
|
_: 1
|
|
4554
4511
|
})]));
|
|
4555
4512
|
}
|
|
4556
|
-
}),
|
|
4513
|
+
}), go = { class: "g-user-menu" }, _o = [
|
|
4557
4514
|
"aria-label",
|
|
4558
4515
|
"aria-expanded",
|
|
4559
4516
|
"onClick"
|
|
4560
|
-
],
|
|
4517
|
+
], vo = { class: "g-user-menu__popover" }, yo = { class: "g-user-menu__list" }, bo = /* @__PURE__ */ u({
|
|
4561
4518
|
__name: "GUserMenu",
|
|
4562
4519
|
props: {
|
|
4563
4520
|
initials: {},
|
|
@@ -4572,7 +4529,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4572
4529
|
e.target?.closest("a") && (r.value = !1);
|
|
4573
4530
|
}
|
|
4574
4531
|
let u = H();
|
|
4575
|
-
return (d, f) => (w(), o("div",
|
|
4532
|
+
return (d, f) => (w(), o("div", go, [l(ct, {
|
|
4576
4533
|
modelValue: r.value,
|
|
4577
4534
|
"onUpdate:modelValue": f[0] ||= (e) => r.value = e,
|
|
4578
4535
|
minimal: ""
|
|
@@ -4584,8 +4541,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4584
4541
|
"aria-expanded": r.value,
|
|
4585
4542
|
"aria-haspopup": "menu",
|
|
4586
4543
|
onClick: e
|
|
4587
|
-
}, P(t.initials), 13,
|
|
4588
|
-
default: K(() => [s("div",
|
|
4544
|
+
}, P(t.initials), 13, _o)]),
|
|
4545
|
+
default: K(() => [s("div", vo, [s("h2", {
|
|
4589
4546
|
id: n,
|
|
4590
4547
|
ref_key: "emailHeading",
|
|
4591
4548
|
ref: a,
|
|
@@ -4595,11 +4552,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4595
4552
|
class: "g-user-menu__nav",
|
|
4596
4553
|
"aria-labelledby": n,
|
|
4597
4554
|
onClick: c
|
|
4598
|
-
}, [s("ul",
|
|
4555
|
+
}, [s("ul", yo, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
|
|
4599
4556
|
_: 1
|
|
4600
4557
|
}, 8, ["modelValue"])]));
|
|
4601
4558
|
}
|
|
4602
|
-
}),
|
|
4559
|
+
}), xo = /* @__PURE__ */ u({
|
|
4603
4560
|
__name: "GCurrencyInput",
|
|
4604
4561
|
props: /*@__PURE__*/ m({
|
|
4605
4562
|
label: { default: void 0 },
|
|
@@ -4650,7 +4607,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4650
4607
|
"form-key"
|
|
4651
4608
|
]));
|
|
4652
4609
|
}
|
|
4653
|
-
}),
|
|
4610
|
+
}), So = /* @__PURE__ */ u({
|
|
4654
4611
|
__name: "GEmailInput",
|
|
4655
4612
|
props: /*@__PURE__*/ m({
|
|
4656
4613
|
label: { default: void 0 },
|
|
@@ -4695,13 +4652,13 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4695
4652
|
"instructions"
|
|
4696
4653
|
]));
|
|
4697
4654
|
}
|
|
4698
|
-
}),
|
|
4655
|
+
}), Co = ["for"], wo = {
|
|
4699
4656
|
key: 0,
|
|
4700
4657
|
class: "g-file-input-required"
|
|
4701
|
-
},
|
|
4658
|
+
}, To = {
|
|
4702
4659
|
key: 0,
|
|
4703
4660
|
class: "g-file-input-box-header"
|
|
4704
|
-
},
|
|
4661
|
+
}, Eo = ["id"], Do = [
|
|
4705
4662
|
"id",
|
|
4706
4663
|
"disabled",
|
|
4707
4664
|
"required",
|
|
@@ -4710,11 +4667,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4710
4667
|
"aria-invalid",
|
|
4711
4668
|
"aria-describedby",
|
|
4712
4669
|
"aria-errormessage"
|
|
4713
|
-
],
|
|
4670
|
+
], Oo = {
|
|
4714
4671
|
key: 1,
|
|
4715
4672
|
class: "g-file-input-pills",
|
|
4716
4673
|
"aria-label": "Selected files"
|
|
4717
|
-
},
|
|
4674
|
+
}, ko = /* @__PURE__ */ u({
|
|
4718
4675
|
inheritAttrs: !1,
|
|
4719
4676
|
__name: "GFileInput",
|
|
4720
4677
|
props: /*@__PURE__*/ m({
|
|
@@ -4744,7 +4701,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4744
4701
|
}),
|
|
4745
4702
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
4746
4703
|
setup(t, { emit: n }) {
|
|
4747
|
-
let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } =
|
|
4704
|
+
let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = Ae({
|
|
4748
4705
|
name: i.name,
|
|
4749
4706
|
value: u,
|
|
4750
4707
|
errors: I(i, "errors"),
|
|
@@ -4771,12 +4728,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4771
4728
|
key: 0,
|
|
4772
4729
|
for: R(d),
|
|
4773
4730
|
class: "g-file-input-label"
|
|
4774
|
-
}, [c(P(t.label) + " ", 1), t.required ? (w(), o("span",
|
|
4731
|
+
}, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", wo, "*")) : a("", !0)], 8, Co)) : a("", !0),
|
|
4775
4732
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
4776
|
-
t.instructions ? (w(), o("div",
|
|
4733
|
+
t.instructions ? (w(), o("div", To, [s("span", {
|
|
4777
4734
|
id: "instructions-" + R(d),
|
|
4778
4735
|
class: "g-file-input-instructions"
|
|
4779
|
-
}, P(t.instructions), 9,
|
|
4736
|
+
}, P(t.instructions), 9, Eo)])) : a("", !0),
|
|
4780
4737
|
s("input", {
|
|
4781
4738
|
id: R(d),
|
|
4782
4739
|
type: "file",
|
|
@@ -4789,8 +4746,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4789
4746
|
"aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
|
|
4790
4747
|
"aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
|
|
4791
4748
|
onChange: g
|
|
4792
|
-
}, null, 40,
|
|
4793
|
-
t.multiple && b.value.length > 0 ? (w(), o("ul",
|
|
4749
|
+
}, null, 40, Do),
|
|
4750
|
+
t.multiple && b.value.length > 0 ? (w(), o("ul", Oo, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
|
|
4794
4751
|
key: e,
|
|
4795
4752
|
class: "g-file-input-pill"
|
|
4796
4753
|
}, [r[0] ||= s("svg", {
|
|
@@ -4806,7 +4763,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4806
4763
|
}, null, 8, ["errors", "id"])
|
|
4807
4764
|
], 2));
|
|
4808
4765
|
}
|
|
4809
|
-
}),
|
|
4766
|
+
}), Ao = /* @__PURE__ */ u({
|
|
4810
4767
|
__name: "GDateInput",
|
|
4811
4768
|
props: /*@__PURE__*/ m({
|
|
4812
4769
|
label: { default: void 0 },
|
|
@@ -4854,21 +4811,21 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4854
4811
|
"form-key"
|
|
4855
4812
|
]));
|
|
4856
4813
|
}
|
|
4857
|
-
}),
|
|
4814
|
+
}), jo = { class: "g-date-range-input" }, Mo = {
|
|
4858
4815
|
key: 0,
|
|
4859
4816
|
class: "g-date-range-input__label"
|
|
4860
|
-
},
|
|
4817
|
+
}, No = {
|
|
4861
4818
|
key: 0,
|
|
4862
4819
|
class: "g-date-range-input__required",
|
|
4863
4820
|
"aria-hidden": "true"
|
|
4864
|
-
},
|
|
4821
|
+
}, Po = {
|
|
4865
4822
|
key: 1,
|
|
4866
4823
|
class: "g-date-range-input__instructions"
|
|
4867
|
-
},
|
|
4824
|
+
}, Fo = { class: "g-date-range-input__fields" }, Io = {
|
|
4868
4825
|
key: 2,
|
|
4869
4826
|
class: "g-date-range-input__errors",
|
|
4870
4827
|
role: "alert"
|
|
4871
|
-
},
|
|
4828
|
+
}, Lo = /* @__PURE__ */ u({
|
|
4872
4829
|
__name: "GDateRangeInput",
|
|
4873
4830
|
props: /*@__PURE__*/ m({
|
|
4874
4831
|
label: { default: void 0 },
|
|
@@ -4895,7 +4852,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4895
4852
|
}),
|
|
4896
4853
|
emits: ["update:modelValue"],
|
|
4897
4854
|
setup(t) {
|
|
4898
|
-
let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } =
|
|
4855
|
+
let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = Ae({
|
|
4899
4856
|
name: n.name,
|
|
4900
4857
|
value: r,
|
|
4901
4858
|
errors: I(n, "errors"),
|
|
@@ -4908,10 +4865,10 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4908
4865
|
};
|
|
4909
4866
|
}), W(r, (e) => {
|
|
4910
4867
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4911
|
-
}, { deep: !0 }), (t, r) => (w(), o("div",
|
|
4912
|
-
n.label ? (w(), o("div",
|
|
4913
|
-
n.instructions ? (w(), o("div",
|
|
4914
|
-
s("div",
|
|
4868
|
+
}, { deep: !0 }), (t, r) => (w(), o("div", jo, [
|
|
4869
|
+
n.label ? (w(), o("div", Mo, [c(P(n.label), 1), n.required ? (w(), o("span", No, " *")) : a("", !0)])) : a("", !0),
|
|
4870
|
+
n.instructions ? (w(), o("div", Po, P(n.instructions), 1)) : a("", !0),
|
|
4871
|
+
s("div", Fo, [l(Ao, {
|
|
4915
4872
|
modelValue: i.value,
|
|
4916
4873
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
4917
4874
|
label: n.startLabel,
|
|
@@ -4923,7 +4880,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4923
4880
|
"label",
|
|
4924
4881
|
"disabled",
|
|
4925
4882
|
"required"
|
|
4926
|
-
]), l(
|
|
4883
|
+
]), l(Ao, {
|
|
4927
4884
|
modelValue: u.value,
|
|
4928
4885
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
4929
4886
|
label: n.endLabel,
|
|
@@ -4936,13 +4893,13 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4936
4893
|
"disabled",
|
|
4937
4894
|
"required"
|
|
4938
4895
|
])]),
|
|
4939
|
-
R(d).length > 0 ? (w(), o("div",
|
|
4896
|
+
R(d).length > 0 ? (w(), o("div", Io, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
|
|
4940
4897
|
key: t,
|
|
4941
4898
|
class: "g-date-range-input__error"
|
|
4942
4899
|
}, P(e), 1))), 128))])) : a("", !0)
|
|
4943
4900
|
]));
|
|
4944
4901
|
}
|
|
4945
|
-
}),
|
|
4902
|
+
}), Ro = ["action", "method"], zo = /* @__PURE__ */ u({
|
|
4946
4903
|
__name: "GForm",
|
|
4947
4904
|
props: /*@__PURE__*/ m({
|
|
4948
4905
|
action: { default: void 0 },
|
|
@@ -4954,7 +4911,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4954
4911
|
}),
|
|
4955
4912
|
emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
|
|
4956
4913
|
setup(e, { emit: t }) {
|
|
4957
|
-
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (
|
|
4914
|
+
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (de() ? ke(n.formKey) : De());
|
|
4958
4915
|
a || T("form", s), W(() => s.values.value, (e) => {
|
|
4959
4916
|
r.value = { ...e };
|
|
4960
4917
|
}, { deep: !0 }), W(() => r.value, (e) => {
|
|
@@ -4982,9 +4939,9 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4982
4939
|
hasErrors: R(s).hasErrors.value,
|
|
4983
4940
|
values: R(s).values.value,
|
|
4984
4941
|
errors: R(s).errors.value
|
|
4985
|
-
})], 40,
|
|
4942
|
+
})], 40, Ro));
|
|
4986
4943
|
}
|
|
4987
|
-
}),
|
|
4944
|
+
}), Bo = /* @__PURE__ */ u({
|
|
4988
4945
|
__name: "GSubmitButton",
|
|
4989
4946
|
props: {
|
|
4990
4947
|
disabled: {
|
|
@@ -4996,8 +4953,8 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
4996
4953
|
formKey: { default: "default" }
|
|
4997
4954
|
},
|
|
4998
4955
|
setup(e) {
|
|
4999
|
-
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) ?? (
|
|
5000
|
-
return (e, n) => (w(), i(
|
|
4956
|
+
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) ?? (de() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
|
|
4957
|
+
return (e, n) => (w(), i($, {
|
|
5001
4958
|
type: "submit",
|
|
5002
4959
|
disabled: u.value,
|
|
5003
4960
|
variant: t.variant,
|
|
@@ -5007,11 +4964,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
5007
4964
|
_: 3
|
|
5008
4965
|
}, 8, ["disabled", "variant"]));
|
|
5009
4966
|
}
|
|
5010
|
-
}),
|
|
4967
|
+
}), Vo = ["for"], Ho = {
|
|
5011
4968
|
key: 0,
|
|
5012
4969
|
class: "g-textarea-required",
|
|
5013
4970
|
"aria-hidden": "true"
|
|
5014
|
-
},
|
|
4971
|
+
}, Uo = ["id"], Wo = [
|
|
5015
4972
|
"value",
|
|
5016
4973
|
"placeholder",
|
|
5017
4974
|
"disabled",
|
|
@@ -5020,11 +4977,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
5020
4977
|
"rows",
|
|
5021
4978
|
"maxlength",
|
|
5022
4979
|
"aria-invalid"
|
|
5023
|
-
],
|
|
4980
|
+
], Go = {
|
|
5024
4981
|
key: 2,
|
|
5025
4982
|
class: "g-textarea-char-count",
|
|
5026
4983
|
"aria-live": "polite"
|
|
5027
|
-
},
|
|
4984
|
+
}, Ko = /* @__PURE__ */ u({
|
|
5028
4985
|
inheritAttrs: !1,
|
|
5029
4986
|
__name: "GTextarea",
|
|
5030
4987
|
props: /*@__PURE__*/ m({
|
|
@@ -5058,7 +5015,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
5058
5015
|
}),
|
|
5059
5016
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
5060
5017
|
setup(e, { emit: t }) {
|
|
5061
|
-
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
5018
|
+
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = Ae({
|
|
5062
5019
|
name: n.name,
|
|
5063
5020
|
value: i,
|
|
5064
5021
|
errors: I(n, "errors"),
|
|
@@ -5098,12 +5055,12 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
5098
5055
|
key: 0,
|
|
5099
5056
|
for: m.value,
|
|
5100
5057
|
class: "g-textarea-label"
|
|
5101
|
-
}, [c(P(n.label), 1), n.required ? (w(), o("span",
|
|
5058
|
+
}, [c(P(n.label), 1), n.required ? (w(), o("span", Ho, " *")) : a("", !0)], 8, Vo)) : a("", !0),
|
|
5102
5059
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
5103
5060
|
key: 1,
|
|
5104
5061
|
id: "instructions-" + R(u),
|
|
5105
5062
|
class: "g-textarea-instructions"
|
|
5106
|
-
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8,
|
|
5063
|
+
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Uo)) : a("", !0),
|
|
5107
5064
|
s("textarea", h({
|
|
5108
5065
|
ref: "textareaEl",
|
|
5109
5066
|
value: i.value ?? "",
|
|
@@ -5124,15 +5081,15 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
5124
5081
|
onInput: T,
|
|
5125
5082
|
onBlur: E,
|
|
5126
5083
|
onPaste: D
|
|
5127
|
-
}), null, 16,
|
|
5128
|
-
n.maxlength === void 0 ? a("", !0) : (w(), o("div",
|
|
5084
|
+
}), null, 16, Wo),
|
|
5085
|
+
n.maxlength === void 0 ? a("", !0) : (w(), o("div", Go, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
|
|
5129
5086
|
l(Me, {
|
|
5130
5087
|
errors: R(v),
|
|
5131
5088
|
id: "error-message-" + R(u)
|
|
5132
5089
|
}, null, 8, ["errors", "id"])
|
|
5133
5090
|
], 2));
|
|
5134
5091
|
}
|
|
5135
|
-
}),
|
|
5092
|
+
}), qo = { class: "g-toggle-wrapper" }, Jo = ["for"], Yo = [
|
|
5136
5093
|
"id",
|
|
5137
5094
|
"checked",
|
|
5138
5095
|
"disabled",
|
|
@@ -5140,7 +5097,7 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
5140
5097
|
"aria-describedby",
|
|
5141
5098
|
"aria-invalid",
|
|
5142
5099
|
"aria-errormessage"
|
|
5143
|
-
],
|
|
5100
|
+
], Xo = ["id"], Zo = /* @__PURE__ */ u({
|
|
5144
5101
|
__name: "GToggle",
|
|
5145
5102
|
props: /*@__PURE__*/ m({
|
|
5146
5103
|
label: {},
|
|
@@ -5175,11 +5132,11 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
5175
5132
|
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()));
|
|
5176
5133
|
}
|
|
5177
5134
|
let p = B(), m = B();
|
|
5178
|
-
return (t, n) => (w(), o("div",
|
|
5135
|
+
return (t, n) => (w(), o("div", qo, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
|
|
5179
5136
|
key: 0,
|
|
5180
5137
|
class: "g-label",
|
|
5181
5138
|
for: R(m)
|
|
5182
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
5139
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Jo)), 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", {
|
|
5183
5140
|
class: _(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
|
|
5184
5141
|
"aria-hidden": "true"
|
|
5185
5142
|
}, null, 2), s("input", {
|
|
@@ -5193,34 +5150,34 @@ var zi = { class: "g-table-outer-wrap" }, Bi = {
|
|
|
5193
5150
|
"aria-errormessage": e.error ? R(p) + "-error" : void 0,
|
|
5194
5151
|
onChange: d,
|
|
5195
5152
|
onKeydown: f
|
|
5196
|
-
}, null, 40,
|
|
5153
|
+
}, null, 40, Yo)], 2)], 2)], 2), e.error ? (w(), o("div", {
|
|
5197
5154
|
key: 0,
|
|
5198
5155
|
id: `${R(p)}-error`,
|
|
5199
5156
|
class: "g-form-error",
|
|
5200
5157
|
role: "alert",
|
|
5201
5158
|
"aria-atomic": "true"
|
|
5202
|
-
}, P(e.error), 9,
|
|
5159
|
+
}, P(e.error), 9, Xo)) : a("", !0)]));
|
|
5203
5160
|
}
|
|
5204
|
-
}),
|
|
5205
|
-
function
|
|
5161
|
+
}), Qo = "g-route-announcer";
|
|
5162
|
+
function $o(e) {
|
|
5206
5163
|
return document.getElementById(e) ?? document.querySelector("main");
|
|
5207
5164
|
}
|
|
5208
|
-
function
|
|
5165
|
+
function es(e = "main-content", t = !0) {
|
|
5209
5166
|
if (typeof document > "u") return !1;
|
|
5210
|
-
let n =
|
|
5167
|
+
let n = $o(e);
|
|
5211
5168
|
if (!n) return !1;
|
|
5212
5169
|
let r = t ? n.querySelector("h1") : null;
|
|
5213
5170
|
for (let e of [r, n]) if (e && (e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1"), e.focus({ preventScroll: t }), document.activeElement === e)) return !0;
|
|
5214
5171
|
return !1;
|
|
5215
5172
|
}
|
|
5216
|
-
function
|
|
5217
|
-
let e = document.getElementById(
|
|
5173
|
+
function ts() {
|
|
5174
|
+
let e = document.getElementById(Qo);
|
|
5218
5175
|
if (e) return {
|
|
5219
5176
|
el: e,
|
|
5220
5177
|
created: !1
|
|
5221
5178
|
};
|
|
5222
5179
|
let t = document.createElement("div");
|
|
5223
|
-
return t.id =
|
|
5180
|
+
return t.id = Qo, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
|
|
5224
5181
|
position: "absolute",
|
|
5225
5182
|
width: "1px",
|
|
5226
5183
|
height: "1px",
|
|
@@ -5235,10 +5192,10 @@ function ns() {
|
|
|
5235
5192
|
created: !0
|
|
5236
5193
|
};
|
|
5237
5194
|
}
|
|
5238
|
-
function
|
|
5195
|
+
function ns() {
|
|
5239
5196
|
return new Promise((e) => requestAnimationFrame(() => e()));
|
|
5240
5197
|
}
|
|
5241
|
-
function
|
|
5198
|
+
function rs(e, t = {}) {
|
|
5242
5199
|
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;
|
|
5243
5200
|
if (typeof window > "u") return {
|
|
5244
5201
|
message: D(n),
|
|
@@ -5247,7 +5204,7 @@ function is(e, t = {}) {
|
|
|
5247
5204
|
};
|
|
5248
5205
|
let c = null, l, u = 0;
|
|
5249
5206
|
function d(e) {
|
|
5250
|
-
n.value = e, c ??=
|
|
5207
|
+
n.value = e, c ??= ts();
|
|
5251
5208
|
let t = c.el;
|
|
5252
5209
|
t.textContent = "", clearTimeout(l), l = setTimeout(() => {
|
|
5253
5210
|
t.textContent = e;
|
|
@@ -5256,9 +5213,9 @@ function is(e, t = {}) {
|
|
|
5256
5213
|
let p = e.afterEach(async (e, t, n) => {
|
|
5257
5214
|
if (n || !t.matched?.length || !i(e, t)) return;
|
|
5258
5215
|
let c = ++u, l = document.activeElement;
|
|
5259
|
-
if (await g(), await
|
|
5260
|
-
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l &&
|
|
5261
|
-
f && !e.hash && !m &&
|
|
5216
|
+
if (await g(), await ns(), o && (await o(e, t), await g(), await ns()), c !== u) return;
|
|
5217
|
+
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!$o(r)?.contains(p);
|
|
5218
|
+
f && !e.hash && !m && es(r);
|
|
5262
5219
|
let h = s(e, document.title);
|
|
5263
5220
|
h && d(h);
|
|
5264
5221
|
});
|
|
@@ -5273,7 +5230,7 @@ function is(e, t = {}) {
|
|
|
5273
5230
|
}
|
|
5274
5231
|
//#endregion
|
|
5275
5232
|
//#region src/components/GSkipLink.vue?vue&type=script&setup=true&lang.ts
|
|
5276
|
-
var
|
|
5233
|
+
var is = ["href"], as = /*@__PURE__*/ u({
|
|
5277
5234
|
__name: "GSkipLink",
|
|
5278
5235
|
props: {
|
|
5279
5236
|
target: { default: "main-content" },
|
|
@@ -5282,19 +5239,19 @@ var as = ["href"], os = /*@__PURE__*/ u({
|
|
|
5282
5239
|
setup(e) {
|
|
5283
5240
|
let t = e;
|
|
5284
5241
|
function n(e) {
|
|
5285
|
-
|
|
5242
|
+
es(t.target, !1) && e.preventDefault();
|
|
5286
5243
|
}
|
|
5287
5244
|
return (e, r) => (w(), o("a", {
|
|
5288
5245
|
class: "g-skip-link",
|
|
5289
5246
|
href: `#${t.target}`,
|
|
5290
5247
|
onClick: n
|
|
5291
|
-
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8,
|
|
5248
|
+
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, is));
|
|
5292
5249
|
}
|
|
5293
|
-
}),
|
|
5250
|
+
}), os = (e, t) => {
|
|
5294
5251
|
let n = e.__vccOpts || e;
|
|
5295
5252
|
for (let [e, r] of t) n[e] = r;
|
|
5296
5253
|
return n;
|
|
5297
|
-
},
|
|
5254
|
+
}, ss = /*#__PURE__*/ os(as, [["__scopeId", "data-v-1d350630"]]), cs = ["id"], ls = /*#__PURE__*/ os(/* @__PURE__ */ u({
|
|
5298
5255
|
__name: "GMain",
|
|
5299
5256
|
props: { id: { default: "main-content" } },
|
|
5300
5257
|
setup(e) {
|
|
@@ -5303,30 +5260,30 @@ var as = ["href"], os = /*@__PURE__*/ u({
|
|
|
5303
5260
|
id: t.id,
|
|
5304
5261
|
class: "g-main",
|
|
5305
5262
|
tabindex: "-1"
|
|
5306
|
-
}, [A(e.$slots, "default", {}, void 0, !0)], 8,
|
|
5263
|
+
}, [A(e.$slots, "default", {}, void 0, !0)], 8, cs));
|
|
5307
5264
|
}
|
|
5308
5265
|
}), [["__scopeId", "data-v-84dc2f3f"]]);
|
|
5309
5266
|
//#endregion
|
|
5310
5267
|
//#region src/compose/useActiveLink.ts
|
|
5311
|
-
function
|
|
5268
|
+
function us(e, t, n) {
|
|
5312
5269
|
let r = [
|
|
5313
5270
|
0,
|
|
5314
5271
|
.25,
|
|
5315
5272
|
.5,
|
|
5316
5273
|
.75,
|
|
5317
5274
|
1
|
|
5318
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(
|
|
5319
|
-
let t = Array.from(
|
|
5275
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(Y(e)?.children || [])), s = () => {
|
|
5276
|
+
let t = Array.from(Y(e)?.children || []), n = new Set(t);
|
|
5320
5277
|
for (let e of a.keys()) n.has(e) || a.delete(e);
|
|
5321
5278
|
o.value = t;
|
|
5322
5279
|
};
|
|
5323
|
-
W(() =>
|
|
5280
|
+
W(() => Y(e), () => {
|
|
5324
5281
|
s();
|
|
5325
5282
|
}, {
|
|
5326
5283
|
immediate: !0,
|
|
5327
5284
|
flush: "post"
|
|
5328
|
-
}),
|
|
5329
|
-
let { stop: c } =
|
|
5285
|
+
}), Q(e, s, { childList: !0 });
|
|
5286
|
+
let { stop: c } = ae(o, (e) => {
|
|
5330
5287
|
let t = o.value[o.value.length - 1];
|
|
5331
5288
|
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);
|
|
5332
5289
|
let r = null, i = 0;
|
|
@@ -5345,7 +5302,7 @@ function ds(e, t, n) {
|
|
|
5345
5302
|
}
|
|
5346
5303
|
//#endregion
|
|
5347
5304
|
//#region src/compose/useSidebar.ts
|
|
5348
|
-
function
|
|
5305
|
+
function ds(e = "(max-width: 800px)") {
|
|
5349
5306
|
let t = B(), n = O(!1), r = se(e, { ssrWidth: 1e3 });
|
|
5350
5307
|
function i(e) {
|
|
5351
5308
|
if (!r.value || !n.value) return;
|
|
@@ -5376,41 +5333,41 @@ function fs(e = "(max-width: 800px)") {
|
|
|
5376
5333
|
}
|
|
5377
5334
|
//#endregion
|
|
5378
5335
|
//#region src/compose/usePaging.ts
|
|
5379
|
-
function
|
|
5336
|
+
function fs(e) {
|
|
5380
5337
|
let t = /* @__PURE__ */ new Set();
|
|
5381
5338
|
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
5382
5339
|
}
|
|
5383
|
-
function
|
|
5384
|
-
return e == null ? [] :
|
|
5340
|
+
function ps(e) {
|
|
5341
|
+
return e == null ? [] : fs((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
5385
5342
|
key: e.replace(/^-/, ""),
|
|
5386
5343
|
order: e.startsWith("-") ? -1 : 1
|
|
5387
5344
|
})));
|
|
5388
5345
|
}
|
|
5389
|
-
function
|
|
5390
|
-
let t =
|
|
5346
|
+
function ms(e) {
|
|
5347
|
+
let t = fs(e);
|
|
5391
5348
|
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
5392
5349
|
}
|
|
5393
|
-
function
|
|
5394
|
-
let n =
|
|
5350
|
+
function hs(e, t = []) {
|
|
5351
|
+
let n = fs(e);
|
|
5395
5352
|
if (n.length === 0) return;
|
|
5396
5353
|
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 ? "-" : "";
|
|
5397
5354
|
return t.forEach((e) => {
|
|
5398
5355
|
i.has(e) || r.push(`${a}${e}`);
|
|
5399
5356
|
}), r.join(",");
|
|
5400
5357
|
}
|
|
5401
|
-
function
|
|
5358
|
+
function gs(e) {
|
|
5402
5359
|
return Array.isArray(e) ? [...e] : e;
|
|
5403
5360
|
}
|
|
5404
|
-
function
|
|
5361
|
+
function _s(e, t) {
|
|
5405
5362
|
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;
|
|
5406
5363
|
}
|
|
5407
|
-
function
|
|
5364
|
+
function vs(e, t) {
|
|
5408
5365
|
return e.length === t.length && e.every((e, n) => {
|
|
5409
5366
|
let r = t[n];
|
|
5410
5367
|
return e.key === r?.key && e.order === r?.order;
|
|
5411
5368
|
});
|
|
5412
5369
|
}
|
|
5413
|
-
function
|
|
5370
|
+
function ys(e, t) {
|
|
5414
5371
|
if (typeof e == "string") return Number(e);
|
|
5415
5372
|
if (Array.isArray(e)) {
|
|
5416
5373
|
let n = e.find((e) => e !== null);
|
|
@@ -5418,35 +5375,35 @@ function bs(e, t) {
|
|
|
5418
5375
|
}
|
|
5419
5376
|
return t;
|
|
5420
5377
|
}
|
|
5421
|
-
function
|
|
5378
|
+
function bs(e = {}) {
|
|
5422
5379
|
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);
|
|
5423
5380
|
return e.route && e.router && (W(() => e.route?.query[i], (e) => {
|
|
5424
|
-
let t =
|
|
5425
|
-
|
|
5381
|
+
let t = ps(e);
|
|
5382
|
+
vs(s.value, t) || (s.value = t);
|
|
5426
5383
|
}, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
|
|
5427
|
-
let n =
|
|
5384
|
+
let n = ys(e, t);
|
|
5428
5385
|
c.value !== n && (c.value = n);
|
|
5429
5386
|
}, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
|
|
5430
|
-
let t =
|
|
5387
|
+
let t = ys(e, n);
|
|
5431
5388
|
l.value !== t && (l.value = t);
|
|
5432
5389
|
}, { immediate: !0 }), W([
|
|
5433
5390
|
s,
|
|
5434
5391
|
c,
|
|
5435
5392
|
l
|
|
5436
5393
|
], ([r, s, c]) => {
|
|
5437
|
-
let l = { ...e.route.query }, u =
|
|
5438
|
-
u === void 0 ? delete l[i] : l[i] =
|
|
5394
|
+
let l = { ...e.route.query }, u = ms(r);
|
|
5395
|
+
u === void 0 ? delete l[i] : l[i] = gs(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);
|
|
5439
5396
|
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
5440
|
-
for (let t of d) if (!
|
|
5397
|
+
for (let t of d) if (!_s(e.route.query[t], l[t])) {
|
|
5441
5398
|
f = !0;
|
|
5442
5399
|
break;
|
|
5443
5400
|
}
|
|
5444
5401
|
f && e.router.replace({ query: l });
|
|
5445
5402
|
})), {
|
|
5446
5403
|
sort: r({
|
|
5447
|
-
get: () =>
|
|
5404
|
+
get: () => fs(s.value),
|
|
5448
5405
|
set: (e) => {
|
|
5449
|
-
s.value =
|
|
5406
|
+
s.value = fs(e);
|
|
5450
5407
|
}
|
|
5451
5408
|
}),
|
|
5452
5409
|
pageSize: c,
|
|
@@ -5455,7 +5412,7 @@ function xs(e = {}) {
|
|
|
5455
5412
|
}
|
|
5456
5413
|
//#endregion
|
|
5457
5414
|
//#region src/compose/useTableChanges.ts
|
|
5458
|
-
function
|
|
5415
|
+
function xs() {
|
|
5459
5416
|
let e = M(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
|
|
5460
5417
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
5461
5418
|
e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
|
|
@@ -5559,7 +5516,7 @@ function Ss() {
|
|
|
5559
5516
|
}
|
|
5560
5517
|
//#endregion
|
|
5561
5518
|
//#region src/compose/usePersistentTableColumnState.ts
|
|
5562
|
-
function
|
|
5519
|
+
function Ss(e, t) {
|
|
5563
5520
|
if (!e || typeof e != "object" || Array.isArray(e)) return {};
|
|
5564
5521
|
let n = new Set(t.map(({ key: e }) => String(e))), r = {};
|
|
5565
5522
|
for (let [t, i] of Object.entries(e)) {
|
|
@@ -5569,13 +5526,13 @@ function Cs(e, t) {
|
|
|
5569
5526
|
}
|
|
5570
5527
|
return r;
|
|
5571
5528
|
}
|
|
5572
|
-
function
|
|
5529
|
+
function Cs(e, t) {
|
|
5573
5530
|
let n = oe(e, {});
|
|
5574
5531
|
return W(() => L(t).map(({ key: e }) => String(e)), () => {
|
|
5575
|
-
n.value =
|
|
5532
|
+
n.value = Ss(n.value, L(t));
|
|
5576
5533
|
}, { immediate: !0 }), { columnState: n };
|
|
5577
5534
|
}
|
|
5578
5535
|
//#endregion
|
|
5579
|
-
export { pn as $,
|
|
5536
|
+
export { pn as $, Ja as A, Ri as B, bo as C, ao as D, so as E, ji as F, Zn as G, Yr as H, xi as I, kn as J, In as K, Mi as L, Ai as M, bi as N, to as O, Fi as P, xn as Q, Ii as R, xo as S, fo as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, zo as _, Ee as _t, ps as a, Ct as at, ko as b, $ as bt, ds as c, rt as ct, ss as d, qe as dt, cn as et, es as f, Je as ft, Bo as g, De as gt, Ko as h, ke as ht, fs as i, Ot as it, Si as j, eo as k, us as l, nt as lt, Zo as m, Ae as mt, xs as n, Jt as nt, ms as o, gt as ot, rs as p, ze as pt, jn as q, hs as r, Pt as rt, bs as s, ct as st, Cs as t, an as tt, ls as u, tt as ut, Lo as v, be as vt, ho as w, So as x, Ao as y, ye as yt, Ci as z };
|
|
5580
5537
|
|
|
5581
|
-
//# sourceMappingURL=grad-vue-
|
|
5538
|
+
//# sourceMappingURL=grad-vue-B8FlsuZs.js.map
|