@illinois-grad/grad-vue 3.0.1 → 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/custom-elements.json +10 -0
- package/dist/components/GTreeMenu.vue.d.ts +18 -0
- package/dist/components/tree-menu/GTreeMenuItem.vue.d.ts +6 -4
- package/dist/{grad-vue-CCVxlgyA.js → grad-vue-SX-RHHr3.js} +260 -207
- package/dist/grad-vue-SX-RHHr3.js.map +1 -0
- package/dist/grad-vue-elements.css +35 -57
- package/dist/grad-vue-elements.js +162 -105
- 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-CCVxlgyA.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, guardReactiveProps as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onBeforeUnmount as x, onMounted as S, onUpdated as C, openBlock as w, provide as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, shallowReactive as j, shallowRef as M, toDisplayString as N, toRaw as P, toRef as F, toValue as I, unref as L, useAttrs as R, useId as z, useModel as B, useSlots as V, useTemplateRef as H, vModelCheckbox as U, vShow as ee, watch as W, watchEffect as G, withCtx as K, withDirectives as q, withModifiers as J } from "vue";
|
|
2
|
-
import { createEventHook as Y, toArray as te, tryOnScopeDispose as X, unrefElement as
|
|
3
|
-
import { createFocusTrap as
|
|
2
|
+
import { createEventHook as Y, toArray as te, tryOnScopeDispose as X, unrefElement as Z, useClipboard as ne, useDebounceFn as re, useFocusWithin as ie, useIntersectionObserver as ae, useMediaQuery as oe, useMutationObserver as se, useResizeObserver as ce, useSessionStorage as le } from "@vueuse/core";
|
|
3
|
+
import { createFocusTrap as ue } from "focus-trap";
|
|
4
4
|
//#region src/compose/useCustomElementAttrs.ts
|
|
5
|
-
function
|
|
5
|
+
function de() {
|
|
6
6
|
return globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function fe(e = {}) {
|
|
9
9
|
let t = R(), n = globalThis.__GRAD_VUE_IS_WEB_COMPONENTS_BUILD__ === !0, i = e.omitInCustomElement ?? [];
|
|
10
10
|
return {
|
|
11
11
|
attrs: t,
|
|
@@ -20,7 +20,7 @@ function pe(e = {}) {
|
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/components/GButton.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
-
var
|
|
23
|
+
var pe = { class: "g-btn--icon" }, me = { class: "g-btn--label" }, Q = /* @__PURE__ */ u({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
__name: "GButton",
|
|
26
26
|
props: {
|
|
@@ -51,7 +51,7 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
51
51
|
"mouseleave"
|
|
52
52
|
],
|
|
53
53
|
setup(t) {
|
|
54
|
-
let n = t, a = V(), { forwardedAttrs: c } =
|
|
54
|
+
let n = t, a = V(), { forwardedAttrs: c } = fe({ omitInCustomElement: ["id"] }), l = r(() => [
|
|
55
55
|
"g-btn",
|
|
56
56
|
`g-btn--${n.size}`,
|
|
57
57
|
`g-btn--${n.theme}`,
|
|
@@ -79,11 +79,11 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
79
79
|
onMouseenter: u[7] ||= (e) => r.$emit("mouseenter", e),
|
|
80
80
|
onMouseleave: u[8] ||= (e) => r.$emit("mouseleave", e)
|
|
81
81
|
}), {
|
|
82
|
-
default: K(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span",
|
|
82
|
+
default: K(() => [t.icon || a.icon ? (w(), o(e, { key: 0 }, [s("span", pe, [a.icon ? k(r.$slots, "icon", { key: 0 }) : (w(), o("span", {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: _(t.icon + " g-btn--icon-span"),
|
|
85
85
|
"aria-hidden": "true"
|
|
86
|
-
}, null, 2))]), s("span",
|
|
86
|
+
}, null, 2))]), s("span", me, [k(r.$slots, "default")])], 64)) : k(r.$slots, "default", { key: 1 })]),
|
|
87
87
|
_: 3
|
|
88
88
|
}, 16, [
|
|
89
89
|
"to",
|
|
@@ -91,24 +91,49 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
91
91
|
"type"
|
|
92
92
|
]));
|
|
93
93
|
}
|
|
94
|
-
}),
|
|
94
|
+
}), he = ["id"], ge = { class: "g-tree-menu__divider" }, _e = {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: "g-tree-menu__expand-all-wrapper"
|
|
97
|
+
}, ve = { class: "g-tree-menu__content" }, ye = /* @__PURE__ */ u({
|
|
95
98
|
__name: "GTreeMenu",
|
|
96
99
|
props: {
|
|
97
100
|
heading: {},
|
|
98
101
|
listType: { default: "ul" },
|
|
99
102
|
theme: { default: "light" },
|
|
100
|
-
storageKey: {}
|
|
103
|
+
storageKey: {},
|
|
104
|
+
showExpandAll: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: !1
|
|
107
|
+
}
|
|
101
108
|
},
|
|
102
109
|
setup(e) {
|
|
103
110
|
let t = e, n = z();
|
|
104
|
-
T("g-tree-menu-list-type", t.listType), T("g-tree-menu-expanded-storage", t.storageKey ?
|
|
105
|
-
|
|
111
|
+
T("g-tree-menu-list-type", t.listType), T("g-tree-menu-expanded-storage", t.storageKey ? le(t.storageKey, {}) : null);
|
|
112
|
+
let i = E(/* @__PURE__ */ new Map());
|
|
113
|
+
T("g-tree-menu-expandable-items", i);
|
|
114
|
+
let l = D({
|
|
115
|
+
expanded: !0,
|
|
116
|
+
version: 0
|
|
117
|
+
});
|
|
118
|
+
T("g-tree-menu-expand-all-signal", l);
|
|
119
|
+
let u = r(() => {
|
|
120
|
+
if (i.size === 0) return !1;
|
|
121
|
+
for (let e of i.values()) if (!e) return !1;
|
|
122
|
+
return !0;
|
|
123
|
+
});
|
|
124
|
+
function d() {
|
|
125
|
+
l.value = {
|
|
126
|
+
expanded: !u.value,
|
|
127
|
+
version: l.value.version + 1
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function f(e) {
|
|
106
131
|
return e.querySelector("a, button, [tabindex='0']") || e;
|
|
107
132
|
}
|
|
108
|
-
function
|
|
133
|
+
function p(e) {
|
|
109
134
|
return Array.from(e.querySelectorAll("[data-tree-primary]"));
|
|
110
135
|
}
|
|
111
|
-
function
|
|
136
|
+
function m(e) {
|
|
112
137
|
let t = e.currentTarget, n = document.activeElement;
|
|
113
138
|
if (!t.contains(n) || ![
|
|
114
139
|
"ArrowUp",
|
|
@@ -118,46 +143,46 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
118
143
|
"Home",
|
|
119
144
|
"End"
|
|
120
145
|
].includes(e.key)) return;
|
|
121
|
-
let
|
|
146
|
+
let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = p(t), o = i ? a.indexOf(i) : -1;
|
|
122
147
|
switch (e.key) {
|
|
123
148
|
case "ArrowDown": {
|
|
124
|
-
let e =
|
|
125
|
-
e &&
|
|
149
|
+
let e = a[o + 1];
|
|
150
|
+
e && f(e).focus();
|
|
126
151
|
break;
|
|
127
152
|
}
|
|
128
153
|
case "ArrowUp": {
|
|
129
|
-
let e =
|
|
130
|
-
e &&
|
|
154
|
+
let e = a[o - 1];
|
|
155
|
+
e && f(e).focus();
|
|
131
156
|
break;
|
|
132
157
|
}
|
|
133
158
|
case "ArrowRight":
|
|
134
|
-
if (!
|
|
135
|
-
if (
|
|
136
|
-
let e =
|
|
159
|
+
if (!r || r.dataset.treeExpandable !== "true") break;
|
|
160
|
+
if (r.querySelector("[aria-expanded='true']") === null) {
|
|
161
|
+
let e = r.querySelector(".g-tree-menu__toggle-btn");
|
|
137
162
|
e && e.click();
|
|
138
163
|
} else {
|
|
139
|
-
let e =
|
|
140
|
-
e &&
|
|
164
|
+
let e = a[o + 1];
|
|
165
|
+
e && f(e).focus();
|
|
141
166
|
}
|
|
142
167
|
break;
|
|
143
168
|
case "ArrowLeft":
|
|
144
|
-
if (!
|
|
145
|
-
if (
|
|
146
|
-
let e =
|
|
147
|
-
e && e.click(),
|
|
169
|
+
if (!r) break;
|
|
170
|
+
if (r.querySelector("[aria-expanded='true']") !== null) {
|
|
171
|
+
let e = r.querySelector(".g-tree-menu__toggle-btn");
|
|
172
|
+
e && e.click(), i && g(() => f(i).focus());
|
|
148
173
|
} else {
|
|
149
|
-
let e =
|
|
174
|
+
let e = r.parentElement?.closest(".g-tree-menu__item");
|
|
150
175
|
if (e) {
|
|
151
176
|
let t = e.querySelector("[data-tree-primary]");
|
|
152
|
-
t &&
|
|
177
|
+
t && f(t).focus();
|
|
153
178
|
}
|
|
154
179
|
}
|
|
155
180
|
break;
|
|
156
181
|
case "Home":
|
|
157
|
-
|
|
182
|
+
a.length > 0 && f(a[0]).focus();
|
|
158
183
|
break;
|
|
159
184
|
case "End":
|
|
160
|
-
|
|
185
|
+
a.length > 0 && f(a[a.length - 1]).focus();
|
|
161
186
|
break;
|
|
162
187
|
}
|
|
163
188
|
e.preventDefault();
|
|
@@ -165,17 +190,29 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
165
190
|
return (r, i) => (w(), o("nav", h({ class: ["g-tree-menu", `g-tree-menu--${t.theme}`] }, {
|
|
166
191
|
"aria-labelledby": e.heading ? L(n) : void 0,
|
|
167
192
|
"aria-label": e.heading ? void 0 : "Tree Menu"
|
|
168
|
-
}, { onKeydown:
|
|
193
|
+
}, { onKeydown: m }), [
|
|
169
194
|
e.heading ? (w(), o("h2", {
|
|
170
195
|
key: 0,
|
|
171
196
|
id: L(n),
|
|
172
197
|
class: "g-tree-menu__title"
|
|
173
|
-
}, N(e.heading), 9,
|
|
174
|
-
i[
|
|
175
|
-
|
|
198
|
+
}, N(e.heading), 9, he)) : a("", !0),
|
|
199
|
+
s("div", ge, [i[1] ||= s("div", { class: "g-tree-menu__divider-line" }, null, -1), e.showExpandAll ? (w(), o("div", _e, [s("button", {
|
|
200
|
+
class: "g-tree-menu__expand-all-btn",
|
|
201
|
+
onClick: d
|
|
202
|
+
}, [(w(), o("svg", {
|
|
203
|
+
class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": u.value }]),
|
|
204
|
+
role: "none presentation",
|
|
205
|
+
viewBox: "0 0 24 24",
|
|
206
|
+
fill: "none",
|
|
207
|
+
stroke: "currentColor",
|
|
208
|
+
"stroke-width": "2.5",
|
|
209
|
+
"stroke-linecap": "round",
|
|
210
|
+
"stroke-linejoin": "round"
|
|
211
|
+
}, [...i[0] ||= [s("polyline", { points: "7 8 12 13 17 8" }, null, -1), s("polyline", { points: "7 13 12 18 17 13" }, null, -1)]], 2)), c(" " + N(u.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
|
|
212
|
+
s("div", ve, [k(r.$slots, "default")])
|
|
176
213
|
], 16));
|
|
177
214
|
}
|
|
178
|
-
}),
|
|
215
|
+
}), be = /* @__PURE__ */ u({
|
|
179
216
|
name: "GTreeMenuList",
|
|
180
217
|
props: { listType: { default: void 0 } },
|
|
181
218
|
setup(e) {
|
|
@@ -185,16 +222,16 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
185
222
|
_: 3
|
|
186
223
|
}));
|
|
187
224
|
}
|
|
188
|
-
}),
|
|
225
|
+
}), xe = ["data-tree-expandable"], Se = {
|
|
189
226
|
key: 0,
|
|
190
227
|
class: "g-tree-menu__row"
|
|
191
|
-
},
|
|
228
|
+
}, Ce = { class: "g-tree-menu__row-content-text" }, we = {
|
|
192
229
|
key: 1,
|
|
193
230
|
class: "g-tree-menu__row g-tree-menu__row--leaf"
|
|
194
|
-
},
|
|
231
|
+
}, Te = {
|
|
195
232
|
class: "g-tree-menu__row-content",
|
|
196
233
|
"data-tree-primary": ""
|
|
197
|
-
},
|
|
234
|
+
}, Ee = /* @__PURE__ */ u({
|
|
198
235
|
name: "GTreeMenuItem",
|
|
199
236
|
props: {
|
|
200
237
|
label: {},
|
|
@@ -207,36 +244,56 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
207
244
|
setup(e, { emit: t }) {
|
|
208
245
|
let n = e, c = t, l = V(), u = d(), f = z(), m = (u?.ce)?._slots?.children?.length > 0, h = r(() => !!l.children || m), g = p("g-tree-menu-expanded-storage", null);
|
|
209
246
|
function v() {
|
|
210
|
-
|
|
247
|
+
if (g && n.label !== void 0) {
|
|
248
|
+
if (g.value[n.label] === !0) return !0;
|
|
249
|
+
n.expanded && (g.value[n.label] = !0);
|
|
250
|
+
}
|
|
251
|
+
return n.expanded;
|
|
211
252
|
}
|
|
212
253
|
let y = D(v());
|
|
213
254
|
W(() => n.expanded, (e) => {
|
|
214
255
|
g && n.label !== void 0 || (y.value = e);
|
|
215
256
|
}), W(y, (e) => {
|
|
216
|
-
g && n.label !== void 0 && (e ? g.value[n.label] = !0 : delete g.value[n.label]),
|
|
257
|
+
g && n.label !== void 0 && (e ? g.value[n.label] = !0 : delete g.value[n.label]), T();
|
|
217
258
|
});
|
|
218
259
|
let b = D(null);
|
|
219
|
-
function
|
|
260
|
+
function T() {
|
|
220
261
|
if (!h.value || !b.value) return;
|
|
221
262
|
let e = b.value.querySelector("a, button");
|
|
222
263
|
e ? (e.setAttribute("aria-controls", f + "-children"), e.setAttribute("aria-expanded", y.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.");
|
|
223
264
|
}
|
|
224
|
-
S(
|
|
225
|
-
function
|
|
265
|
+
S(T), C(T);
|
|
266
|
+
function E() {
|
|
226
267
|
y.value = !y.value, y.value ? c("expand") : c("collapse");
|
|
227
268
|
}
|
|
228
|
-
|
|
229
|
-
|
|
269
|
+
let O = Symbol(), A = p("g-tree-menu-expandable-items", null), j = p("g-tree-menu-expand-all-signal", null), M = D(0);
|
|
270
|
+
function N() {
|
|
271
|
+
A && h.value && A.set(O, y.value);
|
|
230
272
|
}
|
|
231
|
-
function
|
|
232
|
-
(
|
|
273
|
+
function P() {
|
|
274
|
+
A?.delete(O);
|
|
275
|
+
}
|
|
276
|
+
W(y, (e) => {
|
|
277
|
+
A && h.value && A.set(O, e);
|
|
278
|
+
}), j && W(() => j.value.version, () => {
|
|
279
|
+
h.value && (y.value = j.value.expanded, M.value = j.value.version);
|
|
280
|
+
}), S(() => {
|
|
281
|
+
N(), j && h.value && j.value.version > M.value && j.value.expanded && (y.value = !0, M.value = j.value.version);
|
|
282
|
+
}), x(() => {
|
|
283
|
+
P();
|
|
284
|
+
});
|
|
285
|
+
function F(e) {
|
|
286
|
+
e.target.closest("a") || E();
|
|
287
|
+
}
|
|
288
|
+
function I(e) {
|
|
289
|
+
(e.key === "Enter" || e.key === " ") && (E(), e.preventDefault());
|
|
233
290
|
}
|
|
234
291
|
return (e, t) => (w(), o("li", {
|
|
235
292
|
class: "g-tree-menu__item",
|
|
236
293
|
"data-tree-expandable": h.value ? "true" : void 0
|
|
237
|
-
}, [h.value ? (w(), o("div",
|
|
294
|
+
}, [h.value ? (w(), o("div", Se, [s("div", {
|
|
238
295
|
class: "g-tree-menu__toggle-btn",
|
|
239
|
-
onClick:
|
|
296
|
+
onClick: E
|
|
240
297
|
}, [(w(), o("svg", {
|
|
241
298
|
class: _(["g-tree-menu__chevron", { "g-tree-menu__chevron--expanded": y.value }]),
|
|
242
299
|
role: "none presentation",
|
|
@@ -251,20 +308,20 @@ var me = { class: "g-btn--icon" }, he = { class: "g-btn--label" }, Z = /* @__PUR
|
|
|
251
308
|
ref: b,
|
|
252
309
|
class: "g-tree-menu__row-content",
|
|
253
310
|
"data-tree-primary": "",
|
|
254
|
-
onClick:
|
|
255
|
-
onKeydown:
|
|
256
|
-
}, [s("span",
|
|
311
|
+
onClick: F,
|
|
312
|
+
onKeydown: I
|
|
313
|
+
}, [s("span", Ce, [k(e.$slots, "default")])], 544)])) : (w(), o("div", we, [t[1] ||= s("span", { class: "g-tree-menu__spacer" }, null, -1), s("span", Te, [k(e.$slots, "default")])])), h.value && y.value ? (w(), i(be, {
|
|
257
314
|
key: 2,
|
|
258
315
|
id: L(f) + "-children"
|
|
259
316
|
}, {
|
|
260
317
|
default: K(() => [k(e.$slots, "children")]),
|
|
261
318
|
_: 3
|
|
262
|
-
}, 8, ["id"])) : a("", !0)], 8,
|
|
319
|
+
}, 8, ["id"])) : a("", !0)], 8, xe));
|
|
263
320
|
}
|
|
264
321
|
});
|
|
265
322
|
//#endregion
|
|
266
323
|
//#region src/compose/useForm.ts
|
|
267
|
-
function
|
|
324
|
+
function De() {
|
|
268
325
|
let e = j({}), t = D(!1), n = r(() => {
|
|
269
326
|
let t = {};
|
|
270
327
|
return Object.entries(e).forEach(([e, n]) => {
|
|
@@ -306,18 +363,18 @@ function Ee() {
|
|
|
306
363
|
}
|
|
307
364
|
//#endregion
|
|
308
365
|
//#region src/compose/useWebComponentForm.ts
|
|
309
|
-
function
|
|
366
|
+
function Oe() {
|
|
310
367
|
let e = globalThis;
|
|
311
368
|
return e.__GRAD_VUE_WC_FORMS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_FORMS__;
|
|
312
369
|
}
|
|
313
|
-
function
|
|
314
|
-
let t =
|
|
315
|
-
return t.has(n) || t.set(n,
|
|
370
|
+
function ke(e = "default") {
|
|
371
|
+
let t = Oe(), n = e || "default";
|
|
372
|
+
return t.has(n) || t.set(n, De()), t.get(n);
|
|
316
373
|
}
|
|
317
374
|
//#endregion
|
|
318
375
|
//#region src/compose/useFormField.ts
|
|
319
|
-
function
|
|
320
|
-
let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (
|
|
376
|
+
function $(e) {
|
|
377
|
+
let t = R(), n = typeof t["form-key"] == "string" ? t["form-key"] : void 0, i = e.formKey ?? n ?? "default", a = p("form", null) ?? (de() ? ke(i) : null), o = r(() => {
|
|
321
378
|
let t = [];
|
|
322
379
|
return e.errors && t.push(...e.errors.value.filter(Boolean)), t;
|
|
323
380
|
}), s = r(() => o.value.length > 0), c = e.name;
|
|
@@ -336,7 +393,7 @@ function Q(e) {
|
|
|
336
393
|
}
|
|
337
394
|
//#endregion
|
|
338
395
|
//#region src/components/form/GFormErrorMessages.vue?vue&type=script&setup=true&lang.ts
|
|
339
|
-
var
|
|
396
|
+
var Ae = ["id"], je = /* @__PURE__ */ u({
|
|
340
397
|
__name: "GFormErrorMessages",
|
|
341
398
|
props: {
|
|
342
399
|
errors: {},
|
|
@@ -358,13 +415,9 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
|
|
|
358
415
|
}, [s("path", {
|
|
359
416
|
fill: "currentColor",
|
|
360
417
|
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"
|
|
361
|
-
})], -1), c(" " + N(e), 1)]))), 128))], 8,
|
|
418
|
+
})], -1), c(" " + N(e), 1)]))), 128))], 8, Ae)) : a("", !0);
|
|
362
419
|
}
|
|
363
|
-
}),
|
|
364
|
-
let n = e.__vccOpts || e;
|
|
365
|
-
for (let [e, r] of t) n[e] = r;
|
|
366
|
-
return n;
|
|
367
|
-
}, je = /* @__PURE__ */ $(Ae, [["__scopeId", "data-v-8d738358"]]), Me = ["for"], Ne = {
|
|
420
|
+
}), Me = ["for"], Ne = {
|
|
368
421
|
key: 0,
|
|
369
422
|
class: "g-text-input-required",
|
|
370
423
|
"aria-hidden": "true"
|
|
@@ -380,7 +433,7 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
|
|
|
380
433
|
], Le = {
|
|
381
434
|
key: 1,
|
|
382
435
|
class: "g-text-input-suffix"
|
|
383
|
-
}, Re = /* @__PURE__ */
|
|
436
|
+
}, Re = /* @__PURE__ */ u({
|
|
384
437
|
inheritAttrs: !1,
|
|
385
438
|
__name: "GTextInput",
|
|
386
439
|
props: /* @__PURE__ */ m({
|
|
@@ -407,7 +460,7 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
|
|
|
407
460
|
}),
|
|
408
461
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
409
462
|
setup(e, { emit: t }) {
|
|
410
|
-
let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
463
|
+
let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: g, hasErrors: v } = $({
|
|
411
464
|
name: n.name,
|
|
412
465
|
value: i,
|
|
413
466
|
errors: F(n, "errors"),
|
|
@@ -449,7 +502,7 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
|
|
|
449
502
|
key: 1,
|
|
450
503
|
id: "instructions-" + L(u),
|
|
451
504
|
class: "g-text-input-instructions"
|
|
452
|
-
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)]
|
|
505
|
+
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Pe)) : a("", !0),
|
|
453
506
|
s("div", { class: _([{ "g-text-input-field-wrapper": !0 }, `g-text-input-field-wrapper--${e.name || "nameless"}`]) }, [
|
|
454
507
|
n.prefix ? (w(), o("span", Fe, N(n.prefix), 1)) : a("", !0),
|
|
455
508
|
s("input", h({
|
|
@@ -477,7 +530,7 @@ var ke = ["id"], Ae = /* @__PURE__ */ u({
|
|
|
477
530
|
}, null, 8, ["errors", "id"])
|
|
478
531
|
], 2));
|
|
479
532
|
}
|
|
480
|
-
}),
|
|
533
|
+
}), ze = 100, Be = 200, Ve = 102, He = D([]), Ue = D([]), We = D([]);
|
|
481
534
|
function Ge() {
|
|
482
535
|
if (!(typeof document > "u")) if (We.value.length > 0) {
|
|
483
536
|
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
@@ -530,9 +583,9 @@ function Xe(e, t = {}) {
|
|
|
530
583
|
let n, { immediate: i, ...a } = t, o = M(!1), s = M(!1), c = (e) => n && n.activate(e), l = (e) => n && n.deactivate(e);
|
|
531
584
|
return W(r(() => te(I(e)).map((e) => {
|
|
532
585
|
let t = I(e);
|
|
533
|
-
return typeof t == "string" ? t :
|
|
586
|
+
return typeof t == "string" ? t : Z(t);
|
|
534
587
|
}).filter(Ye)), (e) => {
|
|
535
|
-
if (e.length) if (!n) n =
|
|
588
|
+
if (e.length) if (!n) n = ue(e, {
|
|
536
589
|
...a,
|
|
537
590
|
onActivate() {
|
|
538
591
|
o.value = !0, t.onActivate && t.onActivate();
|
|
@@ -650,7 +703,7 @@ function et(e, t, n, r) {
|
|
|
650
703
|
}
|
|
651
704
|
//#endregion
|
|
652
705
|
//#region src/components/GPopover.vue?vue&type=script&setup=true&lang.ts
|
|
653
|
-
var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "aria-label"], it = /* @__PURE__ */
|
|
706
|
+
var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "aria-label"], it = /* @__PURE__ */ u({
|
|
654
707
|
__name: "GPopover",
|
|
655
708
|
props: {
|
|
656
709
|
minimal: {
|
|
@@ -672,7 +725,7 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
672
725
|
W(F(d, "modelValue"), (e) => {
|
|
673
726
|
p.value = e;
|
|
674
727
|
});
|
|
675
|
-
let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } =
|
|
728
|
+
let m = V(), h = r(() => !!m.trigger), v = H("triggerRef"), b = H("popoverRef"), { isCustomElement: S } = fe(), C = S, T = z(), { push: E, pop: O, isTop: A, zIndex: j } = Ke(T, !0), { activate: M, deactivate: N } = Qe(b, A, !0);
|
|
676
729
|
$e([b, v], A, p, I, O), W(p, (e) => {
|
|
677
730
|
e ? (g(() => {
|
|
678
731
|
g(() => M());
|
|
@@ -734,7 +787,7 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
734
787
|
ref: v,
|
|
735
788
|
class: "g-popover-trigger",
|
|
736
789
|
id: `${L(T)}-trigger`
|
|
737
|
-
}, [k(r.$slots, "trigger", { toggle: R }
|
|
790
|
+
}, [k(r.$slots, "trigger", { toggle: R })], 8, nt)) : a("", !0), (w(), i(t, {
|
|
738
791
|
to: "#modal-root",
|
|
739
792
|
disabled: L(C)
|
|
740
793
|
}, [l(n, {
|
|
@@ -767,7 +820,7 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
767
820
|
style: y(U.value),
|
|
768
821
|
"aria-hidden": "true"
|
|
769
822
|
}, null, 6)) : a("", !0),
|
|
770
|
-
k(r.$slots, "default"
|
|
823
|
+
k(r.$slots, "default"),
|
|
771
824
|
e.minimal ? a("", !0) : (w(), o("button", {
|
|
772
825
|
key: 1,
|
|
773
826
|
class: "g-popover-close",
|
|
@@ -787,7 +840,7 @@ var tt = { class: "g-popover-wrap" }, nt = ["id"], rt = ["aria-labelledby", "ari
|
|
|
787
840
|
_: 3
|
|
788
841
|
})], 8, ["disabled"]))]));
|
|
789
842
|
}
|
|
790
|
-
}),
|
|
843
|
+
}), at = 1;
|
|
791
844
|
function ot(e = "v-gtooltip") {
|
|
792
845
|
return `${e}-${++at}`;
|
|
793
846
|
}
|
|
@@ -817,7 +870,7 @@ function dt(e) {
|
|
|
817
870
|
}
|
|
818
871
|
//#endregion
|
|
819
872
|
//#region src/components/GTooltip.vue
|
|
820
|
-
var ft = /* @__PURE__ */
|
|
873
|
+
var ft = /* @__PURE__ */ u({
|
|
821
874
|
__name: "GTooltip",
|
|
822
875
|
props: { text: {} },
|
|
823
876
|
emits: ["tooltip-hide"],
|
|
@@ -904,9 +957,9 @@ var ft = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
|
904
957
|
ref_key: "triggerRef",
|
|
905
958
|
ref: d,
|
|
906
959
|
class: "g-tooltip-trigger"
|
|
907
|
-
}, [k(e.$slots, "trigger"
|
|
960
|
+
}, [k(e.$slots, "trigger")], 512)) : a("", !0)], 512));
|
|
908
961
|
}
|
|
909
|
-
}),
|
|
962
|
+
}), pt = ["disabled"], mt = { class: "g-select-btn-legend" }, ht = {
|
|
910
963
|
key: 0,
|
|
911
964
|
class: "g-select-btn-required",
|
|
912
965
|
"aria-hidden": "true"
|
|
@@ -918,7 +971,7 @@ var ft = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
|
918
971
|
"disabled",
|
|
919
972
|
"required",
|
|
920
973
|
"onChange"
|
|
921
|
-
], vt = ["for"], yt = /* @__PURE__ */
|
|
974
|
+
], vt = ["for"], yt = /* @__PURE__ */ u({
|
|
922
975
|
__name: "GSelectButton",
|
|
923
976
|
props: /* @__PURE__ */ m({
|
|
924
977
|
options: {},
|
|
@@ -941,7 +994,7 @@ var ft = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
|
941
994
|
}),
|
|
942
995
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
943
996
|
setup(t, { emit: n }) {
|
|
944
|
-
let i = t, u = n, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } =
|
|
997
|
+
let i = t, u = n, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
|
|
945
998
|
name: i.name,
|
|
946
999
|
value: d,
|
|
947
1000
|
errors: F(i, "errors"),
|
|
@@ -978,7 +1031,7 @@ var ft = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
|
978
1031
|
id: "error-message-" + L(f)
|
|
979
1032
|
}, null, 8, ["errors", "id"])], 2)], 10, pt));
|
|
980
1033
|
}
|
|
981
|
-
}),
|
|
1034
|
+
}), bt = ["width", "height"], xt = [
|
|
982
1035
|
"cx",
|
|
983
1036
|
"cy",
|
|
984
1037
|
"r"
|
|
@@ -992,7 +1045,7 @@ var ft = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
|
992
1045
|
"cx",
|
|
993
1046
|
"cy",
|
|
994
1047
|
"r"
|
|
995
|
-
], wt = /* @__PURE__ */
|
|
1048
|
+
], wt = /* @__PURE__ */ u({
|
|
996
1049
|
__name: "GProgress",
|
|
997
1050
|
props: {
|
|
998
1051
|
label: { default: "Loading" },
|
|
@@ -1057,11 +1110,11 @@ var ft = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
|
1057
1110
|
fill: "none"
|
|
1058
1111
|
}, null, 8, Ct))], 10, bt))], 16));
|
|
1059
1112
|
}
|
|
1060
|
-
}),
|
|
1113
|
+
}), Tt = [
|
|
1061
1114
|
"id",
|
|
1062
1115
|
"aria-labelledby",
|
|
1063
1116
|
"aria-describedby"
|
|
1064
|
-
], Et = { class: "g-alertdialog-inner" }, Dt = ["id"], Ot = ["id"], kt = { class: "g-alertdialog-actions" }, At = /* @__PURE__ */
|
|
1117
|
+
], Et = { class: "g-alertdialog-inner" }, Dt = ["id"], Ot = ["id"], kt = { class: "g-alertdialog-actions" }, At = /* @__PURE__ */ u({
|
|
1065
1118
|
__name: "GAlertDialog",
|
|
1066
1119
|
props: {
|
|
1067
1120
|
label: { default: "Confirmation" },
|
|
@@ -1100,14 +1153,14 @@ var ft = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
|
1100
1153
|
s("div", {
|
|
1101
1154
|
id: "alertdialog-description-" + L(f),
|
|
1102
1155
|
class: "g-alertdialog-content"
|
|
1103
|
-
}, [k(e.$slots, "default"
|
|
1104
|
-
s("div", kt, [l(
|
|
1156
|
+
}, [k(e.$slots, "default")], 8, Ot),
|
|
1157
|
+
s("div", kt, [l(Q, {
|
|
1105
1158
|
outlined: "",
|
|
1106
1159
|
onClick: r[0] ||= (e) => o("cancel")
|
|
1107
1160
|
}, {
|
|
1108
1161
|
default: K(() => [...r[2] ||= [c("Cancel", -1)]]),
|
|
1109
1162
|
_: 1
|
|
1110
|
-
}), l(
|
|
1163
|
+
}), l(Q, {
|
|
1111
1164
|
theme: a.buttonColor,
|
|
1112
1165
|
onClick: r[1] ||= (e) => o("confirm")
|
|
1113
1166
|
}, {
|
|
@@ -1118,7 +1171,7 @@ var ft = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
|
1118
1171
|
_: 3
|
|
1119
1172
|
})]));
|
|
1120
1173
|
}
|
|
1121
|
-
})
|
|
1174
|
+
});
|
|
1122
1175
|
//#endregion
|
|
1123
1176
|
//#region src/compose/useSelectDropdown.ts
|
|
1124
1177
|
function jt(e) {
|
|
@@ -1197,7 +1250,7 @@ var Nt = ["id"], Pt = {
|
|
|
1197
1250
|
key: 1,
|
|
1198
1251
|
"aria-live": "polite",
|
|
1199
1252
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
1200
|
-
}, Ht = /* @__PURE__ */
|
|
1253
|
+
}, Ht = /* @__PURE__ */ u({
|
|
1201
1254
|
__name: "GSelect",
|
|
1202
1255
|
props: /* @__PURE__ */ m({
|
|
1203
1256
|
options: {},
|
|
@@ -1230,7 +1283,7 @@ var Nt = ["id"], Pt = {
|
|
|
1230
1283
|
}),
|
|
1231
1284
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
1232
1285
|
setup(t, { emit: n }) {
|
|
1233
|
-
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(!1), S = D(!1), { displayErrors: C, hasErrors: T } =
|
|
1286
|
+
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(!1), S = D(!1), { displayErrors: C, hasErrors: T } = $({
|
|
1234
1287
|
name: i.name,
|
|
1235
1288
|
value: d,
|
|
1236
1289
|
errors: F(i, "errors"),
|
|
@@ -1294,7 +1347,7 @@ var Nt = ["id"], Pt = {
|
|
|
1294
1347
|
function X() {
|
|
1295
1348
|
i.disabled || (y.value ? U() : H());
|
|
1296
1349
|
}
|
|
1297
|
-
function
|
|
1350
|
+
function Z(e) {
|
|
1298
1351
|
if (i.disabled) return;
|
|
1299
1352
|
let t = R.value.length - 1;
|
|
1300
1353
|
if (!y.value && [
|
|
@@ -1330,14 +1383,14 @@ var Nt = ["id"], Pt = {
|
|
|
1330
1383
|
break;
|
|
1331
1384
|
}
|
|
1332
1385
|
}
|
|
1333
|
-
function
|
|
1386
|
+
function ne(e) {
|
|
1334
1387
|
te(e);
|
|
1335
1388
|
}
|
|
1336
|
-
function
|
|
1389
|
+
function re() {
|
|
1337
1390
|
x.value = !0;
|
|
1338
1391
|
}
|
|
1339
|
-
let
|
|
1340
|
-
function
|
|
1392
|
+
let ie = r(() => i.clearButton && d.value !== null && d.value !== void 0 && !i.disabled);
|
|
1393
|
+
function ae() {
|
|
1341
1394
|
i.disabled || (d.value = null, u("change", null), i.searchable && (I.value = ""));
|
|
1342
1395
|
}
|
|
1343
1396
|
return (n, r) => (w(), o("div", { class: _(["g-select-root g-select-combo", {
|
|
@@ -1366,7 +1419,7 @@ var Nt = ["id"], Pt = {
|
|
|
1366
1419
|
disabled: i.disabled,
|
|
1367
1420
|
onFocus: G,
|
|
1368
1421
|
onInput: K,
|
|
1369
|
-
onKeydown:
|
|
1422
|
+
onKeydown: Z,
|
|
1370
1423
|
onBlur: Y,
|
|
1371
1424
|
"aria-autocomplete": "list",
|
|
1372
1425
|
"aria-controls": L(f) + "-listbox",
|
|
@@ -1378,11 +1431,11 @@ var Nt = ["id"], Pt = {
|
|
|
1378
1431
|
role: "combobox",
|
|
1379
1432
|
autocomplete: "off"
|
|
1380
1433
|
}), null, 16, Lt),
|
|
1381
|
-
|
|
1434
|
+
ie.value ? (w(), o("button", {
|
|
1382
1435
|
key: 0,
|
|
1383
1436
|
type: "button",
|
|
1384
1437
|
class: "g-select-clear-btn",
|
|
1385
|
-
onClick:
|
|
1438
|
+
onClick: ae
|
|
1386
1439
|
}, [...r[0] ||= [s("svg", {
|
|
1387
1440
|
role: "img",
|
|
1388
1441
|
"aria-label": "Clear Selection",
|
|
@@ -1418,16 +1471,16 @@ var Nt = ["id"], Pt = {
|
|
|
1418
1471
|
"aria-activedescendant": y.value ? L(f) + "-option-" + b.value : void 0,
|
|
1419
1472
|
tabindex: "0",
|
|
1420
1473
|
onClick: X,
|
|
1421
|
-
onKeydown:
|
|
1474
|
+
onKeydown: Z,
|
|
1422
1475
|
onFocus: G,
|
|
1423
1476
|
onBlur: Y
|
|
1424
1477
|
}), [
|
|
1425
1478
|
c(N(P.value[V.value] ? P.value[V.value].label : "") + " ", 1),
|
|
1426
|
-
|
|
1479
|
+
ie.value ? (w(), o("button", {
|
|
1427
1480
|
key: 0,
|
|
1428
1481
|
type: "button",
|
|
1429
1482
|
class: "g-select-clear-btn",
|
|
1430
|
-
onClick: J(
|
|
1483
|
+
onClick: J(ae, ["stop"])
|
|
1431
1484
|
}, [...r[2] ||= [s("svg", {
|
|
1432
1485
|
role: "img",
|
|
1433
1486
|
"aria-label": "Clear Selection",
|
|
@@ -1464,20 +1517,20 @@ var Nt = ["id"], Pt = {
|
|
|
1464
1517
|
}]),
|
|
1465
1518
|
role: "option",
|
|
1466
1519
|
"aria-selected": e.value === d.value ? "true" : "false",
|
|
1467
|
-
onMousedown:
|
|
1468
|
-
onClick: (e) =>
|
|
1520
|
+
onMousedown: re,
|
|
1521
|
+
onClick: (e) => ne(t)
|
|
1469
1522
|
}, [k(n.$slots, "option", {
|
|
1470
1523
|
option: e,
|
|
1471
1524
|
selected: e.value === d.value,
|
|
1472
1525
|
index: t
|
|
1473
|
-
}, () => [c(N(e.label), 1)]
|
|
1526
|
+
}, () => [c(N(e.label), 1)])], 42, Bt))), 128)) : (w(), o("div", Vt, " No results found. "))], 16, zt), [[ee, y.value]])]),
|
|
1474
1527
|
l(je, {
|
|
1475
1528
|
errors: L(C),
|
|
1476
1529
|
id: "error-message-" + L(f)
|
|
1477
1530
|
}, null, 8, ["errors", "id"])
|
|
1478
1531
|
], 2));
|
|
1479
1532
|
}
|
|
1480
|
-
}),
|
|
1533
|
+
}), Ut = ["aria-label"], Wt = [
|
|
1481
1534
|
"placeholder",
|
|
1482
1535
|
"value",
|
|
1483
1536
|
"aria-expanded",
|
|
@@ -1525,7 +1578,7 @@ var Nt = ["id"], Pt = {
|
|
|
1525
1578
|
e && e.scrollIntoView({ block: "nearest" });
|
|
1526
1579
|
});
|
|
1527
1580
|
}
|
|
1528
|
-
let { focused: S } =
|
|
1581
|
+
let { focused: S } = ie(f);
|
|
1529
1582
|
function C(e) {
|
|
1530
1583
|
let t = e.altKey;
|
|
1531
1584
|
if (e.key === "ArrowDown") {
|
|
@@ -1549,7 +1602,7 @@ var Nt = ["id"], Pt = {
|
|
|
1549
1602
|
function T(e) {
|
|
1550
1603
|
d("select", e), l.value = "", m.value = !0, h.value = -1;
|
|
1551
1604
|
}
|
|
1552
|
-
let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j =
|
|
1605
|
+
let E = r(() => !!u.loading), A = r(() => S.value && !m.value), j = re(() => {
|
|
1553
1606
|
d("submit", l.value);
|
|
1554
1607
|
}, 300);
|
|
1555
1608
|
W(() => l.value, (e) => {
|
|
@@ -1627,7 +1680,7 @@ var Nt = ["id"], Pt = {
|
|
|
1627
1680
|
}, nn = {
|
|
1628
1681
|
key: 0,
|
|
1629
1682
|
class: "g-app-header__block-i-container"
|
|
1630
|
-
}, rn = { class: "g-app-header__title" }, an = { class: "g-app-header__app-controls-wrap" }, on = /* @__PURE__ */
|
|
1683
|
+
}, rn = { class: "g-app-header__title" }, an = { class: "g-app-header__app-controls-wrap" }, on = /* @__PURE__ */ u({
|
|
1631
1684
|
__name: "GAppHeader",
|
|
1632
1685
|
props: {
|
|
1633
1686
|
illinois: {
|
|
@@ -1639,7 +1692,7 @@ var Nt = ["id"], Pt = {
|
|
|
1639
1692
|
setup(e) {
|
|
1640
1693
|
return (t, n) => (w(), o("header", $t, [
|
|
1641
1694
|
n[1] ||= s("div", { class: "g-app-header__background" }, [s("div", { class: "g-app-header__background-pattern" }), s("div", { class: "g-app-header__background-gradient" })], -1),
|
|
1642
|
-
s("div", en, [k(t.$slots, "left", {}, () => [s("a", tn, N(e.brand), 1)]
|
|
1695
|
+
s("div", en, [k(t.$slots, "left", {}, () => [s("a", tn, N(e.brand), 1)])]),
|
|
1643
1696
|
e.illinois ? (w(), o("div", nn, [...n[0] ||= [s("svg", {
|
|
1644
1697
|
class: "g-app-header__block-i",
|
|
1645
1698
|
role: "img",
|
|
@@ -1656,12 +1709,12 @@ var Nt = ["id"], Pt = {
|
|
|
1656
1709
|
class: "g-app-header__block-i-fill",
|
|
1657
1710
|
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"
|
|
1658
1711
|
})
|
|
1659
|
-
], -1)]])) : k(t.$slots, "icon", { key: 1 }
|
|
1660
|
-
s("div", rn, [k(t.$slots, "title"
|
|
1661
|
-
s("div", an, [k(t.$slots, "app-controls", { class: "g-app-header__app-controls" }
|
|
1712
|
+
], -1)]])) : k(t.$slots, "icon", { key: 1 }),
|
|
1713
|
+
s("div", rn, [k(t.$slots, "title")]),
|
|
1714
|
+
s("div", an, [k(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
|
|
1662
1715
|
]));
|
|
1663
1716
|
}
|
|
1664
|
-
})
|
|
1717
|
+
});
|
|
1665
1718
|
//#endregion
|
|
1666
1719
|
//#region src/compose/useWebComponentSidebar.ts
|
|
1667
1720
|
function sn(e) {
|
|
@@ -1678,7 +1731,7 @@ function ln(e = "default", t = "(max-width: 800px)") {
|
|
|
1678
1731
|
n.set(r, {
|
|
1679
1732
|
id: `g-wc-sidebar-${e}`,
|
|
1680
1733
|
open: D(!1),
|
|
1681
|
-
isCollapsible:
|
|
1734
|
+
isCollapsible: oe(t, { ssrWidth: 1e3 }),
|
|
1682
1735
|
toggle: () => void 0
|
|
1683
1736
|
});
|
|
1684
1737
|
}
|
|
@@ -1720,7 +1773,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1720
1773
|
sidebarKey: { default: "default" }
|
|
1721
1774
|
},
|
|
1722
1775
|
setup(e) {
|
|
1723
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (
|
|
1776
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (de() ? ln(t.sidebarKey) : void 0), i = r(() => t.backgroundImage ? t.backgroundImage : t.theme === "light" ? "none" : "url('https://gradcdn.blob.core.windows.net/public/sidebar-bg2.jpg')"), a = r(() => t.backgroundColor ? t.backgroundColor : t.theme === "light" ? "#f9f9f9" : "#030913"), s = r(() => t.topOffsetVar ? `var(${t.topOffsetVar})` : t.topOffset ? t.topOffset : "var(--g-toolbar-height)"), c = z();
|
|
1724
1777
|
function l(e) {
|
|
1725
1778
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
1726
1779
|
}
|
|
@@ -1746,7 +1799,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1746
1799
|
"href",
|
|
1747
1800
|
"aria-current",
|
|
1748
1801
|
"onClick"
|
|
1749
|
-
], hn = /* @__PURE__ */
|
|
1802
|
+
], hn = /* @__PURE__ */ u({
|
|
1750
1803
|
__name: "GSidebarMenu",
|
|
1751
1804
|
props: /* @__PURE__ */ m({
|
|
1752
1805
|
heading: {},
|
|
@@ -1821,7 +1874,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1821
1874
|
}, N(e.label), 11, mn))]))), 128))])], 512)
|
|
1822
1875
|
], 16));
|
|
1823
1876
|
}
|
|
1824
|
-
}),
|
|
1877
|
+
}), gn = {
|
|
1825
1878
|
mounted(e, t) {
|
|
1826
1879
|
let n = D(null), r = D(!1), i = D(!1), a = D(t.value), o = null, s = !1, c = st(e), l = () => {
|
|
1827
1880
|
n.value || (n.value = ct(a.value, c), lt(n.value), o = new ResizeObserver(() => {
|
|
@@ -1873,7 +1926,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1873
1926
|
let t = e._v_gtooltip;
|
|
1874
1927
|
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");
|
|
1875
1928
|
}
|
|
1876
|
-
}, _n = { class: "g-clipboard-text" }, vn = /* @__PURE__ */
|
|
1929
|
+
}, _n = { class: "g-clipboard-text" }, vn = /* @__PURE__ */ u({
|
|
1877
1930
|
__name: "GClipboard",
|
|
1878
1931
|
props: {
|
|
1879
1932
|
text: {},
|
|
@@ -1881,7 +1934,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1881
1934
|
copyLabel: {}
|
|
1882
1935
|
},
|
|
1883
1936
|
setup(t) {
|
|
1884
|
-
let n = t, r = gn, { text: i, copy: l, copied: u, isSupported: d } =
|
|
1937
|
+
let n = t, r = gn, { text: i, copy: l, copied: u, isSupported: d } = ne({ source: n.text }), f = D(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
1885
1938
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
1886
1939
|
}, m = () => {
|
|
1887
1940
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
@@ -1903,7 +1956,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1903
1956
|
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"
|
|
1904
1957
|
})], -1)]], 32)), [[L(r), f.value]])]));
|
|
1905
1958
|
}
|
|
1906
|
-
}),
|
|
1959
|
+
}), yn = { class: "g-history-scroller-wrapper" }, bn = {
|
|
1907
1960
|
key: 0,
|
|
1908
1961
|
class: "g-history-shadow g-history-shadow--top",
|
|
1909
1962
|
"aria-hidden": "true"
|
|
@@ -1911,7 +1964,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1911
1964
|
key: 1,
|
|
1912
1965
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
1913
1966
|
"aria-hidden": "true"
|
|
1914
|
-
}, Sn = ["role", "aria-label"], Cn = /* @__PURE__ */
|
|
1967
|
+
}, Sn = ["role", "aria-label"], Cn = /* @__PURE__ */ u({
|
|
1915
1968
|
__name: "GHistoryScroller",
|
|
1916
1969
|
props: {
|
|
1917
1970
|
label: {},
|
|
@@ -1935,9 +1988,9 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1935
1988
|
}
|
|
1936
1989
|
S(() => {
|
|
1937
1990
|
g(f);
|
|
1938
|
-
}),
|
|
1991
|
+
}), ce(i, () => {
|
|
1939
1992
|
u.value && f();
|
|
1940
|
-
}),
|
|
1993
|
+
}), ce(c, () => {
|
|
1941
1994
|
u.value && f();
|
|
1942
1995
|
}), W(() => n.entries, async () => {
|
|
1943
1996
|
u.value && (await g(), f());
|
|
@@ -1953,7 +2006,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1953
2006
|
role: t.label ? "log" : void 0,
|
|
1954
2007
|
"aria-label": t.label,
|
|
1955
2008
|
onScroll: p
|
|
1956
|
-
}, [l(
|
|
2009
|
+
}, [l(Q, {
|
|
1957
2010
|
class: _(["g-scroll-to-bottom-btn", { "scroll-to-bottom-btn--hidden": u.value }]),
|
|
1958
2011
|
size: "small",
|
|
1959
2012
|
type: "button",
|
|
@@ -1980,10 +2033,10 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
1980
2033
|
key: e.id,
|
|
1981
2034
|
class: "g-history-entry",
|
|
1982
2035
|
tabindex: "-1"
|
|
1983
|
-
}, [k(n.$slots, "default", { entry: e }
|
|
2036
|
+
}, [k(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Sn)
|
|
1984
2037
|
]));
|
|
1985
2038
|
}
|
|
1986
|
-
}),
|
|
2039
|
+
}), wn = { class: "g-three-way-toggle-wrapper" }, Tn = { class: "g-three-way-toggle-control" }, En = ["id"], Dn = [
|
|
1987
2040
|
"aria-labelledby",
|
|
1988
2041
|
"aria-describedby",
|
|
1989
2042
|
"disabled",
|
|
@@ -2004,7 +2057,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
2004
2057
|
"name",
|
|
2005
2058
|
"checked",
|
|
2006
2059
|
"disabled"
|
|
2007
|
-
], Ln = ["id"], Rn = /* @__PURE__ */
|
|
2060
|
+
], Ln = ["id"], Rn = /* @__PURE__ */ u({
|
|
2008
2061
|
__name: "GThreeWayToggle",
|
|
2009
2062
|
props: /* @__PURE__ */ m({
|
|
2010
2063
|
label: {},
|
|
@@ -2041,7 +2094,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
2041
2094
|
return (t, n) => (w(), o("div", wn, [s("div", Tn, [s("span", {
|
|
2042
2095
|
class: "g-label",
|
|
2043
2096
|
id: L(p)
|
|
2044
|
-
}, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)]
|
|
2097
|
+
}, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])], 8, En), s("fieldset", {
|
|
2045
2098
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2046
2099
|
role: "radiogroup",
|
|
2047
2100
|
"aria-labelledby": L(p),
|
|
@@ -2102,7 +2155,7 @@ var un = ["id"], dn = /* @__PURE__ */ u({
|
|
|
2102
2155
|
"aria-atomic": "true"
|
|
2103
2156
|
}, N(e.error), 9, Ln)) : a("", !0)]));
|
|
2104
2157
|
}
|
|
2105
|
-
}),
|
|
2158
|
+
}), zn = {
|
|
2106
2159
|
ref: "tableBodyRef",
|
|
2107
2160
|
class: "efficient-table-body"
|
|
2108
2161
|
}, Bn = ["aria-rowindex"], Vn = {
|
|
@@ -2376,7 +2429,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2376
2429
|
], Ar = ["for"], jr = {
|
|
2377
2430
|
key: 1,
|
|
2378
2431
|
class: "g-bulk-actions-toolbar"
|
|
2379
|
-
}, Mr = { class: "g-selected-count" }, Nr = { class: "g-bulk-actions" }, Pr = /* @__PURE__ */
|
|
2432
|
+
}, Mr = { class: "g-selected-count" }, Nr = { class: "g-bulk-actions" }, Pr = /* @__PURE__ */ u({
|
|
2380
2433
|
__name: "GTable",
|
|
2381
2434
|
props: /* @__PURE__ */ m({
|
|
2382
2435
|
label: {},
|
|
@@ -2459,7 +2512,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2459
2512
|
previousValue: r
|
|
2460
2513
|
});
|
|
2461
2514
|
}
|
|
2462
|
-
let Y = z(), te = V(), X = r(() => m.showPagination ? !0 : !!te.pagination),
|
|
2515
|
+
let Y = z(), te = V(), X = r(() => m.showPagination ? !0 : !!te.pagination), Z = r(() => !!(C.value || X.value));
|
|
2463
2516
|
return S(() => {
|
|
2464
2517
|
m.rowClickable && m.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
2465
2518
|
for (let e of m.columns) if (e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`), e.filter && e.filter.type === "multi-select" && !Array.isArray(f.value[e.key])) {
|
|
@@ -2472,8 +2525,8 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2472
2525
|
f.value[t.key] = e ? [e] : [];
|
|
2473
2526
|
}
|
|
2474
2527
|
}, { immediate: !0 }), (n, r) => (w(), o("div", or, [
|
|
2475
|
-
|
|
2476
|
-
s("div", cr, [L(C) ? (w(), i(
|
|
2528
|
+
Z.value ? (w(), o("div", sr, [
|
|
2529
|
+
s("div", cr, [L(C) ? (w(), i(Q, {
|
|
2477
2530
|
key: 0,
|
|
2478
2531
|
outlined: "",
|
|
2479
2532
|
size: "small",
|
|
@@ -2491,7 +2544,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2491
2544
|
})], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
2492
2545
|
_: 1
|
|
2493
2546
|
}, 8, ["onClick"])) : a("", !0)]),
|
|
2494
|
-
X.value ? (w(), o("div", lr, [k(n.$slots, "pagination"
|
|
2547
|
+
X.value ? (w(), o("div", lr, [k(n.$slots, "pagination")])) : a("", !0),
|
|
2495
2548
|
s("span", ur, N(m.resultCount || t.data.length) + " results", 1)
|
|
2496
2549
|
])) : a("", !0),
|
|
2497
2550
|
s("table", {
|
|
@@ -2581,7 +2634,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2581
2634
|
value: e.value,
|
|
2582
2635
|
name: "filter-multiselect"
|
|
2583
2636
|
}, null, 8, kr), [[U, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, N(e.label), 9, Ar)]))), 128)),
|
|
2584
|
-
f.value[t.key] && f.value[t.key].length ? (w(), i(
|
|
2637
|
+
f.value[t.key] && f.value[t.key].length ? (w(), i(Q, {
|
|
2585
2638
|
key: 0,
|
|
2586
2639
|
class: "clear-multiselect-btn",
|
|
2587
2640
|
theme: "accent",
|
|
@@ -2621,7 +2674,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2621
2674
|
"table-id",
|
|
2622
2675
|
"change-tracker"
|
|
2623
2676
|
])], 8, dr),
|
|
2624
|
-
t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div", jr, [s("span", Mr, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Nr, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(
|
|
2677
|
+
t.bulkSelectionEnabled && p.value.length > 0 ? (w(), o("div", jr, [s("span", Mr, N(p.value.length) + " row" + N(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Nr, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
|
|
2625
2678
|
theme: e.theme || "accent",
|
|
2626
2679
|
onClick: (t) => ee(e.id),
|
|
2627
2680
|
size: "small"
|
|
@@ -2631,10 +2684,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2631
2684
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
2632
2685
|
]));
|
|
2633
2686
|
}
|
|
2634
|
-
}),
|
|
2687
|
+
}), Fr = {
|
|
2635
2688
|
class: "g-pagination",
|
|
2636
2689
|
"aria-label": "Pagination"
|
|
2637
|
-
}, Ir = ["disabled"], Lr = ["disabled"], Rr = { class: "page-range" }, zr = ["disabled"], Br = ["disabled"], Vr = ["value"], Hr = ["value"], Ur = /* @__PURE__ */
|
|
2690
|
+
}, Ir = ["disabled"], Lr = ["disabled"], Rr = { class: "page-range" }, zr = ["disabled"], Br = ["disabled"], Vr = ["value"], Hr = ["value"], Ur = /* @__PURE__ */ u({
|
|
2638
2691
|
__name: "GTablePagination",
|
|
2639
2692
|
props: /* @__PURE__ */ m({
|
|
2640
2693
|
start: {},
|
|
@@ -2770,7 +2823,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2770
2823
|
}, "per page", -1)
|
|
2771
2824
|
]));
|
|
2772
2825
|
}
|
|
2773
|
-
}),
|
|
2826
|
+
}), Wr = ["id"], Gr = { class: "g-modal-inner" }, Kr = { class: "g-modal-header" }, qr = ["id"], Jr = ["id"], Yr = /* @__PURE__ */ u({
|
|
2774
2827
|
__name: "GModal",
|
|
2775
2828
|
props: {
|
|
2776
2829
|
label: {},
|
|
@@ -2834,16 +2887,16 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2834
2887
|
})], -1)]])]), s("div", {
|
|
2835
2888
|
id: "modal-description-" + L(m),
|
|
2836
2889
|
class: "g-modal-content"
|
|
2837
|
-
}, [k(r.$slots, "default"
|
|
2890
|
+
}, [k(r.$slots, "default")], 8, Jr)])], 16, Wr)]),
|
|
2838
2891
|
_: 3
|
|
2839
2892
|
})]));
|
|
2840
2893
|
}
|
|
2841
|
-
}),
|
|
2894
|
+
}), Xr = [
|
|
2842
2895
|
"id",
|
|
2843
2896
|
"aria-expanded",
|
|
2844
2897
|
"aria-label",
|
|
2845
2898
|
"aria-controls"
|
|
2846
|
-
], Zr = /* @__PURE__ */
|
|
2899
|
+
], Zr = /* @__PURE__ */ u({
|
|
2847
2900
|
__name: "GHamburgerMenu",
|
|
2848
2901
|
props: {
|
|
2849
2902
|
label: { default: "Main Navigation" },
|
|
@@ -2851,7 +2904,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2851
2904
|
},
|
|
2852
2905
|
emits: ["toggle"],
|
|
2853
2906
|
setup(e, { emit: t }) {
|
|
2854
|
-
let n = e, r = p("sidebar") ?? (
|
|
2907
|
+
let n = e, r = p("sidebar") ?? (de() ? ln(n.sidebarKey) : void 0), i = t;
|
|
2855
2908
|
function a() {
|
|
2856
2909
|
i("toggle"), r?.toggle();
|
|
2857
2910
|
}
|
|
@@ -2875,14 +2928,14 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2875
2928
|
viewBox: "0 0 51.26 51.26"
|
|
2876
2929
|
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1)]], 42, Xr));
|
|
2877
2930
|
}
|
|
2878
|
-
}),
|
|
2931
|
+
}), Qr = /* @__PURE__ */ u({
|
|
2879
2932
|
__name: "GDetailList",
|
|
2880
2933
|
props: { variant: { default: "grid" } },
|
|
2881
2934
|
setup(e) {
|
|
2882
2935
|
let t = e;
|
|
2883
|
-
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default"
|
|
2936
|
+
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
|
|
2884
2937
|
}
|
|
2885
|
-
}),
|
|
2938
|
+
}), $r = { class: "g-detail-list-item" }, ei = { class: "g-detail-list-item__label" }, ti = { class: "g-detail-list-item__value" }, ni = /* @__PURE__ */ u({
|
|
2886
2939
|
__name: "GDetailListItem",
|
|
2887
2940
|
props: { label: {} },
|
|
2888
2941
|
setup(e) {
|
|
@@ -2900,7 +2953,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2900
2953
|
_: 1
|
|
2901
2954
|
}));
|
|
2902
2955
|
}
|
|
2903
|
-
}), ai = { class: "popover-content" }, oi = { class: "year-dropdown" }, si = { class: "month-selector" }, ci = /* @__PURE__ */
|
|
2956
|
+
}), ai = { class: "popover-content" }, oi = { class: "year-dropdown" }, si = { class: "month-selector" }, ci = /* @__PURE__ */ u({
|
|
2904
2957
|
__name: "GTermSelectorControl",
|
|
2905
2958
|
props: /* @__PURE__ */ m({
|
|
2906
2959
|
termYears: { default: () => ["2026"] },
|
|
@@ -2942,10 +2995,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2942
2995
|
"label"
|
|
2943
2996
|
])])]));
|
|
2944
2997
|
}
|
|
2945
|
-
}),
|
|
2946
|
-
class: "popover-title",
|
|
2998
|
+
}), li = { class: "g-term-selector" }, ui = { class: "g-term-label" }, di = {
|
|
2999
|
+
class: "g-popover-title",
|
|
2947
3000
|
tabindex: "-1"
|
|
2948
|
-
}, fi = /* @__PURE__ */
|
|
3001
|
+
}, fi = /* @__PURE__ */ u({
|
|
2949
3002
|
__name: "GTermSelector",
|
|
2950
3003
|
props: /* @__PURE__ */ m({
|
|
2951
3004
|
heading: { default: "Period Selection" },
|
|
@@ -2968,7 +3021,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2968
3021
|
setup(e) {
|
|
2969
3022
|
let t = B(e, "modelValue");
|
|
2970
3023
|
return (n, r) => (w(), o("div", li, [l(it, null, {
|
|
2971
|
-
trigger: K(({ toggle: e }) => [l(
|
|
3024
|
+
trigger: K(({ toggle: e }) => [l(Q, {
|
|
2972
3025
|
class: "g-term-selector-button",
|
|
2973
3026
|
theme: "none",
|
|
2974
3027
|
outlined: "",
|
|
@@ -2993,11 +3046,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
2993
3046
|
_: 1
|
|
2994
3047
|
})]));
|
|
2995
3048
|
}
|
|
2996
|
-
}),
|
|
3049
|
+
}), pi = { class: "g-user-menu" }, mi = [
|
|
2997
3050
|
"aria-label",
|
|
2998
3051
|
"aria-expanded",
|
|
2999
3052
|
"onClick"
|
|
3000
|
-
], hi = { class: "g-user-menu__popover" }, gi = { class: "g-user-menu__list" }, _i = /* @__PURE__ */
|
|
3053
|
+
], hi = { class: "g-user-menu__popover" }, gi = { class: "g-user-menu__list" }, _i = /* @__PURE__ */ u({
|
|
3001
3054
|
__name: "GUserMenu",
|
|
3002
3055
|
props: {
|
|
3003
3056
|
initials: {},
|
|
@@ -3035,7 +3088,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3035
3088
|
_: 1
|
|
3036
3089
|
}, 8, ["modelValue"])]));
|
|
3037
3090
|
}
|
|
3038
|
-
}),
|
|
3091
|
+
}), vi = /* @__PURE__ */ u({
|
|
3039
3092
|
__name: "GCurrencyInput",
|
|
3040
3093
|
props: /* @__PURE__ */ m({
|
|
3041
3094
|
label: { default: void 0 },
|
|
@@ -3086,7 +3139,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3086
3139
|
"form-key"
|
|
3087
3140
|
]));
|
|
3088
3141
|
}
|
|
3089
|
-
}),
|
|
3142
|
+
}), yi = /* @__PURE__ */ u({
|
|
3090
3143
|
__name: "GEmailInput",
|
|
3091
3144
|
props: /* @__PURE__ */ m({
|
|
3092
3145
|
label: { default: void 0 },
|
|
@@ -3131,7 +3184,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3131
3184
|
"instructions"
|
|
3132
3185
|
]));
|
|
3133
3186
|
}
|
|
3134
|
-
}),
|
|
3187
|
+
}), bi = ["for"], xi = {
|
|
3135
3188
|
key: 0,
|
|
3136
3189
|
class: "g-file-input-required"
|
|
3137
3190
|
}, Si = {
|
|
@@ -3150,7 +3203,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3150
3203
|
key: 1,
|
|
3151
3204
|
class: "g-file-input-pills",
|
|
3152
3205
|
"aria-label": "Selected files"
|
|
3153
|
-
}, Ei = /* @__PURE__ */
|
|
3206
|
+
}, Ei = /* @__PURE__ */ u({
|
|
3154
3207
|
inheritAttrs: !1,
|
|
3155
3208
|
__name: "GFileInput",
|
|
3156
3209
|
props: /* @__PURE__ */ m({
|
|
@@ -3180,7 +3233,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3180
3233
|
}),
|
|
3181
3234
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
3182
3235
|
setup(t, { emit: n }) {
|
|
3183
|
-
let i = t, u = B(t, "modelValue"), d = z(), { displayErrors: f } =
|
|
3236
|
+
let i = t, u = B(t, "modelValue"), d = z(), { displayErrors: f } = $({
|
|
3184
3237
|
name: i.name,
|
|
3185
3238
|
value: u,
|
|
3186
3239
|
errors: F(i, "errors"),
|
|
@@ -3242,7 +3295,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3242
3295
|
}, null, 8, ["errors", "id"])
|
|
3243
3296
|
], 2));
|
|
3244
3297
|
}
|
|
3245
|
-
}),
|
|
3298
|
+
}), Di = /* @__PURE__ */ u({
|
|
3246
3299
|
__name: "GDateInput",
|
|
3247
3300
|
props: /* @__PURE__ */ m({
|
|
3248
3301
|
label: { default: void 0 },
|
|
@@ -3290,7 +3343,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3290
3343
|
"form-key"
|
|
3291
3344
|
]));
|
|
3292
3345
|
}
|
|
3293
|
-
}),
|
|
3346
|
+
}), Oi = { class: "g-date-range-input" }, ki = {
|
|
3294
3347
|
key: 0,
|
|
3295
3348
|
class: "g-date-range-input__label"
|
|
3296
3349
|
}, Ai = {
|
|
@@ -3304,7 +3357,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3304
3357
|
key: 2,
|
|
3305
3358
|
class: "g-date-range-input__errors",
|
|
3306
3359
|
role: "alert"
|
|
3307
|
-
}, Pi = /* @__PURE__ */
|
|
3360
|
+
}, Pi = /* @__PURE__ */ u({
|
|
3308
3361
|
__name: "GDateRangeInput",
|
|
3309
3362
|
props: /* @__PURE__ */ m({
|
|
3310
3363
|
label: { default: void 0 },
|
|
@@ -3331,7 +3384,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3331
3384
|
}),
|
|
3332
3385
|
emits: ["update:modelValue"],
|
|
3333
3386
|
setup(t) {
|
|
3334
|
-
let n = t, r = B(t, "modelValue"), i = D(r.value.start || null), u = D(r.value.end || null), { displayErrors: d } =
|
|
3387
|
+
let n = t, r = B(t, "modelValue"), i = D(r.value.start || null), u = D(r.value.end || null), { displayErrors: d } = $({
|
|
3335
3388
|
name: n.name,
|
|
3336
3389
|
value: r,
|
|
3337
3390
|
errors: F(n, "errors"),
|
|
@@ -3378,7 +3431,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3378
3431
|
}, N(e), 1))), 128))])) : a("", !0)
|
|
3379
3432
|
]));
|
|
3380
3433
|
}
|
|
3381
|
-
}),
|
|
3434
|
+
}), Fi = ["action", "method"], Ii = /* @__PURE__ */ u({
|
|
3382
3435
|
__name: "GForm",
|
|
3383
3436
|
props: /* @__PURE__ */ m({
|
|
3384
3437
|
action: { default: void 0 },
|
|
@@ -3390,7 +3443,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3390
3443
|
}),
|
|
3391
3444
|
emits: /* @__PURE__ */ m(["submit"], ["update:modelValue"]),
|
|
3392
3445
|
setup(e, { emit: t }) {
|
|
3393
|
-
let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (
|
|
3446
|
+
let n = e, r = B(e, "modelValue"), i = t, a = p("form", null), s = a ?? (de() ? ke(n.formKey) : De());
|
|
3394
3447
|
a || T("form", s), W(() => s.values.value, (e) => {
|
|
3395
3448
|
r.value = { ...e };
|
|
3396
3449
|
}, { deep: !0 }), W(() => r.value, (e) => {
|
|
@@ -3418,9 +3471,9 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3418
3471
|
hasErrors: L(s).hasErrors.value,
|
|
3419
3472
|
values: L(s).values.value,
|
|
3420
3473
|
errors: L(s).errors.value
|
|
3421
|
-
}
|
|
3474
|
+
})], 40, Fi));
|
|
3422
3475
|
}
|
|
3423
|
-
}),
|
|
3476
|
+
}), Li = /* @__PURE__ */ u({
|
|
3424
3477
|
__name: "GSubmitButton",
|
|
3425
3478
|
props: {
|
|
3426
3479
|
disabled: {
|
|
@@ -3432,18 +3485,18 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3432
3485
|
formKey: { default: "default" }
|
|
3433
3486
|
},
|
|
3434
3487
|
setup(e) {
|
|
3435
|
-
let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (
|
|
3436
|
-
return (e, n) => (w(), i(
|
|
3488
|
+
let t = e, n = R(), a = typeof n["form-key"] == "string" ? n["form-key"] : void 0, o = t.formKey || a || "default", l = p("form", null) ?? (de() ? ke(o) : null), u = r(() => t.disabled || (l?.isSubmitting.value ?? !1)), d = r(() => l?.isSubmitting.value ?? !1);
|
|
3489
|
+
return (e, n) => (w(), i(Q, {
|
|
3437
3490
|
type: "submit",
|
|
3438
3491
|
disabled: u.value,
|
|
3439
3492
|
variant: t.variant,
|
|
3440
3493
|
class: "g-submit-button"
|
|
3441
3494
|
}, {
|
|
3442
|
-
default: K(() => [q(s("span", null, N(t.loadingText), 513), [[ee, d.value]]), q(s("span", null, [k(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)]
|
|
3495
|
+
default: K(() => [q(s("span", null, N(t.loadingText), 513), [[ee, d.value]]), q(s("span", null, [k(e.$slots, "default", {}, () => [n[0] ||= c("Submit", -1)])], 512), [[ee, !d.value]])]),
|
|
3443
3496
|
_: 3
|
|
3444
3497
|
}, 8, ["disabled", "variant"]));
|
|
3445
3498
|
}
|
|
3446
|
-
}),
|
|
3499
|
+
}), Ri = {
|
|
3447
3500
|
key: 0,
|
|
3448
3501
|
class: "g-checkbox-group__legend"
|
|
3449
3502
|
}, zi = {
|
|
@@ -3466,7 +3519,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3466
3519
|
"disabled",
|
|
3467
3520
|
"required",
|
|
3468
3521
|
"onChange"
|
|
3469
|
-
], Ki = { class: "g-checkbox-group__label-text" }, qi = ["id"], Ji = /* @__PURE__ */
|
|
3522
|
+
], Ki = { class: "g-checkbox-group__label-text" }, qi = ["id"], Ji = /* @__PURE__ */ u({
|
|
3470
3523
|
__name: "GCheckboxGroup",
|
|
3471
3524
|
props: /* @__PURE__ */ m({
|
|
3472
3525
|
label: { default: void 0 },
|
|
@@ -3489,7 +3542,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3489
3542
|
}),
|
|
3490
3543
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
3491
3544
|
setup(t, { emit: n }) {
|
|
3492
|
-
let u = t, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } =
|
|
3545
|
+
let u = t, d = B(t, "modelValue"), f = z(), { displayErrors: p, hasErrors: m } = $({
|
|
3493
3546
|
name: u.name,
|
|
3494
3547
|
value: d,
|
|
3495
3548
|
errors: F(u, "errors"),
|
|
@@ -3562,7 +3615,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3562
3615
|
_: 1
|
|
3563
3616
|
}, 16, ["class"]));
|
|
3564
3617
|
}
|
|
3565
|
-
}),
|
|
3618
|
+
}), Yi = ["for"], Xi = {
|
|
3566
3619
|
key: 0,
|
|
3567
3620
|
class: "g-textarea-required",
|
|
3568
3621
|
"aria-hidden": "true"
|
|
@@ -3579,7 +3632,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3579
3632
|
key: 2,
|
|
3580
3633
|
class: "g-textarea-char-count",
|
|
3581
3634
|
"aria-live": "polite"
|
|
3582
|
-
}, ea = /* @__PURE__ */
|
|
3635
|
+
}, ea = /* @__PURE__ */ u({
|
|
3583
3636
|
inheritAttrs: !1,
|
|
3584
3637
|
__name: "GTextarea",
|
|
3585
3638
|
props: /* @__PURE__ */ m({
|
|
@@ -3613,7 +3666,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3613
3666
|
}),
|
|
3614
3667
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
3615
3668
|
setup(e, { emit: t }) {
|
|
3616
|
-
let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } =
|
|
3669
|
+
let n = e, i = B(e, "modelValue"), u = z(), { attrs: d, isCustomElement: f, forwardedAttrs: p } = fe({ omitInCustomElement: ["id"] }), m = r(() => f ? u : d.id || u), { displayErrors: v, hasErrors: y } = $({
|
|
3617
3670
|
name: n.name,
|
|
3618
3671
|
value: i,
|
|
3619
3672
|
errors: F(n, "errors"),
|
|
@@ -3657,7 +3710,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3657
3710
|
key: 1,
|
|
3658
3711
|
id: "instructions-" + L(u),
|
|
3659
3712
|
class: "g-textarea-instructions"
|
|
3660
|
-
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)]
|
|
3713
|
+
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Zi)) : a("", !0),
|
|
3661
3714
|
s("textarea", h({
|
|
3662
3715
|
ref: "textareaEl",
|
|
3663
3716
|
value: i.value ?? "",
|
|
@@ -3686,7 +3739,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3686
3739
|
}, null, 8, ["errors", "id"])
|
|
3687
3740
|
], 2));
|
|
3688
3741
|
}
|
|
3689
|
-
}),
|
|
3742
|
+
}), ta = ["id", "for"], na = {
|
|
3690
3743
|
key: 0,
|
|
3691
3744
|
class: "g-multiselect-required",
|
|
3692
3745
|
"aria-hidden": "true"
|
|
@@ -3720,7 +3773,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3720
3773
|
key: 1,
|
|
3721
3774
|
"aria-live": "polite",
|
|
3722
3775
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
3723
|
-
}, pa = /* @__PURE__ */
|
|
3776
|
+
}, pa = /* @__PURE__ */ u({
|
|
3724
3777
|
__name: "GMultiSelect",
|
|
3725
3778
|
props: /* @__PURE__ */ m({
|
|
3726
3779
|
options: {},
|
|
@@ -3748,7 +3801,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3748
3801
|
}),
|
|
3749
3802
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
3750
3803
|
setup(t, { emit: n }) {
|
|
3751
|
-
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(""), S = D(!1), { displayErrors: C, hasErrors: T } =
|
|
3804
|
+
let i = t, u = n, d = B(t, "modelValue"), f = z(), p = D(null), m = D(null), v = D(null), y = D(!1), b = D(0), x = D(""), S = D(!1), { displayErrors: C, hasErrors: T } = $({
|
|
3752
3805
|
name: i.name,
|
|
3753
3806
|
value: d,
|
|
3754
3807
|
errors: F(i, "errors"),
|
|
@@ -3808,10 +3861,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3808
3861
|
function X(e) {
|
|
3809
3862
|
e.preventDefault();
|
|
3810
3863
|
}
|
|
3811
|
-
function
|
|
3864
|
+
function Z() {
|
|
3812
3865
|
S.value = !0;
|
|
3813
3866
|
}
|
|
3814
|
-
function
|
|
3867
|
+
function ne(e) {
|
|
3815
3868
|
if (i.disabled) return;
|
|
3816
3869
|
let t = P.value.length - 1;
|
|
3817
3870
|
switch (e.key) {
|
|
@@ -3841,9 +3894,9 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3841
3894
|
break;
|
|
3842
3895
|
}
|
|
3843
3896
|
}
|
|
3844
|
-
let
|
|
3897
|
+
let re = r(() => `${f}-input`), ie = r(() => `${f}-label`), ae = r(() => `${f}-instructions`), oe = r(() => `error-message-${f}`), se = r(() => {
|
|
3845
3898
|
let e = [];
|
|
3846
|
-
return i.instructions && e.push(
|
|
3899
|
+
return i.instructions && e.push(ae.value), T.value && e.push(oe.value), e.length > 0 ? e.join(" ") : void 0;
|
|
3847
3900
|
});
|
|
3848
3901
|
return (n, r) => (w(), o("div", { class: _(["g-multiselect-root", {
|
|
3849
3902
|
"g-multiselect-open": y.value,
|
|
@@ -3851,13 +3904,13 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3851
3904
|
}]) }, [
|
|
3852
3905
|
t.hiddenLabel ? a("", !0) : (w(), o("label", {
|
|
3853
3906
|
key: 0,
|
|
3854
|
-
id:
|
|
3855
|
-
for:
|
|
3907
|
+
id: ie.value,
|
|
3908
|
+
for: re.value,
|
|
3856
3909
|
class: "g-multiselect-label"
|
|
3857
3910
|
}, [c(N(t.label), 1), t.required ? (w(), o("span", na, " *")) : a("", !0)], 8, ta)),
|
|
3858
3911
|
t.instructions ? (w(), o("div", {
|
|
3859
3912
|
key: 1,
|
|
3860
|
-
id:
|
|
3913
|
+
id: ae.value,
|
|
3861
3914
|
class: "g-multiselect-instructions"
|
|
3862
3915
|
}, N(t.instructions), 9, ra)) : a("", !0),
|
|
3863
3916
|
s("div", {
|
|
@@ -3868,7 +3921,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3868
3921
|
}, [
|
|
3869
3922
|
s("ul", {
|
|
3870
3923
|
class: "g-multiselect-chips",
|
|
3871
|
-
"aria-labelledby":
|
|
3924
|
+
"aria-labelledby": ie.value
|
|
3872
3925
|
}, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
|
|
3873
3926
|
key: e,
|
|
3874
3927
|
class: "g-multiselect-chip"
|
|
@@ -3877,7 +3930,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3877
3930
|
class: "g-multiselect-chip-remove",
|
|
3878
3931
|
"aria-label": `Remove ${R(e)}`,
|
|
3879
3932
|
disabled: t.disabled,
|
|
3880
|
-
onMousedown:
|
|
3933
|
+
onMousedown: Z,
|
|
3881
3934
|
onClick: J((t) => W(e), ["stop"])
|
|
3882
3935
|
}, [...r[0] ||= [s("svg", {
|
|
3883
3936
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3894,7 +3947,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3894
3947
|
type: "text",
|
|
3895
3948
|
role: "combobox",
|
|
3896
3949
|
class: "g-multiselect-input",
|
|
3897
|
-
id:
|
|
3950
|
+
id: re.value,
|
|
3898
3951
|
value: x.value,
|
|
3899
3952
|
placeholder: d.value.length === 0 ? t.placeholder : void 0,
|
|
3900
3953
|
disabled: t.disabled,
|
|
@@ -3905,10 +3958,10 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3905
3958
|
"aria-controls": L(f) + "-listbox",
|
|
3906
3959
|
"aria-activedescendant": y.value && P.value.length > 0 ? L(f) + "-option-" + b.value : void 0
|
|
3907
3960
|
}, t.hiddenLabel ? { "aria-label": t.label } : void 0, {
|
|
3908
|
-
"aria-describedby":
|
|
3961
|
+
"aria-describedby": se.value,
|
|
3909
3962
|
"aria-required": t.required ? "true" : void 0,
|
|
3910
3963
|
onInput: K,
|
|
3911
|
-
onKeydown:
|
|
3964
|
+
onKeydown: ne,
|
|
3912
3965
|
onFocus: Y,
|
|
3913
3966
|
onBlur: te
|
|
3914
3967
|
}), null, 16, sa),
|
|
@@ -3928,7 +3981,7 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3928
3981
|
id: L(f) + "-listbox",
|
|
3929
3982
|
role: "listbox",
|
|
3930
3983
|
"aria-multiselectable": "true"
|
|
3931
|
-
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby":
|
|
3984
|
+
}, t.hiddenLabel ? { "aria-label": t.label } : { "aria-labelledby": ie.value }, {
|
|
3932
3985
|
class: ["g-multiselect-listbox", { "g-multiselect-listbox--above": L(E) === "above" }],
|
|
3933
3986
|
style: L(k),
|
|
3934
3987
|
tabindex: "-1"
|
|
@@ -3947,11 +4000,11 @@ var or = { class: "g-table-outer-wrap" }, sr = {
|
|
|
3947
4000
|
], 2),
|
|
3948
4001
|
l(je, {
|
|
3949
4002
|
errors: L(C),
|
|
3950
|
-
id:
|
|
4003
|
+
id: oe.value
|
|
3951
4004
|
}, null, 8, ["errors", "id"])
|
|
3952
4005
|
], 2));
|
|
3953
4006
|
}
|
|
3954
|
-
})
|
|
4007
|
+
});
|
|
3955
4008
|
//#endregion
|
|
3956
4009
|
//#region src/compose/useActiveLink.ts
|
|
3957
4010
|
function ma(e, t, n) {
|
|
@@ -3961,11 +4014,11 @@ function ma(e, t, n) {
|
|
|
3961
4014
|
.5,
|
|
3962
4015
|
.75,
|
|
3963
4016
|
1
|
|
3964
|
-
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(
|
|
3965
|
-
|
|
3966
|
-
o.value = Array.from(
|
|
4017
|
+
], i = `${-t}px 0px 0px 0px`, a = /* @__PURE__ */ new Map(), o = D(Array.from(Z(e)?.children || []));
|
|
4018
|
+
se(e, () => {
|
|
4019
|
+
o.value = Array.from(Z(e)?.children || []);
|
|
3967
4020
|
}, { childList: !0 });
|
|
3968
|
-
let { stop: s } =
|
|
4021
|
+
let { stop: s } = ae(o, (e) => {
|
|
3969
4022
|
let t = o.value[o.value.length - 1];
|
|
3970
4023
|
for (let n of e) a.set(n.target, n.isIntersecting ? Math.ceil(100 * n.intersectionRatio) / 100 : 0), n.target === t && n.intersectionRatio === 1 && a.set(n.target, Infinity);
|
|
3971
4024
|
let r = null, i = 0;
|
|
@@ -3985,7 +4038,7 @@ function ma(e, t, n) {
|
|
|
3985
4038
|
//#endregion
|
|
3986
4039
|
//#region src/compose/useSidebar.ts
|
|
3987
4040
|
function ha(e = "(max-width: 800px)") {
|
|
3988
|
-
let t = z(), n = D(!1), r =
|
|
4041
|
+
let t = z(), n = D(!1), r = oe(e, { ssrWidth: 1e3 });
|
|
3989
4042
|
function i(e) {
|
|
3990
4043
|
if (!r.value || !n.value) return;
|
|
3991
4044
|
let i = e.target, a = document.getElementById(`${t}-sidebar`);
|
|
@@ -4118,6 +4171,6 @@ function ga() {
|
|
|
4118
4171
|
};
|
|
4119
4172
|
}
|
|
4120
4173
|
//#endregion
|
|
4121
|
-
export {
|
|
4174
|
+
export { ke as $, $n as A, Ht as B, Pr as C, tr as D, rr as E, hn as F, it as G, wt as H, dn as I, Qe as J, et as K, ln as L, Cn as M, vn as N, ir as O, gn as P, $ as Q, on as R, Ur as S, er as T, yt as U, At as V, ft as W, qe as X, Ke as Y, Re as Z, ii as _, ea as a, Zr as b, Ii as c, Ei as d, De as et, yi as f, ci as g, fi as h, pa as i, Q as it, Rn as j, ar as k, Pi as l, _i as m, ha as n, be as nt, Ji as o, vi as p, $e as q, ma as r, ye as rt, Li as s, ga as t, Ee as tt, Di as u, ni as v, nr as w, Yr as x, Qr as y, Qt as z };
|
|
4122
4175
|
|
|
4123
|
-
//# sourceMappingURL=grad-vue-
|
|
4176
|
+
//# sourceMappingURL=grad-vue-SX-RHHr3.js.map
|