@illinois-grad/grad-vue 6.0.2 → 6.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/{grad-vue-B1qlZLc2.js → grad-vue-Bd30K3vh.js} +310 -310
- package/dist/grad-vue-Bd30K3vh.js.map +1 -0
- package/dist/grad-vue-elements.css +28 -28
- package/dist/grad-vue-elements.js +429 -429
- 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-B1qlZLc2.js.map +0 -1
|
@@ -5554,7 +5554,10 @@ var Tu = /* @__PURE__ */ B({
|
|
|
5554
5554
|
}, Lu = {
|
|
5555
5555
|
key: 0,
|
|
5556
5556
|
class: "g-app-header__block-i-container"
|
|
5557
|
-
}, Ru = { class: "g-app-header__title" }, zu = ["aria-label"], Bu = ["aria-label"], Vu =
|
|
5557
|
+
}, Ru = { class: "g-app-header__title" }, zu = ["aria-label"], Bu = ["aria-label"], Vu = {
|
|
5558
|
+
key: 4,
|
|
5559
|
+
class: "g-app-header__app-controls-wrap"
|
|
5560
|
+
}, Hu = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
5558
5561
|
__name: "GAppHeader",
|
|
5559
5562
|
props: {
|
|
5560
5563
|
illinois: {
|
|
@@ -5575,26 +5578,27 @@ var Tu = /* @__PURE__ */ B({
|
|
|
5575
5578
|
}
|
|
5576
5579
|
},
|
|
5577
5580
|
setup(e) {
|
|
5578
|
-
let t =
|
|
5579
|
-
function
|
|
5580
|
-
return sl(
|
|
5581
|
-
}
|
|
5582
|
-
function u(e) {
|
|
5583
|
-
e < 0 || l()[e]?.focus();
|
|
5581
|
+
let t = ru(/* @__PURE__ */ ln(e, "navigationMediaQuery"), { ssrWidth: 1e3 }), n = Ar("desktopNavigationRef"), r = Ar("mobileNavigationRef");
|
|
5582
|
+
function i() {
|
|
5583
|
+
return sl(n.value);
|
|
5584
5584
|
}
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5585
|
+
function a(e) {
|
|
5586
|
+
e < 0 || i()[e]?.focus();
|
|
5587
|
+
}
|
|
5588
|
+
return z(t, async (e) => {
|
|
5589
|
+
let t = e ? cl(i()) : r.value?.getFocusedItemIndex() ?? -1;
|
|
5590
|
+
if (t !== -1) {
|
|
5591
|
+
if (e) {
|
|
5592
|
+
if (t < 0) return;
|
|
5593
|
+
await L(), r.value?.show(), await r.value?.focusItem(t);
|
|
5594
|
+
return;
|
|
5595
|
+
}
|
|
5596
|
+
r.value?.hide(), !(t < 0) && (await L(), a(t));
|
|
5592
5597
|
}
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
e.illinois ? (G(), K("div", Lu, [...n[0] ||= [J("svg", {
|
|
5598
|
+
}), (i, a) => (G(), K("header", { class: j(["g-app-header", { "g-app-header--no-app-controls": !i.$slots["app-controls"] }]) }, [
|
|
5599
|
+
a[1] ||= J("div", { class: "g-app-header__background" }, [J("div", { class: "g-app-header__background-pattern" }), J("div", { class: "g-app-header__background-gradient" })], -1),
|
|
5600
|
+
J("div", Fu, [H(i.$slots, "left", {}, () => [J("a", Iu, M(e.brand), 1)])]),
|
|
5601
|
+
e.illinois ? (G(), K("div", Lu, [...a[0] ||= [J("svg", {
|
|
5598
5602
|
class: "g-app-header__block-i",
|
|
5599
5603
|
role: "img",
|
|
5600
5604
|
width: "55",
|
|
@@ -5610,18 +5614,18 @@ var Tu = /* @__PURE__ */ B({
|
|
|
5610
5614
|
class: "g-app-header__block-i-fill",
|
|
5611
5615
|
d: "M42.1 18.1h9V3H3v15h9c1.7 0 3 1.3 3 3v36.1c0 1.7-1.3 3-3 3H3v15h48.1v-15h-9c-1.7 0-3-1.3-3-3v-36c0-1.7 1.4-3 3-3z"
|
|
5612
5616
|
})
|
|
5613
|
-
], -1)]])) : H(
|
|
5614
|
-
J("div", Ru, [H(
|
|
5615
|
-
|
|
5617
|
+
], -1)]])) : H(i.$slots, "icon", {}, void 0, void 0, 1),
|
|
5618
|
+
J("div", Ru, [H(i.$slots, "title")]),
|
|
5619
|
+
i.$slots.navigation && !I(t) ? (G(), K("nav", {
|
|
5616
5620
|
key: 2,
|
|
5617
5621
|
ref_key: "desktopNavigationRef",
|
|
5618
|
-
ref:
|
|
5622
|
+
ref: n,
|
|
5619
5623
|
class: "g-app-header__navigation",
|
|
5620
5624
|
"aria-label": e.navigationLabel
|
|
5621
|
-
}, [H(
|
|
5625
|
+
}, [H(i.$slots, "navigation")], 8, zu)) : i.$slots.navigation ? (G(), q(Pu, {
|
|
5622
5626
|
key: 3,
|
|
5623
5627
|
ref_key: "mobileNavigationRef",
|
|
5624
|
-
ref:
|
|
5628
|
+
ref: r,
|
|
5625
5629
|
class: "g-app-header__navigation-toggle",
|
|
5626
5630
|
label: e.navigationLabel,
|
|
5627
5631
|
mode: "popover"
|
|
@@ -5629,19 +5633,16 @@ var Tu = /* @__PURE__ */ B({
|
|
|
5629
5633
|
default: R(() => [J("nav", {
|
|
5630
5634
|
class: "g-app-header__navigation-popover",
|
|
5631
5635
|
"aria-label": e.navigationLabel
|
|
5632
|
-
}, [H(
|
|
5636
|
+
}, [H(i.$slots, "navigation")], 8, Bu)]),
|
|
5633
5637
|
_: 3
|
|
5634
5638
|
}, 8, ["label"])) : Z("", !0),
|
|
5635
|
-
i
|
|
5636
|
-
key: 4,
|
|
5637
|
-
class: j(["g-app-header__app-controls-wrap", { "g-app-header__app-controls-wrap--push": a.value }])
|
|
5638
|
-
}, [H(t.$slots, "app-controls")], 2)) : Z("", !0)
|
|
5639
|
+
i.$slots["app-controls"] ? (G(), K("div", Vu, [H(i.$slots, "app-controls")])) : Z("", !0)
|
|
5639
5640
|
], 2));
|
|
5640
5641
|
}
|
|
5641
5642
|
}), [["styles", [""]]]);
|
|
5642
5643
|
//#endregion
|
|
5643
5644
|
//#region src/compose/useForm.ts
|
|
5644
|
-
function
|
|
5645
|
+
function Uu() {
|
|
5645
5646
|
let e = /* @__PURE__ */ Bt({}), t = /* @__PURE__ */ F(!1), n = Q(() => {
|
|
5646
5647
|
let t = {};
|
|
5647
5648
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -5683,18 +5684,18 @@ function Hu() {
|
|
|
5683
5684
|
}
|
|
5684
5685
|
//#endregion
|
|
5685
5686
|
//#region src/compose/useWebComponentForm.ts
|
|
5686
|
-
function
|
|
5687
|
+
function Wu() {
|
|
5687
5688
|
let e = globalThis;
|
|
5688
5689
|
return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
|
|
5689
5690
|
}
|
|
5690
|
-
function
|
|
5691
|
-
let t =
|
|
5692
|
-
return t.has(n) || t.set(n,
|
|
5691
|
+
function Gu(e = "default") {
|
|
5692
|
+
let t = Wu(), n = e || "default";
|
|
5693
|
+
return t.has(n) || t.set(n, Uu()), t.get(n);
|
|
5693
5694
|
}
|
|
5694
5695
|
//#endregion
|
|
5695
5696
|
//#region src/compose/useFormField.ts
|
|
5696
|
-
function
|
|
5697
|
-
let t = ui(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, r = e.formKey ?? n ?? "default", i = Wn("form", null) ?? (dl() ?
|
|
5697
|
+
function Ku(e) {
|
|
5698
|
+
let t = ui(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, r = e.formKey ?? n ?? "default", i = Wn("form", null) ?? (dl() ? Gu(r) : null), a = Q(() => {
|
|
5698
5699
|
let t = [];
|
|
5699
5700
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
5700
5701
|
}), o = Q(() => a.value.length > 0), s = e.name;
|
|
@@ -5713,7 +5714,7 @@ function Gu(e) {
|
|
|
5713
5714
|
}
|
|
5714
5715
|
//#endregion
|
|
5715
5716
|
//#region src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
|
|
5716
|
-
var
|
|
5717
|
+
var qu = ["id"], Ju = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
5717
5718
|
__name: "GFormErrorMessages",
|
|
5718
5719
|
props: {
|
|
5719
5720
|
errors: { type: Array },
|
|
@@ -5736,23 +5737,23 @@ var Ku = ["id"], qu = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
5736
5737
|
}, [J("path", {
|
|
5737
5738
|
fill: "currentColor",
|
|
5738
5739
|
d: "M320 64C334.7 64 348.2 72.1 355.2 85L571.2 485C577.9 497.4 577.6 512.4 570.4 524.5C563.2 536.6 550.1 544 536 544L104 544C89.9 544 76.8 536.6 69.6 524.5C62.4 512.4 62.1 497.4 68.8 485L284.8 85C291.8 72.1 305.3 64 320 64zM320 416C302.3 416 288 430.3 288 448C288 465.7 302.3 480 320 480C337.7 480 352 465.7 352 448C352 430.3 337.7 416 320 416zM320 224C301.8 224 287.3 239.5 288.6 257.7L296 361.7C296.9 374.2 307.4 384 319.9 384C332.5 384 342.9 374.3 343.8 361.7L351.2 257.7C352.5 239.5 338.1 224 319.8 224z"
|
|
5739
|
-
})], -1), X(" " + M(e), 1)]))), 128))], 8,
|
|
5740
|
+
})], -1), X(" " + M(e), 1)]))), 128))], 8, qu)) : Z("", !0);
|
|
5740
5741
|
}
|
|
5741
|
-
}), [["styles", [""]]]),
|
|
5742
|
+
}), [["styles", [""]]]), Yu = {
|
|
5742
5743
|
key: 0,
|
|
5743
5744
|
class: "g-checkbox-group__legend"
|
|
5744
|
-
},
|
|
5745
|
+
}, Xu = {
|
|
5745
5746
|
key: 0,
|
|
5746
5747
|
class: "g-checkbox-group__required",
|
|
5747
5748
|
"aria-hidden": "true"
|
|
5748
|
-
},
|
|
5749
|
+
}, Zu = {
|
|
5749
5750
|
key: 1,
|
|
5750
5751
|
class: "g-checkbox-group__label"
|
|
5751
|
-
},
|
|
5752
|
+
}, Qu = {
|
|
5752
5753
|
key: 0,
|
|
5753
5754
|
class: "g-checkbox-group__required",
|
|
5754
5755
|
"aria-hidden": "true"
|
|
5755
|
-
},
|
|
5756
|
+
}, $u = ["id"], ed = { class: "g-checkbox-group__options" }, td = ["for"], nd = [
|
|
5756
5757
|
"id",
|
|
5757
5758
|
"type",
|
|
5758
5759
|
"name",
|
|
@@ -5761,7 +5762,7 @@ var Ku = ["id"], qu = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
5761
5762
|
"disabled",
|
|
5762
5763
|
"required",
|
|
5763
5764
|
"onChange"
|
|
5764
|
-
],
|
|
5765
|
+
], rd = { class: "g-checkbox-group__label-text" }, id = ["id"], ad = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
5765
5766
|
__name: "GCheckboxGroup",
|
|
5766
5767
|
props: /*@__PURE__*/ U({
|
|
5767
5768
|
label: {
|
|
@@ -5799,7 +5800,7 @@ var Ku = ["id"], qu = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
5799
5800
|
}),
|
|
5800
5801
|
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
5801
5802
|
setup(e, { emit: t }) {
|
|
5802
|
-
let n = e, r = Mi(e, "modelValue"), i = Or(), { displayErrors: a, hasErrors: o } =
|
|
5803
|
+
let n = e, r = Mi(e, "modelValue"), i = Or(), { displayErrors: a, hasErrors: o } = Ku({
|
|
5803
5804
|
name: n.name,
|
|
5804
5805
|
value: r,
|
|
5805
5806
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -5837,13 +5838,13 @@ var Ku = ["id"], qu = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
5837
5838
|
}
|
|
5838
5839
|
return (t, n) => (G(), q(ti(p.value ? "fieldset" : "div"), Va({ class: ["g-checkbox-group", { "g-checkbox-group--error": I(o) }] }, m.value), {
|
|
5839
5840
|
default: R(() => [
|
|
5840
|
-
p.value && e.label ? (G(), K("legend",
|
|
5841
|
+
p.value && e.label ? (G(), K("legend", Yu, [X(M(e.label), 1), e.required ? (G(), K("span", Xu, "\xA0*")) : Z("", !0)])) : !p.value && e.label ? (G(), K("div", Zu, [X(M(e.label), 1), e.required ? (G(), K("span", Qu, "\xA0*")) : Z("", !0)])) : Z("", !0),
|
|
5841
5842
|
e.instructions ? (G(), K("div", {
|
|
5842
5843
|
key: 2,
|
|
5843
5844
|
id: f.value,
|
|
5844
5845
|
class: "g-checkbox-group__instructions"
|
|
5845
|
-
}, M(e.instructions), 9,
|
|
5846
|
-
J("div",
|
|
5846
|
+
}, M(e.instructions), 9, $u)) : Z("", !0),
|
|
5847
|
+
J("div", ed, [(G(!0), K(W, null, V(e.options, (t, n) => (G(), K("div", {
|
|
5847
5848
|
key: t.value,
|
|
5848
5849
|
class: j(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": t.disabled }])
|
|
5849
5850
|
}, [J("label", {
|
|
@@ -5858,12 +5859,12 @@ var Ku = ["id"], qu = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
5858
5859
|
disabled: t.disabled,
|
|
5859
5860
|
required: e.required && (e.radio && n === 0 || !e.radio && e.options.length === 1),
|
|
5860
5861
|
class: "g-checkbox-group__input"
|
|
5861
|
-
}, { ref_for: !0 }, _(t, n), { onChange: (e) => l(t.value, e.target.checked) }), null, 16,
|
|
5862
|
+
}, { ref_for: !0 }, _(t, n), { onChange: (e) => l(t.value, e.target.checked) }), null, 16, nd), J("span", rd, M(t.label), 1)], 10, td), t.hint ? (G(), K("div", {
|
|
5862
5863
|
key: 0,
|
|
5863
5864
|
id: h(n),
|
|
5864
5865
|
class: "g-checkbox-group__hint"
|
|
5865
|
-
}, M(t.hint), 9,
|
|
5866
|
-
Y(
|
|
5866
|
+
}, M(t.hint), 9, id)) : Z("", !0)], 2))), 128))]),
|
|
5867
|
+
Y(Ju, {
|
|
5867
5868
|
errors: I(a),
|
|
5868
5869
|
id: d.value
|
|
5869
5870
|
}, null, 8, ["errors", "id"])
|
|
@@ -5871,24 +5872,24 @@ var Ku = ["id"], qu = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
5871
5872
|
_: 1
|
|
5872
5873
|
}, 16, ["class"]));
|
|
5873
5874
|
}
|
|
5874
|
-
}), [["styles", [""]]]),
|
|
5875
|
-
function
|
|
5876
|
-
return `${e}-${++
|
|
5875
|
+
}), [["styles", [""]]]), od = 1;
|
|
5876
|
+
function sd(e = "v-gtooltip") {
|
|
5877
|
+
return `${e}-${++od}`;
|
|
5877
5878
|
}
|
|
5878
|
-
function
|
|
5879
|
+
function cd(e, t = "v-gtooltip") {
|
|
5879
5880
|
let n = e.getAttribute("aria-describedby");
|
|
5880
5881
|
if (n) return n;
|
|
5881
|
-
let r =
|
|
5882
|
+
let r = sd(t);
|
|
5882
5883
|
return e.setAttribute("aria-describedby", r), r;
|
|
5883
5884
|
}
|
|
5884
|
-
function
|
|
5885
|
+
function ld(e, t) {
|
|
5885
5886
|
let n = document.createElement("div");
|
|
5886
5887
|
return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
|
|
5887
5888
|
}
|
|
5888
|
-
function
|
|
5889
|
+
function ud(e) {
|
|
5889
5890
|
(document.getElementById("modal-root") ?? document.body).appendChild(e);
|
|
5890
5891
|
}
|
|
5891
|
-
function
|
|
5892
|
+
function dd(e, t) {
|
|
5892
5893
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = wu(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
|
|
5893
5894
|
gap: 8,
|
|
5894
5895
|
margin: 8,
|
|
@@ -5896,26 +5897,26 @@ function ud(e, t) {
|
|
|
5896
5897
|
}), s = (n.left + n.width / 2 - a) / r.width * 100;
|
|
5897
5898
|
t.style.setProperty("--v-gtooltip-arrow-x", `${s}%`), t.classList.remove("v-gtooltip-bottom"), o || t.classList.add("v-gtooltip-bottom"), t.style.left = `${a}px`, t.style.top = `${i}px`, t.style.zIndex = `${Zs()}`, t.style.visibility = "visible", t.style.opacity = "1";
|
|
5898
5899
|
}
|
|
5899
|
-
function
|
|
5900
|
+
function fd(e) {
|
|
5900
5901
|
e.style.opacity = "0", e.style.visibility = "hidden";
|
|
5901
5902
|
}
|
|
5902
5903
|
//#endregion
|
|
5903
5904
|
//#region src/directives/v-gtooltip.ts
|
|
5904
|
-
var
|
|
5905
|
+
var pd = {
|
|
5905
5906
|
mounted(e, t) {
|
|
5906
|
-
let n = /* @__PURE__ */ F(null), r = /* @__PURE__ */ F(!1), i = /* @__PURE__ */ F(!1), a = /* @__PURE__ */ F(t.value), o = null, s = !1, c =
|
|
5907
|
-
n.value || (n.value =
|
|
5908
|
-
n.value && (r.value || i.value) &&
|
|
5907
|
+
let n = /* @__PURE__ */ F(null), r = /* @__PURE__ */ F(!1), i = /* @__PURE__ */ F(!1), a = /* @__PURE__ */ F(t.value), o = null, s = !1, c = cd(e), l = () => {
|
|
5908
|
+
n.value || (n.value = ld(a.value, c), ud(n.value), o = new ResizeObserver(() => {
|
|
5909
|
+
n.value && (r.value || i.value) && dd(e, n.value);
|
|
5909
5910
|
}), o.observe(n.value));
|
|
5910
5911
|
};
|
|
5911
5912
|
Jn(() => {
|
|
5912
5913
|
n.value && (n.value.textContent = a.value);
|
|
5913
5914
|
});
|
|
5914
5915
|
let u = () => {
|
|
5915
|
-
n.value && (r.value || i.value) &&
|
|
5916
|
+
n.value && (r.value || i.value) && dd(e, n.value);
|
|
5916
5917
|
};
|
|
5917
5918
|
Jn(() => {
|
|
5918
|
-
r.value || i.value ? (l(), n.value &&
|
|
5919
|
+
r.value || i.value ? (l(), n.value && dd(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (fd(n.value), setTimeout(() => {
|
|
5919
5920
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
5920
5921
|
}, 150)));
|
|
5921
5922
|
});
|
|
@@ -5953,7 +5954,7 @@ var fd = {
|
|
|
5953
5954
|
let t = e._v_gtooltip;
|
|
5954
5955
|
t && t.tooltip && t.tooltip.value && (t.resizeObserver && t.resizeObserver.disconnect(), t.tooltip.value.remove(), t.tooltip.value = null), t && t.onScroll && window.removeEventListener("scroll", t.onScroll, { capture: !0 }), e.removeEventListener("mouseenter", t.onMouseEnter), e.removeEventListener("mouseleave", t.onMouseLeave), e.removeEventListener("focus", t.onFocus), e.removeEventListener("blur", t.onBlur), e.removeEventListener("keydown", t.onKeyDown), e.removeAttribute("aria-describedby");
|
|
5955
5956
|
}
|
|
5956
|
-
},
|
|
5957
|
+
}, md = { class: "g-clipboard-text" }, hd = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
5957
5958
|
__name: "GClipboard",
|
|
5958
5959
|
props: {
|
|
5959
5960
|
text: { type: String },
|
|
@@ -5961,12 +5962,12 @@ var fd = {
|
|
|
5961
5962
|
copyLabel: { type: String }
|
|
5962
5963
|
},
|
|
5963
5964
|
setup(e) {
|
|
5964
|
-
let t = e, n =
|
|
5965
|
+
let t = e, n = pd, { text: r, copy: i, copied: a, isSupported: o } = au({ source: t.text }), s = /* @__PURE__ */ F(t.copyLabel ?? "Copy to clipboard"), c = () => {
|
|
5965
5966
|
o.value ? (i(), s.value = "Copied") : s.value = "Copy not supported";
|
|
5966
5967
|
}, l = () => {
|
|
5967
5968
|
s.value = t.copyLabel ?? "Copy to clipboard";
|
|
5968
5969
|
};
|
|
5969
|
-
return (r, i) => (G(), K("div",
|
|
5970
|
+
return (r, i) => (G(), K("div", md, [e.hideText ? Z("", !0) : (G(), K(W, { key: 0 }, [X(M(t.text), 1)], 64)), Vn((G(), K("button", {
|
|
5970
5971
|
type: "button",
|
|
5971
5972
|
"aria-label": "Copy",
|
|
5972
5973
|
onClick: c,
|
|
@@ -5983,23 +5984,23 @@ var fd = {
|
|
|
5983
5984
|
d: "M480 400L288 400C279.2 400 272 392.8 272 384L272 128C272 119.2 279.2 112 288 112L421.5 112C425.7 112 429.8 113.7 432.8 116.7L491.3 175.2C494.3 178.2 496 182.3 496 186.5L496 384C496 392.8 488.8 400 480 400zM288 448L480 448C515.3 448 544 419.3 544 384L544 186.5C544 169.5 537.3 153.2 525.3 141.2L466.7 82.7C454.7 70.7 438.5 64 421.5 64L288 64C252.7 64 224 92.7 224 128L224 384C224 419.3 252.7 448 288 448zM160 192C124.7 192 96 220.7 96 256L96 512C96 547.3 124.7 576 160 576L352 576C387.3 576 416 547.3 416 512L416 496L368 496L368 512C368 520.8 360.8 528 352 528L160 528C151.2 528 144 520.8 144 512L144 256C144 247.2 151.2 240 160 240L176 240L176 192L160 192z"
|
|
5984
5985
|
})], -1)]], 32)), [[I(n), s.value]])]));
|
|
5985
5986
|
}
|
|
5986
|
-
}), [["styles", [""]]]),
|
|
5987
|
+
}), [["styles", [""]]]), gd = ["for"], _d = {
|
|
5987
5988
|
key: 0,
|
|
5988
5989
|
class: "g-text-input-required",
|
|
5989
5990
|
"aria-hidden": "true"
|
|
5990
|
-
},
|
|
5991
|
+
}, vd = ["id"], yd = {
|
|
5991
5992
|
key: 0,
|
|
5992
5993
|
class: "g-text-input-prefix"
|
|
5993
|
-
},
|
|
5994
|
+
}, bd = [
|
|
5994
5995
|
"value",
|
|
5995
5996
|
"placeholder",
|
|
5996
5997
|
"disabled",
|
|
5997
5998
|
"required",
|
|
5998
5999
|
"aria-invalid"
|
|
5999
|
-
],
|
|
6000
|
+
], xd = {
|
|
6000
6001
|
key: 1,
|
|
6001
6002
|
class: "g-text-input-suffix"
|
|
6002
|
-
},
|
|
6003
|
+
}, Sd = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6003
6004
|
inheritAttrs: !1,
|
|
6004
6005
|
__name: "GTextInput",
|
|
6005
6006
|
props: /*@__PURE__*/ U({
|
|
@@ -6053,7 +6054,7 @@ var fd = {
|
|
|
6053
6054
|
}),
|
|
6054
6055
|
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
6055
6056
|
setup(e, { emit: t }) {
|
|
6056
|
-
let n = e, r = Mi(e, "modelValue"), i = Or(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = fl({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } =
|
|
6057
|
+
let n = e, r = Mi(e, "modelValue"), i = Or(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = fl({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } = Ku({
|
|
6057
6058
|
name: n.name,
|
|
6058
6059
|
value: r,
|
|
6059
6060
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -6091,14 +6092,14 @@ var fd = {
|
|
|
6091
6092
|
key: 0,
|
|
6092
6093
|
for: c.value,
|
|
6093
6094
|
class: "g-text-input-label"
|
|
6094
|
-
}, [X(M(n.label), 1), n.required ? (G(), K("span",
|
|
6095
|
+
}, [X(M(n.label), 1), n.required ? (G(), K("span", _d, " *")) : Z("", !0)], 8, gd)) : Z("", !0),
|
|
6095
6096
|
t.$slots.instructions || e.instructions ? (G(), K("div", {
|
|
6096
6097
|
key: 1,
|
|
6097
6098
|
id: "instructions-" + I(i),
|
|
6098
6099
|
class: "g-text-input-instructions"
|
|
6099
|
-
}, [H(t.$slots, "instructions", {}, () => [X(M(e.instructions), 1)])], 8,
|
|
6100
|
+
}, [H(t.$slots, "instructions", {}, () => [X(M(e.instructions), 1)])], 8, vd)) : Z("", !0),
|
|
6100
6101
|
J("div", { class: j([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
|
|
6101
|
-
n.prefix ? (G(), K("span",
|
|
6102
|
+
n.prefix ? (G(), K("span", yd, M(n.prefix), 1)) : Z("", !0),
|
|
6102
6103
|
J("input", Va({
|
|
6103
6104
|
value: r.value,
|
|
6104
6105
|
placeholder: n.placeholder,
|
|
@@ -6115,16 +6116,16 @@ var fd = {
|
|
|
6115
6116
|
id: c.value,
|
|
6116
6117
|
"aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + I(i) : void 0,
|
|
6117
6118
|
"aria-errormessage": I(u) ? "error-message-" + I(i) : void 0
|
|
6118
|
-
}, { "aria-invalid": I(u) ? "true" : "false" }), null, 16,
|
|
6119
|
-
n.suffix ? (G(), K("span",
|
|
6119
|
+
}, { "aria-invalid": I(u) ? "true" : "false" }), null, 16, bd),
|
|
6120
|
+
n.suffix ? (G(), K("span", xd, M(n.suffix), 1)) : Z("", !0)
|
|
6120
6121
|
], 2),
|
|
6121
|
-
Y(
|
|
6122
|
+
Y(Ju, {
|
|
6122
6123
|
errors: I(l),
|
|
6123
6124
|
id: "error-message-" + I(i)
|
|
6124
6125
|
}, null, 8, ["errors", "id"])
|
|
6125
6126
|
], 2));
|
|
6126
6127
|
}
|
|
6127
|
-
}), [["styles", [""]]]),
|
|
6128
|
+
}), [["styles", [""]]]), Cd = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6128
6129
|
__name: "GCurrencyInput",
|
|
6129
6130
|
props: /*@__PURE__*/ U({
|
|
6130
6131
|
label: {
|
|
@@ -6166,7 +6167,7 @@ var fd = {
|
|
|
6166
6167
|
emits: ["update:modelValue"],
|
|
6167
6168
|
setup(e) {
|
|
6168
6169
|
let t = e, n = Mi(e, "modelValue");
|
|
6169
|
-
return (e, r) => (G(), q(
|
|
6170
|
+
return (e, r) => (G(), q(Sd, Va({
|
|
6170
6171
|
modelValue: n.value,
|
|
6171
6172
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
6172
6173
|
name: t.name,
|
|
@@ -6193,7 +6194,7 @@ var fd = {
|
|
|
6193
6194
|
"form-key"
|
|
6194
6195
|
]));
|
|
6195
6196
|
}
|
|
6196
|
-
}), [["styles", [""]]]),
|
|
6197
|
+
}), [["styles", [""]]]), wd = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6197
6198
|
__name: "GDateInput",
|
|
6198
6199
|
props: /*@__PURE__*/ U({
|
|
6199
6200
|
label: {
|
|
@@ -6235,7 +6236,7 @@ var fd = {
|
|
|
6235
6236
|
emits: ["update:modelValue"],
|
|
6236
6237
|
setup(e) {
|
|
6237
6238
|
let t = e, n = Mi(e, "modelValue");
|
|
6238
|
-
return (e, r) => (G(), q(
|
|
6239
|
+
return (e, r) => (G(), q(Sd, Va({
|
|
6239
6240
|
modelValue: n.value,
|
|
6240
6241
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
6241
6242
|
name: t.name,
|
|
@@ -6259,21 +6260,21 @@ var fd = {
|
|
|
6259
6260
|
"form-key"
|
|
6260
6261
|
]));
|
|
6261
6262
|
}
|
|
6262
|
-
}), [["styles", [""]]]),
|
|
6263
|
+
}), [["styles", [""]]]), Td = { class: "g-date-range-input" }, Ed = {
|
|
6263
6264
|
key: 0,
|
|
6264
6265
|
class: "g-date-range-input__label"
|
|
6265
|
-
},
|
|
6266
|
+
}, Dd = {
|
|
6266
6267
|
key: 0,
|
|
6267
6268
|
class: "g-date-range-input__required",
|
|
6268
6269
|
"aria-hidden": "true"
|
|
6269
|
-
},
|
|
6270
|
+
}, Od = {
|
|
6270
6271
|
key: 1,
|
|
6271
6272
|
class: "g-date-range-input__instructions"
|
|
6272
|
-
},
|
|
6273
|
+
}, kd = { class: "g-date-range-input__fields" }, Ad = {
|
|
6273
6274
|
key: 2,
|
|
6274
6275
|
class: "g-date-range-input__errors",
|
|
6275
6276
|
role: "alert"
|
|
6276
|
-
},
|
|
6277
|
+
}, jd = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6277
6278
|
__name: "GDateRangeInput",
|
|
6278
6279
|
props: /*@__PURE__*/ U({
|
|
6279
6280
|
label: {
|
|
@@ -6321,7 +6322,7 @@ var fd = {
|
|
|
6321
6322
|
}),
|
|
6322
6323
|
emits: ["update:modelValue"],
|
|
6323
6324
|
setup(e) {
|
|
6324
|
-
let t = e, n = Mi(e, "modelValue"), r = /* @__PURE__ */ F(n.value.start || null), i = /* @__PURE__ */ F(n.value.end || null), { displayErrors: a } =
|
|
6325
|
+
let t = e, n = Mi(e, "modelValue"), r = /* @__PURE__ */ F(n.value.start || null), i = /* @__PURE__ */ F(n.value.end || null), { displayErrors: a } = Ku({
|
|
6325
6326
|
name: t.name,
|
|
6326
6327
|
value: n,
|
|
6327
6328
|
errors: /* @__PURE__ */ ln(t, "errors"),
|
|
@@ -6334,10 +6335,10 @@ var fd = {
|
|
|
6334
6335
|
};
|
|
6335
6336
|
}), z(n, (e) => {
|
|
6336
6337
|
e.start !== r.value && (r.value = e.start), e.end !== i.value && (i.value = e.end);
|
|
6337
|
-
}, { deep: !0 }), (e, n) => (G(), K("div",
|
|
6338
|
-
t.label ? (G(), K("div",
|
|
6339
|
-
t.instructions ? (G(), K("div",
|
|
6340
|
-
J("div",
|
|
6338
|
+
}, { deep: !0 }), (e, n) => (G(), K("div", Td, [
|
|
6339
|
+
t.label ? (G(), K("div", Ed, [X(M(t.label), 1), t.required ? (G(), K("span", Dd, " *")) : Z("", !0)])) : Z("", !0),
|
|
6340
|
+
t.instructions ? (G(), K("div", Od, M(t.instructions), 1)) : Z("", !0),
|
|
6341
|
+
J("div", kd, [Y(wd, {
|
|
6341
6342
|
modelValue: r.value,
|
|
6342
6343
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
6343
6344
|
label: t.startLabel,
|
|
@@ -6349,7 +6350,7 @@ var fd = {
|
|
|
6349
6350
|
"label",
|
|
6350
6351
|
"disabled",
|
|
6351
6352
|
"required"
|
|
6352
|
-
]), Y(
|
|
6353
|
+
]), Y(wd, {
|
|
6353
6354
|
modelValue: i.value,
|
|
6354
6355
|
"onUpdate:modelValue": n[1] ||= (e) => i.value = e,
|
|
6355
6356
|
label: t.endLabel,
|
|
@@ -6362,13 +6363,13 @@ var fd = {
|
|
|
6362
6363
|
"disabled",
|
|
6363
6364
|
"required"
|
|
6364
6365
|
])]),
|
|
6365
|
-
I(a).length > 0 ? (G(), K("div",
|
|
6366
|
+
I(a).length > 0 ? (G(), K("div", Ad, [(G(!0), K(W, null, V(I(a), (e, t) => (G(), K("div", {
|
|
6366
6367
|
key: t,
|
|
6367
6368
|
class: "g-date-range-input__error"
|
|
6368
6369
|
}, M(e), 1))), 128))])) : Z("", !0)
|
|
6369
6370
|
]));
|
|
6370
6371
|
}
|
|
6371
|
-
}), [["styles", [""]]]),
|
|
6372
|
+
}), [["styles", [""]]]), Md = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6372
6373
|
__name: "GDetailList",
|
|
6373
6374
|
props: { variant: {
|
|
6374
6375
|
default: "grid",
|
|
@@ -6378,13 +6379,13 @@ var fd = {
|
|
|
6378
6379
|
let t = e;
|
|
6379
6380
|
return (e, n) => (G(), K("dl", { class: j(["g-detail-list", `g-detail-list--${t.variant}`]) }, [H(e.$slots, "default")], 2));
|
|
6380
6381
|
}
|
|
6381
|
-
}), [["styles", [""]]]),
|
|
6382
|
+
}), [["styles", [""]]]), Nd = { class: "g-detail-list-item" }, Pd = { class: "g-detail-list-item__label" }, Fd = { class: "g-detail-list-item__value" }, Id = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6382
6383
|
__name: "GDetailListItem",
|
|
6383
6384
|
props: { label: { type: String } },
|
|
6384
6385
|
setup(e) {
|
|
6385
|
-
return (t, n) => (G(), K("div",
|
|
6386
|
+
return (t, n) => (G(), K("div", Nd, [J("dt", Pd, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])]), J("dd", Fd, [H(t.$slots, "default")])]));
|
|
6386
6387
|
}
|
|
6387
|
-
}), [["styles", [""]]]),
|
|
6388
|
+
}), [["styles", [""]]]), Ld = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6388
6389
|
__name: "GEmailInput",
|
|
6389
6390
|
props: /*@__PURE__*/ U({
|
|
6390
6391
|
label: {
|
|
@@ -6422,7 +6423,7 @@ var fd = {
|
|
|
6422
6423
|
emits: ["update:modelValue"],
|
|
6423
6424
|
setup(e) {
|
|
6424
6425
|
let t = Mi(e, "modelValue");
|
|
6425
|
-
return (n, r) => (G(), q(
|
|
6426
|
+
return (n, r) => (G(), q(Sd, Va({
|
|
6426
6427
|
modelValue: t.value,
|
|
6427
6428
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
6428
6429
|
name: e.name,
|
|
@@ -6444,13 +6445,13 @@ var fd = {
|
|
|
6444
6445
|
"instructions"
|
|
6445
6446
|
]));
|
|
6446
6447
|
}
|
|
6447
|
-
}), [["styles", [""]]]),
|
|
6448
|
+
}), [["styles", [""]]]), Rd = ["for"], zd = {
|
|
6448
6449
|
key: 0,
|
|
6449
6450
|
class: "g-file-input-required"
|
|
6450
|
-
},
|
|
6451
|
+
}, Bd = {
|
|
6451
6452
|
key: 0,
|
|
6452
6453
|
class: "g-file-input-box-header"
|
|
6453
|
-
},
|
|
6454
|
+
}, Vd = ["id"], Hd = [
|
|
6454
6455
|
"id",
|
|
6455
6456
|
"disabled",
|
|
6456
6457
|
"required",
|
|
@@ -6459,11 +6460,11 @@ var fd = {
|
|
|
6459
6460
|
"aria-invalid",
|
|
6460
6461
|
"aria-describedby",
|
|
6461
6462
|
"aria-errormessage"
|
|
6462
|
-
],
|
|
6463
|
+
], Ud = {
|
|
6463
6464
|
key: 1,
|
|
6464
6465
|
class: "g-file-input-pills",
|
|
6465
6466
|
"aria-label": "Selected files"
|
|
6466
|
-
},
|
|
6467
|
+
}, Wd = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6467
6468
|
inheritAttrs: !1,
|
|
6468
6469
|
__name: "GFileInput",
|
|
6469
6470
|
props: /*@__PURE__*/ U({
|
|
@@ -6499,7 +6500,7 @@ var fd = {
|
|
|
6499
6500
|
}),
|
|
6500
6501
|
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
6501
6502
|
setup(e, { emit: t }) {
|
|
6502
|
-
let n = e, r = Mi(e, "modelValue"), i = Or(), { displayErrors: a } =
|
|
6503
|
+
let n = e, r = Mi(e, "modelValue"), i = Or(), { displayErrors: a } = Ku({
|
|
6503
6504
|
name: n.name,
|
|
6504
6505
|
value: r,
|
|
6505
6506
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -6526,12 +6527,12 @@ var fd = {
|
|
|
6526
6527
|
key: 0,
|
|
6527
6528
|
for: I(i),
|
|
6528
6529
|
class: "g-file-input-label"
|
|
6529
|
-
}, [X(M(e.label) + " ", 1), e.required ? (G(), K("span",
|
|
6530
|
+
}, [X(M(e.label) + " ", 1), e.required ? (G(), K("span", zd, "*")) : Z("", !0)], 8, Rd)) : Z("", !0),
|
|
6530
6531
|
J("div", { class: j(["g-file-input-box", { "g-file-input-box--disabled": e.disabled }]) }, [
|
|
6531
|
-
e.instructions ? (G(), K("div",
|
|
6532
|
+
e.instructions ? (G(), K("div", Bd, [J("span", {
|
|
6532
6533
|
id: "instructions-" + I(i),
|
|
6533
6534
|
class: "g-file-input-instructions"
|
|
6534
|
-
}, M(e.instructions), 9,
|
|
6535
|
+
}, M(e.instructions), 9, Vd)])) : Z("", !0),
|
|
6535
6536
|
J("input", {
|
|
6536
6537
|
id: I(i),
|
|
6537
6538
|
type: "file",
|
|
@@ -6544,8 +6545,8 @@ var fd = {
|
|
|
6544
6545
|
"aria-describedby": e.instructions ? "instructions-" + I(i) : void 0,
|
|
6545
6546
|
"aria-errormessage": d.value ? "error-message-" + I(i) : void 0,
|
|
6546
6547
|
onChange: l
|
|
6547
|
-
}, null, 40,
|
|
6548
|
-
e.multiple && f.value.length > 0 ? (G(), K("ul",
|
|
6548
|
+
}, null, 40, Hd),
|
|
6549
|
+
e.multiple && f.value.length > 0 ? (G(), K("ul", Ud, [(G(!0), K(W, null, V(f.value, (e) => (G(), K("li", {
|
|
6549
6550
|
key: e,
|
|
6550
6551
|
class: "g-file-input-pill"
|
|
6551
6552
|
}, [n[0] ||= J("svg", {
|
|
@@ -6555,13 +6556,13 @@ var fd = {
|
|
|
6555
6556
|
viewBox: "0 0 640 640"
|
|
6556
6557
|
}, [J("path", { d: "M192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 234.5C512 217.5 505.3 201.2 493.3 189.2L386.7 82.7C374.7 70.7 358.5 64 341.5 64L192 64zM453.5 240L360 240C346.7 240 336 229.3 336 216L336 122.5L453.5 240z" })], -1), X(" " + M(e), 1)]))), 128))])) : Z("", !0)
|
|
6557
6558
|
], 2),
|
|
6558
|
-
Y(
|
|
6559
|
+
Y(Ju, {
|
|
6559
6560
|
errors: u.value,
|
|
6560
6561
|
id: "error-message-" + I(i)
|
|
6561
6562
|
}, null, 8, ["errors", "id"])
|
|
6562
6563
|
], 2));
|
|
6563
6564
|
}
|
|
6564
|
-
}), [["styles", [""]]]),
|
|
6565
|
+
}), [["styles", [""]]]), Gd = ["action", "method"], Kd = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6565
6566
|
__name: "GForm",
|
|
6566
6567
|
props: /*@__PURE__*/ U({
|
|
6567
6568
|
action: {
|
|
@@ -6582,7 +6583,7 @@ var fd = {
|
|
|
6582
6583
|
}),
|
|
6583
6584
|
emits: /*@__PURE__*/ U(["submit"], ["update:modelValue"]),
|
|
6584
6585
|
setup(e, { emit: t }) {
|
|
6585
|
-
let n = e, r = Mi(e, "modelValue"), i = t, a = Wn("form", null), o = a ?? (dl() ?
|
|
6586
|
+
let n = e, r = Mi(e, "modelValue"), i = t, a = Wn("form", null), o = a ?? (dl() ? Gu(n.formKey) : Uu());
|
|
6586
6587
|
a || Un("form", o), z(() => o.values.value, (e) => {
|
|
6587
6588
|
r.value = { ...e };
|
|
6588
6589
|
}, { deep: !0 }), z(() => r.value, (e) => {
|
|
@@ -6610,17 +6611,17 @@ var fd = {
|
|
|
6610
6611
|
hasErrors: I(o).hasErrors.value,
|
|
6611
6612
|
values: I(o).values.value,
|
|
6612
6613
|
errors: I(o).errors.value
|
|
6613
|
-
})], 40,
|
|
6614
|
+
})], 40, Gd));
|
|
6614
6615
|
}
|
|
6615
|
-
}), [["styles", [""]]]),
|
|
6616
|
+
}), [["styles", [""]]]), qd = { class: "g-history-scroller-wrapper" }, Jd = {
|
|
6616
6617
|
key: 0,
|
|
6617
6618
|
class: "g-history-shadow g-history-shadow--top",
|
|
6618
6619
|
"aria-hidden": "true"
|
|
6619
|
-
},
|
|
6620
|
+
}, Yd = {
|
|
6620
6621
|
key: 1,
|
|
6621
6622
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
6622
6623
|
"aria-hidden": "true"
|
|
6623
|
-
},
|
|
6624
|
+
}, Xd = ["role", "aria-label"], Zd = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6624
6625
|
__name: "GHistoryScroller",
|
|
6625
6626
|
props: {
|
|
6626
6627
|
label: { type: String },
|
|
@@ -6655,9 +6656,9 @@ var fd = {
|
|
|
6655
6656
|
i.value && (await L(), o());
|
|
6656
6657
|
});
|
|
6657
6658
|
let c = Q(() => [...t.entries].reverse());
|
|
6658
|
-
return (t, l) => (G(), K("div",
|
|
6659
|
-
a.value ? Z("", !0) : (G(), K("div",
|
|
6660
|
-
i.value ? Z("", !0) : (G(), K("div",
|
|
6659
|
+
return (t, l) => (G(), K("div", qd, [
|
|
6660
|
+
a.value ? Z("", !0) : (G(), K("div", Jd)),
|
|
6661
|
+
i.value ? Z("", !0) : (G(), K("div", Yd)),
|
|
6661
6662
|
J("div", {
|
|
6662
6663
|
ref_key: "scrollerRef",
|
|
6663
6664
|
ref: n,
|
|
@@ -6692,10 +6693,10 @@ var fd = {
|
|
|
6692
6693
|
key: e.id,
|
|
6693
6694
|
class: "g-history-entry",
|
|
6694
6695
|
tabindex: "-1"
|
|
6695
|
-
}, [H(t.$slots, "default", { entry: e })]))), 128))], 512)], 40,
|
|
6696
|
+
}, [H(t.$slots, "default", { entry: e })]))), 128))], 512)], 40, Xd)
|
|
6696
6697
|
]));
|
|
6697
6698
|
}
|
|
6698
|
-
}), [["styles", [""]]]),
|
|
6699
|
+
}), [["styles", [""]]]), Qd = ["id"], $d = { class: "g-modal-inner" }, ef = { class: "g-modal-header" }, tf = ["id"], nf = ["id"], rf = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6699
6700
|
__name: "GModal",
|
|
6700
6701
|
props: {
|
|
6701
6702
|
label: { type: String },
|
|
@@ -6745,12 +6746,12 @@ var fd = {
|
|
|
6745
6746
|
ref_key: "dialog",
|
|
6746
6747
|
ref: i,
|
|
6747
6748
|
style: { zIndex: I(u) }
|
|
6748
|
-
}), [J("div",
|
|
6749
|
+
}), [J("div", $d, [J("div", ef, [e.hiddenLabel ? Z("", !0) : (G(), K("h2", {
|
|
6749
6750
|
key: 0,
|
|
6750
6751
|
id: "modal-label-" + I(o),
|
|
6751
6752
|
class: "g-modal-label",
|
|
6752
6753
|
tabindex: "-1"
|
|
6753
|
-
}, M(e.label), 9,
|
|
6754
|
+
}, M(e.label), 9, tf)), J("button", {
|
|
6754
6755
|
class: "g-modal-close",
|
|
6755
6756
|
onClick: p,
|
|
6756
6757
|
"aria-label": "Close"
|
|
@@ -6765,20 +6766,20 @@ var fd = {
|
|
|
6765
6766
|
})], -1)]])]), J("div", {
|
|
6766
6767
|
id: "modal-description-" + I(o),
|
|
6767
6768
|
class: "g-modal-content"
|
|
6768
|
-
}, [H(t.$slots, "default")], 8,
|
|
6769
|
+
}, [H(t.$slots, "default")], 8, nf)])], 16, Qd)]),
|
|
6769
6770
|
_: 3
|
|
6770
6771
|
})]));
|
|
6771
6772
|
}
|
|
6772
6773
|
}), [["styles", [""]]]);
|
|
6773
6774
|
//#endregion
|
|
6774
6775
|
//#region src/compose/useSelectDropdown.ts
|
|
6775
|
-
function
|
|
6776
|
+
function af(e) {
|
|
6776
6777
|
return e.map((e) => typeof e == "string" ? {
|
|
6777
6778
|
label: e,
|
|
6778
6779
|
value: e
|
|
6779
6780
|
} : e);
|
|
6780
6781
|
}
|
|
6781
|
-
function
|
|
6782
|
+
function of({ open: e, anchorRef: t, listboxRef: n, baseId: r, activeIndex: i }) {
|
|
6782
6783
|
let { push: a, pop: o, isTop: s } = Ys(r), c = /* @__PURE__ */ F("below"), l = /* @__PURE__ */ F(null), u = Q(() => {
|
|
6783
6784
|
let e = {};
|
|
6784
6785
|
return l.value !== null && (e.maxHeight = `${l.value}px`), c.value === "above" ? (e.top = "auto", e.bottom = "100%") : (e.top = "100%", e.bottom = "auto"), e;
|
|
@@ -6822,15 +6823,15 @@ function af({ open: e, anchorRef: t, listboxRef: n, baseId: r, activeIndex: i })
|
|
|
6822
6823
|
}
|
|
6823
6824
|
//#endregion
|
|
6824
6825
|
//#region src/components/GMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6825
|
-
var
|
|
6826
|
+
var sf = ["id", "for"], cf = {
|
|
6826
6827
|
key: 0,
|
|
6827
6828
|
class: "g-multiselect-required",
|
|
6828
6829
|
"aria-hidden": "true"
|
|
6829
|
-
},
|
|
6830
|
+
}, lf = ["id"], uf = ["aria-labelledby"], df = { class: "g-multiselect-chip-label" }, ff = [
|
|
6830
6831
|
"aria-label",
|
|
6831
6832
|
"disabled",
|
|
6832
6833
|
"onClick"
|
|
6833
|
-
],
|
|
6834
|
+
], pf = [
|
|
6834
6835
|
"id",
|
|
6835
6836
|
"value",
|
|
6836
6837
|
"placeholder",
|
|
@@ -6840,26 +6841,26 @@ var of = ["id", "for"], sf = {
|
|
|
6840
6841
|
"aria-activedescendant",
|
|
6841
6842
|
"aria-describedby",
|
|
6842
6843
|
"aria-required"
|
|
6843
|
-
],
|
|
6844
|
+
], mf = ["id"], hf = [
|
|
6844
6845
|
"id",
|
|
6845
6846
|
"aria-selected",
|
|
6846
6847
|
"onClick"
|
|
6847
|
-
],
|
|
6848
|
+
], gf = {
|
|
6848
6849
|
class: "g-multiselect-option-check",
|
|
6849
6850
|
"aria-hidden": "true"
|
|
6850
|
-
},
|
|
6851
|
+
}, _f = {
|
|
6851
6852
|
key: 0,
|
|
6852
6853
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6853
6854
|
viewBox: "0 0 640 640",
|
|
6854
6855
|
width: "1.25em"
|
|
6855
|
-
},
|
|
6856
|
+
}, vf = { class: "g-multiselect-option-text" }, yf = { class: "g-multiselect-option-label" }, bf = {
|
|
6856
6857
|
key: 0,
|
|
6857
6858
|
class: "g-multiselect-option-description"
|
|
6858
|
-
},
|
|
6859
|
+
}, xf = {
|
|
6859
6860
|
key: 1,
|
|
6860
6861
|
"aria-live": "polite",
|
|
6861
6862
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
6862
|
-
},
|
|
6863
|
+
}, Sf = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
6863
6864
|
__name: "GMultiSelect",
|
|
6864
6865
|
props: /*@__PURE__*/ U({
|
|
6865
6866
|
options: { type: Array },
|
|
@@ -6894,18 +6895,18 @@ var of = ["id", "for"], sf = {
|
|
|
6894
6895
|
}),
|
|
6895
6896
|
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
6896
6897
|
setup(e, { emit: t }) {
|
|
6897
|
-
let n = e, r = t, i = Mi(e, "modelValue"), a = Or(), o = /* @__PURE__ */ F(null), s = /* @__PURE__ */ F(null), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(!1), u = /* @__PURE__ */ F(0), d = /* @__PURE__ */ F(""), f = /* @__PURE__ */ F(!1), { displayErrors: p, hasErrors: m } =
|
|
6898
|
+
let n = e, r = t, i = Mi(e, "modelValue"), a = Or(), o = /* @__PURE__ */ F(null), s = /* @__PURE__ */ F(null), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(!1), u = /* @__PURE__ */ F(0), d = /* @__PURE__ */ F(""), f = /* @__PURE__ */ F(!1), { displayErrors: p, hasErrors: m } = Ku({
|
|
6898
6899
|
name: n.name,
|
|
6899
6900
|
value: i,
|
|
6900
6901
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
6901
6902
|
formKey: n.formKey
|
|
6902
|
-
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } =
|
|
6903
|
+
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } = of({
|
|
6903
6904
|
open: l,
|
|
6904
6905
|
anchorRef: s,
|
|
6905
6906
|
listboxRef: c,
|
|
6906
6907
|
baseId: a,
|
|
6907
6908
|
activeIndex: u
|
|
6908
|
-
}), y = Q(() =>
|
|
6909
|
+
}), y = Q(() => af(n.options)), b = Q(() => {
|
|
6909
6910
|
if (!d.value) return y.value;
|
|
6910
6911
|
let e = d.value.toLowerCase();
|
|
6911
6912
|
return y.value.filter((t) => t.label.toLowerCase().includes(e) || n.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
|
|
@@ -6998,12 +6999,12 @@ var of = ["id", "for"], sf = {
|
|
|
6998
6999
|
id: ie.value,
|
|
6999
7000
|
for: A.value,
|
|
7000
7001
|
class: "g-multiselect-label"
|
|
7001
|
-
}, [X(M(e.label), 1), e.required ? (G(), K("span",
|
|
7002
|
+
}, [X(M(e.label), 1), e.required ? (G(), K("span", cf, " *")) : Z("", !0)], 8, sf)),
|
|
7002
7003
|
e.instructions ? (G(), K("div", {
|
|
7003
7004
|
key: 1,
|
|
7004
7005
|
id: ae.value,
|
|
7005
7006
|
class: "g-multiselect-instructions"
|
|
7006
|
-
}, M(e.instructions), 9,
|
|
7007
|
+
}, M(e.instructions), 9, lf)) : Z("", !0),
|
|
7007
7008
|
J("div", {
|
|
7008
7009
|
ref_key: "controlRef",
|
|
7009
7010
|
ref: s,
|
|
@@ -7017,7 +7018,7 @@ var of = ["id", "for"], sf = {
|
|
|
7017
7018
|
}, [(G(!0), K(W, null, V(i.value, (t) => (G(), K("li", {
|
|
7018
7019
|
key: t,
|
|
7019
7020
|
class: "g-multiselect-chip"
|
|
7020
|
-
}, [J("span",
|
|
7021
|
+
}, [J("span", df, M(S(t)), 1), J("button", {
|
|
7021
7022
|
type: "button",
|
|
7022
7023
|
class: "g-multiselect-chip-remove",
|
|
7023
7024
|
"aria-label": `Remove ${S(t)}`,
|
|
@@ -7032,7 +7033,7 @@ var of = ["id", "for"], sf = {
|
|
|
7032
7033
|
}, [J("path", {
|
|
7033
7034
|
fill: "currentColor",
|
|
7034
7035
|
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"
|
|
7035
|
-
})], -1)]], 40,
|
|
7036
|
+
})], -1)]], 40, ff)]))), 128))], 8, uf)) : Z("", !0),
|
|
7036
7037
|
J("input", Va({
|
|
7037
7038
|
ref_key: "inputRef",
|
|
7038
7039
|
ref: o,
|
|
@@ -7056,7 +7057,7 @@ var of = ["id", "for"], sf = {
|
|
|
7056
7057
|
onKeydown: k,
|
|
7057
7058
|
onFocus: te,
|
|
7058
7059
|
onBlur: O
|
|
7059
|
-
}), null, 16,
|
|
7060
|
+
}), null, 16, pf),
|
|
7060
7061
|
n[2] ||= J("svg", {
|
|
7061
7062
|
class: "g-multiselect-caret",
|
|
7062
7063
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7088,27 +7089,27 @@ var of = ["id", "for"], sf = {
|
|
|
7088
7089
|
"aria-selected": x(e.value) ? "true" : "false",
|
|
7089
7090
|
onMousedown: ne,
|
|
7090
7091
|
onClick: (e) => T(t)
|
|
7091
|
-
}, [J("span",
|
|
7092
|
+
}, [J("span", gf, [x(e.value) ? (G(), K("svg", _f, [...n[1] ||= [J("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)]])) : Z("", !0)]), J("span", vf, [J("span", yf, M(e.label), 1), e.description ? (G(), K("span", bf, M(e.description), 1)) : Z("", !0)])], 42, hf))), 128)) : (G(), K("div", xf, " No results found. "))], 16, mf), [[Uo, l.value]])
|
|
7092
7093
|
], 2),
|
|
7093
|
-
Y(
|
|
7094
|
+
Y(Ju, {
|
|
7094
7095
|
errors: I(p),
|
|
7095
7096
|
id: oe.value
|
|
7096
7097
|
}, null, 8, ["errors", "id"])
|
|
7097
7098
|
], 2));
|
|
7098
7099
|
}
|
|
7099
|
-
}), [["styles", [""]]]),
|
|
7100
|
+
}), [["styles", [""]]]), Cf = {
|
|
7100
7101
|
key: 0,
|
|
7101
7102
|
class: "g-scroll-lock-overlay"
|
|
7102
|
-
},
|
|
7103
|
+
}, wf = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
7103
7104
|
__name: "GOverlay",
|
|
7104
7105
|
setup(e) {
|
|
7105
7106
|
let { hasScrollLock: t } = Xs();
|
|
7106
7107
|
return (e, n) => (G(), q(To, { name: "g-fade" }, {
|
|
7107
|
-
default: R(() => [I(t) ? (G(), K("div",
|
|
7108
|
+
default: R(() => [I(t) ? (G(), K("div", Cf)) : Z("", !0)]),
|
|
7108
7109
|
_: 1
|
|
7109
7110
|
}));
|
|
7110
7111
|
}
|
|
7111
|
-
}), [["styles", [""]]]),
|
|
7112
|
+
}), [["styles", [""]]]), Tf = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
7112
7113
|
__name: "GTooltip",
|
|
7113
7114
|
props: { text: { type: String } },
|
|
7114
7115
|
emits: ["tooltip-hide"],
|
|
@@ -7123,12 +7124,12 @@ var of = ["id", "for"], sf = {
|
|
|
7123
7124
|
return t instanceof HTMLElement ? t : null;
|
|
7124
7125
|
}
|
|
7125
7126
|
function v() {
|
|
7126
|
-
g && (h || (h = o.value ?
|
|
7127
|
-
l.value && (u.value || d.value) && g &&
|
|
7127
|
+
g && (h || (h = o.value ? sd("g-tooltip") : cd(g, "g-tooltip"), o.value && g.setAttribute("aria-describedby", h)), l.value || (l.value = ld(r.text, h), ud(l.value), f = new ResizeObserver(() => {
|
|
7128
|
+
l.value && (u.value || d.value) && g && dd(g, l.value);
|
|
7128
7129
|
}), f.observe(l.value)));
|
|
7129
7130
|
}
|
|
7130
7131
|
function y() {
|
|
7131
|
-
l.value && (u.value || d.value) && g &&
|
|
7132
|
+
l.value && (u.value || d.value) && g && dd(g, l.value);
|
|
7132
7133
|
}
|
|
7133
7134
|
function b() {
|
|
7134
7135
|
u.value = !0;
|
|
@@ -7174,10 +7175,10 @@ var of = ["id", "for"], sf = {
|
|
|
7174
7175
|
l.value && (l.value.textContent = e);
|
|
7175
7176
|
}), z(() => u.value || d.value, (e) => {
|
|
7176
7177
|
if (e) {
|
|
7177
|
-
v(), l.value && g &&
|
|
7178
|
+
v(), l.value && g && dd(g, l.value), p ||= (window.addEventListener("scroll", y, { capture: !0 }), !0);
|
|
7178
7179
|
return;
|
|
7179
7180
|
}
|
|
7180
|
-
p &&= (window.removeEventListener("scroll", y, { capture: !0 }), !1), l.value && (
|
|
7181
|
+
p &&= (window.removeEventListener("scroll", y, { capture: !0 }), !1), l.value && (fd(l.value), m && clearTimeout(m), m = window.setTimeout(() => {
|
|
7181
7182
|
i("tooltip-hide");
|
|
7182
7183
|
}, 150));
|
|
7183
7184
|
}), qr(() => {
|
|
@@ -7197,21 +7198,21 @@ var of = ["id", "for"], sf = {
|
|
|
7197
7198
|
class: "g-tooltip-trigger"
|
|
7198
7199
|
}, [H(e.$slots, "trigger")], 512)) : Z("", !0)], 512));
|
|
7199
7200
|
}
|
|
7200
|
-
}), [["styles", [""]]]),
|
|
7201
|
+
}), [["styles", [""]]]), Ef = ["width", "height"], Df = [
|
|
7201
7202
|
"cx",
|
|
7202
7203
|
"cy",
|
|
7203
7204
|
"r"
|
|
7204
|
-
],
|
|
7205
|
+
], Of = [
|
|
7205
7206
|
"cx",
|
|
7206
7207
|
"cy",
|
|
7207
7208
|
"r",
|
|
7208
7209
|
"stroke-dasharray",
|
|
7209
7210
|
"stroke-dashoffset"
|
|
7210
|
-
],
|
|
7211
|
+
], kf = [
|
|
7211
7212
|
"cx",
|
|
7212
7213
|
"cy",
|
|
7213
7214
|
"r"
|
|
7214
|
-
],
|
|
7215
|
+
], Af = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
7215
7216
|
__name: "GProgress",
|
|
7216
7217
|
props: {
|
|
7217
7218
|
label: {
|
|
@@ -7261,7 +7262,7 @@ var of = ["id", "for"], sf = {
|
|
|
7261
7262
|
r: r.value,
|
|
7262
7263
|
"stroke-width": 4,
|
|
7263
7264
|
fill: "none"
|
|
7264
|
-
}, null, 8,
|
|
7265
|
+
}, null, 8, Df), n.value ? (G(), K("circle", {
|
|
7265
7266
|
key: 0,
|
|
7266
7267
|
class: "g-progress__value",
|
|
7267
7268
|
cx: r.value + 2,
|
|
@@ -7275,7 +7276,7 @@ var of = ["id", "for"], sf = {
|
|
|
7275
7276
|
transform: "rotate(-90deg)",
|
|
7276
7277
|
"transform-origin": "center"
|
|
7277
7278
|
}
|
|
7278
|
-
}, null, 8,
|
|
7279
|
+
}, null, 8, Of)) : (G(), K("circle", {
|
|
7279
7280
|
key: 1,
|
|
7280
7281
|
class: "g-progress__spinner",
|
|
7281
7282
|
cx: r.value + 2,
|
|
@@ -7283,29 +7284,29 @@ var of = ["id", "for"], sf = {
|
|
|
7283
7284
|
r: r.value,
|
|
7284
7285
|
"stroke-width": 4,
|
|
7285
7286
|
fill: "none"
|
|
7286
|
-
}, null, 8,
|
|
7287
|
+
}, null, 8, kf))], 10, Ef))], 16));
|
|
7287
7288
|
}
|
|
7288
|
-
}), [["styles", [""]]]),
|
|
7289
|
+
}), [["styles", [""]]]), jf = ["aria-label"], Mf = [
|
|
7289
7290
|
"placeholder",
|
|
7290
7291
|
"value",
|
|
7291
7292
|
"aria-expanded",
|
|
7292
7293
|
"aria-controls",
|
|
7293
7294
|
"aria-activedescendant"
|
|
7294
|
-
],
|
|
7295
|
+
], Nf = {
|
|
7295
7296
|
key: 0,
|
|
7296
7297
|
class: "g-search-dropdown"
|
|
7297
|
-
},
|
|
7298
|
+
}, Pf = {
|
|
7298
7299
|
"aria-live": "polite",
|
|
7299
7300
|
class: "g-search-result-count"
|
|
7300
|
-
},
|
|
7301
|
+
}, Ff = ["id"], If = ["aria-label"], Lf = { class: "g-search-group-label" }, Rf = [
|
|
7301
7302
|
"id",
|
|
7302
7303
|
"onMousedown",
|
|
7303
7304
|
"aria-selected"
|
|
7304
|
-
],
|
|
7305
|
+
], zf = [
|
|
7305
7306
|
"id",
|
|
7306
7307
|
"onMousedown",
|
|
7307
7308
|
"aria-selected"
|
|
7308
|
-
],
|
|
7309
|
+
], Bf = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
7309
7310
|
__name: "GSearch",
|
|
7310
7311
|
props: /*@__PURE__*/ U({
|
|
7311
7312
|
results: { type: Array },
|
|
@@ -7392,12 +7393,12 @@ var of = ["id", "for"], sf = {
|
|
|
7392
7393
|
"aria-autocomplete": "list",
|
|
7393
7394
|
"aria-controls": `${I(y)}-list`,
|
|
7394
7395
|
"aria-activedescendant": c.value >= 0 ? "g-search-option-" + l.value[c.value].id : void 0
|
|
7395
|
-
}, null, 40,
|
|
7396
|
+
}, null, 40, Mf), J("button", {
|
|
7396
7397
|
type: "submit",
|
|
7397
7398
|
class: "g-search-submit",
|
|
7398
7399
|
"aria-label": "Submit search",
|
|
7399
7400
|
onKeydown: m
|
|
7400
|
-
}, [g.value ? (G(), q(
|
|
7401
|
+
}, [g.value ? (G(), q(Af, {
|
|
7401
7402
|
key: 0,
|
|
7402
7403
|
size: "tiny"
|
|
7403
7404
|
})) : Z("", !0), t[1] ||= J("svg", {
|
|
@@ -7408,7 +7409,7 @@ var of = ["id", "for"], sf = {
|
|
|
7408
7409
|
}, [J("path", {
|
|
7409
7410
|
fill: "currentColor",
|
|
7410
7411
|
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"
|
|
7411
|
-
})], -1)], 32)], 32), _.value ? (G(), K("div",
|
|
7412
|
+
})], -1)], 32)], 32), _.value ? (G(), K("div", Nf, [J("div", Pf, [g.value ? Z("", !0) : (G(), K(W, { key: 0 }, [X(M(u.value) + " result" + M(u.value === 1 ? "" : "s"), 1)], 64))]), J("div", {
|
|
7412
7413
|
role: "listbox",
|
|
7413
7414
|
id: `${I(y)}-list`,
|
|
7414
7415
|
ref_key: "listboxRef",
|
|
@@ -7419,27 +7420,27 @@ var of = ["id", "for"], sf = {
|
|
|
7419
7420
|
class: "g-search-group",
|
|
7420
7421
|
role: "group",
|
|
7421
7422
|
"aria-label": t.label
|
|
7422
|
-
}, [H(e.$slots, "group", { group: t }, () => [J("div",
|
|
7423
|
+
}, [H(e.$slots, "group", { group: t }, () => [J("div", Lf, M(t.label), 1)]), (G(!0), K(W, null, V(t.items, (t, n) => (G(), K("div", {
|
|
7423
7424
|
key: t.id,
|
|
7424
7425
|
id: "g-search-option-" + t.id,
|
|
7425
7426
|
class: j(["g-search-option", { "g-search-option-active": l.value[c.value] && l.value[c.value].id === t.id }]),
|
|
7426
7427
|
role: "option",
|
|
7427
7428
|
onMousedown: Ps((e) => h(t), ["prevent"]),
|
|
7428
7429
|
"aria-selected": l.value[c.value] && l.value[c.value].id === t.id
|
|
7429
|
-
}, [H(e.$slots, "option", { option: t }, () => [X(M(t.title), 1)])], 42,
|
|
7430
|
+
}, [H(e.$slots, "option", { option: t }, () => [X(M(t.title), 1)])], 42, Rf))), 128))], 8, If))), 128)) : u.value > 0 ? (G(!0), K(W, { key: 1 }, V(l.value, (t, n) => (G(), K("div", {
|
|
7430
7431
|
key: t.id,
|
|
7431
7432
|
id: "g-search-option-" + t.id,
|
|
7432
7433
|
class: j(["g-search-option", { "g-search-option-active": c.value === n }]),
|
|
7433
7434
|
role: "option",
|
|
7434
7435
|
onMousedown: Ps((e) => h(t), ["prevent"]),
|
|
7435
7436
|
"aria-selected": c.value === n
|
|
7436
|
-
}, [H(e.$slots, "option", { option: t }, () => [X(M(t.title), 1)])], 42,
|
|
7437
|
+
}, [H(e.$slots, "option", { option: t }, () => [X(M(t.title), 1)])], 42, zf))), 128)) : Z("", !0)], 8, Ff)])) : Z("", !0)], 8, jf));
|
|
7437
7438
|
}
|
|
7438
|
-
}), [["styles", [""]]]),
|
|
7439
|
+
}), [["styles", [""]]]), Vf = ["id"], Hf = {
|
|
7439
7440
|
key: 0,
|
|
7440
7441
|
class: "g-select-required",
|
|
7441
7442
|
"aria-hidden": "true"
|
|
7442
|
-
},
|
|
7443
|
+
}, Uf = { class: "g-select-input-wrap" }, Wf = ["id"], Gf = [
|
|
7443
7444
|
"value",
|
|
7444
7445
|
"placeholder",
|
|
7445
7446
|
"disabled",
|
|
@@ -7447,24 +7448,24 @@ var of = ["id", "for"], sf = {
|
|
|
7447
7448
|
"aria-expanded",
|
|
7448
7449
|
"aria-required",
|
|
7449
7450
|
"aria-activedescendant"
|
|
7450
|
-
],
|
|
7451
|
+
], Kf = [
|
|
7451
7452
|
"id",
|
|
7452
7453
|
"aria-controls",
|
|
7453
7454
|
"aria-expanded",
|
|
7454
7455
|
"aria-required",
|
|
7455
7456
|
"aria-activedescendant"
|
|
7456
|
-
],
|
|
7457
|
+
], qf = ["id"], Jf = [
|
|
7457
7458
|
"id",
|
|
7458
7459
|
"aria-selected",
|
|
7459
7460
|
"onClick"
|
|
7460
|
-
],
|
|
7461
|
+
], Yf = { class: "g-select-option-label" }, Xf = {
|
|
7461
7462
|
key: 0,
|
|
7462
7463
|
class: "g-select-option-description"
|
|
7463
|
-
},
|
|
7464
|
+
}, Zf = {
|
|
7464
7465
|
key: 1,
|
|
7465
7466
|
"aria-live": "polite",
|
|
7466
7467
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
7467
|
-
},
|
|
7468
|
+
}, Qf = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
7468
7469
|
__name: "GSelect",
|
|
7469
7470
|
props: /*@__PURE__*/ U({
|
|
7470
7471
|
options: { type: Array },
|
|
@@ -7504,18 +7505,18 @@ var of = ["id", "for"], sf = {
|
|
|
7504
7505
|
}),
|
|
7505
7506
|
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
7506
7507
|
setup(e, { emit: t }) {
|
|
7507
|
-
let n = e, r = t, i = Mi(e, "modelValue"), a = Or(), o = /* @__PURE__ */ F(null), s = /* @__PURE__ */ F(null), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(!1), u = /* @__PURE__ */ F(0), d = /* @__PURE__ */ F(!1), f = /* @__PURE__ */ F(!1), { displayErrors: p, hasErrors: m } =
|
|
7508
|
+
let n = e, r = t, i = Mi(e, "modelValue"), a = Or(), o = /* @__PURE__ */ F(null), s = /* @__PURE__ */ F(null), c = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F(!1), u = /* @__PURE__ */ F(0), d = /* @__PURE__ */ F(!1), f = /* @__PURE__ */ F(!1), { displayErrors: p, hasErrors: m } = Ku({
|
|
7508
7509
|
name: n.name,
|
|
7509
7510
|
value: i,
|
|
7510
7511
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
7511
7512
|
formKey: n.formKey
|
|
7512
|
-
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } =
|
|
7513
|
+
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } = of({
|
|
7513
7514
|
open: l,
|
|
7514
7515
|
anchorRef: o,
|
|
7515
7516
|
listboxRef: s,
|
|
7516
7517
|
baseId: a,
|
|
7517
7518
|
activeIndex: u
|
|
7518
|
-
}), y = Q(() =>
|
|
7519
|
+
}), y = Q(() => af(n.options)), b = /* @__PURE__ */ F(""), x = Q(() => {
|
|
7519
7520
|
if (!n.searchable || !l.value || !b.value) return y.value;
|
|
7520
7521
|
let e = b.value.toLowerCase();
|
|
7521
7522
|
return y.value.filter((t) => t.label.toLowerCase().includes(e) || n.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
|
|
@@ -7594,7 +7595,6 @@ var of = ["id", "for"], sf = {
|
|
|
7594
7595
|
e.preventDefault(), u.value = t, v();
|
|
7595
7596
|
break;
|
|
7596
7597
|
case "Enter":
|
|
7597
|
-
case " ":
|
|
7598
7598
|
e.preventDefault(), l.value ? D(u.value) : C();
|
|
7599
7599
|
break;
|
|
7600
7600
|
case "Escape": _.value && (e.preventDefault(), setTimeout(() => {
|
|
@@ -7621,8 +7621,8 @@ var of = ["id", "for"], sf = {
|
|
|
7621
7621
|
key: 0,
|
|
7622
7622
|
id: I(a) + "-label",
|
|
7623
7623
|
class: "g-select-combo-label g-select-label"
|
|
7624
|
-
}, [X(M(n.label), 1), n.required ? (G(), K("span",
|
|
7625
|
-
J("div",
|
|
7624
|
+
}, [X(M(n.label), 1), n.required ? (G(), K("span", Hf, " *")) : Z("", !0)], 8, Vf)),
|
|
7625
|
+
J("div", Uf, [n.searchable ? (G(), K("div", {
|
|
7626
7626
|
key: 0,
|
|
7627
7627
|
class: "g-select-combo-input g-select-control",
|
|
7628
7628
|
id: I(a)
|
|
@@ -7649,7 +7649,7 @@ var of = ["id", "for"], sf = {
|
|
|
7649
7649
|
}, e.hiddenLabel ? { "aria-label": n.label } : { "aria-labelledby": I(a) + "-label" }, {
|
|
7650
7650
|
role: "combobox",
|
|
7651
7651
|
autocomplete: "off"
|
|
7652
|
-
}), null, 16,
|
|
7652
|
+
}), null, 16, Gf),
|
|
7653
7653
|
k.value ? (G(), K("button", {
|
|
7654
7654
|
key: 0,
|
|
7655
7655
|
type: "button",
|
|
@@ -7675,7 +7675,7 @@ var of = ["id", "for"], sf = {
|
|
|
7675
7675
|
fill: "currentColor",
|
|
7676
7676
|
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"
|
|
7677
7677
|
})], -1)
|
|
7678
|
-
], 8,
|
|
7678
|
+
], 8, Wf)) : (G(), K("div", Va({
|
|
7679
7679
|
key: 1,
|
|
7680
7680
|
ref_key: "comboRef",
|
|
7681
7681
|
ref: o,
|
|
@@ -7720,7 +7720,7 @@ var of = ["id", "for"], sf = {
|
|
|
7720
7720
|
fill: "currentColor",
|
|
7721
7721
|
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"
|
|
7722
7722
|
})], -1)
|
|
7723
|
-
], 16,
|
|
7723
|
+
], 16, Kf)), Vn(J("div", Va({
|
|
7724
7724
|
ref_key: "listboxRef",
|
|
7725
7725
|
ref: s,
|
|
7726
7726
|
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": I(h) === "above" }],
|
|
@@ -7742,18 +7742,18 @@ var of = ["id", "for"], sf = {
|
|
|
7742
7742
|
option: e,
|
|
7743
7743
|
selected: e.value === i.value,
|
|
7744
7744
|
index: n
|
|
7745
|
-
}, () => [J("span",
|
|
7746
|
-
Y(
|
|
7745
|
+
}, () => [J("span", Yf, M(e.label), 1), e.description ? (G(), K("span", Xf, M(e.description), 1)) : Z("", !0)])], 42, Jf))), 128)) : (G(), K("div", Zf, " No results found. "))], 16, qf), [[Uo, l.value]])]),
|
|
7746
|
+
Y(Ju, {
|
|
7747
7747
|
errors: I(p),
|
|
7748
7748
|
id: "error-message-" + I(a)
|
|
7749
7749
|
}, null, 8, ["errors", "id"])
|
|
7750
7750
|
], 2));
|
|
7751
7751
|
}
|
|
7752
|
-
}), [["styles", [""]]]),
|
|
7752
|
+
}), [["styles", [""]]]), $f = ["disabled"], ep = { class: "g-select-btn-legend" }, tp = {
|
|
7753
7753
|
key: 0,
|
|
7754
7754
|
class: "g-select-btn-required",
|
|
7755
7755
|
"aria-hidden": "true"
|
|
7756
|
-
},
|
|
7756
|
+
}, np = { class: "g-select-btn-row" }, rp = [
|
|
7757
7757
|
"id",
|
|
7758
7758
|
"name",
|
|
7759
7759
|
"value",
|
|
@@ -7761,7 +7761,7 @@ var of = ["id", "for"], sf = {
|
|
|
7761
7761
|
"disabled",
|
|
7762
7762
|
"required",
|
|
7763
7763
|
"onChange"
|
|
7764
|
-
],
|
|
7764
|
+
], ip = ["for"], ap = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
7765
7765
|
__name: "GSelectButton",
|
|
7766
7766
|
props: /*@__PURE__*/ U({
|
|
7767
7767
|
options: { type: Array },
|
|
@@ -7796,7 +7796,7 @@ var of = ["id", "for"], sf = {
|
|
|
7796
7796
|
}),
|
|
7797
7797
|
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
7798
7798
|
setup(e, { emit: t }) {
|
|
7799
|
-
let n = e, r = t, i = Mi(e, "modelValue"), a = Or(), { displayErrors: o, hasErrors: s } =
|
|
7799
|
+
let n = e, r = t, i = Mi(e, "modelValue"), a = Or(), { displayErrors: o, hasErrors: s } = Ku({
|
|
7800
7800
|
name: n.name,
|
|
7801
7801
|
value: i,
|
|
7802
7802
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -7815,7 +7815,7 @@ var of = ["id", "for"], sf = {
|
|
|
7815
7815
|
return (e, t) => (G(), K("fieldset", {
|
|
7816
7816
|
class: j(l.value),
|
|
7817
7817
|
disabled: n.disabled
|
|
7818
|
-
}, [J("legend",
|
|
7818
|
+
}, [J("legend", ep, [X(M(n.label), 1), n.required ? (G(), K("span", tp, " *")) : Z("", !0)]), J("div", { class: j(["g-select-btn-wrapper", { "g-select-btn-has-error": I(s) }]) }, [J("div", np, [(G(!0), K(W, null, V(c.value, (e, t) => (G(), K(W, { key: e.value }, [J("input", {
|
|
7819
7819
|
class: "g-select-btn-radio",
|
|
7820
7820
|
type: "radio",
|
|
7821
7821
|
id: `${I(a)}-${e.value}`,
|
|
@@ -7825,18 +7825,18 @@ var of = ["id", "for"], sf = {
|
|
|
7825
7825
|
disabled: n.disabled,
|
|
7826
7826
|
required: n.required && t === 0,
|
|
7827
7827
|
onChange: (t) => d(e.value)
|
|
7828
|
-
}, null, 40,
|
|
7828
|
+
}, null, 40, rp), J("label", {
|
|
7829
7829
|
for: `${I(a)}-${e.value}`,
|
|
7830
7830
|
class: j(u(e.value === i.value))
|
|
7831
|
-
}, M(e.label), 11,
|
|
7831
|
+
}, M(e.label), 11, ip)], 64))), 128))]), Y(Ju, {
|
|
7832
7832
|
errors: I(o),
|
|
7833
7833
|
id: "error-message-" + I(a)
|
|
7834
|
-
}, null, 8, ["errors", "id"])], 2)], 10,
|
|
7834
|
+
}, null, 8, ["errors", "id"])], 2)], 10, $f));
|
|
7835
7835
|
}
|
|
7836
7836
|
}), [["styles", [""]]]);
|
|
7837
7837
|
//#endregion
|
|
7838
7838
|
//#region src/compose/useScrollRestore.ts
|
|
7839
|
-
function
|
|
7839
|
+
function op(e, t) {
|
|
7840
7840
|
let n = t ? bu(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = /* @__PURE__ */ F(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
7841
7841
|
function c(e) {
|
|
7842
7842
|
let t = window.getComputedStyle(e);
|
|
@@ -7919,7 +7919,7 @@ function ap(e, t) {
|
|
|
7919
7919
|
}
|
|
7920
7920
|
//#endregion
|
|
7921
7921
|
//#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
7922
|
-
var
|
|
7922
|
+
var sp = ["id"], cp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
7923
7923
|
__name: "GSidebar",
|
|
7924
7924
|
props: {
|
|
7925
7925
|
backgroundColor: {
|
|
@@ -7954,7 +7954,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
7954
7954
|
storageKey: { type: String }
|
|
7955
7955
|
},
|
|
7956
7956
|
setup(e) {
|
|
7957
|
-
let t = e, n = Wn("sidebar", () => void 0, !0) ?? (dl() ? Cu(t.sidebarKey, /* @__PURE__ */ ln(t, "mediaQuery")) : void 0), r = Q(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), i = Q(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), a = Q(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), o = Or(), { isPendingScrollRestore: s } =
|
|
7957
|
+
let t = e, n = Wn("sidebar", () => void 0, !0) ?? (dl() ? Cu(t.sidebarKey, /* @__PURE__ */ ln(t, "mediaQuery")) : void 0), r = Q(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), i = Q(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), a = Q(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), o = Or(), { isPendingScrollRestore: s } = op(Ar("sidebar-ref"), t.storageKey);
|
|
7958
7958
|
function c(e) {
|
|
7959
7959
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
7960
7960
|
}
|
|
@@ -7975,13 +7975,13 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
7975
7975
|
width: "var(--g-sidebar-width)"
|
|
7976
7976
|
}),
|
|
7977
7977
|
onKeydown: c
|
|
7978
|
-
}, [H(t.$slots, "default")], 46,
|
|
7978
|
+
}, [H(t.$slots, "default")], 46, sp));
|
|
7979
7979
|
}
|
|
7980
|
-
}), [["styles", [""]]]),
|
|
7980
|
+
}), [["styles", [""]]]), lp = ["id"], up = { class: "g-sidebar-menu__list" }, dp = [
|
|
7981
7981
|
"href",
|
|
7982
7982
|
"aria-current",
|
|
7983
7983
|
"onClick"
|
|
7984
|
-
],
|
|
7984
|
+
], fp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
7985
7985
|
__name: "GSidebarMenu",
|
|
7986
7986
|
props: /*@__PURE__*/ U({
|
|
7987
7987
|
heading: { type: String },
|
|
@@ -8035,13 +8035,13 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8035
8035
|
key: 0,
|
|
8036
8036
|
id: I(c),
|
|
8037
8037
|
class: "g-sidebar-menu__title"
|
|
8038
|
-
}, M(e.heading), 9,
|
|
8038
|
+
}, M(e.heading), 9, lp)) : Z("", !0),
|
|
8039
8039
|
a[0] ||= J("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
8040
8040
|
J("div", {
|
|
8041
8041
|
class: "g-sidebar-menu__content",
|
|
8042
8042
|
ref_key: "content",
|
|
8043
8043
|
ref: i
|
|
8044
|
-
}, [J("ul",
|
|
8044
|
+
}, [J("ul", up, [(G(!0), K(W, null, V(e.items, (e) => (G(), K("li", {
|
|
8045
8045
|
key: e.href || e.to,
|
|
8046
8046
|
class: "g-sidebar-menu__item",
|
|
8047
8047
|
ref_for: !0,
|
|
@@ -8059,10 +8059,10 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8059
8059
|
href: e.href || e.to || "#",
|
|
8060
8060
|
"aria-current": r.value === (e.href || "") ? "location" : void 0,
|
|
8061
8061
|
onClick: (t) => s(t, e)
|
|
8062
|
-
}, M(e.label), 11,
|
|
8062
|
+
}, M(e.label), 11, dp))]))), 128))])], 512)
|
|
8063
8063
|
], 16));
|
|
8064
8064
|
}
|
|
8065
|
-
}), [["styles", [""]]]),
|
|
8065
|
+
}), [["styles", [""]]]), pp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
8066
8066
|
__name: "GSubmitButton",
|
|
8067
8067
|
props: {
|
|
8068
8068
|
disabled: {
|
|
@@ -8083,7 +8083,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8083
8083
|
}
|
|
8084
8084
|
},
|
|
8085
8085
|
setup(e) {
|
|
8086
|
-
let t = e, n = ui(), r = typeof n["form-key"] == "string" ? n["form-key"] : void 0, i = t.formKey || r || "default", a = Wn("form", null) ?? (dl() ?
|
|
8086
|
+
let t = e, n = ui(), r = typeof n["form-key"] == "string" ? n["form-key"] : void 0, i = t.formKey || r || "default", a = Wn("form", null) ?? (dl() ? Gu(i) : null), o = Q(() => t.disabled || (a?.isSubmitting.value ?? !1)), s = Q(() => a?.isSubmitting.value ?? !1);
|
|
8087
8087
|
return (e, n) => (G(), q(gl, {
|
|
8088
8088
|
type: "submit",
|
|
8089
8089
|
disabled: o.value,
|
|
@@ -8094,45 +8094,45 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8094
8094
|
_: 3
|
|
8095
8095
|
}, 8, ["disabled", "variant"]));
|
|
8096
8096
|
}
|
|
8097
|
-
}), [["styles", [""]]]),
|
|
8097
|
+
}), [["styles", [""]]]), mp = {
|
|
8098
8098
|
ref: "tableBodyRef",
|
|
8099
8099
|
class: "efficient-table-body"
|
|
8100
|
-
},
|
|
8100
|
+
}, hp = ["aria-rowindex"], gp = {
|
|
8101
8101
|
key: 0,
|
|
8102
8102
|
class: "table-group-checkbox"
|
|
8103
|
-
},
|
|
8103
|
+
}, _p = ["colspan"], vp = [
|
|
8104
8104
|
"aria-rowindex",
|
|
8105
8105
|
"onMousedown",
|
|
8106
8106
|
"onClick"
|
|
8107
|
-
],
|
|
8107
|
+
], yp = [
|
|
8108
8108
|
"checked",
|
|
8109
8109
|
"onClick",
|
|
8110
8110
|
"aria-label",
|
|
8111
8111
|
"name"
|
|
8112
|
-
],
|
|
8112
|
+
], bp = ["id"], xp = {
|
|
8113
8113
|
key: 0,
|
|
8114
8114
|
class: "editable-cell"
|
|
8115
|
-
},
|
|
8115
|
+
}, Sp = {
|
|
8116
8116
|
key: 0,
|
|
8117
8117
|
class: "cell-prefix"
|
|
8118
|
-
},
|
|
8118
|
+
}, Cp = [
|
|
8119
8119
|
"value",
|
|
8120
8120
|
"onChange",
|
|
8121
8121
|
"aria-labelledby",
|
|
8122
8122
|
"aria-invalid",
|
|
8123
8123
|
"aria-errormessage",
|
|
8124
8124
|
"name"
|
|
8125
|
-
],
|
|
8125
|
+
], wp = ["value"], Tp = [
|
|
8126
8126
|
"value",
|
|
8127
8127
|
"onInput",
|
|
8128
8128
|
"aria-labelledby",
|
|
8129
8129
|
"aria-invalid",
|
|
8130
8130
|
"aria-errormessage",
|
|
8131
8131
|
"name"
|
|
8132
|
-
],
|
|
8132
|
+
], Ep = {
|
|
8133
8133
|
key: 3,
|
|
8134
8134
|
class: "cell-suffix"
|
|
8135
|
-
},
|
|
8135
|
+
}, Dp = ["id"], Op = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
8136
8136
|
__name: "GTableBody",
|
|
8137
8137
|
props: {
|
|
8138
8138
|
data: { type: Array },
|
|
@@ -8201,13 +8201,13 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8201
8201
|
function h(e, t) {
|
|
8202
8202
|
if (n.changeTracker) return n.changeTracker.getError(e.key, t.key);
|
|
8203
8203
|
}
|
|
8204
|
-
return (t, n) => (G(), K("tbody",
|
|
8204
|
+
return (t, n) => (G(), K("tbody", mp, [(G(!0), K(W, null, V(e.data, (t, r) => (G(), K(W, { key: t.key }, [e.groupBy && (r === 0 || t[e.groupBy] !== e.data[r - 1][e.groupBy]) ? (G(), K("tr", {
|
|
8205
8205
|
key: 0,
|
|
8206
8206
|
"aria-rowindex": e.startIndex + r + 2
|
|
8207
|
-
}, [e.bulkSelectionEnabled ? (G(), K("td",
|
|
8207
|
+
}, [e.bulkSelectionEnabled ? (G(), K("td", gp)) : Z("", !0), J("td", {
|
|
8208
8208
|
colspan: d.value,
|
|
8209
8209
|
class: "table-group-row"
|
|
8210
|
-
}, [e.groupRender ? (G(), q(ti(e.groupRender(t[e.groupBy], t)), { key: 0 })) : (G(), K(W, { key: 1 }, [X(M(t[e.groupBy]), 1)], 64))], 8,
|
|
8210
|
+
}, [e.groupRender ? (G(), q(ti(e.groupRender(t[e.groupBy], t)), { key: 0 })) : (G(), K(W, { key: 1 }, [X(M(t[e.groupBy]), 1)], 64))], 8, _p)], 8, hp)) : Z("", !0), J("tr", {
|
|
8211
8211
|
class: j([
|
|
8212
8212
|
"efficient-table-row",
|
|
8213
8213
|
{
|
|
@@ -8230,7 +8230,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8230
8230
|
"aria-label": `Select row ${t.key}`,
|
|
8231
8231
|
name: `row-${t.key}-checkbox`,
|
|
8232
8232
|
class: "g-bulk-select-checkbox"
|
|
8233
|
-
}, null, 8,
|
|
8233
|
+
}, null, 8, yp)])) : Z("", !0), (G(!0), K(W, null, V(e.columns, (n) => (G(), K("td", {
|
|
8234
8234
|
key: n.key,
|
|
8235
8235
|
id: f(n) ? `${e.tableId}-td-${t.key}-${String(n.key)}` : void 0,
|
|
8236
8236
|
class: j([
|
|
@@ -8239,8 +8239,8 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8239
8239
|
m(t, n) ? "g-cell-error" : "",
|
|
8240
8240
|
typeof n.tdClass == "function" ? n.tdClass(t) : n.tdClass
|
|
8241
8241
|
])
|
|
8242
|
-
}, [n.editable ? (G(), K("div",
|
|
8243
|
-
n.editable.prefix ? (G(), K("span",
|
|
8242
|
+
}, [n.editable ? (G(), K("div", xp, [
|
|
8243
|
+
n.editable.prefix ? (G(), K("span", Sp, M(n.editable.prefix), 1)) : Z("", !0),
|
|
8244
8244
|
n.editable.type === "select" ? (G(), K("select", {
|
|
8245
8245
|
key: 1,
|
|
8246
8246
|
value: t[n.key],
|
|
@@ -8253,7 +8253,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8253
8253
|
}, [(G(!0), K(W, null, V(n.editable.options, (e) => (G(), K("option", {
|
|
8254
8254
|
key: e.value,
|
|
8255
8255
|
value: e.value
|
|
8256
|
-
}, M(e.label), 9,
|
|
8256
|
+
}, M(e.label), 9, wp))), 128))], 40, Cp)) : (G(), K("input", Va({
|
|
8257
8257
|
key: 2,
|
|
8258
8258
|
value: t[n.key]
|
|
8259
8259
|
}, { ref_for: !0 }, n.editable.inputAttributes, {
|
|
@@ -8267,19 +8267,19 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8267
8267
|
paddingLeft: n.editable.prefix ? "1.5rem" : void 0,
|
|
8268
8268
|
paddingRight: n.editable.suffix ? "2rem" : void 0
|
|
8269
8269
|
}
|
|
8270
|
-
}), null, 16,
|
|
8271
|
-
n.editable.suffix ? (G(), K("span",
|
|
8270
|
+
}), null, 16, Tp)),
|
|
8271
|
+
n.editable.suffix ? (G(), K("span", Ep, M(n.editable.suffix), 1)) : Z("", !0)
|
|
8272
8272
|
])) : n.display ? (G(), q(ti(n.display(t)), { key: 1 })) : (G(), K(W, { key: 2 }, [X(M(t[n.key]), 1)], 64)), m(t, n) ? (G(), K("div", {
|
|
8273
8273
|
key: 3,
|
|
8274
8274
|
role: "alert",
|
|
8275
8275
|
class: "g-cell-error-message",
|
|
8276
8276
|
id: `${e.tableId}-error-${t.key}-${String(n.key)}`
|
|
8277
|
-
}, M(h(t, n)), 9,
|
|
8277
|
+
}, M(h(t, n)), 9, Dp)) : Z("", !0)], 10, bp))), 128))], 42, vp)], 64))), 128))], 512));
|
|
8278
8278
|
}
|
|
8279
|
-
}), [["styles", [""]]]),
|
|
8279
|
+
}), [["styles", [""]]]), kp = {
|
|
8280
8280
|
class: "g-pagination",
|
|
8281
8281
|
"aria-label": "Pagination"
|
|
8282
|
-
},
|
|
8282
|
+
}, Ap = ["disabled"], jp = ["disabled"], Mp = { class: "page-range" }, Np = ["disabled"], Pp = ["disabled"], Fp = { class: "g-pagination-page-size" }, Ip = { class: "page-size-select-wrap" }, Lp = ["id", "value"], Rp = ["value"], zp = ["for"], Bp = { class: "g-pagination-overflow" }, Vp = ["onClick"], Hp = { class: "g-pagination-overflow-popover" }, Up = { class: "g-pagination-overflow-page-size" }, Wp = ["for"], Gp = { class: "page-size-select-wrap" }, Kp = ["id", "value"], qp = ["value"], Jp = { class: "g-pagination-overflow-actions" }, Yp = ["disabled"], Xp = ["disabled"], Zp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
8283
8283
|
__name: "GTablePagination",
|
|
8284
8284
|
props: /*@__PURE__*/ U({
|
|
8285
8285
|
start: { type: Number },
|
|
@@ -8306,7 +8306,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8306
8306
|
function g(e) {
|
|
8307
8307
|
i.value = parseInt(e.target.value, 10), r.value = 0;
|
|
8308
8308
|
}
|
|
8309
|
-
return (e, t) => (G(), K("nav",
|
|
8309
|
+
return (e, t) => (G(), K("nav", kp, [
|
|
8310
8310
|
J("button", {
|
|
8311
8311
|
class: "first-page g-pagination-button",
|
|
8312
8312
|
type: "button",
|
|
@@ -8332,7 +8332,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8332
8332
|
}),
|
|
8333
8333
|
J("path", { d: "M11 7l-5 5l5 5" }),
|
|
8334
8334
|
J("path", { d: "M17 7l-5 5l5 5" })
|
|
8335
|
-
], -1)]], 8,
|
|
8335
|
+
], -1)]], 8, Ap),
|
|
8336
8336
|
J("button", {
|
|
8337
8337
|
class: "prev-page g-pagination-button",
|
|
8338
8338
|
type: "button",
|
|
@@ -8354,8 +8354,8 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8354
8354
|
stroke: "none",
|
|
8355
8355
|
d: "M0 0h24v24H0z",
|
|
8356
8356
|
fill: "none"
|
|
8357
|
-
}), J("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
8358
|
-
J("span",
|
|
8357
|
+
}), J("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, jp),
|
|
8358
|
+
J("span", Mp, M(f.value) + " to " + M(p.value), 1),
|
|
8359
8359
|
J("button", {
|
|
8360
8360
|
class: "next-page g-pagination-button",
|
|
8361
8361
|
type: "button",
|
|
@@ -8377,7 +8377,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8377
8377
|
stroke: "none",
|
|
8378
8378
|
d: "M0 0h24v24H0z",
|
|
8379
8379
|
fill: "none"
|
|
8380
|
-
}), J("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
8380
|
+
}), J("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Np),
|
|
8381
8381
|
J("button", {
|
|
8382
8382
|
class: "last-page g-pagination-button",
|
|
8383
8383
|
type: "button",
|
|
@@ -8403,8 +8403,8 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8403
8403
|
}),
|
|
8404
8404
|
J("path", { d: "M7 7l5 5l-5 5" }),
|
|
8405
8405
|
J("path", { d: "M13 7l5 5l-5 5" })
|
|
8406
|
-
], -1)]], 8,
|
|
8407
|
-
J("div",
|
|
8406
|
+
], -1)]], 8, Pp),
|
|
8407
|
+
J("div", Fp, [J("div", Ip, [J("select", {
|
|
8408
8408
|
id: I(a),
|
|
8409
8409
|
class: "page-size-select",
|
|
8410
8410
|
value: c.value,
|
|
@@ -8412,7 +8412,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8412
8412
|
}, [(G(!0), K(W, null, V(l.value, (e) => (G(), K("option", {
|
|
8413
8413
|
key: e,
|
|
8414
8414
|
value: e
|
|
8415
|
-
}, M(e), 9,
|
|
8415
|
+
}, M(e), 9, Rp))), 128))], 40, Lp), t[10] ||= J("span", {
|
|
8416
8416
|
class: "page-size-select-caret",
|
|
8417
8417
|
"aria-hidden": "true"
|
|
8418
8418
|
}, [J("svg", {
|
|
@@ -8426,8 +8426,8 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8426
8426
|
})])], -1)]), J("label", {
|
|
8427
8427
|
class: "page-size-label",
|
|
8428
8428
|
for: I(a)
|
|
8429
|
-
}, " per page ", 8,
|
|
8430
|
-
J("div",
|
|
8429
|
+
}, " per page ", 8, zp)]),
|
|
8430
|
+
J("div", Bp, [Y(ku, null, {
|
|
8431
8431
|
trigger: R(({ toggle: e }) => [J("button", {
|
|
8432
8432
|
type: "button",
|
|
8433
8433
|
class: "g-pagination-button g-pagination-overflow-trigger",
|
|
@@ -8442,17 +8442,17 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8442
8442
|
}, [J("path", {
|
|
8443
8443
|
fill: "currentColor",
|
|
8444
8444
|
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"
|
|
8445
|
-
})], -1)]], 8,
|
|
8446
|
-
default: R(() => [J("div",
|
|
8445
|
+
})], -1)]], 8, Vp)]),
|
|
8446
|
+
default: R(() => [J("div", Hp, [
|
|
8447
8447
|
t[15] ||= J("h2", {
|
|
8448
8448
|
class: "g-pagination-overflow-title",
|
|
8449
8449
|
tabindex: "-1",
|
|
8450
8450
|
"popover-focus": ""
|
|
8451
8451
|
}, " Pagination options ", -1),
|
|
8452
|
-
J("div",
|
|
8452
|
+
J("div", Up, [J("label", {
|
|
8453
8453
|
class: "page-size-label",
|
|
8454
8454
|
for: I(o)
|
|
8455
|
-
}, " Rows per page ", 8,
|
|
8455
|
+
}, " Rows per page ", 8, Wp), J("div", Gp, [J("select", {
|
|
8456
8456
|
id: I(o),
|
|
8457
8457
|
class: "page-size-select",
|
|
8458
8458
|
value: c.value,
|
|
@@ -8460,7 +8460,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8460
8460
|
}, [(G(!0), K(W, null, V(l.value, (e) => (G(), K("option", {
|
|
8461
8461
|
key: `overflow-${e}`,
|
|
8462
8462
|
value: e
|
|
8463
|
-
}, M(e), 9,
|
|
8463
|
+
}, M(e), 9, qp))), 128))], 40, Kp), t[12] ||= J("span", {
|
|
8464
8464
|
class: "page-size-select-caret",
|
|
8465
8465
|
"aria-hidden": "true"
|
|
8466
8466
|
}, [J("svg", {
|
|
@@ -8472,7 +8472,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8472
8472
|
fill: "currentColor",
|
|
8473
8473
|
d: "M300.3 439.8C312.8 450.1 331.3 449.3 343.1 437.6L471.1 309.6C480.3 300.4 483 286.7 478 274.7C473 262.7 461.4 255 448.5 255L192.5 255C179.6 255 167.9 262.8 162.9 274.8C157.9 286.8 160.7 300.5 169.9 309.6L297.9 437.6L300.3 439.8z"
|
|
8474
8474
|
})])], -1)])]),
|
|
8475
|
-
J("div",
|
|
8475
|
+
J("div", Jp, [J("button", {
|
|
8476
8476
|
type: "button",
|
|
8477
8477
|
class: "g-pagination-overflow-action",
|
|
8478
8478
|
disabled: u.value,
|
|
@@ -8498,7 +8498,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8498
8498
|
}),
|
|
8499
8499
|
J("path", { d: "M11 7l-5 5l5 5" }),
|
|
8500
8500
|
J("path", { d: "M17 7l-5 5l5 5" })
|
|
8501
|
-
])], -1), X(" First Page ", -1)]], 8,
|
|
8501
|
+
])], -1), X(" First Page ", -1)]], 8, Yp), J("button", {
|
|
8502
8502
|
type: "button",
|
|
8503
8503
|
class: "g-pagination-overflow-action",
|
|
8504
8504
|
disabled: d.value,
|
|
@@ -8524,7 +8524,7 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8524
8524
|
}),
|
|
8525
8525
|
J("path", { d: "M7 7l5 5l-5 5" }),
|
|
8526
8526
|
J("path", { d: "M13 7l5 5l-5 5" })
|
|
8527
|
-
])], -1), X(" Last Page ", -1)]], 8,
|
|
8527
|
+
])], -1), X(" Last Page ", -1)]], 8, Xp)])
|
|
8528
8528
|
])]),
|
|
8529
8529
|
_: 1
|
|
8530
8530
|
})])
|
|
@@ -8533,17 +8533,17 @@ var op = ["id"], sp = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
|
8533
8533
|
}), [["styles", [""]]]);
|
|
8534
8534
|
//#endregion
|
|
8535
8535
|
//#region src/compose/useFiltering.ts
|
|
8536
|
-
function
|
|
8536
|
+
function Qp(e) {
|
|
8537
8537
|
if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
|
|
8538
8538
|
}
|
|
8539
|
-
function
|
|
8539
|
+
function $p(e) {
|
|
8540
8540
|
let t = {};
|
|
8541
8541
|
return Object.keys(e).forEach((n) => {
|
|
8542
8542
|
let r = e[n];
|
|
8543
8543
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
8544
8544
|
}), t;
|
|
8545
8545
|
}
|
|
8546
|
-
function
|
|
8546
|
+
function em(e, t = {}) {
|
|
8547
8547
|
let n = /* @__PURE__ */ zt(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), r = t.syncWith;
|
|
8548
8548
|
if (r) {
|
|
8549
8549
|
if (r.value) {
|
|
@@ -8556,13 +8556,13 @@ function $p(e, t = {}) {
|
|
|
8556
8556
|
});
|
|
8557
8557
|
}
|
|
8558
8558
|
z(n, (e) => {
|
|
8559
|
-
r.value =
|
|
8559
|
+
r.value = $p(e);
|
|
8560
8560
|
}, { deep: !0 });
|
|
8561
8561
|
}
|
|
8562
8562
|
return {
|
|
8563
8563
|
filters: n,
|
|
8564
8564
|
isFiltered: Q(() => {
|
|
8565
|
-
for (let t of Object.keys(e)) if (
|
|
8565
|
+
for (let t of Object.keys(e)) if (Qp(n[t])) return !0;
|
|
8566
8566
|
return !1;
|
|
8567
8567
|
}),
|
|
8568
8568
|
clearFilters: () => {
|
|
@@ -8572,94 +8572,94 @@ function $p(e, t = {}) {
|
|
|
8572
8572
|
},
|
|
8573
8573
|
filteredColumns: Q(() => {
|
|
8574
8574
|
let t = {};
|
|
8575
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
8575
|
+
for (let r of Object.keys(e)) t[r] = !!Qp(n[r]);
|
|
8576
8576
|
return t;
|
|
8577
8577
|
})
|
|
8578
8578
|
};
|
|
8579
8579
|
}
|
|
8580
8580
|
//#endregion
|
|
8581
8581
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
8582
|
-
var
|
|
8582
|
+
var tm = { class: "g-table-outer-wrap" }, nm = {
|
|
8583
8583
|
key: 0,
|
|
8584
8584
|
class: "g-table-controls"
|
|
8585
|
-
},
|
|
8585
|
+
}, rm = { class: "g-table-control-actions" }, im = {
|
|
8586
8586
|
key: 0,
|
|
8587
8587
|
class: "g-sort-builder-wrap"
|
|
8588
|
-
},
|
|
8588
|
+
}, am = {
|
|
8589
8589
|
key: 0,
|
|
8590
8590
|
class: "g-sort-builder-count"
|
|
8591
|
-
},
|
|
8591
|
+
}, om = {
|
|
8592
8592
|
key: 0,
|
|
8593
8593
|
class: "g-sort-builder-list"
|
|
8594
|
-
},
|
|
8594
|
+
}, sm = ["data-sort-row-key", "aria-label"], cm = {
|
|
8595
8595
|
class: "g-sort-builder-rule-priority",
|
|
8596
8596
|
"aria-hidden": "true"
|
|
8597
|
-
},
|
|
8597
|
+
}, lm = { class: "g-sort-builder-rule-label" }, um = ["aria-label", "onClick"], dm = { class: "g-visually-hidden" }, fm = {
|
|
8598
8598
|
class: "sort-indicator",
|
|
8599
8599
|
"aria-hidden": "true"
|
|
8600
|
-
},
|
|
8600
|
+
}, pm = ["aria-label", "onClick"], mm = {
|
|
8601
8601
|
key: 1,
|
|
8602
8602
|
class: "g-sort-builder-empty"
|
|
8603
|
-
},
|
|
8603
|
+
}, hm = {
|
|
8604
8604
|
key: 2,
|
|
8605
8605
|
class: "g-sort-builder-add"
|
|
8606
|
-
},
|
|
8606
|
+
}, gm = { class: "g-sort-builder-add-list" }, _m = { class: "g-sort-builder-add-name" }, vm = { class: "g-sort-builder-add-actions" }, ym = ["aria-label", "onClick"], bm = ["aria-label", "onClick"], xm = {
|
|
8607
8607
|
class: "sort-indicator",
|
|
8608
8608
|
"aria-hidden": "true"
|
|
8609
|
-
},
|
|
8609
|
+
}, Sm = {
|
|
8610
8610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8611
8611
|
viewBox: "0 0 640 640",
|
|
8612
8612
|
height: "1.25em",
|
|
8613
8613
|
style: { transform: "rotate(180deg)" }
|
|
8614
|
-
},
|
|
8614
|
+
}, Cm = {
|
|
8615
8615
|
key: 1,
|
|
8616
8616
|
class: "g-column-visibility-wrap"
|
|
8617
|
-
},
|
|
8617
|
+
}, wm = {
|
|
8618
8618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8619
8619
|
viewBox: "0 0 640 640",
|
|
8620
8620
|
height: "1.5em",
|
|
8621
8621
|
style: { transform: "rotate(90deg)" },
|
|
8622
8622
|
"aria-hidden": "true"
|
|
8623
|
-
},
|
|
8623
|
+
}, Tm = ["aria-labelledby"], Em = { class: "g-column-visibility-header" }, Dm = ["id"], Om = { class: "g-column-visibility-legend-action" }, km = { class: "g-column-visibility-list" }, Am = ["checked", "onChange"], jm = {
|
|
8624
8624
|
key: 2,
|
|
8625
8625
|
class: "g-table-custom-controls"
|
|
8626
|
-
},
|
|
8626
|
+
}, Mm = { class: "g-clear-filters-wrap" }, Nm = {
|
|
8627
8627
|
key: 0,
|
|
8628
8628
|
class: "pagination"
|
|
8629
|
-
},
|
|
8629
|
+
}, Pm = { class: "g-table-controls-right" }, Fm = { class: "g-result-count" }, Im = ["aria-label", "aria-rowcount"], Lm = { key: 0 }, Rm = ["data-column-key"], zm = { class: "g-table-head" }, Bm = { "aria-rowindex": "1" }, Vm = {
|
|
8630
8630
|
key: 0,
|
|
8631
8631
|
scope: "col",
|
|
8632
8632
|
class: "g-th g-th-checkbox"
|
|
8633
|
-
},
|
|
8633
|
+
}, Hm = [
|
|
8634
8634
|
"checked",
|
|
8635
8635
|
"indeterminate",
|
|
8636
8636
|
"aria-label"
|
|
8637
|
-
],
|
|
8637
|
+
], Um = ["id", "aria-sort"], Wm = { class: "th-inner" }, Gm = ["onClick"], Km = {
|
|
8638
8638
|
key: 0,
|
|
8639
8639
|
class: "sort-indicator",
|
|
8640
8640
|
"aria-hidden": "true"
|
|
8641
|
-
},
|
|
8641
|
+
}, qm = {
|
|
8642
8642
|
key: 1,
|
|
8643
8643
|
class: "g-visually-hidden"
|
|
8644
|
-
},
|
|
8644
|
+
}, Jm = {
|
|
8645
8645
|
key: 1,
|
|
8646
8646
|
class: "g-column-head"
|
|
8647
|
-
},
|
|
8647
|
+
}, Ym = ["onClick", "aria-label"], Xm = {
|
|
8648
8648
|
key: 1,
|
|
8649
8649
|
class: "g-filter-search",
|
|
8650
8650
|
role: "search"
|
|
8651
|
-
},
|
|
8651
|
+
}, Zm = [
|
|
8652
8652
|
"onUpdate:modelValue",
|
|
8653
8653
|
"placeholder",
|
|
8654
8654
|
"aria-label"
|
|
8655
|
-
],
|
|
8655
|
+
], Qm = { key: 2 }, $m = { class: "g-filter-toggle" }, eh = [
|
|
8656
8656
|
"onUpdate:modelValue",
|
|
8657
8657
|
"id",
|
|
8658
8658
|
"aria-describedby"
|
|
8659
|
-
],
|
|
8659
|
+
], th = ["for"], nh = ["id"], rh = {
|
|
8660
8660
|
key: 4,
|
|
8661
8661
|
class: "g-multi-select"
|
|
8662
|
-
},
|
|
8662
|
+
}, ih = [
|
|
8663
8663
|
"data-column-key",
|
|
8664
8664
|
"aria-label",
|
|
8665
8665
|
"aria-valuemax",
|
|
@@ -8667,10 +8667,10 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
8667
8667
|
"aria-valuetext",
|
|
8668
8668
|
"onKeydown",
|
|
8669
8669
|
"onPointerdown"
|
|
8670
|
-
],
|
|
8670
|
+
], ah = {
|
|
8671
8671
|
key: 1,
|
|
8672
8672
|
class: "g-bulk-actions-toolbar"
|
|
8673
|
-
},
|
|
8673
|
+
}, oh = { class: "g-selected-count" }, sh = { class: "g-bulk-actions" }, ch = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
8674
8674
|
__name: "GTable",
|
|
8675
8675
|
props: /*@__PURE__*/ U({
|
|
8676
8676
|
label: { type: String },
|
|
@@ -8734,7 +8734,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
8734
8734
|
]),
|
|
8735
8735
|
setup(e, { emit: t }) {
|
|
8736
8736
|
let n = Mi(e, "sort"), r = Mi(e, "filter"), i = Mi(e, "columnState"), a = Mi(e, "selectedRows"), o = e, s = t, c = o.filtering;
|
|
8737
|
-
c ||=
|
|
8737
|
+
c ||= em({});
|
|
8738
8738
|
let { filters: l, filteredColumns: u, isFiltered: d, clearFilters: f } = c, p = Q(() => o.data.map((e) => e.key)), m = Q(() => a.value.filter((e) => p.value.includes(e))), h = Q(() => !o.bulkSelectionEnabled || o.data.length === 0 ? !1 : m.value.length === p.value.length), g = Q(() => !o.bulkSelectionEnabled || o.data.length === 0 ? !1 : m.value.length > 0 && m.value.length < p.value.length), _ = /* @__PURE__ */ F(null);
|
|
8739
8739
|
function v() {
|
|
8740
8740
|
if (h.value) a.value = a.value.filter((e) => !p.value.includes(e));
|
|
@@ -8968,10 +8968,10 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
8968
8968
|
}), Wr(() => {
|
|
8969
8969
|
o.rowClickable && o.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
8970
8970
|
for (let e of o.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
|
|
8971
|
-
}), (t, n) => (G(), K("div",
|
|
8972
|
-
Ye.value ? (G(), K("div",
|
|
8973
|
-
J("div",
|
|
8974
|
-
oe.value ? (G(), K("div",
|
|
8971
|
+
}), (t, n) => (G(), K("div", tm, [
|
|
8972
|
+
Ye.value ? (G(), K("div", nm, [
|
|
8973
|
+
J("div", rm, [
|
|
8974
|
+
oe.value ? (G(), K("div", im, [Y(ku, null, {
|
|
8975
8975
|
trigger: R(({ toggle: e }) => [Y(gl, {
|
|
8976
8976
|
size: "small",
|
|
8977
8977
|
class: j(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": A.value.length > 0 }]),
|
|
@@ -8987,7 +8987,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
8987
8987
|
}, [J("path", {
|
|
8988
8988
|
fill: "currentColor",
|
|
8989
8989
|
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"
|
|
8990
|
-
})], -1), A.value.length ? (G(), K("span",
|
|
8990
|
+
})], -1), A.value.length ? (G(), K("span", am, M(A.value.length), 1)) : Z("", !0)]),
|
|
8991
8991
|
_: 1
|
|
8992
8992
|
}, 8, ["class", "onClick"])]),
|
|
8993
8993
|
default: R(() => [J("fieldset", {
|
|
@@ -8999,21 +8999,21 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
8999
8999
|
}, [
|
|
9000
9000
|
n[8] ||= J("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
9001
9001
|
n[9] ||= J("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),
|
|
9002
|
-
A.value.length ? (G(), K("ol",
|
|
9002
|
+
A.value.length ? (G(), K("ol", om, [(G(!0), K(W, null, V(A.value, (e, t) => (G(), K("li", {
|
|
9003
9003
|
key: e.key,
|
|
9004
9004
|
class: "g-sort-builder-rule",
|
|
9005
9005
|
tabindex: "-1",
|
|
9006
9006
|
"data-sort-row-key": String(e.key),
|
|
9007
9007
|
"aria-label": `${de(e.key)} ${me(e.order)} sort, priority ${t + 1}`
|
|
9008
9008
|
}, [
|
|
9009
|
-
J("span",
|
|
9010
|
-
J("span",
|
|
9009
|
+
J("span", cm, M(t + 1), 1),
|
|
9010
|
+
J("span", lm, M(de(e.key)), 1),
|
|
9011
9011
|
J("button", {
|
|
9012
9012
|
type: "button",
|
|
9013
9013
|
class: "g-sort-builder-direction",
|
|
9014
9014
|
"aria-label": `Toggle ${de(e.key)} sort direction`,
|
|
9015
9015
|
onClick: (t) => ye(e.key)
|
|
9016
|
-
}, [J("span",
|
|
9016
|
+
}, [J("span", dm, M(me(e.order)), 1), J("span", fm, [(G(), K("svg", {
|
|
9017
9017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9018
9018
|
viewBox: "0 0 640 640",
|
|
9019
9019
|
height: "1.25em",
|
|
@@ -9021,18 +9021,18 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9021
9021
|
}, [...n[2] ||= [J("path", {
|
|
9022
9022
|
fill: "currentColor",
|
|
9023
9023
|
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"
|
|
9024
|
-
}, null, -1)]], 4))])], 8,
|
|
9024
|
+
}, null, -1)]], 4))])], 8, um),
|
|
9025
9025
|
J("button", {
|
|
9026
9026
|
type: "button",
|
|
9027
9027
|
class: "g-sort-builder-remove",
|
|
9028
9028
|
"aria-label": `Remove ${de(e.key)} sort`,
|
|
9029
9029
|
onClick: (t) => be(e.key)
|
|
9030
|
-
}, " Remove ", 8,
|
|
9031
|
-
], 8,
|
|
9032
|
-
se.value.length ? (G(), K("div",
|
|
9030
|
+
}, " Remove ", 8, pm)
|
|
9031
|
+
], 8, sm))), 128))])) : (G(), K("p", mm, " No active sort rules. ")),
|
|
9032
|
+
se.value.length ? (G(), K("div", hm, [n[6] ||= J("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), J("ul", gm, [(G(!0), K(W, null, V(se.value, (e) => (G(), K("li", {
|
|
9033
9033
|
key: e.key,
|
|
9034
9034
|
class: "g-sort-builder-add-item"
|
|
9035
|
-
}, [J("span",
|
|
9035
|
+
}, [J("span", _m, M(e.label), 1), J("div", vm, [J("button", {
|
|
9036
9036
|
type: "button",
|
|
9037
9037
|
class: "g-sort-builder-direction",
|
|
9038
9038
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
@@ -9047,15 +9047,15 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9047
9047
|
}, [J("path", {
|
|
9048
9048
|
fill: "currentColor",
|
|
9049
9049
|
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"
|
|
9050
|
-
})])], -1)]], 8,
|
|
9050
|
+
})])], -1)]], 8, ym), J("button", {
|
|
9051
9051
|
type: "button",
|
|
9052
9052
|
class: "g-sort-builder-direction",
|
|
9053
9053
|
"aria-label": `Add ${e.label} descending sort`,
|
|
9054
9054
|
onClick: (t) => ve(e.key, -1)
|
|
9055
|
-
}, [n[5] ||= J("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), J("span",
|
|
9055
|
+
}, [n[5] ||= J("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), J("span", xm, [(G(), K("svg", Sm, [...n[4] ||= [J("path", {
|
|
9056
9056
|
fill: "currentColor",
|
|
9057
9057
|
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"
|
|
9058
|
-
}, null, -1)]]))])], 8,
|
|
9058
|
+
}, null, -1)]]))])], 8, bm)])]))), 128))])])) : Z("", !0),
|
|
9059
9059
|
A.value.length ? (G(), q(gl, {
|
|
9060
9060
|
key: 3,
|
|
9061
9061
|
outlined: "",
|
|
@@ -9069,14 +9069,14 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9069
9069
|
], 512)]),
|
|
9070
9070
|
_: 1
|
|
9071
9071
|
})])) : Z("", !0),
|
|
9072
|
-
He.value ? (G(), K("div",
|
|
9072
|
+
He.value ? (G(), K("div", Cm, [Y(ku, null, {
|
|
9073
9073
|
trigger: R(({ toggle: e }) => [Y(gl, {
|
|
9074
9074
|
size: "small",
|
|
9075
9075
|
class: j(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Ve.value }]),
|
|
9076
9076
|
"aria-label": "Choose visible columns",
|
|
9077
9077
|
onClick: e
|
|
9078
9078
|
}, {
|
|
9079
|
-
default: R(() => [(G(), K("svg",
|
|
9079
|
+
default: R(() => [(G(), K("svg", wm, [...n[10] ||= [J("path", {
|
|
9080
9080
|
fill: "currentColor",
|
|
9081
9081
|
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"
|
|
9082
9082
|
}, null, -1)]]))]),
|
|
@@ -9085,10 +9085,10 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9085
9085
|
default: R(() => [J("fieldset", {
|
|
9086
9086
|
class: "g-column-visibility-popover",
|
|
9087
9087
|
"aria-labelledby": `${I(T)}-column-visibility-heading`
|
|
9088
|
-
}, [J("div",
|
|
9088
|
+
}, [J("div", Em, [J("span", {
|
|
9089
9089
|
id: `${I(T)}-column-visibility-heading`,
|
|
9090
9090
|
class: "g-column-visibility-heading"
|
|
9091
|
-
}, " Shown columns ", 8,
|
|
9091
|
+
}, " Shown columns ", 8, Dm), J("span", Om, [Y(gl, {
|
|
9092
9092
|
text: "",
|
|
9093
9093
|
size: "small",
|
|
9094
9094
|
class: j(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Ve.value }]),
|
|
@@ -9096,18 +9096,18 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9096
9096
|
}, {
|
|
9097
9097
|
default: R(() => [...n[11] ||= [X(" Show All ", -1)]]),
|
|
9098
9098
|
_: 1
|
|
9099
|
-
}, 8, ["class"])])]), J("div",
|
|
9099
|
+
}, 8, ["class"])])]), J("div", km, [(G(!0), K(W, null, V(e.columns, (e) => (G(), K("label", {
|
|
9100
9100
|
key: e.key,
|
|
9101
9101
|
class: "g-column-visibility-option"
|
|
9102
9102
|
}, [J("input", {
|
|
9103
9103
|
checked: Ge(e),
|
|
9104
9104
|
type: "checkbox",
|
|
9105
9105
|
onChange: (t) => Ke(e, t.target.checked)
|
|
9106
|
-
}, null, 40,
|
|
9106
|
+
}, null, 40, Am), J("span", null, M(e.label), 1)]))), 128))])], 8, Tm)]),
|
|
9107
9107
|
_: 1
|
|
9108
9108
|
})])) : Z("", !0),
|
|
9109
|
-
Ue.value ? (G(), K("div",
|
|
9110
|
-
J("div",
|
|
9109
|
+
Ue.value ? (G(), K("div", jm, [H(t.$slots, "controls")])) : Z("", !0),
|
|
9110
|
+
J("div", Mm, [I(d) ? (G(), q(gl, {
|
|
9111
9111
|
key: 0,
|
|
9112
9112
|
outlined: "",
|
|
9113
9113
|
size: "small",
|
|
@@ -9127,7 +9127,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9127
9127
|
_: 1
|
|
9128
9128
|
}, 8, ["onClick"])) : Z("", !0)])
|
|
9129
9129
|
]),
|
|
9130
|
-
Je.value ? (G(), K("div",
|
|
9130
|
+
Je.value ? (G(), K("div", Nm, [Y(Zp, {
|
|
9131
9131
|
start: e.startIndex,
|
|
9132
9132
|
"page-size": e.pageSize,
|
|
9133
9133
|
"page-sizes": e.pageSizes,
|
|
@@ -9140,7 +9140,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9140
9140
|
"page-sizes",
|
|
9141
9141
|
"total"
|
|
9142
9142
|
])])) : Z("", !0),
|
|
9143
|
-
J("div",
|
|
9143
|
+
J("div", Pm, [J("span", Fm, M(We.value) + " results", 1), H(t.$slots, "right-controls")])
|
|
9144
9144
|
])) : Z("", !0),
|
|
9145
9145
|
J("div", {
|
|
9146
9146
|
ref_key: "tableWrapRef",
|
|
@@ -9154,19 +9154,19 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9154
9154
|
"aria-label": e.label,
|
|
9155
9155
|
"aria-rowcount": We.value
|
|
9156
9156
|
}, [
|
|
9157
|
-
J("colgroup", null, [e.bulkSelectionEnabled ? (G(), K("col",
|
|
9157
|
+
J("colgroup", null, [e.bulkSelectionEnabled ? (G(), K("col", Lm)) : Z("", !0), (G(!0), K(W, null, V(ze.value, (e) => (G(), K("col", {
|
|
9158
9158
|
key: e.key,
|
|
9159
9159
|
"data-column-key": String(e.key),
|
|
9160
9160
|
style: le(Fe(e))
|
|
9161
|
-
}, null, 12,
|
|
9162
|
-
J("thead",
|
|
9161
|
+
}, null, 12, Rm))), 128))]),
|
|
9162
|
+
J("thead", zm, [J("tr", Bm, [e.bulkSelectionEnabled ? (G(), K("th", Vm, [J("input", {
|
|
9163
9163
|
type: "checkbox",
|
|
9164
9164
|
checked: h.value,
|
|
9165
9165
|
indeterminate: g.value,
|
|
9166
9166
|
onChange: v,
|
|
9167
9167
|
"aria-label": h.value ? "Deselect all rows" : "Select all rows",
|
|
9168
9168
|
class: "g-bulk-select-checkbox"
|
|
9169
|
-
}, null, 40,
|
|
9169
|
+
}, null, 40, Hm)])) : Z("", !0), (G(!0), K(W, null, V(ze.value, (t) => (G(), K("th", {
|
|
9170
9170
|
key: t.key,
|
|
9171
9171
|
id: `${I(T)}-th-${String(t.key)}`,
|
|
9172
9172
|
"aria-sort": fe(t.key),
|
|
@@ -9177,14 +9177,14 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9177
9177
|
{ filtered: I(u)[t.key] }
|
|
9178
9178
|
]),
|
|
9179
9179
|
scope: "col"
|
|
9180
|
-
}, [J("div",
|
|
9180
|
+
}, [J("div", Wm, [t.sortable ? (G(), K("button", {
|
|
9181
9181
|
key: 0,
|
|
9182
9182
|
type: "button",
|
|
9183
9183
|
class: "g-column-head",
|
|
9184
9184
|
onClick: (e) => _e(t, e.shiftKey)
|
|
9185
9185
|
}, [
|
|
9186
9186
|
X(M(t.label) + " ", 1),
|
|
9187
|
-
ce(t.key) === -1 ? Z("", !0) : (G(), K("span",
|
|
9187
|
+
ce(t.key) === -1 ? Z("", !0) : (G(), K("span", Km, [(G(), K("svg", {
|
|
9188
9188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9189
9189
|
viewBox: "0 0 640 640",
|
|
9190
9190
|
height: "1.5em",
|
|
@@ -9193,8 +9193,8 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9193
9193
|
fill: "currentColor",
|
|
9194
9194
|
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"
|
|
9195
9195
|
}, null, -1)]], 4))])),
|
|
9196
|
-
ce(t.key) === -1 ? Z("", !0) : (G(), K("span",
|
|
9197
|
-
], 8,
|
|
9196
|
+
ce(t.key) === -1 ? Z("", !0) : (G(), K("span", qm, M(pe(t.key)), 1))
|
|
9197
|
+
], 8, Gm)) : (G(), K("span", Jm, M(t.label), 1)), t.filter ? (G(), q(ku, { key: 2 }, {
|
|
9198
9198
|
trigger: R(({ toggle: e }) => [J("button", {
|
|
9199
9199
|
onClick: Ps(e, ["stop"]),
|
|
9200
9200
|
"aria-label": I(u)[t.key] ? "Column Filtered" : "Filter Column",
|
|
@@ -9208,8 +9208,8 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9208
9208
|
}, [J("path", {
|
|
9209
9209
|
fill: "currentColor",
|
|
9210
9210
|
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"
|
|
9211
|
-
})], -1)]], 10,
|
|
9212
|
-
default: R(() => [t.filter.type === "select" ? (G(), q(
|
|
9211
|
+
})], -1)]], 10, Ym)]),
|
|
9212
|
+
default: R(() => [t.filter.type === "select" ? (G(), q(Qf, {
|
|
9213
9213
|
key: 0,
|
|
9214
9214
|
modelValue: r.value[t.key],
|
|
9215
9215
|
"onUpdate:modelValue": (e) => r.value[t.key] = e,
|
|
@@ -9224,7 +9224,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9224
9224
|
"onUpdate:modelValue",
|
|
9225
9225
|
"options",
|
|
9226
9226
|
"search-description"
|
|
9227
|
-
])) : t.filter.type === "search" ? (G(), K("div",
|
|
9227
|
+
])) : t.filter.type === "search" ? (G(), K("div", Xm, [n[15] ||= J("span", {
|
|
9228
9228
|
class: "g-filter-search-icon",
|
|
9229
9229
|
"aria-hidden": "true"
|
|
9230
9230
|
}, [J("svg", {
|
|
@@ -9240,20 +9240,20 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9240
9240
|
"onUpdate:modelValue": (e) => r.value[t.key] = e,
|
|
9241
9241
|
placeholder: t.filter.placeholder,
|
|
9242
9242
|
"aria-label": `Search ${t.label}`
|
|
9243
|
-
}, null, 8,
|
|
9243
|
+
}, null, 8, Zm), [[Ds, r.value[t.key]]])])) : t.filter.type === "toggle" ? (G(), K("div", Qm, [J("div", $m, [
|
|
9244
9244
|
Vn(J("input", {
|
|
9245
9245
|
type: "checkbox",
|
|
9246
9246
|
"onUpdate:modelValue": (e) => r.value[t.key] = e,
|
|
9247
9247
|
id: `${I(T)}-filter-${String(t.key)}`,
|
|
9248
9248
|
"aria-describedby": t.filter.description ? `${I(T)}-filter-description-${String(t.key)}` : void 0
|
|
9249
|
-
}, null, 8,
|
|
9250
|
-
J("label", { for: `${I(T)}-filter-${String(t.key)}` }, M(t.filter.label), 9,
|
|
9249
|
+
}, null, 8, eh), [[Os, r.value[t.key]]]),
|
|
9250
|
+
J("label", { for: `${I(T)}-filter-${String(t.key)}` }, M(t.filter.label), 9, th),
|
|
9251
9251
|
t.filter.description ? (G(), K("span", {
|
|
9252
9252
|
key: 0,
|
|
9253
9253
|
class: "g-filter-description",
|
|
9254
9254
|
id: `${I(T)}-filter-description-${String(t.key)}`
|
|
9255
|
-
}, M(t.filter.description), 9,
|
|
9256
|
-
])])) : t.filter.type === "multi-select" && t.filter.searchable ? (G(), q(
|
|
9255
|
+
}, M(t.filter.description), 9, nh)) : Z("", !0)
|
|
9256
|
+
])])) : t.filter.type === "multi-select" && t.filter.searchable ? (G(), q(Sf, {
|
|
9257
9257
|
key: 3,
|
|
9258
9258
|
modelValue: r.value[t.key],
|
|
9259
9259
|
"onUpdate:modelValue": (e) => r.value[t.key] = e,
|
|
@@ -9268,7 +9268,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9268
9268
|
"options",
|
|
9269
9269
|
"placeholder",
|
|
9270
9270
|
"search-description"
|
|
9271
|
-
])) : t.filter.type === "multi-select" ? (G(), K("div",
|
|
9271
|
+
])) : t.filter.type === "multi-select" ? (G(), K("div", rh, [Y(ad, {
|
|
9272
9272
|
modelValue: r.value[t.key],
|
|
9273
9273
|
"onUpdate:modelValue": (e) => r.value[t.key] = e,
|
|
9274
9274
|
options: Xe(t),
|
|
@@ -9304,8 +9304,8 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9304
9304
|
onClick: n[0] ||= Ps(() => {}, ["stop", "prevent"]),
|
|
9305
9305
|
onKeydown: (e) => Pe(e, t.key),
|
|
9306
9306
|
onPointerdown: (e) => Ne(e, t.key)
|
|
9307
|
-
}, null, 42,
|
|
9308
|
-
Y(
|
|
9307
|
+
}, null, 42, ih)) : Z("", !0)], 10, Um))), 128))])]),
|
|
9308
|
+
Y(Op, {
|
|
9309
9309
|
data: e.data,
|
|
9310
9310
|
columns: ze.value,
|
|
9311
9311
|
"group-by": e.groupBy,
|
|
@@ -9333,8 +9333,8 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9333
9333
|
"table-id",
|
|
9334
9334
|
"change-tracker"
|
|
9335
9335
|
])
|
|
9336
|
-
], 10,
|
|
9337
|
-
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div",
|
|
9336
|
+
], 10, Im)], 512),
|
|
9337
|
+
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div", ah, [J("span", oh, M(a.value.length) + " row" + M(a.value.length === 1 ? "" : "s") + " selected", 1), J("ul", sh, [(G(!0), K(W, null, V(e.bulkActions, (e) => (G(), K("li", { key: e.id }, [Y(gl, {
|
|
9338
9338
|
theme: e.theme || "accent",
|
|
9339
9339
|
onClick: (t) => x(e.id),
|
|
9340
9340
|
size: "small"
|
|
@@ -9344,7 +9344,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9344
9344
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : Z("", !0)
|
|
9345
9345
|
]));
|
|
9346
9346
|
}
|
|
9347
|
-
}), [["styles", [""]]]),
|
|
9347
|
+
}), [["styles", [""]]]), lh = { class: "popover-content" }, uh = { class: "year-dropdown" }, dh = { class: "month-selector" }, fh = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
9348
9348
|
__name: "GTermSelectorControl",
|
|
9349
9349
|
props: /*@__PURE__*/ U({
|
|
9350
9350
|
termYears: {
|
|
@@ -9377,7 +9377,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9377
9377
|
emits: ["update:modelValue"],
|
|
9378
9378
|
setup(e) {
|
|
9379
9379
|
let t = Mi(e, "modelValue");
|
|
9380
|
-
return (n, r) => (G(), K("div",
|
|
9380
|
+
return (n, r) => (G(), K("div", lh, [J("div", uh, [Y(Qf, {
|
|
9381
9381
|
modelValue: t.value.year,
|
|
9382
9382
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
9383
9383
|
options: e.termYears,
|
|
@@ -9386,7 +9386,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9386
9386
|
"modelValue",
|
|
9387
9387
|
"options",
|
|
9388
9388
|
"label"
|
|
9389
|
-
])]), J("div",
|
|
9389
|
+
])]), J("div", dh, [Y(ap, {
|
|
9390
9390
|
modelValue: t.value.name,
|
|
9391
9391
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
9392
9392
|
options: e.termNames,
|
|
@@ -9398,10 +9398,10 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9398
9398
|
"label"
|
|
9399
9399
|
])])]));
|
|
9400
9400
|
}
|
|
9401
|
-
}), [["styles", [""]]]),
|
|
9401
|
+
}), [["styles", [""]]]), ph = { class: "g-term-selector" }, mh = { class: "g-term-label" }, hh = {
|
|
9402
9402
|
class: "g-popover-title",
|
|
9403
9403
|
tabindex: "-1"
|
|
9404
|
-
},
|
|
9404
|
+
}, gh = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
9405
9405
|
__name: "GTermSelector",
|
|
9406
9406
|
props: /*@__PURE__*/ U({
|
|
9407
9407
|
heading: {
|
|
@@ -9432,7 +9432,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9432
9432
|
emits: ["update:modelValue"],
|
|
9433
9433
|
setup(e) {
|
|
9434
9434
|
let t = Mi(e, "modelValue");
|
|
9435
|
-
return (n, r) => (G(), K("div",
|
|
9435
|
+
return (n, r) => (G(), K("div", ph, [Y(ku, null, {
|
|
9436
9436
|
trigger: R(({ toggle: e }) => [Y(gl, {
|
|
9437
9437
|
class: "g-term-selector-button",
|
|
9438
9438
|
theme: "none",
|
|
@@ -9445,7 +9445,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9445
9445
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9446
9446
|
viewBox: "0 0 640 640"
|
|
9447
9447
|
}, [J("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),
|
|
9448
|
-
J("span",
|
|
9448
|
+
J("span", mh, M(t.value?.name) + " " + M(t.value?.year), 1),
|
|
9449
9449
|
r[1] ||= J("span", { class: "g-caret" }, [J("svg", {
|
|
9450
9450
|
role: "none",
|
|
9451
9451
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9454,15 +9454,15 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9454
9454
|
]),
|
|
9455
9455
|
_: 1
|
|
9456
9456
|
}, 8, ["onClick"])]),
|
|
9457
|
-
default: R(() => [J("h2",
|
|
9457
|
+
default: R(() => [J("h2", hh, M(e.heading), 1), Y(fh, me(Ia(n.$props)), null, 16)]),
|
|
9458
9458
|
_: 1
|
|
9459
9459
|
})]));
|
|
9460
9460
|
}
|
|
9461
|
-
}), [["styles", [""]]]),
|
|
9461
|
+
}), [["styles", [""]]]), _h = ["for"], vh = {
|
|
9462
9462
|
key: 0,
|
|
9463
9463
|
class: "g-textarea-required",
|
|
9464
9464
|
"aria-hidden": "true"
|
|
9465
|
-
},
|
|
9465
|
+
}, yh = ["id"], bh = [
|
|
9466
9466
|
"value",
|
|
9467
9467
|
"placeholder",
|
|
9468
9468
|
"disabled",
|
|
@@ -9471,11 +9471,11 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9471
9471
|
"rows",
|
|
9472
9472
|
"maxlength",
|
|
9473
9473
|
"aria-invalid"
|
|
9474
|
-
],
|
|
9474
|
+
], xh = {
|
|
9475
9475
|
key: 2,
|
|
9476
9476
|
class: "g-textarea-char-count",
|
|
9477
9477
|
"aria-live": "polite"
|
|
9478
|
-
},
|
|
9478
|
+
}, Sh = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
9479
9479
|
inheritAttrs: !1,
|
|
9480
9480
|
__name: "GTextarea",
|
|
9481
9481
|
props: /*@__PURE__*/ U({
|
|
@@ -9533,7 +9533,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9533
9533
|
}),
|
|
9534
9534
|
emits: /*@__PURE__*/ U(["change"], ["update:modelValue"]),
|
|
9535
9535
|
setup(e, { emit: t }) {
|
|
9536
|
-
let n = e, r = Mi(e, "modelValue"), i = Or(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = fl({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } =
|
|
9536
|
+
let n = e, r = Mi(e, "modelValue"), i = Or(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = fl({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } = Ku({
|
|
9537
9537
|
name: n.name,
|
|
9538
9538
|
value: r,
|
|
9539
9539
|
errors: /* @__PURE__ */ ln(n, "errors"),
|
|
@@ -9573,12 +9573,12 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9573
9573
|
key: 0,
|
|
9574
9574
|
for: c.value,
|
|
9575
9575
|
class: "g-textarea-label"
|
|
9576
|
-
}, [X(M(n.label), 1), n.required ? (G(), K("span",
|
|
9576
|
+
}, [X(M(n.label), 1), n.required ? (G(), K("span", vh, " *")) : Z("", !0)], 8, _h)) : Z("", !0),
|
|
9577
9577
|
t.$slots.instructions || e.instructions ? (G(), K("div", {
|
|
9578
9578
|
key: 1,
|
|
9579
9579
|
id: "instructions-" + I(i),
|
|
9580
9580
|
class: "g-textarea-instructions"
|
|
9581
|
-
}, [H(t.$slots, "instructions", {}, () => [X(M(e.instructions), 1)])], 8,
|
|
9581
|
+
}, [H(t.$slots, "instructions", {}, () => [X(M(e.instructions), 1)])], 8, yh)) : Z("", !0),
|
|
9582
9582
|
J("textarea", Va({
|
|
9583
9583
|
ref: "textareaEl",
|
|
9584
9584
|
value: r.value ?? "",
|
|
@@ -9599,36 +9599,36 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9599
9599
|
onInput: h,
|
|
9600
9600
|
onBlur: g,
|
|
9601
9601
|
onPaste: _
|
|
9602
|
-
}), null, 16,
|
|
9603
|
-
n.maxlength === void 0 ? Z("", !0) : (G(), K("div",
|
|
9604
|
-
Y(
|
|
9602
|
+
}), null, 16, bh),
|
|
9603
|
+
n.maxlength === void 0 ? Z("", !0) : (G(), K("div", xh, M((r.value ?? "").length) + " / " + M(n.maxlength), 1)),
|
|
9604
|
+
Y(Ju, {
|
|
9605
9605
|
errors: I(l),
|
|
9606
9606
|
id: "error-message-" + I(i)
|
|
9607
9607
|
}, null, 8, ["errors", "id"])
|
|
9608
9608
|
], 2));
|
|
9609
9609
|
}
|
|
9610
|
-
}), [["styles", [""]]]),
|
|
9610
|
+
}), [["styles", [""]]]), Ch = { class: "g-three-way-toggle-wrapper" }, wh = { class: "g-three-way-toggle-control" }, Th = ["id"], Eh = [
|
|
9611
9611
|
"aria-labelledby",
|
|
9612
9612
|
"aria-describedby",
|
|
9613
9613
|
"disabled",
|
|
9614
9614
|
"aria-invalid",
|
|
9615
9615
|
"aria-errormessage"
|
|
9616
|
-
],
|
|
9616
|
+
], Dh = { key: 0 }, Oh = { key: 1 }, kh = { key: 2 }, Ah = ["for"], jh = [
|
|
9617
9617
|
"id",
|
|
9618
9618
|
"name",
|
|
9619
9619
|
"checked",
|
|
9620
9620
|
"disabled"
|
|
9621
|
-
],
|
|
9621
|
+
], Mh = ["for"], Nh = [
|
|
9622
9622
|
"id",
|
|
9623
9623
|
"name",
|
|
9624
9624
|
"checked",
|
|
9625
9625
|
"disabled"
|
|
9626
|
-
],
|
|
9626
|
+
], Ph = ["for"], Fh = [
|
|
9627
9627
|
"id",
|
|
9628
9628
|
"name",
|
|
9629
9629
|
"checked",
|
|
9630
9630
|
"disabled"
|
|
9631
|
-
],
|
|
9631
|
+
], Ih = ["id"], Lh = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
9632
9632
|
__name: "GThreeWayToggle",
|
|
9633
9633
|
props: /*@__PURE__*/ U({
|
|
9634
9634
|
label: { type: String },
|
|
@@ -9662,10 +9662,10 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9662
9662
|
function m(e) {
|
|
9663
9663
|
n.disabled || (e.key === "n" || e.key === "N" ? (a(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (a(!0), e.preventDefault()));
|
|
9664
9664
|
}
|
|
9665
|
-
return (t, n) => (G(), K("div",
|
|
9665
|
+
return (t, n) => (G(), K("div", Ch, [J("div", wh, [J("span", {
|
|
9666
9666
|
class: "g-label",
|
|
9667
9667
|
id: I(c)
|
|
9668
|
-
}, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])], 8,
|
|
9668
|
+
}, [H(t.$slots, "label", {}, () => [X(M(e.label), 1)])], 8, Th), J("fieldset", {
|
|
9669
9669
|
class: j(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
9670
9670
|
role: "radiogroup",
|
|
9671
9671
|
"aria-labelledby": I(c),
|
|
@@ -9677,7 +9677,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9677
9677
|
J("span", {
|
|
9678
9678
|
class: j(["g-toggle-thumb", p.value]),
|
|
9679
9679
|
"aria-hidden": "true"
|
|
9680
|
-
}, [r.value === !1 ? (G(), K("span",
|
|
9680
|
+
}, [r.value === !1 ? (G(), K("span", Dh, "NO")) : r.value === !0 ? (G(), K("span", Oh, "YES")) : (G(), K("span", kh))], 2),
|
|
9681
9681
|
J("label", {
|
|
9682
9682
|
for: I(u),
|
|
9683
9683
|
class: "g-toggle-option g-left",
|
|
@@ -9691,7 +9691,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9691
9691
|
value: "false",
|
|
9692
9692
|
disabled: e.disabled,
|
|
9693
9693
|
onChange: n[0] ||= (e) => o(!1)
|
|
9694
|
-
}, null, 40,
|
|
9694
|
+
}, null, 40, jh), n[5] ||= J("span", { class: "ilw-sr-only" }, "No", -1)], 40, Ah),
|
|
9695
9695
|
J("label", {
|
|
9696
9696
|
for: I(d),
|
|
9697
9697
|
class: "g-toggle-option g-center",
|
|
@@ -9703,7 +9703,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9703
9703
|
checked: r.value === null,
|
|
9704
9704
|
disabled: e.disabled,
|
|
9705
9705
|
onChange: n[2] ||= (e) => o(null)
|
|
9706
|
-
}, null, 40,
|
|
9706
|
+
}, null, 40, Nh), n[6] ||= J("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Mh),
|
|
9707
9707
|
J("label", {
|
|
9708
9708
|
for: I(f),
|
|
9709
9709
|
class: "g-toggle-option g-right",
|
|
@@ -9717,22 +9717,22 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9717
9717
|
checked: r.value === !0,
|
|
9718
9718
|
disabled: e.disabled,
|
|
9719
9719
|
onChange: n[3] ||= (e) => o(!0)
|
|
9720
|
-
}, null, 40,
|
|
9721
|
-
], 2)], 10,
|
|
9720
|
+
}, null, 40, Fh), n[7] ||= J("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Ph)
|
|
9721
|
+
], 2)], 10, Eh)]), e.error ? (G(), K("div", {
|
|
9722
9722
|
key: 0,
|
|
9723
9723
|
id: `${I(c)}-error`,
|
|
9724
9724
|
class: "g-form-error",
|
|
9725
9725
|
role: "alert",
|
|
9726
9726
|
"aria-atomic": "true"
|
|
9727
|
-
}, M(e.error), 9,
|
|
9727
|
+
}, M(e.error), 9, Ih)) : Z("", !0)]));
|
|
9728
9728
|
}
|
|
9729
|
-
}), [["styles", [""]]]),
|
|
9729
|
+
}), [["styles", [""]]]), Rh = { class: "g-tree-menu__divider" }, zh = {
|
|
9730
9730
|
key: 0,
|
|
9731
9731
|
class: "g-tree-menu__divider-line"
|
|
9732
|
-
},
|
|
9732
|
+
}, Bh = {
|
|
9733
9733
|
key: 1,
|
|
9734
9734
|
class: "g-tree-menu__expand-all-wrapper"
|
|
9735
|
-
},
|
|
9735
|
+
}, Vh = { class: "g-tree-menu__content" }, Hh = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
9736
9736
|
__name: "GTreeMenu",
|
|
9737
9737
|
props: {
|
|
9738
9738
|
heading: { type: String },
|
|
@@ -9792,7 +9792,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9792
9792
|
default: R(() => [H(n.$slots, "heading", {}, () => [X(M(e.heading), 1)])]),
|
|
9793
9793
|
_: 3
|
|
9794
9794
|
}, 8, ["id"])) : Z("", !0),
|
|
9795
|
-
J("div",
|
|
9795
|
+
J("div", Rh, [e.smallHeading ? Z("", !0) : (G(), K("div", zh)), e.showExpandAll ? (G(), K("div", Bh, [J("button", {
|
|
9796
9796
|
class: "g-tree-menu__expand-all-btn",
|
|
9797
9797
|
onClick: u
|
|
9798
9798
|
}, [(G(), K("svg", {
|
|
@@ -9805,10 +9805,10 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9805
9805
|
"stroke-linecap": "round",
|
|
9806
9806
|
"stroke-linejoin": "round"
|
|
9807
9807
|
}, [...r[0] ||= [J("polyline", { points: "7 8 12 13 17 8" }, null, -1), J("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), X(" " + M(l.value ? "Collapse all" : "Expand all"), 1)])])) : Z("", !0)]),
|
|
9808
|
-
J("div",
|
|
9808
|
+
J("div", Vh, [H(n.$slots, "default")])
|
|
9809
9809
|
], 16));
|
|
9810
9810
|
}
|
|
9811
|
-
}), [["styles", [""]]]),
|
|
9811
|
+
}), [["styles", [""]]]), Uh = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
9812
9812
|
name: "GTreeMenuList",
|
|
9813
9813
|
props: { listType: {
|
|
9814
9814
|
default: void 0,
|
|
@@ -9828,20 +9828,20 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9828
9828
|
_: 3
|
|
9829
9829
|
}, 8, ["role"]));
|
|
9830
9830
|
}
|
|
9831
|
-
}), [["styles", [""]]]),
|
|
9831
|
+
}), [["styles", [""]]]), Wh = {
|
|
9832
9832
|
key: 0,
|
|
9833
9833
|
class: "g-tree-menu__row"
|
|
9834
|
-
},
|
|
9834
|
+
}, Gh = { class: "g-tree-menu__row-content-text" }, Kh = [
|
|
9835
9835
|
"aria-controls",
|
|
9836
9836
|
"aria-expanded",
|
|
9837
9837
|
"aria-label"
|
|
9838
|
-
],
|
|
9838
|
+
], qh = {
|
|
9839
9839
|
key: 1,
|
|
9840
9840
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
9841
|
-
},
|
|
9841
|
+
}, Jh = {
|
|
9842
9842
|
class: "g-tree-menu__row-content",
|
|
9843
9843
|
"data-tree-primary": ""
|
|
9844
|
-
},
|
|
9844
|
+
}, Yh = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
9845
9845
|
name: "GTreeMenuItem",
|
|
9846
9846
|
inheritAttrs: !1,
|
|
9847
9847
|
props: {
|
|
@@ -9906,11 +9906,11 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9906
9906
|
class: "g-tree-menu__item",
|
|
9907
9907
|
"data-tree-expandable": c.value ? "true" : void 0
|
|
9908
9908
|
}), {
|
|
9909
|
-
default: R(() => [c.value ? (G(), K("div",
|
|
9909
|
+
default: R(() => [c.value ? (G(), K("div", Wh, [J("span", {
|
|
9910
9910
|
class: "g-tree-menu__row-content",
|
|
9911
9911
|
"data-tree-primary": "",
|
|
9912
9912
|
onClick: b
|
|
9913
|
-
}, [J("span",
|
|
9913
|
+
}, [J("span", Gh, [H(e.$slots, "default")])]), J("button", {
|
|
9914
9914
|
type: "button",
|
|
9915
9915
|
class: "g-tree-menu__toggle-btn",
|
|
9916
9916
|
"aria-controls": I(o) + "-children",
|
|
@@ -9928,7 +9928,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9928
9928
|
"stroke-width": "2.5",
|
|
9929
9929
|
"stroke-linecap": "round",
|
|
9930
9930
|
"stroke-linejoin": "round"
|
|
9931
|
-
}, [...t[0] ||= [J("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8,
|
|
9931
|
+
}, [...t[0] ||= [J("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))], 8, Kh)])) : (G(), K("div", qh, [t[1] ||= J("span", { class: "g-tree-menu__spacer" }, null, -1), J("span", Jh, [H(e.$slots, "default")])])), c.value && f.value ? (G(), q(Uh, {
|
|
9932
9932
|
key: 2,
|
|
9933
9933
|
id: I(o) + "-children"
|
|
9934
9934
|
}, {
|
|
@@ -9938,11 +9938,11 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9938
9938
|
_: 3
|
|
9939
9939
|
}, 16, ["role", "data-tree-expandable"]));
|
|
9940
9940
|
}
|
|
9941
|
-
}), [["styles", [""]]]),
|
|
9941
|
+
}), [["styles", [""]]]), Xh = { class: "g-user-menu" }, Zh = [
|
|
9942
9942
|
"aria-label",
|
|
9943
9943
|
"aria-expanded",
|
|
9944
9944
|
"onClick"
|
|
9945
|
-
],
|
|
9945
|
+
], Qh = { class: "g-user-menu__popover" }, $h = { class: "g-user-menu__list" }, eg = /*#__PURE__*/ $(/* @__PURE__ */ B({
|
|
9946
9946
|
__name: "GUserMenu",
|
|
9947
9947
|
props: {
|
|
9948
9948
|
initials: { type: String },
|
|
@@ -9960,7 +9960,7 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9960
9960
|
let t = `${Or()}-email`, n = /* @__PURE__ */ F(!1), r = Ar("emailHeading");
|
|
9961
9961
|
qa()?.appContext?.components?.RouterLink;
|
|
9962
9962
|
let i = li();
|
|
9963
|
-
return (a, o) => (G(), K("div",
|
|
9963
|
+
return (a, o) => (G(), K("div", Xh, [Y(ku, {
|
|
9964
9964
|
modelValue: n.value,
|
|
9965
9965
|
"onUpdate:modelValue": o[0] ||= (e) => n.value = e,
|
|
9966
9966
|
minimal: ""
|
|
@@ -9972,8 +9972,8 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9972
9972
|
"aria-expanded": n.value,
|
|
9973
9973
|
"aria-haspopup": "menu",
|
|
9974
9974
|
onClick: t
|
|
9975
|
-
}, M(e.initials), 13,
|
|
9976
|
-
default: R(() => [J("div",
|
|
9975
|
+
}, M(e.initials), 13, Zh)]),
|
|
9976
|
+
default: R(() => [J("div", Qh, [J("h2", {
|
|
9977
9977
|
id: t,
|
|
9978
9978
|
ref_key: "emailHeading",
|
|
9979
9979
|
ref: r,
|
|
@@ -9982,60 +9982,60 @@ var em = { class: "g-table-outer-wrap" }, tm = {
|
|
|
9982
9982
|
}, M(e.email), 513), J("nav", {
|
|
9983
9983
|
class: "g-user-menu__nav",
|
|
9984
9984
|
"aria-labelledby": t
|
|
9985
|
-
}, [J("ul",
|
|
9985
|
+
}, [J("ul", $h, [(G(!0), K(W, null, V(i.default(), (e, t) => (G(), K("li", { key: t }, [(G(), q(ti(e)))]))), 128))])])])]),
|
|
9986
9986
|
_: 1
|
|
9987
9987
|
}, 8, ["modelValue"])]));
|
|
9988
9988
|
}
|
|
9989
|
-
}), [["styles", [""]]]),
|
|
9990
|
-
|
|
9991
|
-
var
|
|
9989
|
+
}), [["styles", [""]]]), tg = globalThis;
|
|
9990
|
+
tg.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ = !0;
|
|
9991
|
+
var ng = {
|
|
9992
9992
|
shadowRoot: !1,
|
|
9993
9993
|
configureApp(e) {
|
|
9994
|
-
let t = (
|
|
9995
|
-
|
|
9994
|
+
let t = (tg.__GRAD_VUE_WC_APP_ID__ ?? 0) + 1;
|
|
9995
|
+
tg.__GRAD_VUE_WC_APP_ID__ = t, e.config.idPrefix = `g-wc-${t}-`;
|
|
9996
9996
|
}
|
|
9997
|
-
},
|
|
9997
|
+
}, rg = [
|
|
9998
9998
|
["g-alert-dialog", Sl],
|
|
9999
|
-
["g-app-header",
|
|
9999
|
+
["g-app-header", Hu],
|
|
10000
10000
|
["g-button", gl],
|
|
10001
|
-
["g-checkbox-group",
|
|
10002
|
-
["g-clipboard",
|
|
10003
|
-
["g-currency-input",
|
|
10004
|
-
["g-date-input",
|
|
10005
|
-
["g-date-range-input",
|
|
10006
|
-
["g-detail-list",
|
|
10007
|
-
["g-detail-list-item",
|
|
10008
|
-
["g-email-input",
|
|
10009
|
-
["g-file-input",
|
|
10010
|
-
["g-form",
|
|
10001
|
+
["g-checkbox-group", ad],
|
|
10002
|
+
["g-clipboard", hd],
|
|
10003
|
+
["g-currency-input", Cd],
|
|
10004
|
+
["g-date-input", wd],
|
|
10005
|
+
["g-date-range-input", jd],
|
|
10006
|
+
["g-detail-list", Md],
|
|
10007
|
+
["g-detail-list-item", Id],
|
|
10008
|
+
["g-email-input", Ld],
|
|
10009
|
+
["g-file-input", Wd],
|
|
10010
|
+
["g-form", Kd],
|
|
10011
10011
|
["g-hamburger-menu", Pu],
|
|
10012
|
-
["g-history-scroller",
|
|
10013
|
-
["g-modal",
|
|
10014
|
-
["g-multi-select",
|
|
10015
|
-
["g-overlay",
|
|
10012
|
+
["g-history-scroller", Zd],
|
|
10013
|
+
["g-modal", rf],
|
|
10014
|
+
["g-multi-select", Sf],
|
|
10015
|
+
["g-overlay", wf],
|
|
10016
10016
|
["g-popover", ku],
|
|
10017
|
-
["g-tooltip",
|
|
10018
|
-
["g-progress",
|
|
10019
|
-
["g-search",
|
|
10020
|
-
["g-select",
|
|
10021
|
-
["g-select-button",
|
|
10022
|
-
["g-sidebar",
|
|
10023
|
-
["g-sidebar-menu",
|
|
10024
|
-
["g-submit-button",
|
|
10025
|
-
["g-table",
|
|
10026
|
-
["g-table-body",
|
|
10027
|
-
["g-term-selector",
|
|
10028
|
-
["g-term-selector-control",
|
|
10029
|
-
["g-text-input",
|
|
10030
|
-
["g-textarea",
|
|
10031
|
-
["g-three-way-toggle",
|
|
10032
|
-
["g-tree-menu",
|
|
10033
|
-
["g-tree-menu-list",
|
|
10034
|
-
["g-tree-menu-item",
|
|
10035
|
-
["g-user-menu",
|
|
10017
|
+
["g-tooltip", Tf],
|
|
10018
|
+
["g-progress", Af],
|
|
10019
|
+
["g-search", Bf],
|
|
10020
|
+
["g-select", Qf],
|
|
10021
|
+
["g-select-button", ap],
|
|
10022
|
+
["g-sidebar", cp],
|
|
10023
|
+
["g-sidebar-menu", fp],
|
|
10024
|
+
["g-submit-button", pp],
|
|
10025
|
+
["g-table", ch],
|
|
10026
|
+
["g-table-body", Op],
|
|
10027
|
+
["g-term-selector", gh],
|
|
10028
|
+
["g-term-selector-control", fh],
|
|
10029
|
+
["g-text-input", Sd],
|
|
10030
|
+
["g-textarea", Sh],
|
|
10031
|
+
["g-three-way-toggle", Lh],
|
|
10032
|
+
["g-tree-menu", Hh],
|
|
10033
|
+
["g-tree-menu-list", Uh],
|
|
10034
|
+
["g-tree-menu-item", Yh],
|
|
10035
|
+
["g-user-menu", eg]
|
|
10036
10036
|
];
|
|
10037
|
-
for (let [e, t] of
|
|
10038
|
-
let n = /* @__PURE__ */ ys(t,
|
|
10037
|
+
for (let [e, t] of rg) {
|
|
10038
|
+
let n = /* @__PURE__ */ ys(t, ng);
|
|
10039
10039
|
customElements.define(e, n);
|
|
10040
10040
|
}
|
|
10041
10041
|
//#endregion
|