@illinois-grad/grad-vue 7.2.2 → 7.2.4
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/custom-elements.json +1 -1
- package/dist/components/GTable.vue.d.ts +2 -0
- package/dist/{grad-vue-B8FlsuZs.js → grad-vue-TtZgUEXw.js} +464 -451
- package/dist/grad-vue-TtZgUEXw.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.d.ts +1 -1
- package/dist/grad-vue-elements.js +253 -240
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-B8FlsuZs.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 re, tryOnScopeDispose as ie, unrefElement as J, useClipboard as ae, useDebounceFn as Y, useFocusWithin as X, useIntersectionObserver as oe, useLocalStorage as se, useMediaQuery as ce, useMutationObserver as Z, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
|
|
3
|
+
import { createFocusTrap as de } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
|
-
function
|
|
5
|
+
function fe() {
|
|
6
6
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function pe(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 fe(e = {}) {
|
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
-
var
|
|
23
|
+
var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
__name: "GButton",
|
|
26
26
|
props: {
|
|
@@ -55,7 +55,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__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 } = pe({ omitInCustomElement: ["id"] }), d = r(() => [
|
|
59
59
|
"g-btn",
|
|
60
60
|
`g-btn--${a.size}`,
|
|
61
61
|
`g-btn--${a.theme}`,
|
|
@@ -89,11 +89,11 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
89
89
|
onMouseenter: r[6] ||= (e) => n.$emit("mouseenter", e),
|
|
90
90
|
onMouseleave: r[7] ||= (e) => n.$emit("mouseleave", e)
|
|
91
91
|
}), {
|
|
92
|
-
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", me, [c.icon ? A(n.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
|
|
93
93
|
key: 1,
|
|
94
94
|
class: _(t.icon + " g-btn--icon-span"),
|
|
95
95
|
"aria-hidden": "true"
|
|
96
|
-
}, null, 2))]), s("span",
|
|
96
|
+
}, null, 2))]), s("span", he, [A(n.$slots, "default")])], 64)) : A(n.$slots, "default", {}, void 0, void 0, 1)]),
|
|
97
97
|
_: 3
|
|
98
98
|
}, 16, [
|
|
99
99
|
"to",
|
|
@@ -103,13 +103,13 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
103
103
|
"aria-disabled"
|
|
104
104
|
]));
|
|
105
105
|
}
|
|
106
|
-
}),
|
|
106
|
+
}), ge = { class: "g-tree-menu__divider" }, _e = {
|
|
107
107
|
key: 0,
|
|
108
108
|
class: "g-tree-menu__divider-line"
|
|
109
|
-
},
|
|
109
|
+
}, ve = {
|
|
110
110
|
key: 1,
|
|
111
111
|
class: "g-tree-menu__expand-all-wrapper"
|
|
112
|
-
},
|
|
112
|
+
}, ye = { class: "g-tree-menu__content" }, be = /* @__PURE__ */ u({
|
|
113
113
|
__name: "GTreeMenu",
|
|
114
114
|
props: {
|
|
115
115
|
heading: {},
|
|
@@ -129,7 +129,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
129
129
|
setup(e) {
|
|
130
130
|
let t = e, n = H(), l = d(), u = B(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
|
|
131
131
|
T("g-tree-menu-list-type", t.listType);
|
|
132
|
-
let m = t.storageKey ?
|
|
132
|
+
let m = t.storageKey ? ue(t.storageKey, {}) : null;
|
|
133
133
|
T("g-tree-menu-expanded-storage", m);
|
|
134
134
|
let g = E(/* @__PURE__ */ new Map());
|
|
135
135
|
T("g-tree-menu-expandable-items", g);
|
|
@@ -162,7 +162,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
162
162
|
default: K(() => [A(n.$slots, "heading", {}, () => [c(P(e.heading), 1)])]),
|
|
163
163
|
_: 3
|
|
164
164
|
}, 8, ["id"])) : a("", !0),
|
|
165
|
-
s("div",
|
|
165
|
+
s("div", ge, [e.smallHeading ? a("", !0) : (w(), o("div", _e)), e.showExpandAll ? (w(), o("div", ve, [s("button", {
|
|
166
166
|
class: "g-tree-menu__expand-all-btn",
|
|
167
167
|
onClick: b
|
|
168
168
|
}, [(w(), o("svg", {
|
|
@@ -175,14 +175,14 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
175
175
|
"stroke-linecap": "round",
|
|
176
176
|
"stroke-linejoin": "round"
|
|
177
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)]),
|
|
178
|
-
s("div",
|
|
178
|
+
s("div", ye, [A(n.$slots, "default")])
|
|
179
179
|
], 16));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), xe = /* @__PURE__ */ u({
|
|
182
182
|
name: "GTreeMenuList",
|
|
183
183
|
props: { listType: { default: void 0 } },
|
|
184
184
|
setup(e) {
|
|
185
|
-
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 = fe(), s = d();
|
|
186
186
|
return x(() => {
|
|
187
187
|
if (!o) return;
|
|
188
188
|
let e = s?.ce;
|
|
@@ -195,20 +195,20 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
195
195
|
_: 3
|
|
196
196
|
}, 8, ["role"]));
|
|
197
197
|
}
|
|
198
|
-
}),
|
|
198
|
+
}), Se = {
|
|
199
199
|
key: 0,
|
|
200
200
|
class: "g-tree-menu__row"
|
|
201
|
-
},
|
|
201
|
+
}, Ce = { class: "g-tree-menu__row-content-text" }, we = [
|
|
202
202
|
"aria-controls",
|
|
203
203
|
"aria-expanded",
|
|
204
204
|
"aria-label"
|
|
205
|
-
],
|
|
205
|
+
], Te = {
|
|
206
206
|
key: 1,
|
|
207
207
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
208
|
-
},
|
|
208
|
+
}, Ee = {
|
|
209
209
|
class: "g-tree-menu__row-content",
|
|
210
210
|
"data-tree-primary": ""
|
|
211
|
-
},
|
|
211
|
+
}, De = /* @__PURE__ */ u({
|
|
212
212
|
name: "GTreeMenuItem",
|
|
213
213
|
inheritAttrs: !1,
|
|
214
214
|
props: {
|
|
@@ -259,7 +259,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
259
259
|
function F(e) {
|
|
260
260
|
e.target.closest("a, button") || T();
|
|
261
261
|
}
|
|
262
|
-
let I =
|
|
262
|
+
let I = fe(), L = u?.ce;
|
|
263
263
|
x(() => {
|
|
264
264
|
I && L && L.setAttribute("role", "listitem");
|
|
265
265
|
});
|
|
@@ -273,11 +273,11 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
273
273
|
class: "g-tree-menu__item",
|
|
274
274
|
"data-tree-expandable": g.value ? "true" : void 0
|
|
275
275
|
}), {
|
|
276
|
-
default: K(() => [g.value ? (w(), o("div",
|
|
276
|
+
default: K(() => [g.value ? (w(), o("div", Se, [s("span", {
|
|
277
277
|
class: "g-tree-menu__row-content",
|
|
278
278
|
"data-tree-primary": "",
|
|
279
279
|
onClick: F
|
|
280
|
-
}, [s("span",
|
|
280
|
+
}, [s("span", Ce, [A(e.$slots, "default")])]), s("button", {
|
|
281
281
|
type: "button",
|
|
282
282
|
class: "g-tree-menu__toggle-btn",
|
|
283
283
|
"aria-controls": R(f) + "-children",
|
|
@@ -295,7 +295,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
295
295
|
"stroke-width": "2.5",
|
|
296
296
|
"stroke-linecap": "round",
|
|
297
297
|
"stroke-linejoin": "round"
|
|
298
|
-
}, [...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, we)])) : (w(), o("div", Te, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Ee, [A(e.$slots, "default")])])), g.value && C.value ? (w(), i(xe, {
|
|
299
299
|
key: 2,
|
|
300
300
|
id: R(f) + "-children"
|
|
301
301
|
}, {
|
|
@@ -308,7 +308,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
308
308
|
});
|
|
309
309
|
//#endregion
|
|
310
310
|
//#region src/compose/useForm.ts
|
|
311
|
-
function
|
|
311
|
+
function Oe() {
|
|
312
312
|
let e = M({}), t = O(!1), n = r(() => {
|
|
313
313
|
let t = {};
|
|
314
314
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -350,18 +350,18 @@ function De() {
|
|
|
350
350
|
}
|
|
351
351
|
//#endregion
|
|
352
352
|
//#region src/compose/useWebComponentForm.ts
|
|
353
|
-
function
|
|
353
|
+
function ke() {
|
|
354
354
|
let e = globalThis;
|
|
355
355
|
return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
let t =
|
|
359
|
-
return t.has(n) || t.set(n,
|
|
357
|
+
function Ae(e = "default") {
|
|
358
|
+
let t = ke(), n = e || "default";
|
|
359
|
+
return t.has(n) || t.set(n, Oe()), t.get(n);
|
|
360
360
|
}
|
|
361
361
|
//#endregion
|
|
362
362
|
//#region src/compose/useFormField.ts
|
|
363
|
-
function
|
|
364
|
-
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 $(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) ?? (fe() ? Ae(i) : null), o = r(() => {
|
|
365
365
|
let t = [];
|
|
366
366
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
367
367
|
}), s = r(() => o.value.length > 0), c = e.name;
|
|
@@ -448,7 +448,7 @@ var je = ["id"], Me = /* @__PURE__ */ u({
|
|
|
448
448
|
}),
|
|
449
449
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
450
450
|
setup(e, { emit: t }) {
|
|
451
|
-
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 } = pe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
|
|
452
452
|
name: n.name,
|
|
453
453
|
value: i,
|
|
454
454
|
errors: I(n, "errors"),
|
|
@@ -577,14 +577,14 @@ function Ze(e, t = {}) {
|
|
|
577
577
|
n && (n.unpause(), s.value = !1);
|
|
578
578
|
}, f = r(() => {
|
|
579
579
|
let t = L(e);
|
|
580
|
-
return
|
|
580
|
+
return re(t).map((e) => {
|
|
581
581
|
let t = L(e);
|
|
582
|
-
return typeof t == "string" ? t :
|
|
582
|
+
return typeof t == "string" ? t : J(t);
|
|
583
583
|
}).filter(Xe);
|
|
584
584
|
});
|
|
585
585
|
return W(f, (e) => {
|
|
586
586
|
if (e.length) {
|
|
587
|
-
if (!n) n =
|
|
587
|
+
if (!n) n = de(e, {
|
|
588
588
|
...a,
|
|
589
589
|
onActivate(e) {
|
|
590
590
|
o.value = !0, t.onActivate && t.onActivate(e);
|
|
@@ -598,7 +598,7 @@ function Ze(e, t = {}) {
|
|
|
598
598
|
n?.updateContainerElements(e), !t && i && c();
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
}, { flush: "post" }),
|
|
601
|
+
}, { flush: "post" }), ie(() => l()), {
|
|
602
602
|
hasFocus: o,
|
|
603
603
|
isPaused: s,
|
|
604
604
|
activate: c,
|
|
@@ -711,7 +711,7 @@ function rt(e, t, n, r) {
|
|
|
711
711
|
var it = /* @__PURE__ */ u({
|
|
712
712
|
__name: "GClientOnly",
|
|
713
713
|
setup(e) {
|
|
714
|
-
let t = O(
|
|
714
|
+
let t = O(fe());
|
|
715
715
|
return x(() => {
|
|
716
716
|
t.value = !0;
|
|
717
717
|
}), (e, n) => t.value ? A(e.$slots, "default", {}, void 0, void 0, 0) : A(e.$slots, "fallback", {}, void 0, void 0, 1);
|
|
@@ -743,11 +743,11 @@ var it = /* @__PURE__ */ u({
|
|
|
743
743
|
W(I(d, "modelValue"), (e) => {
|
|
744
744
|
p.value = e;
|
|
745
745
|
});
|
|
746
|
-
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 } = pe(), T = C, E = B(), { push: D, pop: k, isTop: j, zIndex: M } = qe(E, !0), { activate: N, deactivate: P } = tt(x, j, !0);
|
|
747
747
|
nt([x, y], j, p, L, k), W(p, (e) => {
|
|
748
748
|
e ? (g(() => {
|
|
749
749
|
g(() => N());
|
|
750
|
-
}), D(), f("show")) : (P(), k(), f("hide"),
|
|
750
|
+
}), D(), f("show")) : (P(), k(), f("hide"), re.value = !1, ie.value = null);
|
|
751
751
|
});
|
|
752
752
|
function F() {
|
|
753
753
|
p.value = !0, f("update:modelValue", !0);
|
|
@@ -761,19 +761,19 @@ var it = /* @__PURE__ */ u({
|
|
|
761
761
|
let V = O({
|
|
762
762
|
top: 0,
|
|
763
763
|
left: 0
|
|
764
|
-
}), G = O({ left: "50%" }), q = O(!1), ne = O(!1),
|
|
765
|
-
function
|
|
764
|
+
}), G = O({ left: "50%" }), q = O(!1), ne = O(!1), re = O(!1), ie = O(null), J = null;
|
|
765
|
+
function ae() {
|
|
766
766
|
if (y.value) return y.value;
|
|
767
767
|
let e = x.value?.parentElement ?? null;
|
|
768
768
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
769
769
|
let t = e?.previousElementSibling;
|
|
770
770
|
return t instanceof HTMLElement ? t : null;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Y() {
|
|
773
773
|
if (!x.value || !S.value) return;
|
|
774
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);
|
|
775
|
-
|
|
776
|
-
let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s =
|
|
775
|
+
re.value = a > r, ie.value = re.value ? r : null;
|
|
776
|
+
let o = new DOMRect(0, 0, e.offsetWidth, Math.min(a, r)), s = ae();
|
|
777
777
|
if (!s) {
|
|
778
778
|
V.value = {
|
|
779
779
|
top: Math.max((n.height - o.height) / 2, 16),
|
|
@@ -793,10 +793,10 @@ var it = /* @__PURE__ */ u({
|
|
|
793
793
|
}
|
|
794
794
|
return W(p, (e) => {
|
|
795
795
|
e ? g(() => {
|
|
796
|
-
|
|
797
|
-
}) : (window.removeEventListener("resize",
|
|
796
|
+
Y(), window.addEventListener("resize", Y), window.addEventListener("scroll", Y, { capture: !0 }), x.value && (J && J.disconnect(), J = new ResizeObserver(() => Y()), S.value && J.observe(S.value));
|
|
797
|
+
}) : (window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect());
|
|
798
798
|
}), b(() => {
|
|
799
|
-
window.removeEventListener("resize",
|
|
799
|
+
window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect();
|
|
800
800
|
}), c({
|
|
801
801
|
show: F,
|
|
802
802
|
hide: L,
|
|
@@ -829,7 +829,7 @@ var it = /* @__PURE__ */ u({
|
|
|
829
829
|
"g-popover-above": q.value,
|
|
830
830
|
"g-popover-below": !q.value,
|
|
831
831
|
"g-popover-minimal": e.minimal,
|
|
832
|
-
"g-popover-scrollable":
|
|
832
|
+
"g-popover-scrollable": re.value
|
|
833
833
|
}),
|
|
834
834
|
role: "dialog",
|
|
835
835
|
"aria-modal": "true",
|
|
@@ -839,10 +839,10 @@ var it = /* @__PURE__ */ u({
|
|
|
839
839
|
top: V.value.top + "px",
|
|
840
840
|
left: V.value.left + "px",
|
|
841
841
|
zIndex: R(M),
|
|
842
|
-
maxHeight:
|
|
842
|
+
maxHeight: ie.value === null ? void 0 : `${ie.value}px`
|
|
843
843
|
})
|
|
844
844
|
}, [
|
|
845
|
-
!ne.value && !e.minimal && !
|
|
845
|
+
!ne.value && !e.minimal && !re.value ? (w(), o("div", {
|
|
846
846
|
key: 0,
|
|
847
847
|
class: _(["g-popover-arrow", { "g-popover-arrow-above": q.value }]),
|
|
848
848
|
style: v(G.value),
|
|
@@ -1020,7 +1020,7 @@ var gt = /* @__PURE__ */ u({
|
|
|
1020
1020
|
}),
|
|
1021
1021
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
1022
1022
|
setup(t, { emit: n }) {
|
|
1023
|
-
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 } = $({
|
|
1024
1024
|
name: i.name,
|
|
1025
1025
|
value: d,
|
|
1026
1026
|
errors: I(i, "errors"),
|
|
@@ -1180,13 +1180,13 @@ var gt = /* @__PURE__ */ u({
|
|
|
1180
1180
|
id: "alertdialog-description-" + R(f),
|
|
1181
1181
|
class: "g-alertdialog-content"
|
|
1182
1182
|
}, [A(e.$slots, "default")], 8, Mt),
|
|
1183
|
-
s("div", Nt, [l(
|
|
1183
|
+
s("div", Nt, [l(Q, {
|
|
1184
1184
|
outlined: "",
|
|
1185
1185
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1186
1186
|
}, {
|
|
1187
1187
|
default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
|
|
1188
1188
|
_: 1
|
|
1189
|
-
}), l(
|
|
1189
|
+
}), l(Q, {
|
|
1190
1190
|
theme: a.buttonColor,
|
|
1191
1191
|
onClick: r[1] ||= (e) => o("confirm")
|
|
1192
1192
|
}, {
|
|
@@ -1316,7 +1316,7 @@ var Lt = ["id"], Rt = {
|
|
|
1316
1316
|
}),
|
|
1317
1317
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
1318
1318
|
setup(t, { emit: n }) {
|
|
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 } =
|
|
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 } = $({
|
|
1320
1320
|
name: i.name,
|
|
1321
1321
|
value: d,
|
|
1322
1322
|
errors: I(i, "errors"),
|
|
@@ -1367,16 +1367,16 @@ var Lt = ["id"], Rt = {
|
|
|
1367
1367
|
let t = e.relatedTarget;
|
|
1368
1368
|
x.value ? x.value = !1 : t && m.value && m.value.contains(t) || (i.searchable && (F.value = ""), U());
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function re(e) {
|
|
1371
1371
|
let t = L.value[e];
|
|
1372
1372
|
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
|
|
1373
1373
|
S.value = !1;
|
|
1374
1374
|
}, 100);
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function ie() {
|
|
1377
1377
|
i.disabled || (y.value ? U() : H());
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function J(e) {
|
|
1380
1380
|
if (i.disabled) return;
|
|
1381
1381
|
let t = L.value.length - 1;
|
|
1382
1382
|
if (!y.value && [
|
|
@@ -1399,21 +1399,21 @@ var Lt = ["id"], Rt = {
|
|
|
1399
1399
|
e.preventDefault(), b.value = t, M();
|
|
1400
1400
|
break;
|
|
1401
1401
|
case "Enter":
|
|
1402
|
-
e.preventDefault(), y.value ?
|
|
1402
|
+
e.preventDefault(), y.value ? re(b.value) : H();
|
|
1403
1403
|
break;
|
|
1404
1404
|
case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
|
|
1405
1405
|
U();
|
|
1406
1406
|
}, 0));
|
|
1407
1407
|
}
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1410
|
-
|
|
1409
|
+
function ae(e) {
|
|
1410
|
+
re(e);
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function Y() {
|
|
1413
1413
|
x.value = !0;
|
|
1414
1414
|
}
|
|
1415
|
-
let
|
|
1416
|
-
function
|
|
1415
|
+
let X = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
1416
|
+
function oe() {
|
|
1417
1417
|
i.disabled || (d.value = null, u("change", null), i.searchable && (F.value = ""));
|
|
1418
1418
|
}
|
|
1419
1419
|
return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
@@ -1442,7 +1442,7 @@ var Lt = ["id"], Rt = {
|
|
|
1442
1442
|
disabled: i.disabled,
|
|
1443
1443
|
onFocus: G,
|
|
1444
1444
|
onInput: K,
|
|
1445
|
-
onKeydown:
|
|
1445
|
+
onKeydown: J,
|
|
1446
1446
|
onBlur: ne,
|
|
1447
1447
|
"aria-autocomplete": "list",
|
|
1448
1448
|
"aria-controls": R(f) + "-listbox",
|
|
@@ -1454,11 +1454,11 @@ var Lt = ["id"], Rt = {
|
|
|
1454
1454
|
role: "combobox",
|
|
1455
1455
|
autocomplete: "off"
|
|
1456
1456
|
}), null, 16, Vt),
|
|
1457
|
-
|
|
1457
|
+
X.value ? (w(), o("button", {
|
|
1458
1458
|
key: 0,
|
|
1459
1459
|
type: "button",
|
|
1460
1460
|
class: "g-select-clear-btn",
|
|
1461
|
-
onClick:
|
|
1461
|
+
onClick: oe
|
|
1462
1462
|
}, [...r[0] ||= [s("svg", {
|
|
1463
1463
|
role: "img",
|
|
1464
1464
|
"aria-label": "Clear Selection",
|
|
@@ -1493,17 +1493,17 @@ var Lt = ["id"], Rt = {
|
|
|
1493
1493
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": R(f) + "-label" }, {
|
|
1494
1494
|
"aria-activedescendant": y.value ? R(f) + "-option-" + b.value : void 0,
|
|
1495
1495
|
tabindex: "0",
|
|
1496
|
-
onClick:
|
|
1497
|
-
onKeydown:
|
|
1496
|
+
onClick: ie,
|
|
1497
|
+
onKeydown: J,
|
|
1498
1498
|
onFocus: G,
|
|
1499
1499
|
onBlur: ne
|
|
1500
1500
|
}), [
|
|
1501
1501
|
c(P(N.value[z.value] ? N.value[z.value].label : "") + " ", 1),
|
|
1502
|
-
|
|
1502
|
+
X.value ? (w(), o("button", {
|
|
1503
1503
|
key: 0,
|
|
1504
1504
|
type: "button",
|
|
1505
1505
|
class: "g-select-clear-btn",
|
|
1506
|
-
onClick: q(
|
|
1506
|
+
onClick: q(oe, ["stop"])
|
|
1507
1507
|
}, [...r[2] ||= [s("svg", {
|
|
1508
1508
|
role: "img",
|
|
1509
1509
|
"aria-label": "Clear Selection",
|
|
@@ -1540,8 +1540,8 @@ var Lt = ["id"], Rt = {
|
|
|
1540
1540
|
}]),
|
|
1541
1541
|
role: "option",
|
|
1542
1542
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1543
|
-
onMousedown:
|
|
1544
|
-
onClick: (e) =>
|
|
1543
|
+
onMousedown: Y,
|
|
1544
|
+
onClick: (e) => ae(t)
|
|
1545
1545
|
}, [A(n.$slots, "option", {
|
|
1546
1546
|
option: e,
|
|
1547
1547
|
selected: e.value === d.value,
|
|
@@ -1602,7 +1602,7 @@ var Lt = ["id"], Rt = {
|
|
|
1602
1602
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1603
1603
|
});
|
|
1604
1604
|
}
|
|
1605
|
-
let { focused: S } =
|
|
1605
|
+
let { focused: S } = X(f);
|
|
1606
1606
|
function C(e) {
|
|
1607
1607
|
let t = e.altKey;
|
|
1608
1608
|
if (e.key === "ArrowDown") {
|
|
@@ -1626,7 +1626,7 @@ var Lt = ["id"], Rt = {
|
|
|
1626
1626
|
function T(e) {
|
|
1627
1627
|
d("select", e), l.value = "", m.value = !0, h.value = -1;
|
|
1628
1628
|
}
|
|
1629
|
-
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 = Y(() => {
|
|
1630
1630
|
d("submit", l.value);
|
|
1631
1631
|
}, 300);
|
|
1632
1632
|
W(() => l.value, (e) => {
|
|
@@ -1716,7 +1716,7 @@ function cn(e = "default", t) {
|
|
|
1716
1716
|
id: `g-wc-sidebar-${e}`,
|
|
1717
1717
|
open: O(!1),
|
|
1718
1718
|
breakpoint: t,
|
|
1719
|
-
isCollapsible:
|
|
1719
|
+
isCollapsible: ce(t, { ssrWidth: 1e3 }),
|
|
1720
1720
|
toggle: () => void 0
|
|
1721
1721
|
});
|
|
1722
1722
|
}
|
|
@@ -1810,7 +1810,7 @@ var ln = [
|
|
|
1810
1810
|
},
|
|
1811
1811
|
emits: ["toggle", "update:modelValue"],
|
|
1812
1812
|
setup(e, { expose: t, emit: n }) {
|
|
1813
|
-
let a = e, o = p("sidebar", void 0) ?? (
|
|
1813
|
+
let a = e, o = p("sidebar", void 0) ?? (fe() ? cn(a.sidebarKey, I(a, "mediaQuery")) : void 0), c = n, u = r(() => a.mode === "popover"), d = O(a.modelValue);
|
|
1814
1814
|
W(I(a, "modelValue"), (e) => {
|
|
1815
1815
|
d.value = e;
|
|
1816
1816
|
});
|
|
@@ -1923,7 +1923,7 @@ var ln = [
|
|
|
1923
1923
|
navigationMediaQuery: { default: "(max-width: 800px)" }
|
|
1924
1924
|
},
|
|
1925
1925
|
setup(e) {
|
|
1926
|
-
let t =
|
|
1926
|
+
let t = ce(I(e, "navigationMediaQuery"), { ssrWidth: 1e3 }), n = U("desktopNavigationRef"), r = U("mobileNavigationRef");
|
|
1927
1927
|
function c() {
|
|
1928
1928
|
return $e(n.value);
|
|
1929
1929
|
}
|
|
@@ -1986,7 +1986,7 @@ var ln = [
|
|
|
1986
1986
|
//#endregion
|
|
1987
1987
|
//#region src/compose/useScrollRestore.ts
|
|
1988
1988
|
function Sn(e, t) {
|
|
1989
|
-
let n = t ?
|
|
1989
|
+
let n = t ? ue(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
1990
1990
|
function c(e) {
|
|
1991
1991
|
let t = window.getComputedStyle(e);
|
|
1992
1992
|
return t.overflowY === "auto" || t.overflowY === "scroll";
|
|
@@ -2056,7 +2056,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2056
2056
|
storageKey: {}
|
|
2057
2057
|
},
|
|
2058
2058
|
setup(e) {
|
|
2059
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (
|
|
2059
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (fe() ? 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);
|
|
2060
2060
|
function u(e) {
|
|
2061
2061
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
2062
2062
|
}
|
|
@@ -2218,7 +2218,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2218
2218
|
copyLabel: {}
|
|
2219
2219
|
},
|
|
2220
2220
|
setup(t) {
|
|
2221
|
-
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 } = ae({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2222
2222
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2223
2223
|
}, m = () => {
|
|
2224
2224
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
@@ -2272,9 +2272,9 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2272
2272
|
}
|
|
2273
2273
|
x(() => {
|
|
2274
2274
|
g(f);
|
|
2275
|
-
}),
|
|
2275
|
+
}), le(i, () => {
|
|
2276
2276
|
u.value && f();
|
|
2277
|
-
}),
|
|
2277
|
+
}), le(c, () => {
|
|
2278
2278
|
u.value && f();
|
|
2279
2279
|
}), W(() => n.entries, async () => {
|
|
2280
2280
|
u.value && (await g(), f());
|
|
@@ -2290,7 +2290,7 @@ var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
|
2290
2290
|
role: t.label ? "log" : void 0,
|
|
2291
2291
|
"aria-label": t.label,
|
|
2292
2292
|
onScroll: p
|
|
2293
|
-
}, [l(
|
|
2293
|
+
}, [l(Q, {
|
|
2294
2294
|
class: _(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": u.value }]),
|
|
2295
2295
|
size: "small",
|
|
2296
2296
|
type: "button",
|
|
@@ -2766,7 +2766,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2766
2766
|
}),
|
|
2767
2767
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
2768
2768
|
setup(t, { emit: n }) {
|
|
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 } =
|
|
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 } = $({
|
|
2770
2770
|
name: i.name,
|
|
2771
2771
|
value: d,
|
|
2772
2772
|
errors: I(i, "errors"),
|
|
@@ -2815,7 +2815,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2815
2815
|
function ne() {
|
|
2816
2816
|
i.disabled || y.value || z();
|
|
2817
2817
|
}
|
|
2818
|
-
function
|
|
2818
|
+
function re(e) {
|
|
2819
2819
|
if (S.value) {
|
|
2820
2820
|
S.value = !1;
|
|
2821
2821
|
return;
|
|
@@ -2823,13 +2823,13 @@ var Cr = ["id", "for"], wr = {
|
|
|
2823
2823
|
let t = e.relatedTarget;
|
|
2824
2824
|
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function ie(e) {
|
|
2827
2827
|
e.preventDefault();
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2829
|
+
function J() {
|
|
2830
2830
|
S.value = !0;
|
|
2831
2831
|
}
|
|
2832
|
-
function
|
|
2832
|
+
function ae(e) {
|
|
2833
2833
|
if (i.disabled) return;
|
|
2834
2834
|
let t = N.value.length - 1;
|
|
2835
2835
|
switch (e.key) {
|
|
@@ -2857,9 +2857,9 @@ var Cr = ["id", "for"], wr = {
|
|
|
2857
2857
|
case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
|
|
2858
2858
|
}
|
|
2859
2859
|
}
|
|
2860
|
-
let
|
|
2860
|
+
let Y = r(() => `${f}-input`), X = r(() => `${f}-label`), oe = r(() => `${f}-instructions`), se = r(() => `error-message-${f}`), ce = r(() => {
|
|
2861
2861
|
let e = [];
|
|
2862
|
-
return i.instructions && e.push(
|
|
2862
|
+
return i.instructions && e.push(oe.value), T.value && e.push(se.value), e.length > 0 ? e.join(" ") : void 0;
|
|
2863
2863
|
});
|
|
2864
2864
|
return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
|
|
2865
2865
|
"g-multiselect-open": y.value,
|
|
@@ -2867,13 +2867,13 @@ var Cr = ["id", "for"], wr = {
|
|
|
2867
2867
|
}]) }, [
|
|
2868
2868
|
t.hiddenLabel ? a("", !0) : (w(), o("label", {
|
|
2869
2869
|
key: 0,
|
|
2870
|
-
id:
|
|
2871
|
-
for:
|
|
2870
|
+
id: X.value,
|
|
2871
|
+
for: Y.value,
|
|
2872
2872
|
class: "g-multiselect-label"
|
|
2873
2873
|
}, [c(P(t.label), 1), t.required ? (w(), o("span", wr, " *")) : a("", !0)], 8, Cr)),
|
|
2874
2874
|
t.instructions ? (w(), o("div", {
|
|
2875
2875
|
key: 1,
|
|
2876
|
-
id:
|
|
2876
|
+
id: oe.value,
|
|
2877
2877
|
class: "g-multiselect-instructions"
|
|
2878
2878
|
}, P(t.instructions), 9, Tr)) : a("", !0),
|
|
2879
2879
|
s("div", {
|
|
@@ -2885,7 +2885,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2885
2885
|
d.value.length ? (w(), o("ul", {
|
|
2886
2886
|
key: 0,
|
|
2887
2887
|
class: "g-multiselect-chips",
|
|
2888
|
-
"aria-labelledby":
|
|
2888
|
+
"aria-labelledby": X.value
|
|
2889
2889
|
}, [(w(!0), o(e, null, k(d.value, (e) => (w(), o("li", {
|
|
2890
2890
|
key: e,
|
|
2891
2891
|
class: "g-multiselect-chip"
|
|
@@ -2894,7 +2894,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2894
2894
|
class: "g-multiselect-chip-remove",
|
|
2895
2895
|
"aria-label": `Remove ${L(e)}`,
|
|
2896
2896
|
disabled: t.disabled,
|
|
2897
|
-
onMousedown:
|
|
2897
|
+
onMousedown: J,
|
|
2898
2898
|
onClick: q((t) => W(e), ["stop"])
|
|
2899
2899
|
}, [...r[0] ||= [s("svg", {
|
|
2900
2900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2911,7 +2911,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2911
2911
|
type: "text",
|
|
2912
2912
|
role: "combobox",
|
|
2913
2913
|
class: "g-multiselect-input",
|
|
2914
|
-
id:
|
|
2914
|
+
id: Y.value,
|
|
2915
2915
|
value: x.value,
|
|
2916
2916
|
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
2917
2917
|
disabled: t.disabled,
|
|
@@ -2922,12 +2922,12 @@ var Cr = ["id", "for"], wr = {
|
|
|
2922
2922
|
"aria-controls": R(f) + "-listbox",
|
|
2923
2923
|
"aria-activedescendant": y.value && N.value.length > 0 ? R(f) + "-option-" + b.value : void 0
|
|
2924
2924
|
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
2925
|
-
"aria-describedby":
|
|
2925
|
+
"aria-describedby": ce.value,
|
|
2926
2926
|
"aria-required": t.required ? "true" : void 0,
|
|
2927
2927
|
onInput: K,
|
|
2928
|
-
onKeydown:
|
|
2928
|
+
onKeydown: ae,
|
|
2929
2929
|
onFocus: ne,
|
|
2930
|
-
onBlur:
|
|
2930
|
+
onBlur: re
|
|
2931
2931
|
}), null, 16, kr),
|
|
2932
2932
|
r[2] ||= s("svg", {
|
|
2933
2933
|
class: "g-multiselect-caret",
|
|
@@ -2945,7 +2945,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
2945
2945
|
id: R(f) + "-listbox",
|
|
2946
2946
|
role: "listbox",
|
|
2947
2947
|
"aria-multiselectable": "true"
|
|
2948
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby":
|
|
2948
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": X.value }, {
|
|
2949
2949
|
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": R(E) === "above" }],
|
|
2950
2950
|
style: R(D),
|
|
2951
2951
|
tabindex: "-1"
|
|
@@ -2958,13 +2958,13 @@ var Cr = ["id", "for"], wr = {
|
|
|
2958
2958
|
"g-multiselect-option--selected": F(e.value)
|
|
2959
2959
|
}]),
|
|
2960
2960
|
"aria-selected": F(e.value) ? "true" : "false",
|
|
2961
|
-
onMousedown:
|
|
2961
|
+
onMousedown: ie,
|
|
2962
2962
|
onClick: (e) => U(t)
|
|
2963
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]])
|
|
2964
2964
|
], 2),
|
|
2965
2965
|
l(Me, {
|
|
2966
2966
|
errors: R(C),
|
|
2967
|
-
id:
|
|
2967
|
+
id: se.value
|
|
2968
2968
|
}, null, 8, ["errors", "id"])
|
|
2969
2969
|
], 2));
|
|
2970
2970
|
}
|
|
@@ -3014,7 +3014,7 @@ var Cr = ["id", "for"], wr = {
|
|
|
3014
3014
|
}),
|
|
3015
3015
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
3016
3016
|
setup(t, { emit: n }) {
|
|
3017
|
-
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 } = $({
|
|
3018
3018
|
name: u.name,
|
|
3019
3019
|
value: d,
|
|
3020
3020
|
errors: I(u, "errors"),
|
|
@@ -3537,25 +3537,26 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3537
3537
|
}, ha = { class: "g-clear-filters-wrap" }, ga = {
|
|
3538
3538
|
key: 0,
|
|
3539
3539
|
class: "pagination"
|
|
3540
|
-
}, _a = { class: "g-table-controls-right" }, va = { class: "g-result-count" }, ya = ["aria-
|
|
3540
|
+
}, _a = { class: "g-table-controls-right" }, va = { class: "g-result-count" }, ya = ["aria-rowcount"], ba = { class: "g-visually-hidden" }, xa = { key: 0 }, Sa = ["data-column-key"], Ca = { class: "g-table-head" }, wa = { "aria-rowindex": "1" }, Ta = {
|
|
3541
3541
|
key: 0,
|
|
3542
3542
|
scope: "col",
|
|
3543
3543
|
class: "g-th g-th-checkbox"
|
|
3544
|
-
},
|
|
3544
|
+
}, Ea = [
|
|
3545
3545
|
"checked",
|
|
3546
3546
|
"indeterminate",
|
|
3547
3547
|
"aria-label"
|
|
3548
|
-
],
|
|
3548
|
+
], Da = ["id", "aria-sort"], Oa = { class: "th-inner" }, ka = ["aria-describedby", "onClick"], Aa = {
|
|
3549
3549
|
key: 0,
|
|
3550
3550
|
class: "sort-indicator",
|
|
3551
3551
|
"aria-hidden": "true"
|
|
3552
|
-
}, Aa = {
|
|
3553
|
-
key: 1,
|
|
3554
|
-
class: "g-visually-hidden"
|
|
3555
3552
|
}, ja = {
|
|
3556
3553
|
key: 1,
|
|
3557
3554
|
class: "g-column-head"
|
|
3558
|
-
}, Ma = [
|
|
3555
|
+
}, Ma = [
|
|
3556
|
+
"onClick",
|
|
3557
|
+
"aria-describedby",
|
|
3558
|
+
"aria-expanded"
|
|
3559
|
+
], Na = {
|
|
3559
3560
|
key: 1,
|
|
3560
3561
|
class: "g-filter-search",
|
|
3561
3562
|
role: "search"
|
|
@@ -3580,10 +3581,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3580
3581
|
"aria-valuetext",
|
|
3581
3582
|
"onKeydown",
|
|
3582
3583
|
"onPointerdown"
|
|
3583
|
-
], Ha = { key: 0 }, Ua = { "aria-rowindex": "2" }, Wa = ["colspan"], Ga = {
|
|
3584
|
+
], Ha = { key: 0 }, Ua = { "aria-rowindex": "2" }, Wa = ["colspan"], Ga = { hidden: "" }, Ka = ["id"], qa = ["id"], Ja = ["id"], Ya = {
|
|
3584
3585
|
key: 1,
|
|
3585
3586
|
class: "g-bulk-actions-toolbar"
|
|
3586
|
-
},
|
|
3587
|
+
}, Xa = { class: "g-selected-count" }, Za = { class: "g-bulk-actions" }, Qa = /* @__PURE__ */ u({
|
|
3587
3588
|
__name: "GTable",
|
|
3588
3589
|
props: /*@__PURE__*/ m({
|
|
3589
3590
|
label: {},
|
|
@@ -3681,262 +3682,266 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3681
3682
|
function W(e) {
|
|
3682
3683
|
e !== void 0 && y("update:pageSize", e);
|
|
3683
3684
|
}
|
|
3684
|
-
let G = B(), te = d(), ne = O(null),
|
|
3685
|
-
|
|
3685
|
+
let G = B(), te = d(), ne = O(null), re = O(null), ie = O(null), J = O(null), ae = O(null), Y = O(0);
|
|
3686
|
+
le(ae, (e) => {
|
|
3686
3687
|
let t = e[0];
|
|
3687
|
-
|
|
3688
|
+
Y.value = t?.borderBoxSize?.[0]?.blockSize ?? t?.target.getBoundingClientRect().height ?? 0;
|
|
3688
3689
|
});
|
|
3689
|
-
let
|
|
3690
|
-
function
|
|
3690
|
+
let X = O(null), oe = `${G}-table`;
|
|
3691
|
+
function se(e) {
|
|
3691
3692
|
let t = /* @__PURE__ */ new Set();
|
|
3692
3693
|
return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
|
|
3693
3694
|
}
|
|
3694
|
-
function
|
|
3695
|
+
function ce(e, t) {
|
|
3695
3696
|
return {
|
|
3696
3697
|
key: e,
|
|
3697
3698
|
order: t
|
|
3698
3699
|
};
|
|
3699
3700
|
}
|
|
3700
|
-
let
|
|
3701
|
-
function
|
|
3702
|
-
u.value =
|
|
3701
|
+
let Z = r(() => se(u.value));
|
|
3702
|
+
function ue(e) {
|
|
3703
|
+
u.value = se(e);
|
|
3703
3704
|
}
|
|
3704
|
-
let
|
|
3705
|
-
let e = new Set(
|
|
3706
|
-
return
|
|
3705
|
+
let de = r(() => h.columns.filter((e) => e.sortable)), fe = r(() => de.value.length > 1), pe = r(() => {
|
|
3706
|
+
let e = new Set(Z.value.map((e) => String(e.key)));
|
|
3707
|
+
return de.value.filter((t) => !e.has(String(t.key)));
|
|
3707
3708
|
});
|
|
3708
|
-
function pe(e) {
|
|
3709
|
-
return Q.value.findIndex((t) => t.key === e);
|
|
3710
|
-
}
|
|
3711
3709
|
function me(e) {
|
|
3712
|
-
return
|
|
3710
|
+
return Z.value.findIndex((t) => t.key === e);
|
|
3713
3711
|
}
|
|
3714
3712
|
function he(e) {
|
|
3715
|
-
return
|
|
3713
|
+
return Z.value.find((t) => t.key === e);
|
|
3716
3714
|
}
|
|
3717
3715
|
function ge(e) {
|
|
3718
|
-
|
|
3719
|
-
return t === -1 ? "none" : t > 0 ? "other" : Q.value[0]?.order === 1 ? "ascending" : "descending";
|
|
3716
|
+
return h.columns.find((t) => t.key === e)?.label || String(e);
|
|
3720
3717
|
}
|
|
3721
3718
|
function _e(e) {
|
|
3722
|
-
let t =
|
|
3723
|
-
|
|
3724
|
-
let n = Q.value[t].order === 1 ? "ascending" : "descending";
|
|
3725
|
-
return Q.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
|
|
3719
|
+
let t = me(e);
|
|
3720
|
+
return t === -1 ? "none" : t > 0 ? "other" : Z.value[0]?.order === 1 ? "ascending" : "descending";
|
|
3726
3721
|
}
|
|
3727
3722
|
function ve(e) {
|
|
3723
|
+
let t = me(e);
|
|
3724
|
+
if (t === -1) return "Sortable, not sorted";
|
|
3725
|
+
let n = Z.value[t].order === 1 ? "ascending" : "descending";
|
|
3726
|
+
return Z.value.length > 1 ? `Sorted ${n}, priority ${t + 1}` : `Sorted ${n}`;
|
|
3727
|
+
}
|
|
3728
|
+
let ye = r(() => Z.value.length === 0 ? "" : `sorted by ${Z.value.map((e) => `${ge(e.key)} ${e.order === 1 ? "ascending" : "descending"}`).join(", then ")}`), be = r(() => {
|
|
3729
|
+
let e = h.columns.filter((e) => ot(e));
|
|
3730
|
+
return e.length === 0 ? "" : `filtered by ${e.map((e) => e.label).join(", ")}`;
|
|
3731
|
+
});
|
|
3732
|
+
function xe(e) {
|
|
3728
3733
|
return e === 1 ? "Ascending" : "Descending";
|
|
3729
3734
|
}
|
|
3730
|
-
function
|
|
3731
|
-
let t =
|
|
3732
|
-
return t ? t.order === 1 ? [
|
|
3735
|
+
function Se(e) {
|
|
3736
|
+
let t = Z.value[0]?.key === e ? Z.value[0] : void 0;
|
|
3737
|
+
return t ? t.order === 1 ? [ce(e, -1)] : [] : [ce(e, 1)];
|
|
3733
3738
|
}
|
|
3734
|
-
function
|
|
3735
|
-
let t = [...
|
|
3736
|
-
return n === -1 ? (t.push(
|
|
3739
|
+
function Ce(e) {
|
|
3740
|
+
let t = [...Z.value], n = t.findIndex((t) => t.key === e);
|
|
3741
|
+
return n === -1 ? (t.push(ce(e, 1)), t) : t[n].order === 1 ? (t[n] = ce(e, -1), t) : (t.splice(n, 1), t);
|
|
3737
3742
|
}
|
|
3738
|
-
function
|
|
3743
|
+
function we(e, t = !1) {
|
|
3739
3744
|
if (!e.sortable) return;
|
|
3740
3745
|
let n = e.key;
|
|
3741
|
-
|
|
3746
|
+
ue(t ? Ce(n) : Se(n));
|
|
3742
3747
|
}
|
|
3743
|
-
function
|
|
3744
|
-
|
|
3748
|
+
function Te(e, t) {
|
|
3749
|
+
ue([...Z.value, ce(e, t)]), g(() => {
|
|
3745
3750
|
let t = ne.value;
|
|
3746
3751
|
t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
|
|
3747
3752
|
}).catch((e) => {
|
|
3748
3753
|
console.error(e);
|
|
3749
3754
|
});
|
|
3750
3755
|
}
|
|
3751
|
-
function
|
|
3752
|
-
|
|
3756
|
+
function Ee(e) {
|
|
3757
|
+
ue(Z.value.map((t) => t.key === e ? ce(t.key, t.order === 1 ? -1 : 1) : t));
|
|
3753
3758
|
}
|
|
3754
|
-
function
|
|
3755
|
-
|
|
3759
|
+
function De(e) {
|
|
3760
|
+
ue(Z.value.filter((t) => t.key !== e));
|
|
3756
3761
|
}
|
|
3757
|
-
function
|
|
3758
|
-
|
|
3762
|
+
function Oe() {
|
|
3763
|
+
ue([]);
|
|
3759
3764
|
}
|
|
3760
|
-
function
|
|
3765
|
+
function ke(e) {
|
|
3761
3766
|
return p.value[e] ?? {};
|
|
3762
3767
|
}
|
|
3763
|
-
function
|
|
3768
|
+
function Ae(e, t) {
|
|
3764
3769
|
p.value = {
|
|
3765
3770
|
...p.value,
|
|
3766
3771
|
[e]: {
|
|
3767
|
-
...
|
|
3772
|
+
...ke(e),
|
|
3768
3773
|
...t
|
|
3769
3774
|
}
|
|
3770
3775
|
};
|
|
3771
3776
|
}
|
|
3772
|
-
function
|
|
3777
|
+
function $(e) {
|
|
3773
3778
|
return Math.max(50, Math.round(e));
|
|
3774
3779
|
}
|
|
3775
|
-
function ke(e) {
|
|
3776
|
-
let t = Ee(e).width;
|
|
3777
|
-
if (typeof t == "number" && Number.isFinite(t)) return Oe(t);
|
|
3778
|
-
}
|
|
3779
|
-
function Ae(e) {
|
|
3780
|
-
return document.getElementById(`${G}-th-${String(e)}`);
|
|
3781
|
-
}
|
|
3782
3780
|
function je(e) {
|
|
3783
|
-
let t =
|
|
3784
|
-
|
|
3781
|
+
let t = ke(e).width;
|
|
3782
|
+
if (typeof t == "number" && Number.isFinite(t)) return $(t);
|
|
3785
3783
|
}
|
|
3786
3784
|
function Me(e) {
|
|
3787
|
-
return
|
|
3785
|
+
return document.getElementById(`${G}-th-${String(e)}`);
|
|
3788
3786
|
}
|
|
3789
3787
|
function Ne(e) {
|
|
3790
|
-
let t = Me(e)
|
|
3791
|
-
return
|
|
3788
|
+
let t = Me(e)?.getBoundingClientRect().width;
|
|
3789
|
+
return $(t ?? 50);
|
|
3790
|
+
}
|
|
3791
|
+
function Pe(e) {
|
|
3792
|
+
return je(e) ?? Ne(e);
|
|
3793
|
+
}
|
|
3794
|
+
function Fe(e) {
|
|
3795
|
+
let t = Pe(e), n = ie.value?.getBoundingClientRect().width ?? re.value?.getBoundingClientRect().width ?? t;
|
|
3796
|
+
return $(Math.max(t, n));
|
|
3792
3797
|
}
|
|
3793
|
-
function
|
|
3794
|
-
|
|
3798
|
+
function Ie(e, t) {
|
|
3799
|
+
Ae(e, { width: $(t) });
|
|
3795
3800
|
}
|
|
3796
|
-
function
|
|
3797
|
-
|
|
3801
|
+
function Le(e, t) {
|
|
3802
|
+
Ie(e, Pe(e) + t);
|
|
3798
3803
|
}
|
|
3799
|
-
function
|
|
3800
|
-
|
|
3804
|
+
function Re() {
|
|
3805
|
+
X.value = null, window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", Re), window.removeEventListener("pointercancel", Re);
|
|
3801
3806
|
}
|
|
3802
|
-
function
|
|
3803
|
-
if (!
|
|
3804
|
-
let t =
|
|
3805
|
-
|
|
3807
|
+
function ze(e) {
|
|
3808
|
+
if (!X.value) return;
|
|
3809
|
+
let t = X.value.startWidth + (e.clientX - X.value.startX);
|
|
3810
|
+
Ie(X.value.key, t);
|
|
3806
3811
|
}
|
|
3807
|
-
function
|
|
3812
|
+
function Be(e, t) {
|
|
3808
3813
|
if (!h.resizableColumns) return;
|
|
3809
3814
|
e.preventDefault(), e.stopPropagation();
|
|
3810
|
-
let n =
|
|
3811
|
-
|
|
3815
|
+
let n = Pe(t);
|
|
3816
|
+
Ie(t, n), X.value = {
|
|
3812
3817
|
key: t,
|
|
3813
3818
|
startX: e.clientX,
|
|
3814
3819
|
startWidth: n
|
|
3815
|
-
}, e.currentTarget?.focus(), window.addEventListener("pointermove",
|
|
3820
|
+
}, e.currentTarget?.focus(), window.addEventListener("pointermove", ze), window.addEventListener("pointerup", Re), window.addEventListener("pointercancel", Re);
|
|
3816
3821
|
}
|
|
3817
|
-
function
|
|
3822
|
+
function Ve(e, t) {
|
|
3818
3823
|
let n = e.shiftKey ? 48 : 16;
|
|
3819
3824
|
switch (e.key) {
|
|
3820
3825
|
case "ArrowLeft":
|
|
3821
|
-
e.preventDefault(),
|
|
3826
|
+
e.preventDefault(), Le(t, -n);
|
|
3822
3827
|
return;
|
|
3823
3828
|
case "ArrowRight":
|
|
3824
|
-
e.preventDefault(),
|
|
3829
|
+
e.preventDefault(), Le(t, n);
|
|
3825
3830
|
return;
|
|
3826
3831
|
case "Home":
|
|
3827
|
-
e.preventDefault(),
|
|
3832
|
+
e.preventDefault(), Ie(t, 50);
|
|
3828
3833
|
return;
|
|
3829
3834
|
case "End":
|
|
3830
|
-
e.preventDefault(),
|
|
3835
|
+
e.preventDefault(), Ie(t, Fe(t));
|
|
3831
3836
|
return;
|
|
3832
3837
|
default: return;
|
|
3833
3838
|
}
|
|
3834
3839
|
}
|
|
3835
|
-
function
|
|
3840
|
+
function He(e) {
|
|
3836
3841
|
if (!h.resizableColumns) return;
|
|
3837
|
-
let t =
|
|
3842
|
+
let t = je(e.key);
|
|
3838
3843
|
if (t !== void 0) return {
|
|
3839
3844
|
width: `${t}px`,
|
|
3840
3845
|
minWidth: `${t}px`
|
|
3841
3846
|
};
|
|
3842
3847
|
}
|
|
3843
|
-
function
|
|
3844
|
-
return
|
|
3848
|
+
function Ue(e) {
|
|
3849
|
+
return Pe(e);
|
|
3845
3850
|
}
|
|
3846
|
-
function
|
|
3847
|
-
return `${
|
|
3851
|
+
function We(e) {
|
|
3852
|
+
return `${Ue(e)} pixels`;
|
|
3848
3853
|
}
|
|
3849
|
-
let
|
|
3854
|
+
let Ge = r(() => {
|
|
3850
3855
|
let e = te?.vnode.props ?? {};
|
|
3851
3856
|
return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
|
|
3852
|
-
}),
|
|
3853
|
-
function
|
|
3854
|
-
return
|
|
3857
|
+
}), Ke = r(() => h.columns.filter((e) => ke(e.key).visible !== !1)), qe = H(), Je = r(() => Ke.value.length !== h.columns.length), Ye = r(() => Ge.value && h.columns.length > 0), Xe = r(() => !!qe.controls || !!qe["right-controls"]), Ze = r(() => h.resultCount ?? h.data.length);
|
|
3858
|
+
function Qe(e) {
|
|
3859
|
+
return ke(e.key).visible !== !1;
|
|
3855
3860
|
}
|
|
3856
|
-
function
|
|
3857
|
-
|
|
3861
|
+
function $e(e, t) {
|
|
3862
|
+
Ae(e.key, { visible: t });
|
|
3858
3863
|
}
|
|
3859
|
-
function
|
|
3864
|
+
function et() {
|
|
3860
3865
|
p.value = h.columns.reduce((e, t) => ({
|
|
3861
3866
|
...e,
|
|
3862
3867
|
[t.key]: {
|
|
3863
|
-
...
|
|
3868
|
+
...ke(t.key),
|
|
3864
3869
|
visible: !0
|
|
3865
3870
|
}
|
|
3866
3871
|
}), { ...p.value });
|
|
3867
3872
|
}
|
|
3868
|
-
let
|
|
3869
|
-
function
|
|
3873
|
+
let tt = r(() => h.pagination && typeof h.pageSize == "number"), nt = r(() => !!(fe.value || S.value || tt.value || Ye.value || Xe.value));
|
|
3874
|
+
function rt() {
|
|
3870
3875
|
return f.value;
|
|
3871
3876
|
}
|
|
3872
|
-
function
|
|
3873
|
-
if (e.filter) return yr(e.filter,
|
|
3877
|
+
function it(e) {
|
|
3878
|
+
if (e.filter) return yr(e.filter, rt()[pr(e)]);
|
|
3874
3879
|
}
|
|
3875
|
-
function
|
|
3876
|
-
e.filter && (
|
|
3880
|
+
function at(e, t) {
|
|
3881
|
+
e.filter && (rt()[pr(e)] = br(e.filter, t));
|
|
3877
3882
|
}
|
|
3878
|
-
function
|
|
3879
|
-
return e.filter ? xr(e.filter,
|
|
3883
|
+
function ot(e) {
|
|
3884
|
+
return e.filter ? xr(e.filter, rt()[pr(e)]) : !1;
|
|
3880
3885
|
}
|
|
3881
|
-
function
|
|
3886
|
+
function st(e) {
|
|
3882
3887
|
return e.filter?.type !== "select" && e.filter?.type !== "multi-select" ? [] : e.filter.options;
|
|
3883
3888
|
}
|
|
3884
|
-
function
|
|
3885
|
-
let n =
|
|
3889
|
+
function lt(e, t) {
|
|
3890
|
+
let n = st(e).findIndex((e) => e.value === t);
|
|
3886
3891
|
return n === -1 ? void 0 : String(n);
|
|
3887
3892
|
}
|
|
3888
|
-
function
|
|
3889
|
-
return
|
|
3893
|
+
function ut(e, t) {
|
|
3894
|
+
return st(e)[Number(t)]?.value;
|
|
3890
3895
|
}
|
|
3891
|
-
function
|
|
3892
|
-
return
|
|
3896
|
+
function dt(e) {
|
|
3897
|
+
return st(e).map((e, t) => ({
|
|
3893
3898
|
label: e.label,
|
|
3894
3899
|
value: String(t),
|
|
3895
3900
|
description: e.description
|
|
3896
3901
|
}));
|
|
3897
3902
|
}
|
|
3898
|
-
function
|
|
3899
|
-
return
|
|
3903
|
+
function ft(e) {
|
|
3904
|
+
return st(e).map((e, t) => ({
|
|
3900
3905
|
label: e.label,
|
|
3901
3906
|
value: String(t),
|
|
3902
3907
|
hint: e.description
|
|
3903
3908
|
}));
|
|
3904
3909
|
}
|
|
3905
|
-
function dt(e) {
|
|
3906
|
-
return ot(e, nt(e)) ?? null;
|
|
3907
|
-
}
|
|
3908
|
-
function ft(e, t) {
|
|
3909
|
-
rt(e, t == null ? void 0 : st(e, t));
|
|
3910
|
-
}
|
|
3911
3910
|
function pt(e) {
|
|
3912
|
-
|
|
3913
|
-
return Array.isArray(t) ? t.map((t) => ot(e, t)).filter((e) => e !== void 0) : [];
|
|
3911
|
+
return lt(e, it(e)) ?? null;
|
|
3914
3912
|
}
|
|
3915
3913
|
function mt(e, t) {
|
|
3916
|
-
|
|
3914
|
+
at(e, t == null ? void 0 : ut(e, t));
|
|
3915
|
+
}
|
|
3916
|
+
function ht(e) {
|
|
3917
|
+
let t = it(e);
|
|
3918
|
+
return Array.isArray(t) ? t.map((t) => lt(e, t)).filter((e) => e !== void 0) : [];
|
|
3919
|
+
}
|
|
3920
|
+
function gt(e, t) {
|
|
3921
|
+
at(e, t.map((t) => ut(e, t)));
|
|
3917
3922
|
}
|
|
3918
3923
|
return b(() => {
|
|
3919
|
-
|
|
3924
|
+
Re();
|
|
3920
3925
|
}), x(() => {
|
|
3921
3926
|
h.rowClickable && h.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
3922
3927
|
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.`);
|
|
3923
3928
|
}), (n, r) => (w(), o("div", {
|
|
3924
3929
|
ref_key: "outerWrapRef",
|
|
3925
|
-
ref:
|
|
3930
|
+
ref: ie,
|
|
3926
3931
|
class: "g-table-outer-wrap",
|
|
3927
|
-
style: v({ "--g-table-controls-height": `${
|
|
3932
|
+
style: v({ "--g-table-controls-height": `${nt.value ? Y.value : 0}px` })
|
|
3928
3933
|
}, [s("div", zi, [
|
|
3929
|
-
|
|
3934
|
+
nt.value ? (w(), o("div", {
|
|
3930
3935
|
key: 0,
|
|
3931
3936
|
ref_key: "controlsRef",
|
|
3932
|
-
ref:
|
|
3937
|
+
ref: ae,
|
|
3933
3938
|
class: "g-table-controls"
|
|
3934
3939
|
}, [
|
|
3935
3940
|
s("div", Bi, [
|
|
3936
|
-
|
|
3937
|
-
trigger: K(({ toggle: e }) => [l(
|
|
3941
|
+
fe.value ? (w(), o("div", Vi, [l(ct, null, {
|
|
3942
|
+
trigger: K(({ toggle: e }) => [l(Q, {
|
|
3938
3943
|
size: "small",
|
|
3939
|
-
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active":
|
|
3944
|
+
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
|
|
3940
3945
|
"aria-label": "Choose sort order",
|
|
3941
3946
|
onClick: e
|
|
3942
3947
|
}, {
|
|
@@ -3949,7 +3954,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3949
3954
|
}, [s("path", {
|
|
3950
3955
|
fill: "currentColor",
|
|
3951
3956
|
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"
|
|
3952
|
-
})], -1),
|
|
3957
|
+
})], -1), Z.value.length ? (w(), o("span", Hi, P(Z.value.length), 1)) : a("", !0)]),
|
|
3953
3958
|
_: 1
|
|
3954
3959
|
}, 8, ["class", "onClick"])]),
|
|
3955
3960
|
default: K(() => [s("fieldset", {
|
|
@@ -3961,21 +3966,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3961
3966
|
}, [
|
|
3962
3967
|
r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
3963
3968
|
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),
|
|
3964
|
-
|
|
3969
|
+
Z.value.length ? (w(), o("ol", Ui, [(w(!0), o(e, null, k(Z.value, (e, t) => (w(), o("li", {
|
|
3965
3970
|
key: e.key,
|
|
3966
3971
|
class: "g-sort-builder-rule",
|
|
3967
3972
|
tabindex: "-1",
|
|
3968
3973
|
"data-sort-row-key": String(e.key),
|
|
3969
|
-
"aria-label": `${
|
|
3974
|
+
"aria-label": `${ge(e.key)} ${xe(e.order)} sort, priority ${t + 1}`
|
|
3970
3975
|
}, [
|
|
3971
3976
|
s("span", Gi, P(t + 1), 1),
|
|
3972
|
-
s("span", Ki, P(
|
|
3977
|
+
s("span", Ki, P(ge(e.key)), 1),
|
|
3973
3978
|
s("button", {
|
|
3974
3979
|
type: "button",
|
|
3975
3980
|
class: "g-sort-builder-direction",
|
|
3976
|
-
"aria-label": `Toggle ${
|
|
3977
|
-
onClick: (t) =>
|
|
3978
|
-
}, [s("span", Ji, P(
|
|
3981
|
+
"aria-label": `Toggle ${ge(e.key)} sort direction`,
|
|
3982
|
+
onClick: (t) => Ee(e.key)
|
|
3983
|
+
}, [s("span", Ji, P(xe(e.order)), 1), s("span", Yi, [(w(), o("svg", {
|
|
3979
3984
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3980
3985
|
viewBox: "0 0 640 640",
|
|
3981
3986
|
height: "1.25em",
|
|
@@ -3987,18 +3992,18 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
3987
3992
|
s("button", {
|
|
3988
3993
|
type: "button",
|
|
3989
3994
|
class: "g-sort-builder-remove",
|
|
3990
|
-
"aria-label": `Remove ${
|
|
3991
|
-
onClick: (t) =>
|
|
3995
|
+
"aria-label": `Remove ${ge(e.key)} sort`,
|
|
3996
|
+
onClick: (t) => De(e.key)
|
|
3992
3997
|
}, " Remove ", 8, Xi)
|
|
3993
3998
|
], 8, Wi))), 128))])) : (w(), o("p", Zi, " No active sort rules. ")),
|
|
3994
|
-
|
|
3999
|
+
pe.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(pe.value, (e) => (w(), o("li", {
|
|
3995
4000
|
key: e.key,
|
|
3996
4001
|
class: "g-sort-builder-add-item"
|
|
3997
4002
|
}, [s("span", ea, P(e.label), 1), s("div", ta, [s("button", {
|
|
3998
4003
|
type: "button",
|
|
3999
4004
|
class: "g-sort-builder-direction",
|
|
4000
4005
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
4001
|
-
onClick: (t) =>
|
|
4006
|
+
onClick: (t) => Te(e.key, 1)
|
|
4002
4007
|
}, [...r[3] ||= [s("span", { class: "g-visually-hidden" }, " Add ascending sort ", -1), s("span", {
|
|
4003
4008
|
class: "sort-indicator",
|
|
4004
4009
|
"aria-hidden": "true"
|
|
@@ -4013,17 +4018,17 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4013
4018
|
type: "button",
|
|
4014
4019
|
class: "g-sort-builder-direction",
|
|
4015
4020
|
"aria-label": `Add ${e.label} descending sort`,
|
|
4016
|
-
onClick: (t) =>
|
|
4021
|
+
onClick: (t) => Te(e.key, -1)
|
|
4017
4022
|
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", ia, [(w(), o("svg", aa, [...r[4] ||= [s("path", {
|
|
4018
4023
|
fill: "currentColor",
|
|
4019
4024
|
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"
|
|
4020
4025
|
}, null, -1)]]))])], 8, ra)])]))), 128))])])) : a("", !0),
|
|
4021
|
-
|
|
4026
|
+
Z.value.length ? (w(), i(Q, {
|
|
4022
4027
|
key: 3,
|
|
4023
4028
|
outlined: "",
|
|
4024
4029
|
size: "small",
|
|
4025
4030
|
class: "g-sort-builder-clear",
|
|
4026
|
-
onClick:
|
|
4031
|
+
onClick: Oe
|
|
4027
4032
|
}, {
|
|
4028
4033
|
default: K(() => [...r[7] ||= [c(" Clear sort ", -1)]]),
|
|
4029
4034
|
_: 1
|
|
@@ -4031,10 +4036,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4031
4036
|
], 512)]),
|
|
4032
4037
|
_: 1
|
|
4033
4038
|
})])) : a("", !0),
|
|
4034
|
-
|
|
4035
|
-
trigger: K(({ toggle: e }) => [l(
|
|
4039
|
+
Ye.value ? (w(), o("div", oa, [l(ct, null, {
|
|
4040
|
+
trigger: K(({ toggle: e }) => [l(Q, {
|
|
4036
4041
|
size: "small",
|
|
4037
|
-
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active":
|
|
4042
|
+
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Je.value }]),
|
|
4038
4043
|
"aria-label": "Choose visible columns",
|
|
4039
4044
|
onClick: e
|
|
4040
4045
|
}, {
|
|
@@ -4050,11 +4055,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4050
4055
|
}, [s("div", la, [s("span", {
|
|
4051
4056
|
id: `${R(G)}-column-visibility-heading`,
|
|
4052
4057
|
class: "g-column-visibility-heading"
|
|
4053
|
-
}, " Shown columns ", 8, ua), s("span", da, [l(
|
|
4058
|
+
}, " Shown columns ", 8, ua), s("span", da, [l(Q, {
|
|
4054
4059
|
text: "",
|
|
4055
4060
|
size: "small",
|
|
4056
|
-
class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !
|
|
4057
|
-
onClick:
|
|
4061
|
+
class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Je.value }]),
|
|
4062
|
+
onClick: et
|
|
4058
4063
|
}, {
|
|
4059
4064
|
default: K(() => [...r[11] ||= [c(" Show All ", -1)]]),
|
|
4060
4065
|
_: 1
|
|
@@ -4062,14 +4067,14 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4062
4067
|
key: e.key,
|
|
4063
4068
|
class: "g-column-visibility-option"
|
|
4064
4069
|
}, [s("input", {
|
|
4065
|
-
checked:
|
|
4070
|
+
checked: Qe(e),
|
|
4066
4071
|
type: "checkbox",
|
|
4067
|
-
onChange: (t) =>
|
|
4072
|
+
onChange: (t) => $e(e, t.target.checked)
|
|
4068
4073
|
}, null, 40, pa), s("span", null, P(e.label), 1)]))), 128))])], 8, ca)]),
|
|
4069
4074
|
_: 1
|
|
4070
4075
|
})])) : a("", !0),
|
|
4071
|
-
|
|
4072
|
-
s("div", ha, [R(S) ? (w(), i(
|
|
4076
|
+
Xe.value ? (w(), o("div", ma, [A(n.$slots, "controls")])) : a("", !0),
|
|
4077
|
+
s("div", ha, [R(S) ? (w(), i(Q, {
|
|
4073
4078
|
key: 0,
|
|
4074
4079
|
outlined: "",
|
|
4075
4080
|
size: "small",
|
|
@@ -4089,11 +4094,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4089
4094
|
_: 1
|
|
4090
4095
|
}, 8, ["onClick"])) : a("", !0)])
|
|
4091
4096
|
]),
|
|
4092
|
-
|
|
4097
|
+
tt.value ? (w(), o("div", ga, [l(yi, {
|
|
4093
4098
|
start: t.startIndex,
|
|
4094
4099
|
"page-size": t.pageSize,
|
|
4095
4100
|
"page-sizes": t.pageSizes,
|
|
4096
|
-
total:
|
|
4101
|
+
total: Ze.value,
|
|
4097
4102
|
"onUpdate:start": ee,
|
|
4098
4103
|
"onUpdate:pageSize": W
|
|
4099
4104
|
}, null, 8, [
|
|
@@ -4102,68 +4107,73 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4102
4107
|
"page-sizes",
|
|
4103
4108
|
"total"
|
|
4104
4109
|
])])) : a("", !0),
|
|
4105
|
-
s("div", _a, [s("span", va, P(
|
|
4110
|
+
s("div", _a, [s("span", va, P(Ze.value) + " results", 1), A(n.$slots, "right-controls")])
|
|
4106
4111
|
], 512)) : a("", !0),
|
|
4107
4112
|
s("div", {
|
|
4108
4113
|
ref_key: "tableWrapRef",
|
|
4109
|
-
ref:
|
|
4114
|
+
ref: J,
|
|
4110
4115
|
class: "g-table-table-wrap"
|
|
4111
4116
|
}, [s("table", {
|
|
4112
|
-
id:
|
|
4117
|
+
id: oe,
|
|
4113
4118
|
class: _(["g-table", { "g-table--resizable": t.resizableColumns }]),
|
|
4114
4119
|
ref_key: "tableRef",
|
|
4115
|
-
ref:
|
|
4116
|
-
"aria-
|
|
4117
|
-
"aria-rowcount": Ye.value
|
|
4120
|
+
ref: re,
|
|
4121
|
+
"aria-rowcount": Ze.value
|
|
4118
4122
|
}, [
|
|
4119
|
-
s("
|
|
4123
|
+
s("caption", ba, P([
|
|
4124
|
+
t.label,
|
|
4125
|
+
ye.value,
|
|
4126
|
+
be.value
|
|
4127
|
+
].filter(Boolean).join(", ")), 1),
|
|
4128
|
+
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", xa)) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("col", {
|
|
4120
4129
|
key: e.key,
|
|
4121
4130
|
"data-column-key": String(e.key),
|
|
4122
|
-
style: v(
|
|
4123
|
-
}, null, 12,
|
|
4124
|
-
s("thead",
|
|
4131
|
+
style: v(He(e))
|
|
4132
|
+
}, null, 12, Sa))), 128))]),
|
|
4133
|
+
s("thead", Ca, [s("tr", wa, [t.bulkSelectionEnabled ? (w(), o("th", Ta, [s("input", {
|
|
4125
4134
|
type: "checkbox",
|
|
4126
4135
|
checked: D.value,
|
|
4127
4136
|
indeterminate: j.value,
|
|
4128
4137
|
onChange: N,
|
|
4129
4138
|
"aria-label": D.value ? "Deselect all rows" : "Select all rows",
|
|
4130
4139
|
class: "g-bulk-select-checkbox"
|
|
4131
|
-
}, null, 40,
|
|
4140
|
+
}, null, 40, Ea)])) : a("", !0), (w(!0), o(e, null, k(Ke.value, (e) => (w(), o("th", {
|
|
4132
4141
|
key: e.key,
|
|
4133
4142
|
id: `${R(G)}-th-${String(e.key)}`,
|
|
4134
|
-
"aria-sort":
|
|
4143
|
+
"aria-sort": _e(e.key),
|
|
4135
4144
|
class: _([
|
|
4136
4145
|
"g-th",
|
|
4137
4146
|
{ "g-th--resizable": t.resizableColumns },
|
|
4138
|
-
{ sorted:
|
|
4139
|
-
{ filtered:
|
|
4147
|
+
{ sorted: me(e.key) !== -1 },
|
|
4148
|
+
{ filtered: ot(e) }
|
|
4140
4149
|
]),
|
|
4141
4150
|
scope: "col"
|
|
4142
|
-
}, [s("div",
|
|
4151
|
+
}, [s("div", Oa, [e.sortable ? (w(), o("button", {
|
|
4143
4152
|
key: 0,
|
|
4144
4153
|
type: "button",
|
|
4145
4154
|
class: "g-column-head",
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
trigger: K(({ toggle: t }) => [s("button", {
|
|
4155
|
+
"aria-describedby": `${R(G)}-sort-desc-${String(e.key)}`,
|
|
4156
|
+
onClick: (t) => we(e, t.shiftKey)
|
|
4157
|
+
}, [c(P(e.label) + " ", 1), me(e.key) === -1 ? a("", !0) : (w(), o("span", Aa, [(w(), o("svg", {
|
|
4158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4159
|
+
viewBox: "0 0 640 640",
|
|
4160
|
+
height: "1.5em",
|
|
4161
|
+
style: v({ transform: `rotate(${he(e.key)?.order === 1 ? 0 : 180}deg)` })
|
|
4162
|
+
}, [...r[13] ||= [s("path", {
|
|
4163
|
+
fill: "currentColor",
|
|
4164
|
+
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"
|
|
4165
|
+
}, null, -1)]], 4))]))], 8, ka)) : (w(), o("span", ja, P(e.label), 1)), e.filter ? (w(), i(ct, {
|
|
4166
|
+
key: 2,
|
|
4167
|
+
"aria-labelledby": `${R(G)}-filter-label-${String(e.key)}`
|
|
4168
|
+
}, {
|
|
4169
|
+
trigger: K(({ toggle: t, open: n }) => [s("button", {
|
|
4162
4170
|
onClick: q(t, ["stop"]),
|
|
4163
|
-
"aria-label":
|
|
4164
|
-
|
|
4171
|
+
"aria-label": "Filter",
|
|
4172
|
+
"aria-describedby": `${R(G)}-filter-desc-${String(e.key)}`,
|
|
4173
|
+
"aria-expanded": n,
|
|
4174
|
+
class: _(["g-filter-btn", { "g-active": ot(e) }]),
|
|
4165
4175
|
type: "button"
|
|
4166
|
-
}, [...r[
|
|
4176
|
+
}, [...r[14] ||= [s("svg", {
|
|
4167
4177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4168
4178
|
viewBox: "0 0 640 640",
|
|
4169
4179
|
height: "1.5em",
|
|
@@ -4174,9 +4184,9 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4174
4184
|
})], -1)]], 10, Ma)]),
|
|
4175
4185
|
default: K(() => [e.filter.type === "select" ? (w(), i(Jt, {
|
|
4176
4186
|
key: 0,
|
|
4177
|
-
"model-value":
|
|
4178
|
-
"onUpdate:modelValue": (t) =>
|
|
4179
|
-
options:
|
|
4187
|
+
"model-value": pt(e),
|
|
4188
|
+
"onUpdate:modelValue": (t) => mt(e, t),
|
|
4189
|
+
options: dt(e),
|
|
4180
4190
|
class: "g-filter-select",
|
|
4181
4191
|
label: "Filter select",
|
|
4182
4192
|
searchable: "",
|
|
@@ -4187,7 +4197,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4187
4197
|
"onUpdate:modelValue",
|
|
4188
4198
|
"options",
|
|
4189
4199
|
"search-description"
|
|
4190
|
-
])) : e.filter.type === "search" ? (w(), o("div", Na, [r[
|
|
4200
|
+
])) : e.filter.type === "search" ? (w(), o("div", Na, [r[15] ||= s("span", {
|
|
4191
4201
|
class: "g-filter-search-icon",
|
|
4192
4202
|
"aria-hidden": "true"
|
|
4193
4203
|
}, [s("svg", {
|
|
@@ -4200,15 +4210,15 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4200
4210
|
})])], -1), s("input", {
|
|
4201
4211
|
type: "search",
|
|
4202
4212
|
class: "g-filter-search-input",
|
|
4203
|
-
value:
|
|
4204
|
-
onInput: (t) =>
|
|
4213
|
+
value: it(e),
|
|
4214
|
+
onInput: (t) => at(e, t.target.value),
|
|
4205
4215
|
placeholder: e.filter.placeholder,
|
|
4206
4216
|
"aria-label": `Search ${e.label}`
|
|
4207
4217
|
}, null, 40, Pa)])) : e.filter.type === "toggle" ? (w(), o("div", Fa, [s("div", Ia, [
|
|
4208
4218
|
s("input", {
|
|
4209
4219
|
type: "checkbox",
|
|
4210
|
-
checked:
|
|
4211
|
-
onChange: (t) =>
|
|
4220
|
+
checked: it(e) === !0,
|
|
4221
|
+
onChange: (t) => at(e, t.target.checked),
|
|
4212
4222
|
id: `${R(G)}-filter-${String(e.key)}`,
|
|
4213
4223
|
"aria-describedby": e.filter.description ? `${R(G)}-filter-description-${String(e.key)}` : void 0
|
|
4214
4224
|
}, null, 40, La),
|
|
@@ -4220,9 +4230,9 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4220
4230
|
}, P(e.filter.description), 9, za)) : a("", !0)
|
|
4221
4231
|
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Rr, {
|
|
4222
4232
|
key: 3,
|
|
4223
|
-
"model-value":
|
|
4224
|
-
"onUpdate:modelValue": (t) =>
|
|
4225
|
-
options:
|
|
4233
|
+
"model-value": ht(e),
|
|
4234
|
+
"onUpdate:modelValue": (t) => gt(e, t),
|
|
4235
|
+
options: dt(e),
|
|
4226
4236
|
label: "Include values",
|
|
4227
4237
|
placeholder: e.filter.placeholder,
|
|
4228
4238
|
"search-description": e.filter.searchDescription,
|
|
@@ -4234,49 +4244,49 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4234
4244
|
"placeholder",
|
|
4235
4245
|
"search-description"
|
|
4236
4246
|
])) : e.filter.type === "multi-select" ? (w(), o("div", Ba, [l(Yr, {
|
|
4237
|
-
"model-value":
|
|
4238
|
-
"onUpdate:modelValue": (t) =>
|
|
4239
|
-
options:
|
|
4247
|
+
"model-value": ht(e),
|
|
4248
|
+
"onUpdate:modelValue": (t) => gt(e, t),
|
|
4249
|
+
options: ft(e),
|
|
4240
4250
|
label: "Include values"
|
|
4241
4251
|
}, null, 8, [
|
|
4242
4252
|
"model-value",
|
|
4243
4253
|
"onUpdate:modelValue",
|
|
4244
4254
|
"options"
|
|
4245
|
-
]),
|
|
4255
|
+
]), ot(e) ? (w(), i(Q, {
|
|
4246
4256
|
key: 0,
|
|
4247
4257
|
class: "clear-multiselect-btn",
|
|
4248
4258
|
theme: "accent",
|
|
4249
4259
|
size: "small",
|
|
4250
|
-
onClick: (t) =>
|
|
4260
|
+
onClick: (t) => at(e, [])
|
|
4251
4261
|
}, {
|
|
4252
|
-
default: K(() => [...r[
|
|
4262
|
+
default: K(() => [...r[16] ||= [c(" Clear ", -1)]]),
|
|
4253
4263
|
_: 1
|
|
4254
4264
|
}, 8, ["onClick"])) : a("", !0)])) : a("", !0)]),
|
|
4255
4265
|
_: 2
|
|
4256
|
-
},
|
|
4266
|
+
}, 1032, ["aria-labelledby"])) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
|
|
4257
4267
|
key: 0,
|
|
4258
4268
|
"data-column-key": String(e.key),
|
|
4259
|
-
class: _(["g-column-resize-handle", { "g-column-resize-handle--active":
|
|
4269
|
+
class: _(["g-column-resize-handle", { "g-column-resize-handle--active": X.value?.key === e.key }]),
|
|
4260
4270
|
role: "separator",
|
|
4261
4271
|
tabindex: "0",
|
|
4262
4272
|
"aria-orientation": "vertical",
|
|
4263
|
-
"aria-controls":
|
|
4273
|
+
"aria-controls": oe,
|
|
4264
4274
|
"aria-label": `Resize ${e.label} column`,
|
|
4265
4275
|
"aria-valuemin": 50,
|
|
4266
|
-
"aria-valuemax":
|
|
4267
|
-
"aria-valuenow":
|
|
4268
|
-
"aria-valuetext":
|
|
4276
|
+
"aria-valuemax": Fe(e.key),
|
|
4277
|
+
"aria-valuenow": Ue(e.key),
|
|
4278
|
+
"aria-valuetext": We(e.key),
|
|
4269
4279
|
onClick: r[0] ||= q(() => {}, ["stop", "prevent"]),
|
|
4270
|
-
onKeydown: (t) =>
|
|
4271
|
-
onPointerdown: (t) =>
|
|
4272
|
-
}, null, 42, Va)) : a("", !0)], 10,
|
|
4280
|
+
onKeydown: (t) => Ve(t, e.key),
|
|
4281
|
+
onPointerdown: (t) => Be(t, e.key)
|
|
4282
|
+
}, null, 42, Va)) : a("", !0)], 10, Da))), 128))])]),
|
|
4273
4283
|
t.data.length === 0 ? (w(), o("tbody", Ha, [s("tr", Ua, [s("td", {
|
|
4274
4284
|
class: "g-table-empty",
|
|
4275
|
-
colspan:
|
|
4285
|
+
colspan: Ke.value.length + +!!t.bulkSelectionEnabled
|
|
4276
4286
|
}, [A(n.$slots, "empty")], 8, Wa)])])) : (w(), i(fr, {
|
|
4277
4287
|
key: 1,
|
|
4278
4288
|
data: t.data,
|
|
4279
|
-
columns:
|
|
4289
|
+
columns: Ke.value,
|
|
4280
4290
|
"group-by": t.groupBy,
|
|
4281
4291
|
"group-render": t.groupRender,
|
|
4282
4292
|
"row-clickable": t.rowClickable,
|
|
@@ -4302,8 +4312,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4302
4312
|
"table-id",
|
|
4303
4313
|
"change-tracker"
|
|
4304
4314
|
]))
|
|
4305
|
-
], 10, ya)
|
|
4306
|
-
|
|
4315
|
+
], 10, ya), s("div", Ga, [(w(!0), o(e, null, k(Ke.value, (t) => (w(), o(e, { key: t.key }, [t.sortable ? (w(), o("span", {
|
|
4316
|
+
key: 0,
|
|
4317
|
+
id: `${R(G)}-sort-desc-${String(t.key)}`
|
|
4318
|
+
}, P(ve(t.key)), 9, Ka)) : a("", !0), t.filter ? (w(), o(e, { key: 1 }, [s("span", { id: `${R(G)}-filter-desc-${String(t.key)}` }, P(t.label) + " column" + P(ot(t) ? ", filtered" : ""), 9, qa), s("span", { id: `${R(G)}-filter-label-${String(t.key)}` }, "Filter " + P(t.label) + " column", 9, Ja)], 64)) : a("", !0)], 64))), 128))])], 512),
|
|
4319
|
+
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Ya, [s("span", Xa, P(m.value.length) + " row" + P(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Za, [(w(!0), o(e, null, k(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
|
|
4307
4320
|
theme: e.theme || "accent",
|
|
4308
4321
|
onClick: (t) => z(e.id),
|
|
4309
4322
|
size: "small"
|
|
@@ -4313,7 +4326,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4313
4326
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
4314
4327
|
])], 4));
|
|
4315
4328
|
}
|
|
4316
|
-
}),
|
|
4329
|
+
}), $a = ["id"], eo = { class: "g-modal-inner" }, to = { class: "g-modal-header" }, no = ["id"], ro = ["id"], io = /* @__PURE__ */ u({
|
|
4317
4330
|
__name: "GModal",
|
|
4318
4331
|
props: {
|
|
4319
4332
|
label: {},
|
|
@@ -4357,12 +4370,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4357
4370
|
ref_key: "dialog",
|
|
4358
4371
|
ref: f,
|
|
4359
4372
|
style: { zIndex: R(b) }
|
|
4360
|
-
}), [s("div",
|
|
4373
|
+
}), [s("div", eo, [s("div", to, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
|
|
4361
4374
|
key: 0,
|
|
4362
4375
|
id: "modal-label-" + R(m),
|
|
4363
4376
|
class: "g-modal-label",
|
|
4364
4377
|
tabindex: "-1"
|
|
4365
|
-
}, P(e.label), 9,
|
|
4378
|
+
}, P(e.label), 9, no)), s("button", {
|
|
4366
4379
|
class: "g-modal-close",
|
|
4367
4380
|
onClick: T,
|
|
4368
4381
|
"aria-label": "Close"
|
|
@@ -4377,36 +4390,36 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4377
4390
|
})], -1)]])]), s("div", {
|
|
4378
4391
|
id: "modal-description-" + R(m),
|
|
4379
4392
|
class: "g-modal-content"
|
|
4380
|
-
}, [A(r.$slots, "default")], 8,
|
|
4393
|
+
}, [A(r.$slots, "default")], 8, ro)])], 16, $a)]),
|
|
4381
4394
|
_: 3
|
|
4382
4395
|
})]));
|
|
4383
4396
|
}
|
|
4384
|
-
}),
|
|
4397
|
+
}), ao = /* @__PURE__ */ u({
|
|
4385
4398
|
__name: "GDetailList",
|
|
4386
4399
|
props: { variant: { default: "grid" } },
|
|
4387
4400
|
setup(e) {
|
|
4388
4401
|
let t = e;
|
|
4389
4402
|
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
|
|
4390
4403
|
}
|
|
4391
|
-
}),
|
|
4404
|
+
}), oo = { class: "g-detail-list-item" }, so = { class: "g-detail-list-item__label" }, co = { class: "g-detail-list-item__value" }, lo = /* @__PURE__ */ u({
|
|
4392
4405
|
__name: "GDetailListItem",
|
|
4393
4406
|
props: { label: {} },
|
|
4394
4407
|
setup(e) {
|
|
4395
|
-
return (t, n) => (w(), o("div",
|
|
4408
|
+
return (t, n) => (w(), o("div", oo, [s("dt", so, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", co, [A(t.$slots, "default")])]));
|
|
4396
4409
|
}
|
|
4397
|
-
}),
|
|
4410
|
+
}), uo = {
|
|
4398
4411
|
key: 0,
|
|
4399
4412
|
class: "g-scroll-lock-overlay"
|
|
4400
|
-
},
|
|
4413
|
+
}, fo = /* @__PURE__ */ u({
|
|
4401
4414
|
__name: "GOverlay",
|
|
4402
4415
|
setup(e) {
|
|
4403
4416
|
let { hasScrollLock: t } = Je();
|
|
4404
4417
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
4405
|
-
default: K(() => [R(t) ? (w(), o("div",
|
|
4418
|
+
default: K(() => [R(t) ? (w(), o("div", uo)) : a("", !0)]),
|
|
4406
4419
|
_: 1
|
|
4407
4420
|
}));
|
|
4408
4421
|
}
|
|
4409
|
-
}),
|
|
4422
|
+
}), po = { class: "popover-content" }, mo = { class: "year-dropdown" }, ho = { class: "month-selector" }, go = /* @__PURE__ */ u({
|
|
4410
4423
|
__name: "GTermSelectorControl",
|
|
4411
4424
|
props: /*@__PURE__*/ m({
|
|
4412
4425
|
termYears: { default: () => ["2026"] },
|
|
@@ -4427,7 +4440,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4427
4440
|
emits: ["update:modelValue"],
|
|
4428
4441
|
setup(e) {
|
|
4429
4442
|
let t = V(e, "modelValue");
|
|
4430
|
-
return (n, r) => (w(), o("div",
|
|
4443
|
+
return (n, r) => (w(), o("div", po, [s("div", mo, [l(Jt, {
|
|
4431
4444
|
modelValue: t.value.year,
|
|
4432
4445
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
4433
4446
|
options: e.termYears,
|
|
@@ -4436,7 +4449,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4436
4449
|
"modelValue",
|
|
4437
4450
|
"options",
|
|
4438
4451
|
"label"
|
|
4439
|
-
])]), s("div",
|
|
4452
|
+
])]), s("div", ho, [l(Ct, {
|
|
4440
4453
|
modelValue: t.value.name,
|
|
4441
4454
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
4442
4455
|
options: e.termNames,
|
|
@@ -4448,7 +4461,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4448
4461
|
"label"
|
|
4449
4462
|
])])]));
|
|
4450
4463
|
}
|
|
4451
|
-
}),
|
|
4464
|
+
}), _o = { class: "g-term-selector" }, vo = { class: "g-term-label" }, yo = /* @__PURE__ */ u({
|
|
4452
4465
|
__name: "GTermSelector",
|
|
4453
4466
|
props: /*@__PURE__*/ m({
|
|
4454
4467
|
heading: { default: "Period Selection" },
|
|
@@ -4470,8 +4483,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4470
4483
|
emits: ["update:modelValue"],
|
|
4471
4484
|
setup(e) {
|
|
4472
4485
|
let t = V(e, "modelValue"), n = `${B()}-heading`;
|
|
4473
|
-
return (r, i) => (w(), o("div",
|
|
4474
|
-
trigger: K(({ toggle: e, open: n, popoverId: r }) => [l(
|
|
4486
|
+
return (r, i) => (w(), o("div", _o, [l(ct, { "aria-labelledby": n }, {
|
|
4487
|
+
trigger: K(({ toggle: e, open: n, popoverId: r }) => [l(Q, {
|
|
4475
4488
|
class: "g-term-selector-button",
|
|
4476
4489
|
theme: "none",
|
|
4477
4490
|
outlined: "",
|
|
@@ -4486,7 +4499,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4486
4499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4487
4500
|
viewBox: "0 0 640 640"
|
|
4488
4501
|
}, [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),
|
|
4489
|
-
s("span",
|
|
4502
|
+
s("span", vo, P(t.value?.name) + " " + P(t.value?.year), 1),
|
|
4490
4503
|
i[2] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
4491
4504
|
role: "none",
|
|
4492
4505
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4503,18 +4516,18 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4503
4516
|
id: n,
|
|
4504
4517
|
class: "g-popover-title",
|
|
4505
4518
|
tabindex: "-1"
|
|
4506
|
-
}, P(e.heading), 1), l(
|
|
4519
|
+
}, P(e.heading), 1), l(go, h(r.$props, {
|
|
4507
4520
|
modelValue: t.value,
|
|
4508
4521
|
"onUpdate:modelValue": i[0] ||= (e) => t.value = e
|
|
4509
4522
|
}), null, 16, ["modelValue"])]),
|
|
4510
4523
|
_: 1
|
|
4511
4524
|
})]));
|
|
4512
4525
|
}
|
|
4513
|
-
}),
|
|
4526
|
+
}), bo = { class: "g-user-menu" }, xo = [
|
|
4514
4527
|
"aria-label",
|
|
4515
4528
|
"aria-expanded",
|
|
4516
4529
|
"onClick"
|
|
4517
|
-
],
|
|
4530
|
+
], So = { class: "g-user-menu__popover" }, Co = { class: "g-user-menu__list" }, wo = /* @__PURE__ */ u({
|
|
4518
4531
|
__name: "GUserMenu",
|
|
4519
4532
|
props: {
|
|
4520
4533
|
initials: {},
|
|
@@ -4529,7 +4542,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4529
4542
|
e.target?.closest("a") && (r.value = !1);
|
|
4530
4543
|
}
|
|
4531
4544
|
let u = H();
|
|
4532
|
-
return (d, f) => (w(), o("div",
|
|
4545
|
+
return (d, f) => (w(), o("div", bo, [l(ct, {
|
|
4533
4546
|
modelValue: r.value,
|
|
4534
4547
|
"onUpdate:modelValue": f[0] ||= (e) => r.value = e,
|
|
4535
4548
|
minimal: ""
|
|
@@ -4541,8 +4554,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4541
4554
|
"aria-expanded": r.value,
|
|
4542
4555
|
"aria-haspopup": "menu",
|
|
4543
4556
|
onClick: e
|
|
4544
|
-
}, P(t.initials), 13,
|
|
4545
|
-
default: K(() => [s("div",
|
|
4557
|
+
}, P(t.initials), 13, xo)]),
|
|
4558
|
+
default: K(() => [s("div", So, [s("h2", {
|
|
4546
4559
|
id: n,
|
|
4547
4560
|
ref_key: "emailHeading",
|
|
4548
4561
|
ref: a,
|
|
@@ -4552,11 +4565,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4552
4565
|
class: "g-user-menu__nav",
|
|
4553
4566
|
"aria-labelledby": n,
|
|
4554
4567
|
onClick: c
|
|
4555
|
-
}, [s("ul",
|
|
4568
|
+
}, [s("ul", Co, [(w(!0), o(e, null, k(u.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(j(e)))]))), 128))])])])]),
|
|
4556
4569
|
_: 1
|
|
4557
4570
|
}, 8, ["modelValue"])]));
|
|
4558
4571
|
}
|
|
4559
|
-
}),
|
|
4572
|
+
}), To = /* @__PURE__ */ u({
|
|
4560
4573
|
__name: "GCurrencyInput",
|
|
4561
4574
|
props: /*@__PURE__*/ m({
|
|
4562
4575
|
label: { default: void 0 },
|
|
@@ -4607,7 +4620,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4607
4620
|
"form-key"
|
|
4608
4621
|
]));
|
|
4609
4622
|
}
|
|
4610
|
-
}),
|
|
4623
|
+
}), Eo = /* @__PURE__ */ u({
|
|
4611
4624
|
__name: "GEmailInput",
|
|
4612
4625
|
props: /*@__PURE__*/ m({
|
|
4613
4626
|
label: { default: void 0 },
|
|
@@ -4652,13 +4665,13 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4652
4665
|
"instructions"
|
|
4653
4666
|
]));
|
|
4654
4667
|
}
|
|
4655
|
-
}),
|
|
4668
|
+
}), Do = ["for"], Oo = {
|
|
4656
4669
|
key: 0,
|
|
4657
4670
|
class: "g-file-input-required"
|
|
4658
|
-
},
|
|
4671
|
+
}, ko = {
|
|
4659
4672
|
key: 0,
|
|
4660
4673
|
class: "g-file-input-box-header"
|
|
4661
|
-
},
|
|
4674
|
+
}, Ao = ["id"], jo = [
|
|
4662
4675
|
"id",
|
|
4663
4676
|
"disabled",
|
|
4664
4677
|
"required",
|
|
@@ -4667,11 +4680,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4667
4680
|
"aria-invalid",
|
|
4668
4681
|
"aria-describedby",
|
|
4669
4682
|
"aria-errormessage"
|
|
4670
|
-
],
|
|
4683
|
+
], Mo = {
|
|
4671
4684
|
key: 1,
|
|
4672
4685
|
class: "g-file-input-pills",
|
|
4673
4686
|
"aria-label": "Selected files"
|
|
4674
|
-
},
|
|
4687
|
+
}, No = /* @__PURE__ */ u({
|
|
4675
4688
|
inheritAttrs: !1,
|
|
4676
4689
|
__name: "GFileInput",
|
|
4677
4690
|
props: /*@__PURE__*/ m({
|
|
@@ -4701,7 +4714,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4701
4714
|
}),
|
|
4702
4715
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
4703
4716
|
setup(t, { emit: n }) {
|
|
4704
|
-
let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } =
|
|
4717
|
+
let i = t, u = V(t, "modelValue"), d = B(), { displayErrors: f } = $({
|
|
4705
4718
|
name: i.name,
|
|
4706
4719
|
value: u,
|
|
4707
4720
|
errors: I(i, "errors"),
|
|
@@ -4728,12 +4741,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4728
4741
|
key: 0,
|
|
4729
4742
|
for: R(d),
|
|
4730
4743
|
class: "g-file-input-label"
|
|
4731
|
-
}, [c(P(t.label) + " ", 1), t.required ? (w(), o("span",
|
|
4744
|
+
}, [c(P(t.label) + " ", 1), t.required ? (w(), o("span", Oo, "*")) : a("", !0)], 8, Do)) : a("", !0),
|
|
4732
4745
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
4733
|
-
t.instructions ? (w(), o("div",
|
|
4746
|
+
t.instructions ? (w(), o("div", ko, [s("span", {
|
|
4734
4747
|
id: "instructions-" + R(d),
|
|
4735
4748
|
class: "g-file-input-instructions"
|
|
4736
|
-
}, P(t.instructions), 9,
|
|
4749
|
+
}, P(t.instructions), 9, Ao)])) : a("", !0),
|
|
4737
4750
|
s("input", {
|
|
4738
4751
|
id: R(d),
|
|
4739
4752
|
type: "file",
|
|
@@ -4746,8 +4759,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4746
4759
|
"aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
|
|
4747
4760
|
"aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
|
|
4748
4761
|
onChange: g
|
|
4749
|
-
}, null, 40,
|
|
4750
|
-
t.multiple && b.value.length > 0 ? (w(), o("ul",
|
|
4762
|
+
}, null, 40, jo),
|
|
4763
|
+
t.multiple && b.value.length > 0 ? (w(), o("ul", Mo, [(w(!0), o(e, null, k(b.value, (e) => (w(), o("li", {
|
|
4751
4764
|
key: e,
|
|
4752
4765
|
class: "g-file-input-pill"
|
|
4753
4766
|
}, [r[0] ||= s("svg", {
|
|
@@ -4763,7 +4776,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4763
4776
|
}, null, 8, ["errors", "id"])
|
|
4764
4777
|
], 2));
|
|
4765
4778
|
}
|
|
4766
|
-
}),
|
|
4779
|
+
}), Po = /* @__PURE__ */ u({
|
|
4767
4780
|
__name: "GDateInput",
|
|
4768
4781
|
props: /*@__PURE__*/ m({
|
|
4769
4782
|
label: { default: void 0 },
|
|
@@ -4811,21 +4824,21 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4811
4824
|
"form-key"
|
|
4812
4825
|
]));
|
|
4813
4826
|
}
|
|
4814
|
-
}),
|
|
4827
|
+
}), Fo = { class: "g-date-range-input" }, Io = {
|
|
4815
4828
|
key: 0,
|
|
4816
4829
|
class: "g-date-range-input__label"
|
|
4817
|
-
},
|
|
4830
|
+
}, Lo = {
|
|
4818
4831
|
key: 0,
|
|
4819
4832
|
class: "g-date-range-input__required",
|
|
4820
4833
|
"aria-hidden": "true"
|
|
4821
|
-
},
|
|
4834
|
+
}, Ro = {
|
|
4822
4835
|
key: 1,
|
|
4823
4836
|
class: "g-date-range-input__instructions"
|
|
4824
|
-
},
|
|
4837
|
+
}, zo = { class: "g-date-range-input__fields" }, Bo = {
|
|
4825
4838
|
key: 2,
|
|
4826
4839
|
class: "g-date-range-input__errors",
|
|
4827
4840
|
role: "alert"
|
|
4828
|
-
},
|
|
4841
|
+
}, Vo = /* @__PURE__ */ u({
|
|
4829
4842
|
__name: "GDateRangeInput",
|
|
4830
4843
|
props: /*@__PURE__*/ m({
|
|
4831
4844
|
label: { default: void 0 },
|
|
@@ -4852,7 +4865,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4852
4865
|
}),
|
|
4853
4866
|
emits: ["update:modelValue"],
|
|
4854
4867
|
setup(t) {
|
|
4855
|
-
let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } =
|
|
4868
|
+
let n = t, r = V(t, "modelValue"), i = O(r.value.start || null), u = O(r.value.end || null), { displayErrors: d } = $({
|
|
4856
4869
|
name: n.name,
|
|
4857
4870
|
value: r,
|
|
4858
4871
|
errors: I(n, "errors"),
|
|
@@ -4865,10 +4878,10 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4865
4878
|
};
|
|
4866
4879
|
}), W(r, (e) => {
|
|
4867
4880
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4868
|
-
}, { deep: !0 }), (t, r) => (w(), o("div",
|
|
4869
|
-
n.label ? (w(), o("div",
|
|
4870
|
-
n.instructions ? (w(), o("div",
|
|
4871
|
-
s("div",
|
|
4881
|
+
}, { deep: !0 }), (t, r) => (w(), o("div", Fo, [
|
|
4882
|
+
n.label ? (w(), o("div", Io, [c(P(n.label), 1), n.required ? (w(), o("span", Lo, " *")) : a("", !0)])) : a("", !0),
|
|
4883
|
+
n.instructions ? (w(), o("div", Ro, P(n.instructions), 1)) : a("", !0),
|
|
4884
|
+
s("div", zo, [l(Po, {
|
|
4872
4885
|
modelValue: i.value,
|
|
4873
4886
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
4874
4887
|
label: n.startLabel,
|
|
@@ -4880,7 +4893,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4880
4893
|
"label",
|
|
4881
4894
|
"disabled",
|
|
4882
4895
|
"required"
|
|
4883
|
-
]), l(
|
|
4896
|
+
]), l(Po, {
|
|
4884
4897
|
modelValue: u.value,
|
|
4885
4898
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
4886
4899
|
label: n.endLabel,
|
|
@@ -4893,13 +4906,13 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4893
4906
|
"disabled",
|
|
4894
4907
|
"required"
|
|
4895
4908
|
])]),
|
|
4896
|
-
R(d).length > 0 ? (w(), o("div",
|
|
4909
|
+
R(d).length > 0 ? (w(), o("div", Bo, [(w(!0), o(e, null, k(R(d), (e, t) => (w(), o("div", {
|
|
4897
4910
|
key: t,
|
|
4898
4911
|
class: "g-date-range-input__error"
|
|
4899
4912
|
}, P(e), 1))), 128))])) : a("", !0)
|
|
4900
4913
|
]));
|
|
4901
4914
|
}
|
|
4902
|
-
}),
|
|
4915
|
+
}), Ho = ["action", "method"], Uo = /* @__PURE__ */ u({
|
|
4903
4916
|
__name: "GForm",
|
|
4904
4917
|
props: /*@__PURE__*/ m({
|
|
4905
4918
|
action: { default: void 0 },
|
|
@@ -4911,7 +4924,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4911
4924
|
}),
|
|
4912
4925
|
emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
|
|
4913
4926
|
setup(e, { emit: t }) {
|
|
4914
|
-
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (
|
|
4927
|
+
let n = e, r = V(e, "modelValue"), i = t, a = p("form", null), s = a ?? (fe() ? Ae(n.formKey) : Oe());
|
|
4915
4928
|
a || T("form", s), W(() => s.values.value, (e) => {
|
|
4916
4929
|
r.value = { ...e };
|
|
4917
4930
|
}, { deep: !0 }), W(() => r.value, (e) => {
|
|
@@ -4939,9 +4952,9 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4939
4952
|
hasErrors: R(s).hasErrors.value,
|
|
4940
4953
|
values: R(s).values.value,
|
|
4941
4954
|
errors: R(s).errors.value
|
|
4942
|
-
})], 40,
|
|
4955
|
+
})], 40, Ho));
|
|
4943
4956
|
}
|
|
4944
|
-
}),
|
|
4957
|
+
}), Wo = /* @__PURE__ */ u({
|
|
4945
4958
|
__name: "GSubmitButton",
|
|
4946
4959
|
props: {
|
|
4947
4960
|
disabled: {
|
|
@@ -4953,8 +4966,8 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4953
4966
|
formKey: { default: "default" }
|
|
4954
4967
|
},
|
|
4955
4968
|
setup(e) {
|
|
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) ?? (
|
|
4957
|
-
return (e, n) => (w(), i(
|
|
4969
|
+
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) ?? (fe() ? Ae(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
|
|
4970
|
+
return (e, n) => (w(), i(Q, {
|
|
4958
4971
|
type: "submit",
|
|
4959
4972
|
disabled: u.value,
|
|
4960
4973
|
variant: t.variant,
|
|
@@ -4964,11 +4977,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4964
4977
|
_: 3
|
|
4965
4978
|
}, 8, ["disabled", "variant"]));
|
|
4966
4979
|
}
|
|
4967
|
-
}),
|
|
4980
|
+
}), Go = ["for"], Ko = {
|
|
4968
4981
|
key: 0,
|
|
4969
4982
|
class: "g-textarea-required",
|
|
4970
4983
|
"aria-hidden": "true"
|
|
4971
|
-
},
|
|
4984
|
+
}, qo = ["id"], Jo = [
|
|
4972
4985
|
"value",
|
|
4973
4986
|
"placeholder",
|
|
4974
4987
|
"disabled",
|
|
@@ -4977,11 +4990,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
4977
4990
|
"rows",
|
|
4978
4991
|
"maxlength",
|
|
4979
4992
|
"aria-invalid"
|
|
4980
|
-
],
|
|
4993
|
+
], Yo = {
|
|
4981
4994
|
key: 2,
|
|
4982
4995
|
class: "g-textarea-char-count",
|
|
4983
4996
|
"aria-live": "polite"
|
|
4984
|
-
},
|
|
4997
|
+
}, Xo = /* @__PURE__ */ u({
|
|
4985
4998
|
inheritAttrs: !1,
|
|
4986
4999
|
__name: "GTextarea",
|
|
4987
5000
|
props: /*@__PURE__*/ m({
|
|
@@ -5015,7 +5028,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5015
5028
|
}),
|
|
5016
5029
|
emits: /*@__PURE__*/ m(["change"], ["update:modelValue"]),
|
|
5017
5030
|
setup(e, { emit: t }) {
|
|
5018
|
-
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
5031
|
+
let n = e, i = V(e, "modelValue"), u = B(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = pe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
|
|
5019
5032
|
name: n.name,
|
|
5020
5033
|
value: i,
|
|
5021
5034
|
errors: I(n, "errors"),
|
|
@@ -5055,12 +5068,12 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5055
5068
|
key: 0,
|
|
5056
5069
|
for: m.value,
|
|
5057
5070
|
class: "g-textarea-label"
|
|
5058
|
-
}, [c(P(n.label), 1), n.required ? (w(), o("span",
|
|
5071
|
+
}, [c(P(n.label), 1), n.required ? (w(), o("span", Ko, " *")) : a("", !0)], 8, Go)) : a("", !0),
|
|
5059
5072
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
5060
5073
|
key: 1,
|
|
5061
5074
|
id: "instructions-" + R(u),
|
|
5062
5075
|
class: "g-textarea-instructions"
|
|
5063
|
-
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8,
|
|
5076
|
+
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, qo)) : a("", !0),
|
|
5064
5077
|
s("textarea", h({
|
|
5065
5078
|
ref: "textareaEl",
|
|
5066
5079
|
value: i.value ?? "",
|
|
@@ -5081,15 +5094,15 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5081
5094
|
onInput: T,
|
|
5082
5095
|
onBlur: E,
|
|
5083
5096
|
onPaste: D
|
|
5084
|
-
}), null, 16,
|
|
5085
|
-
n.maxlength === void 0 ? a("", !0) : (w(), o("div",
|
|
5097
|
+
}), null, 16, Jo),
|
|
5098
|
+
n.maxlength === void 0 ? a("", !0) : (w(), o("div", Yo, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
|
|
5086
5099
|
l(Me, {
|
|
5087
5100
|
errors: R(v),
|
|
5088
5101
|
id: "error-message-" + R(u)
|
|
5089
5102
|
}, null, 8, ["errors", "id"])
|
|
5090
5103
|
], 2));
|
|
5091
5104
|
}
|
|
5092
|
-
}),
|
|
5105
|
+
}), Zo = { class: "g-toggle-wrapper" }, Qo = ["for"], $o = [
|
|
5093
5106
|
"id",
|
|
5094
5107
|
"checked",
|
|
5095
5108
|
"disabled",
|
|
@@ -5097,7 +5110,7 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5097
5110
|
"aria-describedby",
|
|
5098
5111
|
"aria-invalid",
|
|
5099
5112
|
"aria-errormessage"
|
|
5100
|
-
],
|
|
5113
|
+
], es = ["id"], ts = /* @__PURE__ */ u({
|
|
5101
5114
|
__name: "GToggle",
|
|
5102
5115
|
props: /*@__PURE__*/ m({
|
|
5103
5116
|
label: {},
|
|
@@ -5132,11 +5145,11 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5132
5145
|
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()));
|
|
5133
5146
|
}
|
|
5134
5147
|
let p = B(), m = B();
|
|
5135
|
-
return (t, n) => (w(), o("div",
|
|
5148
|
+
return (t, n) => (w(), o("div", Zo, [s("div", { class: _(["g-toggle-control", { "g-external-label": e.externalLabel }]) }, [e.externalLabel ? a("", !0) : (w(), o("label", {
|
|
5136
5149
|
key: 0,
|
|
5137
5150
|
class: "g-label",
|
|
5138
5151
|
for: R(m)
|
|
5139
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
5152
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, Qo)), 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", {
|
|
5140
5153
|
class: _(["g-toggle-thumb", r.value ? "g-right" : "g-left"]),
|
|
5141
5154
|
"aria-hidden": "true"
|
|
5142
5155
|
}, null, 2), s("input", {
|
|
@@ -5150,34 +5163,34 @@ var zi = { class: "g-table-inner-wrap" }, Bi = { class: "g-table-control-actions
|
|
|
5150
5163
|
"aria-errormessage": e.error ? R(p) + "-error" : void 0,
|
|
5151
5164
|
onChange: d,
|
|
5152
5165
|
onKeydown: f
|
|
5153
|
-
}, null, 40,
|
|
5166
|
+
}, null, 40, $o)], 2)], 2)], 2), e.error ? (w(), o("div", {
|
|
5154
5167
|
key: 0,
|
|
5155
5168
|
id: `${R(p)}-error`,
|
|
5156
5169
|
class: "g-form-error",
|
|
5157
5170
|
role: "alert",
|
|
5158
5171
|
"aria-atomic": "true"
|
|
5159
|
-
}, P(e.error), 9,
|
|
5172
|
+
}, P(e.error), 9, es)) : a("", !0)]));
|
|
5160
5173
|
}
|
|
5161
|
-
}),
|
|
5162
|
-
function
|
|
5174
|
+
}), ns = "g-route-announcer";
|
|
5175
|
+
function rs(e) {
|
|
5163
5176
|
return document.getElementById(e) ?? document.querySelector("main");
|
|
5164
5177
|
}
|
|
5165
|
-
function
|
|
5178
|
+
function is(e = "main-content", t = !0) {
|
|
5166
5179
|
if (typeof document > "u") return !1;
|
|
5167
|
-
let n =
|
|
5180
|
+
let n = rs(e);
|
|
5168
5181
|
if (!n) return !1;
|
|
5169
5182
|
let r = t ? n.querySelector("h1") : null;
|
|
5170
5183
|
for (let e of [r, n]) if (e && (e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1"), e.focus({ preventScroll: t }), document.activeElement === e)) return !0;
|
|
5171
5184
|
return !1;
|
|
5172
5185
|
}
|
|
5173
|
-
function
|
|
5174
|
-
let e = document.getElementById(
|
|
5186
|
+
function as() {
|
|
5187
|
+
let e = document.getElementById(ns);
|
|
5175
5188
|
if (e) return {
|
|
5176
5189
|
el: e,
|
|
5177
5190
|
created: !1
|
|
5178
5191
|
};
|
|
5179
5192
|
let t = document.createElement("div");
|
|
5180
|
-
return t.id =
|
|
5193
|
+
return t.id = ns, t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), Object.assign(t.style, {
|
|
5181
5194
|
position: "absolute",
|
|
5182
5195
|
width: "1px",
|
|
5183
5196
|
height: "1px",
|
|
@@ -5192,10 +5205,10 @@ function ts() {
|
|
|
5192
5205
|
created: !0
|
|
5193
5206
|
};
|
|
5194
5207
|
}
|
|
5195
|
-
function
|
|
5208
|
+
function os() {
|
|
5196
5209
|
return new Promise((e) => requestAnimationFrame(() => e()));
|
|
5197
5210
|
}
|
|
5198
|
-
function
|
|
5211
|
+
function ss(e, t = {}) {
|
|
5199
5212
|
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;
|
|
5200
5213
|
if (typeof window > "u") return {
|
|
5201
5214
|
message: D(n),
|
|
@@ -5204,7 +5217,7 @@ function rs(e, t = {}) {
|
|
|
5204
5217
|
};
|
|
5205
5218
|
let c = null, l, u = 0;
|
|
5206
5219
|
function d(e) {
|
|
5207
|
-
n.value = e, c ??=
|
|
5220
|
+
n.value = e, c ??= as();
|
|
5208
5221
|
let t = c.el;
|
|
5209
5222
|
t.textContent = "", clearTimeout(l), l = setTimeout(() => {
|
|
5210
5223
|
t.textContent = e;
|
|
@@ -5213,9 +5226,9 @@ function rs(e, t = {}) {
|
|
|
5213
5226
|
let p = e.afterEach(async (e, t, n) => {
|
|
5214
5227
|
if (n || !t.matched?.length || !i(e, t)) return;
|
|
5215
5228
|
let c = ++u, l = document.activeElement;
|
|
5216
|
-
if (await g(), await
|
|
5217
|
-
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l &&
|
|
5218
|
-
f && !e.hash && !m &&
|
|
5229
|
+
if (await g(), await os(), o && (await o(e, t), await g(), await os()), c !== u) return;
|
|
5230
|
+
let f = typeof a == "function" ? a(e, t) : a, p = document.activeElement, m = !!p && p !== l && !!rs(r)?.contains(p);
|
|
5231
|
+
f && !e.hash && !m && is(r);
|
|
5219
5232
|
let h = s(e, document.title);
|
|
5220
5233
|
h && d(h);
|
|
5221
5234
|
});
|
|
@@ -5230,7 +5243,7 @@ function rs(e, t = {}) {
|
|
|
5230
5243
|
}
|
|
5231
5244
|
//#endregion
|
|
5232
5245
|
//#region src/components/GSkipLink.vue?vue&type=script&setup=true&lang.ts
|
|
5233
|
-
var
|
|
5246
|
+
var cs = ["href"], ls = /*@__PURE__*/ u({
|
|
5234
5247
|
__name: "GSkipLink",
|
|
5235
5248
|
props: {
|
|
5236
5249
|
target: { default: "main-content" },
|
|
@@ -5239,19 +5252,19 @@ var is = ["href"], as = /*@__PURE__*/ u({
|
|
|
5239
5252
|
setup(e) {
|
|
5240
5253
|
let t = e;
|
|
5241
5254
|
function n(e) {
|
|
5242
|
-
|
|
5255
|
+
is(t.target, !1) && e.preventDefault();
|
|
5243
5256
|
}
|
|
5244
5257
|
return (e, r) => (w(), o("a", {
|
|
5245
5258
|
class: "g-skip-link",
|
|
5246
5259
|
href: `#${t.target}`,
|
|
5247
5260
|
onClick: n
|
|
5248
|
-
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8,
|
|
5261
|
+
}, [A(e.$slots, "default", {}, () => [c(P(t.label), 1)], !0)], 8, cs));
|
|
5249
5262
|
}
|
|
5250
|
-
}),
|
|
5263
|
+
}), us = (e, t) => {
|
|
5251
5264
|
let n = e.__vccOpts || e;
|
|
5252
5265
|
for (let [e, r] of t) n[e] = r;
|
|
5253
5266
|
return n;
|
|
5254
|
-
},
|
|
5267
|
+
}, ds = /*#__PURE__*/ us(ls, [["__scopeId", "data-v-1d350630"]]), fs = ["id"], ps = /*#__PURE__*/ us(/* @__PURE__ */ u({
|
|
5255
5268
|
__name: "GMain",
|
|
5256
5269
|
props: { id: { default: "main-content" } },
|
|
5257
5270
|
setup(e) {
|
|
@@ -5260,30 +5273,30 @@ var is = ["href"], as = /*@__PURE__*/ u({
|
|
|
5260
5273
|
id: t.id,
|
|
5261
5274
|
class: "g-main",
|
|
5262
5275
|
tabindex: "-1"
|
|
5263
|
-
}, [A(e.$slots, "default", {}, void 0, !0)], 8,
|
|
5276
|
+
}, [A(e.$slots, "default", {}, void 0, !0)], 8, fs));
|
|
5264
5277
|
}
|
|
5265
5278
|
}), [["__scopeId", "data-v-84dc2f3f"]]);
|
|
5266
5279
|
//#endregion
|
|
5267
5280
|
//#region src/compose/useActiveLink.ts
|
|
5268
|
-
function
|
|
5281
|
+
function ms(e, t, n) {
|
|
5269
5282
|
let r = [
|
|
5270
5283
|
0,
|
|
5271
5284
|
.25,
|
|
5272
5285
|
.5,
|
|
5273
5286
|
.75,
|
|
5274
5287
|
1
|
|
5275
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(
|
|
5276
|
-
let t = Array.from(
|
|
5288
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = O(Array.from(J(e)?.children || [])), s = () => {
|
|
5289
|
+
let t = Array.from(J(e)?.children || []), n = new Set(t);
|
|
5277
5290
|
for (let e of a.keys()) n.has(e) || a.delete(e);
|
|
5278
5291
|
o.value = t;
|
|
5279
5292
|
};
|
|
5280
|
-
W(() =>
|
|
5293
|
+
W(() => J(e), () => {
|
|
5281
5294
|
s();
|
|
5282
5295
|
}, {
|
|
5283
5296
|
immediate: !0,
|
|
5284
5297
|
flush: "post"
|
|
5285
|
-
}),
|
|
5286
|
-
let { stop: c } =
|
|
5298
|
+
}), Z(e, s, { childList: !0 });
|
|
5299
|
+
let { stop: c } = oe(o, (e) => {
|
|
5287
5300
|
let t = o.value[o.value.length - 1];
|
|
5288
5301
|
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);
|
|
5289
5302
|
let r = null, i = 0;
|
|
@@ -5302,8 +5315,8 @@ function us(e, t, n) {
|
|
|
5302
5315
|
}
|
|
5303
5316
|
//#endregion
|
|
5304
5317
|
//#region src/compose/useSidebar.ts
|
|
5305
|
-
function
|
|
5306
|
-
let t = B(), n = O(!1), r =
|
|
5318
|
+
function hs(e = "(max-width: 800px)") {
|
|
5319
|
+
let t = B(), n = O(!1), r = ce(e, { ssrWidth: 1e3 });
|
|
5307
5320
|
function i(e) {
|
|
5308
5321
|
if (!r.value || !n.value) return;
|
|
5309
5322
|
let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
|
|
@@ -5333,41 +5346,41 @@ function ds(e = "(max-width: 800px)") {
|
|
|
5333
5346
|
}
|
|
5334
5347
|
//#endregion
|
|
5335
5348
|
//#region src/compose/usePaging.ts
|
|
5336
|
-
function
|
|
5349
|
+
function gs(e) {
|
|
5337
5350
|
let t = /* @__PURE__ */ new Set();
|
|
5338
5351
|
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
5339
5352
|
}
|
|
5340
|
-
function
|
|
5341
|
-
return e == null ? [] :
|
|
5353
|
+
function _s(e) {
|
|
5354
|
+
return e == null ? [] : gs((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
5342
5355
|
key: e.replace(/^-/, ""),
|
|
5343
5356
|
order: e.startsWith("-") ? -1 : 1
|
|
5344
5357
|
})));
|
|
5345
5358
|
}
|
|
5346
|
-
function
|
|
5347
|
-
let t =
|
|
5359
|
+
function vs(e) {
|
|
5360
|
+
let t = gs(e);
|
|
5348
5361
|
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
5349
5362
|
}
|
|
5350
|
-
function
|
|
5351
|
-
let n =
|
|
5363
|
+
function ys(e, t = []) {
|
|
5364
|
+
let n = gs(e);
|
|
5352
5365
|
if (n.length === 0) return;
|
|
5353
5366
|
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 ? "-" : "";
|
|
5354
5367
|
return t.forEach((e) => {
|
|
5355
5368
|
i.has(e) || r.push(`${a}${e}`);
|
|
5356
5369
|
}), r.join(",");
|
|
5357
5370
|
}
|
|
5358
|
-
function
|
|
5371
|
+
function bs(e) {
|
|
5359
5372
|
return Array.isArray(e) ? [...e] : e;
|
|
5360
5373
|
}
|
|
5361
|
-
function
|
|
5374
|
+
function xs(e, t) {
|
|
5362
5375
|
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;
|
|
5363
5376
|
}
|
|
5364
|
-
function
|
|
5377
|
+
function Ss(e, t) {
|
|
5365
5378
|
return e.length === t.length && e.every((e, n) => {
|
|
5366
5379
|
let r = t[n];
|
|
5367
5380
|
return e.key === r?.key && e.order === r?.order;
|
|
5368
5381
|
});
|
|
5369
5382
|
}
|
|
5370
|
-
function
|
|
5383
|
+
function Cs(e, t) {
|
|
5371
5384
|
if (typeof e == "string") return Number(e);
|
|
5372
5385
|
if (Array.isArray(e)) {
|
|
5373
5386
|
let n = e.find((e) => e !== null);
|
|
@@ -5375,35 +5388,35 @@ function ys(e, t) {
|
|
|
5375
5388
|
}
|
|
5376
5389
|
return t;
|
|
5377
5390
|
}
|
|
5378
|
-
function
|
|
5391
|
+
function ws(e = {}) {
|
|
5379
5392
|
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);
|
|
5380
5393
|
return e.route && e.router && (W(() => e.route?.query[i], (e) => {
|
|
5381
|
-
let t =
|
|
5382
|
-
|
|
5394
|
+
let t = _s(e);
|
|
5395
|
+
Ss(s.value, t) || (s.value = t);
|
|
5383
5396
|
}, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
|
|
5384
|
-
let n =
|
|
5397
|
+
let n = Cs(e, t);
|
|
5385
5398
|
c.value !== n && (c.value = n);
|
|
5386
5399
|
}, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
|
|
5387
|
-
let t =
|
|
5400
|
+
let t = Cs(e, n);
|
|
5388
5401
|
l.value !== t && (l.value = t);
|
|
5389
5402
|
}, { immediate: !0 }), W([
|
|
5390
5403
|
s,
|
|
5391
5404
|
c,
|
|
5392
5405
|
l
|
|
5393
5406
|
], ([r, s, c]) => {
|
|
5394
|
-
let l = { ...e.route.query }, u =
|
|
5395
|
-
u === void 0 ? delete l[i] : l[i] =
|
|
5407
|
+
let l = { ...e.route.query }, u = vs(r);
|
|
5408
|
+
u === void 0 ? delete l[i] : l[i] = bs(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);
|
|
5396
5409
|
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
5397
|
-
for (let t of d) if (!
|
|
5410
|
+
for (let t of d) if (!xs(e.route.query[t], l[t])) {
|
|
5398
5411
|
f = !0;
|
|
5399
5412
|
break;
|
|
5400
5413
|
}
|
|
5401
5414
|
f && e.router.replace({ query: l });
|
|
5402
5415
|
})), {
|
|
5403
5416
|
sort: r({
|
|
5404
|
-
get: () =>
|
|
5417
|
+
get: () => gs(s.value),
|
|
5405
5418
|
set: (e) => {
|
|
5406
|
-
s.value =
|
|
5419
|
+
s.value = gs(e);
|
|
5407
5420
|
}
|
|
5408
5421
|
}),
|
|
5409
5422
|
pageSize: c,
|
|
@@ -5412,7 +5425,7 @@ function bs(e = {}) {
|
|
|
5412
5425
|
}
|
|
5413
5426
|
//#endregion
|
|
5414
5427
|
//#region src/compose/useTableChanges.ts
|
|
5415
|
-
function
|
|
5428
|
+
function Ts() {
|
|
5416
5429
|
let e = M(/* @__PURE__ */ new Map()), t = ne(), n = (n) => {
|
|
5417
5430
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
5418
5431
|
e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
|
|
@@ -5516,7 +5529,7 @@ function xs() {
|
|
|
5516
5529
|
}
|
|
5517
5530
|
//#endregion
|
|
5518
5531
|
//#region src/compose/usePersistentTableColumnState.ts
|
|
5519
|
-
function
|
|
5532
|
+
function Es(e, t) {
|
|
5520
5533
|
if (!e || typeof e != "object" || Array.isArray(e)) return {};
|
|
5521
5534
|
let n = new Set(t.map(({ key: e }) => String(e))), r = {};
|
|
5522
5535
|
for (let [t, i] of Object.entries(e)) {
|
|
@@ -5526,13 +5539,13 @@ function Ss(e, t) {
|
|
|
5526
5539
|
}
|
|
5527
5540
|
return r;
|
|
5528
5541
|
}
|
|
5529
|
-
function
|
|
5530
|
-
let n =
|
|
5542
|
+
function Ds(e, t) {
|
|
5543
|
+
let n = se(e, {});
|
|
5531
5544
|
return W(() => L(t).map(({ key: e }) => String(e)), () => {
|
|
5532
|
-
n.value =
|
|
5545
|
+
n.value = Es(n.value, L(t));
|
|
5533
5546
|
}, { immediate: !0 }), { columnState: n };
|
|
5534
5547
|
}
|
|
5535
5548
|
//#endregion
|
|
5536
|
-
export { pn as $,
|
|
5549
|
+
export { pn as $, Qa as A, Ri as B, wo as C, lo as D, fo 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, ao as O, Fi as P, xn as Q, Ii as R, To as S, go as T, Rr as U, Li as V, fr as W, wn as X, On as Y, Sn as Z, Uo as _, De as _t, _s as a, Ct as at, No as b, Q as bt, hs as c, rt as ct, ds as d, qe as dt, cn as et, is as f, Je as ft, Wo as g, Oe as gt, Xo as h, Ae as ht, gs as i, Ot as it, Si as j, io as k, ms as l, nt as lt, ts as m, $ as mt, Ts as n, Jt as nt, vs as o, gt as ot, ss as p, ze as pt, jn as q, ys as r, Pt as rt, ws as s, ct as st, Ds as t, an as tt, ps as u, tt as ut, Vo as v, xe as vt, yo as w, Eo as x, Po as y, be as yt, Ci as z };
|
|
5537
5550
|
|
|
5538
|
-
//# sourceMappingURL=grad-vue-
|
|
5551
|
+
//# sourceMappingURL=grad-vue-TtZgUEXw.js.map
|