@illinois-grad/grad-vue 5.0.2 → 5.0.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/dist/components/GTable.vue.d.ts +1 -0
- package/dist/compose/useFiltering.d.ts +36 -4
- package/dist/compose/usePaging.d.ts +60 -0
- package/dist/{grad-vue-qPzpBTuo.js → grad-vue-ChdGX6W9.js} +460 -335
- package/dist/grad-vue-ChdGX6W9.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js +98 -98
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.d.ts +4 -2
- package/dist/grad-vue.js +2 -2
- package/dist/plugin.js +2 -2
- package/package.json +1 -1
- package/dist/grad-vue-qPzpBTuo.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
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, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vModelText as
|
|
2
|
-
import { createEventHook as
|
|
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, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vModelText as W, vShow as ee, watch as G, watchEffect as te, withCtx as K, withDirectives as ne, withModifiers as q } from "vue";
|
|
2
|
+
import { createEventHook as re, toArray as J, tryOnScopeDispose as ie, unrefElement as Y, useClipboard as ae, useDebounceFn as oe, useFocusWithin as se, useIntersectionObserver as ce, useMediaQuery as le, useMutationObserver as ue, useResizeObserver as de, useSessionStorage as fe } from "@vueuse/core";
|
|
3
3
|
import { createFocusTrap as X } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
5
|
function Z() {
|
|
@@ -79,7 +79,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
79
79
|
onMouseenter: u[7] ||= (e) => r.$emit("mouseenter", e),
|
|
80
80
|
onMouseleave: u[8] ||= (e) => r.$emit("mouseleave", e)
|
|
81
81
|
}), {
|
|
82
|
-
default:
|
|
82
|
+
default: K(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span", me, [a.icon ? k(r.$slots, "icon", {}, void 0, void 0, 0) : (w(), o("span", {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: _(t.icon + " g-btn--icon-span"),
|
|
85
85
|
"aria-hidden": "true"
|
|
@@ -147,7 +147,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
147
147
|
id: L(u),
|
|
148
148
|
class: "g-tree-menu__title"
|
|
149
149
|
}, {
|
|
150
|
-
default:
|
|
150
|
+
default: K(() => [k(n.$slots, "heading", {}, () => [c(N(e.heading), 1)])]),
|
|
151
151
|
_: 3
|
|
152
152
|
}, 8, ["id"])) : a("", !0),
|
|
153
153
|
s("div", ge, [e.smallHeading ? a("", !0) : (w(), o("div", _e)), e.showExpandAll ? (w(), o("div", ve, [s("button", {
|
|
@@ -179,7 +179,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
179
179
|
role: L(o) ? "list" : void 0,
|
|
180
180
|
class: "g-tree-menu__list"
|
|
181
181
|
}, {
|
|
182
|
-
default:
|
|
182
|
+
default: K(() => [k(e.$slots, "default")]),
|
|
183
183
|
_: 3
|
|
184
184
|
}, 8, ["role"]));
|
|
185
185
|
}
|
|
@@ -220,9 +220,9 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
220
220
|
return n.expanded;
|
|
221
221
|
}
|
|
222
222
|
let C = D(b());
|
|
223
|
-
|
|
223
|
+
G(() => n.expanded, (e) => {
|
|
224
224
|
v && n.label !== void 0 || (C.value = e);
|
|
225
|
-
}),
|
|
225
|
+
}), G(C, (e) => {
|
|
226
226
|
v && n.label !== void 0 && (e ? v.value[n.label] = !0 : delete v.value[n.label]);
|
|
227
227
|
});
|
|
228
228
|
function T() {
|
|
@@ -235,9 +235,9 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
235
235
|
function P() {
|
|
236
236
|
O?.delete(E);
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
G(C, (e) => {
|
|
239
239
|
O && g.value && O.set(E, e);
|
|
240
|
-
}), j &&
|
|
240
|
+
}), j && G(() => j.value.version, () => {
|
|
241
241
|
g.value && (C.value = j.value.expanded, M.value = j.value.version);
|
|
242
242
|
}), S(() => {
|
|
243
243
|
N(), j && g.value && j.value.version > M.value && j.value.expanded && (C.value = !0, M.value = j.value.version);
|
|
@@ -261,7 +261,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
261
261
|
class: "g-tree-menu__item",
|
|
262
262
|
"data-tree-expandable": g.value ? "true" : void 0
|
|
263
263
|
}), {
|
|
264
|
-
default:
|
|
264
|
+
default: K(() => [g.value ? (w(), o("div", Se, [s("span", {
|
|
265
265
|
class: "g-tree-menu__row-content",
|
|
266
266
|
"data-tree-primary": "",
|
|
267
267
|
onClick: F
|
|
@@ -287,7 +287,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
287
287
|
key: 2,
|
|
288
288
|
id: L(f) + "-children"
|
|
289
289
|
}, {
|
|
290
|
-
default:
|
|
290
|
+
default: K(() => [k(e.$slots, "children")]),
|
|
291
291
|
_: 3
|
|
292
292
|
}, 8, ["id"])) : a("", !0)]),
|
|
293
293
|
_: 3
|
|
@@ -560,9 +560,9 @@ var Xe = (e) => e != null;
|
|
|
560
560
|
//#region ../../node_modules/@vueuse/integrations/dist/useFocusTrap-lXZ_YG-8.js
|
|
561
561
|
function Ze(e, t = {}) {
|
|
562
562
|
let n, { immediate: i, ...a } = t, o = M(!1), s = M(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
|
|
563
|
-
return
|
|
563
|
+
return G(r(() => J(I(e)).map((e) => {
|
|
564
564
|
let t = I(e);
|
|
565
|
-
return typeof t == "string" ? t :
|
|
565
|
+
return typeof t == "string" ? t : Y(t);
|
|
566
566
|
}).filter(Xe)), (e) => {
|
|
567
567
|
if (e.length) {
|
|
568
568
|
if (!n) n = X(e, {
|
|
@@ -579,7 +579,7 @@ function Ze(e, t = {}) {
|
|
|
579
579
|
n?.updateContainerElements(e), !t && i && c();
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
}, { flush: "post" }),
|
|
582
|
+
}, { flush: "post" }), ie(() => l()), {
|
|
583
583
|
hasFocus: o,
|
|
584
584
|
isPaused: s,
|
|
585
585
|
activate: c,
|
|
@@ -625,7 +625,7 @@ function $e(e, t, n = !1) {
|
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
});
|
|
628
|
-
return
|
|
628
|
+
return G(t, (e) => {
|
|
629
629
|
e ? g(() => {
|
|
630
630
|
i() && c();
|
|
631
631
|
}).catch((e) => {
|
|
@@ -711,14 +711,14 @@ var nt = /* @__PURE__ */ u({
|
|
|
711
711
|
],
|
|
712
712
|
setup(e, { expose: c, emit: u }) {
|
|
713
713
|
let d = e, f = u, p = D(d.modelValue);
|
|
714
|
-
|
|
714
|
+
G(F(d, "modelValue"), (e) => {
|
|
715
715
|
p.value = e;
|
|
716
716
|
});
|
|
717
717
|
let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } = pe(), C = S, T = z(), { push: E, pop: O, isTop: A, zIndex: j } = qe(T, !0), { activate: M, deactivate: N } = $e(b, A, !0);
|
|
718
|
-
et([b, v], A, p, I, O),
|
|
718
|
+
et([b, v], A, p, I, O), G(p, (e) => {
|
|
719
719
|
e ? (g(() => {
|
|
720
720
|
g(() => M());
|
|
721
|
-
}), E(), f("show")) : (N(), O(), f("hide"),
|
|
721
|
+
}), E(), f("show")) : (N(), O(), f("hide"), q.value = !1, re.value = null);
|
|
722
722
|
});
|
|
723
723
|
function P() {
|
|
724
724
|
p.value = !0, f("update:modelValue", !0);
|
|
@@ -732,24 +732,24 @@ var nt = /* @__PURE__ */ u({
|
|
|
732
732
|
let B = D({
|
|
733
733
|
top: 0,
|
|
734
734
|
left: 0
|
|
735
|
-
}), U = D({ left: "50%" }),
|
|
736
|
-
function
|
|
735
|
+
}), U = D({ left: "50%" }), W = D(!1), te = D(!1), q = D(!1), re = D(null), J = null;
|
|
736
|
+
function ie() {
|
|
737
737
|
if (v.value) return v.value;
|
|
738
738
|
let e = b.value?.parentElement ?? null;
|
|
739
739
|
for (; e && e.tagName.toLowerCase() !== "g-popover";) e = e.parentElement;
|
|
740
740
|
let t = e?.previousElementSibling;
|
|
741
741
|
return t instanceof HTMLElement ? t : null;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Y() {
|
|
744
744
|
if (!b.value) return;
|
|
745
745
|
let e = b.value, t = new DOMRect(0, 0, window.innerWidth, window.innerHeight), n = Math.max(t.height - 32, 0), r = e.scrollHeight;
|
|
746
|
-
|
|
747
|
-
let i = new DOMRect(0, 0, e.offsetWidth, Math.min(r, n)), a =
|
|
746
|
+
q.value = r > n, re.value = q.value ? n : null;
|
|
747
|
+
let i = new DOMRect(0, 0, e.offsetWidth, Math.min(r, n)), a = ie();
|
|
748
748
|
if (!a) {
|
|
749
749
|
B.value = {
|
|
750
750
|
top: Math.max((t.height - i.height) / 2, 16),
|
|
751
751
|
left: Math.max((t.width - i.width) / 2, 16)
|
|
752
|
-
},
|
|
752
|
+
}, te.value = !1, W.value = !1, U.value = { left: "50%" };
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
755
|
let { top: o, left: s, xOffset: c, placedAbove: l, overlay: u } = tt(a.getBoundingClientRect(), i, t, { gap: d.minimal ? 0 : 8 });
|
|
@@ -760,14 +760,14 @@ var nt = /* @__PURE__ */ u({
|
|
|
760
760
|
left: `${i.width / 2 - c}px`,
|
|
761
761
|
top: l ? "auto" : void 0,
|
|
762
762
|
bottom: l ? "-8px" : void 0
|
|
763
|
-
},
|
|
763
|
+
}, W.value = l, te.value = u;
|
|
764
764
|
}
|
|
765
|
-
return
|
|
765
|
+
return G(p, (e) => {
|
|
766
766
|
e ? g(() => {
|
|
767
|
-
|
|
768
|
-
}) : (window.removeEventListener("resize",
|
|
767
|
+
Y(), window.addEventListener("resize", Y), window.addEventListener("scroll", Y, { capture: !0 }), b.value && (J && J.disconnect(), J = new ResizeObserver(() => Y()), J.observe(b.value));
|
|
768
|
+
}) : (window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect());
|
|
769
769
|
}), x(() => {
|
|
770
|
-
window.removeEventListener("resize",
|
|
770
|
+
window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect();
|
|
771
771
|
}), c({
|
|
772
772
|
show: P,
|
|
773
773
|
hide: I,
|
|
@@ -779,23 +779,23 @@ var nt = /* @__PURE__ */ u({
|
|
|
779
779
|
class: "g-popover-trigger",
|
|
780
780
|
id: `${L(T)}-trigger`
|
|
781
781
|
}, [k(r.$slots, "trigger", { toggle: R })], 8, it)) : a("", !0), l(nt, null, {
|
|
782
|
-
default:
|
|
782
|
+
default: K(() => [(w(), i(t, {
|
|
783
783
|
to: "#modal-root",
|
|
784
784
|
disabled: L(C)
|
|
785
785
|
}, [l(n, {
|
|
786
786
|
name: "g-popover-expand",
|
|
787
787
|
appear: ""
|
|
788
788
|
}, {
|
|
789
|
-
default:
|
|
789
|
+
default: K(() => [L(S) || p.value ? ne((w(), o("div", {
|
|
790
790
|
key: 0,
|
|
791
791
|
ref_key: "popoverRef",
|
|
792
792
|
ref: b,
|
|
793
793
|
class: _({
|
|
794
794
|
"g-popover": !0,
|
|
795
|
-
"g-popover-above":
|
|
796
|
-
"g-popover-below": !
|
|
795
|
+
"g-popover-above": W.value,
|
|
796
|
+
"g-popover-below": !W.value,
|
|
797
797
|
"g-popover-minimal": e.minimal,
|
|
798
|
-
"g-popover-scrollable":
|
|
798
|
+
"g-popover-scrollable": q.value
|
|
799
799
|
}),
|
|
800
800
|
role: "dialog",
|
|
801
801
|
"aria-modal": "true",
|
|
@@ -805,12 +805,12 @@ var nt = /* @__PURE__ */ u({
|
|
|
805
805
|
top: B.value.top + "px",
|
|
806
806
|
left: B.value.left + "px",
|
|
807
807
|
zIndex: L(j),
|
|
808
|
-
maxHeight:
|
|
808
|
+
maxHeight: re.value === null ? void 0 : `${re.value}px`
|
|
809
809
|
})
|
|
810
810
|
}, [
|
|
811
|
-
!
|
|
811
|
+
!te.value && !e.minimal && !q.value ? (w(), o("div", {
|
|
812
812
|
key: 0,
|
|
813
|
-
class: _(["g-popover-arrow", { "g-popover-arrow-above":
|
|
813
|
+
class: _(["g-popover-arrow", { "g-popover-arrow-above": W.value }]),
|
|
814
814
|
style: y(U.value),
|
|
815
815
|
"aria-hidden": "true"
|
|
816
816
|
}, null, 6)) : a("", !0),
|
|
@@ -830,7 +830,7 @@ var nt = /* @__PURE__ */ u({
|
|
|
830
830
|
fill: "currentColor",
|
|
831
831
|
d: "m37.84 32.94-7.63-7.63 7.63-7.63a3.24 3.24 0 0 0-4.58-4.58l-7.63 7.63L18 13.1a3.24 3.24 0 0 0-4.58 4.58L21 25.31l-7.62 7.63A3.24 3.24 0 1 0 18 37.52l7.63-7.63 7.63 7.63a3.24 3.24 0 0 0 4.58-4.58Z"
|
|
832
832
|
})], -1)]]))
|
|
833
|
-
], 14, at)), [[
|
|
833
|
+
], 14, at)), [[ee, p.value]]) : a("", !0)]),
|
|
834
834
|
_: 3
|
|
835
835
|
})], 8, ["disabled"]))]),
|
|
836
836
|
_: 3
|
|
@@ -922,15 +922,15 @@ var mt = /* @__PURE__ */ u({
|
|
|
922
922
|
function I(e) {
|
|
923
923
|
(e.key === "Escape" || e.key === "Esc") && (p.value = !1, m.value = !1);
|
|
924
924
|
}
|
|
925
|
-
return
|
|
925
|
+
return G(() => [
|
|
926
926
|
u.value,
|
|
927
927
|
d.value,
|
|
928
928
|
l.value
|
|
929
929
|
], () => {
|
|
930
930
|
A(b()), S();
|
|
931
|
-
}, { immediate: !0 }),
|
|
931
|
+
}, { immediate: !0 }), G(() => i.text, (e) => {
|
|
932
932
|
f.value && (f.value.textContent = e);
|
|
933
|
-
}),
|
|
933
|
+
}), G(() => p.value || m.value, (e) => {
|
|
934
934
|
if (e) {
|
|
935
935
|
S(), f.value && y && ft(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
|
|
936
936
|
return;
|
|
@@ -1131,7 +1131,7 @@ var mt = /* @__PURE__ */ u({
|
|
|
1131
1131
|
name: "g-fade",
|
|
1132
1132
|
appear: ""
|
|
1133
1133
|
}, {
|
|
1134
|
-
default:
|
|
1134
|
+
default: K(() => [s("div", {
|
|
1135
1135
|
id: "alertdialog-" + L(f),
|
|
1136
1136
|
class: "g-alertdialog",
|
|
1137
1137
|
role: "alertdialog",
|
|
@@ -1154,13 +1154,13 @@ var mt = /* @__PURE__ */ u({
|
|
|
1154
1154
|
outlined: "",
|
|
1155
1155
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1156
1156
|
}, {
|
|
1157
|
-
default:
|
|
1157
|
+
default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
|
|
1158
1158
|
_: 1
|
|
1159
1159
|
}), l(Q, {
|
|
1160
1160
|
theme: a.buttonColor,
|
|
1161
1161
|
onClick: r[1] ||= (e) => o("confirm")
|
|
1162
1162
|
}, {
|
|
1163
|
-
default:
|
|
1163
|
+
default: K(() => [c(N(a.buttonText), 1)]),
|
|
1164
1164
|
_: 1
|
|
1165
1165
|
}, 8, ["theme"])])
|
|
1166
1166
|
])], 12, Dt)]),
|
|
@@ -1200,7 +1200,7 @@ function Pt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
|
|
|
1200
1200
|
function h() {
|
|
1201
1201
|
p && p();
|
|
1202
1202
|
}
|
|
1203
|
-
|
|
1203
|
+
G(e, (e) => {
|
|
1204
1204
|
e ? (o(), m(), g(() => f())) : (s(), h(), l.value = "below", u.value = null);
|
|
1205
1205
|
}), x(() => {
|
|
1206
1206
|
h();
|
|
@@ -1302,7 +1302,7 @@ var Ft = ["id"], It = {
|
|
|
1302
1302
|
let e = I.value.toLowerCase();
|
|
1303
1303
|
return P.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
|
|
1304
1304
|
}), V = r(() => R.value.findIndex((e) => e.value === d.value));
|
|
1305
|
-
|
|
1305
|
+
G(() => d.value, (e) => {
|
|
1306
1306
|
let t = R.value.findIndex((t) => t.value === e);
|
|
1307
1307
|
t !== -1 && (b.value = t);
|
|
1308
1308
|
});
|
|
@@ -1318,7 +1318,7 @@ var Ft = ["id"], It = {
|
|
|
1318
1318
|
function U() {
|
|
1319
1319
|
y.value = !1, i.searchable && (I.value = "");
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function W(e) {
|
|
1322
1322
|
if (!i.disabled && i.searchable) {
|
|
1323
1323
|
if (S.value) {
|
|
1324
1324
|
S.value = !1;
|
|
@@ -1327,13 +1327,13 @@ var Ft = ["id"], It = {
|
|
|
1327
1327
|
H();
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function te(e) {
|
|
1331
1331
|
if (!i.searchable) return;
|
|
1332
1332
|
y.value || H(), I.value = e.target.value;
|
|
1333
1333
|
let t = R.value.findIndex((e) => e.value === d.value);
|
|
1334
1334
|
b.value = t === -1 ? 0 : t;
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function K(e) {
|
|
1337
1337
|
let t = e.relatedTarget;
|
|
1338
1338
|
if (x.value) {
|
|
1339
1339
|
x.value = !1;
|
|
@@ -1341,16 +1341,16 @@ var Ft = ["id"], It = {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function re(e) {
|
|
1345
1345
|
let t = R.value[e];
|
|
1346
1346
|
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
|
|
1347
1347
|
S.value = !1;
|
|
1348
1348
|
}, 100);
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function J() {
|
|
1351
1351
|
i.disabled || (y.value ? U() : H());
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function ie(e) {
|
|
1354
1354
|
if (i.disabled) return;
|
|
1355
1355
|
let t = R.value.length - 1;
|
|
1356
1356
|
if (!y.value && [
|
|
@@ -1377,21 +1377,21 @@ var Ft = ["id"], It = {
|
|
|
1377
1377
|
break;
|
|
1378
1378
|
case "Enter":
|
|
1379
1379
|
case " ":
|
|
1380
|
-
e.preventDefault(), y.value ?
|
|
1380
|
+
e.preventDefault(), y.value ? re(b.value) : H();
|
|
1381
1381
|
break;
|
|
1382
1382
|
case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
|
|
1383
1383
|
U();
|
|
1384
1384
|
}, 0));
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1388
|
-
|
|
1387
|
+
function Y(e) {
|
|
1388
|
+
re(e);
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function ae() {
|
|
1391
1391
|
x.value = !0;
|
|
1392
1392
|
}
|
|
1393
|
-
let
|
|
1394
|
-
function
|
|
1393
|
+
let oe = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
1394
|
+
function se() {
|
|
1395
1395
|
i.disabled || (d.value = null, u("change", null), i.searchable && (I.value = ""));
|
|
1396
1396
|
}
|
|
1397
1397
|
return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
@@ -1418,10 +1418,10 @@ var Ft = ["id"], It = {
|
|
|
1418
1418
|
value: y.value ? I.value : P.value[V.value] ? P.value[V.value].label : "",
|
|
1419
1419
|
placeholder: y.value ? "" : t.placeholder,
|
|
1420
1420
|
disabled: i.disabled,
|
|
1421
|
-
onFocus:
|
|
1422
|
-
onInput:
|
|
1423
|
-
onKeydown:
|
|
1424
|
-
onBlur:
|
|
1421
|
+
onFocus: W,
|
|
1422
|
+
onInput: te,
|
|
1423
|
+
onKeydown: ie,
|
|
1424
|
+
onBlur: K,
|
|
1425
1425
|
"aria-autocomplete": "list",
|
|
1426
1426
|
"aria-controls": L(f) + "-listbox",
|
|
1427
1427
|
"aria-expanded": y.value ? "true" : "false",
|
|
@@ -1432,11 +1432,11 @@ var Ft = ["id"], It = {
|
|
|
1432
1432
|
role: "combobox",
|
|
1433
1433
|
autocomplete: "off"
|
|
1434
1434
|
}), null, 16, zt),
|
|
1435
|
-
|
|
1435
|
+
oe.value ? (w(), o("button", {
|
|
1436
1436
|
key: 0,
|
|
1437
1437
|
type: "button",
|
|
1438
1438
|
class: "g-select-clear-btn",
|
|
1439
|
-
onClick:
|
|
1439
|
+
onClick: se
|
|
1440
1440
|
}, [...r[0] ||= [s("svg", {
|
|
1441
1441
|
role: "img",
|
|
1442
1442
|
"aria-label": "Clear Selection",
|
|
@@ -1471,17 +1471,17 @@ var Ft = ["id"], It = {
|
|
|
1471
1471
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
|
|
1472
1472
|
"aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
|
|
1473
1473
|
tabindex: "0",
|
|
1474
|
-
onClick:
|
|
1475
|
-
onKeydown:
|
|
1476
|
-
onFocus:
|
|
1477
|
-
onBlur:
|
|
1474
|
+
onClick: J,
|
|
1475
|
+
onKeydown: ie,
|
|
1476
|
+
onFocus: W,
|
|
1477
|
+
onBlur: K
|
|
1478
1478
|
}), [
|
|
1479
1479
|
c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
|
|
1480
|
-
|
|
1480
|
+
oe.value ? (w(), o("button", {
|
|
1481
1481
|
key: 0,
|
|
1482
1482
|
type: "button",
|
|
1483
1483
|
class: "g-select-clear-btn",
|
|
1484
|
-
onClick:
|
|
1484
|
+
onClick: q(se, ["stop"])
|
|
1485
1485
|
}, [...r[2] ||= [s("svg", {
|
|
1486
1486
|
role: "img",
|
|
1487
1487
|
"aria-label": "Clear Selection",
|
|
@@ -1502,7 +1502,7 @@ var Ft = ["id"], It = {
|
|
|
1502
1502
|
fill: "currentColor",
|
|
1503
1503
|
d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
|
|
1504
1504
|
})], -1)
|
|
1505
|
-
], 16, Bt)),
|
|
1505
|
+
], 16, Bt)), ne(s("div", h({
|
|
1506
1506
|
ref_key: "listboxRef",
|
|
1507
1507
|
ref: m,
|
|
1508
1508
|
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": L(E) === "above" }],
|
|
@@ -1518,13 +1518,13 @@ var Ft = ["id"], It = {
|
|
|
1518
1518
|
}]),
|
|
1519
1519
|
role: "option",
|
|
1520
1520
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1521
|
-
onMousedown:
|
|
1522
|
-
onClick: (e) =>
|
|
1521
|
+
onMousedown: ae,
|
|
1522
|
+
onClick: (e) => Y(t)
|
|
1523
1523
|
}, [k(n.$slots, "option", {
|
|
1524
1524
|
option: e,
|
|
1525
1525
|
selected: e.value === d.value,
|
|
1526
1526
|
index: t
|
|
1527
|
-
}, () => [s("span", Ut, N(e.label), 1), e.description ? (w(), o("span", Wt, N(e.description), 1)) : a("", !0)])], 42, Ht))), 128)) : (w(), o("div", Gt, " No results found. "))], 16, Vt), [[
|
|
1527
|
+
}, () => [s("span", Ut, N(e.label), 1), e.description ? (w(), o("span", Wt, N(e.description), 1)) : a("", !0)])], 42, Ht))), 128)) : (w(), o("div", Gt, " No results found. "))], 16, Vt), [[ee, y.value]])]),
|
|
1528
1528
|
l(Me, {
|
|
1529
1529
|
errors: L(C),
|
|
1530
1530
|
id: "error-message-" + L(f)
|
|
@@ -1579,7 +1579,7 @@ var Ft = ["id"], It = {
|
|
|
1579
1579
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1580
1580
|
});
|
|
1581
1581
|
}
|
|
1582
|
-
let { focused: S } =
|
|
1582
|
+
let { focused: S } = se(f);
|
|
1583
1583
|
function C(e) {
|
|
1584
1584
|
let t = e.altKey;
|
|
1585
1585
|
if (e.key === "ArrowDown") {
|
|
@@ -1603,10 +1603,10 @@ var Ft = ["id"], It = {
|
|
|
1603
1603
|
function T(e) {
|
|
1604
1604
|
d("select", e), l.value = "", m.value = !0, h.value = -1;
|
|
1605
1605
|
}
|
|
1606
|
-
let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j =
|
|
1606
|
+
let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = oe(() => {
|
|
1607
1607
|
d("submit", l.value);
|
|
1608
1608
|
}, 300);
|
|
1609
|
-
|
|
1609
|
+
G(() => l.value, (e) => {
|
|
1610
1610
|
e ? u.auto && j() : h.value = -1;
|
|
1611
1611
|
});
|
|
1612
1612
|
let M = z();
|
|
@@ -1616,7 +1616,7 @@ var Ft = ["id"], It = {
|
|
|
1616
1616
|
"aria-label": u.label
|
|
1617
1617
|
}, [s("form", {
|
|
1618
1618
|
class: "g-search-form",
|
|
1619
|
-
onSubmit: n[0] ||=
|
|
1619
|
+
onSubmit: n[0] ||= q((e) => T(null), ["prevent"])
|
|
1620
1620
|
}, [s("input", {
|
|
1621
1621
|
ref_key: "inputRef",
|
|
1622
1622
|
ref: f,
|
|
@@ -1664,14 +1664,14 @@ var Ft = ["id"], It = {
|
|
|
1664
1664
|
id: "g-search-option-" + e.id,
|
|
1665
1665
|
class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
|
|
1666
1666
|
role: "option",
|
|
1667
|
-
onMousedown:
|
|
1667
|
+
onMousedown: q((t) => T(e), ["prevent"]),
|
|
1668
1668
|
"aria-selected": v.value[h.value] && v.value[h.value].id === e.id
|
|
1669
1669
|
}, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, en))), 128))], 8, Qt))), 128)) : y.value > 0 ? (w(!0), o(e, { key: 1 }, O(v.value, (e, n) => (w(), o("div", {
|
|
1670
1670
|
key: e.id,
|
|
1671
1671
|
id: "g-search-option-" + e.id,
|
|
1672
1672
|
class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
|
|
1673
1673
|
role: "option",
|
|
1674
|
-
onMousedown:
|
|
1674
|
+
onMousedown: q((t) => T(e), ["prevent"]),
|
|
1675
1675
|
"aria-selected": h.value === n
|
|
1676
1676
|
}, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, tn))), 128)) : a("", !0)], 8, Zt)])) : a("", !0)], 8, qt));
|
|
1677
1677
|
}
|
|
@@ -1733,12 +1733,12 @@ function pn(e = "default", t) {
|
|
|
1733
1733
|
id: `g-wc-sidebar-${e}`,
|
|
1734
1734
|
open: D(!1),
|
|
1735
1735
|
breakpoint: t,
|
|
1736
|
-
isCollapsible:
|
|
1736
|
+
isCollapsible: le(t, { ssrWidth: 1e3 }),
|
|
1737
1737
|
toggle: () => void 0
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
1740
1740
|
let o = n.get(r);
|
|
1741
|
-
o.toggle = () => o.open.value = !o.open.value, typeof t == "string" ? t.trim() && (o.breakpoint.value = t) : t &&
|
|
1741
|
+
o.toggle = () => o.open.value = !o.open.value, typeof t == "string" ? t.trim() && (o.breakpoint.value = t) : t && G(t, (e) => {
|
|
1742
1742
|
e && e.trim() && (o.breakpoint.value = e);
|
|
1743
1743
|
}, { immediate: !0 });
|
|
1744
1744
|
function s(e) {
|
|
@@ -1756,7 +1756,7 @@ function pn(e = "default", t) {
|
|
|
1756
1756
|
}, 5));
|
|
1757
1757
|
}
|
|
1758
1758
|
return S(() => {
|
|
1759
|
-
|
|
1759
|
+
G(o.isCollapsible, (e) => {
|
|
1760
1760
|
e ? (document.addEventListener("mousedown", s), document.addEventListener("focusin", c)) : (document.removeEventListener("mousedown", s), document.removeEventListener("focusin", c));
|
|
1761
1761
|
}, { immediate: !0 });
|
|
1762
1762
|
}), x(() => {
|
|
@@ -1915,7 +1915,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
1915
1915
|
setup(t) {
|
|
1916
1916
|
let n = t, l = B(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = H("content");
|
|
1917
1917
|
S(() => {
|
|
1918
|
-
|
|
1918
|
+
G(l, () => {
|
|
1919
1919
|
g(() => {
|
|
1920
1920
|
let e = f.value?.querySelector(".g-sidebar-menu__is-active");
|
|
1921
1921
|
e && e.scrollIntoView({ block: "nearest" });
|
|
@@ -1953,7 +1953,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
1953
1953
|
class: "g-sidebar-menu__link",
|
|
1954
1954
|
to: e.to
|
|
1955
1955
|
}, {
|
|
1956
|
-
default:
|
|
1956
|
+
default: K(() => [c(N(e.label), 1)]),
|
|
1957
1957
|
_: 2
|
|
1958
1958
|
}, 1032, ["to"])) : (w(), o("a", {
|
|
1959
1959
|
key: 1,
|
|
@@ -1971,13 +1971,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
1971
1971
|
n.value && (r.value || i.value) && ft(e, n.value);
|
|
1972
1972
|
}), o.observe(n.value));
|
|
1973
1973
|
};
|
|
1974
|
-
|
|
1974
|
+
te(() => {
|
|
1975
1975
|
n.value && (n.value.textContent = a.value);
|
|
1976
1976
|
});
|
|
1977
1977
|
let u = () => {
|
|
1978
1978
|
n.value && (r.value || i.value) && ft(e, n.value);
|
|
1979
1979
|
};
|
|
1980
|
-
|
|
1980
|
+
te(() => {
|
|
1981
1981
|
r.value || i.value ? (l(), n.value && ft(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (pt(n.value), setTimeout(() => {
|
|
1982
1982
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
1983
1983
|
}, 150)));
|
|
@@ -2024,12 +2024,12 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2024
2024
|
copyLabel: {}
|
|
2025
2025
|
},
|
|
2026
2026
|
setup(t) {
|
|
2027
|
-
let n = t, r = xn, { text: i, copy: l, copied: u, isSupported: d } =
|
|
2027
|
+
let n = t, r = xn, { text: i, copy: l, copied: u, isSupported: d } = ae({ source: n.text }), f = D(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2028
2028
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2029
2029
|
}, m = () => {
|
|
2030
2030
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
2031
2031
|
};
|
|
2032
|
-
return (i, l) => (w(), o("div", Sn, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)),
|
|
2032
|
+
return (i, l) => (w(), o("div", Sn, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)), ne((w(), o("button", {
|
|
2033
2033
|
type: "button",
|
|
2034
2034
|
"aria-label": "Copy",
|
|
2035
2035
|
onClick: p,
|
|
@@ -2082,7 +2082,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2082
2082
|
u.value && f();
|
|
2083
2083
|
}), de(c, () => {
|
|
2084
2084
|
u.value && f();
|
|
2085
|
-
}),
|
|
2085
|
+
}), G(() => n.entries, async () => {
|
|
2086
2086
|
u.value && (await g(), f());
|
|
2087
2087
|
});
|
|
2088
2088
|
let m = r(() => [...n.entries].reverse());
|
|
@@ -2103,7 +2103,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2103
2103
|
onClick: r[0] ||= () => f({ focusLast: !0 }),
|
|
2104
2104
|
"aria-label": "Jump to Latest"
|
|
2105
2105
|
}, {
|
|
2106
|
-
default:
|
|
2106
|
+
default: K(() => [...r[1] ||= [s("svg", {
|
|
2107
2107
|
"aria-hidden": "true",
|
|
2108
2108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2109
2109
|
viewBox: "0 0 640 640",
|
|
@@ -2373,7 +2373,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2373
2373
|
}, [t.bulkSelectionEnabled ? (w(), o("td", {
|
|
2374
2374
|
key: 0,
|
|
2375
2375
|
class: "td-checkbox",
|
|
2376
|
-
onClick: r[0] ||=
|
|
2376
|
+
onClick: r[0] ||= q(() => {}, ["stop"])
|
|
2377
2377
|
}, [s("input", {
|
|
2378
2378
|
type: "checkbox",
|
|
2379
2379
|
checked: p(n.key),
|
|
@@ -2531,21 +2531,21 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2531
2531
|
let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
|
|
2532
2532
|
d.value = r, u("change", r), g(() => p.value?.focus());
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function W(e) {
|
|
2535
2535
|
if (i.disabled) return;
|
|
2536
2536
|
let t = d.value.filter((t) => t !== e);
|
|
2537
2537
|
d.value = t, u("change", t);
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function G() {
|
|
2540
2540
|
i.disabled || (p.value?.focus(), y.value || V());
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function te(e) {
|
|
2543
2543
|
x.value = e.target.value, b.value = 0, y.value || V();
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2545
|
+
function K() {
|
|
2546
2546
|
i.disabled || y.value || V();
|
|
2547
2547
|
}
|
|
2548
|
-
function
|
|
2548
|
+
function re(e) {
|
|
2549
2549
|
if (S.value) {
|
|
2550
2550
|
S.value = !1;
|
|
2551
2551
|
return;
|
|
@@ -2553,13 +2553,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2553
2553
|
let t = e.relatedTarget;
|
|
2554
2554
|
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function J(e) {
|
|
2557
2557
|
e.preventDefault();
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function ie() {
|
|
2560
2560
|
S.value = !0;
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2562
|
+
function Y(e) {
|
|
2563
2563
|
if (i.disabled) return;
|
|
2564
2564
|
let t = P.value.length - 1;
|
|
2565
2565
|
switch (e.key) {
|
|
@@ -2584,12 +2584,12 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2584
2584
|
case "Escape":
|
|
2585
2585
|
A.value && (e.preventDefault(), setTimeout(() => H(), 0));
|
|
2586
2586
|
break;
|
|
2587
|
-
case "Backspace": !x.value && d.value.length > 0 &&
|
|
2587
|
+
case "Backspace": !x.value && d.value.length > 0 && W(d.value[d.value.length - 1]);
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
|
-
let
|
|
2590
|
+
let ae = r(() => `${f}-input`), oe = r(() => `${f}-label`), se = r(() => `${f}-instructions`), ce = r(() => `error-message-${f}`), le = r(() => {
|
|
2591
2591
|
let e = [];
|
|
2592
|
-
return i.instructions && e.push(
|
|
2592
|
+
return i.instructions && e.push(se.value), T.value && e.push(ce.value), e.length > 0 ? e.join(" ") : void 0;
|
|
2593
2593
|
});
|
|
2594
2594
|
return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
|
|
2595
2595
|
"g-multiselect-open": y.value,
|
|
@@ -2597,25 +2597,25 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2597
2597
|
}]) }, [
|
|
2598
2598
|
t.hiddenLabel ? a("", !0) : (w(), o("label", {
|
|
2599
2599
|
key: 0,
|
|
2600
|
-
id:
|
|
2601
|
-
for:
|
|
2600
|
+
id: oe.value,
|
|
2601
|
+
for: ae.value,
|
|
2602
2602
|
class: "g-multiselect-label"
|
|
2603
2603
|
}, [c(N(t.label), 1), t.required ? (w(), o("span", or, " *")) : a("", !0)], 8, ar)),
|
|
2604
2604
|
t.instructions ? (w(), o("div", {
|
|
2605
2605
|
key: 1,
|
|
2606
|
-
id:
|
|
2606
|
+
id: se.value,
|
|
2607
2607
|
class: "g-multiselect-instructions"
|
|
2608
2608
|
}, N(t.instructions), 9, sr)) : a("", !0),
|
|
2609
2609
|
s("div", {
|
|
2610
2610
|
ref_key: "controlRef",
|
|
2611
2611
|
ref: m,
|
|
2612
2612
|
class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
|
|
2613
|
-
onClick:
|
|
2613
|
+
onClick: G
|
|
2614
2614
|
}, [
|
|
2615
2615
|
d.value.length ? (w(), o("ul", {
|
|
2616
2616
|
key: 0,
|
|
2617
2617
|
class: "g-multiselect-chips",
|
|
2618
|
-
"aria-labelledby":
|
|
2618
|
+
"aria-labelledby": oe.value
|
|
2619
2619
|
}, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
|
|
2620
2620
|
key: e,
|
|
2621
2621
|
class: "g-multiselect-chip"
|
|
@@ -2624,8 +2624,8 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2624
2624
|
class: "g-multiselect-chip-remove",
|
|
2625
2625
|
"aria-label": `Remove ${R(e)}`,
|
|
2626
2626
|
disabled: t.disabled,
|
|
2627
|
-
onMousedown:
|
|
2628
|
-
onClick:
|
|
2627
|
+
onMousedown: ie,
|
|
2628
|
+
onClick: q((t) => W(e), ["stop"])
|
|
2629
2629
|
}, [...r[0] ||= [s("svg", {
|
|
2630
2630
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2631
2631
|
viewBox: "0 0 51.26 51.26",
|
|
@@ -2641,7 +2641,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2641
2641
|
type: "text",
|
|
2642
2642
|
role: "combobox",
|
|
2643
2643
|
class: "g-multiselect-input",
|
|
2644
|
-
id:
|
|
2644
|
+
id: ae.value,
|
|
2645
2645
|
value: x.value,
|
|
2646
2646
|
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
2647
2647
|
disabled: t.disabled,
|
|
@@ -2652,12 +2652,12 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2652
2652
|
"aria-controls": L(f) + "-listbox",
|
|
2653
2653
|
"aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
|
|
2654
2654
|
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
2655
|
-
"aria-describedby":
|
|
2655
|
+
"aria-describedby": le.value,
|
|
2656
2656
|
"aria-required": t.required ? "true" : void 0,
|
|
2657
|
-
onInput:
|
|
2658
|
-
onKeydown:
|
|
2659
|
-
onFocus:
|
|
2660
|
-
onBlur:
|
|
2657
|
+
onInput: te,
|
|
2658
|
+
onKeydown: Y,
|
|
2659
|
+
onFocus: K,
|
|
2660
|
+
onBlur: re
|
|
2661
2661
|
}), null, 16, dr),
|
|
2662
2662
|
r[2] ||= s("svg", {
|
|
2663
2663
|
class: "g-multiselect-caret",
|
|
@@ -2669,13 +2669,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2669
2669
|
fill: "currentColor",
|
|
2670
2670
|
d: "M38.75 24.13a1.36 1.36 0 0 1 0 2.36l-12.44 7.18-12.43 7.18a1.36 1.36 0 0 1-2.05-1.18V11a1.36 1.36 0 0 1 2.05-1.18L26.31 17Z"
|
|
2671
2671
|
})], -1),
|
|
2672
|
-
|
|
2672
|
+
ne(s("div", h({
|
|
2673
2673
|
ref_key: "listboxRef",
|
|
2674
2674
|
ref: v,
|
|
2675
2675
|
id: L(f) + "-listbox",
|
|
2676
2676
|
role: "listbox",
|
|
2677
2677
|
"aria-multiselectable": "true"
|
|
2678
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby":
|
|
2678
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": oe.value }, {
|
|
2679
2679
|
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
|
|
2680
2680
|
style: L(k),
|
|
2681
2681
|
tabindex: "-1"
|
|
@@ -2688,13 +2688,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2688
2688
|
"g-multiselect-option--selected": I(e.value)
|
|
2689
2689
|
}]),
|
|
2690
2690
|
"aria-selected": I(e.value) ? "true" : "false",
|
|
2691
|
-
onMousedown:
|
|
2691
|
+
onMousedown: J,
|
|
2692
2692
|
onClick: (e) => U(t)
|
|
2693
|
-
}, [s("span", mr, [I(e.value) ? (w(), o("svg", hr, [...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", gr, [s("span", _r, N(e.label), 1), e.description ? (w(), o("span", vr, N(e.description), 1)) : a("", !0)])], 42, pr))), 128)) : (w(), o("div", yr, " No results found. "))], 16, fr), [[
|
|
2693
|
+
}, [s("span", mr, [I(e.value) ? (w(), o("svg", hr, [...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", gr, [s("span", _r, N(e.label), 1), e.description ? (w(), o("span", vr, N(e.description), 1)) : a("", !0)])], 42, pr))), 128)) : (w(), o("div", yr, " No results found. "))], 16, fr), [[ee, y.value]])
|
|
2694
2694
|
], 2),
|
|
2695
2695
|
l(Me, {
|
|
2696
2696
|
errors: L(C),
|
|
2697
|
-
id:
|
|
2697
|
+
id: ce.value
|
|
2698
2698
|
}, null, 8, ["errors", "id"])
|
|
2699
2699
|
], 2));
|
|
2700
2700
|
}
|
|
@@ -2781,7 +2781,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2781
2781
|
};
|
|
2782
2782
|
}
|
|
2783
2783
|
return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
|
|
2784
|
-
default:
|
|
2784
|
+
default: K(() => [
|
|
2785
2785
|
C.value && t.label ? (w(), o("legend", xr, [c(N(t.label), 1), t.required ? (w(), o("span", Sr, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", Cr, [c(N(t.label), 1), t.required ? (w(), o("span", wr, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
2786
2786
|
t.instructions ? (w(), o("div", {
|
|
2787
2787
|
key: 2,
|
|
@@ -2968,7 +2968,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2968
2968
|
for: L(d)
|
|
2969
2969
|
}, " per page ", 8, Hr)]),
|
|
2970
2970
|
s("div", Ur, [l(ot, null, {
|
|
2971
|
-
trigger:
|
|
2971
|
+
trigger: K(({ toggle: e }) => [s("button", {
|
|
2972
2972
|
type: "button",
|
|
2973
2973
|
class: "g-pagination-button g-pagination-overflow-trigger",
|
|
2974
2974
|
"aria-label": "More pagination options",
|
|
@@ -2983,7 +2983,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2983
2983
|
fill: "currentColor",
|
|
2984
2984
|
d: "M96 320C96 284.7 124.7 256 160 256C195.3 256 224 284.7 224 320C224 355.3 195.3 384 160 384C124.7 384 96 355.3 96 320zM256 320C256 284.7 284.7 256 320 256C355.3 256 384 284.7 384 320C384 355.3 355.3 384 320 384C284.7 384 256 355.3 256 320zM480 256C515.3 256 544 284.7 544 320C544 355.3 515.3 384 480 384C444.7 384 416 355.3 416 320C416 284.7 444.7 256 480 256z"
|
|
2985
2985
|
})], -1)]], 8, Wr)]),
|
|
2986
|
-
default:
|
|
2986
|
+
default: K(() => [s("div", Gr, [
|
|
2987
2987
|
n[15] ||= s("h2", {
|
|
2988
2988
|
class: "g-pagination-overflow-title",
|
|
2989
2989
|
tabindex: "-1",
|
|
@@ -3077,24 +3077,70 @@ function ti(e) {
|
|
|
3077
3077
|
if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
|
|
3078
3078
|
}
|
|
3079
3079
|
function ni(e) {
|
|
3080
|
-
return Object.fromEntries(Object.entries(e).filter(([
|
|
3080
|
+
return Object.fromEntries(Object.entries(e).filter(([, e]) => e && (!Array.isArray(e) || e.length > 0)));
|
|
3081
3081
|
}
|
|
3082
3082
|
function ri(e) {
|
|
3083
3083
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
3084
3084
|
}
|
|
3085
3085
|
function ii(e) {
|
|
3086
|
+
if (e == null) return;
|
|
3087
|
+
if (typeof e == "string") return e.includes(",") ? e.split(",") : [e];
|
|
3088
|
+
let t = [];
|
|
3089
|
+
for (let n of e) n !== null && t.push(n);
|
|
3090
|
+
return t.length > 0 ? t : void 0;
|
|
3091
|
+
}
|
|
3092
|
+
function ai(e) {
|
|
3093
|
+
return Array.isArray(e) ? [...e] : e;
|
|
3094
|
+
}
|
|
3095
|
+
function oi(e, t) {
|
|
3096
|
+
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;
|
|
3097
|
+
}
|
|
3098
|
+
function si(e, t) {
|
|
3099
|
+
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
3100
|
+
for (let r of n) if (!oi(e[r], t[r])) return !1;
|
|
3101
|
+
return !0;
|
|
3102
|
+
}
|
|
3103
|
+
function ci(e) {
|
|
3086
3104
|
let t = {};
|
|
3087
3105
|
for (let [n, r] of Object.entries(P(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : t[n] = r === !0 ? "true" : r || void 0;
|
|
3088
3106
|
return t;
|
|
3089
3107
|
}
|
|
3090
|
-
function
|
|
3108
|
+
function li(e) {
|
|
3091
3109
|
let t = {};
|
|
3092
3110
|
return Object.keys(e).forEach((n) => {
|
|
3093
3111
|
let r = e[n];
|
|
3094
3112
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
3095
3113
|
}), t;
|
|
3096
3114
|
}
|
|
3097
|
-
function
|
|
3115
|
+
function ui(e, t) {
|
|
3116
|
+
let n = Object.keys(e), r = new Set(n.filter((t) => Array.isArray(e[t]))), i = new Set(t.booleanArrayKeys ?? []), a = (e, t) => {
|
|
3117
|
+
if (t != null) return r.has(e) ? ii(t) : typeof t == "string" && t.includes(",") ? t.split(",") : ai(t);
|
|
3118
|
+
}, o = (e) => {
|
|
3119
|
+
let t = {};
|
|
3120
|
+
for (let r of n) {
|
|
3121
|
+
let n = e[r];
|
|
3122
|
+
n !== void 0 && (t[r] = a(r, n));
|
|
3123
|
+
}
|
|
3124
|
+
return t;
|
|
3125
|
+
}, s = D(o(t.route.query)), c = di(e, { syncWith: s }), l = c.filters, u = (e, t) => {
|
|
3126
|
+
let n = a(e, t);
|
|
3127
|
+
return !i.has(e) || n === void 0 ? n : (Array.isArray(n) ? n : [n]).map((e) => {
|
|
3128
|
+
if (e === "true") return !0;
|
|
3129
|
+
if (e === "false") return !1;
|
|
3130
|
+
}).filter((e) => e !== void 0);
|
|
3131
|
+
};
|
|
3132
|
+
return G(() => o(t.route.query), (e) => {
|
|
3133
|
+
for (let t of n) {
|
|
3134
|
+
let n = u(t, e[t]);
|
|
3135
|
+
oi(l[t], n) || (l[t] = n);
|
|
3136
|
+
}
|
|
3137
|
+
}, { immediate: !0 }), G(s, (e) => {
|
|
3138
|
+
let r = { ...t.route.query };
|
|
3139
|
+
for (let t of n) e[t] === void 0 ? delete r[t] : r[t] = ai(e[t]);
|
|
3140
|
+
si(t.route.query, r) || t.router.replace({ query: r });
|
|
3141
|
+
}), c;
|
|
3142
|
+
}
|
|
3143
|
+
function di(e, t = {}) {
|
|
3098
3144
|
let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
3099
3145
|
if (i) {
|
|
3100
3146
|
if (i.value) {
|
|
@@ -3106,8 +3152,8 @@ function oi(e, t = {}) {
|
|
|
3106
3152
|
}
|
|
3107
3153
|
});
|
|
3108
3154
|
}
|
|
3109
|
-
|
|
3110
|
-
i.value =
|
|
3155
|
+
G(n, (e) => {
|
|
3156
|
+
i.value = li(e);
|
|
3111
3157
|
}, { deep: !0 });
|
|
3112
3158
|
}
|
|
3113
3159
|
return {
|
|
@@ -3130,87 +3176,87 @@ function oi(e, t = {}) {
|
|
|
3130
3176
|
}
|
|
3131
3177
|
//#endregion
|
|
3132
3178
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
3133
|
-
var
|
|
3179
|
+
var fi = { class: "g-table-outer-wrap" }, pi = {
|
|
3134
3180
|
key: 0,
|
|
3135
3181
|
class: "g-table-controls"
|
|
3136
|
-
},
|
|
3182
|
+
}, mi = { class: "g-table-control-actions" }, hi = {
|
|
3137
3183
|
key: 0,
|
|
3138
3184
|
class: "g-sort-builder-wrap"
|
|
3139
|
-
},
|
|
3185
|
+
}, gi = {
|
|
3140
3186
|
key: 0,
|
|
3141
3187
|
class: "g-sort-builder-count"
|
|
3142
|
-
},
|
|
3188
|
+
}, _i = {
|
|
3143
3189
|
key: 0,
|
|
3144
3190
|
class: "g-sort-builder-list"
|
|
3145
|
-
},
|
|
3191
|
+
}, vi = ["data-sort-row-key", "aria-label"], yi = {
|
|
3146
3192
|
class: "g-sort-builder-rule-priority",
|
|
3147
3193
|
"aria-hidden": "true"
|
|
3148
|
-
},
|
|
3194
|
+
}, bi = { class: "g-sort-builder-rule-label" }, xi = ["aria-label", "onClick"], Si = { class: "g-visually-hidden" }, Ci = {
|
|
3149
3195
|
class: "sort-indicator",
|
|
3150
3196
|
"aria-hidden": "true"
|
|
3151
|
-
},
|
|
3197
|
+
}, wi = ["aria-label", "onClick"], Ti = {
|
|
3152
3198
|
key: 1,
|
|
3153
3199
|
class: "g-sort-builder-empty"
|
|
3154
|
-
},
|
|
3200
|
+
}, Ei = {
|
|
3155
3201
|
key: 2,
|
|
3156
3202
|
class: "g-sort-builder-add"
|
|
3157
|
-
},
|
|
3203
|
+
}, Di = { class: "g-sort-builder-add-list" }, Oi = { class: "g-sort-builder-add-name" }, ki = { class: "g-sort-builder-add-actions" }, Ai = ["aria-label", "onClick"], ji = ["aria-label", "onClick"], Mi = {
|
|
3158
3204
|
class: "sort-indicator",
|
|
3159
3205
|
"aria-hidden": "true"
|
|
3160
|
-
},
|
|
3206
|
+
}, Ni = {
|
|
3161
3207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3162
3208
|
viewBox: "0 0 640 640",
|
|
3163
3209
|
height: "1.25em",
|
|
3164
3210
|
style: { transform: "rotate(180deg)" }
|
|
3165
|
-
},
|
|
3211
|
+
}, Pi = {
|
|
3166
3212
|
key: 1,
|
|
3167
3213
|
class: "g-column-visibility-wrap"
|
|
3168
|
-
},
|
|
3214
|
+
}, Fi = {
|
|
3169
3215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3170
3216
|
viewBox: "0 0 640 640",
|
|
3171
3217
|
height: "1.5em",
|
|
3172
3218
|
style: { transform: "rotate(90deg)" },
|
|
3173
3219
|
"aria-hidden": "true"
|
|
3174
|
-
},
|
|
3220
|
+
}, Ii = ["aria-labelledby"], Li = { class: "g-column-visibility-header" }, Ri = ["id"], zi = { class: "g-column-visibility-legend-action" }, Bi = { class: "g-column-visibility-list" }, Vi = ["checked", "onChange"], Hi = {
|
|
3175
3221
|
key: 2,
|
|
3176
3222
|
class: "g-table-custom-controls"
|
|
3177
|
-
},
|
|
3223
|
+
}, Ui = { class: "g-clear-filters-wrap" }, Wi = {
|
|
3178
3224
|
key: 0,
|
|
3179
3225
|
class: "pagination"
|
|
3180
|
-
},
|
|
3226
|
+
}, Gi = { class: "g-table-controls-right" }, Ki = { class: "g-result-count" }, qi = ["aria-label", "aria-rowcount"], Ji = { key: 0 }, Yi = ["data-column-key"], Xi = { class: "g-table-head" }, Zi = { "aria-rowindex": "1" }, Qi = {
|
|
3181
3227
|
key: 0,
|
|
3182
3228
|
scope: "col",
|
|
3183
3229
|
class: "g-th g-th-checkbox"
|
|
3184
|
-
},
|
|
3230
|
+
}, $i = [
|
|
3185
3231
|
"checked",
|
|
3186
3232
|
"indeterminate",
|
|
3187
3233
|
"aria-label"
|
|
3188
|
-
],
|
|
3234
|
+
], ea = ["id", "aria-sort"], ta = { class: "th-inner" }, na = ["onClick"], ra = {
|
|
3189
3235
|
key: 0,
|
|
3190
3236
|
class: "sort-indicator",
|
|
3191
3237
|
"aria-hidden": "true"
|
|
3192
|
-
},
|
|
3238
|
+
}, ia = {
|
|
3193
3239
|
key: 1,
|
|
3194
3240
|
class: "g-visually-hidden"
|
|
3195
|
-
},
|
|
3241
|
+
}, aa = {
|
|
3196
3242
|
key: 1,
|
|
3197
3243
|
class: "g-column-head"
|
|
3198
|
-
},
|
|
3244
|
+
}, oa = ["onClick", "aria-label"], sa = {
|
|
3199
3245
|
key: 1,
|
|
3200
3246
|
class: "g-filter-search",
|
|
3201
3247
|
role: "search"
|
|
3202
|
-
},
|
|
3248
|
+
}, ca = [
|
|
3203
3249
|
"onUpdate:modelValue",
|
|
3204
3250
|
"placeholder",
|
|
3205
3251
|
"aria-label"
|
|
3206
|
-
],
|
|
3252
|
+
], la = { key: 2 }, ua = { class: "g-filter-toggle" }, da = [
|
|
3207
3253
|
"onUpdate:modelValue",
|
|
3208
3254
|
"id",
|
|
3209
3255
|
"aria-describedby"
|
|
3210
|
-
],
|
|
3256
|
+
], fa = ["for"], pa = ["id"], ma = {
|
|
3211
3257
|
key: 4,
|
|
3212
3258
|
class: "g-multi-select"
|
|
3213
|
-
},
|
|
3259
|
+
}, ha = [
|
|
3214
3260
|
"data-column-key",
|
|
3215
3261
|
"aria-label",
|
|
3216
3262
|
"aria-valuemax",
|
|
@@ -3218,10 +3264,10 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3218
3264
|
"aria-valuetext",
|
|
3219
3265
|
"onKeydown",
|
|
3220
3266
|
"onPointerdown"
|
|
3221
|
-
],
|
|
3267
|
+
], ga = {
|
|
3222
3268
|
key: 1,
|
|
3223
3269
|
class: "g-bulk-actions-toolbar"
|
|
3224
|
-
},
|
|
3270
|
+
}, _a = { class: "g-selected-count" }, va = { class: "g-bulk-actions" }, ya = /* @__PURE__ */ u({
|
|
3225
3271
|
__name: "GTable",
|
|
3226
3272
|
props: /*@__PURE__*/ m({
|
|
3227
3273
|
label: {},
|
|
@@ -3279,7 +3325,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3279
3325
|
]),
|
|
3280
3326
|
setup(t, { emit: n }) {
|
|
3281
3327
|
let u = B(t, "sorts"), f = B(t, "filter"), p = B(t, "columnState"), m = B(t, "selectedRows"), h = t, v = n, b = h.filtering;
|
|
3282
|
-
b ||=
|
|
3328
|
+
b ||= di({});
|
|
3283
3329
|
let { filters: C, filteredColumns: T, isFiltered: E, clearFilters: A } = b, j = r(() => h.data.map((e) => e.key)), M = r(() => m.value.filter((e) => j.value.includes(e))), F = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : M.value.length === j.value.length), I = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : M.value.length > 0 && M.value.length < j.value.length), R = D(null);
|
|
3284
3330
|
function H() {
|
|
3285
3331
|
if (F.value) m.value = m.value.filter((e) => !j.value.includes(e));
|
|
@@ -3288,7 +3334,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3288
3334
|
j.value.forEach((t) => e.add(t)), m.value = Array.from(e);
|
|
3289
3335
|
}
|
|
3290
3336
|
}
|
|
3291
|
-
function
|
|
3337
|
+
function ee(e, t = !1) {
|
|
3292
3338
|
if (t && R.value) {
|
|
3293
3339
|
let t = j.value.indexOf(R.value), n = j.value.indexOf(e);
|
|
3294
3340
|
if (t !== -1 && n !== -1) {
|
|
@@ -3298,13 +3344,13 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3298
3344
|
} else m.value.includes(e) ? m.value = m.value.filter((t) => t !== e) : m.value = [...m.value, e];
|
|
3299
3345
|
R.value = e;
|
|
3300
3346
|
}
|
|
3301
|
-
function
|
|
3347
|
+
function G(e) {
|
|
3302
3348
|
v("row-click", e);
|
|
3303
3349
|
}
|
|
3304
|
-
function
|
|
3350
|
+
function te(e) {
|
|
3305
3351
|
v("bulk-action", e, m.value);
|
|
3306
3352
|
}
|
|
3307
|
-
function
|
|
3353
|
+
function re(e) {
|
|
3308
3354
|
let t = e.value, n = e.column.key, r = P(e.row[n]);
|
|
3309
3355
|
e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t;
|
|
3310
3356
|
let i = {
|
|
@@ -3315,13 +3361,13 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3315
3361
|
};
|
|
3316
3362
|
v("cell-change", i);
|
|
3317
3363
|
}
|
|
3318
|
-
function
|
|
3364
|
+
function J(e) {
|
|
3319
3365
|
v("update:startIndex", e ?? 0);
|
|
3320
3366
|
}
|
|
3321
|
-
function
|
|
3367
|
+
function ie(e) {
|
|
3322
3368
|
e !== void 0 && v("update:pageSize", e);
|
|
3323
3369
|
}
|
|
3324
|
-
let
|
|
3370
|
+
let Y = z(), ae = d(), oe = D(null), se = D(null), ce = D(null), le = D(null), ue = `${Y}-table`;
|
|
3325
3371
|
function de(e) {
|
|
3326
3372
|
let t = /* @__PURE__ */ new Set();
|
|
3327
3373
|
return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
|
|
@@ -3377,7 +3423,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3377
3423
|
}
|
|
3378
3424
|
function Te(e, t) {
|
|
3379
3425
|
Z([...X.value, fe(e, t)]), g(() => {
|
|
3380
|
-
let t =
|
|
3426
|
+
let t = oe.value;
|
|
3381
3427
|
t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
|
|
3382
3428
|
}).catch((e) => {
|
|
3383
3429
|
console.error(e);
|
|
@@ -3412,7 +3458,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3412
3458
|
if (!(typeof t != "number" || !Number.isFinite(t))) return $(t);
|
|
3413
3459
|
}
|
|
3414
3460
|
function Me(e) {
|
|
3415
|
-
return document.getElementById(`${
|
|
3461
|
+
return document.getElementById(`${Y}-th-${String(e)}`);
|
|
3416
3462
|
}
|
|
3417
3463
|
function Ne(e) {
|
|
3418
3464
|
let t = Me(e)?.getBoundingClientRect().width;
|
|
@@ -3422,7 +3468,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3422
3468
|
return je(e) ?? Ne(e);
|
|
3423
3469
|
}
|
|
3424
3470
|
function Fe(e) {
|
|
3425
|
-
let t = Pe(e), n =
|
|
3471
|
+
let t = Pe(e), n = ce.value?.getBoundingClientRect().width ?? se.value?.getBoundingClientRect().width ?? t;
|
|
3426
3472
|
return $(Math.max(t, n));
|
|
3427
3473
|
}
|
|
3428
3474
|
function Ie(e, t) {
|
|
@@ -3432,18 +3478,18 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3432
3478
|
Ie(e, Pe(e) + t);
|
|
3433
3479
|
}
|
|
3434
3480
|
function Re() {
|
|
3435
|
-
|
|
3481
|
+
le.value = null, window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", Re), window.removeEventListener("pointercancel", Re);
|
|
3436
3482
|
}
|
|
3437
3483
|
function ze(e) {
|
|
3438
|
-
if (!
|
|
3439
|
-
let t =
|
|
3440
|
-
Ie(
|
|
3484
|
+
if (!le.value) return;
|
|
3485
|
+
let t = le.value.startWidth + (e.clientX - le.value.startX);
|
|
3486
|
+
Ie(le.value.key, t);
|
|
3441
3487
|
}
|
|
3442
3488
|
function Be(e, t) {
|
|
3443
3489
|
if (!h.resizableColumns) return;
|
|
3444
3490
|
e.preventDefault(), e.stopPropagation();
|
|
3445
3491
|
let n = Pe(t);
|
|
3446
|
-
Ie(t, n),
|
|
3492
|
+
Ie(t, n), le.value = {
|
|
3447
3493
|
key: t,
|
|
3448
3494
|
startX: e.clientX,
|
|
3449
3495
|
startWidth: n
|
|
@@ -3482,9 +3528,9 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3482
3528
|
return `${Ue(e)} pixels`;
|
|
3483
3529
|
}
|
|
3484
3530
|
let Ge = r(() => {
|
|
3485
|
-
let e =
|
|
3531
|
+
let e = ae?.vnode.props ?? {};
|
|
3486
3532
|
return "columnState" in e || "column-state" in e || "onUpdate:columnState" in e;
|
|
3487
|
-
}), Ke = r(() => h.columns.filter((e) => ke(e.key).visible !== !1)), qe = V(), Je = r(() => Ke.value.length !== h.columns.length), Ye = r(() => Ge.value && h.columns.length > 0), Xe = r(() => !!qe.controls), Ze = r(() => h.resultCount ?? h.data.length);
|
|
3533
|
+
}), Ke = r(() => h.columns.filter((e) => ke(e.key).visible !== !1)), qe = V(), 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);
|
|
3488
3534
|
function Qe(e) {
|
|
3489
3535
|
return ke(e.key).visible !== !1;
|
|
3490
3536
|
}
|
|
@@ -3513,17 +3559,17 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3513
3559
|
}), S(() => {
|
|
3514
3560
|
h.rowClickable && h.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
3515
3561
|
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.`);
|
|
3516
|
-
}), (n, r) => (w(), o("div",
|
|
3517
|
-
nt.value ? (w(), o("div",
|
|
3518
|
-
s("div",
|
|
3519
|
-
me.value ? (w(), o("div",
|
|
3520
|
-
trigger:
|
|
3562
|
+
}), (n, r) => (w(), o("div", fi, [
|
|
3563
|
+
nt.value ? (w(), o("div", pi, [
|
|
3564
|
+
s("div", mi, [
|
|
3565
|
+
me.value ? (w(), o("div", hi, [l(ot, null, {
|
|
3566
|
+
trigger: K(({ toggle: e }) => [l(Q, {
|
|
3521
3567
|
size: "small",
|
|
3522
3568
|
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": X.value.length > 0 }]),
|
|
3523
3569
|
"aria-label": "Choose sort order",
|
|
3524
3570
|
onClick: e
|
|
3525
3571
|
}, {
|
|
3526
|
-
default:
|
|
3572
|
+
default: K(() => [r[1] ||= s("svg", {
|
|
3527
3573
|
class: "g-sort-builder-trigger-icon",
|
|
3528
3574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3529
3575
|
viewBox: "0 0 640 640",
|
|
@@ -3532,33 +3578,33 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3532
3578
|
}, [s("path", {
|
|
3533
3579
|
fill: "currentColor",
|
|
3534
3580
|
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"
|
|
3535
|
-
})], -1), X.value.length ? (w(), o("span",
|
|
3581
|
+
})], -1), X.value.length ? (w(), o("span", gi, N(X.value.length), 1)) : a("", !0)]),
|
|
3536
3582
|
_: 1
|
|
3537
3583
|
}, 8, ["class", "onClick"])]),
|
|
3538
|
-
default:
|
|
3584
|
+
default: K(() => [s("fieldset", {
|
|
3539
3585
|
ref_key: "sortBuilderRef",
|
|
3540
|
-
ref:
|
|
3586
|
+
ref: oe,
|
|
3541
3587
|
class: "g-sort-builder-popover",
|
|
3542
3588
|
tabindex: "-1",
|
|
3543
3589
|
"popover-focus": ""
|
|
3544
3590
|
}, [
|
|
3545
3591
|
r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
3546
3592
|
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),
|
|
3547
|
-
X.value.length ? (w(), o("ol",
|
|
3593
|
+
X.value.length ? (w(), o("ol", _i, [(w(!0), o(e, null, O(X.value, (e, t) => (w(), o("li", {
|
|
3548
3594
|
key: e.key,
|
|
3549
3595
|
class: "g-sort-builder-rule",
|
|
3550
3596
|
tabindex: "-1",
|
|
3551
3597
|
"data-sort-row-key": String(e.key),
|
|
3552
3598
|
"aria-label": `${ve(e.key)} ${xe(e.order)} sort, priority ${t + 1}`
|
|
3553
3599
|
}, [
|
|
3554
|
-
s("span",
|
|
3555
|
-
s("span",
|
|
3600
|
+
s("span", yi, N(t + 1), 1),
|
|
3601
|
+
s("span", bi, N(ve(e.key)), 1),
|
|
3556
3602
|
s("button", {
|
|
3557
3603
|
type: "button",
|
|
3558
3604
|
class: "g-sort-builder-direction",
|
|
3559
3605
|
"aria-label": `Toggle ${ve(e.key)} sort direction`,
|
|
3560
3606
|
onClick: (t) => Ee(e.key)
|
|
3561
|
-
}, [s("span",
|
|
3607
|
+
}, [s("span", Si, N(xe(e.order)), 1), s("span", Ci, [(w(), o("svg", {
|
|
3562
3608
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3563
3609
|
viewBox: "0 0 640 640",
|
|
3564
3610
|
height: "1.25em",
|
|
@@ -3566,18 +3612,18 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3566
3612
|
}, [...r[2] ||= [s("path", {
|
|
3567
3613
|
fill: "currentColor",
|
|
3568
3614
|
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"
|
|
3569
|
-
}, null, -1)]], 4))])], 8,
|
|
3615
|
+
}, null, -1)]], 4))])], 8, xi),
|
|
3570
3616
|
s("button", {
|
|
3571
3617
|
type: "button",
|
|
3572
3618
|
class: "g-sort-builder-remove",
|
|
3573
3619
|
"aria-label": `Remove ${ve(e.key)} sort`,
|
|
3574
3620
|
onClick: (t) => De(e.key)
|
|
3575
|
-
}, " Remove ", 8,
|
|
3576
|
-
], 8,
|
|
3577
|
-
he.value.length ? (w(), o("div",
|
|
3621
|
+
}, " Remove ", 8, wi)
|
|
3622
|
+
], 8, vi))), 128))])) : (w(), o("p", Ti, " No active sort rules. ")),
|
|
3623
|
+
he.value.length ? (w(), o("div", Ei, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", Di, [(w(!0), o(e, null, O(he.value, (e) => (w(), o("li", {
|
|
3578
3624
|
key: e.key,
|
|
3579
3625
|
class: "g-sort-builder-add-item"
|
|
3580
|
-
}, [s("span",
|
|
3626
|
+
}, [s("span", Oi, N(e.label), 1), s("div", ki, [s("button", {
|
|
3581
3627
|
type: "button",
|
|
3582
3628
|
class: "g-sort-builder-direction",
|
|
3583
3629
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
@@ -3592,15 +3638,15 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3592
3638
|
}, [s("path", {
|
|
3593
3639
|
fill: "currentColor",
|
|
3594
3640
|
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"
|
|
3595
|
-
})])], -1)]], 8,
|
|
3641
|
+
})])], -1)]], 8, Ai), s("button", {
|
|
3596
3642
|
type: "button",
|
|
3597
3643
|
class: "g-sort-builder-direction",
|
|
3598
3644
|
"aria-label": `Add ${e.label} descending sort`,
|
|
3599
3645
|
onClick: (t) => Te(e.key, -1)
|
|
3600
|
-
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span",
|
|
3646
|
+
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", Mi, [(w(), o("svg", Ni, [...r[4] ||= [s("path", {
|
|
3601
3647
|
fill: "currentColor",
|
|
3602
3648
|
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"
|
|
3603
|
-
}, null, -1)]]))])], 8,
|
|
3649
|
+
}, null, -1)]]))])], 8, ji)])]))), 128))])])) : a("", !0),
|
|
3604
3650
|
X.value.length ? (w(), i(Q, {
|
|
3605
3651
|
key: 3,
|
|
3606
3652
|
outlined: "",
|
|
@@ -3608,51 +3654,51 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3608
3654
|
class: "g-sort-builder-clear",
|
|
3609
3655
|
onClick: Oe
|
|
3610
3656
|
}, {
|
|
3611
|
-
default:
|
|
3657
|
+
default: K(() => [...r[7] ||= [c(" Clear sort ", -1)]]),
|
|
3612
3658
|
_: 1
|
|
3613
3659
|
})) : a("", !0)
|
|
3614
3660
|
], 512)]),
|
|
3615
3661
|
_: 1
|
|
3616
3662
|
})])) : a("", !0),
|
|
3617
|
-
Ye.value ? (w(), o("div",
|
|
3618
|
-
trigger:
|
|
3663
|
+
Ye.value ? (w(), o("div", Pi, [l(ot, null, {
|
|
3664
|
+
trigger: K(({ toggle: e }) => [l(Q, {
|
|
3619
3665
|
size: "small",
|
|
3620
3666
|
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Je.value }]),
|
|
3621
3667
|
"aria-label": "Choose visible columns",
|
|
3622
3668
|
onClick: e
|
|
3623
3669
|
}, {
|
|
3624
|
-
default:
|
|
3670
|
+
default: K(() => [(w(), o("svg", Fi, [...r[10] ||= [s("path", {
|
|
3625
3671
|
fill: "currentColor",
|
|
3626
3672
|
d: "M64 160C64 142.3 78.3 128 96 128L480 128C497.7 128 512 142.3 512 160C512 177.7 497.7 192 480 192L96 192C78.3 192 64 177.7 64 160zM128 320C128 302.3 142.3 288 160 288L544 288C561.7 288 576 302.3 576 320C576 337.7 561.7 352 544 352L160 352C142.3 352 128 337.7 128 320zM512 480C512 497.7 497.7 512 480 512L96 512C78.3 512 64 497.7 64 480C64 462.3 78.3 448 96 448L480 448C497.7 448 512 462.3 512 480z"
|
|
3627
3673
|
}, null, -1)]]))]),
|
|
3628
3674
|
_: 1
|
|
3629
3675
|
}, 8, ["class", "onClick"])]),
|
|
3630
|
-
default:
|
|
3676
|
+
default: K(() => [s("fieldset", {
|
|
3631
3677
|
class: "g-column-visibility-popover",
|
|
3632
|
-
"aria-labelledby": `${L(
|
|
3633
|
-
}, [s("div",
|
|
3634
|
-
id: `${L(
|
|
3678
|
+
"aria-labelledby": `${L(Y)}-column-visibility-heading`
|
|
3679
|
+
}, [s("div", Li, [s("span", {
|
|
3680
|
+
id: `${L(Y)}-column-visibility-heading`,
|
|
3635
3681
|
class: "g-column-visibility-heading"
|
|
3636
|
-
}, " Shown columns ", 8,
|
|
3682
|
+
}, " Shown columns ", 8, Ri), s("span", zi, [l(Q, {
|
|
3637
3683
|
text: "",
|
|
3638
3684
|
size: "small",
|
|
3639
3685
|
class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Je.value }]),
|
|
3640
3686
|
onClick: et
|
|
3641
3687
|
}, {
|
|
3642
|
-
default:
|
|
3688
|
+
default: K(() => [...r[11] ||= [c(" Show All ", -1)]]),
|
|
3643
3689
|
_: 1
|
|
3644
|
-
}, 8, ["class"])])]), s("div",
|
|
3690
|
+
}, 8, ["class"])])]), s("div", Bi, [(w(!0), o(e, null, O(t.columns, (e) => (w(), o("label", {
|
|
3645
3691
|
key: e.key,
|
|
3646
3692
|
class: "g-column-visibility-option"
|
|
3647
3693
|
}, [s("input", {
|
|
3648
3694
|
checked: Qe(e),
|
|
3649
3695
|
type: "checkbox",
|
|
3650
3696
|
onChange: (t) => $e(e, t.target.checked)
|
|
3651
|
-
}, null, 40,
|
|
3697
|
+
}, null, 40, Vi), s("span", null, N(e.label), 1)]))), 128))])], 8, Ii)]),
|
|
3652
3698
|
_: 1
|
|
3653
3699
|
})])) : a("", !0),
|
|
3654
|
-
Xe.value ? (w(), o("div",
|
|
3655
|
-
s("div",
|
|
3700
|
+
Xe.value ? (w(), o("div", Hi, [k(n.$slots, "controls")])) : a("", !0),
|
|
3701
|
+
s("div", Ui, [L(E) ? (w(), i(Q, {
|
|
3656
3702
|
key: 0,
|
|
3657
3703
|
outlined: "",
|
|
3658
3704
|
size: "small",
|
|
@@ -3660,7 +3706,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3660
3706
|
"aria-label": "Clear Filters",
|
|
3661
3707
|
onClick: L(A)
|
|
3662
3708
|
}, {
|
|
3663
|
-
default:
|
|
3709
|
+
default: K(() => [...r[12] ||= [s("svg", {
|
|
3664
3710
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3665
3711
|
viewBox: "0 0 640 640",
|
|
3666
3712
|
height: "1.5em",
|
|
@@ -3672,48 +3718,48 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3672
3718
|
_: 1
|
|
3673
3719
|
}, 8, ["onClick"])) : a("", !0)])
|
|
3674
3720
|
]),
|
|
3675
|
-
tt.value ? (w(), o("div",
|
|
3721
|
+
tt.value ? (w(), o("div", Wi, [l(ei, {
|
|
3676
3722
|
start: t.startIndex,
|
|
3677
3723
|
"page-size": t.pageSize,
|
|
3678
3724
|
"page-sizes": t.pageSizes,
|
|
3679
3725
|
total: Ze.value,
|
|
3680
|
-
"onUpdate:start":
|
|
3681
|
-
"onUpdate:pageSize":
|
|
3726
|
+
"onUpdate:start": J,
|
|
3727
|
+
"onUpdate:pageSize": ie
|
|
3682
3728
|
}, null, 8, [
|
|
3683
3729
|
"start",
|
|
3684
3730
|
"page-size",
|
|
3685
3731
|
"page-sizes",
|
|
3686
3732
|
"total"
|
|
3687
3733
|
])])) : a("", !0),
|
|
3688
|
-
s("span",
|
|
3734
|
+
s("div", Gi, [s("span", Ki, N(Ze.value) + " results", 1), k(n.$slots, "right-controls")])
|
|
3689
3735
|
])) : a("", !0),
|
|
3690
3736
|
s("div", {
|
|
3691
3737
|
ref_key: "tableWrapRef",
|
|
3692
|
-
ref:
|
|
3738
|
+
ref: ce,
|
|
3693
3739
|
class: "g-table-table-wrap"
|
|
3694
3740
|
}, [s("table", {
|
|
3695
3741
|
id: ue,
|
|
3696
3742
|
class: _(["g-table", { "g-table--resizable": t.resizableColumns }]),
|
|
3697
3743
|
ref_key: "tableRef",
|
|
3698
|
-
ref:
|
|
3744
|
+
ref: se,
|
|
3699
3745
|
"aria-label": t.label,
|
|
3700
3746
|
"aria-rowcount": Ze.value
|
|
3701
3747
|
}, [
|
|
3702
|
-
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col",
|
|
3748
|
+
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", Ji)) : a("", !0), (w(!0), o(e, null, O(Ke.value, (e) => (w(), o("col", {
|
|
3703
3749
|
key: e.key,
|
|
3704
3750
|
"data-column-key": String(e.key),
|
|
3705
3751
|
style: y(He(e))
|
|
3706
|
-
}, null, 12,
|
|
3707
|
-
s("thead",
|
|
3752
|
+
}, null, 12, Yi))), 128))]),
|
|
3753
|
+
s("thead", Xi, [s("tr", Zi, [t.bulkSelectionEnabled ? (w(), o("th", Qi, [s("input", {
|
|
3708
3754
|
type: "checkbox",
|
|
3709
3755
|
checked: F.value,
|
|
3710
3756
|
indeterminate: I.value,
|
|
3711
3757
|
onChange: H,
|
|
3712
3758
|
"aria-label": F.value ? "Deselect all rows" : "Select all rows",
|
|
3713
3759
|
class: "g-bulk-select-checkbox"
|
|
3714
|
-
}, null, 40,
|
|
3760
|
+
}, null, 40, $i)])) : a("", !0), (w(!0), o(e, null, O(Ke.value, (e) => (w(), o("th", {
|
|
3715
3761
|
key: e.key,
|
|
3716
|
-
id: `${L(
|
|
3762
|
+
id: `${L(Y)}-th-${String(e.key)}`,
|
|
3717
3763
|
"aria-sort": ye(e.key),
|
|
3718
3764
|
class: _([
|
|
3719
3765
|
"g-th",
|
|
@@ -3722,14 +3768,14 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3722
3768
|
{ filtered: L(T)[e.key] }
|
|
3723
3769
|
]),
|
|
3724
3770
|
scope: "col"
|
|
3725
|
-
}, [s("div",
|
|
3771
|
+
}, [s("div", ta, [e.sortable ? (w(), o("button", {
|
|
3726
3772
|
key: 0,
|
|
3727
3773
|
type: "button",
|
|
3728
3774
|
class: "g-column-head",
|
|
3729
3775
|
onClick: (t) => we(e, t.shiftKey)
|
|
3730
3776
|
}, [
|
|
3731
3777
|
c(N(e.label) + " ", 1),
|
|
3732
|
-
ge(e.key) === -1 ? a("", !0) : (w(), o("span",
|
|
3778
|
+
ge(e.key) === -1 ? a("", !0) : (w(), o("span", ra, [(w(), o("svg", {
|
|
3733
3779
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3734
3780
|
viewBox: "0 0 640 640",
|
|
3735
3781
|
height: "1.5em",
|
|
@@ -3738,10 +3784,10 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3738
3784
|
fill: "currentColor",
|
|
3739
3785
|
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"
|
|
3740
3786
|
}, null, -1)]], 4))])),
|
|
3741
|
-
ge(e.key) === -1 ? a("", !0) : (w(), o("span",
|
|
3742
|
-
], 8,
|
|
3743
|
-
trigger:
|
|
3744
|
-
onClick:
|
|
3787
|
+
ge(e.key) === -1 ? a("", !0) : (w(), o("span", ia, N(be(e.key)), 1))
|
|
3788
|
+
], 8, na)) : (w(), o("span", aa, N(e.label), 1)), e.filter ? (w(), i(ot, { key: 2 }, {
|
|
3789
|
+
trigger: K(({ toggle: t }) => [s("button", {
|
|
3790
|
+
onClick: q(t, ["stop"]),
|
|
3745
3791
|
"aria-label": L(T)[e.key] ? "Column Filtered" : "Filter Column",
|
|
3746
3792
|
class: _(["g-filter-btn", { "g-active": L(T)[e.key] }]),
|
|
3747
3793
|
type: "button"
|
|
@@ -3753,8 +3799,8 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3753
3799
|
}, [s("path", {
|
|
3754
3800
|
fill: "currentColor",
|
|
3755
3801
|
d: "M96 128C83.1 128 71.4 135.8 66.4 147.8C61.4 159.8 64.2 173.5 73.4 182.6L256 365.3L256 480C256 488.5 259.4 496.6 265.4 502.6L329.4 566.6C338.6 575.8 352.3 578.5 364.3 573.5C376.3 568.5 384 556.9 384 544L384 365.3L566.6 182.7C575.8 173.5 578.5 159.8 573.5 147.8C568.5 135.8 556.9 128 544 128L96 128z"
|
|
3756
|
-
})], -1)]], 10,
|
|
3757
|
-
default:
|
|
3802
|
+
})], -1)]], 10, oa)]),
|
|
3803
|
+
default: K(() => [e.filter.type === "select" ? (w(), i(Kt, {
|
|
3758
3804
|
key: 0,
|
|
3759
3805
|
modelValue: f.value[e.key],
|
|
3760
3806
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
@@ -3769,7 +3815,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3769
3815
|
"onUpdate:modelValue",
|
|
3770
3816
|
"options",
|
|
3771
3817
|
"search-description"
|
|
3772
|
-
])) : e.filter.type === "search" ? (w(), o("div",
|
|
3818
|
+
])) : e.filter.type === "search" ? (w(), o("div", sa, [r[15] ||= s("span", {
|
|
3773
3819
|
class: "g-filter-search-icon",
|
|
3774
3820
|
"aria-hidden": "true"
|
|
3775
3821
|
}, [s("svg", {
|
|
@@ -3779,25 +3825,25 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3779
3825
|
}, [s("path", {
|
|
3780
3826
|
fill: "currentColor",
|
|
3781
3827
|
d: "M30 9.76A14.05 14.05 0 1 0 28.3 31l11.3 13a3.34 3.34 0 0 0 4.72-4.72L31.44 27.86A14.05 14.05 0 0 0 30 9.76ZM27.27 27a10.26 10.26 0 1 1 0-14.5 10.25 10.25 0 0 1 0 14.5Z"
|
|
3782
|
-
})])], -1),
|
|
3828
|
+
})])], -1), ne(s("input", {
|
|
3783
3829
|
type: "search",
|
|
3784
3830
|
class: "g-filter-search-input",
|
|
3785
3831
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3786
3832
|
placeholder: e.filter.placeholder,
|
|
3787
3833
|
"aria-label": `Search ${e.label}`
|
|
3788
|
-
}, null, 8,
|
|
3789
|
-
|
|
3834
|
+
}, null, 8, ca), [[W, f.value[e.key]]])])) : e.filter.type === "toggle" ? (w(), o("div", la, [s("div", ua, [
|
|
3835
|
+
ne(s("input", {
|
|
3790
3836
|
type: "checkbox",
|
|
3791
3837
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3792
|
-
id: `${L(
|
|
3793
|
-
"aria-describedby": e.filter.description ? `${L(
|
|
3794
|
-
}, null, 8,
|
|
3795
|
-
s("label", { for: `${L(
|
|
3838
|
+
id: `${L(Y)}-filter-${String(e.key)}`,
|
|
3839
|
+
"aria-describedby": e.filter.description ? `${L(Y)}-filter-description-${String(e.key)}` : void 0
|
|
3840
|
+
}, null, 8, da), [[U, f.value[e.key]]]),
|
|
3841
|
+
s("label", { for: `${L(Y)}-filter-${String(e.key)}` }, N(e.filter.label), 9, fa),
|
|
3796
3842
|
e.filter.description ? (w(), o("span", {
|
|
3797
3843
|
key: 0,
|
|
3798
3844
|
class: "g-filter-description",
|
|
3799
|
-
id: `${L(
|
|
3800
|
-
}, N(e.filter.description), 9,
|
|
3845
|
+
id: `${L(Y)}-filter-description-${String(e.key)}`
|
|
3846
|
+
}, N(e.filter.description), 9, pa)) : a("", !0)
|
|
3801
3847
|
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(br, {
|
|
3802
3848
|
key: 3,
|
|
3803
3849
|
modelValue: f.value[e.key],
|
|
@@ -3813,7 +3859,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3813
3859
|
"options",
|
|
3814
3860
|
"placeholder",
|
|
3815
3861
|
"search-description"
|
|
3816
|
-
])) : e.filter.type === "multi-select" ? (w(), o("div",
|
|
3862
|
+
])) : e.filter.type === "multi-select" ? (w(), o("div", ma, [l(jr, {
|
|
3817
3863
|
modelValue: f.value[e.key],
|
|
3818
3864
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3819
3865
|
options: rt(e),
|
|
@@ -3829,14 +3875,14 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3829
3875
|
size: "small",
|
|
3830
3876
|
onClick: (t) => f.value[e.key] = []
|
|
3831
3877
|
}, {
|
|
3832
|
-
default:
|
|
3878
|
+
default: K(() => [...r[16] ||= [c(" Clear ", -1)]]),
|
|
3833
3879
|
_: 1
|
|
3834
3880
|
}, 8, ["onClick"])) : a("", !0)])) : a("", !0)]),
|
|
3835
3881
|
_: 2
|
|
3836
3882
|
}, 1024)) : a("", !0)]), t.resizableColumns ? (w(), o("div", {
|
|
3837
3883
|
key: 0,
|
|
3838
3884
|
"data-column-key": String(e.key),
|
|
3839
|
-
class: _(["g-column-resize-handle", { "g-column-resize-handle--active":
|
|
3885
|
+
class: _(["g-column-resize-handle", { "g-column-resize-handle--active": le.value?.key === e.key }]),
|
|
3840
3886
|
role: "separator",
|
|
3841
3887
|
tabindex: "0",
|
|
3842
3888
|
"aria-orientation": "vertical",
|
|
@@ -3846,10 +3892,10 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3846
3892
|
"aria-valuemax": Fe(e.key),
|
|
3847
3893
|
"aria-valuenow": Ue(e.key),
|
|
3848
3894
|
"aria-valuetext": We(e.key),
|
|
3849
|
-
onClick: r[0] ||=
|
|
3895
|
+
onClick: r[0] ||= q(() => {}, ["stop", "prevent"]),
|
|
3850
3896
|
onKeydown: (t) => Ve(t, e.key),
|
|
3851
3897
|
onPointerdown: (t) => Be(t, e.key)
|
|
3852
|
-
}, null, 42,
|
|
3898
|
+
}, null, 42, ha)) : a("", !0)], 10, ea))), 128))])]),
|
|
3853
3899
|
l(ir, {
|
|
3854
3900
|
data: t.data,
|
|
3855
3901
|
columns: Ke.value,
|
|
@@ -3860,11 +3906,11 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3860
3906
|
"start-index": t.startIndex,
|
|
3861
3907
|
"bulk-selection-enabled": t.bulkSelectionEnabled,
|
|
3862
3908
|
"selected-rows": m.value,
|
|
3863
|
-
"table-id": L(
|
|
3909
|
+
"table-id": L(Y),
|
|
3864
3910
|
"change-tracker": t.changeTracker,
|
|
3865
|
-
onRowClick:
|
|
3866
|
-
onToggleRow:
|
|
3867
|
-
onCellChange:
|
|
3911
|
+
onRowClick: G,
|
|
3912
|
+
onToggleRow: ee,
|
|
3913
|
+
onCellChange: re
|
|
3868
3914
|
}, null, 8, [
|
|
3869
3915
|
"data",
|
|
3870
3916
|
"columns",
|
|
@@ -3878,18 +3924,18 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3878
3924
|
"table-id",
|
|
3879
3925
|
"change-tracker"
|
|
3880
3926
|
])
|
|
3881
|
-
], 10,
|
|
3882
|
-
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div",
|
|
3927
|
+
], 10, qi)], 512),
|
|
3928
|
+
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", ga, [s("span", _a, N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", va, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
|
|
3883
3929
|
theme: e.theme || "accent",
|
|
3884
|
-
onClick: (t) =>
|
|
3930
|
+
onClick: (t) => te(e.id),
|
|
3885
3931
|
size: "small"
|
|
3886
3932
|
}, {
|
|
3887
|
-
default:
|
|
3933
|
+
default: K(() => [c(N(e.label) + " " + N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s"), 1)]),
|
|
3888
3934
|
_: 2
|
|
3889
3935
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
3890
3936
|
]));
|
|
3891
3937
|
}
|
|
3892
|
-
}),
|
|
3938
|
+
}), ba = ["id"], xa = { class: "g-modal-inner" }, Sa = { class: "g-modal-header" }, Ca = ["id"], wa = ["id"], Ta = /* @__PURE__ */ u({
|
|
3893
3939
|
__name: "GModal",
|
|
3894
3940
|
props: {
|
|
3895
3941
|
label: {},
|
|
@@ -3920,7 +3966,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3920
3966
|
name: "g-fade",
|
|
3921
3967
|
appear: ""
|
|
3922
3968
|
}, {
|
|
3923
|
-
default:
|
|
3969
|
+
default: K(() => [s("div", h({
|
|
3924
3970
|
id: "modal-" + L(m),
|
|
3925
3971
|
class: ["g-modal", E.value],
|
|
3926
3972
|
role: "dialog",
|
|
@@ -3933,12 +3979,12 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3933
3979
|
ref_key: "dialog",
|
|
3934
3980
|
ref: f,
|
|
3935
3981
|
style: { zIndex: L(y) }
|
|
3936
|
-
}), [s("div",
|
|
3982
|
+
}), [s("div", xa, [s("div", Sa, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
|
|
3937
3983
|
key: 0,
|
|
3938
3984
|
id: "modal-label-" + L(m),
|
|
3939
3985
|
class: "g-modal-label",
|
|
3940
3986
|
tabindex: "-1"
|
|
3941
|
-
}, N(e.label), 9,
|
|
3987
|
+
}, N(e.label), 9, Ca)), s("button", {
|
|
3942
3988
|
class: "g-modal-close",
|
|
3943
3989
|
onClick: T,
|
|
3944
3990
|
"aria-label": "Close"
|
|
@@ -3953,19 +3999,19 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
3953
3999
|
})], -1)]])]), s("div", {
|
|
3954
4000
|
id: "modal-description-" + L(m),
|
|
3955
4001
|
class: "g-modal-content"
|
|
3956
|
-
}, [k(r.$slots, "default")], 8,
|
|
4002
|
+
}, [k(r.$slots, "default")], 8, wa)])], 16, ba)]),
|
|
3957
4003
|
_: 3
|
|
3958
4004
|
})]));
|
|
3959
4005
|
}
|
|
3960
|
-
}),
|
|
4006
|
+
}), Ea = [
|
|
3961
4007
|
"id",
|
|
3962
4008
|
"aria-expanded",
|
|
3963
4009
|
"aria-label",
|
|
3964
4010
|
"aria-controls"
|
|
3965
|
-
],
|
|
4011
|
+
], Da = {
|
|
3966
4012
|
key: 0,
|
|
3967
4013
|
class: "g-hamburger-label"
|
|
3968
|
-
},
|
|
4014
|
+
}, Oa = /* @__PURE__ */ u({
|
|
3969
4015
|
__name: "GHamburgerMenu",
|
|
3970
4016
|
props: {
|
|
3971
4017
|
label: { default: "Main Navigation" },
|
|
@@ -4001,34 +4047,34 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4001
4047
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4002
4048
|
viewBox: "0 0 51.26 51.26",
|
|
4003
4049
|
role: "none"
|
|
4004
|
-
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span",
|
|
4050
|
+
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (w(), o("span", Da, N(e.label), 1)) : a("", !0)], 42, Ea));
|
|
4005
4051
|
}
|
|
4006
|
-
}),
|
|
4052
|
+
}), ka = /* @__PURE__ */ u({
|
|
4007
4053
|
__name: "GDetailList",
|
|
4008
4054
|
props: { variant: { default: "grid" } },
|
|
4009
4055
|
setup(e) {
|
|
4010
4056
|
let t = e;
|
|
4011
4057
|
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
|
|
4012
4058
|
}
|
|
4013
|
-
}),
|
|
4059
|
+
}), Aa = { class: "g-detail-list-item" }, ja = { class: "g-detail-list-item__label" }, Ma = { class: "g-detail-list-item__value" }, Na = /* @__PURE__ */ u({
|
|
4014
4060
|
__name: "GDetailListItem",
|
|
4015
4061
|
props: { label: {} },
|
|
4016
4062
|
setup(e) {
|
|
4017
|
-
return (t, n) => (w(), o("div",
|
|
4063
|
+
return (t, n) => (w(), o("div", Aa, [s("dt", ja, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", Ma, [k(t.$slots, "default")])]));
|
|
4018
4064
|
}
|
|
4019
|
-
}),
|
|
4065
|
+
}), Pa = {
|
|
4020
4066
|
key: 0,
|
|
4021
4067
|
class: "g-scroll-lock-overlay"
|
|
4022
|
-
},
|
|
4068
|
+
}, Fa = /* @__PURE__ */ u({
|
|
4023
4069
|
__name: "GOverlay",
|
|
4024
4070
|
setup(e) {
|
|
4025
4071
|
let { hasScrollLock: t } = Je();
|
|
4026
4072
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
4027
|
-
default:
|
|
4073
|
+
default: K(() => [L(t) ? (w(), o("div", Pa)) : a("", !0)]),
|
|
4028
4074
|
_: 1
|
|
4029
4075
|
}));
|
|
4030
4076
|
}
|
|
4031
|
-
}),
|
|
4077
|
+
}), Ia = { class: "popover-content" }, La = { class: "year-dropdown" }, Ra = { class: "month-selector" }, za = /* @__PURE__ */ u({
|
|
4032
4078
|
__name: "GTermSelectorControl",
|
|
4033
4079
|
props: /*@__PURE__*/ m({
|
|
4034
4080
|
termYears: { default: () => ["2026"] },
|
|
@@ -4049,7 +4095,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4049
4095
|
emits: ["update:modelValue"],
|
|
4050
4096
|
setup(e) {
|
|
4051
4097
|
let t = B(e, "modelValue");
|
|
4052
|
-
return (n, r) => (w(), o("div",
|
|
4098
|
+
return (n, r) => (w(), o("div", Ia, [s("div", La, [l(Kt, {
|
|
4053
4099
|
modelValue: t.value.year,
|
|
4054
4100
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
4055
4101
|
options: e.termYears,
|
|
@@ -4058,7 +4104,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4058
4104
|
"modelValue",
|
|
4059
4105
|
"options",
|
|
4060
4106
|
"label"
|
|
4061
|
-
])]), s("div",
|
|
4107
|
+
])]), s("div", Ra, [l(xt, {
|
|
4062
4108
|
modelValue: t.value.name,
|
|
4063
4109
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
4064
4110
|
options: e.termNames,
|
|
@@ -4070,10 +4116,10 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4070
4116
|
"label"
|
|
4071
4117
|
])])]));
|
|
4072
4118
|
}
|
|
4073
|
-
}),
|
|
4119
|
+
}), Ba = { class: "g-term-selector" }, Va = { class: "g-term-label" }, Ha = {
|
|
4074
4120
|
class: "g-popover-title",
|
|
4075
4121
|
tabindex: "-1"
|
|
4076
|
-
},
|
|
4122
|
+
}, Ua = /* @__PURE__ */ u({
|
|
4077
4123
|
__name: "GTermSelector",
|
|
4078
4124
|
props: /*@__PURE__*/ m({
|
|
4079
4125
|
heading: { default: "Period Selection" },
|
|
@@ -4095,20 +4141,20 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4095
4141
|
emits: ["update:modelValue"],
|
|
4096
4142
|
setup(e) {
|
|
4097
4143
|
let t = B(e, "modelValue");
|
|
4098
|
-
return (n, r) => (w(), o("div",
|
|
4099
|
-
trigger:
|
|
4144
|
+
return (n, r) => (w(), o("div", Ba, [l(ot, null, {
|
|
4145
|
+
trigger: K(({ toggle: e }) => [l(Q, {
|
|
4100
4146
|
class: "g-term-selector-button",
|
|
4101
4147
|
theme: "none",
|
|
4102
4148
|
outlined: "",
|
|
4103
4149
|
onClick: e
|
|
4104
4150
|
}, {
|
|
4105
|
-
default:
|
|
4151
|
+
default: K(() => [
|
|
4106
4152
|
r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
|
|
4107
4153
|
role: "none",
|
|
4108
4154
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4109
4155
|
viewBox: "0 0 640 640"
|
|
4110
4156
|
}, [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),
|
|
4111
|
-
s("span",
|
|
4157
|
+
s("span", Va, N(t.value?.name) + " " + N(t.value?.year), 1),
|
|
4112
4158
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
4113
4159
|
role: "none",
|
|
4114
4160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4117,15 +4163,15 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4117
4163
|
]),
|
|
4118
4164
|
_: 1
|
|
4119
4165
|
}, 8, ["onClick"])]),
|
|
4120
|
-
default:
|
|
4166
|
+
default: K(() => [s("h2", Ha, N(e.heading), 1), l(za, v(f(n.$props)), null, 16)]),
|
|
4121
4167
|
_: 1
|
|
4122
4168
|
})]));
|
|
4123
4169
|
}
|
|
4124
|
-
}),
|
|
4170
|
+
}), Wa = { class: "g-user-menu" }, Ga = [
|
|
4125
4171
|
"aria-label",
|
|
4126
4172
|
"aria-expanded",
|
|
4127
4173
|
"onClick"
|
|
4128
|
-
],
|
|
4174
|
+
], Ka = { class: "g-user-menu__popover" }, qa = { class: "g-user-menu__list" }, Ja = /* @__PURE__ */ u({
|
|
4129
4175
|
__name: "GUserMenu",
|
|
4130
4176
|
props: {
|
|
4131
4177
|
initials: {},
|
|
@@ -4137,20 +4183,20 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4137
4183
|
let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
|
|
4138
4184
|
d()?.appContext?.components?.RouterLink;
|
|
4139
4185
|
let c = V();
|
|
4140
|
-
return (u, d) => (w(), o("div",
|
|
4186
|
+
return (u, d) => (w(), o("div", Wa, [l(ot, {
|
|
4141
4187
|
modelValue: r.value,
|
|
4142
4188
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
4143
4189
|
minimal: ""
|
|
4144
4190
|
}, {
|
|
4145
|
-
trigger:
|
|
4191
|
+
trigger: K(({ toggle: e }) => [s("button", {
|
|
4146
4192
|
class: "g-user-menu__avatar",
|
|
4147
4193
|
style: y({ backgroundColor: t.color }),
|
|
4148
4194
|
"aria-label": t.initials + " - " + t.label,
|
|
4149
4195
|
"aria-expanded": r.value,
|
|
4150
4196
|
"aria-haspopup": "menu",
|
|
4151
4197
|
onClick: e
|
|
4152
|
-
}, N(t.initials), 13,
|
|
4153
|
-
default:
|
|
4198
|
+
}, N(t.initials), 13, Ga)]),
|
|
4199
|
+
default: K(() => [s("div", Ka, [s("h2", {
|
|
4154
4200
|
id: n,
|
|
4155
4201
|
ref_key: "emailHeading",
|
|
4156
4202
|
ref: a,
|
|
@@ -4159,11 +4205,11 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4159
4205
|
}, N(t.email), 513), s("nav", {
|
|
4160
4206
|
class: "g-user-menu__nav",
|
|
4161
4207
|
"aria-labelledby": n
|
|
4162
|
-
}, [s("ul",
|
|
4208
|
+
}, [s("ul", qa, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
|
|
4163
4209
|
_: 1
|
|
4164
4210
|
}, 8, ["modelValue"])]));
|
|
4165
4211
|
}
|
|
4166
|
-
}),
|
|
4212
|
+
}), Ya = /* @__PURE__ */ u({
|
|
4167
4213
|
__name: "GCurrencyInput",
|
|
4168
4214
|
props: /*@__PURE__*/ m({
|
|
4169
4215
|
label: { default: void 0 },
|
|
@@ -4214,7 +4260,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4214
4260
|
"form-key"
|
|
4215
4261
|
]));
|
|
4216
4262
|
}
|
|
4217
|
-
}),
|
|
4263
|
+
}), Xa = /* @__PURE__ */ u({
|
|
4218
4264
|
__name: "GEmailInput",
|
|
4219
4265
|
props: /*@__PURE__*/ m({
|
|
4220
4266
|
label: { default: void 0 },
|
|
@@ -4259,13 +4305,13 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4259
4305
|
"instructions"
|
|
4260
4306
|
]));
|
|
4261
4307
|
}
|
|
4262
|
-
}),
|
|
4308
|
+
}), Za = ["for"], Qa = {
|
|
4263
4309
|
key: 0,
|
|
4264
4310
|
class: "g-file-input-required"
|
|
4265
|
-
},
|
|
4311
|
+
}, $a = {
|
|
4266
4312
|
key: 0,
|
|
4267
4313
|
class: "g-file-input-box-header"
|
|
4268
|
-
},
|
|
4314
|
+
}, eo = ["id"], to = [
|
|
4269
4315
|
"id",
|
|
4270
4316
|
"disabled",
|
|
4271
4317
|
"required",
|
|
@@ -4274,11 +4320,11 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4274
4320
|
"aria-invalid",
|
|
4275
4321
|
"aria-describedby",
|
|
4276
4322
|
"aria-errormessage"
|
|
4277
|
-
],
|
|
4323
|
+
], no = {
|
|
4278
4324
|
key: 1,
|
|
4279
4325
|
class: "g-file-input-pills",
|
|
4280
4326
|
"aria-label": "Selected files"
|
|
4281
|
-
},
|
|
4327
|
+
}, ro = /* @__PURE__ */ u({
|
|
4282
4328
|
inheritAttrs: !1,
|
|
4283
4329
|
__name: "GFileInput",
|
|
4284
4330
|
props: /*@__PURE__*/ m({
|
|
@@ -4335,12 +4381,12 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4335
4381
|
key: 0,
|
|
4336
4382
|
for: L(d),
|
|
4337
4383
|
class: "g-file-input-label"
|
|
4338
|
-
}, [c(N(t.label) + " ", 1), t.required ? (w(), o("span",
|
|
4384
|
+
}, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", Qa, "*")) : a("", !0)], 8, Za)) : a("", !0),
|
|
4339
4385
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
4340
|
-
t.instructions ? (w(), o("div",
|
|
4386
|
+
t.instructions ? (w(), o("div", $a, [s("span", {
|
|
4341
4387
|
id: "instructions-" + L(d),
|
|
4342
4388
|
class: "g-file-input-instructions"
|
|
4343
|
-
}, N(t.instructions), 9,
|
|
4389
|
+
}, N(t.instructions), 9, eo)])) : a("", !0),
|
|
4344
4390
|
s("input", {
|
|
4345
4391
|
id: L(d),
|
|
4346
4392
|
type: "file",
|
|
@@ -4353,8 +4399,8 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4353
4399
|
"aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
|
|
4354
4400
|
"aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
|
|
4355
4401
|
onChange: g
|
|
4356
|
-
}, null, 40,
|
|
4357
|
-
t.multiple && b.value.length > 0 ? (w(), o("ul",
|
|
4402
|
+
}, null, 40, to),
|
|
4403
|
+
t.multiple && b.value.length > 0 ? (w(), o("ul", no, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
|
|
4358
4404
|
key: e,
|
|
4359
4405
|
class: "g-file-input-pill"
|
|
4360
4406
|
}, [r[0] ||= s("svg", {
|
|
@@ -4370,7 +4416,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4370
4416
|
}, null, 8, ["errors", "id"])
|
|
4371
4417
|
], 2));
|
|
4372
4418
|
}
|
|
4373
|
-
}),
|
|
4419
|
+
}), io = /* @__PURE__ */ u({
|
|
4374
4420
|
__name: "GDateInput",
|
|
4375
4421
|
props: /*@__PURE__*/ m({
|
|
4376
4422
|
label: { default: void 0 },
|
|
@@ -4418,21 +4464,21 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4418
4464
|
"form-key"
|
|
4419
4465
|
]));
|
|
4420
4466
|
}
|
|
4421
|
-
}),
|
|
4467
|
+
}), ao = { class: "g-date-range-input" }, oo = {
|
|
4422
4468
|
key: 0,
|
|
4423
4469
|
class: "g-date-range-input__label"
|
|
4424
|
-
},
|
|
4470
|
+
}, so = {
|
|
4425
4471
|
key: 0,
|
|
4426
4472
|
class: "g-date-range-input__required",
|
|
4427
4473
|
"aria-hidden": "true"
|
|
4428
|
-
},
|
|
4474
|
+
}, co = {
|
|
4429
4475
|
key: 1,
|
|
4430
4476
|
class: "g-date-range-input__instructions"
|
|
4431
|
-
},
|
|
4477
|
+
}, lo = { class: "g-date-range-input__fields" }, uo = {
|
|
4432
4478
|
key: 2,
|
|
4433
4479
|
class: "g-date-range-input__errors",
|
|
4434
4480
|
role: "alert"
|
|
4435
|
-
},
|
|
4481
|
+
}, fo = /* @__PURE__ */ u({
|
|
4436
4482
|
__name: "GDateRangeInput",
|
|
4437
4483
|
props: /*@__PURE__*/ m({
|
|
4438
4484
|
label: { default: void 0 },
|
|
@@ -4465,17 +4511,17 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4465
4511
|
errors: F(n, "errors"),
|
|
4466
4512
|
formKey: n.formKey
|
|
4467
4513
|
});
|
|
4468
|
-
return
|
|
4514
|
+
return G([i, u], () => {
|
|
4469
4515
|
r.value = {
|
|
4470
4516
|
start: i.value,
|
|
4471
4517
|
end: u.value
|
|
4472
4518
|
};
|
|
4473
|
-
}),
|
|
4519
|
+
}), G(r, (e) => {
|
|
4474
4520
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4475
|
-
}, { deep: !0 }), (t, r) => (w(), o("div",
|
|
4476
|
-
n.label ? (w(), o("div",
|
|
4477
|
-
n.instructions ? (w(), o("div",
|
|
4478
|
-
s("div",
|
|
4521
|
+
}, { deep: !0 }), (t, r) => (w(), o("div", ao, [
|
|
4522
|
+
n.label ? (w(), o("div", oo, [c(N(n.label), 1), n.required ? (w(), o("span", so, " *")) : a("", !0)])) : a("", !0),
|
|
4523
|
+
n.instructions ? (w(), o("div", co, N(n.instructions), 1)) : a("", !0),
|
|
4524
|
+
s("div", lo, [l(io, {
|
|
4479
4525
|
modelValue: i.value,
|
|
4480
4526
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
4481
4527
|
label: n.startLabel,
|
|
@@ -4487,7 +4533,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4487
4533
|
"label",
|
|
4488
4534
|
"disabled",
|
|
4489
4535
|
"required"
|
|
4490
|
-
]), l(
|
|
4536
|
+
]), l(io, {
|
|
4491
4537
|
modelValue: u.value,
|
|
4492
4538
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
4493
4539
|
label: n.endLabel,
|
|
@@ -4500,13 +4546,13 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4500
4546
|
"disabled",
|
|
4501
4547
|
"required"
|
|
4502
4548
|
])]),
|
|
4503
|
-
L(d).length > 0 ? (w(), o("div",
|
|
4549
|
+
L(d).length > 0 ? (w(), o("div", uo, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
|
|
4504
4550
|
key: t,
|
|
4505
4551
|
class: "g-date-range-input__error"
|
|
4506
4552
|
}, N(e), 1))), 128))])) : a("", !0)
|
|
4507
4553
|
]));
|
|
4508
4554
|
}
|
|
4509
|
-
}),
|
|
4555
|
+
}), po = ["action", "method"], mo = /* @__PURE__ */ u({
|
|
4510
4556
|
__name: "GForm",
|
|
4511
4557
|
props: /*@__PURE__*/ m({
|
|
4512
4558
|
action: { default: void 0 },
|
|
@@ -4519,9 +4565,9 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4519
4565
|
emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
|
|
4520
4566
|
setup(e, { emit: t }) {
|
|
4521
4567
|
let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (Z() ? Ae(n.formKey) : Oe());
|
|
4522
|
-
a || T("form", s),
|
|
4568
|
+
a || T("form", s), G(() => s.values.value, (e) => {
|
|
4523
4569
|
r.value = { ...e };
|
|
4524
|
-
}, { deep: !0 }),
|
|
4570
|
+
}, { deep: !0 }), G(() => r.value, (e) => {
|
|
4525
4571
|
e && Object.entries(e).forEach(([e, t]) => {
|
|
4526
4572
|
let n = s.fields[e];
|
|
4527
4573
|
n && n.value.value !== t && (n.value.value = t);
|
|
@@ -4546,9 +4592,9 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4546
4592
|
hasErrors: L(s).hasErrors.value,
|
|
4547
4593
|
values: L(s).values.value,
|
|
4548
4594
|
errors: L(s).errors.value
|
|
4549
|
-
})], 40,
|
|
4595
|
+
})], 40, po));
|
|
4550
4596
|
}
|
|
4551
|
-
}),
|
|
4597
|
+
}), ho = /* @__PURE__ */ u({
|
|
4552
4598
|
__name: "GSubmitButton",
|
|
4553
4599
|
props: {
|
|
4554
4600
|
disabled: {
|
|
@@ -4567,15 +4613,15 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4567
4613
|
variant: t.variant,
|
|
4568
4614
|
class: "g-submit-button"
|
|
4569
4615
|
}, {
|
|
4570
|
-
default:
|
|
4616
|
+
default: K(() => [ne(s("span", null, N(t.loadingText), 513), [[ee, d.value]]), ne(s("span", null, [k(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[ee, !d.value]])]),
|
|
4571
4617
|
_: 3
|
|
4572
4618
|
}, 8, ["disabled", "variant"]));
|
|
4573
4619
|
}
|
|
4574
|
-
}),
|
|
4620
|
+
}), go = ["for"], _o = {
|
|
4575
4621
|
key: 0,
|
|
4576
4622
|
class: "g-textarea-required",
|
|
4577
4623
|
"aria-hidden": "true"
|
|
4578
|
-
},
|
|
4624
|
+
}, vo = ["id"], yo = [
|
|
4579
4625
|
"value",
|
|
4580
4626
|
"placeholder",
|
|
4581
4627
|
"disabled",
|
|
@@ -4584,11 +4630,11 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4584
4630
|
"rows",
|
|
4585
4631
|
"maxlength",
|
|
4586
4632
|
"aria-invalid"
|
|
4587
|
-
],
|
|
4633
|
+
], bo = {
|
|
4588
4634
|
key: 2,
|
|
4589
4635
|
class: "g-textarea-char-count",
|
|
4590
4636
|
"aria-live": "polite"
|
|
4591
|
-
},
|
|
4637
|
+
}, xo = /* @__PURE__ */ u({
|
|
4592
4638
|
inheritAttrs: !1,
|
|
4593
4639
|
__name: "GTextarea",
|
|
4594
4640
|
props: /*@__PURE__*/ m({
|
|
@@ -4632,7 +4678,7 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4632
4678
|
let e = x.value;
|
|
4633
4679
|
e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
4634
4680
|
}
|
|
4635
|
-
|
|
4681
|
+
G(() => i.value, () => {
|
|
4636
4682
|
n.autoGrow && g(S);
|
|
4637
4683
|
});
|
|
4638
4684
|
function C(e) {
|
|
@@ -4662,12 +4708,12 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4662
4708
|
key: 0,
|
|
4663
4709
|
for: m.value,
|
|
4664
4710
|
class: "g-textarea-label"
|
|
4665
|
-
}, [c(N(n.label), 1), n.required ? (w(), o("span",
|
|
4711
|
+
}, [c(N(n.label), 1), n.required ? (w(), o("span", _o, " *")) : a("", !0)], 8, go)) : a("", !0),
|
|
4666
4712
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
4667
4713
|
key: 1,
|
|
4668
4714
|
id: "instructions-" + L(u),
|
|
4669
4715
|
class: "g-textarea-instructions"
|
|
4670
|
-
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8,
|
|
4716
|
+
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, vo)) : a("", !0),
|
|
4671
4717
|
s("textarea", h({
|
|
4672
4718
|
ref: "textareaEl",
|
|
4673
4719
|
value: i.value ?? "",
|
|
@@ -4688,8 +4734,8 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4688
4734
|
onInput: T,
|
|
4689
4735
|
onBlur: E,
|
|
4690
4736
|
onPaste: D
|
|
4691
|
-
}), null, 16,
|
|
4692
|
-
n.maxlength === void 0 ? a("", !0) : (w(), o("div",
|
|
4737
|
+
}), null, 16, yo),
|
|
4738
|
+
n.maxlength === void 0 ? a("", !0) : (w(), o("div", bo, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
|
|
4693
4739
|
l(Me, {
|
|
4694
4740
|
errors: L(v),
|
|
4695
4741
|
id: "error-message-" + L(u)
|
|
@@ -4699,18 +4745,18 @@ var si = { class: "g-table-outer-wrap" }, ci = {
|
|
|
4699
4745
|
});
|
|
4700
4746
|
//#endregion
|
|
4701
4747
|
//#region src/compose/useActiveLink.ts
|
|
4702
|
-
function
|
|
4748
|
+
function So(e, t, n) {
|
|
4703
4749
|
let r = [
|
|
4704
4750
|
0,
|
|
4705
4751
|
.25,
|
|
4706
4752
|
.5,
|
|
4707
4753
|
.75,
|
|
4708
4754
|
1
|
|
4709
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(
|
|
4755
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(Y(e)?.children || []));
|
|
4710
4756
|
ue(e, () => {
|
|
4711
|
-
o.value = Array.from(
|
|
4757
|
+
o.value = Array.from(Y(e)?.children || []);
|
|
4712
4758
|
}, { childList: !0 });
|
|
4713
|
-
let { stop: s } =
|
|
4759
|
+
let { stop: s } = ce(o, (e) => {
|
|
4714
4760
|
let t = o.value[o.value.length - 1];
|
|
4715
4761
|
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);
|
|
4716
4762
|
let r = null, i = 0;
|
|
@@ -4729,8 +4775,8 @@ function go(e, t, n) {
|
|
|
4729
4775
|
}
|
|
4730
4776
|
//#endregion
|
|
4731
4777
|
//#region src/compose/useSidebar.ts
|
|
4732
|
-
function
|
|
4733
|
-
let t = z(), n = D(!1), r =
|
|
4778
|
+
function Co(e = "(max-width: 800px)") {
|
|
4779
|
+
let t = z(), n = D(!1), r = le(e, { ssrWidth: 1e3 });
|
|
4734
4780
|
function i(e) {
|
|
4735
4781
|
if (!r.value || !n.value) return;
|
|
4736
4782
|
let i = e.target, a = document.getElementById(`${t}-sidebar`), o = document.getElementById(`${t}-hamburger`);
|
|
@@ -4746,7 +4792,7 @@ function _o(e = "(max-width: 800px)") {
|
|
|
4746
4792
|
}, 5));
|
|
4747
4793
|
}
|
|
4748
4794
|
return S(() => {
|
|
4749
|
-
|
|
4795
|
+
G(r, (e) => {
|
|
4750
4796
|
e ? (document.addEventListener("mousedown", i), document.addEventListener("focusin", a)) : (document.removeEventListener("mousedown", i), document.removeEventListener("focusin", a));
|
|
4751
4797
|
}, { immediate: !0 });
|
|
4752
4798
|
}), x(() => {
|
|
@@ -4759,9 +4805,88 @@ function _o(e = "(max-width: 800px)") {
|
|
|
4759
4805
|
};
|
|
4760
4806
|
}
|
|
4761
4807
|
//#endregion
|
|
4808
|
+
//#region src/compose/usePaging.ts
|
|
4809
|
+
function wo(e) {
|
|
4810
|
+
let t = /* @__PURE__ */ new Set();
|
|
4811
|
+
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
4812
|
+
}
|
|
4813
|
+
function To(e) {
|
|
4814
|
+
return e == null ? [] : wo((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
4815
|
+
key: e.replace(/^-/, ""),
|
|
4816
|
+
order: e.startsWith("-") ? -1 : 1
|
|
4817
|
+
})));
|
|
4818
|
+
}
|
|
4819
|
+
function Eo(e) {
|
|
4820
|
+
let t = wo(e);
|
|
4821
|
+
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
4822
|
+
}
|
|
4823
|
+
function Do(e, t = []) {
|
|
4824
|
+
let n = wo(e);
|
|
4825
|
+
if (n.length === 0) return;
|
|
4826
|
+
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 ? "-" : "";
|
|
4827
|
+
return t.forEach((e) => {
|
|
4828
|
+
i.has(e) || r.push(`${a}${e}`);
|
|
4829
|
+
}), r.join(",");
|
|
4830
|
+
}
|
|
4831
|
+
function Oo(e) {
|
|
4832
|
+
return Array.isArray(e) ? [...e] : e;
|
|
4833
|
+
}
|
|
4834
|
+
function ko(e, t) {
|
|
4835
|
+
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;
|
|
4836
|
+
}
|
|
4837
|
+
function Ao(e, t) {
|
|
4838
|
+
return e.length === t.length && e.every((e, n) => {
|
|
4839
|
+
let r = t[n];
|
|
4840
|
+
return e.key === r?.key && e.order === r?.order;
|
|
4841
|
+
});
|
|
4842
|
+
}
|
|
4843
|
+
function jo(e, t) {
|
|
4844
|
+
if (typeof e == "string") return Number(e);
|
|
4845
|
+
if (Array.isArray(e)) {
|
|
4846
|
+
let n = e.find((e) => e !== null);
|
|
4847
|
+
return n ? Number(n) : t;
|
|
4848
|
+
}
|
|
4849
|
+
return t;
|
|
4850
|
+
}
|
|
4851
|
+
function Mo(e = {}) {
|
|
4852
|
+
let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortsKey ?? "sorts", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = M([]), c = D(t), l = D(n);
|
|
4853
|
+
return e.route && e.router && (G(() => e.route?.query[i], (e) => {
|
|
4854
|
+
let t = To(e);
|
|
4855
|
+
Ao(s.value, t) || (s.value = t);
|
|
4856
|
+
}, { immediate: !0 }), G(() => e.route?.query[a], (e) => {
|
|
4857
|
+
let n = jo(e, t);
|
|
4858
|
+
c.value !== n && (c.value = n);
|
|
4859
|
+
}, { immediate: !0 }), G(() => e.route?.query[o], (e) => {
|
|
4860
|
+
let t = jo(e, n);
|
|
4861
|
+
l.value !== t && (l.value = t);
|
|
4862
|
+
}, { immediate: !0 }), G([
|
|
4863
|
+
s,
|
|
4864
|
+
c,
|
|
4865
|
+
l
|
|
4866
|
+
], ([r, s, c]) => {
|
|
4867
|
+
let l = { ...e.route.query }, u = Eo(r);
|
|
4868
|
+
u === void 0 ? delete l[i] : l[i] = Oo(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);
|
|
4869
|
+
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
4870
|
+
for (let t of d) if (!ko(e.route.query[t], l[t])) {
|
|
4871
|
+
f = !0;
|
|
4872
|
+
break;
|
|
4873
|
+
}
|
|
4874
|
+
f && e.router.replace({ query: l });
|
|
4875
|
+
})), {
|
|
4876
|
+
sorts: r({
|
|
4877
|
+
get: () => wo(s.value),
|
|
4878
|
+
set: (e) => {
|
|
4879
|
+
s.value = wo(e);
|
|
4880
|
+
}
|
|
4881
|
+
}),
|
|
4882
|
+
pageSize: c,
|
|
4883
|
+
pageOffset: l
|
|
4884
|
+
};
|
|
4885
|
+
}
|
|
4886
|
+
//#endregion
|
|
4762
4887
|
//#region src/compose/useTableChanges.ts
|
|
4763
|
-
function
|
|
4764
|
-
let e = j(/* @__PURE__ */ new Map()), t =
|
|
4888
|
+
function No() {
|
|
4889
|
+
let e = j(/* @__PURE__ */ new Map()), t = re(), n = (n) => {
|
|
4765
4890
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
4766
4891
|
e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
|
|
4767
4892
|
let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
|
|
@@ -4863,6 +4988,6 @@ function vo() {
|
|
|
4863
4988
|
};
|
|
4864
4989
|
}
|
|
4865
4990
|
//#endregion
|
|
4866
|
-
export {
|
|
4991
|
+
export { tt as $, li as A, xn as B, Oa as C, ti as D, ri as E, br as F, un as G, gn as H, ir as I, Mt as J, nn as K, Un as L, di as M, ui as N, ci as O, jr as P, ot as Q, On as R, ka as S, ya as T, mn as U, bn as V, pn as W, xt as X, Et as Y, mt as Z, Ja as _, Eo as a, $ as at, Fa as b, So as c, De as ct, mo as d, Q as dt, et, fo as f, Ya as g, Xa as h, To as i, ze as it, ii as j, ni as k, xo as l, xe as lt, ro as m, Do as n, qe as nt, Mo as o, Ae as ot, io as p, Kt as q, wo as r, Je as rt, Co as s, Oe as st, No as t, $e as tt, ho as u, be as ut, Ua as v, Ta as w, Na as x, za as y, Cn as z };
|
|
4867
4992
|
|
|
4868
|
-
//# sourceMappingURL=grad-vue-
|
|
4993
|
+
//# sourceMappingURL=grad-vue-ChdGX6W9.js.map
|