@illinois-grad/grad-vue 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{grad-vue-BEsMZsHZ.js → grad-vue-BP-cplar.js} +165 -161
- package/dist/grad-vue-BP-cplar.js.map +1 -0
- package/dist/grad-vue-elements.css +31 -31
- package/dist/grad-vue-elements.js +26 -22
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-BEsMZsHZ.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 ee, vShow as te, watch as W, watchEffect as ne, withCtx as G, withDirectives as re, withModifiers as K } from "vue";
|
|
2
|
+
import { createEventHook as q, toArray as J, tryOnScopeDispose as ie, unrefElement as Y, useClipboard as ae, useDebounceFn as X, useFocusWithin as Z, useIntersectionObserver as oe, useMediaQuery as se, useMutationObserver as ce, useResizeObserver as le, useSessionStorage as ue } from "@vueuse/core";
|
|
3
3
|
import { createFocusTrap as de } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
5
|
function Q() {
|
|
@@ -79,7 +79,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__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: G(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span", pe, [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 pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
147
147
|
id: L(u),
|
|
148
148
|
class: "g-tree-menu__title"
|
|
149
149
|
}, {
|
|
150
|
-
default:
|
|
150
|
+
default: G(() => [k(n.$slots, "heading", {}, () => [c(N(e.heading), 1)])]),
|
|
151
151
|
_: 3
|
|
152
152
|
}, 8, ["id"])) : a("", !0),
|
|
153
153
|
s("div", he, [e.smallHeading ? a("", !0) : (w(), o("div", ge)), e.showExpandAll ? (w(), o("div", _e, [s("button", {
|
|
@@ -179,7 +179,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
179
179
|
role: L(o) ? "list" : void 0,
|
|
180
180
|
class: "g-tree-menu__list"
|
|
181
181
|
}, {
|
|
182
|
-
default:
|
|
182
|
+
default: G(() => [k(e.$slots, "default")]),
|
|
183
183
|
_: 3
|
|
184
184
|
}, 8, ["role"]));
|
|
185
185
|
}
|
|
@@ -220,9 +220,9 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
220
220
|
return n.expanded;
|
|
221
221
|
}
|
|
222
222
|
let C = D(b());
|
|
223
|
-
|
|
223
|
+
W(() => n.expanded, (e) => {
|
|
224
224
|
v && n.label !== void 0 || (C.value = e);
|
|
225
|
-
}),
|
|
225
|
+
}), W(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 pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
235
235
|
function P() {
|
|
236
236
|
O?.delete(E);
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
W(C, (e) => {
|
|
239
239
|
O && g.value && O.set(E, e);
|
|
240
|
-
}), j &&
|
|
240
|
+
}), j && W(() => 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 pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
261
261
|
class: "g-tree-menu__item",
|
|
262
262
|
"data-tree-expandable": g.value ? "true" : void 0
|
|
263
263
|
}), {
|
|
264
|
-
default:
|
|
264
|
+
default: G(() => [g.value ? (w(), o("div", xe, [s("span", {
|
|
265
265
|
class: "g-tree-menu__row-content",
|
|
266
266
|
"data-tree-primary": "",
|
|
267
267
|
onClick: F
|
|
@@ -287,7 +287,7 @@ var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, $ = /* @__PUR
|
|
|
287
287
|
key: 2,
|
|
288
288
|
id: L(f) + "-children"
|
|
289
289
|
}, {
|
|
290
|
-
default:
|
|
290
|
+
default: G(() => [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 W(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 = de(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 W(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
|
+
W(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 } = fe(), 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), W(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"), K.value = !1, q.value = null);
|
|
722
722
|
});
|
|
723
723
|
function P() {
|
|
724
724
|
p.value = !0, f("update:modelValue", !0);
|
|
@@ -732,8 +732,8 @@ 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%" }), ee = D(!1), ne = D(!1), K = D(!1), q = 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;
|
|
@@ -742,30 +742,32 @@ var nt = /* @__PURE__ */ u({
|
|
|
742
742
|
}
|
|
743
743
|
function Y() {
|
|
744
744
|
if (!b.value) return;
|
|
745
|
-
let e =
|
|
746
|
-
|
|
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
|
+
K.value = r > n, q.value = K.value ? n : null;
|
|
747
|
+
let i = new DOMRect(0, 0, e.offsetWidth, Math.min(r, n)), a = ie();
|
|
748
|
+
if (!a) {
|
|
747
749
|
B.value = {
|
|
748
|
-
top: Math.max((t.height -
|
|
749
|
-
left: Math.max((t.width -
|
|
750
|
-
},
|
|
750
|
+
top: Math.max((t.height - i.height) / 2, 16),
|
|
751
|
+
left: Math.max((t.width - i.width) / 2, 16)
|
|
752
|
+
}, ne.value = !1, ee.value = !1, U.value = { left: "50%" };
|
|
751
753
|
return;
|
|
752
754
|
}
|
|
753
|
-
let { top:
|
|
755
|
+
let { top: o, left: s, xOffset: c, placedAbove: l, overlay: u } = tt(a.getBoundingClientRect(), i, t, { gap: d.minimal ? 0 : 8 });
|
|
754
756
|
B.value = {
|
|
755
|
-
top:
|
|
756
|
-
left:
|
|
757
|
+
top: o,
|
|
758
|
+
left: s
|
|
757
759
|
}, U.value = {
|
|
758
|
-
left: `${
|
|
759
|
-
top:
|
|
760
|
-
bottom:
|
|
761
|
-
},
|
|
760
|
+
left: `${i.width / 2 - c}px`,
|
|
761
|
+
top: l ? "auto" : void 0,
|
|
762
|
+
bottom: l ? "-8px" : void 0
|
|
763
|
+
}, ee.value = l, ne.value = u;
|
|
762
764
|
}
|
|
763
|
-
return
|
|
765
|
+
return W(p, (e) => {
|
|
764
766
|
e ? g(() => {
|
|
765
|
-
Y(), window.addEventListener("resize", Y), window.addEventListener("scroll", Y, { capture: !0 }), b.value && (
|
|
766
|
-
}) : (window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }),
|
|
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());
|
|
767
769
|
}), x(() => {
|
|
768
|
-
window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }),
|
|
770
|
+
window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, { capture: !0 }), J && J.disconnect();
|
|
769
771
|
}), c({
|
|
770
772
|
show: P,
|
|
771
773
|
hide: I,
|
|
@@ -777,22 +779,23 @@ var nt = /* @__PURE__ */ u({
|
|
|
777
779
|
class: "g-popover-trigger",
|
|
778
780
|
id: `${L(T)}-trigger`
|
|
779
781
|
}, [k(r.$slots, "trigger", { toggle: R })], 8, it)) : a("", !0), l(nt, null, {
|
|
780
|
-
default:
|
|
782
|
+
default: G(() => [(w(), i(t, {
|
|
781
783
|
to: "#modal-root",
|
|
782
784
|
disabled: L(C)
|
|
783
785
|
}, [l(n, {
|
|
784
786
|
name: "g-popover-expand",
|
|
785
787
|
appear: ""
|
|
786
788
|
}, {
|
|
787
|
-
default:
|
|
789
|
+
default: G(() => [L(S) || p.value ? re((w(), o("div", {
|
|
788
790
|
key: 0,
|
|
789
791
|
ref_key: "popoverRef",
|
|
790
792
|
ref: b,
|
|
791
793
|
class: _({
|
|
792
794
|
"g-popover": !0,
|
|
793
|
-
"g-popover-above":
|
|
794
|
-
"g-popover-below": !
|
|
795
|
-
"g-popover-minimal": e.minimal
|
|
795
|
+
"g-popover-above": ee.value,
|
|
796
|
+
"g-popover-below": !ee.value,
|
|
797
|
+
"g-popover-minimal": e.minimal,
|
|
798
|
+
"g-popover-scrollable": K.value
|
|
796
799
|
}),
|
|
797
800
|
role: "dialog",
|
|
798
801
|
"aria-modal": "true",
|
|
@@ -801,16 +804,17 @@ var nt = /* @__PURE__ */ u({
|
|
|
801
804
|
style: y({
|
|
802
805
|
top: B.value.top + "px",
|
|
803
806
|
left: B.value.left + "px",
|
|
804
|
-
zIndex: L(j)
|
|
807
|
+
zIndex: L(j),
|
|
808
|
+
maxHeight: q.value === null ? void 0 : `${q.value}px`
|
|
805
809
|
})
|
|
806
810
|
}, [
|
|
807
|
-
!
|
|
811
|
+
!ne.value && !e.minimal && !K.value ? (w(), o("div", {
|
|
808
812
|
key: 0,
|
|
809
|
-
class: _(["g-popover-arrow", { "g-popover-arrow-above":
|
|
813
|
+
class: _(["g-popover-arrow", { "g-popover-arrow-above": ee.value }]),
|
|
810
814
|
style: y(U.value),
|
|
811
815
|
"aria-hidden": "true"
|
|
812
816
|
}, null, 6)) : a("", !0),
|
|
813
|
-
|
|
817
|
+
k(r.$slots, "default"),
|
|
814
818
|
e.minimal ? a("", !0) : (w(), o("button", {
|
|
815
819
|
key: 1,
|
|
816
820
|
class: "g-popover-close",
|
|
@@ -826,7 +830,7 @@ var nt = /* @__PURE__ */ u({
|
|
|
826
830
|
fill: "currentColor",
|
|
827
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"
|
|
828
832
|
})], -1)]]))
|
|
829
|
-
], 14, at)), [[
|
|
833
|
+
], 14, at)), [[te, p.value]]) : a("", !0)]),
|
|
830
834
|
_: 3
|
|
831
835
|
})], 8, ["disabled"]))]),
|
|
832
836
|
_: 3
|
|
@@ -918,15 +922,15 @@ var mt = /* @__PURE__ */ u({
|
|
|
918
922
|
function I(e) {
|
|
919
923
|
(e.key === "Escape" || e.key === "Esc") && (p.value = !1, m.value = !1);
|
|
920
924
|
}
|
|
921
|
-
return
|
|
925
|
+
return W(() => [
|
|
922
926
|
u.value,
|
|
923
927
|
d.value,
|
|
924
928
|
l.value
|
|
925
929
|
], () => {
|
|
926
930
|
A(b()), S();
|
|
927
|
-
}, { immediate: !0 }),
|
|
931
|
+
}, { immediate: !0 }), W(() => i.text, (e) => {
|
|
928
932
|
f.value && (f.value.textContent = e);
|
|
929
|
-
}),
|
|
933
|
+
}), W(() => p.value || m.value, (e) => {
|
|
930
934
|
if (e) {
|
|
931
935
|
S(), f.value && y && ft(y, f.value), g ||= (window.addEventListener("scroll", C, { capture: !0 }), !0);
|
|
932
936
|
return;
|
|
@@ -1127,7 +1131,7 @@ var mt = /* @__PURE__ */ u({
|
|
|
1127
1131
|
name: "g-fade",
|
|
1128
1132
|
appear: ""
|
|
1129
1133
|
}, {
|
|
1130
|
-
default:
|
|
1134
|
+
default: G(() => [s("div", {
|
|
1131
1135
|
id: "alertdialog-" + L(f),
|
|
1132
1136
|
class: "g-alertdialog",
|
|
1133
1137
|
role: "alertdialog",
|
|
@@ -1150,13 +1154,13 @@ var mt = /* @__PURE__ */ u({
|
|
|
1150
1154
|
outlined: "",
|
|
1151
1155
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1152
1156
|
}, {
|
|
1153
|
-
default:
|
|
1157
|
+
default: G(() => [...r[2] ||= [c("Cancel", -1)]]),
|
|
1154
1158
|
_: 1
|
|
1155
1159
|
}), l($, {
|
|
1156
1160
|
theme: a.buttonColor,
|
|
1157
1161
|
onClick: r[1] ||= (e) => o("confirm")
|
|
1158
1162
|
}, {
|
|
1159
|
-
default:
|
|
1163
|
+
default: G(() => [c(N(a.buttonText), 1)]),
|
|
1160
1164
|
_: 1
|
|
1161
1165
|
}, 8, ["theme"])])
|
|
1162
1166
|
])], 12, Dt)]),
|
|
@@ -1196,7 +1200,7 @@ function Pt({ open: e, anchorRef: t, listboxRef: n, baseId: i, activeIndex: a })
|
|
|
1196
1200
|
function h() {
|
|
1197
1201
|
p && p();
|
|
1198
1202
|
}
|
|
1199
|
-
|
|
1203
|
+
W(e, (e) => {
|
|
1200
1204
|
e ? (o(), m(), g(() => f())) : (s(), h(), l.value = "below", u.value = null);
|
|
1201
1205
|
}), x(() => {
|
|
1202
1206
|
h();
|
|
@@ -1298,7 +1302,7 @@ var Ft = ["id"], It = {
|
|
|
1298
1302
|
let e = I.value.toLowerCase();
|
|
1299
1303
|
return P.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
|
|
1300
1304
|
}), V = r(() => R.value.findIndex((e) => e.value === d.value));
|
|
1301
|
-
|
|
1305
|
+
W(() => d.value, (e) => {
|
|
1302
1306
|
let t = R.value.findIndex((t) => t.value === e);
|
|
1303
1307
|
t !== -1 && (b.value = t);
|
|
1304
1308
|
});
|
|
@@ -1314,7 +1318,7 @@ var Ft = ["id"], It = {
|
|
|
1314
1318
|
function U() {
|
|
1315
1319
|
y.value = !1, i.searchable && (I.value = "");
|
|
1316
1320
|
}
|
|
1317
|
-
function
|
|
1321
|
+
function ee(e) {
|
|
1318
1322
|
if (!i.disabled && i.searchable) {
|
|
1319
1323
|
if (S.value) {
|
|
1320
1324
|
S.value = !1;
|
|
@@ -1323,13 +1327,13 @@ var Ft = ["id"], It = {
|
|
|
1323
1327
|
H();
|
|
1324
1328
|
}
|
|
1325
1329
|
}
|
|
1326
|
-
function
|
|
1330
|
+
function ne(e) {
|
|
1327
1331
|
if (!i.searchable) return;
|
|
1328
1332
|
y.value || H(), I.value = e.target.value;
|
|
1329
1333
|
let t = R.value.findIndex((e) => e.value === d.value);
|
|
1330
1334
|
b.value = t === -1 ? 0 : t;
|
|
1331
1335
|
}
|
|
1332
|
-
function
|
|
1336
|
+
function G(e) {
|
|
1333
1337
|
let t = e.relatedTarget;
|
|
1334
1338
|
if (x.value) {
|
|
1335
1339
|
x.value = !1;
|
|
@@ -1337,16 +1341,16 @@ var Ft = ["id"], It = {
|
|
|
1337
1341
|
}
|
|
1338
1342
|
t && m.value && m.value.contains(t) || (i.searchable && (I.value = ""), U());
|
|
1339
1343
|
}
|
|
1340
|
-
function
|
|
1344
|
+
function q(e) {
|
|
1341
1345
|
let t = R.value[e];
|
|
1342
1346
|
t && t.value !== d.value && (d.value = t.value, u("change", t.value)), S.value = !0, U(), setTimeout(() => {
|
|
1343
1347
|
S.value = !1;
|
|
1344
1348
|
}, 100);
|
|
1345
1349
|
}
|
|
1346
|
-
function
|
|
1350
|
+
function J() {
|
|
1347
1351
|
i.disabled || (y.value ? U() : H());
|
|
1348
1352
|
}
|
|
1349
|
-
function
|
|
1353
|
+
function ie(e) {
|
|
1350
1354
|
if (i.disabled) return;
|
|
1351
1355
|
let t = R.value.length - 1;
|
|
1352
1356
|
if (!y.value && [
|
|
@@ -1373,15 +1377,15 @@ var Ft = ["id"], It = {
|
|
|
1373
1377
|
break;
|
|
1374
1378
|
case "Enter":
|
|
1375
1379
|
case " ":
|
|
1376
|
-
e.preventDefault(), y.value ?
|
|
1380
|
+
e.preventDefault(), y.value ? q(b.value) : H();
|
|
1377
1381
|
break;
|
|
1378
1382
|
case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
|
|
1379
1383
|
U();
|
|
1380
1384
|
}, 0));
|
|
1381
1385
|
}
|
|
1382
1386
|
}
|
|
1383
|
-
function
|
|
1384
|
-
|
|
1387
|
+
function Y(e) {
|
|
1388
|
+
q(e);
|
|
1385
1389
|
}
|
|
1386
1390
|
function ae() {
|
|
1387
1391
|
x.value = !0;
|
|
@@ -1414,10 +1418,10 @@ var Ft = ["id"], It = {
|
|
|
1414
1418
|
value: y.value ? I.value : P.value[V.value] ? P.value[V.value].label : "",
|
|
1415
1419
|
placeholder: y.value ? "" : t.placeholder,
|
|
1416
1420
|
disabled: i.disabled,
|
|
1417
|
-
onFocus:
|
|
1418
|
-
onInput:
|
|
1419
|
-
onKeydown:
|
|
1420
|
-
onBlur:
|
|
1421
|
+
onFocus: ee,
|
|
1422
|
+
onInput: ne,
|
|
1423
|
+
onKeydown: ie,
|
|
1424
|
+
onBlur: G,
|
|
1421
1425
|
"aria-autocomplete": "list",
|
|
1422
1426
|
"aria-controls": L(f) + "-listbox",
|
|
1423
1427
|
"aria-expanded": y.value ? "true" : "false",
|
|
@@ -1467,17 +1471,17 @@ var Ft = ["id"], It = {
|
|
|
1467
1471
|
}, t.hiddenLabel ? { "aria-label": i.label } : { "aria-labelledby": L(f) + "-label" }, {
|
|
1468
1472
|
"aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
|
|
1469
1473
|
tabindex: "0",
|
|
1470
|
-
onClick:
|
|
1471
|
-
onKeydown:
|
|
1472
|
-
onFocus:
|
|
1473
|
-
onBlur:
|
|
1474
|
+
onClick: J,
|
|
1475
|
+
onKeydown: ie,
|
|
1476
|
+
onFocus: ee,
|
|
1477
|
+
onBlur: G
|
|
1474
1478
|
}), [
|
|
1475
1479
|
c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
|
|
1476
1480
|
X.value ? (w(), o("button", {
|
|
1477
1481
|
key: 0,
|
|
1478
1482
|
type: "button",
|
|
1479
1483
|
class: "g-select-clear-btn",
|
|
1480
|
-
onClick:
|
|
1484
|
+
onClick: K(Z, ["stop"])
|
|
1481
1485
|
}, [...r[2] ||= [s("svg", {
|
|
1482
1486
|
role: "img",
|
|
1483
1487
|
"aria-label": "Clear Selection",
|
|
@@ -1498,7 +1502,7 @@ var Ft = ["id"], It = {
|
|
|
1498
1502
|
fill: "currentColor",
|
|
1499
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"
|
|
1500
1504
|
})], -1)
|
|
1501
|
-
], 16, Bt)),
|
|
1505
|
+
], 16, Bt)), re(s("div", h({
|
|
1502
1506
|
ref_key: "listboxRef",
|
|
1503
1507
|
ref: m,
|
|
1504
1508
|
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": L(E) === "above" }],
|
|
@@ -1515,12 +1519,12 @@ var Ft = ["id"], It = {
|
|
|
1515
1519
|
role: "option",
|
|
1516
1520
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1517
1521
|
onMousedown: ae,
|
|
1518
|
-
onClick: (e) =>
|
|
1522
|
+
onClick: (e) => Y(t)
|
|
1519
1523
|
}, [k(n.$slots, "option", {
|
|
1520
1524
|
option: e,
|
|
1521
1525
|
selected: e.value === d.value,
|
|
1522
1526
|
index: t
|
|
1523
|
-
}, () => [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), [[te, y.value]])]),
|
|
1524
1528
|
l(Me, {
|
|
1525
1529
|
errors: L(C),
|
|
1526
1530
|
id: "error-message-" + L(f)
|
|
@@ -1602,7 +1606,7 @@ var Ft = ["id"], It = {
|
|
|
1602
1606
|
let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = X(() => {
|
|
1603
1607
|
d("submit", l.value);
|
|
1604
1608
|
}, 300);
|
|
1605
|
-
|
|
1609
|
+
W(() => l.value, (e) => {
|
|
1606
1610
|
e ? u.auto && j() : h.value = -1;
|
|
1607
1611
|
});
|
|
1608
1612
|
let M = z();
|
|
@@ -1612,7 +1616,7 @@ var Ft = ["id"], It = {
|
|
|
1612
1616
|
"aria-label": u.label
|
|
1613
1617
|
}, [s("form", {
|
|
1614
1618
|
class: "g-search-form",
|
|
1615
|
-
onSubmit: n[0] ||=
|
|
1619
|
+
onSubmit: n[0] ||= K((e) => T(null), ["prevent"])
|
|
1616
1620
|
}, [s("input", {
|
|
1617
1621
|
ref_key: "inputRef",
|
|
1618
1622
|
ref: f,
|
|
@@ -1660,14 +1664,14 @@ var Ft = ["id"], It = {
|
|
|
1660
1664
|
id: "g-search-option-" + e.id,
|
|
1661
1665
|
class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
|
|
1662
1666
|
role: "option",
|
|
1663
|
-
onMousedown:
|
|
1667
|
+
onMousedown: K((t) => T(e), ["prevent"]),
|
|
1664
1668
|
"aria-selected": v.value[h.value] && v.value[h.value].id === e.id
|
|
1665
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", {
|
|
1666
1670
|
key: e.id,
|
|
1667
1671
|
id: "g-search-option-" + e.id,
|
|
1668
1672
|
class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
|
|
1669
1673
|
role: "option",
|
|
1670
|
-
onMousedown:
|
|
1674
|
+
onMousedown: K((t) => T(e), ["prevent"]),
|
|
1671
1675
|
"aria-selected": h.value === n
|
|
1672
1676
|
}, [k(t.$slots, "option", { option: e }, () => [c(N(e.title), 1)])], 42, tn))), 128)) : a("", !0)], 8, Zt)])) : a("", !0)], 8, qt));
|
|
1673
1677
|
}
|
|
@@ -1734,7 +1738,7 @@ function pn(e = "default", t) {
|
|
|
1734
1738
|
});
|
|
1735
1739
|
}
|
|
1736
1740
|
let o = n.get(r);
|
|
1737
|
-
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 && W(t, (e) => {
|
|
1738
1742
|
e && e.trim() && (o.breakpoint.value = e);
|
|
1739
1743
|
}, { immediate: !0 });
|
|
1740
1744
|
function s(e) {
|
|
@@ -1752,7 +1756,7 @@ function pn(e = "default", t) {
|
|
|
1752
1756
|
}, 5));
|
|
1753
1757
|
}
|
|
1754
1758
|
return S(() => {
|
|
1755
|
-
|
|
1759
|
+
W(o.isCollapsible, (e) => {
|
|
1756
1760
|
e ? (document.addEventListener("mousedown", s), document.addEventListener("focusin", c)) : (document.removeEventListener("mousedown", s), document.removeEventListener("focusin", c));
|
|
1757
1761
|
}, { immediate: !0 });
|
|
1758
1762
|
}), x(() => {
|
|
@@ -1911,7 +1915,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
1911
1915
|
setup(t) {
|
|
1912
1916
|
let n = t, l = B(t, "modelValue"), u = r(() => n.spy && l.value ? "#" + l.value : null), f = H("content");
|
|
1913
1917
|
S(() => {
|
|
1914
|
-
|
|
1918
|
+
W(l, () => {
|
|
1915
1919
|
g(() => {
|
|
1916
1920
|
let e = f.value?.querySelector(".g-sidebar-menu__is-active");
|
|
1917
1921
|
e && e.scrollIntoView({ block: "nearest" });
|
|
@@ -1949,7 +1953,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
1949
1953
|
class: "g-sidebar-menu__link",
|
|
1950
1954
|
to: e.to
|
|
1951
1955
|
}, {
|
|
1952
|
-
default:
|
|
1956
|
+
default: G(() => [c(N(e.label), 1)]),
|
|
1953
1957
|
_: 2
|
|
1954
1958
|
}, 1032, ["to"])) : (w(), o("a", {
|
|
1955
1959
|
key: 1,
|
|
@@ -1967,13 +1971,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
1967
1971
|
n.value && (r.value || i.value) && ft(e, n.value);
|
|
1968
1972
|
}), o.observe(n.value));
|
|
1969
1973
|
};
|
|
1970
|
-
|
|
1974
|
+
ne(() => {
|
|
1971
1975
|
n.value && (n.value.textContent = a.value);
|
|
1972
1976
|
});
|
|
1973
1977
|
let u = () => {
|
|
1974
1978
|
n.value && (r.value || i.value) && ft(e, n.value);
|
|
1975
1979
|
};
|
|
1976
|
-
|
|
1980
|
+
ne(() => {
|
|
1977
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(() => {
|
|
1978
1982
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
1979
1983
|
}, 150)));
|
|
@@ -2025,7 +2029,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2025
2029
|
}, m = () => {
|
|
2026
2030
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
2027
2031
|
};
|
|
2028
|
-
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)), re((w(), o("button", {
|
|
2029
2033
|
type: "button",
|
|
2030
2034
|
"aria-label": "Copy",
|
|
2031
2035
|
onClick: p,
|
|
@@ -2078,7 +2082,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2078
2082
|
u.value && f();
|
|
2079
2083
|
}), le(c, () => {
|
|
2080
2084
|
u.value && f();
|
|
2081
|
-
}),
|
|
2085
|
+
}), W(() => n.entries, async () => {
|
|
2082
2086
|
u.value && (await g(), f());
|
|
2083
2087
|
});
|
|
2084
2088
|
let m = r(() => [...n.entries].reverse());
|
|
@@ -2099,7 +2103,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2099
2103
|
onClick: r[0] ||= () => f({ focusLast: !0 }),
|
|
2100
2104
|
"aria-label": "Jump to Latest"
|
|
2101
2105
|
}, {
|
|
2102
|
-
default:
|
|
2106
|
+
default: G(() => [...r[1] ||= [s("svg", {
|
|
2103
2107
|
"aria-hidden": "true",
|
|
2104
2108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2105
2109
|
viewBox: "0 0 640 640",
|
|
@@ -2369,7 +2373,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2369
2373
|
}, [t.bulkSelectionEnabled ? (w(), o("td", {
|
|
2370
2374
|
key: 0,
|
|
2371
2375
|
class: "td-checkbox",
|
|
2372
|
-
onClick: r[0] ||=
|
|
2376
|
+
onClick: r[0] ||= K(() => {}, ["stop"])
|
|
2373
2377
|
}, [s("input", {
|
|
2374
2378
|
type: "checkbox",
|
|
2375
2379
|
checked: p(n.key),
|
|
@@ -2527,21 +2531,21 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2527
2531
|
let n = d.value, r = I(t.value) ? n.filter((e) => e !== t.value) : [...n, t.value];
|
|
2528
2532
|
d.value = r, u("change", r), g(() => p.value?.focus());
|
|
2529
2533
|
}
|
|
2530
|
-
function
|
|
2534
|
+
function ee(e) {
|
|
2531
2535
|
if (i.disabled) return;
|
|
2532
2536
|
let t = d.value.filter((t) => t !== e);
|
|
2533
2537
|
d.value = t, u("change", t);
|
|
2534
2538
|
}
|
|
2535
|
-
function
|
|
2539
|
+
function W() {
|
|
2536
2540
|
i.disabled || (p.value?.focus(), y.value || V());
|
|
2537
2541
|
}
|
|
2538
|
-
function
|
|
2542
|
+
function ne(e) {
|
|
2539
2543
|
x.value = e.target.value, b.value = 0, y.value || V();
|
|
2540
2544
|
}
|
|
2541
|
-
function
|
|
2545
|
+
function G() {
|
|
2542
2546
|
i.disabled || y.value || V();
|
|
2543
2547
|
}
|
|
2544
|
-
function
|
|
2548
|
+
function q(e) {
|
|
2545
2549
|
if (S.value) {
|
|
2546
2550
|
S.value = !1;
|
|
2547
2551
|
return;
|
|
@@ -2549,13 +2553,13 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2549
2553
|
let t = e.relatedTarget;
|
|
2550
2554
|
t && v.value?.contains(t) || t && m.value?.contains(t) || H();
|
|
2551
2555
|
}
|
|
2552
|
-
function
|
|
2556
|
+
function J(e) {
|
|
2553
2557
|
e.preventDefault();
|
|
2554
2558
|
}
|
|
2555
|
-
function
|
|
2559
|
+
function ie() {
|
|
2556
2560
|
S.value = !0;
|
|
2557
2561
|
}
|
|
2558
|
-
function
|
|
2562
|
+
function Y(e) {
|
|
2559
2563
|
if (i.disabled) return;
|
|
2560
2564
|
let t = P.value.length - 1;
|
|
2561
2565
|
switch (e.key) {
|
|
@@ -2580,7 +2584,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2580
2584
|
case "Escape":
|
|
2581
2585
|
A.value && (e.preventDefault(), setTimeout(() => H(), 0));
|
|
2582
2586
|
break;
|
|
2583
|
-
case "Backspace": !x.value && d.value.length > 0 &&
|
|
2587
|
+
case "Backspace": !x.value && d.value.length > 0 && ee(d.value[d.value.length - 1]);
|
|
2584
2588
|
}
|
|
2585
2589
|
}
|
|
2586
2590
|
let ae = r(() => `${f}-input`), X = r(() => `${f}-label`), Z = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
|
|
@@ -2606,7 +2610,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2606
2610
|
ref_key: "controlRef",
|
|
2607
2611
|
ref: m,
|
|
2608
2612
|
class: _(["g-multiselect-control", { "g-multiselect-control--disabled": t.disabled }]),
|
|
2609
|
-
onClick:
|
|
2613
|
+
onClick: W
|
|
2610
2614
|
}, [
|
|
2611
2615
|
d.value.length ? (w(), o("ul", {
|
|
2612
2616
|
key: 0,
|
|
@@ -2620,8 +2624,8 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2620
2624
|
class: "g-multiselect-chip-remove",
|
|
2621
2625
|
"aria-label": `Remove ${R(e)}`,
|
|
2622
2626
|
disabled: t.disabled,
|
|
2623
|
-
onMousedown:
|
|
2624
|
-
onClick:
|
|
2627
|
+
onMousedown: ie,
|
|
2628
|
+
onClick: K((t) => ee(e), ["stop"])
|
|
2625
2629
|
}, [...r[0] ||= [s("svg", {
|
|
2626
2630
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2627
2631
|
viewBox: "0 0 51.26 51.26",
|
|
@@ -2650,10 +2654,10 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2650
2654
|
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
2651
2655
|
"aria-describedby": se.value,
|
|
2652
2656
|
"aria-required": t.required ? "true" : void 0,
|
|
2653
|
-
onInput:
|
|
2654
|
-
onKeydown:
|
|
2655
|
-
onFocus:
|
|
2656
|
-
onBlur:
|
|
2657
|
+
onInput: ne,
|
|
2658
|
+
onKeydown: Y,
|
|
2659
|
+
onFocus: G,
|
|
2660
|
+
onBlur: q
|
|
2657
2661
|
}), null, 16, dr),
|
|
2658
2662
|
r[2] ||= s("svg", {
|
|
2659
2663
|
class: "g-multiselect-caret",
|
|
@@ -2665,7 +2669,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2665
2669
|
fill: "currentColor",
|
|
2666
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"
|
|
2667
2671
|
})], -1),
|
|
2668
|
-
|
|
2672
|
+
re(s("div", h({
|
|
2669
2673
|
ref_key: "listboxRef",
|
|
2670
2674
|
ref: v,
|
|
2671
2675
|
id: L(f) + "-listbox",
|
|
@@ -2684,9 +2688,9 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2684
2688
|
"g-multiselect-option--selected": I(e.value)
|
|
2685
2689
|
}]),
|
|
2686
2690
|
"aria-selected": I(e.value) ? "true" : "false",
|
|
2687
|
-
onMousedown:
|
|
2691
|
+
onMousedown: J,
|
|
2688
2692
|
onClick: (e) => U(t)
|
|
2689
|
-
}, [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), [[te, y.value]])
|
|
2690
2694
|
], 2),
|
|
2691
2695
|
l(Me, {
|
|
2692
2696
|
errors: L(C),
|
|
@@ -2777,7 +2781,7 @@ var hn = ["id"], gn = /* @__PURE__ */ u({
|
|
|
2777
2781
|
};
|
|
2778
2782
|
}
|
|
2779
2783
|
return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
|
|
2780
|
-
default:
|
|
2784
|
+
default: G(() => [
|
|
2781
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),
|
|
2782
2786
|
t.instructions ? (w(), o("div", {
|
|
2783
2787
|
key: 2,
|
|
@@ -2848,7 +2852,7 @@ function Lr(e, t = {}) {
|
|
|
2848
2852
|
}
|
|
2849
2853
|
});
|
|
2850
2854
|
}
|
|
2851
|
-
|
|
2855
|
+
W(n, (e) => {
|
|
2852
2856
|
i.value = Ir(e);
|
|
2853
2857
|
}, { deep: !0 });
|
|
2854
2858
|
}
|
|
@@ -3016,13 +3020,13 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3016
3020
|
} else m.value.includes(e) ? m.value = m.value.filter((t) => t !== e) : m.value = [...m.value, e];
|
|
3017
3021
|
I.value = e;
|
|
3018
3022
|
}
|
|
3019
|
-
function
|
|
3023
|
+
function te(e) {
|
|
3020
3024
|
v("row-click", e);
|
|
3021
3025
|
}
|
|
3022
|
-
function
|
|
3026
|
+
function W(e) {
|
|
3023
3027
|
v("bulk-action", e, m.value);
|
|
3024
3028
|
}
|
|
3025
|
-
function
|
|
3029
|
+
function ne(e) {
|
|
3026
3030
|
let t = e.value, n = e.column.key, r = P(e.row[n]);
|
|
3027
3031
|
e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t;
|
|
3028
3032
|
let i = {
|
|
@@ -3033,7 +3037,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3033
3037
|
};
|
|
3034
3038
|
v("cell-change", i);
|
|
3035
3039
|
}
|
|
3036
|
-
let
|
|
3040
|
+
let q = z(), J = V(), ie = d(), Y = D(null);
|
|
3037
3041
|
function ae(e) {
|
|
3038
3042
|
let t = /* @__PURE__ */ new Set();
|
|
3039
3043
|
return e.filter((e) => !e?.key || t.has(String(e.key)) ? !1 : (t.add(String(e.key)), e.order === 1 || e.order === -1));
|
|
@@ -3089,7 +3093,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3089
3093
|
}
|
|
3090
3094
|
function ve(e, t) {
|
|
3091
3095
|
oe([...Z.value, X(e, t)]), g(() => {
|
|
3092
|
-
let t =
|
|
3096
|
+
let t = Y.value;
|
|
3093
3097
|
t && (t.querySelector(`[data-sort-row-key="${String(e)}"]`) ?? t)?.focus();
|
|
3094
3098
|
}).catch((e) => {
|
|
3095
3099
|
console.error(e);
|
|
@@ -3105,7 +3109,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3105
3109
|
oe([]);
|
|
3106
3110
|
}
|
|
3107
3111
|
let Se = r(() => {
|
|
3108
|
-
let e =
|
|
3112
|
+
let e = ie?.vnode.props ?? {};
|
|
3109
3113
|
return "columnVisibility" in e || "column-visibility" in e || "onUpdate:columnVisibility" in e;
|
|
3110
3114
|
}), Ce = r(() => {
|
|
3111
3115
|
let e = p.value;
|
|
@@ -3120,7 +3124,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3120
3124
|
[e.key]: t
|
|
3121
3125
|
};
|
|
3122
3126
|
}
|
|
3123
|
-
let Oe = r(() => h.showPagination ? !0 : !!
|
|
3127
|
+
let Oe = r(() => h.showPagination ? !0 : !!J.pagination), ke = r(() => !!(ce.value || T.value || Oe.value || Te.value));
|
|
3124
3128
|
function Ae(e) {
|
|
3125
3129
|
return e.filter?.type === "multi-select" ? e.filter.options.map((e) => ({
|
|
3126
3130
|
label: e.label,
|
|
@@ -3135,13 +3139,13 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3135
3139
|
ke.value ? (w(), o("div", zr, [
|
|
3136
3140
|
s("div", Br, [
|
|
3137
3141
|
ce.value ? (w(), o("div", Vr, [l(ot, null, {
|
|
3138
|
-
trigger:
|
|
3142
|
+
trigger: G(({ toggle: e }) => [l($, {
|
|
3139
3143
|
size: "small",
|
|
3140
3144
|
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": Z.value.length > 0 }]),
|
|
3141
3145
|
"aria-label": "Choose sort order",
|
|
3142
3146
|
onClick: e
|
|
3143
3147
|
}, {
|
|
3144
|
-
default:
|
|
3148
|
+
default: G(() => [r[0] ||= s("svg", {
|
|
3145
3149
|
class: "g-sort-builder-trigger-icon",
|
|
3146
3150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3147
3151
|
viewBox: "0 0 640 640",
|
|
@@ -3153,9 +3157,9 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3153
3157
|
})], -1), Z.value.length ? (w(), o("span", Hr, N(Z.value.length), 1)) : a("", !0)]),
|
|
3154
3158
|
_: 1
|
|
3155
3159
|
}, 8, ["class", "onClick"])]),
|
|
3156
|
-
default:
|
|
3160
|
+
default: G(() => [s("fieldset", {
|
|
3157
3161
|
ref_key: "sortBuilderRef",
|
|
3158
|
-
ref:
|
|
3162
|
+
ref: Y,
|
|
3159
3163
|
class: "g-sort-builder-popover",
|
|
3160
3164
|
tabindex: "-1",
|
|
3161
3165
|
"popover-focus": ""
|
|
@@ -3226,26 +3230,26 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3226
3230
|
class: "g-sort-builder-clear",
|
|
3227
3231
|
onClick: xe
|
|
3228
3232
|
}, {
|
|
3229
|
-
default:
|
|
3233
|
+
default: G(() => [...r[6] ||= [c(" Clear sort ", -1)]]),
|
|
3230
3234
|
_: 1
|
|
3231
3235
|
})) : a("", !0)
|
|
3232
3236
|
], 512)]),
|
|
3233
3237
|
_: 1
|
|
3234
3238
|
})])) : a("", !0),
|
|
3235
3239
|
Te.value ? (w(), o("div", oi, [l(ot, null, {
|
|
3236
|
-
trigger:
|
|
3240
|
+
trigger: G(({ toggle: e }) => [l($, {
|
|
3237
3241
|
size: "small",
|
|
3238
3242
|
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": we.value }]),
|
|
3239
3243
|
"aria-label": "Choose visible columns",
|
|
3240
3244
|
onClick: e
|
|
3241
3245
|
}, {
|
|
3242
|
-
default:
|
|
3246
|
+
default: G(() => [(w(), o("svg", si, [...r[9] ||= [s("path", {
|
|
3243
3247
|
fill: "currentColor",
|
|
3244
3248
|
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"
|
|
3245
3249
|
}, null, -1)]]))]),
|
|
3246
3250
|
_: 1
|
|
3247
3251
|
}, 8, ["class", "onClick"])]),
|
|
3248
|
-
default:
|
|
3252
|
+
default: G(() => [s("fieldset", ci, [r[10] ||= s("legend", { class: "g-column-visibility-legend" }, " Shown columns ", -1), s("div", li, [(w(!0), o(e, null, O(t.columns, (e) => (w(), o("label", {
|
|
3249
3253
|
key: e.key,
|
|
3250
3254
|
class: "g-column-visibility-option"
|
|
3251
3255
|
}, [s("input", {
|
|
@@ -3262,7 +3266,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3262
3266
|
class: "clear-filters",
|
|
3263
3267
|
onClick: L(E)
|
|
3264
3268
|
}, {
|
|
3265
|
-
default:
|
|
3269
|
+
default: G(() => [...r[11] ||= [s("svg", {
|
|
3266
3270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3267
3271
|
viewBox: "0 0 51.26 51.26",
|
|
3268
3272
|
height: "1em",
|
|
@@ -3291,7 +3295,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3291
3295
|
class: "g-bulk-select-checkbox"
|
|
3292
3296
|
}, null, 40, vi)])) : a("", !0), (w(!0), o(e, null, O(Ce.value, (e) => (w(), o("th", {
|
|
3293
3297
|
key: e.key,
|
|
3294
|
-
id: `${L(
|
|
3298
|
+
id: `${L(q)}-th-${String(e.key)}`,
|
|
3295
3299
|
"aria-sort": fe(e.key),
|
|
3296
3300
|
class: _([
|
|
3297
3301
|
"g-th",
|
|
@@ -3317,8 +3321,8 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3317
3321
|
}, null, -1)]], 4))])),
|
|
3318
3322
|
ue(e.key) === -1 ? a("", !0) : (w(), o("span", Ci, N(pe(e.key)), 1))
|
|
3319
3323
|
], 8, xi)) : (w(), o("span", wi, N(e.label), 1)), e.filter ? (w(), i(ot, { key: 2 }, {
|
|
3320
|
-
trigger:
|
|
3321
|
-
onClick:
|
|
3324
|
+
trigger: G(({ toggle: t }) => [s("button", {
|
|
3325
|
+
onClick: K(t, ["stop"]),
|
|
3322
3326
|
"aria-label": L(C)[e.key] ? "Column Filtered" : "Filter Column",
|
|
3323
3327
|
class: _(["g-filter-btn", { "g-active": L(C)[e.key] }]),
|
|
3324
3328
|
type: "button"
|
|
@@ -3331,7 +3335,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3331
3335
|
fill: "currentColor",
|
|
3332
3336
|
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"
|
|
3333
3337
|
})], -1)]], 10, Ti)]),
|
|
3334
|
-
default:
|
|
3338
|
+
default: G(() => [e.filter.type === "select" ? (w(), i(Kt, {
|
|
3335
3339
|
key: 0,
|
|
3336
3340
|
modelValue: f.value[e.key],
|
|
3337
3341
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
@@ -3356,24 +3360,24 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3356
3360
|
}, [s("path", {
|
|
3357
3361
|
fill: "currentColor",
|
|
3358
3362
|
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"
|
|
3359
|
-
})])], -1),
|
|
3363
|
+
})])], -1), re(s("input", {
|
|
3360
3364
|
type: "search",
|
|
3361
3365
|
class: "g-filter-search-input",
|
|
3362
3366
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3363
3367
|
placeholder: e.filter.placeholder,
|
|
3364
3368
|
"aria-label": `Search ${e.label}`
|
|
3365
|
-
}, null, 8, Di), [[
|
|
3366
|
-
|
|
3369
|
+
}, null, 8, Di), [[ee, f.value[e.key]]])])) : e.filter.type === "toggle" ? (w(), o("div", Oi, [s("div", ki, [
|
|
3370
|
+
re(s("input", {
|
|
3367
3371
|
type: "checkbox",
|
|
3368
3372
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
3369
|
-
id: `${L(
|
|
3370
|
-
"aria-describedby": e.filter.description ? `${L(
|
|
3373
|
+
id: `${L(q)}-filter-${String(e.key)}`,
|
|
3374
|
+
"aria-describedby": e.filter.description ? `${L(q)}-filter-description-${String(e.key)}` : void 0
|
|
3371
3375
|
}, null, 8, Ai), [[U, f.value[e.key]]]),
|
|
3372
|
-
s("label", { for: `${L(
|
|
3376
|
+
s("label", { for: `${L(q)}-filter-${String(e.key)}` }, N(e.filter.label), 9, ji),
|
|
3373
3377
|
e.filter.description ? (w(), o("span", {
|
|
3374
3378
|
key: 0,
|
|
3375
3379
|
class: "g-filter-description",
|
|
3376
|
-
id: `${L(
|
|
3380
|
+
id: `${L(q)}-filter-description-${String(e.key)}`
|
|
3377
3381
|
}, N(e.filter.description), 9, Mi)) : a("", !0)
|
|
3378
3382
|
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(br, {
|
|
3379
3383
|
key: 3,
|
|
@@ -3406,7 +3410,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3406
3410
|
size: "small",
|
|
3407
3411
|
onClick: (t) => f.value[e.key] = []
|
|
3408
3412
|
}, {
|
|
3409
|
-
default:
|
|
3413
|
+
default: G(() => [...r[15] ||= [c(" Clear ", -1)]]),
|
|
3410
3414
|
_: 1
|
|
3411
3415
|
}, 8, ["onClick"])) : a("", !0)])) : a("", !0)]),
|
|
3412
3416
|
_: 2
|
|
@@ -3420,11 +3424,11 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3420
3424
|
"start-index": t.startIndex,
|
|
3421
3425
|
"bulk-selection-enabled": t.bulkSelectionEnabled,
|
|
3422
3426
|
"selected-rows": m.value,
|
|
3423
|
-
"table-id": L(
|
|
3427
|
+
"table-id": L(q),
|
|
3424
3428
|
"change-tracker": t.changeTracker,
|
|
3425
|
-
onRowClick:
|
|
3429
|
+
onRowClick: te,
|
|
3426
3430
|
onToggleRow: H,
|
|
3427
|
-
onCellChange:
|
|
3431
|
+
onCellChange: ne
|
|
3428
3432
|
}, null, 8, [
|
|
3429
3433
|
"data",
|
|
3430
3434
|
"columns",
|
|
@@ -3440,10 +3444,10 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3440
3444
|
])], 8, mi),
|
|
3441
3445
|
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", Pi, [s("span", Fi, N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Ii, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l($, {
|
|
3442
3446
|
theme: e.theme || "accent",
|
|
3443
|
-
onClick: (t) =>
|
|
3447
|
+
onClick: (t) => W(e.id),
|
|
3444
3448
|
size: "small"
|
|
3445
3449
|
}, {
|
|
3446
|
-
default:
|
|
3450
|
+
default: G(() => [c(N(e.label) + " " + N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s"), 1)]),
|
|
3447
3451
|
_: 2
|
|
3448
3452
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
3449
3453
|
]));
|
|
@@ -3618,7 +3622,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3618
3622
|
name: "g-fade",
|
|
3619
3623
|
appear: ""
|
|
3620
3624
|
}, {
|
|
3621
|
-
default:
|
|
3625
|
+
default: G(() => [s("div", h({
|
|
3622
3626
|
id: "modal-" + L(m),
|
|
3623
3627
|
class: ["g-modal", E.value],
|
|
3624
3628
|
role: "dialog",
|
|
@@ -3722,7 +3726,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3722
3726
|
setup(e) {
|
|
3723
3727
|
let { hasScrollLock: t } = Je();
|
|
3724
3728
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
3725
|
-
default:
|
|
3729
|
+
default: G(() => [L(t) ? (w(), o("div", sa)) : a("", !0)]),
|
|
3726
3730
|
_: 1
|
|
3727
3731
|
}));
|
|
3728
3732
|
}
|
|
@@ -3794,13 +3798,13 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3794
3798
|
setup(e) {
|
|
3795
3799
|
let t = B(e, "modelValue");
|
|
3796
3800
|
return (n, r) => (w(), o("div", pa, [l(ot, null, {
|
|
3797
|
-
trigger:
|
|
3801
|
+
trigger: G(({ toggle: e }) => [l($, {
|
|
3798
3802
|
class: "g-term-selector-button",
|
|
3799
3803
|
theme: "none",
|
|
3800
3804
|
outlined: "",
|
|
3801
3805
|
onClick: e
|
|
3802
3806
|
}, {
|
|
3803
|
-
default:
|
|
3807
|
+
default: G(() => [
|
|
3804
3808
|
r[0] ||= s("span", { class: "g-calendar-icon" }, [s("svg", {
|
|
3805
3809
|
role: "none",
|
|
3806
3810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3815,7 +3819,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3815
3819
|
]),
|
|
3816
3820
|
_: 1
|
|
3817
3821
|
}, 8, ["onClick"])]),
|
|
3818
|
-
default:
|
|
3822
|
+
default: G(() => [s("h2", ha, N(e.heading), 1), l(fa, v(f(n.$props)), null, 16)]),
|
|
3819
3823
|
_: 1
|
|
3820
3824
|
})]));
|
|
3821
3825
|
}
|
|
@@ -3840,7 +3844,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3840
3844
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
3841
3845
|
minimal: ""
|
|
3842
3846
|
}, {
|
|
3843
|
-
trigger:
|
|
3847
|
+
trigger: G(({ toggle: e }) => [s("button", {
|
|
3844
3848
|
class: "g-user-menu__avatar",
|
|
3845
3849
|
style: y({ backgroundColor: t.color }),
|
|
3846
3850
|
"aria-label": t.initials + " - " + t.label,
|
|
@@ -3848,7 +3852,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
3848
3852
|
"aria-haspopup": "menu",
|
|
3849
3853
|
onClick: e
|
|
3850
3854
|
}, N(t.initials), 13, va)]),
|
|
3851
|
-
default:
|
|
3855
|
+
default: G(() => [s("div", ya, [s("h2", {
|
|
3852
3856
|
id: n,
|
|
3853
3857
|
ref_key: "emailHeading",
|
|
3854
3858
|
ref: a,
|
|
@@ -4163,12 +4167,12 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
4163
4167
|
errors: F(n, "errors"),
|
|
4164
4168
|
formKey: n.formKey
|
|
4165
4169
|
});
|
|
4166
|
-
return
|
|
4170
|
+
return W([i, u], () => {
|
|
4167
4171
|
r.value = {
|
|
4168
4172
|
start: i.value,
|
|
4169
4173
|
end: u.value
|
|
4170
4174
|
};
|
|
4171
|
-
}),
|
|
4175
|
+
}), W(r, (e) => {
|
|
4172
4176
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4173
4177
|
}, { deep: !0 }), (t, r) => (w(), o("div", Ma, [
|
|
4174
4178
|
n.label ? (w(), o("div", Na, [c(N(n.label), 1), n.required ? (w(), o("span", Pa, " *")) : a("", !0)])) : a("", !0),
|
|
@@ -4217,9 +4221,9 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
4217
4221
|
emits: /*@__PURE__*/ m(["submit"], ["update:modelValue"]),
|
|
4218
4222
|
setup(e, { emit: t }) {
|
|
4219
4223
|
let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (Q() ? ke(n.formKey) : De());
|
|
4220
|
-
a || T("form", s),
|
|
4224
|
+
a || T("form", s), W(() => s.values.value, (e) => {
|
|
4221
4225
|
r.value = { ...e };
|
|
4222
|
-
}, { deep: !0 }),
|
|
4226
|
+
}, { deep: !0 }), W(() => r.value, (e) => {
|
|
4223
4227
|
e && Object.entries(e).forEach(([e, t]) => {
|
|
4224
4228
|
let n = s.fields[e];
|
|
4225
4229
|
n && n.value.value !== t && (n.value.value = t);
|
|
@@ -4265,7 +4269,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
4265
4269
|
variant: t.variant,
|
|
4266
4270
|
class: "g-submit-button"
|
|
4267
4271
|
}, {
|
|
4268
|
-
default:
|
|
4272
|
+
default: G(() => [re(s("span", null, N(t.loadingText), 513), [[te, d.value]]), re(s("span", null, [k(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[te, !d.value]])]),
|
|
4269
4273
|
_: 3
|
|
4270
4274
|
}, 8, ["disabled", "variant"]));
|
|
4271
4275
|
}
|
|
@@ -4330,7 +4334,7 @@ var Rr = { class: "g-table-outer-wrap" }, zr = {
|
|
|
4330
4334
|
let e = x.value;
|
|
4331
4335
|
e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
4332
4336
|
}
|
|
4333
|
-
|
|
4337
|
+
W(() => i.value, () => {
|
|
4334
4338
|
n.autoGrow && g(S);
|
|
4335
4339
|
});
|
|
4336
4340
|
function C(e) {
|
|
@@ -4404,9 +4408,9 @@ function Ja(e, t, n) {
|
|
|
4404
4408
|
.5,
|
|
4405
4409
|
.75,
|
|
4406
4410
|
1
|
|
4407
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(
|
|
4411
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(Y(e)?.children || []));
|
|
4408
4412
|
ce(e, () => {
|
|
4409
|
-
o.value = Array.from(
|
|
4413
|
+
o.value = Array.from(Y(e)?.children || []);
|
|
4410
4414
|
}, { childList: !0 });
|
|
4411
4415
|
let { stop: s } = oe(o, (e) => {
|
|
4412
4416
|
let t = o.value[o.value.length - 1];
|
|
@@ -4444,7 +4448,7 @@ function Ya(e = "(max-width: 800px)") {
|
|
|
4444
4448
|
}, 5));
|
|
4445
4449
|
}
|
|
4446
4450
|
return S(() => {
|
|
4447
|
-
|
|
4451
|
+
W(r, (e) => {
|
|
4448
4452
|
e ? (document.addEventListener("mousedown", i), document.addEventListener("focusin", a)) : (document.removeEventListener("mousedown", i), document.removeEventListener("focusin", a));
|
|
4449
4453
|
}, { immediate: !0 });
|
|
4450
4454
|
}), x(() => {
|
|
@@ -4459,7 +4463,7 @@ function Ya(e = "(max-width: 800px)") {
|
|
|
4459
4463
|
//#endregion
|
|
4460
4464
|
//#region src/compose/useTableChanges.ts
|
|
4461
4465
|
function Xa() {
|
|
4462
|
-
let e = j(/* @__PURE__ */ new Map()), t =
|
|
4466
|
+
let e = j(/* @__PURE__ */ new Map()), t = q(), n = (n) => {
|
|
4463
4467
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
4464
4468
|
e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
|
|
4465
4469
|
let s = e.get(i), c = s.get(r), l = c ? c.previousValue : o, u = c?.error;
|
|
@@ -4563,4 +4567,4 @@ function Xa() {
|
|
|
4563
4567
|
//#endregion
|
|
4564
4568
|
export { Ae as $, ir as A, nn as B, Mr as C, Lr as D, Ir as E, bn as F, mt as G, Mt as H, gn as I, et as J, ot as K, mn as L, On as M, Cn as N, jr as O, xn as P, ze as Q, pn as R, Pr as S, Nr as T, Et as U, Kt as V, xt as W, qe as X, $e as Y, Je as Z, na as _, Va as a, $ as at, Ki as b, ja as c, Sa as d, ke as et, xa as f, oa as g, ca as h, qa as i, ye as it, Un as j, br as k, Aa as l, fa as m, Ya as n, Ee as nt, Ba as o, ga as p, tt as q, Ja as r, be as rt, Ra as s, Xa as t, De as tt, Ca as u, ta as v, Fr as w, Li as x, Qi as y, un as z };
|
|
4565
4569
|
|
|
4566
|
-
//# sourceMappingURL=grad-vue-
|
|
4570
|
+
//# sourceMappingURL=grad-vue-BP-cplar.js.map
|