@illinois-grad/grad-vue 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/custom-elements.json +16 -6
- package/dist/components/GSidebarMenu.vue.d.ts +4 -4
- package/dist/components/GTermSelector.vue.d.ts +5 -5
- package/dist/components/GTreeMenu.vue.d.ts +24 -6
- package/dist/components/tree-menu/GTreeMenuItem.vue.d.ts +6 -4
- package/dist/{grad-vue-DCHrrEXb.js → grad-vue-SX-RHHr3.js} +733 -676
- package/dist/grad-vue-SX-RHHr3.js.map +1 -0
- package/dist/grad-vue-elements.css +41 -1
- package/dist/grad-vue-elements.js +501 -450
- 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-DCHrrEXb.js.map +0 -1
|
@@ -4880,15 +4880,15 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /* @__PU
|
|
|
4880
4880
|
"type"
|
|
4881
4881
|
]));
|
|
4882
4882
|
}
|
|
4883
|
-
}),
|
|
4883
|
+
}), $ = (e, t) => {
|
|
4884
4884
|
let n = e.__vccOpts || e;
|
|
4885
4885
|
for (let [e, r] of t) n[e] = r;
|
|
4886
4886
|
return n;
|
|
4887
|
-
},
|
|
4887
|
+
}, ru = /* @__PURE__ */ $(nu, [["styles", [""]]]), iu = [
|
|
4888
4888
|
"id",
|
|
4889
4889
|
"aria-labelledby",
|
|
4890
4890
|
"aria-describedby"
|
|
4891
|
-
],
|
|
4891
|
+
], au = { class: "g-alertdialog-inner" }, ou = ["id"], su = ["id"], cu = { class: "g-alertdialog-actions" }, lu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
4892
4892
|
__name: "GAlertDialog",
|
|
4893
4893
|
props: {
|
|
4894
4894
|
label: {
|
|
@@ -4928,39 +4928,39 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /* @__PU
|
|
|
4928
4928
|
ref_key: "dialog",
|
|
4929
4929
|
ref: i,
|
|
4930
4930
|
style: de({ zIndex: P(u) })
|
|
4931
|
-
}, [J("div",
|
|
4931
|
+
}, [J("div", au, [
|
|
4932
4932
|
J("h2", {
|
|
4933
4933
|
id: "alertdialog-label-" + P(o),
|
|
4934
4934
|
class: "g-alertdialog-label"
|
|
4935
|
-
}, A(n.label), 9,
|
|
4935
|
+
}, A(n.label), 9, ou),
|
|
4936
4936
|
J("div", {
|
|
4937
4937
|
id: "alertdialog-description-" + P(o),
|
|
4938
4938
|
class: "g-alertdialog-content"
|
|
4939
|
-
}, [V(e.$slots, "default"
|
|
4940
|
-
J("div",
|
|
4939
|
+
}, [V(e.$slots, "default")], 8, su),
|
|
4940
|
+
J("div", cu, [Y(ru, {
|
|
4941
4941
|
outlined: "",
|
|
4942
4942
|
onClick: t[0] ||= (e) => r("cancel")
|
|
4943
4943
|
}, {
|
|
4944
4944
|
default: I(() => [...t[2] ||= [X("Cancel", -1)]]),
|
|
4945
4945
|
_: 1
|
|
4946
|
-
}), Y(
|
|
4946
|
+
}), Y(ru, {
|
|
4947
4947
|
theme: n.buttonColor,
|
|
4948
4948
|
onClick: t[1] ||= (e) => r("confirm")
|
|
4949
4949
|
}, {
|
|
4950
4950
|
default: I(() => [X(A(n.buttonText), 1)]),
|
|
4951
4951
|
_: 1
|
|
4952
4952
|
}, 8, ["theme"])])
|
|
4953
|
-
])], 12,
|
|
4953
|
+
])], 12, iu)]),
|
|
4954
4954
|
_: 3
|
|
4955
4955
|
})]));
|
|
4956
4956
|
}
|
|
4957
|
-
}), [["styles", ["
|
|
4957
|
+
}), [["styles", [""]]]), uu = { class: /* @__PURE__ */ k({ "g-app-header": !0 }) }, du = { class: "g-app-header__brand" }, fu = {
|
|
4958
4958
|
class: "g-app-header__brand-text",
|
|
4959
4959
|
href: "/"
|
|
4960
|
-
},
|
|
4960
|
+
}, pu = {
|
|
4961
4961
|
key: 0,
|
|
4962
4962
|
class: "g-app-header__block-i-container"
|
|
4963
|
-
},
|
|
4963
|
+
}, mu = { class: "g-app-header__title" }, hu = { class: "g-app-header__app-controls-wrap" }, gu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
4964
4964
|
__name: "GAppHeader",
|
|
4965
4965
|
props: {
|
|
4966
4966
|
illinois: {
|
|
@@ -4973,10 +4973,10 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /* @__PU
|
|
|
4973
4973
|
}
|
|
4974
4974
|
},
|
|
4975
4975
|
setup(e) {
|
|
4976
|
-
return (t, n) => (G(), K("header",
|
|
4976
|
+
return (t, n) => (G(), K("header", uu, [
|
|
4977
4977
|
n[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),
|
|
4978
|
-
J("div",
|
|
4979
|
-
e.illinois ? (G(), K("div",
|
|
4978
|
+
J("div", du, [V(t.$slots, "left", {}, () => [J("a", fu, A(e.brand), 1)])]),
|
|
4979
|
+
e.illinois ? (G(), K("div", pu, [...n[0] ||= [J("svg", {
|
|
4980
4980
|
class: "g-app-header__block-i",
|
|
4981
4981
|
role: "img",
|
|
4982
4982
|
width: "55",
|
|
@@ -4992,15 +4992,15 @@ var eu = { class: "g-btn--icon" }, tu = { class: "g-btn--label" }, nu = /* @__PU
|
|
|
4992
4992
|
class: "g-app-header__block-i-fill",
|
|
4993
4993
|
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"
|
|
4994
4994
|
})
|
|
4995
|
-
], -1)]])) : V(t.$slots, "icon", { key: 1 }
|
|
4996
|
-
J("div",
|
|
4997
|
-
J("div",
|
|
4995
|
+
], -1)]])) : V(t.$slots, "icon", { key: 1 }),
|
|
4996
|
+
J("div", mu, [V(t.$slots, "title")]),
|
|
4997
|
+
J("div", hu, [V(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
|
|
4998
4998
|
]));
|
|
4999
4999
|
}
|
|
5000
|
-
}), [["styles", ["
|
|
5000
|
+
}), [["styles", [""]]]);
|
|
5001
5001
|
//#endregion
|
|
5002
5002
|
//#region src/compose/useForm.ts
|
|
5003
|
-
function
|
|
5003
|
+
function _u() {
|
|
5004
5004
|
let e = /* @__PURE__ */ Ut({}), t = /* @__PURE__ */ N(!1), n = Q(() => {
|
|
5005
5005
|
let t = {};
|
|
5006
5006
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -5042,18 +5042,18 @@ function vu() {
|
|
|
5042
5042
|
}
|
|
5043
5043
|
//#endregion
|
|
5044
5044
|
//#region src/compose/useWebComponentForm.ts
|
|
5045
|
-
function
|
|
5045
|
+
function vu() {
|
|
5046
5046
|
let e = globalThis;
|
|
5047
5047
|
return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
|
|
5048
5048
|
}
|
|
5049
|
-
function
|
|
5050
|
-
let t =
|
|
5051
|
-
return t.has(n) || t.set(n,
|
|
5049
|
+
function yu(e = "default") {
|
|
5050
|
+
let t = vu(), n = e || "default";
|
|
5051
|
+
return t.has(n) || t.set(n, _u()), t.get(n);
|
|
5052
5052
|
}
|
|
5053
5053
|
//#endregion
|
|
5054
5054
|
//#region src/compose/useFormField.ts
|
|
5055
|
-
function
|
|
5056
|
-
let t = di(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, r = e.formKey ?? n ?? "default", i = qn("form", null) ?? (Ql() ?
|
|
5055
|
+
function bu(e) {
|
|
5056
|
+
let t = di(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, r = e.formKey ?? n ?? "default", i = qn("form", null) ?? (Ql() ? yu(r) : null), a = Q(() => {
|
|
5057
5057
|
let t = [];
|
|
5058
5058
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
5059
5059
|
}), o = Q(() => a.value.length > 0), s = e.name;
|
|
@@ -5072,7 +5072,7 @@ function xu(e) {
|
|
|
5072
5072
|
}
|
|
5073
5073
|
//#endregion
|
|
5074
5074
|
//#region src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
|
|
5075
|
-
var
|
|
5075
|
+
var xu = ["id"], Su = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5076
5076
|
__name: "GFormErrorMessages",
|
|
5077
5077
|
props: {
|
|
5078
5078
|
errors: { type: Array },
|
|
@@ -5094,23 +5094,23 @@ var Su = ["id"], Cu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
|
5094
5094
|
}, [J("path", {
|
|
5095
5095
|
fill: "currentColor",
|
|
5096
5096
|
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"
|
|
5097
|
-
})], -1), X(" " + A(e), 1)]))), 128))], 8,
|
|
5097
|
+
})], -1), X(" " + A(e), 1)]))), 128))], 8, xu)) : Z("", !0);
|
|
5098
5098
|
}
|
|
5099
|
-
}), [["styles", ["
|
|
5099
|
+
}), [["styles", [""]]]), Cu = {
|
|
5100
5100
|
key: 0,
|
|
5101
5101
|
class: "g-checkbox-group__legend"
|
|
5102
|
-
},
|
|
5102
|
+
}, wu = {
|
|
5103
5103
|
key: 0,
|
|
5104
5104
|
class: "g-checkbox-group__required",
|
|
5105
5105
|
"aria-hidden": "true"
|
|
5106
|
-
},
|
|
5106
|
+
}, Tu = {
|
|
5107
5107
|
key: 1,
|
|
5108
5108
|
class: "g-checkbox-group__label"
|
|
5109
|
-
},
|
|
5109
|
+
}, Eu = {
|
|
5110
5110
|
key: 0,
|
|
5111
5111
|
class: "g-checkbox-group__required",
|
|
5112
5112
|
"aria-hidden": "true"
|
|
5113
|
-
},
|
|
5113
|
+
}, Du = ["id"], Ou = { class: "g-checkbox-group__options" }, ku = ["for"], Au = [
|
|
5114
5114
|
"id",
|
|
5115
5115
|
"type",
|
|
5116
5116
|
"name",
|
|
@@ -5119,7 +5119,7 @@ var Su = ["id"], Cu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
|
5119
5119
|
"disabled",
|
|
5120
5120
|
"required",
|
|
5121
5121
|
"onChange"
|
|
5122
|
-
],
|
|
5122
|
+
], ju = { class: "g-checkbox-group__label-text" }, Mu = ["id"], Nu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5123
5123
|
__name: "GCheckboxGroup",
|
|
5124
5124
|
props: /* @__PURE__ */ H({
|
|
5125
5125
|
label: {
|
|
@@ -5157,7 +5157,7 @@ var Su = ["id"], Cu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
|
5157
5157
|
}),
|
|
5158
5158
|
emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
|
|
5159
5159
|
setup(e, { emit: t }) {
|
|
5160
|
-
let n = e, r = U(e, "modelValue"), i = z(), { displayErrors: a, hasErrors: o } =
|
|
5160
|
+
let n = e, r = U(e, "modelValue"), i = z(), { displayErrors: a, hasErrors: o } = bu({
|
|
5161
5161
|
name: n.name,
|
|
5162
5162
|
value: r,
|
|
5163
5163
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -5196,13 +5196,13 @@ var Su = ["id"], Cu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
|
5196
5196
|
}
|
|
5197
5197
|
return (t, n) => (G(), q(ni(p.value ? "fieldset" : "div"), Va({ class: ["g-checkbox-group", { "g-checkbox-group--error": P(o) }] }, m.value), {
|
|
5198
5198
|
default: I(() => [
|
|
5199
|
-
p.value && e.label ? (G(), K("legend",
|
|
5199
|
+
p.value && e.label ? (G(), K("legend", Cu, [X(A(e.label), 1), e.required ? (G(), K("span", wu, "\xA0*")) : Z("", !0)])) : !p.value && e.label ? (G(), K("div", Tu, [X(A(e.label), 1), e.required ? (G(), K("span", Eu, "\xA0*")) : Z("", !0)])) : Z("", !0),
|
|
5200
5200
|
e.instructions ? (G(), K("div", {
|
|
5201
5201
|
key: 2,
|
|
5202
5202
|
id: f.value,
|
|
5203
5203
|
class: "g-checkbox-group__instructions"
|
|
5204
|
-
}, A(e.instructions), 9,
|
|
5205
|
-
J("div",
|
|
5204
|
+
}, A(e.instructions), 9, Du)) : Z("", !0),
|
|
5205
|
+
J("div", Ou, [(G(!0), K(W, null, B(e.options, (t, n) => (G(), K("div", {
|
|
5206
5206
|
key: t.value,
|
|
5207
5207
|
class: k(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": t.disabled }])
|
|
5208
5208
|
}, [J("label", {
|
|
@@ -5217,12 +5217,12 @@ var Su = ["id"], Cu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
|
5217
5217
|
disabled: t.disabled,
|
|
5218
5218
|
required: e.required && (e.radio && n === 0 || !e.radio && e.options.length === 1),
|
|
5219
5219
|
class: "g-checkbox-group__input"
|
|
5220
|
-
}, { ref_for: !0 }, _(t, n), { onChange: (e) => l(t.value, e.target.checked) }), null, 16,
|
|
5220
|
+
}, { ref_for: !0 }, _(t, n), { onChange: (e) => l(t.value, e.target.checked) }), null, 16, Au), J("span", ju, A(t.label), 1)], 10, ku), t.hint ? (G(), K("div", {
|
|
5221
5221
|
key: 0,
|
|
5222
5222
|
id: h(n),
|
|
5223
5223
|
class: "g-checkbox-group__hint"
|
|
5224
|
-
}, A(t.hint), 9,
|
|
5225
|
-
Y(
|
|
5224
|
+
}, A(t.hint), 9, Mu)) : Z("", !0)], 2))), 128))]),
|
|
5225
|
+
Y(Su, {
|
|
5226
5226
|
errors: P(a),
|
|
5227
5227
|
id: d.value
|
|
5228
5228
|
}, null, 8, ["errors", "id"])
|
|
@@ -5230,10 +5230,10 @@ var Su = ["id"], Cu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
|
5230
5230
|
_: 1
|
|
5231
5231
|
}, 16, ["class"]));
|
|
5232
5232
|
}
|
|
5233
|
-
}), [["styles", ["
|
|
5233
|
+
}), [["styles", [""]]]);
|
|
5234
5234
|
//#endregion
|
|
5235
5235
|
//#region src/compose/popoverPosition.ts
|
|
5236
|
-
function
|
|
5236
|
+
function Pu(e, t, n, r) {
|
|
5237
5237
|
let i = r?.gap ?? 8, a = r?.margin ?? 16, o = r?.preferAbove ?? !1, s = !1, c = !1, l;
|
|
5238
5238
|
o ? e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i <= n.bottom - a ? l = e.bottom + i : (l = n.top + a, c = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i > n.top + a ? (l = e.top - t.height - i, s = !0) : e.bottom + t.height + i > n.bottom - a && e.top - t.height - i <= n.top + a ? (l = n.top + a, c = !0) : l = e.bottom + i;
|
|
5239
5239
|
let u = e.left + (e.width - t.width) / 2;
|
|
@@ -5249,51 +5249,51 @@ function Fu(e, t, n, r) {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
//#endregion
|
|
5251
5251
|
//#region src/compose/tooltipDom.ts
|
|
5252
|
-
var
|
|
5253
|
-
function
|
|
5254
|
-
return `${e}-${++
|
|
5252
|
+
var Fu = 1;
|
|
5253
|
+
function Iu(e = "v-gtooltip") {
|
|
5254
|
+
return `${e}-${++Fu}`;
|
|
5255
5255
|
}
|
|
5256
|
-
function
|
|
5256
|
+
function Lu(e, t = "v-gtooltip") {
|
|
5257
5257
|
let n = e.getAttribute("aria-describedby");
|
|
5258
5258
|
if (n) return n;
|
|
5259
|
-
let r =
|
|
5259
|
+
let r = Iu(t);
|
|
5260
5260
|
return e.setAttribute("aria-describedby", r), r;
|
|
5261
5261
|
}
|
|
5262
|
-
function
|
|
5262
|
+
function Ru(e, t) {
|
|
5263
5263
|
let n = document.createElement("div");
|
|
5264
5264
|
return n.className = "v-gtooltip", n.textContent = e, n.setAttribute("role", "tooltip"), n.setAttribute("id", t), n;
|
|
5265
5265
|
}
|
|
5266
|
-
function
|
|
5266
|
+
function zu(e) {
|
|
5267
5267
|
(document.getElementById("modal-root") ?? document.body).appendChild(e);
|
|
5268
5268
|
}
|
|
5269
|
-
function
|
|
5270
|
-
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } =
|
|
5269
|
+
function Bu(e, t) {
|
|
5270
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), { top: i, left: a, placedAbove: o } = Pu(n, r, new DOMRect(0, 0, window.innerWidth, window.innerHeight), {
|
|
5271
5271
|
gap: 8,
|
|
5272
5272
|
margin: 8,
|
|
5273
5273
|
preferAbove: !0
|
|
5274
5274
|
}), s = (n.left + n.width / 2 - a) / r.width * 100;
|
|
5275
5275
|
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 = `${qs()}`, t.style.opacity = "1";
|
|
5276
5276
|
}
|
|
5277
|
-
function
|
|
5277
|
+
function Vu(e) {
|
|
5278
5278
|
e.style.opacity = "0";
|
|
5279
5279
|
}
|
|
5280
5280
|
//#endregion
|
|
5281
5281
|
//#region src/directives/v-gtooltip.ts
|
|
5282
|
-
var
|
|
5282
|
+
var Hu = {
|
|
5283
5283
|
mounted(e, t) {
|
|
5284
|
-
let n = /* @__PURE__ */ N(null), r = /* @__PURE__ */ N(!1), i = /* @__PURE__ */ N(!1), a = /* @__PURE__ */ N(t.value), o = null, s = !1, c =
|
|
5285
|
-
n.value || (n.value =
|
|
5286
|
-
n.value && (r.value || i.value) &&
|
|
5284
|
+
let n = /* @__PURE__ */ N(null), r = /* @__PURE__ */ N(!1), i = /* @__PURE__ */ N(!1), a = /* @__PURE__ */ N(t.value), o = null, s = !1, c = Lu(e), l = () => {
|
|
5285
|
+
n.value || (n.value = Ru(a.value, c), zu(n.value), o = new ResizeObserver(() => {
|
|
5286
|
+
n.value && (r.value || i.value) && Bu(e, n.value);
|
|
5287
5287
|
}), o.observe(n.value));
|
|
5288
5288
|
};
|
|
5289
5289
|
Zn(() => {
|
|
5290
5290
|
n.value && (n.value.textContent = a.value);
|
|
5291
5291
|
});
|
|
5292
5292
|
let u = () => {
|
|
5293
|
-
n.value && (r.value || i.value) &&
|
|
5293
|
+
n.value && (r.value || i.value) && Bu(e, n.value);
|
|
5294
5294
|
};
|
|
5295
5295
|
Zn(() => {
|
|
5296
|
-
r.value || i.value ? (l(), n.value &&
|
|
5296
|
+
r.value || i.value ? (l(), n.value && Bu(e, n.value), s ||= (window.addEventListener("scroll", u, { capture: !0 }), !0)) : (s &&= (window.removeEventListener("scroll", u, { capture: !0 }), !1), n.value && (Vu(n.value), setTimeout(() => {
|
|
5297
5297
|
e.dispatchEvent(new CustomEvent("tooltip-hide"));
|
|
5298
5298
|
}, 150)));
|
|
5299
5299
|
});
|
|
@@ -5331,7 +5331,7 @@ var Uu = {
|
|
|
5331
5331
|
let t = e._v_gtooltip;
|
|
5332
5332
|
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");
|
|
5333
5333
|
}
|
|
5334
|
-
},
|
|
5334
|
+
}, Uu = { class: "g-clipboard-text" }, Wu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5335
5335
|
__name: "GClipboard",
|
|
5336
5336
|
props: {
|
|
5337
5337
|
text: { type: String },
|
|
@@ -5339,12 +5339,12 @@ var Uu = {
|
|
|
5339
5339
|
copyLabel: { type: String }
|
|
5340
5340
|
},
|
|
5341
5341
|
setup(e) {
|
|
5342
|
-
let t = e, n =
|
|
5342
|
+
let t = e, n = Hu, { text: r, copy: i, copied: a, isSupported: o } = Ac({ source: t.text }), s = /* @__PURE__ */ N(t.copyLabel ?? "Copy to clipboard"), c = () => {
|
|
5343
5343
|
o.value ? (i(), s.value = "Copied") : s.value = "Copy not supported";
|
|
5344
5344
|
}, l = () => {
|
|
5345
5345
|
s.value = t.copyLabel ?? "Copy to clipboard";
|
|
5346
5346
|
};
|
|
5347
|
-
return (r, i) => (G(), K("div",
|
|
5347
|
+
return (r, i) => (G(), K("div", Uu, [e.hideText ? Z("", !0) : (G(), K(W, { key: 0 }, [X(A(t.text), 1)], 64)), Wn((G(), K("button", {
|
|
5348
5348
|
type: "button",
|
|
5349
5349
|
"aria-label": "Copy",
|
|
5350
5350
|
onClick: c,
|
|
@@ -5361,23 +5361,23 @@ var Uu = {
|
|
|
5361
5361
|
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"
|
|
5362
5362
|
})], -1)]], 32)), [[P(n), s.value]])]));
|
|
5363
5363
|
}
|
|
5364
|
-
}), [["styles", ["
|
|
5364
|
+
}), [["styles", [""]]]), Gu = ["for"], Ku = {
|
|
5365
5365
|
key: 0,
|
|
5366
5366
|
class: "g-text-input-required",
|
|
5367
5367
|
"aria-hidden": "true"
|
|
5368
|
-
},
|
|
5368
|
+
}, qu = ["id"], Ju = {
|
|
5369
5369
|
key: 0,
|
|
5370
5370
|
class: "g-text-input-prefix"
|
|
5371
|
-
},
|
|
5371
|
+
}, Yu = [
|
|
5372
5372
|
"value",
|
|
5373
5373
|
"placeholder",
|
|
5374
5374
|
"disabled",
|
|
5375
5375
|
"required",
|
|
5376
5376
|
"aria-invalid"
|
|
5377
|
-
],
|
|
5377
|
+
], Xu = {
|
|
5378
5378
|
key: 1,
|
|
5379
5379
|
class: "g-text-input-suffix"
|
|
5380
|
-
},
|
|
5380
|
+
}, Zu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5381
5381
|
inheritAttrs: !1,
|
|
5382
5382
|
__name: "GTextInput",
|
|
5383
5383
|
props: /* @__PURE__ */ H({
|
|
@@ -5431,7 +5431,7 @@ var Uu = {
|
|
|
5431
5431
|
}),
|
|
5432
5432
|
emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
|
|
5433
5433
|
setup(e, { emit: t }) {
|
|
5434
|
-
let n = e, r = U(e, "modelValue"), i = z(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = $l({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } =
|
|
5434
|
+
let n = e, r = U(e, "modelValue"), i = z(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = $l({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } = bu({
|
|
5435
5435
|
name: n.name,
|
|
5436
5436
|
value: r,
|
|
5437
5437
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -5468,14 +5468,14 @@ var Uu = {
|
|
|
5468
5468
|
key: 0,
|
|
5469
5469
|
for: c.value,
|
|
5470
5470
|
class: "g-text-input-label"
|
|
5471
|
-
}, [X(A(n.label), 1), n.required ? (G(), K("span",
|
|
5471
|
+
}, [X(A(n.label), 1), n.required ? (G(), K("span", Ku, " *")) : Z("", !0)], 8, Gu)) : Z("", !0),
|
|
5472
5472
|
t.$slots.instructions || e.instructions ? (G(), K("div", {
|
|
5473
5473
|
key: 1,
|
|
5474
5474
|
id: "instructions-" + P(i),
|
|
5475
5475
|
class: "g-text-input-instructions"
|
|
5476
|
-
}, [V(t.$slots, "instructions", {}, () => [X(A(e.instructions), 1)]
|
|
5476
|
+
}, [V(t.$slots, "instructions", {}, () => [X(A(e.instructions), 1)])], 8, qu)) : Z("", !0),
|
|
5477
5477
|
J("div", { class: k([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
|
|
5478
|
-
n.prefix ? (G(), K("span",
|
|
5478
|
+
n.prefix ? (G(), K("span", Ju, A(n.prefix), 1)) : Z("", !0),
|
|
5479
5479
|
J("input", Va({
|
|
5480
5480
|
value: r.value,
|
|
5481
5481
|
placeholder: n.placeholder,
|
|
@@ -5492,16 +5492,16 @@ var Uu = {
|
|
|
5492
5492
|
id: c.value,
|
|
5493
5493
|
"aria-describedby": t.$slots.instructions || e.instructions ? "instructions-" + P(i) : void 0,
|
|
5494
5494
|
"aria-errormessage": P(u) ? "error-message-" + P(i) : void 0
|
|
5495
|
-
}, { "aria-invalid": P(u) ? "true" : "false" }), null, 16,
|
|
5496
|
-
n.suffix ? (G(), K("span",
|
|
5495
|
+
}, { "aria-invalid": P(u) ? "true" : "false" }), null, 16, Yu),
|
|
5496
|
+
n.suffix ? (G(), K("span", Xu, A(n.suffix), 1)) : Z("", !0)
|
|
5497
5497
|
], 2),
|
|
5498
|
-
Y(
|
|
5498
|
+
Y(Su, {
|
|
5499
5499
|
errors: P(l),
|
|
5500
5500
|
id: "error-message-" + P(i)
|
|
5501
5501
|
}, null, 8, ["errors", "id"])
|
|
5502
5502
|
], 2));
|
|
5503
5503
|
}
|
|
5504
|
-
}), [["styles", ["
|
|
5504
|
+
}), [["styles", [""]]]), Qu = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5505
5505
|
__name: "GCurrencyInput",
|
|
5506
5506
|
props: /* @__PURE__ */ H({
|
|
5507
5507
|
label: {
|
|
@@ -5543,7 +5543,7 @@ var Uu = {
|
|
|
5543
5543
|
emits: ["update:modelValue"],
|
|
5544
5544
|
setup(e) {
|
|
5545
5545
|
let t = e, n = U(e, "modelValue");
|
|
5546
|
-
return (e, r) => (G(), q(
|
|
5546
|
+
return (e, r) => (G(), q(Zu, Va({
|
|
5547
5547
|
modelValue: n.value,
|
|
5548
5548
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
5549
5549
|
name: t.name,
|
|
@@ -5570,7 +5570,7 @@ var Uu = {
|
|
|
5570
5570
|
"form-key"
|
|
5571
5571
|
]));
|
|
5572
5572
|
}
|
|
5573
|
-
}), [["styles", [""]]
|
|
5573
|
+
}), [["styles", [""]]]), $u = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5574
5574
|
__name: "GDateInput",
|
|
5575
5575
|
props: /* @__PURE__ */ H({
|
|
5576
5576
|
label: {
|
|
@@ -5612,7 +5612,7 @@ var Uu = {
|
|
|
5612
5612
|
emits: ["update:modelValue"],
|
|
5613
5613
|
setup(e) {
|
|
5614
5614
|
let t = e, n = U(e, "modelValue");
|
|
5615
|
-
return (e, r) => (G(), q(
|
|
5615
|
+
return (e, r) => (G(), q(Zu, Va({
|
|
5616
5616
|
modelValue: n.value,
|
|
5617
5617
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
5618
5618
|
name: t.name,
|
|
@@ -5636,21 +5636,21 @@ var Uu = {
|
|
|
5636
5636
|
"form-key"
|
|
5637
5637
|
]));
|
|
5638
5638
|
}
|
|
5639
|
-
}), [["styles", [""]]
|
|
5639
|
+
}), [["styles", [""]]]), ed = { class: "g-date-range-input" }, td = {
|
|
5640
5640
|
key: 0,
|
|
5641
5641
|
class: "g-date-range-input__label"
|
|
5642
|
-
},
|
|
5642
|
+
}, nd = {
|
|
5643
5643
|
key: 0,
|
|
5644
5644
|
class: "g-date-range-input__required",
|
|
5645
5645
|
"aria-hidden": "true"
|
|
5646
|
-
},
|
|
5646
|
+
}, rd = {
|
|
5647
5647
|
key: 1,
|
|
5648
5648
|
class: "g-date-range-input__instructions"
|
|
5649
|
-
},
|
|
5649
|
+
}, id = { class: "g-date-range-input__fields" }, ad = {
|
|
5650
5650
|
key: 2,
|
|
5651
5651
|
class: "g-date-range-input__errors",
|
|
5652
5652
|
role: "alert"
|
|
5653
|
-
},
|
|
5653
|
+
}, od = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5654
5654
|
__name: "GDateRangeInput",
|
|
5655
5655
|
props: /* @__PURE__ */ H({
|
|
5656
5656
|
label: {
|
|
@@ -5698,7 +5698,7 @@ var Uu = {
|
|
|
5698
5698
|
}),
|
|
5699
5699
|
emits: ["update:modelValue"],
|
|
5700
5700
|
setup(e) {
|
|
5701
|
-
let t = e, n = U(e, "modelValue"), r = /* @__PURE__ */ N(n.value.start || null), i = /* @__PURE__ */ N(n.value.end || null), { displayErrors: a } =
|
|
5701
|
+
let t = e, n = U(e, "modelValue"), r = /* @__PURE__ */ N(n.value.start || null), i = /* @__PURE__ */ N(n.value.end || null), { displayErrors: a } = bu({
|
|
5702
5702
|
name: t.name,
|
|
5703
5703
|
value: n,
|
|
5704
5704
|
errors: /* @__PURE__ */ fn(t, "errors"),
|
|
@@ -5711,10 +5711,10 @@ var Uu = {
|
|
|
5711
5711
|
};
|
|
5712
5712
|
}), L(n, (e) => {
|
|
5713
5713
|
e.start !== r.value && (r.value = e.start), e.end !== i.value && (i.value = e.end);
|
|
5714
|
-
}, { deep: !0 }), (e, n) => (G(), K("div",
|
|
5715
|
-
t.label ? (G(), K("div",
|
|
5716
|
-
t.instructions ? (G(), K("div",
|
|
5717
|
-
J("div",
|
|
5714
|
+
}, { deep: !0 }), (e, n) => (G(), K("div", ed, [
|
|
5715
|
+
t.label ? (G(), K("div", td, [X(A(t.label), 1), t.required ? (G(), K("span", nd, " *")) : Z("", !0)])) : Z("", !0),
|
|
5716
|
+
t.instructions ? (G(), K("div", rd, A(t.instructions), 1)) : Z("", !0),
|
|
5717
|
+
J("div", id, [Y($u, {
|
|
5718
5718
|
modelValue: r.value,
|
|
5719
5719
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
5720
5720
|
label: t.startLabel,
|
|
@@ -5726,7 +5726,7 @@ var Uu = {
|
|
|
5726
5726
|
"label",
|
|
5727
5727
|
"disabled",
|
|
5728
5728
|
"required"
|
|
5729
|
-
]), Y(
|
|
5729
|
+
]), Y($u, {
|
|
5730
5730
|
modelValue: i.value,
|
|
5731
5731
|
"onUpdate:modelValue": n[1] ||= (e) => i.value = e,
|
|
5732
5732
|
label: t.endLabel,
|
|
@@ -5739,13 +5739,13 @@ var Uu = {
|
|
|
5739
5739
|
"disabled",
|
|
5740
5740
|
"required"
|
|
5741
5741
|
])]),
|
|
5742
|
-
P(a).length > 0 ? (G(), K("div",
|
|
5742
|
+
P(a).length > 0 ? (G(), K("div", ad, [(G(!0), K(W, null, B(P(a), (e, t) => (G(), K("div", {
|
|
5743
5743
|
key: t,
|
|
5744
5744
|
class: "g-date-range-input__error"
|
|
5745
5745
|
}, A(e), 1))), 128))])) : Z("", !0)
|
|
5746
5746
|
]));
|
|
5747
5747
|
}
|
|
5748
|
-
}), [["styles", ["
|
|
5748
|
+
}), [["styles", [""]]]), sd = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5749
5749
|
__name: "GDetailList",
|
|
5750
5750
|
props: { variant: {
|
|
5751
5751
|
default: "grid",
|
|
@@ -5753,15 +5753,15 @@ var Uu = {
|
|
|
5753
5753
|
} },
|
|
5754
5754
|
setup(e) {
|
|
5755
5755
|
let t = e;
|
|
5756
|
-
return (e, n) => (G(), K("dl", { class: k(["g-detail-list", `g-detail-list--${t.variant}`]) }, [V(e.$slots, "default"
|
|
5756
|
+
return (e, n) => (G(), K("dl", { class: k(["g-detail-list", `g-detail-list--${t.variant}`]) }, [V(e.$slots, "default")], 2));
|
|
5757
5757
|
}
|
|
5758
|
-
}), [["styles", ["
|
|
5758
|
+
}), [["styles", [""]]]), cd = { class: "g-detail-list-item" }, ld = { class: "g-detail-list-item__label" }, ud = { class: "g-detail-list-item__value" }, dd = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5759
5759
|
__name: "GDetailListItem",
|
|
5760
5760
|
props: { label: { type: String } },
|
|
5761
5761
|
setup(e) {
|
|
5762
|
-
return (t, n) => (G(), K("div",
|
|
5762
|
+
return (t, n) => (G(), K("div", cd, [J("dt", ld, [V(t.$slots, "label", {}, () => [X(A(e.label), 1)])]), J("dd", ud, [V(t.$slots, "default")])]));
|
|
5763
5763
|
}
|
|
5764
|
-
}), [["styles", ["
|
|
5764
|
+
}), [["styles", [""]]]), fd = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5765
5765
|
__name: "GEmailInput",
|
|
5766
5766
|
props: /* @__PURE__ */ H({
|
|
5767
5767
|
label: {
|
|
@@ -5799,7 +5799,7 @@ var Uu = {
|
|
|
5799
5799
|
emits: ["update:modelValue"],
|
|
5800
5800
|
setup(e) {
|
|
5801
5801
|
let t = U(e, "modelValue");
|
|
5802
|
-
return (n, r) => (G(), q(
|
|
5802
|
+
return (n, r) => (G(), q(Zu, Va({
|
|
5803
5803
|
modelValue: t.value,
|
|
5804
5804
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
5805
5805
|
name: e.name,
|
|
@@ -5821,13 +5821,13 @@ var Uu = {
|
|
|
5821
5821
|
"instructions"
|
|
5822
5822
|
]));
|
|
5823
5823
|
}
|
|
5824
|
-
}), [["styles", [""]]
|
|
5824
|
+
}), [["styles", [""]]]), pd = ["for"], md = {
|
|
5825
5825
|
key: 0,
|
|
5826
5826
|
class: "g-file-input-required"
|
|
5827
|
-
},
|
|
5827
|
+
}, hd = {
|
|
5828
5828
|
key: 0,
|
|
5829
5829
|
class: "g-file-input-box-header"
|
|
5830
|
-
},
|
|
5830
|
+
}, gd = ["id"], _d = [
|
|
5831
5831
|
"id",
|
|
5832
5832
|
"disabled",
|
|
5833
5833
|
"required",
|
|
@@ -5836,11 +5836,11 @@ var Uu = {
|
|
|
5836
5836
|
"aria-invalid",
|
|
5837
5837
|
"aria-describedby",
|
|
5838
5838
|
"aria-errormessage"
|
|
5839
|
-
],
|
|
5839
|
+
], vd = {
|
|
5840
5840
|
key: 1,
|
|
5841
5841
|
class: "g-file-input-pills",
|
|
5842
5842
|
"aria-label": "Selected files"
|
|
5843
|
-
},
|
|
5843
|
+
}, yd = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5844
5844
|
inheritAttrs: !1,
|
|
5845
5845
|
__name: "GFileInput",
|
|
5846
5846
|
props: /* @__PURE__ */ H({
|
|
@@ -5876,7 +5876,7 @@ var Uu = {
|
|
|
5876
5876
|
}),
|
|
5877
5877
|
emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
|
|
5878
5878
|
setup(e, { emit: t }) {
|
|
5879
|
-
let n = e, r = U(e, "modelValue"), i = z(), { displayErrors: a } =
|
|
5879
|
+
let n = e, r = U(e, "modelValue"), i = z(), { displayErrors: a } = bu({
|
|
5880
5880
|
name: n.name,
|
|
5881
5881
|
value: r,
|
|
5882
5882
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -5903,12 +5903,12 @@ var Uu = {
|
|
|
5903
5903
|
key: 0,
|
|
5904
5904
|
for: P(i),
|
|
5905
5905
|
class: "g-file-input-label"
|
|
5906
|
-
}, [X(A(e.label) + " ", 1), e.required ? (G(), K("span",
|
|
5906
|
+
}, [X(A(e.label) + " ", 1), e.required ? (G(), K("span", md, "*")) : Z("", !0)], 8, pd)) : Z("", !0),
|
|
5907
5907
|
J("div", { class: k(["g-file-input-box", { "g-file-input-box--disabled": e.disabled }]) }, [
|
|
5908
|
-
e.instructions ? (G(), K("div",
|
|
5908
|
+
e.instructions ? (G(), K("div", hd, [J("span", {
|
|
5909
5909
|
id: "instructions-" + P(i),
|
|
5910
5910
|
class: "g-file-input-instructions"
|
|
5911
|
-
}, A(e.instructions), 9,
|
|
5911
|
+
}, A(e.instructions), 9, gd)])) : Z("", !0),
|
|
5912
5912
|
J("input", {
|
|
5913
5913
|
id: P(i),
|
|
5914
5914
|
type: "file",
|
|
@@ -5921,8 +5921,8 @@ var Uu = {
|
|
|
5921
5921
|
"aria-describedby": e.instructions ? "instructions-" + P(i) : void 0,
|
|
5922
5922
|
"aria-errormessage": d.value ? "error-message-" + P(i) : void 0,
|
|
5923
5923
|
onChange: l
|
|
5924
|
-
}, null, 40,
|
|
5925
|
-
e.multiple && f.value.length > 0 ? (G(), K("ul",
|
|
5924
|
+
}, null, 40, _d),
|
|
5925
|
+
e.multiple && f.value.length > 0 ? (G(), K("ul", vd, [(G(!0), K(W, null, B(f.value, (e) => (G(), K("li", {
|
|
5926
5926
|
key: e,
|
|
5927
5927
|
class: "g-file-input-pill"
|
|
5928
5928
|
}, [n[0] ||= J("svg", {
|
|
@@ -5932,13 +5932,13 @@ var Uu = {
|
|
|
5932
5932
|
viewBox: "0 0 640 640"
|
|
5933
5933
|
}, [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(" " + A(e), 1)]))), 128))])) : Z("", !0)
|
|
5934
5934
|
], 2),
|
|
5935
|
-
Y(
|
|
5935
|
+
Y(Su, {
|
|
5936
5936
|
errors: u.value,
|
|
5937
5937
|
id: "error-message-" + P(i)
|
|
5938
5938
|
}, null, 8, ["errors", "id"])
|
|
5939
5939
|
], 2));
|
|
5940
5940
|
}
|
|
5941
|
-
}), [["styles", ["
|
|
5941
|
+
}), [["styles", [""]]]), bd = ["action", "method"], xd = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
5942
5942
|
__name: "GForm",
|
|
5943
5943
|
props: /* @__PURE__ */ H({
|
|
5944
5944
|
action: {
|
|
@@ -5959,7 +5959,7 @@ var Uu = {
|
|
|
5959
5959
|
}),
|
|
5960
5960
|
emits: /* @__PURE__ */ H(["submit"], ["update:modelValue"]),
|
|
5961
5961
|
setup(e, { emit: t }) {
|
|
5962
|
-
let n = e, r = U(e, "modelValue"), i = t, a = qn("form", null), o = a ?? (Ql() ?
|
|
5962
|
+
let n = e, r = U(e, "modelValue"), i = t, a = qn("form", null), o = a ?? (Ql() ? yu(n.formKey) : _u());
|
|
5963
5963
|
a || Kn("form", o), L(() => o.values.value, (e) => {
|
|
5964
5964
|
r.value = { ...e };
|
|
5965
5965
|
}, { deep: !0 }), L(() => r.value, (e) => {
|
|
@@ -5987,22 +5987,22 @@ var Uu = {
|
|
|
5987
5987
|
hasErrors: P(o).hasErrors.value,
|
|
5988
5988
|
values: P(o).values.value,
|
|
5989
5989
|
errors: P(o).errors.value
|
|
5990
|
-
}
|
|
5990
|
+
})], 40, bd));
|
|
5991
5991
|
}
|
|
5992
|
-
}), [["styles", ["
|
|
5992
|
+
}), [["styles", [""]]]);
|
|
5993
5993
|
//#endregion
|
|
5994
5994
|
//#region src/compose/useWebComponentSidebar.ts
|
|
5995
|
-
function
|
|
5995
|
+
function Sd(e) {
|
|
5996
5996
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
5997
5997
|
}
|
|
5998
|
-
function
|
|
5998
|
+
function Cd() {
|
|
5999
5999
|
let e = globalThis;
|
|
6000
6000
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
6001
6001
|
}
|
|
6002
|
-
function
|
|
6003
|
-
let n =
|
|
6002
|
+
function wd(e = "default", t = "(max-width: 800px)") {
|
|
6003
|
+
let n = Cd(), r = e || "default";
|
|
6004
6004
|
if (!n.has(r)) {
|
|
6005
|
-
let e =
|
|
6005
|
+
let e = Sd(r);
|
|
6006
6006
|
n.set(r, {
|
|
6007
6007
|
id: `g-wc-sidebar-${e}`,
|
|
6008
6008
|
open: /* @__PURE__ */ N(!1),
|
|
@@ -6036,12 +6036,12 @@ function Td(e = "default", t = "(max-width: 800px)") {
|
|
|
6036
6036
|
}
|
|
6037
6037
|
//#endregion
|
|
6038
6038
|
//#region src/components/GHamburgerMenu.vue?vue&type=script&setup=true&lang.ts
|
|
6039
|
-
var
|
|
6039
|
+
var Td = [
|
|
6040
6040
|
"id",
|
|
6041
6041
|
"aria-expanded",
|
|
6042
6042
|
"aria-label",
|
|
6043
6043
|
"aria-controls"
|
|
6044
|
-
],
|
|
6044
|
+
], Ed = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6045
6045
|
__name: "GHamburgerMenu",
|
|
6046
6046
|
props: {
|
|
6047
6047
|
label: {
|
|
@@ -6055,7 +6055,7 @@ var Ed = [
|
|
|
6055
6055
|
},
|
|
6056
6056
|
emits: ["toggle"],
|
|
6057
6057
|
setup(e, { emit: t }) {
|
|
6058
|
-
let n = e, r = qn("sidebar") ?? (Ql() ?
|
|
6058
|
+
let n = e, r = qn("sidebar") ?? (Ql() ? wd(n.sidebarKey) : void 0), i = t;
|
|
6059
6059
|
function a() {
|
|
6060
6060
|
i("toggle"), r?.toggle();
|
|
6061
6061
|
}
|
|
@@ -6077,17 +6077,17 @@ var Ed = [
|
|
|
6077
6077
|
}, [...n[0] ||= [J("svg", {
|
|
6078
6078
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6079
6079
|
viewBox: "0 0 51.26 51.26"
|
|
6080
|
-
}, [J("g", { fill: "currentColor" }, [J("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1)]], 42,
|
|
6080
|
+
}, [J("g", { fill: "currentColor" }, [J("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1)]], 42, Td));
|
|
6081
6081
|
}
|
|
6082
|
-
}), [["styles", ["
|
|
6082
|
+
}), [["styles", [""]]]), Dd = { class: "g-history-scroller-wrapper" }, Od = {
|
|
6083
6083
|
key: 0,
|
|
6084
6084
|
class: "g-history-shadow g-history-shadow--top",
|
|
6085
6085
|
"aria-hidden": "true"
|
|
6086
|
-
},
|
|
6086
|
+
}, kd = {
|
|
6087
6087
|
key: 1,
|
|
6088
6088
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
6089
6089
|
"aria-hidden": "true"
|
|
6090
|
-
},
|
|
6090
|
+
}, Ad = ["role", "aria-label"], jd = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6091
6091
|
__name: "GHistoryScroller",
|
|
6092
6092
|
props: {
|
|
6093
6093
|
label: { type: String },
|
|
@@ -6122,9 +6122,9 @@ var Ed = [
|
|
|
6122
6122
|
i.value && (await F(), o());
|
|
6123
6123
|
});
|
|
6124
6124
|
let c = Q(() => [...t.entries].reverse());
|
|
6125
|
-
return (t, l) => (G(), K("div",
|
|
6126
|
-
a.value ? Z("", !0) : (G(), K("div",
|
|
6127
|
-
i.value ? Z("", !0) : (G(), K("div",
|
|
6125
|
+
return (t, l) => (G(), K("div", Dd, [
|
|
6126
|
+
a.value ? Z("", !0) : (G(), K("div", Od)),
|
|
6127
|
+
i.value ? Z("", !0) : (G(), K("div", kd)),
|
|
6128
6128
|
J("div", {
|
|
6129
6129
|
ref_key: "scrollerRef",
|
|
6130
6130
|
ref: n,
|
|
@@ -6132,7 +6132,7 @@ var Ed = [
|
|
|
6132
6132
|
role: e.label ? "log" : void 0,
|
|
6133
6133
|
"aria-label": e.label,
|
|
6134
6134
|
onScroll: s
|
|
6135
|
-
}, [Y(
|
|
6135
|
+
}, [Y(ru, {
|
|
6136
6136
|
class: k(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": i.value }]),
|
|
6137
6137
|
size: "small",
|
|
6138
6138
|
type: "button",
|
|
@@ -6159,10 +6159,10 @@ var Ed = [
|
|
|
6159
6159
|
key: e.id,
|
|
6160
6160
|
class: "g-history-entry",
|
|
6161
6161
|
tabindex: "-1"
|
|
6162
|
-
}, [V(t.$slots, "default", { entry: e }
|
|
6162
|
+
}, [V(t.$slots, "default", { entry: e })]))), 128))], 512)], 40, Ad)
|
|
6163
6163
|
]));
|
|
6164
6164
|
}
|
|
6165
|
-
}), [["styles", ["
|
|
6165
|
+
}), [["styles", [""]]]), Md = ["id"], Nd = { class: "g-modal-inner" }, Pd = { class: "g-modal-header" }, Fd = ["id"], Id = ["id"], Ld = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6166
6166
|
__name: "GModal",
|
|
6167
6167
|
props: {
|
|
6168
6168
|
label: { type: String },
|
|
@@ -6212,12 +6212,12 @@ var Ed = [
|
|
|
6212
6212
|
ref_key: "dialog",
|
|
6213
6213
|
ref: i,
|
|
6214
6214
|
style: { zIndex: P(u) }
|
|
6215
|
-
}), [J("div",
|
|
6215
|
+
}), [J("div", Nd, [J("div", Pd, [e.hiddenLabel ? Z("", !0) : (G(), K("h2", {
|
|
6216
6216
|
key: 0,
|
|
6217
6217
|
id: "modal-label-" + P(o),
|
|
6218
6218
|
class: "g-modal-label",
|
|
6219
6219
|
tabindex: "-1"
|
|
6220
|
-
}, A(e.label), 9,
|
|
6220
|
+
}, A(e.label), 9, Fd)), J("button", {
|
|
6221
6221
|
class: "g-modal-close",
|
|
6222
6222
|
onClick: p,
|
|
6223
6223
|
"aria-label": "Close"
|
|
@@ -6232,20 +6232,20 @@ var Ed = [
|
|
|
6232
6232
|
})], -1)]])]), J("div", {
|
|
6233
6233
|
id: "modal-description-" + P(o),
|
|
6234
6234
|
class: "g-modal-content"
|
|
6235
|
-
}, [V(t.$slots, "default"
|
|
6235
|
+
}, [V(t.$slots, "default")], 8, Id)])], 16, Md)]),
|
|
6236
6236
|
_: 3
|
|
6237
6237
|
})]));
|
|
6238
6238
|
}
|
|
6239
|
-
}), [["styles", ["
|
|
6239
|
+
}), [["styles", [""]]]);
|
|
6240
6240
|
//#endregion
|
|
6241
6241
|
//#region src/compose/useSelectDropdown.ts
|
|
6242
|
-
function
|
|
6242
|
+
function Rd(e) {
|
|
6243
6243
|
return e.map((e) => typeof e == "string" ? {
|
|
6244
6244
|
label: e,
|
|
6245
6245
|
value: e
|
|
6246
6246
|
} : e);
|
|
6247
6247
|
}
|
|
6248
|
-
function
|
|
6248
|
+
function zd({ open: e, anchorRef: t, listboxRef: n, baseId: r, activeIndex: i }) {
|
|
6249
6249
|
let { push: a, pop: o, isTop: s } = Gs(r), c = /* @__PURE__ */ N("below"), l = /* @__PURE__ */ N(null), u = Q(() => {
|
|
6250
6250
|
let e = {};
|
|
6251
6251
|
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;
|
|
@@ -6289,15 +6289,15 @@ function Bd({ open: e, anchorRef: t, listboxRef: n, baseId: r, activeIndex: i })
|
|
|
6289
6289
|
}
|
|
6290
6290
|
//#endregion
|
|
6291
6291
|
//#region src/components/GMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6292
|
-
var
|
|
6292
|
+
var Bd = ["id", "for"], Vd = {
|
|
6293
6293
|
key: 0,
|
|
6294
6294
|
class: "g-multiselect-required",
|
|
6295
6295
|
"aria-hidden": "true"
|
|
6296
|
-
},
|
|
6296
|
+
}, Hd = ["id"], Ud = ["aria-labelledby"], Wd = { class: "g-multiselect-chip-label" }, Gd = [
|
|
6297
6297
|
"aria-label",
|
|
6298
6298
|
"disabled",
|
|
6299
6299
|
"onClick"
|
|
6300
|
-
],
|
|
6300
|
+
], Kd = [
|
|
6301
6301
|
"id",
|
|
6302
6302
|
"value",
|
|
6303
6303
|
"placeholder",
|
|
@@ -6307,23 +6307,23 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6307
6307
|
"aria-activedescendant",
|
|
6308
6308
|
"aria-describedby",
|
|
6309
6309
|
"aria-required"
|
|
6310
|
-
],
|
|
6310
|
+
], qd = ["id"], Jd = [
|
|
6311
6311
|
"id",
|
|
6312
6312
|
"aria-selected",
|
|
6313
6313
|
"onClick"
|
|
6314
|
-
],
|
|
6314
|
+
], Yd = {
|
|
6315
6315
|
class: "g-multiselect-option-check",
|
|
6316
6316
|
"aria-hidden": "true"
|
|
6317
|
-
},
|
|
6317
|
+
}, Xd = {
|
|
6318
6318
|
key: 0,
|
|
6319
6319
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6320
6320
|
viewBox: "0 0 640 640",
|
|
6321
6321
|
width: "1.25em"
|
|
6322
|
-
},
|
|
6322
|
+
}, Zd = {
|
|
6323
6323
|
key: 1,
|
|
6324
6324
|
"aria-live": "polite",
|
|
6325
6325
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
6326
|
-
},
|
|
6326
|
+
}, Qd = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6327
6327
|
__name: "GMultiSelect",
|
|
6328
6328
|
props: /* @__PURE__ */ H({
|
|
6329
6329
|
options: { type: Array },
|
|
@@ -6354,18 +6354,18 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6354
6354
|
}),
|
|
6355
6355
|
emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
|
|
6356
6356
|
setup(e, { emit: t }) {
|
|
6357
|
-
let n = e, r = t, i = U(e, "modelValue"), a = z(), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(0), d = /* @__PURE__ */ N(""), f = /* @__PURE__ */ N(!1), { displayErrors: p, hasErrors: m } =
|
|
6357
|
+
let n = e, r = t, i = U(e, "modelValue"), a = z(), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(0), d = /* @__PURE__ */ N(""), f = /* @__PURE__ */ N(!1), { displayErrors: p, hasErrors: m } = bu({
|
|
6358
6358
|
name: n.name,
|
|
6359
6359
|
value: i,
|
|
6360
6360
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
6361
6361
|
formKey: n.formKey
|
|
6362
|
-
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } =
|
|
6362
|
+
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } = zd({
|
|
6363
6363
|
open: l,
|
|
6364
6364
|
anchorRef: s,
|
|
6365
6365
|
listboxRef: c,
|
|
6366
6366
|
baseId: a,
|
|
6367
6367
|
activeIndex: u
|
|
6368
|
-
}), y = Q(() =>
|
|
6368
|
+
}), y = Q(() => Rd(n.options)), b = Q(() => {
|
|
6369
6369
|
if (!d.value) return y.value;
|
|
6370
6370
|
let e = d.value.toLowerCase();
|
|
6371
6371
|
return y.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
@@ -6460,12 +6460,12 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6460
6460
|
id: oe.value,
|
|
6461
6461
|
for: ae.value,
|
|
6462
6462
|
class: "g-multiselect-label"
|
|
6463
|
-
}, [X(A(e.label), 1), e.required ? (G(), K("span",
|
|
6463
|
+
}, [X(A(e.label), 1), e.required ? (G(), K("span", Vd, " *")) : Z("", !0)], 8, Bd)),
|
|
6464
6464
|
e.instructions ? (G(), K("div", {
|
|
6465
6465
|
key: 1,
|
|
6466
6466
|
id: se.value,
|
|
6467
6467
|
class: "g-multiselect-instructions"
|
|
6468
|
-
}, A(e.instructions), 9,
|
|
6468
|
+
}, A(e.instructions), 9, Hd)) : Z("", !0),
|
|
6469
6469
|
J("div", {
|
|
6470
6470
|
ref_key: "controlRef",
|
|
6471
6471
|
ref: s,
|
|
@@ -6478,7 +6478,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6478
6478
|
}, [(G(!0), K(W, null, B(i.value, (t) => (G(), K("li", {
|
|
6479
6479
|
key: t,
|
|
6480
6480
|
class: "g-multiselect-chip"
|
|
6481
|
-
}, [J("span",
|
|
6481
|
+
}, [J("span", Wd, A(S(t)), 1), J("button", {
|
|
6482
6482
|
type: "button",
|
|
6483
6483
|
class: "g-multiselect-chip-remove",
|
|
6484
6484
|
"aria-label": `Remove ${S(t)}`,
|
|
@@ -6493,7 +6493,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6493
6493
|
}, [J("path", {
|
|
6494
6494
|
fill: "currentColor",
|
|
6495
6495
|
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"
|
|
6496
|
-
})], -1)]], 40,
|
|
6496
|
+
})], -1)]], 40, Gd)]))), 128))], 8, Ud),
|
|
6497
6497
|
J("input", Va({
|
|
6498
6498
|
ref_key: "inputRef",
|
|
6499
6499
|
ref: o,
|
|
@@ -6517,7 +6517,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6517
6517
|
onKeydown: ie,
|
|
6518
6518
|
onFocus: te,
|
|
6519
6519
|
onBlur: O
|
|
6520
|
-
}), null, 16,
|
|
6520
|
+
}), null, 16, Kd),
|
|
6521
6521
|
n[2] ||= J("svg", {
|
|
6522
6522
|
class: "g-multiselect-caret",
|
|
6523
6523
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6549,27 +6549,27 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6549
6549
|
"aria-selected": x(e.value) ? "true" : "false",
|
|
6550
6550
|
onMousedown: ne,
|
|
6551
6551
|
onClick: (e) => T(t)
|
|
6552
|
-
}, [J("span",
|
|
6552
|
+
}, [J("span", Yd, [x(e.value) ? (G(), K("svg", Xd, [...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)]), X(" " + A(e.label), 1)], 42, Jd))), 128)) : (G(), K("div", Zd, " No results found. "))], 16, qd), [[Go, l.value]])
|
|
6553
6553
|
], 2),
|
|
6554
|
-
Y(
|
|
6554
|
+
Y(Su, {
|
|
6555
6555
|
errors: P(p),
|
|
6556
6556
|
id: ce.value
|
|
6557
6557
|
}, null, 8, ["errors", "id"])
|
|
6558
6558
|
], 2));
|
|
6559
6559
|
}
|
|
6560
|
-
}), [["styles", ["
|
|
6560
|
+
}), [["styles", [""]]]), $d = {
|
|
6561
6561
|
key: 0,
|
|
6562
6562
|
class: "g-scroll-lock-overlay"
|
|
6563
|
-
},
|
|
6563
|
+
}, ef = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6564
6564
|
__name: "GOverlay",
|
|
6565
6565
|
setup(e) {
|
|
6566
6566
|
let { hasScrollLock: t } = Ks();
|
|
6567
6567
|
return (e, n) => (G(), q(Do, { name: "g-fade" }, {
|
|
6568
|
-
default: I(() => [P(t) ? (G(), K("div",
|
|
6568
|
+
default: I(() => [P(t) ? (G(), K("div", $d)) : Z("", !0)]),
|
|
6569
6569
|
_: 1
|
|
6570
6570
|
}));
|
|
6571
6571
|
}
|
|
6572
|
-
}), [["styles", ["
|
|
6572
|
+
}), [["styles", [""]]]), tf = { class: "g-popover-wrap" }, nf = ["id"], rf = ["aria-labelledby", "aria-label"], af = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6573
6573
|
__name: "GPopover",
|
|
6574
6574
|
props: {
|
|
6575
6575
|
minimal: {
|
|
@@ -6627,7 +6627,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6627
6627
|
}, T.value = !1, w.value = !1, C.value = { left: "50%" };
|
|
6628
6628
|
return;
|
|
6629
6629
|
}
|
|
6630
|
-
let { top: i, left: a, xOffset: o, placedAbove: s, overlay: c } =
|
|
6630
|
+
let { top: i, left: a, xOffset: o, placedAbove: s, overlay: c } = Pu(n.getBoundingClientRect(), e, t, { gap: r.minimal ? 0 : 8 });
|
|
6631
6631
|
S.value = {
|
|
6632
6632
|
top: i,
|
|
6633
6633
|
left: a
|
|
@@ -6647,13 +6647,13 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6647
6647
|
show: y,
|
|
6648
6648
|
hide: b,
|
|
6649
6649
|
toggle: x
|
|
6650
|
-
}), (t, n) => (G(), K("div",
|
|
6650
|
+
}), (t, n) => (G(), K("div", tf, [s.value ? (G(), K("div", {
|
|
6651
6651
|
key: 0,
|
|
6652
6652
|
ref_key: "triggerRef",
|
|
6653
6653
|
ref: c,
|
|
6654
6654
|
class: "g-popover-trigger",
|
|
6655
6655
|
id: `${P(f)}-trigger`
|
|
6656
|
-
}, [V(t.$slots, "trigger", { toggle: x }
|
|
6656
|
+
}, [V(t.$slots, "trigger", { toggle: x })], 8, nf)) : Z("", !0), (G(), q(fr, {
|
|
6657
6657
|
to: "#modal-root",
|
|
6658
6658
|
disabled: P(d)
|
|
6659
6659
|
}, [Y(Do, {
|
|
@@ -6686,7 +6686,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6686
6686
|
style: de(C.value),
|
|
6687
6687
|
"aria-hidden": "true"
|
|
6688
6688
|
}, null, 6)) : Z("", !0),
|
|
6689
|
-
V(t.$slots, "default"
|
|
6689
|
+
V(t.$slots, "default"),
|
|
6690
6690
|
e.minimal ? Z("", !0) : (G(), K("button", {
|
|
6691
6691
|
key: 1,
|
|
6692
6692
|
class: "g-popover-close",
|
|
@@ -6702,11 +6702,11 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6702
6702
|
fill: "currentColor",
|
|
6703
6703
|
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"
|
|
6704
6704
|
})], -1)]]))
|
|
6705
|
-
], 14,
|
|
6705
|
+
], 14, rf)), [[Go, a.value]]) : Z("", !0)]),
|
|
6706
6706
|
_: 3
|
|
6707
6707
|
})], 8, ["disabled"]))]));
|
|
6708
6708
|
}
|
|
6709
|
-
}), [["styles", ["
|
|
6709
|
+
}), [["styles", [""]]]), of = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6710
6710
|
__name: "GTooltip",
|
|
6711
6711
|
props: { text: { type: String } },
|
|
6712
6712
|
emits: ["tooltip-hide"],
|
|
@@ -6721,12 +6721,12 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6721
6721
|
return t instanceof HTMLElement ? t : null;
|
|
6722
6722
|
}
|
|
6723
6723
|
function v() {
|
|
6724
|
-
g && (h || (h = o.value ?
|
|
6725
|
-
l.value && (u.value || d.value) && g &&
|
|
6724
|
+
g && (h || (h = o.value ? Iu("g-tooltip") : Lu(g, "g-tooltip"), o.value && g.setAttribute("aria-describedby", h)), l.value || (l.value = Ru(r.text, h), zu(l.value), f = new ResizeObserver(() => {
|
|
6725
|
+
l.value && (u.value || d.value) && g && Bu(g, l.value);
|
|
6726
6726
|
}), f.observe(l.value)));
|
|
6727
6727
|
}
|
|
6728
6728
|
function y() {
|
|
6729
|
-
l.value && (u.value || d.value) && g &&
|
|
6729
|
+
l.value && (u.value || d.value) && g && Bu(g, l.value);
|
|
6730
6730
|
}
|
|
6731
6731
|
function b() {
|
|
6732
6732
|
u.value = !0;
|
|
@@ -6772,10 +6772,10 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6772
6772
|
l.value && (l.value.textContent = e);
|
|
6773
6773
|
}), L(() => u.value || d.value, (e) => {
|
|
6774
6774
|
if (e) {
|
|
6775
|
-
v(), l.value && g &&
|
|
6775
|
+
v(), l.value && g && Bu(g, l.value), p ||= (window.addEventListener("scroll", y, { capture: !0 }), !0);
|
|
6776
6776
|
return;
|
|
6777
6777
|
}
|
|
6778
|
-
p &&= (window.removeEventListener("scroll", y, { capture: !0 }), !1), l.value && (
|
|
6778
|
+
p &&= (window.removeEventListener("scroll", y, { capture: !0 }), !1), l.value && (Vu(l.value), m && clearTimeout(m), m = window.setTimeout(() => {
|
|
6779
6779
|
i("tooltip-hide");
|
|
6780
6780
|
}, 150));
|
|
6781
6781
|
}), Jr(() => {
|
|
@@ -6793,23 +6793,23 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6793
6793
|
ref_key: "triggerRef",
|
|
6794
6794
|
ref: c,
|
|
6795
6795
|
class: "g-tooltip-trigger"
|
|
6796
|
-
}, [V(e.$slots, "trigger"
|
|
6796
|
+
}, [V(e.$slots, "trigger")], 512)) : Z("", !0)], 512));
|
|
6797
6797
|
}
|
|
6798
|
-
}), [["styles", ["
|
|
6798
|
+
}), [["styles", [""]]]), sf = ["width", "height"], cf = [
|
|
6799
6799
|
"cx",
|
|
6800
6800
|
"cy",
|
|
6801
6801
|
"r"
|
|
6802
|
-
],
|
|
6802
|
+
], lf = [
|
|
6803
6803
|
"cx",
|
|
6804
6804
|
"cy",
|
|
6805
6805
|
"r",
|
|
6806
6806
|
"stroke-dasharray",
|
|
6807
6807
|
"stroke-dashoffset"
|
|
6808
|
-
],
|
|
6808
|
+
], uf = [
|
|
6809
6809
|
"cx",
|
|
6810
6810
|
"cy",
|
|
6811
6811
|
"r"
|
|
6812
|
-
],
|
|
6812
|
+
], df = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6813
6813
|
__name: "GProgress",
|
|
6814
6814
|
props: {
|
|
6815
6815
|
label: {
|
|
@@ -6859,7 +6859,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6859
6859
|
r: r.value,
|
|
6860
6860
|
"stroke-width": 4,
|
|
6861
6861
|
fill: "none"
|
|
6862
|
-
}, null, 8,
|
|
6862
|
+
}, null, 8, cf), n.value ? (G(), K("circle", {
|
|
6863
6863
|
key: 0,
|
|
6864
6864
|
class: "g-progress__value",
|
|
6865
6865
|
cx: r.value + 4 / 2,
|
|
@@ -6873,7 +6873,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6873
6873
|
transform: "rotate(-90deg)",
|
|
6874
6874
|
"transform-origin": "center"
|
|
6875
6875
|
}
|
|
6876
|
-
}, null, 8,
|
|
6876
|
+
}, null, 8, lf)) : (G(), K("circle", {
|
|
6877
6877
|
key: 1,
|
|
6878
6878
|
class: "g-progress__spinner",
|
|
6879
6879
|
cx: r.value + 4 / 2,
|
|
@@ -6881,29 +6881,29 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6881
6881
|
r: r.value,
|
|
6882
6882
|
"stroke-width": 4,
|
|
6883
6883
|
fill: "none"
|
|
6884
|
-
}, null, 8,
|
|
6884
|
+
}, null, 8, uf))], 10, sf))], 16));
|
|
6885
6885
|
}
|
|
6886
|
-
}), [["styles", ["
|
|
6886
|
+
}), [["styles", [""]]]), ff = ["aria-label"], pf = [
|
|
6887
6887
|
"placeholder",
|
|
6888
6888
|
"value",
|
|
6889
6889
|
"aria-expanded",
|
|
6890
6890
|
"aria-controls",
|
|
6891
6891
|
"aria-activedescendant"
|
|
6892
|
-
],
|
|
6892
|
+
], mf = {
|
|
6893
6893
|
key: 0,
|
|
6894
6894
|
class: "g-search-dropdown"
|
|
6895
|
-
},
|
|
6895
|
+
}, hf = {
|
|
6896
6896
|
"aria-live": "polite",
|
|
6897
6897
|
class: "g-search-result-count"
|
|
6898
|
-
},
|
|
6898
|
+
}, gf = ["id"], _f = ["aria-label"], vf = { class: "g-search-group-label" }, yf = [
|
|
6899
6899
|
"id",
|
|
6900
6900
|
"onMousedown",
|
|
6901
6901
|
"aria-selected"
|
|
6902
|
-
],
|
|
6902
|
+
], bf = [
|
|
6903
6903
|
"id",
|
|
6904
6904
|
"onMousedown",
|
|
6905
6905
|
"aria-selected"
|
|
6906
|
-
],
|
|
6906
|
+
], xf = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
6907
6907
|
__name: "GSearch",
|
|
6908
6908
|
props: /* @__PURE__ */ H({
|
|
6909
6909
|
results: { type: Array },
|
|
@@ -6990,12 +6990,12 @@ var Vd = ["id", "for"], Hd = {
|
|
|
6990
6990
|
"aria-autocomplete": "list",
|
|
6991
6991
|
"aria-controls": `${P(y)}-list`,
|
|
6992
6992
|
"aria-activedescendant": c.value >= 0 ? "g-search-option-" + l.value[c.value].id : void 0
|
|
6993
|
-
}, null, 40,
|
|
6993
|
+
}, null, 40, pf), J("button", {
|
|
6994
6994
|
type: "submit",
|
|
6995
6995
|
class: "g-search-submit",
|
|
6996
6996
|
"aria-label": "Submit search",
|
|
6997
6997
|
onKeydown: m
|
|
6998
|
-
}, [g.value ? (G(), q(
|
|
6998
|
+
}, [g.value ? (G(), q(df, {
|
|
6999
6999
|
key: 0,
|
|
7000
7000
|
size: "tiny"
|
|
7001
7001
|
})) : Z("", !0), t[1] ||= J("svg", {
|
|
@@ -7006,7 +7006,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7006
7006
|
}, [J("path", {
|
|
7007
7007
|
fill: "currentColor",
|
|
7008
7008
|
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"
|
|
7009
|
-
})], -1)], 32)], 32), _.value ? (G(), K("div",
|
|
7009
|
+
})], -1)], 32)], 32), _.value ? (G(), K("div", mf, [J("div", hf, [g.value ? Z("", !0) : (G(), K(W, { key: 0 }, [X(A(u.value) + " result" + A(u.value === 1 ? "" : "s"), 1)], 64))]), J("div", {
|
|
7010
7010
|
role: "listbox",
|
|
7011
7011
|
id: `${P(y)}-list`,
|
|
7012
7012
|
ref_key: "listboxRef",
|
|
@@ -7017,27 +7017,27 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7017
7017
|
class: "g-search-group",
|
|
7018
7018
|
role: "group",
|
|
7019
7019
|
"aria-label": t.label
|
|
7020
|
-
}, [V(e.$slots, "group", { group: t }, () => [J("div",
|
|
7020
|
+
}, [V(e.$slots, "group", { group: t }, () => [J("div", vf, A(t.label), 1)]), (G(!0), K(W, null, B(t.items, (t, n) => (G(), K("div", {
|
|
7021
7021
|
key: t.id,
|
|
7022
7022
|
id: "g-search-option-" + t.id,
|
|
7023
7023
|
class: k(["g-search-option", { "g-search-option-active": l.value[c.value] && l.value[c.value].id === t.id }]),
|
|
7024
7024
|
role: "option",
|
|
7025
7025
|
onMousedown: As((e) => h(t), ["prevent"]),
|
|
7026
7026
|
"aria-selected": l.value[c.value] && l.value[c.value].id === t.id
|
|
7027
|
-
}, [V(e.$slots, "option", { option: t }, () => [X(A(t.title), 1)])], 42,
|
|
7027
|
+
}, [V(e.$slots, "option", { option: t }, () => [X(A(t.title), 1)])], 42, yf))), 128))], 8, _f))), 128)) : u.value > 0 ? (G(!0), K(W, { key: 1 }, B(l.value, (t, n) => (G(), K("div", {
|
|
7028
7028
|
key: t.id,
|
|
7029
7029
|
id: "g-search-option-" + t.id,
|
|
7030
7030
|
class: k(["g-search-option", { "g-search-option-active": c.value === n }]),
|
|
7031
7031
|
role: "option",
|
|
7032
7032
|
onMousedown: As((e) => h(t), ["prevent"]),
|
|
7033
7033
|
"aria-selected": c.value === n
|
|
7034
|
-
}, [V(e.$slots, "option", { option: t }, () => [X(A(t.title), 1)])], 42,
|
|
7034
|
+
}, [V(e.$slots, "option", { option: t }, () => [X(A(t.title), 1)])], 42, bf))), 128)) : Z("", !0)], 8, gf)])) : Z("", !0)], 8, ff));
|
|
7035
7035
|
}
|
|
7036
|
-
}), [["styles", ["
|
|
7036
|
+
}), [["styles", [""]]]), Sf = ["id"], Cf = {
|
|
7037
7037
|
key: 0,
|
|
7038
7038
|
class: "g-select-required",
|
|
7039
7039
|
"aria-hidden": "true"
|
|
7040
|
-
},
|
|
7040
|
+
}, wf = { class: "g-select-input-wrap" }, Tf = ["id"], Ef = [
|
|
7041
7041
|
"value",
|
|
7042
7042
|
"placeholder",
|
|
7043
7043
|
"disabled",
|
|
@@ -7045,21 +7045,21 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7045
7045
|
"aria-expanded",
|
|
7046
7046
|
"aria-required",
|
|
7047
7047
|
"aria-activedescendant"
|
|
7048
|
-
],
|
|
7048
|
+
], Df = [
|
|
7049
7049
|
"id",
|
|
7050
7050
|
"aria-controls",
|
|
7051
7051
|
"aria-expanded",
|
|
7052
7052
|
"aria-required",
|
|
7053
7053
|
"aria-activedescendant"
|
|
7054
|
-
],
|
|
7054
|
+
], Of = ["id"], kf = [
|
|
7055
7055
|
"id",
|
|
7056
7056
|
"aria-selected",
|
|
7057
7057
|
"onClick"
|
|
7058
|
-
],
|
|
7058
|
+
], Af = {
|
|
7059
7059
|
key: 1,
|
|
7060
7060
|
"aria-live": "polite",
|
|
7061
7061
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
7062
|
-
},
|
|
7062
|
+
}, jf = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
7063
7063
|
__name: "GSelect",
|
|
7064
7064
|
props: /* @__PURE__ */ H({
|
|
7065
7065
|
options: { type: Array },
|
|
@@ -7095,18 +7095,18 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7095
7095
|
}),
|
|
7096
7096
|
emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
|
|
7097
7097
|
setup(e, { emit: t }) {
|
|
7098
|
-
let n = e, r = t, i = U(e, "modelValue"), a = z(), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(0), d = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), { displayErrors: p, hasErrors: m } =
|
|
7098
|
+
let n = e, r = t, i = U(e, "modelValue"), a = z(), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(0), d = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), { displayErrors: p, hasErrors: m } = bu({
|
|
7099
7099
|
name: n.name,
|
|
7100
7100
|
value: i,
|
|
7101
7101
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
7102
7102
|
formKey: n.formKey
|
|
7103
|
-
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } =
|
|
7103
|
+
}), { menuPlacement: h, menuStyle: g, isTop: _, scrollOptionIntoView: v } = zd({
|
|
7104
7104
|
open: l,
|
|
7105
7105
|
anchorRef: o,
|
|
7106
7106
|
listboxRef: s,
|
|
7107
7107
|
baseId: a,
|
|
7108
7108
|
activeIndex: u
|
|
7109
|
-
}), y = Q(() =>
|
|
7109
|
+
}), y = Q(() => Rd(n.options)), b = /* @__PURE__ */ N(""), x = Q(() => {
|
|
7110
7110
|
if (!n.searchable || !l.value || !b.value) return y.value;
|
|
7111
7111
|
let e = b.value.toLowerCase();
|
|
7112
7112
|
return y.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
@@ -7214,8 +7214,8 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7214
7214
|
key: 0,
|
|
7215
7215
|
id: P(a) + "-label",
|
|
7216
7216
|
class: "g-select-combo-label g-select-label"
|
|
7217
|
-
}, [X(A(n.label), 1), n.required ? (G(), K("span",
|
|
7218
|
-
J("div",
|
|
7217
|
+
}, [X(A(n.label), 1), n.required ? (G(), K("span", Cf, " *")) : Z("", !0)], 8, Sf)),
|
|
7218
|
+
J("div", wf, [n.searchable ? (G(), K("div", {
|
|
7219
7219
|
key: 0,
|
|
7220
7220
|
class: "g-select-combo-input g-select-control",
|
|
7221
7221
|
id: P(a)
|
|
@@ -7242,7 +7242,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7242
7242
|
}, e.hiddenLabel ? { "aria-label": n.label } : { "aria-labelledby": P(a) + "-label" }, {
|
|
7243
7243
|
role: "combobox",
|
|
7244
7244
|
autocomplete: "off"
|
|
7245
|
-
}), null, 16,
|
|
7245
|
+
}), null, 16, Ef),
|
|
7246
7246
|
ie.value ? (G(), K("button", {
|
|
7247
7247
|
key: 0,
|
|
7248
7248
|
type: "button",
|
|
@@ -7268,7 +7268,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7268
7268
|
fill: "currentColor",
|
|
7269
7269
|
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"
|
|
7270
7270
|
})], -1)
|
|
7271
|
-
], 8,
|
|
7271
|
+
], 8, Tf)) : (G(), K("div", Va({
|
|
7272
7272
|
key: 1,
|
|
7273
7273
|
ref_key: "comboRef",
|
|
7274
7274
|
ref: o,
|
|
@@ -7313,7 +7313,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7313
7313
|
fill: "currentColor",
|
|
7314
7314
|
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"
|
|
7315
7315
|
})], -1)
|
|
7316
|
-
], 16,
|
|
7316
|
+
], 16, Df)), Wn(J("div", Va({
|
|
7317
7317
|
ref_key: "listboxRef",
|
|
7318
7318
|
ref: s,
|
|
7319
7319
|
class: ["g-select-combo-menu g-select-list", { "g-select-combo-menu--above": P(h) === "above" }],
|
|
@@ -7335,18 +7335,18 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7335
7335
|
option: e,
|
|
7336
7336
|
selected: e.value === i.value,
|
|
7337
7337
|
index: n
|
|
7338
|
-
}, () => [X(A(e.label), 1)]
|
|
7339
|
-
Y(
|
|
7338
|
+
}, () => [X(A(e.label), 1)])], 42, kf))), 128)) : (G(), K("div", Af, " No results found. "))], 16, Of), [[Go, l.value]])]),
|
|
7339
|
+
Y(Su, {
|
|
7340
7340
|
errors: P(p),
|
|
7341
7341
|
id: "error-message-" + P(a)
|
|
7342
7342
|
}, null, 8, ["errors", "id"])
|
|
7343
7343
|
], 2));
|
|
7344
7344
|
}
|
|
7345
|
-
}), [["styles", ["
|
|
7345
|
+
}), [["styles", [""]]]), Mf = ["disabled"], Nf = { class: "g-select-btn-legend" }, Pf = {
|
|
7346
7346
|
key: 0,
|
|
7347
7347
|
class: "g-select-btn-required",
|
|
7348
7348
|
"aria-hidden": "true"
|
|
7349
|
-
},
|
|
7349
|
+
}, Ff = { class: "g-select-btn-row" }, If = [
|
|
7350
7350
|
"id",
|
|
7351
7351
|
"name",
|
|
7352
7352
|
"value",
|
|
@@ -7354,7 +7354,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7354
7354
|
"disabled",
|
|
7355
7355
|
"required",
|
|
7356
7356
|
"onChange"
|
|
7357
|
-
],
|
|
7357
|
+
], Lf = ["for"], Rf = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
7358
7358
|
__name: "GSelectButton",
|
|
7359
7359
|
props: /* @__PURE__ */ H({
|
|
7360
7360
|
options: { type: Array },
|
|
@@ -7389,7 +7389,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7389
7389
|
}),
|
|
7390
7390
|
emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
|
|
7391
7391
|
setup(e, { emit: t }) {
|
|
7392
|
-
let n = e, r = t, i = U(e, "modelValue"), a = z(), { displayErrors: o, hasErrors: s } =
|
|
7392
|
+
let n = e, r = t, i = U(e, "modelValue"), a = z(), { displayErrors: o, hasErrors: s } = bu({
|
|
7393
7393
|
name: n.name,
|
|
7394
7394
|
value: i,
|
|
7395
7395
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -7408,7 +7408,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7408
7408
|
return (e, t) => (G(), K("fieldset", {
|
|
7409
7409
|
class: k(l.value),
|
|
7410
7410
|
disabled: n.disabled
|
|
7411
|
-
}, [J("legend",
|
|
7411
|
+
}, [J("legend", Nf, [X(A(n.label), 1), n.required ? (G(), K("span", Pf, " *")) : Z("", !0)]), J("div", { class: k(["g-select-btn-wrapper", { "g-select-btn-has-error": P(s) }]) }, [J("div", Ff, [(G(!0), K(W, null, B(c.value, (e, t) => (G(), K(W, { key: e.value }, [J("input", {
|
|
7412
7412
|
class: "g-select-btn-radio",
|
|
7413
7413
|
type: "radio",
|
|
7414
7414
|
id: `${P(a)}-${e.value}`,
|
|
@@ -7418,15 +7418,15 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7418
7418
|
disabled: n.disabled,
|
|
7419
7419
|
required: n.required && t === 0,
|
|
7420
7420
|
onChange: (t) => d(e.value)
|
|
7421
|
-
}, null, 40,
|
|
7421
|
+
}, null, 40, If), J("label", {
|
|
7422
7422
|
for: `${P(a)}-${e.value}`,
|
|
7423
7423
|
class: k(u(e.value === i.value))
|
|
7424
|
-
}, A(e.label), 11,
|
|
7424
|
+
}, A(e.label), 11, Lf)], 64))), 128))]), Y(Su, {
|
|
7425
7425
|
errors: P(o),
|
|
7426
7426
|
id: "error-message-" + P(a)
|
|
7427
|
-
}, null, 8, ["errors", "id"])], 2)], 10,
|
|
7427
|
+
}, null, 8, ["errors", "id"])], 2)], 10, Mf));
|
|
7428
7428
|
}
|
|
7429
|
-
}), [["styles", ["
|
|
7429
|
+
}), [["styles", [""]]]), zf = ["id"], Bf = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
7430
7430
|
__name: "GSidebar",
|
|
7431
7431
|
props: {
|
|
7432
7432
|
backgroundColor: {
|
|
@@ -7459,7 +7459,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7459
7459
|
}
|
|
7460
7460
|
},
|
|
7461
7461
|
setup(e) {
|
|
7462
|
-
let t = e, n = qn("sidebar", () => void 0, !0) ?? (Ql() ?
|
|
7462
|
+
let t = e, n = qn("sidebar", () => void 0, !0) ?? (Ql() ? wd(t.sidebarKey) : 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 = z();
|
|
7463
7463
|
function s(e) {
|
|
7464
7464
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
7465
7465
|
}
|
|
@@ -7479,16 +7479,16 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7479
7479
|
width: "var(--g-sidebar-width)"
|
|
7480
7480
|
}),
|
|
7481
7481
|
onKeydown: s
|
|
7482
|
-
}, [V(t.$slots, "default"
|
|
7482
|
+
}, [V(t.$slots, "default")], 46, zf));
|
|
7483
7483
|
}
|
|
7484
|
-
}), [["styles", ["
|
|
7484
|
+
}), [["styles", [""]]]), Vf = ["id"], Hf = { class: "g-sidebar-menu__list" }, Uf = [
|
|
7485
7485
|
"href",
|
|
7486
7486
|
"aria-current",
|
|
7487
7487
|
"onClick"
|
|
7488
|
-
],
|
|
7488
|
+
], Wf = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
7489
7489
|
__name: "GSidebarMenu",
|
|
7490
7490
|
props: /* @__PURE__ */ H({
|
|
7491
|
-
|
|
7491
|
+
heading: { type: String },
|
|
7492
7492
|
items: { type: Array },
|
|
7493
7493
|
offset: {
|
|
7494
7494
|
default: 70,
|
|
@@ -7532,20 +7532,20 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7532
7532
|
}
|
|
7533
7533
|
let c = z();
|
|
7534
7534
|
return (n, a) => (G(), K("nav", Va({ class: ["g-sidebar-menu", [`g-sidebar-menu__${t.theme}`, { "g-sidebar-menu--compact": t.compact }]] }, {
|
|
7535
|
-
"aria-labelledby": e.
|
|
7536
|
-
"aria-label": e.
|
|
7535
|
+
"aria-labelledby": e.heading ? P(c) : void 0,
|
|
7536
|
+
"aria-label": e.heading ? void 0 : "Sidebar Menu"
|
|
7537
7537
|
}), [
|
|
7538
|
-
e.
|
|
7538
|
+
e.heading ? (G(), K("h2", {
|
|
7539
7539
|
key: 0,
|
|
7540
7540
|
id: P(c),
|
|
7541
7541
|
class: "g-sidebar-menu__title"
|
|
7542
|
-
}, A(e.
|
|
7542
|
+
}, A(e.heading), 9, Vf)) : Z("", !0),
|
|
7543
7543
|
a[0] ||= J("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
7544
7544
|
J("div", {
|
|
7545
7545
|
class: "g-sidebar-menu__content",
|
|
7546
7546
|
ref_key: "content",
|
|
7547
7547
|
ref: i
|
|
7548
|
-
}, [J("ul",
|
|
7548
|
+
}, [J("ul", Hf, [(G(!0), K(W, null, B(e.items, (e) => (G(), K("li", {
|
|
7549
7549
|
key: e.href || e.to,
|
|
7550
7550
|
class: "g-sidebar-menu__item",
|
|
7551
7551
|
ref_for: !0,
|
|
@@ -7563,10 +7563,10 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7563
7563
|
href: e.href || e.to || "#",
|
|
7564
7564
|
"aria-current": r.value === (e.href || "") ? "location" : void 0,
|
|
7565
7565
|
onClick: (t) => s(t, e)
|
|
7566
|
-
}, A(e.label), 11,
|
|
7566
|
+
}, A(e.label), 11, Uf))]))), 128))])], 512)
|
|
7567
7567
|
], 16));
|
|
7568
7568
|
}
|
|
7569
|
-
}), [["styles", ["
|
|
7569
|
+
}), [["styles", [""]]]), Gf = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
7570
7570
|
__name: "GSubmitButton",
|
|
7571
7571
|
props: {
|
|
7572
7572
|
disabled: {
|
|
@@ -7587,55 +7587,55 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7587
7587
|
}
|
|
7588
7588
|
},
|
|
7589
7589
|
setup(e) {
|
|
7590
|
-
let t = e, n = di(), r = typeof n["form-key"] == "string" ? n["form-key"] : void 0, i = t.formKey || r || "default", a = qn("form", null) ?? (Ql() ?
|
|
7591
|
-
return (e, n) => (G(), q(
|
|
7590
|
+
let t = e, n = di(), r = typeof n["form-key"] == "string" ? n["form-key"] : void 0, i = t.formKey || r || "default", a = qn("form", null) ?? (Ql() ? yu(i) : null), o = Q(() => t.disabled || (a?.isSubmitting.value ?? !1)), s = Q(() => a?.isSubmitting.value ?? !1);
|
|
7591
|
+
return (e, n) => (G(), q(ru, {
|
|
7592
7592
|
type: "submit",
|
|
7593
7593
|
disabled: o.value,
|
|
7594
7594
|
variant: t.variant,
|
|
7595
7595
|
class: "g-submit-button"
|
|
7596
7596
|
}, {
|
|
7597
|
-
default: I(() => [Wn(J("span", null, A(t.loadingText), 513), [[Go, s.value]]), Wn(J("span", null, [V(e.$slots, "default", {}, () => [n[0] ||= X("Submit", -1)]
|
|
7597
|
+
default: I(() => [Wn(J("span", null, A(t.loadingText), 513), [[Go, s.value]]), Wn(J("span", null, [V(e.$slots, "default", {}, () => [n[0] ||= X("Submit", -1)])], 512), [[Go, !s.value]])]),
|
|
7598
7598
|
_: 3
|
|
7599
7599
|
}, 8, ["disabled", "variant"]));
|
|
7600
7600
|
}
|
|
7601
|
-
}), [["styles", ["
|
|
7601
|
+
}), [["styles", [""]]]), Kf = {
|
|
7602
7602
|
ref: "tableBodyRef",
|
|
7603
7603
|
class: "efficient-table-body"
|
|
7604
|
-
},
|
|
7604
|
+
}, qf = ["aria-rowindex"], Jf = {
|
|
7605
7605
|
key: 0,
|
|
7606
7606
|
class: "table-group-checkbox"
|
|
7607
|
-
},
|
|
7607
|
+
}, Yf = ["colspan"], Xf = [
|
|
7608
7608
|
"aria-rowindex",
|
|
7609
7609
|
"onMousedown",
|
|
7610
7610
|
"onClick"
|
|
7611
|
-
],
|
|
7611
|
+
], Zf = [
|
|
7612
7612
|
"checked",
|
|
7613
7613
|
"onClick",
|
|
7614
7614
|
"aria-label",
|
|
7615
7615
|
"name"
|
|
7616
|
-
],
|
|
7616
|
+
], Qf = ["id"], $f = {
|
|
7617
7617
|
key: 0,
|
|
7618
7618
|
class: "editable-cell"
|
|
7619
|
-
},
|
|
7619
|
+
}, ep = {
|
|
7620
7620
|
key: 0,
|
|
7621
7621
|
class: "cell-prefix"
|
|
7622
|
-
},
|
|
7622
|
+
}, tp = [
|
|
7623
7623
|
"value",
|
|
7624
7624
|
"onChange",
|
|
7625
7625
|
"aria-labelledby",
|
|
7626
7626
|
"aria-invalid",
|
|
7627
7627
|
"name"
|
|
7628
|
-
],
|
|
7628
|
+
], np = ["value"], rp = [
|
|
7629
7629
|
"value",
|
|
7630
7630
|
"onInput",
|
|
7631
7631
|
"aria-labelledby",
|
|
7632
7632
|
"aria-invalid",
|
|
7633
7633
|
"aria-errormessage",
|
|
7634
7634
|
"name"
|
|
7635
|
-
],
|
|
7635
|
+
], ip = {
|
|
7636
7636
|
key: 3,
|
|
7637
7637
|
class: "cell-suffix"
|
|
7638
|
-
},
|
|
7638
|
+
}, ap = ["id"], op = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
7639
7639
|
__name: "GTableBody",
|
|
7640
7640
|
props: {
|
|
7641
7641
|
data: { type: Array },
|
|
@@ -7704,13 +7704,13 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7704
7704
|
function m(e, t) {
|
|
7705
7705
|
if (n.changeTracker) return n.changeTracker.getError(e.key, t.key);
|
|
7706
7706
|
}
|
|
7707
|
-
return (t, n) => (G(), K("tbody",
|
|
7707
|
+
return (t, n) => (G(), K("tbody", Kf, [(G(!0), K(W, null, B(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", {
|
|
7708
7708
|
key: 0,
|
|
7709
7709
|
"aria-rowindex": e.startIndex + r + 2
|
|
7710
|
-
}, [e.bulkSelectionEnabled ? (G(), K("td",
|
|
7710
|
+
}, [e.bulkSelectionEnabled ? (G(), K("td", Jf)) : Z("", !0), J("td", {
|
|
7711
7711
|
colspan: e.columns.length,
|
|
7712
7712
|
class: "table-group-row"
|
|
7713
|
-
}, [e.groupRender ? (G(), q(ni(e.groupRender(t[e.groupBy], t)), { key: 0 })) : (G(), K(W, { key: 1 }, [X(A(t[e.groupBy]), 1)], 64))], 8,
|
|
7713
|
+
}, [e.groupRender ? (G(), q(ni(e.groupRender(t[e.groupBy], t)), { key: 0 })) : (G(), K(W, { key: 1 }, [X(A(t[e.groupBy]), 1)], 64))], 8, Yf)], 8, qf)) : Z("", !0), J("tr", {
|
|
7714
7714
|
class: k([
|
|
7715
7715
|
"efficient-table-row",
|
|
7716
7716
|
{
|
|
@@ -7733,7 +7733,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7733
7733
|
"aria-label": `Select row ${t.key}`,
|
|
7734
7734
|
name: `row-${t.key}-checkbox`,
|
|
7735
7735
|
class: "g-bulk-select-checkbox"
|
|
7736
|
-
}, null, 8,
|
|
7736
|
+
}, null, 8, Zf)])) : Z("", !0), (G(!0), K(W, null, B(e.columns, (n) => (G(), K("td", {
|
|
7737
7737
|
key: n.key,
|
|
7738
7738
|
id: d(n) ? `${e.tableId}-td-${t.key}-${String(n.key)}` : void 0,
|
|
7739
7739
|
class: k([
|
|
@@ -7742,8 +7742,8 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7742
7742
|
p(t, n) ? "g-cell-error" : "",
|
|
7743
7743
|
typeof n.tdClass == "function" ? n.tdClass(t) : n.tdClass
|
|
7744
7744
|
])
|
|
7745
|
-
}, [n.editable ? (G(), K("div",
|
|
7746
|
-
n.editable.prefix ? (G(), K("span",
|
|
7745
|
+
}, [n.editable ? (G(), K("div", $f, [
|
|
7746
|
+
n.editable.prefix ? (G(), K("span", ep, A(n.editable.prefix), 1)) : Z("", !0),
|
|
7747
7747
|
n.editable.type === "select" ? (G(), K("select", {
|
|
7748
7748
|
key: 1,
|
|
7749
7749
|
value: t[n.key],
|
|
@@ -7755,7 +7755,7 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7755
7755
|
}, [(G(!0), K(W, null, B(n.editable.options, (e) => (G(), K("option", {
|
|
7756
7756
|
key: e.value,
|
|
7757
7757
|
value: e.value
|
|
7758
|
-
}, A(e.label), 9,
|
|
7758
|
+
}, A(e.label), 9, np))), 128))], 40, tp)) : (G(), K("input", Va({
|
|
7759
7759
|
key: 2,
|
|
7760
7760
|
value: t[n.key]
|
|
7761
7761
|
}, { ref_for: !0 }, n.editable.inputAttributes, {
|
|
@@ -7769,29 +7769,29 @@ var Vd = ["id", "for"], Hd = {
|
|
|
7769
7769
|
paddingLeft: n.editable.prefix ? "1.5rem" : void 0,
|
|
7770
7770
|
paddingRight: n.editable.suffix ? "2rem" : void 0
|
|
7771
7771
|
}
|
|
7772
|
-
}), null, 16,
|
|
7773
|
-
n.editable.suffix ? (G(), K("span",
|
|
7772
|
+
}), null, 16, rp)),
|
|
7773
|
+
n.editable.suffix ? (G(), K("span", ip, A(n.editable.suffix), 1)) : Z("", !0)
|
|
7774
7774
|
])) : n.display ? (G(), q(ni(n.display(t)), { key: 1 })) : (G(), K(W, { key: 2 }, [X(A(t[n.key]), 1)], 64)), p(t, n) ? (G(), K("div", {
|
|
7775
7775
|
key: 3,
|
|
7776
7776
|
role: "alert",
|
|
7777
7777
|
class: "g-cell-error-message",
|
|
7778
7778
|
id: `${e.tableId}-error-${t.key}-${String(n.key)}`
|
|
7779
|
-
}, A(m(t, n)), 9,
|
|
7779
|
+
}, A(m(t, n)), 9, ap)) : Z("", !0)], 10, Qf))), 128))], 42, Xf)], 64))), 128))], 512));
|
|
7780
7780
|
}
|
|
7781
|
-
}), [["styles", ["
|
|
7781
|
+
}), [["styles", [""]]]);
|
|
7782
7782
|
//#endregion
|
|
7783
7783
|
//#region src/compose/useFiltering.ts
|
|
7784
|
-
function
|
|
7784
|
+
function sp(e) {
|
|
7785
7785
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
7786
7786
|
}
|
|
7787
|
-
function
|
|
7787
|
+
function cp(e) {
|
|
7788
7788
|
let t = {};
|
|
7789
7789
|
return Object.keys(e).forEach((n) => {
|
|
7790
7790
|
let r = e[n];
|
|
7791
7791
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
7792
7792
|
}), t;
|
|
7793
7793
|
}
|
|
7794
|
-
function
|
|
7794
|
+
function lp(e, t = {}) {
|
|
7795
7795
|
let n = /* @__PURE__ */ Ht(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), r = t.syncWith;
|
|
7796
7796
|
if (r) {
|
|
7797
7797
|
if (r.value) {
|
|
@@ -7804,13 +7804,13 @@ function up(e, t = {}) {
|
|
|
7804
7804
|
});
|
|
7805
7805
|
}
|
|
7806
7806
|
L(n, (e) => {
|
|
7807
|
-
r.value =
|
|
7807
|
+
r.value = cp(e);
|
|
7808
7808
|
}, { deep: !0 });
|
|
7809
7809
|
}
|
|
7810
7810
|
return {
|
|
7811
7811
|
filters: n,
|
|
7812
7812
|
isFiltered: Q(() => {
|
|
7813
|
-
for (let t of Object.keys(e)) if (
|
|
7813
|
+
for (let t of Object.keys(e)) if (sp(n[t])) return !0;
|
|
7814
7814
|
return !1;
|
|
7815
7815
|
}),
|
|
7816
7816
|
clearFilters: () => {
|
|
@@ -7820,48 +7820,48 @@ function up(e, t = {}) {
|
|
|
7820
7820
|
},
|
|
7821
7821
|
filteredColumns: Q(() => {
|
|
7822
7822
|
let t = {};
|
|
7823
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
7823
|
+
for (let r of Object.keys(e)) t[r] = !!sp(n[r]);
|
|
7824
7824
|
return t;
|
|
7825
7825
|
})
|
|
7826
7826
|
};
|
|
7827
7827
|
}
|
|
7828
7828
|
//#endregion
|
|
7829
7829
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
7830
|
-
var
|
|
7830
|
+
var up = { class: "g-table-outer-wrap" }, dp = {
|
|
7831
7831
|
key: 0,
|
|
7832
7832
|
class: "g-table-controls"
|
|
7833
|
-
},
|
|
7833
|
+
}, fp = { class: "g-clear-filters-wrap" }, pp = {
|
|
7834
7834
|
key: 0,
|
|
7835
7835
|
class: "pagination"
|
|
7836
|
-
},
|
|
7836
|
+
}, mp = { class: "g-result-count" }, hp = ["aria-label", "aria-rowcount"], gp = { class: "g-table-head" }, _p = { "aria-rowindex": "1" }, vp = {
|
|
7837
7837
|
key: 0,
|
|
7838
7838
|
scope: "col",
|
|
7839
7839
|
class: "g-th g-th-checkbox"
|
|
7840
|
-
},
|
|
7840
|
+
}, yp = [
|
|
7841
7841
|
"checked",
|
|
7842
7842
|
"indeterminate",
|
|
7843
7843
|
"aria-label"
|
|
7844
|
-
],
|
|
7844
|
+
], bp = ["id", "aria-sort"], xp = { class: "th-inner" }, Sp = ["onClick"], Cp = {
|
|
7845
7845
|
key: 0,
|
|
7846
7846
|
class: "sort-indicator"
|
|
7847
|
-
},
|
|
7847
|
+
}, wp = ["aria-label"], Tp = {
|
|
7848
7848
|
key: 1,
|
|
7849
7849
|
class: "g-column-head"
|
|
7850
|
-
},
|
|
7850
|
+
}, Ep = ["onClick", "aria-label"], Dp = { key: 1 }, Op = { class: "g-filter-toggle" }, kp = [
|
|
7851
7851
|
"onUpdate:modelValue",
|
|
7852
7852
|
"id",
|
|
7853
7853
|
"aria-describedby"
|
|
7854
|
-
],
|
|
7854
|
+
], Ap = ["for"], jp = ["id"], Mp = {
|
|
7855
7855
|
key: 2,
|
|
7856
7856
|
class: "g-multi-select"
|
|
7857
|
-
},
|
|
7857
|
+
}, Np = [
|
|
7858
7858
|
"onUpdate:modelValue",
|
|
7859
7859
|
"id",
|
|
7860
7860
|
"value"
|
|
7861
|
-
],
|
|
7861
|
+
], Pp = ["for"], Fp = {
|
|
7862
7862
|
key: 1,
|
|
7863
7863
|
class: "g-bulk-actions-toolbar"
|
|
7864
|
-
},
|
|
7864
|
+
}, Ip = { class: "g-selected-count" }, Lp = { class: "g-bulk-actions" }, Rp = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
7865
7865
|
__name: "GTable",
|
|
7866
7866
|
props: /* @__PURE__ */ H({
|
|
7867
7867
|
label: { type: String },
|
|
@@ -7913,7 +7913,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
7913
7913
|
e.sortable && (n.value === e.key ? r.value === 1 ? r.value = -1 : r.value === -1 && (n.value = void 0, r.value = 1) : (n.value = e.key, r.value = 1));
|
|
7914
7914
|
}
|
|
7915
7915
|
let l = o.filtering;
|
|
7916
|
-
l ||=
|
|
7916
|
+
l ||= lp({});
|
|
7917
7917
|
let { filters: u, filteredColumns: d, isFiltered: f, clearFilters: p } = l, m = Q(() => o.data.map((e) => e.key)), h = Q(() => a.value.filter((e) => m.value.includes(e))), g = Q(() => !o.bulkSelectionEnabled || o.data.length === 0 ? !1 : h.value.length === m.value.length), _ = Q(() => !o.bulkSelectionEnabled || o.data.length === 0 ? !1 : h.value.length > 0 && h.value.length < m.value.length), v = /* @__PURE__ */ N(null);
|
|
7918
7918
|
function y() {
|
|
7919
7919
|
if (g.value) a.value = a.value.filter((e) => !m.value.includes(e));
|
|
@@ -7959,9 +7959,9 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
7959
7959
|
let e = i.value[t.key];
|
|
7960
7960
|
i.value[t.key] = e ? [e] : [];
|
|
7961
7961
|
}
|
|
7962
|
-
}, { immediate: !0 }), (t, s) => (G(), K("div",
|
|
7963
|
-
ee.value ? (G(), K("div",
|
|
7964
|
-
J("div",
|
|
7962
|
+
}, { immediate: !0 }), (t, s) => (G(), K("div", up, [
|
|
7963
|
+
ee.value ? (G(), K("div", dp, [
|
|
7964
|
+
J("div", fp, [P(f) ? (G(), q(ru, {
|
|
7965
7965
|
key: 0,
|
|
7966
7966
|
outlined: "",
|
|
7967
7967
|
size: "small",
|
|
@@ -7979,22 +7979,22 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
7979
7979
|
})], -1), J("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
7980
7980
|
_: 1
|
|
7981
7981
|
}, 8, ["onClick"])) : Z("", !0)]),
|
|
7982
|
-
E.value ? (G(), K("div",
|
|
7983
|
-
J("span",
|
|
7982
|
+
E.value ? (G(), K("div", pp, [V(t.$slots, "pagination")])) : Z("", !0),
|
|
7983
|
+
J("span", mp, A(o.resultCount || e.data.length) + " results", 1)
|
|
7984
7984
|
])) : Z("", !0),
|
|
7985
7985
|
J("table", {
|
|
7986
7986
|
class: "g-table",
|
|
7987
7987
|
ref: "tableRef",
|
|
7988
7988
|
"aria-label": e.label,
|
|
7989
7989
|
"aria-rowcount": o.resultCount || e.data.length
|
|
7990
|
-
}, [J("thead",
|
|
7990
|
+
}, [J("thead", gp, [J("tr", _p, [e.bulkSelectionEnabled ? (G(), K("th", vp, [J("input", {
|
|
7991
7991
|
type: "checkbox",
|
|
7992
7992
|
checked: g.value,
|
|
7993
7993
|
indeterminate: _.value,
|
|
7994
7994
|
onChange: y,
|
|
7995
7995
|
"aria-label": g.value ? "Deselect all rows" : "Select all rows",
|
|
7996
7996
|
class: "g-bulk-select-checkbox"
|
|
7997
|
-
}, null, 40,
|
|
7997
|
+
}, null, 40, yp)])) : Z("", !0), (G(!0), K(W, null, B(e.columns, (e) => (G(), K("th", {
|
|
7998
7998
|
key: e.key,
|
|
7999
7999
|
id: `${P(w)}-th-${String(e.key)}`,
|
|
8000
8000
|
"aria-sort": n.value === e.key ? r.value === 1 ? "ascending" : "descending" : "none",
|
|
@@ -8004,12 +8004,12 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8004
8004
|
{ filtered: P(d)[e.key] }
|
|
8005
8005
|
]),
|
|
8006
8006
|
scope: "col"
|
|
8007
|
-
}, [J("div",
|
|
8007
|
+
}, [J("div", xp, [e.sortable ? (G(), K("button", {
|
|
8008
8008
|
key: 0,
|
|
8009
8009
|
type: "button",
|
|
8010
8010
|
class: "g-column-head",
|
|
8011
8011
|
onClick: (t) => c(e)
|
|
8012
|
-
}, [X(A(e.label) + " ", 1), n.value === e.key ? (G(), K("span",
|
|
8012
|
+
}, [X(A(e.label) + " ", 1), n.value === e.key ? (G(), K("span", Cp, [(G(), K("svg", {
|
|
8013
8013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8014
8014
|
viewBox: "0 0 640 640",
|
|
8015
8015
|
height: "1.5em",
|
|
@@ -8019,7 +8019,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8019
8019
|
}, [...s[1] ||= [J("path", {
|
|
8020
8020
|
fill: "currentColor",
|
|
8021
8021
|
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"
|
|
8022
|
-
}, null, -1)]], 12,
|
|
8022
|
+
}, null, -1)]], 12, wp))])) : Z("", !0)], 8, Sp)) : (G(), K("span", Tp, A(e.label), 1)), e.filter ? (G(), q(af, { key: 2 }, {
|
|
8023
8023
|
trigger: I(({ toggle: t }) => [J("button", {
|
|
8024
8024
|
onClick: As(t, ["stop"]),
|
|
8025
8025
|
"aria-label": P(d)[e.key] ? "Column Filtered" : "Filter Column",
|
|
@@ -8033,8 +8033,8 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8033
8033
|
}, [J("path", {
|
|
8034
8034
|
fill: "currentColor",
|
|
8035
8035
|
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"
|
|
8036
|
-
})], -1)]], 10,
|
|
8037
|
-
default: I(() => [e.filter.type === "select" ? (G(), q(
|
|
8036
|
+
})], -1)]], 10, Ep)]),
|
|
8037
|
+
default: I(() => [e.filter.type === "select" ? (G(), q(jf, {
|
|
8038
8038
|
key: 0,
|
|
8039
8039
|
modelValue: i.value[e.key],
|
|
8040
8040
|
"onUpdate:modelValue": (t) => i.value[e.key] = t,
|
|
@@ -8047,20 +8047,20 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8047
8047
|
"modelValue",
|
|
8048
8048
|
"onUpdate:modelValue",
|
|
8049
8049
|
"options"
|
|
8050
|
-
])) : e.filter.type === "toggle" ? (G(), K("div",
|
|
8050
|
+
])) : e.filter.type === "toggle" ? (G(), K("div", Dp, [J("div", Op, [
|
|
8051
8051
|
Wn(J("input", {
|
|
8052
8052
|
type: "checkbox",
|
|
8053
8053
|
"onUpdate:modelValue": (t) => i.value[e.key] = t,
|
|
8054
8054
|
id: `${P(w)}-filter-${String(e.key)}`,
|
|
8055
8055
|
"aria-describedby": e.filter.description ? `${P(w)}-filter-description-${String(e.key)}` : void 0
|
|
8056
|
-
}, null, 8,
|
|
8057
|
-
J("label", { for: `${P(w)}-filter-${String(e.key)}` }, A(e.filter.label), 9,
|
|
8056
|
+
}, null, 8, kp), [[ws, i.value[e.key]]]),
|
|
8057
|
+
J("label", { for: `${P(w)}-filter-${String(e.key)}` }, A(e.filter.label), 9, Ap),
|
|
8058
8058
|
e.filter.description ? (G(), K("span", {
|
|
8059
8059
|
key: 0,
|
|
8060
8060
|
class: "g-filter-description",
|
|
8061
8061
|
id: `${P(w)}-filter-description-${String(e.key)}`
|
|
8062
|
-
}, A(e.filter.description), 9,
|
|
8063
|
-
])])) : e.filter.type === "multi-select" ? (G(), K("fieldset",
|
|
8062
|
+
}, A(e.filter.description), 9, jp)) : Z("", !0)
|
|
8063
|
+
])])) : e.filter.type === "multi-select" ? (G(), K("fieldset", Mp, [
|
|
8064
8064
|
s[4] ||= J("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
|
|
8065
8065
|
(G(!0), K(W, null, B(e.filter.options, (t) => (G(), K("div", { key: t.value }, [Wn(J("input", {
|
|
8066
8066
|
type: "checkbox",
|
|
@@ -8068,8 +8068,8 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8068
8068
|
id: `filter-${String(e.key)}-${t.value}`,
|
|
8069
8069
|
value: t.value,
|
|
8070
8070
|
name: "filter-multiselect"
|
|
8071
|
-
}, null, 8,
|
|
8072
|
-
i.value[e.key] && i.value[e.key].length ? (G(), q(
|
|
8071
|
+
}, null, 8, Np), [[ws, i.value[e.key]]]), J("label", { for: `filter-${String(e.key)}-${t.value}` }, A(t.label), 9, Pp)]))), 128)),
|
|
8072
|
+
i.value[e.key] && i.value[e.key].length ? (G(), q(ru, {
|
|
8073
8073
|
key: 0,
|
|
8074
8074
|
class: "clear-multiselect-btn",
|
|
8075
8075
|
theme: "accent",
|
|
@@ -8081,7 +8081,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8081
8081
|
}, 8, ["onClick"])) : Z("", !0)
|
|
8082
8082
|
])) : Z("", !0)]),
|
|
8083
8083
|
_: 2
|
|
8084
|
-
}, 1024)) : Z("", !0)])], 10,
|
|
8084
|
+
}, 1024)) : Z("", !0)])], 10, bp))), 128))])]), Y(op, {
|
|
8085
8085
|
data: e.data,
|
|
8086
8086
|
columns: e.columns,
|
|
8087
8087
|
"group-by": e.groupBy,
|
|
@@ -8108,8 +8108,8 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8108
8108
|
"selected-rows",
|
|
8109
8109
|
"table-id",
|
|
8110
8110
|
"change-tracker"
|
|
8111
|
-
])], 8,
|
|
8112
|
-
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div",
|
|
8111
|
+
])], 8, hp),
|
|
8112
|
+
e.bulkSelectionEnabled && a.value.length > 0 ? (G(), K("div", Fp, [J("span", Ip, A(a.value.length) + " row" + A(a.value.length === 1 ? "" : "s") + " selected", 1), J("ul", Lp, [(G(!0), K(W, null, B(e.bulkActions, (e) => (G(), K("li", { key: e.id }, [Y(ru, {
|
|
8113
8113
|
theme: e.theme || "accent",
|
|
8114
8114
|
onClick: (t) => S(e.id),
|
|
8115
8115
|
size: "small"
|
|
@@ -8119,10 +8119,10 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8119
8119
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : Z("", !0)
|
|
8120
8120
|
]));
|
|
8121
8121
|
}
|
|
8122
|
-
}), [["styles", ["
|
|
8122
|
+
}), [["styles", [""]]]), zp = {
|
|
8123
8123
|
class: "g-pagination",
|
|
8124
8124
|
"aria-label": "Pagination"
|
|
8125
|
-
},
|
|
8125
|
+
}, Bp = ["disabled"], Vp = ["disabled"], Hp = { class: "page-range" }, Up = ["disabled"], Wp = ["disabled"], Gp = ["value"], Kp = ["value"], qp = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
8126
8126
|
__name: "GTablePagination",
|
|
8127
8127
|
props: /* @__PURE__ */ H({
|
|
8128
8128
|
start: { type: Number },
|
|
@@ -8144,7 +8144,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8144
8144
|
function d(e) {
|
|
8145
8145
|
i.value = parseInt(e.target.value, 10);
|
|
8146
8146
|
}
|
|
8147
|
-
return (e, r) => (G(), K("nav",
|
|
8147
|
+
return (e, r) => (G(), K("nav", zp, [
|
|
8148
8148
|
J("button", {
|
|
8149
8149
|
class: "first-page g-pagination-button",
|
|
8150
8150
|
disabled: l.value === 1,
|
|
@@ -8169,7 +8169,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8169
8169
|
}),
|
|
8170
8170
|
J("path", { d: "M11 7l-5 5l5 5" }),
|
|
8171
8171
|
J("path", { d: "M17 7l-5 5l5 5" })
|
|
8172
|
-
], -1)]], 8,
|
|
8172
|
+
], -1)]], 8, Bp),
|
|
8173
8173
|
J("button", {
|
|
8174
8174
|
class: "prev-page g-pagination-button",
|
|
8175
8175
|
disabled: l.value === 1,
|
|
@@ -8190,8 +8190,8 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8190
8190
|
stroke: "none",
|
|
8191
8191
|
d: "M0 0h24v24H0z",
|
|
8192
8192
|
fill: "none"
|
|
8193
|
-
}), J("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
8194
|
-
J("span",
|
|
8193
|
+
}), J("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Vp),
|
|
8194
|
+
J("span", Hp, A(s.value) + " to " + A(c.value), 1),
|
|
8195
8195
|
J("button", {
|
|
8196
8196
|
class: "next-page g-pagination-button",
|
|
8197
8197
|
disabled: l.value === n.value,
|
|
@@ -8212,7 +8212,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8212
8212
|
stroke: "none",
|
|
8213
8213
|
d: "M0 0h24v24H0z",
|
|
8214
8214
|
fill: "none"
|
|
8215
|
-
}), J("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
8215
|
+
}), J("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Up),
|
|
8216
8216
|
J("button", {
|
|
8217
8217
|
class: "last-page g-pagination-button",
|
|
8218
8218
|
disabled: l.value === n.value,
|
|
@@ -8237,7 +8237,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8237
8237
|
}),
|
|
8238
8238
|
J("path", { d: "M7 7l5 5l-5 5" }),
|
|
8239
8239
|
J("path", { d: "M13 7l5 5l-5 5" })
|
|
8240
|
-
], -1)]], 8,
|
|
8240
|
+
], -1)]], 8, Wp),
|
|
8241
8241
|
J("select", {
|
|
8242
8242
|
id: "page-size-select",
|
|
8243
8243
|
class: "page-size-select",
|
|
@@ -8251,14 +8251,14 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8251
8251
|
], (e) => (G(), K("option", {
|
|
8252
8252
|
key: e,
|
|
8253
8253
|
value: e
|
|
8254
|
-
}, A(e), 9,
|
|
8254
|
+
}, A(e), 9, Kp))), 128))], 40, Gp),
|
|
8255
8255
|
r[8] ||= J("label", {
|
|
8256
8256
|
class: "page-size-label",
|
|
8257
8257
|
for: "page-size-select"
|
|
8258
8258
|
}, "per page", -1)
|
|
8259
8259
|
]));
|
|
8260
8260
|
}
|
|
8261
|
-
}), [["styles", ["
|
|
8261
|
+
}), [["styles", [""]]]), Jp = { class: "popover-content" }, Yp = { class: "year-dropdown" }, Xp = { class: "month-selector" }, Zp = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
8262
8262
|
__name: "GTermSelectorControl",
|
|
8263
8263
|
props: /* @__PURE__ */ H({
|
|
8264
8264
|
termYears: {
|
|
@@ -8291,7 +8291,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8291
8291
|
emits: ["update:modelValue"],
|
|
8292
8292
|
setup(e) {
|
|
8293
8293
|
let t = U(e, "modelValue");
|
|
8294
|
-
return (n, r) => (G(), K("div",
|
|
8294
|
+
return (n, r) => (G(), K("div", Jp, [J("div", Yp, [Y(jf, {
|
|
8295
8295
|
modelValue: t.value.year,
|
|
8296
8296
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
8297
8297
|
options: e.termYears,
|
|
@@ -8300,7 +8300,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8300
8300
|
"modelValue",
|
|
8301
8301
|
"options",
|
|
8302
8302
|
"label"
|
|
8303
|
-
])]), J("div",
|
|
8303
|
+
])]), J("div", Xp, [Y(Rf, {
|
|
8304
8304
|
modelValue: t.value.name,
|
|
8305
8305
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
8306
8306
|
options: e.termNames,
|
|
@@ -8312,13 +8312,13 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8312
8312
|
"label"
|
|
8313
8313
|
])])]));
|
|
8314
8314
|
}
|
|
8315
|
-
}), [["styles", ["
|
|
8316
|
-
class: "popover-title",
|
|
8315
|
+
}), [["styles", [""]]]), Qp = { class: "g-term-selector" }, $p = { class: "g-term-label" }, em = {
|
|
8316
|
+
class: "g-popover-title",
|
|
8317
8317
|
tabindex: "-1"
|
|
8318
|
-
},
|
|
8318
|
+
}, tm = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
8319
8319
|
__name: "GTermSelector",
|
|
8320
8320
|
props: /* @__PURE__ */ H({
|
|
8321
|
-
|
|
8321
|
+
heading: {
|
|
8322
8322
|
default: "Period Selection",
|
|
8323
8323
|
type: String
|
|
8324
8324
|
},
|
|
@@ -8346,8 +8346,8 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8346
8346
|
emits: ["update:modelValue"],
|
|
8347
8347
|
setup(e) {
|
|
8348
8348
|
let t = U(e, "modelValue");
|
|
8349
|
-
return (n, r) => (G(), K("div",
|
|
8350
|
-
trigger: I(({ toggle: e }) => [Y(
|
|
8349
|
+
return (n, r) => (G(), K("div", Qp, [Y(af, null, {
|
|
8350
|
+
trigger: I(({ toggle: e }) => [Y(ru, {
|
|
8351
8351
|
class: "g-term-selector-button",
|
|
8352
8352
|
theme: "none",
|
|
8353
8353
|
outlined: "",
|
|
@@ -8359,7 +8359,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8359
8359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8360
8360
|
viewBox: "0 0 640 640"
|
|
8361
8361
|
}, [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),
|
|
8362
|
-
J("span",
|
|
8362
|
+
J("span", $p, A(t.value?.name) + " " + A(t.value?.year), 1),
|
|
8363
8363
|
r[1] ||= J("span", { class: "g-caret" }, [J("svg", {
|
|
8364
8364
|
role: "none presentation",
|
|
8365
8365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8368,15 +8368,15 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8368
8368
|
]),
|
|
8369
8369
|
_: 1
|
|
8370
8370
|
}, 8, ["onClick"])]),
|
|
8371
|
-
default: I(() => [J("h2",
|
|
8371
|
+
default: I(() => [J("h2", em, A(e.heading), 1), Y(Zp, ge(Ia(n.$props)), null, 16)]),
|
|
8372
8372
|
_: 1
|
|
8373
8373
|
})]));
|
|
8374
8374
|
}
|
|
8375
|
-
}), [["styles", ["
|
|
8375
|
+
}), [["styles", [""]]]), nm = ["for"], rm = {
|
|
8376
8376
|
key: 0,
|
|
8377
8377
|
class: "g-textarea-required",
|
|
8378
8378
|
"aria-hidden": "true"
|
|
8379
|
-
},
|
|
8379
|
+
}, im = ["id"], am = [
|
|
8380
8380
|
"value",
|
|
8381
8381
|
"placeholder",
|
|
8382
8382
|
"disabled",
|
|
@@ -8385,11 +8385,11 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8385
8385
|
"rows",
|
|
8386
8386
|
"maxlength",
|
|
8387
8387
|
"aria-invalid"
|
|
8388
|
-
],
|
|
8388
|
+
], om = {
|
|
8389
8389
|
key: 2,
|
|
8390
8390
|
class: "g-textarea-char-count",
|
|
8391
8391
|
"aria-live": "polite"
|
|
8392
|
-
},
|
|
8392
|
+
}, sm = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
8393
8393
|
inheritAttrs: !1,
|
|
8394
8394
|
__name: "GTextarea",
|
|
8395
8395
|
props: /* @__PURE__ */ H({
|
|
@@ -8447,7 +8447,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8447
8447
|
}),
|
|
8448
8448
|
emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
|
|
8449
8449
|
setup(e, { emit: t }) {
|
|
8450
|
-
let n = e, r = U(e, "modelValue"), i = z(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = $l({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } =
|
|
8450
|
+
let n = e, r = U(e, "modelValue"), i = z(), { attrs: a, isCustomElement: o, forwardedAttrs: s } = $l({ omitInCustomElement: ["id"] }), c = Q(() => o ? i : a.id || i), { displayErrors: l, hasErrors: u } = bu({
|
|
8451
8451
|
name: n.name,
|
|
8452
8452
|
value: r,
|
|
8453
8453
|
errors: /* @__PURE__ */ fn(n, "errors"),
|
|
@@ -8486,12 +8486,12 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8486
8486
|
key: 0,
|
|
8487
8487
|
for: c.value,
|
|
8488
8488
|
class: "g-textarea-label"
|
|
8489
|
-
}, [X(A(n.label), 1), n.required ? (G(), K("span",
|
|
8489
|
+
}, [X(A(n.label), 1), n.required ? (G(), K("span", rm, " *")) : Z("", !0)], 8, nm)) : Z("", !0),
|
|
8490
8490
|
t.$slots.instructions || e.instructions ? (G(), K("div", {
|
|
8491
8491
|
key: 1,
|
|
8492
8492
|
id: "instructions-" + P(i),
|
|
8493
8493
|
class: "g-textarea-instructions"
|
|
8494
|
-
}, [V(t.$slots, "instructions", {}, () => [X(A(e.instructions), 1)]
|
|
8494
|
+
}, [V(t.$slots, "instructions", {}, () => [X(A(e.instructions), 1)])], 8, im)) : Z("", !0),
|
|
8495
8495
|
J("textarea", Va({
|
|
8496
8496
|
ref: "textareaEl",
|
|
8497
8497
|
value: r.value ?? "",
|
|
@@ -8512,36 +8512,36 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8512
8512
|
onInput: h,
|
|
8513
8513
|
onBlur: g,
|
|
8514
8514
|
onPaste: _
|
|
8515
|
-
}), null, 16,
|
|
8516
|
-
n.maxlength === void 0 ? Z("", !0) : (G(), K("div",
|
|
8517
|
-
Y(
|
|
8515
|
+
}), null, 16, am),
|
|
8516
|
+
n.maxlength === void 0 ? Z("", !0) : (G(), K("div", om, A((r.value ?? "").length) + " / " + A(n.maxlength), 1)),
|
|
8517
|
+
Y(Su, {
|
|
8518
8518
|
errors: P(l),
|
|
8519
8519
|
id: "error-message-" + P(i)
|
|
8520
8520
|
}, null, 8, ["errors", "id"])
|
|
8521
8521
|
], 2));
|
|
8522
8522
|
}
|
|
8523
|
-
}), [["styles", ["
|
|
8523
|
+
}), [["styles", [""]]]), cm = { class: "g-three-way-toggle-wrapper" }, lm = { class: "g-three-way-toggle-control" }, um = ["id"], dm = [
|
|
8524
8524
|
"aria-labelledby",
|
|
8525
8525
|
"aria-describedby",
|
|
8526
8526
|
"disabled",
|
|
8527
8527
|
"aria-invalid",
|
|
8528
8528
|
"aria-errormessage"
|
|
8529
|
-
],
|
|
8529
|
+
], fm = { key: 0 }, pm = { key: 1 }, mm = { key: 2 }, hm = ["for"], gm = [
|
|
8530
8530
|
"id",
|
|
8531
8531
|
"name",
|
|
8532
8532
|
"checked",
|
|
8533
8533
|
"disabled"
|
|
8534
|
-
],
|
|
8534
|
+
], _m = ["for"], vm = [
|
|
8535
8535
|
"id",
|
|
8536
8536
|
"name",
|
|
8537
8537
|
"checked",
|
|
8538
8538
|
"disabled"
|
|
8539
|
-
],
|
|
8539
|
+
], ym = ["for"], bm = [
|
|
8540
8540
|
"id",
|
|
8541
8541
|
"name",
|
|
8542
8542
|
"checked",
|
|
8543
8543
|
"disabled"
|
|
8544
|
-
],
|
|
8544
|
+
], xm = ["id"], Sm = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
8545
8545
|
__name: "GThreeWayToggle",
|
|
8546
8546
|
props: /* @__PURE__ */ H({
|
|
8547
8547
|
label: { type: String },
|
|
@@ -8575,10 +8575,10 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8575
8575
|
function m(e) {
|
|
8576
8576
|
n.disabled || (e.key === "n" || e.key === "N" ? (a(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (a(!0), e.preventDefault()));
|
|
8577
8577
|
}
|
|
8578
|
-
return (t, n) => (G(), K("div",
|
|
8578
|
+
return (t, n) => (G(), K("div", cm, [J("div", lm, [J("span", {
|
|
8579
8579
|
class: "g-label",
|
|
8580
8580
|
id: P(c)
|
|
8581
|
-
}, [V(t.$slots, "label", {}, () => [X(A(e.label), 1)]
|
|
8581
|
+
}, [V(t.$slots, "label", {}, () => [X(A(e.label), 1)])], 8, um), J("fieldset", {
|
|
8582
8582
|
class: k(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
8583
8583
|
role: "radiogroup",
|
|
8584
8584
|
"aria-labelledby": P(c),
|
|
@@ -8590,7 +8590,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8590
8590
|
J("span", {
|
|
8591
8591
|
class: k(["g-toggle-thumb", p.value]),
|
|
8592
8592
|
"aria-hidden": "true"
|
|
8593
|
-
}, [r.value === !1 ? (G(), K("span",
|
|
8593
|
+
}, [r.value === !1 ? (G(), K("span", fm, "NO")) : r.value === !0 ? (G(), K("span", pm, "YES")) : (G(), K("span", mm))], 2),
|
|
8594
8594
|
J("label", {
|
|
8595
8595
|
for: P(u),
|
|
8596
8596
|
class: "g-toggle-option g-left",
|
|
@@ -8604,7 +8604,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8604
8604
|
value: "false",
|
|
8605
8605
|
disabled: e.disabled,
|
|
8606
8606
|
onChange: n[0] ||= (e) => o(!1)
|
|
8607
|
-
}, null, 40,
|
|
8607
|
+
}, null, 40, gm), n[5] ||= J("span", { class: "ilw-sr-only" }, "No", -1)], 40, hm),
|
|
8608
8608
|
J("label", {
|
|
8609
8609
|
for: P(d),
|
|
8610
8610
|
class: "g-toggle-option g-center",
|
|
@@ -8616,7 +8616,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8616
8616
|
checked: r.value === null,
|
|
8617
8617
|
disabled: e.disabled,
|
|
8618
8618
|
onChange: n[2] ||= (e) => o(null)
|
|
8619
|
-
}, null, 40,
|
|
8619
|
+
}, null, 40, vm), n[6] ||= J("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, _m),
|
|
8620
8620
|
J("label", {
|
|
8621
8621
|
for: P(f),
|
|
8622
8622
|
class: "g-toggle-option g-right",
|
|
@@ -8630,19 +8630,22 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8630
8630
|
checked: r.value === !0,
|
|
8631
8631
|
disabled: e.disabled,
|
|
8632
8632
|
onChange: n[3] ||= (e) => o(!0)
|
|
8633
|
-
}, null, 40,
|
|
8634
|
-
], 2)], 10,
|
|
8633
|
+
}, null, 40, bm), n[7] ||= J("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, ym)
|
|
8634
|
+
], 2)], 10, dm)]), e.error ? (G(), K("div", {
|
|
8635
8635
|
key: 0,
|
|
8636
8636
|
id: `${P(c)}-error`,
|
|
8637
8637
|
class: "g-form-error",
|
|
8638
8638
|
role: "alert",
|
|
8639
8639
|
"aria-atomic": "true"
|
|
8640
|
-
}, A(e.error), 9,
|
|
8640
|
+
}, A(e.error), 9, xm)) : Z("", !0)]));
|
|
8641
8641
|
}
|
|
8642
|
-
}), [["styles", ["
|
|
8642
|
+
}), [["styles", [""]]]), Cm = ["id"], wm = { class: "g-tree-menu__divider" }, Tm = {
|
|
8643
|
+
key: 0,
|
|
8644
|
+
class: "g-tree-menu__expand-all-wrapper"
|
|
8645
|
+
}, Em = { class: "g-tree-menu__content" }, Dm = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
8643
8646
|
__name: "GTreeMenu",
|
|
8644
8647
|
props: {
|
|
8645
|
-
|
|
8648
|
+
heading: { type: String },
|
|
8646
8649
|
listType: {
|
|
8647
8650
|
default: "ul",
|
|
8648
8651
|
type: String
|
|
@@ -8651,18 +8654,40 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8651
8654
|
default: "light",
|
|
8652
8655
|
type: String
|
|
8653
8656
|
},
|
|
8654
|
-
storageKey: { type: String }
|
|
8657
|
+
storageKey: { type: String },
|
|
8658
|
+
showExpandAll: {
|
|
8659
|
+
type: Boolean,
|
|
8660
|
+
default: !1
|
|
8661
|
+
}
|
|
8655
8662
|
},
|
|
8656
8663
|
setup(e) {
|
|
8657
8664
|
let t = e, n = z();
|
|
8658
8665
|
Kn("g-tree-menu-list-type", t.listType), Kn("g-tree-menu-expanded-storage", t.storageKey ? Gc(t.storageKey, {}) : null);
|
|
8659
|
-
|
|
8660
|
-
|
|
8666
|
+
let r = /* @__PURE__ */ Ht(/* @__PURE__ */ new Map());
|
|
8667
|
+
Kn("g-tree-menu-expandable-items", r);
|
|
8668
|
+
let i = /* @__PURE__ */ N({
|
|
8669
|
+
expanded: !0,
|
|
8670
|
+
version: 0
|
|
8671
|
+
});
|
|
8672
|
+
Kn("g-tree-menu-expand-all-signal", i);
|
|
8673
|
+
let a = Q(() => {
|
|
8674
|
+
if (r.size === 0) return !1;
|
|
8675
|
+
for (let e of r.values()) if (!e) return !1;
|
|
8676
|
+
return !0;
|
|
8677
|
+
});
|
|
8678
|
+
function o() {
|
|
8679
|
+
i.value = {
|
|
8680
|
+
expanded: !a.value,
|
|
8681
|
+
version: i.value.version + 1
|
|
8682
|
+
};
|
|
8683
|
+
}
|
|
8684
|
+
function s(e) {
|
|
8685
|
+
return e.querySelector("a, button, [tabindex='0']") || e;
|
|
8661
8686
|
}
|
|
8662
|
-
function
|
|
8687
|
+
function c(e) {
|
|
8663
8688
|
return Array.from(e.querySelectorAll("[data-tree-primary]"));
|
|
8664
8689
|
}
|
|
8665
|
-
function
|
|
8690
|
+
function l(e) {
|
|
8666
8691
|
let t = e.currentTarget, n = document.activeElement;
|
|
8667
8692
|
if (!t.contains(n) || ![
|
|
8668
8693
|
"ArrowUp",
|
|
@@ -8672,64 +8697,76 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8672
8697
|
"Home",
|
|
8673
8698
|
"End"
|
|
8674
8699
|
].includes(e.key)) return;
|
|
8675
|
-
let
|
|
8700
|
+
let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = c(t), o = i ? a.indexOf(i) : -1;
|
|
8676
8701
|
switch (e.key) {
|
|
8677
8702
|
case "ArrowDown": {
|
|
8678
|
-
let e =
|
|
8679
|
-
e &&
|
|
8703
|
+
let e = a[o + 1];
|
|
8704
|
+
e && s(e).focus();
|
|
8680
8705
|
break;
|
|
8681
8706
|
}
|
|
8682
8707
|
case "ArrowUp": {
|
|
8683
|
-
let e =
|
|
8684
|
-
e &&
|
|
8708
|
+
let e = a[o - 1];
|
|
8709
|
+
e && s(e).focus();
|
|
8685
8710
|
break;
|
|
8686
8711
|
}
|
|
8687
8712
|
case "ArrowRight":
|
|
8688
|
-
if (!
|
|
8689
|
-
if (
|
|
8690
|
-
let e =
|
|
8713
|
+
if (!r || r.dataset.treeExpandable !== "true") break;
|
|
8714
|
+
if (r.querySelector("[aria-expanded='true']") === null) {
|
|
8715
|
+
let e = r.querySelector(".g-tree-menu__toggle-btn");
|
|
8691
8716
|
e && e.click();
|
|
8692
8717
|
} else {
|
|
8693
|
-
let e =
|
|
8694
|
-
e &&
|
|
8718
|
+
let e = a[o + 1];
|
|
8719
|
+
e && s(e).focus();
|
|
8695
8720
|
}
|
|
8696
8721
|
break;
|
|
8697
8722
|
case "ArrowLeft":
|
|
8698
|
-
if (!
|
|
8699
|
-
if (
|
|
8700
|
-
let e =
|
|
8701
|
-
e && e.click(),
|
|
8723
|
+
if (!r) break;
|
|
8724
|
+
if (r.querySelector("[aria-expanded='true']") !== null) {
|
|
8725
|
+
let e = r.querySelector(".g-tree-menu__toggle-btn");
|
|
8726
|
+
e && e.click(), i && F(() => s(i).focus());
|
|
8702
8727
|
} else {
|
|
8703
|
-
let e =
|
|
8728
|
+
let e = r.parentElement?.closest(".g-tree-menu__item");
|
|
8704
8729
|
if (e) {
|
|
8705
8730
|
let t = e.querySelector("[data-tree-primary]");
|
|
8706
|
-
t &&
|
|
8731
|
+
t && s(t).focus();
|
|
8707
8732
|
}
|
|
8708
8733
|
}
|
|
8709
8734
|
break;
|
|
8710
8735
|
case "Home":
|
|
8711
|
-
|
|
8736
|
+
a.length > 0 && s(a[0]).focus();
|
|
8712
8737
|
break;
|
|
8713
8738
|
case "End":
|
|
8714
|
-
|
|
8739
|
+
a.length > 0 && s(a[a.length - 1]).focus();
|
|
8715
8740
|
break;
|
|
8716
8741
|
}
|
|
8717
8742
|
e.preventDefault();
|
|
8718
8743
|
}
|
|
8719
8744
|
return (r, i) => (G(), K("nav", Va({ class: ["g-tree-menu", `g-tree-menu--${t.theme}`] }, {
|
|
8720
|
-
"aria-labelledby": e.
|
|
8721
|
-
"aria-label": e.
|
|
8722
|
-
}, { onKeydown:
|
|
8723
|
-
e.
|
|
8745
|
+
"aria-labelledby": e.heading ? P(n) : void 0,
|
|
8746
|
+
"aria-label": e.heading ? void 0 : "Tree Menu"
|
|
8747
|
+
}, { onKeydown: l }), [
|
|
8748
|
+
e.heading ? (G(), K("h2", {
|
|
8724
8749
|
key: 0,
|
|
8725
8750
|
id: P(n),
|
|
8726
8751
|
class: "g-tree-menu__title"
|
|
8727
|
-
}, A(e.
|
|
8728
|
-
i[
|
|
8729
|
-
|
|
8752
|
+
}, A(e.heading), 9, Cm)) : Z("", !0),
|
|
8753
|
+
J("div", wm, [i[1] ||= J("div", { class: "g-tree-menu__divider-line" }, null, -1), e.showExpandAll ? (G(), K("div", Tm, [J("button", {
|
|
8754
|
+
class: "g-tree-menu__expand-all-btn",
|
|
8755
|
+
onClick: o
|
|
8756
|
+
}, [(G(), K("svg", {
|
|
8757
|
+
class: k(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": a.value }]),
|
|
8758
|
+
role: "none presentation",
|
|
8759
|
+
viewBox: "0 0 24 24",
|
|
8760
|
+
fill: "none",
|
|
8761
|
+
stroke: "currentColor",
|
|
8762
|
+
"stroke-width": "2.5",
|
|
8763
|
+
"stroke-linecap": "round",
|
|
8764
|
+
"stroke-linejoin": "round"
|
|
8765
|
+
}, [...i[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(" " + A(a.value ? "Collapse all" : "Expand all"), 1)])])) : Z("", !0)]),
|
|
8766
|
+
J("div", Em, [V(r.$slots, "default")])
|
|
8730
8767
|
], 16));
|
|
8731
8768
|
}
|
|
8732
|
-
}), [["styles", ["
|
|
8769
|
+
}), [["styles", [""]]]), Om = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
8733
8770
|
name: "GTreeMenuList",
|
|
8734
8771
|
props: { listType: {
|
|
8735
8772
|
default: void 0,
|
|
@@ -8738,19 +8775,18 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8738
8775
|
setup(e) {
|
|
8739
8776
|
let t = e, n = qn("g-tree-menu-list-type", "ul"), r = Q(() => t.listType ?? n ?? "ul");
|
|
8740
8777
|
return (e, t) => (G(), q(ni(r.value), { class: "g-tree-menu__list" }, {
|
|
8741
|
-
default: I(() => [V(e.$slots, "default"
|
|
8778
|
+
default: I(() => [V(e.$slots, "default")]),
|
|
8742
8779
|
_: 3
|
|
8743
8780
|
}));
|
|
8744
8781
|
}
|
|
8745
|
-
}), [["styles", ["
|
|
8782
|
+
}), [["styles", [""]]]), km = ["data-tree-expandable"], Am = {
|
|
8746
8783
|
key: 0,
|
|
8747
8784
|
class: "g-tree-menu__row"
|
|
8748
|
-
},
|
|
8785
|
+
}, jm = { class: "g-tree-menu__row-content-text" }, Mm = {
|
|
8749
8786
|
key: 1,
|
|
8750
8787
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
8751
8788
|
}, Nm = {
|
|
8752
8789
|
class: "g-tree-menu__row-content",
|
|
8753
|
-
tabindex: "-1",
|
|
8754
8790
|
"data-tree-primary": ""
|
|
8755
8791
|
}, Pm = /* @__PURE__ */ $(/* @__PURE__ */ R({
|
|
8756
8792
|
name: "GTreeMenuItem",
|
|
@@ -8763,39 +8799,60 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8763
8799
|
},
|
|
8764
8800
|
emits: ["expand", "collapse"],
|
|
8765
8801
|
setup(e, { emit: t }) {
|
|
8766
|
-
let n = e, r = t, i = ui(), a =
|
|
8767
|
-
function
|
|
8768
|
-
if (
|
|
8769
|
-
|
|
8770
|
-
|
|
8802
|
+
let n = e, r = t, i = ui(), a = qa(), o = z(), s = (a?.ce)?._slots?.children?.length > 0, c = Q(() => !!i.children || s), l = qn("g-tree-menu-expanded-storage", null);
|
|
8803
|
+
function u() {
|
|
8804
|
+
if (l && n.label !== void 0) {
|
|
8805
|
+
if (l.value[n.label] === !0) return !0;
|
|
8806
|
+
n.expanded && (l.value[n.label] = !0);
|
|
8771
8807
|
}
|
|
8772
8808
|
return n.expanded;
|
|
8773
8809
|
}
|
|
8774
|
-
let
|
|
8810
|
+
let d = /* @__PURE__ */ N(u());
|
|
8775
8811
|
L(() => n.expanded, (e) => {
|
|
8776
|
-
|
|
8777
|
-
}), L(
|
|
8778
|
-
|
|
8812
|
+
l && n.label !== void 0 || (d.value = e);
|
|
8813
|
+
}), L(d, (e) => {
|
|
8814
|
+
l && n.label !== void 0 && (e ? l.value[n.label] = !0 : delete l.value[n.label]), p();
|
|
8779
8815
|
});
|
|
8780
|
-
|
|
8781
|
-
|
|
8816
|
+
let f = /* @__PURE__ */ N(null);
|
|
8817
|
+
function p() {
|
|
8818
|
+
if (!c.value || !f.value) return;
|
|
8819
|
+
let e = f.value.querySelector("a, button");
|
|
8820
|
+
e ? (e.setAttribute("aria-controls", o + "-children"), e.setAttribute("aria-expanded", d.value ? "true" : "false")) : console.warn("No focusable element found for GTreeMenuItem with label:", n.label, "Every item must at least have a plain button to properly work for accessibility.");
|
|
8782
8821
|
}
|
|
8783
|
-
|
|
8784
|
-
|
|
8822
|
+
Gr(p), qr(p);
|
|
8823
|
+
function m() {
|
|
8824
|
+
d.value = !d.value, d.value ? r("expand") : r("collapse");
|
|
8785
8825
|
}
|
|
8786
|
-
|
|
8787
|
-
|
|
8826
|
+
let h = Symbol(), g = qn("g-tree-menu-expandable-items", null), _ = qn("g-tree-menu-expand-all-signal", null), v = /* @__PURE__ */ N(0);
|
|
8827
|
+
function y() {
|
|
8828
|
+
g && c.value && g.set(h, d.value);
|
|
8829
|
+
}
|
|
8830
|
+
function b() {
|
|
8831
|
+
g?.delete(h);
|
|
8832
|
+
}
|
|
8833
|
+
L(d, (e) => {
|
|
8834
|
+
g && c.value && g.set(h, e);
|
|
8835
|
+
}), _ && L(() => _.value.version, () => {
|
|
8836
|
+
c.value && (d.value = _.value.expanded, v.value = _.value.version);
|
|
8837
|
+
}), Gr(() => {
|
|
8838
|
+
y(), _ && c.value && _.value.version > v.value && _.value.expanded && (d.value = !0, v.value = _.value.version);
|
|
8839
|
+
}), Jr(() => {
|
|
8840
|
+
b();
|
|
8841
|
+
});
|
|
8842
|
+
function x(e) {
|
|
8843
|
+
e.target.closest("a") || m();
|
|
8844
|
+
}
|
|
8845
|
+
function S(e) {
|
|
8846
|
+
(e.key === "Enter" || e.key === " ") && (m(), e.preventDefault());
|
|
8788
8847
|
}
|
|
8789
|
-
return (
|
|
8848
|
+
return (e, t) => (G(), K("li", {
|
|
8790
8849
|
class: "g-tree-menu__item",
|
|
8791
|
-
"data-tree-expandable":
|
|
8792
|
-
}, [
|
|
8850
|
+
"data-tree-expandable": c.value ? "true" : void 0
|
|
8851
|
+
}, [c.value ? (G(), K("div", Am, [J("div", {
|
|
8793
8852
|
class: "g-tree-menu__toggle-btn",
|
|
8794
|
-
|
|
8795
|
-
"aria-label": e.label ? `${e.label} sub-menu` : "Sub-menu",
|
|
8796
|
-
onClick: u
|
|
8853
|
+
onClick: m
|
|
8797
8854
|
}, [(G(), K("svg", {
|
|
8798
|
-
class: k(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded":
|
|
8855
|
+
class: k(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": d.value }]),
|
|
8799
8856
|
role: "none presentation",
|
|
8800
8857
|
viewBox: "0 0 24 24",
|
|
8801
8858
|
fill: "none",
|
|
@@ -8803,18 +8860,22 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8803
8860
|
"stroke-width": "2.5",
|
|
8804
8861
|
"stroke-linecap": "round",
|
|
8805
8862
|
"stroke-linejoin": "round"
|
|
8806
|
-
}, [...
|
|
8863
|
+
}, [...t[0] ||= [J("polyline", { points: "9 18 15 12 9 6" }, null, -1)]], 2))]), J("span", {
|
|
8864
|
+
ref_key: "contentRef",
|
|
8865
|
+
ref: f,
|
|
8807
8866
|
class: "g-tree-menu__row-content",
|
|
8808
|
-
tabindex: "-1",
|
|
8809
8867
|
"data-tree-primary": "",
|
|
8810
|
-
onClick:
|
|
8811
|
-
onKeydown:
|
|
8812
|
-
}, [J("span", jm, [V(
|
|
8813
|
-
|
|
8868
|
+
onClick: x,
|
|
8869
|
+
onKeydown: S
|
|
8870
|
+
}, [J("span", jm, [V(e.$slots, "default")])], 544)])) : (G(), K("div", Mm, [t[1] ||= J("span", { class: "g-tree-menu__spacer" }, null, -1), J("span", Nm, [V(e.$slots, "default")])])), c.value && d.value ? (G(), q(Om, {
|
|
8871
|
+
key: 2,
|
|
8872
|
+
id: P(o) + "-children"
|
|
8873
|
+
}, {
|
|
8874
|
+
default: I(() => [V(e.$slots, "children")]),
|
|
8814
8875
|
_: 3
|
|
8815
|
-
})) : Z("", !0)], 8,
|
|
8876
|
+
}, 8, ["id"])) : Z("", !0)], 8, km));
|
|
8816
8877
|
}
|
|
8817
|
-
}), [["styles", ["
|
|
8878
|
+
}), [["styles", [""]]]), Fm = { class: "g-user-menu" }, Im = [
|
|
8818
8879
|
"aria-label",
|
|
8819
8880
|
"aria-expanded",
|
|
8820
8881
|
"onClick"
|
|
@@ -8836,7 +8897,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8836
8897
|
let t = `${z()}-email`, n = /* @__PURE__ */ N(!1), r = jr("emailHeading");
|
|
8837
8898
|
qa()?.appContext?.components?.RouterLink;
|
|
8838
8899
|
let i = ui();
|
|
8839
|
-
return (a, o) => (G(), K("div", Fm, [Y(
|
|
8900
|
+
return (a, o) => (G(), K("div", Fm, [Y(af, {
|
|
8840
8901
|
modelValue: n.value,
|
|
8841
8902
|
"onUpdate:modelValue": o[0] ||= (e) => n.value = e,
|
|
8842
8903
|
minimal: ""
|
|
@@ -8862,7 +8923,7 @@ var dp = { class: "g-table-outer-wrap" }, fp = {
|
|
|
8862
8923
|
_: 1
|
|
8863
8924
|
}, 8, ["modelValue"])]));
|
|
8864
8925
|
}
|
|
8865
|
-
}), [["styles", ["
|
|
8926
|
+
}), [["styles", [""]]]), Bm = globalThis;
|
|
8866
8927
|
Bm.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ = !0;
|
|
8867
8928
|
var Vm = {
|
|
8868
8929
|
shadowRoot: !1,
|
|
@@ -8871,60 +8932,50 @@ var Vm = {
|
|
|
8871
8932
|
Bm.__GRAD_VUE_WC_APP_ID__ = t, e.config.idPrefix = `g-wc-${t}-`;
|
|
8872
8933
|
}
|
|
8873
8934
|
}, Hm = [
|
|
8874
|
-
["g-alert-dialog",
|
|
8875
|
-
["g-app-header",
|
|
8876
|
-
["g-button",
|
|
8877
|
-
["g-checkbox-group",
|
|
8878
|
-
["g-clipboard",
|
|
8879
|
-
["g-currency-input",
|
|
8880
|
-
["g-date-input",
|
|
8881
|
-
["g-date-range-input",
|
|
8882
|
-
["g-detail-list",
|
|
8883
|
-
["g-detail-list-item",
|
|
8884
|
-
["g-email-input",
|
|
8885
|
-
["g-file-input",
|
|
8886
|
-
["g-form",
|
|
8887
|
-
["g-hamburger-menu",
|
|
8888
|
-
["g-history-scroller",
|
|
8889
|
-
["g-modal",
|
|
8890
|
-
["g-multi-select",
|
|
8891
|
-
["g-overlay",
|
|
8892
|
-
["g-popover",
|
|
8893
|
-
["g-tooltip",
|
|
8894
|
-
["g-progress",
|
|
8895
|
-
["g-search",
|
|
8896
|
-
["g-select",
|
|
8897
|
-
["g-select-button",
|
|
8898
|
-
["g-sidebar",
|
|
8899
|
-
["g-sidebar-menu",
|
|
8900
|
-
["g-submit-button",
|
|
8901
|
-
["g-table",
|
|
8902
|
-
["g-table-body",
|
|
8903
|
-
["g-table-pagination",
|
|
8904
|
-
["g-term-selector",
|
|
8905
|
-
["g-term-selector-control",
|
|
8906
|
-
["g-text-input",
|
|
8907
|
-
["g-textarea",
|
|
8908
|
-
["g-three-way-toggle",
|
|
8909
|
-
["g-tree-menu",
|
|
8910
|
-
["g-tree-menu-list",
|
|
8935
|
+
["g-alert-dialog", lu],
|
|
8936
|
+
["g-app-header", gu],
|
|
8937
|
+
["g-button", ru],
|
|
8938
|
+
["g-checkbox-group", Nu],
|
|
8939
|
+
["g-clipboard", Wu],
|
|
8940
|
+
["g-currency-input", Qu],
|
|
8941
|
+
["g-date-input", $u],
|
|
8942
|
+
["g-date-range-input", od],
|
|
8943
|
+
["g-detail-list", sd],
|
|
8944
|
+
["g-detail-list-item", dd],
|
|
8945
|
+
["g-email-input", fd],
|
|
8946
|
+
["g-file-input", yd],
|
|
8947
|
+
["g-form", xd],
|
|
8948
|
+
["g-hamburger-menu", Ed],
|
|
8949
|
+
["g-history-scroller", jd],
|
|
8950
|
+
["g-modal", Ld],
|
|
8951
|
+
["g-multi-select", Qd],
|
|
8952
|
+
["g-overlay", ef],
|
|
8953
|
+
["g-popover", af],
|
|
8954
|
+
["g-tooltip", of],
|
|
8955
|
+
["g-progress", df],
|
|
8956
|
+
["g-search", xf],
|
|
8957
|
+
["g-select", jf],
|
|
8958
|
+
["g-select-button", Rf],
|
|
8959
|
+
["g-sidebar", Bf],
|
|
8960
|
+
["g-sidebar-menu", Wf],
|
|
8961
|
+
["g-submit-button", Gf],
|
|
8962
|
+
["g-table", Rp],
|
|
8963
|
+
["g-table-body", op],
|
|
8964
|
+
["g-table-pagination", qp],
|
|
8965
|
+
["g-term-selector", tm],
|
|
8966
|
+
["g-term-selector-control", Zp],
|
|
8967
|
+
["g-text-input", Zu],
|
|
8968
|
+
["g-textarea", sm],
|
|
8969
|
+
["g-three-way-toggle", Sm],
|
|
8970
|
+
["g-tree-menu", Dm],
|
|
8971
|
+
["g-tree-menu-list", Om],
|
|
8911
8972
|
["g-tree-menu-item", Pm],
|
|
8912
8973
|
["g-user-menu", zm]
|
|
8913
|
-
]
|
|
8914
|
-
function Km(e) {
|
|
8915
|
-
let t = e.__vccOpts || e;
|
|
8916
|
-
if (t.styles) for (let e of t.styles) Gm.has(e) || (Gm.add(e), Wm.push(e));
|
|
8917
|
-
}
|
|
8974
|
+
];
|
|
8918
8975
|
for (let [e, t] of Hm) {
|
|
8919
|
-
Km(t);
|
|
8920
8976
|
let n = /* @__PURE__ */ ys(t, Vm);
|
|
8921
8977
|
customElements.define(e, n);
|
|
8922
8978
|
}
|
|
8923
|
-
for (let e of Um) Km(e);
|
|
8924
|
-
if (Wm.length > 0 && typeof document < "u") {
|
|
8925
|
-
let e = document.createElement("style");
|
|
8926
|
-
e.setAttribute("data-grad-vue-elements", ""), e.textContent = Wm.join("\n"), document.head.appendChild(e);
|
|
8927
|
-
}
|
|
8928
8979
|
//#endregion
|
|
8929
8980
|
|
|
8930
8981
|
//# sourceMappingURL=grad-vue-elements.js.map
|