@illinois-grad/grad-vue 3.0.14 → 3.0.16
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 +20 -0
- package/dist/components/GMultiSelect.vue.d.ts +19 -1
- package/dist/components/GSelect.vue.d.ts +20 -2
- package/dist/components/GTreeMenu.vue.d.ts +2 -1
- package/dist/components/table/TableColumn.d.ts +13 -0
- package/dist/compose/useSelectDropdown.d.ts +6 -0
- package/dist/{grad-vue-CpcX2lGW.js → grad-vue-CLV2d1M0.js} +293 -269
- package/dist/grad-vue-CLV2d1M0.js.map +1 -0
- package/dist/grad-vue-elements.css +31 -31
- package/dist/grad-vue-elements.js +272 -248
- 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-CpcX2lGW.js.map +0 -1
|
@@ -115,34 +115,34 @@ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
setup(e) {
|
|
118
|
-
let t = e, n = B();
|
|
118
|
+
let t = e, n = H(), l = d(), u = B(), f = (l?.ce)?._slots?.heading?.length > 0, p = r(() => !!t.heading || !!n.heading || f);
|
|
119
119
|
E("g-tree-menu-list-type", t.listType), E("g-tree-menu-expanded-storage", t.storageKey ? fe(t.storageKey, {}) : null);
|
|
120
|
-
let
|
|
121
|
-
E("g-tree-menu-expandable-items",
|
|
122
|
-
let
|
|
120
|
+
let m = D(/* @__PURE__ */ new Map());
|
|
121
|
+
E("g-tree-menu-expandable-items", m);
|
|
122
|
+
let v = O({
|
|
123
123
|
expanded: !0,
|
|
124
124
|
version: 0
|
|
125
125
|
});
|
|
126
|
-
E("g-tree-menu-expand-all-signal",
|
|
127
|
-
let
|
|
128
|
-
if (
|
|
129
|
-
for (let e of
|
|
126
|
+
E("g-tree-menu-expand-all-signal", v);
|
|
127
|
+
let y = r(() => {
|
|
128
|
+
if (m.size === 0) return !1;
|
|
129
|
+
for (let e of m.values()) if (!e) return !1;
|
|
130
130
|
return !0;
|
|
131
131
|
});
|
|
132
|
-
function
|
|
133
|
-
let e = !
|
|
134
|
-
|
|
132
|
+
function b() {
|
|
133
|
+
let e = !y.value;
|
|
134
|
+
v.value = {
|
|
135
135
|
expanded: e,
|
|
136
|
-
version:
|
|
136
|
+
version: v.value.version + 1
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function x(e) {
|
|
140
140
|
return e.querySelector("a, button, [tabindex='0']") || e;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function S(e) {
|
|
143
143
|
return Array.from(e.querySelectorAll("[data-tree-primary]"));
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function C(e) {
|
|
146
146
|
let t = e.currentTarget, n = document.activeElement;
|
|
147
147
|
if (!t.contains(n) || ![
|
|
148
148
|
"ArrowUp",
|
|
@@ -152,16 +152,16 @@ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
152
152
|
"Home",
|
|
153
153
|
"End"
|
|
154
154
|
].includes(e.key)) return;
|
|
155
|
-
let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a =
|
|
155
|
+
let r = n.closest(".g-tree-menu__item"), i = r?.querySelector("[data-tree-primary]") ?? null, a = S(t), o = i ? a.indexOf(i) : -1;
|
|
156
156
|
switch (e.key) {
|
|
157
157
|
case "ArrowDown": {
|
|
158
158
|
let e = a[o + 1];
|
|
159
|
-
e &&
|
|
159
|
+
e && x(e).focus();
|
|
160
160
|
break;
|
|
161
161
|
}
|
|
162
162
|
case "ArrowUp": {
|
|
163
163
|
let e = a[o - 1];
|
|
164
|
-
e &&
|
|
164
|
+
e && x(e).focus();
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
167
|
case "ArrowRight":
|
|
@@ -171,48 +171,48 @@ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
171
171
|
e && e.click();
|
|
172
172
|
} else {
|
|
173
173
|
let e = a[o + 1];
|
|
174
|
-
e &&
|
|
174
|
+
e && x(e).focus();
|
|
175
175
|
}
|
|
176
176
|
break;
|
|
177
177
|
case "ArrowLeft":
|
|
178
178
|
if (!r) break;
|
|
179
179
|
if (r.querySelector("[aria-expanded='true']") !== null) {
|
|
180
180
|
let e = r.querySelector(".g-tree-menu__toggle-btn");
|
|
181
|
-
e && e.click(), i && g(() =>
|
|
181
|
+
e && e.click(), i && g(() => x(i).focus());
|
|
182
182
|
} else {
|
|
183
183
|
let e = r.parentElement?.closest(".g-tree-menu__item");
|
|
184
184
|
if (e) {
|
|
185
185
|
let t = e.querySelector("[data-tree-primary]");
|
|
186
|
-
t &&
|
|
186
|
+
t && x(t).focus();
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
break;
|
|
190
190
|
case "Home":
|
|
191
|
-
a.length > 0 &&
|
|
191
|
+
a.length > 0 && x(a[0]).focus();
|
|
192
192
|
break;
|
|
193
193
|
case "End":
|
|
194
|
-
a.length > 0 &&
|
|
194
|
+
a.length > 0 && x(a[a.length - 1]).focus();
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
197
|
e.preventDefault();
|
|
198
198
|
}
|
|
199
|
-
return (
|
|
200
|
-
"aria-labelledby":
|
|
201
|
-
"aria-label":
|
|
202
|
-
}, { onKeydown:
|
|
203
|
-
|
|
199
|
+
return (n, r) => (T(), o("nav", h({ class: ["g-tree-menu", [`g-tree-menu--${t.theme}`, { "g-tree-menu--small-heading": e.smallHeading }]] }, {
|
|
200
|
+
"aria-labelledby": p.value ? R(u) : void 0,
|
|
201
|
+
"aria-label": p.value ? void 0 : "Tree Menu"
|
|
202
|
+
}, { onKeydown: C }), [
|
|
203
|
+
p.value ? (T(), i(j(e.headingLevel), {
|
|
204
204
|
key: 0,
|
|
205
|
-
id: R(
|
|
205
|
+
id: R(u),
|
|
206
206
|
class: "g-tree-menu__title"
|
|
207
207
|
}, {
|
|
208
|
-
default: J(() => [c(P(e.heading), 1)]),
|
|
209
|
-
_:
|
|
208
|
+
default: J(() => [A(n.$slots, "heading", {}, () => [c(P(e.heading), 1)])]),
|
|
209
|
+
_: 3
|
|
210
210
|
}, 8, ["id"])) : a("", !0),
|
|
211
211
|
s("div", _e, [e.smallHeading ? a("", !0) : (T(), o("div", ve)), e.showExpandAll ? (T(), o("div", ye, [s("button", {
|
|
212
212
|
class: "g-tree-menu__expand-all-btn",
|
|
213
|
-
onClick:
|
|
213
|
+
onClick: b
|
|
214
214
|
}, [(T(), o("svg", {
|
|
215
|
-
class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse":
|
|
215
|
+
class: _(["g-tree-menu__expand-all-icon", { "g-tree-menu__expand-all-icon--collapse": y.value }]),
|
|
216
216
|
role: "none",
|
|
217
217
|
viewBox: "0 0 24 24",
|
|
218
218
|
fill: "none",
|
|
@@ -220,8 +220,8 @@ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
220
220
|
"stroke-width": "2.5",
|
|
221
221
|
"stroke-linecap": "round",
|
|
222
222
|
"stroke-linejoin": "round"
|
|
223
|
-
}, [...
|
|
224
|
-
s("div", be, [A(
|
|
223
|
+
}, [...r[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(" " + P(y.value ? "Collapse all" : "Expand all"), 1)])])) : a("", !0)]),
|
|
224
|
+
s("div", be, [A(n.$slots, "default")])
|
|
225
225
|
], 16));
|
|
226
226
|
}
|
|
227
227
|
}), Se = /* @__PURE__ */ u({
|
|
@@ -1294,11 +1294,14 @@ var Pt = ["id"], Ft = {
|
|
|
1294
1294
|
"id",
|
|
1295
1295
|
"aria-selected",
|
|
1296
1296
|
"onClick"
|
|
1297
|
-
], Ht = {
|
|
1297
|
+
], Ht = { class: "g-select-option-label" }, Ut = {
|
|
1298
|
+
key: 0,
|
|
1299
|
+
class: "g-select-option-description"
|
|
1300
|
+
}, Wt = {
|
|
1298
1301
|
key: 1,
|
|
1299
1302
|
"aria-live": "polite",
|
|
1300
1303
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
1301
|
-
},
|
|
1304
|
+
}, Gt = /* @__PURE__ */ u({
|
|
1302
1305
|
__name: "GSelect",
|
|
1303
1306
|
props: /*@__PURE__*/ m({
|
|
1304
1307
|
options: {},
|
|
@@ -1318,6 +1321,10 @@ var Pt = ["id"], Ft = {
|
|
|
1318
1321
|
type: Boolean,
|
|
1319
1322
|
default: !1
|
|
1320
1323
|
},
|
|
1324
|
+
searchDescription: {
|
|
1325
|
+
type: Boolean,
|
|
1326
|
+
default: !0
|
|
1327
|
+
},
|
|
1321
1328
|
clearButton: { type: Boolean },
|
|
1322
1329
|
compact: {
|
|
1323
1330
|
type: Boolean,
|
|
@@ -1345,7 +1352,7 @@ var Pt = ["id"], Ft = {
|
|
|
1345
1352
|
}), N = r(() => Mt(i.options)), F = O(""), L = r(() => {
|
|
1346
1353
|
if (!i.searchable || !y.value || !F.value) return N.value;
|
|
1347
1354
|
let e = F.value.toLowerCase();
|
|
1348
|
-
return N.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
1355
|
+
return N.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
|
|
1349
1356
|
}), z = r(() => L.value.findIndex((e) => e.value === d.value));
|
|
1350
1357
|
K(() => d.value, (e) => {
|
|
1351
1358
|
let t = L.value.findIndex((t) => t.value === e);
|
|
@@ -1571,34 +1578,34 @@ var Pt = ["id"], Ft = {
|
|
|
1571
1578
|
option: e,
|
|
1572
1579
|
selected: e.value === d.value,
|
|
1573
1580
|
index: t
|
|
1574
|
-
}, () => [
|
|
1581
|
+
}, () => [s("span", Ht, P(e.label), 1), e.description ? (T(), o("span", Ut, P(e.description), 1)) : a("", !0)])], 42, Vt))), 128)) : (T(), o("div", Wt, " No results found. "))], 16, Bt), [[ee, y.value]])]),
|
|
1575
1582
|
l(je, {
|
|
1576
1583
|
errors: R(C),
|
|
1577
1584
|
id: "error-message-" + R(f)
|
|
1578
1585
|
}, null, 8, ["errors", "id"])
|
|
1579
1586
|
], 2));
|
|
1580
1587
|
}
|
|
1581
|
-
}),
|
|
1588
|
+
}), Kt = ["aria-label"], qt = [
|
|
1582
1589
|
"placeholder",
|
|
1583
1590
|
"value",
|
|
1584
1591
|
"aria-expanded",
|
|
1585
1592
|
"aria-controls",
|
|
1586
1593
|
"aria-activedescendant"
|
|
1587
|
-
],
|
|
1594
|
+
], Jt = {
|
|
1588
1595
|
key: 0,
|
|
1589
1596
|
class: "g-search-dropdown"
|
|
1590
|
-
},
|
|
1597
|
+
}, Yt = {
|
|
1591
1598
|
"aria-live": "polite",
|
|
1592
1599
|
class: "g-search-result-count"
|
|
1593
|
-
},
|
|
1600
|
+
}, Xt = ["id"], Zt = ["aria-label"], Qt = { class: "g-search-group-label" }, $t = [
|
|
1594
1601
|
"id",
|
|
1595
1602
|
"onMousedown",
|
|
1596
1603
|
"aria-selected"
|
|
1597
|
-
],
|
|
1604
|
+
], en = [
|
|
1598
1605
|
"id",
|
|
1599
1606
|
"onMousedown",
|
|
1600
1607
|
"aria-selected"
|
|
1601
|
-
],
|
|
1608
|
+
], tn = /* @__PURE__ */ u({
|
|
1602
1609
|
__name: "GSearch",
|
|
1603
1610
|
props: /*@__PURE__*/ m({
|
|
1604
1611
|
results: {},
|
|
@@ -1679,7 +1686,7 @@ var Pt = ["id"], Ft = {
|
|
|
1679
1686
|
"aria-autocomplete": "list",
|
|
1680
1687
|
"aria-controls": `${R(M)}-list`,
|
|
1681
1688
|
"aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
|
|
1682
|
-
}, null, 40,
|
|
1689
|
+
}, null, 40, qt), s("button", {
|
|
1683
1690
|
type: "submit",
|
|
1684
1691
|
class: "g-search-submit",
|
|
1685
1692
|
"aria-label": "Submit search",
|
|
@@ -1695,7 +1702,7 @@ var Pt = ["id"], Ft = {
|
|
|
1695
1702
|
}, [s("path", {
|
|
1696
1703
|
fill: "currentColor",
|
|
1697
1704
|
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"
|
|
1698
|
-
})], -1)], 32)], 32), D.value ? (T(), o("div",
|
|
1705
|
+
})], -1)], 32)], 32), D.value ? (T(), o("div", Jt, [s("div", Yt, [E.value ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(y.value) + " result" + P(y.value === 1 ? "" : "s"), 1)], 64))]), s("div", {
|
|
1699
1706
|
role: "listbox",
|
|
1700
1707
|
id: `${R(M)}-list`,
|
|
1701
1708
|
ref_key: "listboxRef",
|
|
@@ -1706,29 +1713,29 @@ var Pt = ["id"], Ft = {
|
|
|
1706
1713
|
class: "g-search-group",
|
|
1707
1714
|
role: "group",
|
|
1708
1715
|
"aria-label": n.label
|
|
1709
|
-
}, [A(t.$slots, "group", { group: n }, () => [s("div",
|
|
1716
|
+
}, [A(t.$slots, "group", { group: n }, () => [s("div", Qt, P(n.label), 1)]), (T(!0), o(e, null, k(n.items, (e, n) => (T(), o("div", {
|
|
1710
1717
|
key: e.id,
|
|
1711
1718
|
id: "g-search-option-" + e.id,
|
|
1712
1719
|
class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
|
|
1713
1720
|
role: "option",
|
|
1714
1721
|
onMousedown: te((t) => w(e), ["prevent"]),
|
|
1715
1722
|
"aria-selected": v.value[h.value] && v.value[h.value].id === e.id
|
|
1716
|
-
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42,
|
|
1723
|
+
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, $t))), 128))], 8, Zt))), 128)) : y.value > 0 ? (T(!0), o(e, { key: 1 }, k(v.value, (e, n) => (T(), o("div", {
|
|
1717
1724
|
key: e.id,
|
|
1718
1725
|
id: "g-search-option-" + e.id,
|
|
1719
1726
|
class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
|
|
1720
1727
|
role: "option",
|
|
1721
1728
|
onMousedown: te((t) => w(e), ["prevent"]),
|
|
1722
1729
|
"aria-selected": h.value === n
|
|
1723
|
-
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42,
|
|
1730
|
+
}, [A(t.$slots, "option", { option: e }, () => [c(P(e.title), 1)])], 42, en))), 128)) : a("", !0)], 8, Xt)])) : a("", !0)], 8, Kt));
|
|
1724
1731
|
}
|
|
1725
|
-
}),
|
|
1732
|
+
}), nn = { class: /*@__PURE__*/ _({ "g-app-header": !0 }) }, rn = { class: "g-app-header__brand" }, an = {
|
|
1726
1733
|
class: "g-app-header__brand-text",
|
|
1727
1734
|
href: "/"
|
|
1728
|
-
},
|
|
1735
|
+
}, on = {
|
|
1729
1736
|
key: 0,
|
|
1730
1737
|
class: "g-app-header__block-i-container"
|
|
1731
|
-
},
|
|
1738
|
+
}, sn = { class: "g-app-header__title" }, cn = { class: "g-app-header__app-controls-wrap" }, ln = /* @__PURE__ */ u({
|
|
1732
1739
|
__name: "GAppHeader",
|
|
1733
1740
|
props: {
|
|
1734
1741
|
illinois: {
|
|
@@ -1738,10 +1745,10 @@ var Pt = ["id"], Ft = {
|
|
|
1738
1745
|
brand: { default: "GRAD" }
|
|
1739
1746
|
},
|
|
1740
1747
|
setup(e) {
|
|
1741
|
-
return (t, n) => (T(), o("header",
|
|
1748
|
+
return (t, n) => (T(), o("header", nn, [
|
|
1742
1749
|
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),
|
|
1743
|
-
s("div",
|
|
1744
|
-
e.illinois ? (T(), o("div",
|
|
1750
|
+
s("div", rn, [A(t.$slots, "left", {}, () => [s("a", an, P(e.brand), 1)])]),
|
|
1751
|
+
e.illinois ? (T(), o("div", on, [...n[0] ||= [s("svg", {
|
|
1745
1752
|
class: "g-app-header__block-i",
|
|
1746
1753
|
role: "img",
|
|
1747
1754
|
width: "55",
|
|
@@ -1758,24 +1765,24 @@ var Pt = ["id"], Ft = {
|
|
|
1758
1765
|
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"
|
|
1759
1766
|
})
|
|
1760
1767
|
], -1)]])) : A(t.$slots, "icon", { key: 1 }),
|
|
1761
|
-
s("div",
|
|
1762
|
-
s("div",
|
|
1768
|
+
s("div", sn, [A(t.$slots, "title")]),
|
|
1769
|
+
s("div", cn, [A(t.$slots, "app-controls", { class: "g-app-header__app-controls" })])
|
|
1763
1770
|
]));
|
|
1764
1771
|
}
|
|
1765
1772
|
});
|
|
1766
1773
|
//#endregion
|
|
1767
1774
|
//#region src/compose/useWebComponentSidebar.ts
|
|
1768
|
-
function
|
|
1775
|
+
function un(e) {
|
|
1769
1776
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
1770
1777
|
}
|
|
1771
|
-
function
|
|
1778
|
+
function dn() {
|
|
1772
1779
|
let e = globalThis;
|
|
1773
1780
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
1774
1781
|
}
|
|
1775
|
-
function
|
|
1776
|
-
let n =
|
|
1782
|
+
function fn(e = "default", t) {
|
|
1783
|
+
let n = dn(), r = e || "default", i = typeof t == "string" ? t : t?.value, a = i && i.trim() ? i : "(max-width: 800px)";
|
|
1777
1784
|
if (!n.has(r)) {
|
|
1778
|
-
let e =
|
|
1785
|
+
let e = un(r), t = O(a);
|
|
1779
1786
|
n.set(r, {
|
|
1780
1787
|
id: `g-wc-sidebar-${e}`,
|
|
1781
1788
|
open: O(!1),
|
|
@@ -1812,7 +1819,7 @@ function un(e = "default", t) {
|
|
|
1812
1819
|
}
|
|
1813
1820
|
//#endregion
|
|
1814
1821
|
//#region src/compose/useScrollRestore.ts
|
|
1815
|
-
function
|
|
1822
|
+
function pn(e, t) {
|
|
1816
1823
|
let n = t ? fe(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = O(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
1817
1824
|
function c(e) {
|
|
1818
1825
|
let t = window.getComputedStyle(e);
|
|
@@ -1895,7 +1902,7 @@ function dn(e, t) {
|
|
|
1895
1902
|
}
|
|
1896
1903
|
//#endregion
|
|
1897
1904
|
//#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
1898
|
-
var
|
|
1905
|
+
var mn = ["id"], hn = /* @__PURE__ */ u({
|
|
1899
1906
|
__name: "GSidebar",
|
|
1900
1907
|
props: {
|
|
1901
1908
|
backgroundColor: { default: "" },
|
|
@@ -1909,7 +1916,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
1909
1916
|
storageKey: {}
|
|
1910
1917
|
},
|
|
1911
1918
|
setup(e) {
|
|
1912
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (Z() ?
|
|
1919
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (Z() ? fn(t.sidebarKey, I(t, "mediaQuery")) : 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 = B(), { isPendingScrollRestore: l } = pn(U("sidebar-ref"), t.storageKey);
|
|
1913
1920
|
function u(e) {
|
|
1914
1921
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
1915
1922
|
}
|
|
@@ -1930,13 +1937,13 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
1930
1937
|
width: "var(--g-sidebar-width)"
|
|
1931
1938
|
}),
|
|
1932
1939
|
onKeydown: u
|
|
1933
|
-
}, [A(t.$slots, "default")], 46,
|
|
1940
|
+
}, [A(t.$slots, "default")], 46, mn));
|
|
1934
1941
|
}
|
|
1935
|
-
}),
|
|
1942
|
+
}), gn = ["id"], _n = { class: "g-sidebar-menu__list" }, vn = [
|
|
1936
1943
|
"href",
|
|
1937
1944
|
"aria-current",
|
|
1938
1945
|
"onClick"
|
|
1939
|
-
],
|
|
1946
|
+
], yn = /* @__PURE__ */ u({
|
|
1940
1947
|
__name: "GSidebarMenu",
|
|
1941
1948
|
props: /*@__PURE__*/ m({
|
|
1942
1949
|
heading: {},
|
|
@@ -1984,13 +1991,13 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
1984
1991
|
key: 0,
|
|
1985
1992
|
id: R(y),
|
|
1986
1993
|
class: "g-sidebar-menu__title"
|
|
1987
|
-
}, P(t.heading), 9,
|
|
1994
|
+
}, P(t.heading), 9, gn)) : a("", !0),
|
|
1988
1995
|
l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
1989
1996
|
s("div", {
|
|
1990
1997
|
class: "g-sidebar-menu__content",
|
|
1991
1998
|
ref_key: "content",
|
|
1992
1999
|
ref: f
|
|
1993
|
-
}, [s("ul",
|
|
2000
|
+
}, [s("ul", _n, [(T(!0), o(e, null, k(t.items, (e) => (T(), o("li", {
|
|
1994
2001
|
key: e.href || e.to,
|
|
1995
2002
|
class: "g-sidebar-menu__item",
|
|
1996
2003
|
ref_for: !0,
|
|
@@ -2008,10 +2015,10 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2008
2015
|
href: e.href || e.to || "#",
|
|
2009
2016
|
"aria-current": u.value === (e.href || "") ? "location" : void 0,
|
|
2010
2017
|
onClick: (t) => v(t, e)
|
|
2011
|
-
}, P(e.label), 11,
|
|
2018
|
+
}, P(e.label), 11, vn))]))), 128))])], 512)
|
|
2012
2019
|
], 16));
|
|
2013
2020
|
}
|
|
2014
|
-
}),
|
|
2021
|
+
}), bn = {
|
|
2015
2022
|
mounted(e, t) {
|
|
2016
2023
|
let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = ct(e), l = () => {
|
|
2017
2024
|
n.value || (n.value = lt(a.value, c), ut(n.value), o = new ResizeObserver(() => {
|
|
@@ -2063,7 +2070,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2063
2070
|
let t = e._v_gtooltip;
|
|
2064
2071
|
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");
|
|
2065
2072
|
}
|
|
2066
|
-
},
|
|
2073
|
+
}, xn = { class: "g-clipboard-text" }, Sn = /* @__PURE__ */ u({
|
|
2067
2074
|
__name: "GClipboard",
|
|
2068
2075
|
props: {
|
|
2069
2076
|
text: {},
|
|
@@ -2071,12 +2078,12 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2071
2078
|
copyLabel: {}
|
|
2072
2079
|
},
|
|
2073
2080
|
setup(t) {
|
|
2074
|
-
let n = t, r =
|
|
2081
|
+
let n = t, r = bn, { text: i, copy: l, copied: u, isSupported: d } = ae({ source: n.text }), f = O(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2075
2082
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2076
2083
|
}, m = () => {
|
|
2077
2084
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
2078
2085
|
};
|
|
2079
|
-
return (i, l) => (T(), o("div",
|
|
2086
|
+
return (i, l) => (T(), o("div", xn, [t.hideText ? a("", !0) : (T(), o(e, { key: 0 }, [c(P(n.text), 1)], 64)), Y((T(), o("button", {
|
|
2080
2087
|
type: "button",
|
|
2081
2088
|
"aria-label": "Copy",
|
|
2082
2089
|
onClick: p,
|
|
@@ -2093,15 +2100,15 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2093
2100
|
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"
|
|
2094
2101
|
})], -1)]], 32)), [[R(r), f.value]])]));
|
|
2095
2102
|
}
|
|
2096
|
-
}),
|
|
2103
|
+
}), Cn = { class: "g-history-scroller-wrapper" }, wn = {
|
|
2097
2104
|
key: 0,
|
|
2098
2105
|
class: "g-history-shadow g-history-shadow--top",
|
|
2099
2106
|
"aria-hidden": "true"
|
|
2100
|
-
},
|
|
2107
|
+
}, Tn = {
|
|
2101
2108
|
key: 1,
|
|
2102
2109
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
2103
2110
|
"aria-hidden": "true"
|
|
2104
|
-
},
|
|
2111
|
+
}, En = ["role", "aria-label"], Dn = /* @__PURE__ */ u({
|
|
2105
2112
|
__name: "GHistoryScroller",
|
|
2106
2113
|
props: {
|
|
2107
2114
|
label: {},
|
|
@@ -2133,9 +2140,9 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2133
2140
|
u.value && (await g(), f());
|
|
2134
2141
|
});
|
|
2135
2142
|
let m = r(() => [...n.entries].reverse());
|
|
2136
|
-
return (n, r) => (T(), o("div",
|
|
2137
|
-
d.value ? a("", !0) : (T(), o("div",
|
|
2138
|
-
u.value ? a("", !0) : (T(), o("div",
|
|
2143
|
+
return (n, r) => (T(), o("div", Cn, [
|
|
2144
|
+
d.value ? a("", !0) : (T(), o("div", wn)),
|
|
2145
|
+
u.value ? a("", !0) : (T(), o("div", Tn)),
|
|
2139
2146
|
s("div", {
|
|
2140
2147
|
ref_key: "scrollerRef",
|
|
2141
2148
|
ref: i,
|
|
@@ -2170,31 +2177,31 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2170
2177
|
key: e.id,
|
|
2171
2178
|
class: "g-history-entry",
|
|
2172
2179
|
tabindex: "-1"
|
|
2173
|
-
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40,
|
|
2180
|
+
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, En)
|
|
2174
2181
|
]));
|
|
2175
2182
|
}
|
|
2176
|
-
}),
|
|
2183
|
+
}), On = { class: "g-three-way-toggle-wrapper" }, kn = { class: "g-three-way-toggle-control" }, An = ["id"], jn = [
|
|
2177
2184
|
"aria-labelledby",
|
|
2178
2185
|
"aria-describedby",
|
|
2179
2186
|
"disabled",
|
|
2180
2187
|
"aria-invalid",
|
|
2181
2188
|
"aria-errormessage"
|
|
2182
|
-
],
|
|
2189
|
+
], Mn = { key: 0 }, Nn = { key: 1 }, Pn = { key: 2 }, Fn = ["for"], In = [
|
|
2183
2190
|
"id",
|
|
2184
2191
|
"name",
|
|
2185
2192
|
"checked",
|
|
2186
2193
|
"disabled"
|
|
2187
|
-
],
|
|
2194
|
+
], Ln = ["for"], Rn = [
|
|
2188
2195
|
"id",
|
|
2189
2196
|
"name",
|
|
2190
2197
|
"checked",
|
|
2191
2198
|
"disabled"
|
|
2192
|
-
],
|
|
2199
|
+
], zn = ["for"], Bn = [
|
|
2193
2200
|
"id",
|
|
2194
2201
|
"name",
|
|
2195
2202
|
"checked",
|
|
2196
2203
|
"disabled"
|
|
2197
|
-
],
|
|
2204
|
+
], Vn = ["id"], Hn = /* @__PURE__ */ u({
|
|
2198
2205
|
__name: "GThreeWayToggle",
|
|
2199
2206
|
props: /*@__PURE__*/ m({
|
|
2200
2207
|
label: {},
|
|
@@ -2228,10 +2235,10 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2228
2235
|
function b(e) {
|
|
2229
2236
|
n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
|
|
2230
2237
|
}
|
|
2231
|
-
return (t, n) => (T(), o("div",
|
|
2238
|
+
return (t, n) => (T(), o("div", On, [s("div", kn, [s("span", {
|
|
2232
2239
|
class: "g-label",
|
|
2233
2240
|
id: R(p)
|
|
2234
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
2241
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, An), s("fieldset", {
|
|
2235
2242
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2236
2243
|
role: "radiogroup",
|
|
2237
2244
|
"aria-labelledby": R(p),
|
|
@@ -2243,7 +2250,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2243
2250
|
s("span", {
|
|
2244
2251
|
class: _(["g-toggle-thumb", y.value]),
|
|
2245
2252
|
"aria-hidden": "true"
|
|
2246
|
-
}, [i.value === !1 ? (T(), o("span",
|
|
2253
|
+
}, [i.value === !1 ? (T(), o("span", Mn, "NO")) : i.value === !0 ? (T(), o("span", Nn, "YES")) : (T(), o("span", Pn))], 2),
|
|
2247
2254
|
s("label", {
|
|
2248
2255
|
for: R(h),
|
|
2249
2256
|
class: "g-toggle-option g-left",
|
|
@@ -2257,7 +2264,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2257
2264
|
value: "false",
|
|
2258
2265
|
disabled: e.disabled,
|
|
2259
2266
|
onChange: n[0] ||= (e) => d(!1)
|
|
2260
|
-
}, null, 40,
|
|
2267
|
+
}, null, 40, In), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, Fn),
|
|
2261
2268
|
s("label", {
|
|
2262
2269
|
for: R(g),
|
|
2263
2270
|
class: "g-toggle-option g-center",
|
|
@@ -2269,7 +2276,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2269
2276
|
checked: i.value === null,
|
|
2270
2277
|
disabled: e.disabled,
|
|
2271
2278
|
onChange: n[2] ||= (e) => d(null)
|
|
2272
|
-
}, null, 40,
|
|
2279
|
+
}, null, 40, Rn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Ln),
|
|
2273
2280
|
s("label", {
|
|
2274
2281
|
for: R(v),
|
|
2275
2282
|
class: "g-toggle-option g-right",
|
|
@@ -2283,54 +2290,54 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2283
2290
|
checked: i.value === !0,
|
|
2284
2291
|
disabled: e.disabled,
|
|
2285
2292
|
onChange: n[3] ||= (e) => d(!0)
|
|
2286
|
-
}, null, 40,
|
|
2287
|
-
], 2)], 10,
|
|
2293
|
+
}, null, 40, Bn), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, zn)
|
|
2294
|
+
], 2)], 10, jn)]), e.error ? (T(), o("div", {
|
|
2288
2295
|
key: 0,
|
|
2289
2296
|
id: `${R(p)}-error`,
|
|
2290
2297
|
class: "g-form-error",
|
|
2291
2298
|
role: "alert",
|
|
2292
2299
|
"aria-atomic": "true"
|
|
2293
|
-
}, P(e.error), 9,
|
|
2300
|
+
}, P(e.error), 9, Vn)) : a("", !0)]));
|
|
2294
2301
|
}
|
|
2295
|
-
}),
|
|
2302
|
+
}), Un = {
|
|
2296
2303
|
ref: "tableBodyRef",
|
|
2297
2304
|
class: "efficient-table-body"
|
|
2298
|
-
},
|
|
2305
|
+
}, Wn = ["aria-rowindex"], Gn = {
|
|
2299
2306
|
key: 0,
|
|
2300
2307
|
class: "table-group-checkbox"
|
|
2301
|
-
},
|
|
2308
|
+
}, Kn = ["colspan"], qn = [
|
|
2302
2309
|
"aria-rowindex",
|
|
2303
2310
|
"onMousedown",
|
|
2304
2311
|
"onClick"
|
|
2305
|
-
],
|
|
2312
|
+
], Jn = [
|
|
2306
2313
|
"checked",
|
|
2307
2314
|
"onClick",
|
|
2308
2315
|
"aria-label",
|
|
2309
2316
|
"name"
|
|
2310
|
-
],
|
|
2317
|
+
], Yn = ["id"], Xn = {
|
|
2311
2318
|
key: 0,
|
|
2312
2319
|
class: "editable-cell"
|
|
2313
|
-
},
|
|
2320
|
+
}, Zn = {
|
|
2314
2321
|
key: 0,
|
|
2315
2322
|
class: "cell-prefix"
|
|
2316
|
-
},
|
|
2323
|
+
}, Qn = [
|
|
2317
2324
|
"value",
|
|
2318
2325
|
"onChange",
|
|
2319
2326
|
"aria-labelledby",
|
|
2320
2327
|
"aria-invalid",
|
|
2321
2328
|
"aria-errormessage",
|
|
2322
2329
|
"name"
|
|
2323
|
-
],
|
|
2330
|
+
], $n = ["value"], er = [
|
|
2324
2331
|
"value",
|
|
2325
2332
|
"onInput",
|
|
2326
2333
|
"aria-labelledby",
|
|
2327
2334
|
"aria-invalid",
|
|
2328
2335
|
"aria-errormessage",
|
|
2329
2336
|
"name"
|
|
2330
|
-
],
|
|
2337
|
+
], tr = {
|
|
2331
2338
|
key: 3,
|
|
2332
2339
|
class: "cell-suffix"
|
|
2333
|
-
},
|
|
2340
|
+
}, nr = ["id"], rr = /* @__PURE__ */ u({
|
|
2334
2341
|
__name: "GTableBody",
|
|
2335
2342
|
props: {
|
|
2336
2343
|
data: {},
|
|
@@ -2399,13 +2406,13 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2399
2406
|
function C(e, t) {
|
|
2400
2407
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2401
2408
|
}
|
|
2402
|
-
return (n, r) => (T(), o("tbody",
|
|
2409
|
+
return (n, r) => (T(), o("tbody", Un, [(T(!0), o(e, null, k(t.data, (n, l) => (T(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (T(), o("tr", {
|
|
2403
2410
|
key: 0,
|
|
2404
2411
|
"aria-rowindex": t.startIndex + l + 2
|
|
2405
|
-
}, [t.bulkSelectionEnabled ? (T(), o("td",
|
|
2412
|
+
}, [t.bulkSelectionEnabled ? (T(), o("td", Gn)) : a("", !0), s("td", {
|
|
2406
2413
|
colspan: t.columns.length,
|
|
2407
2414
|
class: "table-group-row"
|
|
2408
|
-
}, [t.groupRender ? (T(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (T(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8,
|
|
2415
|
+
}, [t.groupRender ? (T(), i(j(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (T(), o(e, { key: 1 }, [c(P(n[t.groupBy]), 1)], 64))], 8, Kn)], 8, Wn)) : a("", !0), s("tr", {
|
|
2409
2416
|
class: _([
|
|
2410
2417
|
"efficient-table-row",
|
|
2411
2418
|
{
|
|
@@ -2428,7 +2435,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2428
2435
|
"aria-label": `Select row ${n.key}`,
|
|
2429
2436
|
name: `row-${n.key}-checkbox`,
|
|
2430
2437
|
class: "g-bulk-select-checkbox"
|
|
2431
|
-
}, null, 8,
|
|
2438
|
+
}, null, 8, Jn)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (r) => (T(), o("td", {
|
|
2432
2439
|
key: r.key,
|
|
2433
2440
|
id: b(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2434
2441
|
class: _([
|
|
@@ -2437,8 +2444,8 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2437
2444
|
S(n, r) ? "g-cell-error" : "",
|
|
2438
2445
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2439
2446
|
])
|
|
2440
|
-
}, [r.editable ? (T(), o("div",
|
|
2441
|
-
r.editable.prefix ? (T(), o("span",
|
|
2447
|
+
}, [r.editable ? (T(), o("div", Xn, [
|
|
2448
|
+
r.editable.prefix ? (T(), o("span", Zn, P(r.editable.prefix), 1)) : a("", !0),
|
|
2442
2449
|
r.editable.type === "select" ? (T(), o("select", {
|
|
2443
2450
|
key: 1,
|
|
2444
2451
|
value: n[r.key],
|
|
@@ -2451,7 +2458,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2451
2458
|
}, [(T(!0), o(e, null, k(r.editable.options, (e) => (T(), o("option", {
|
|
2452
2459
|
key: e.value,
|
|
2453
2460
|
value: e.value
|
|
2454
|
-
}, P(e.label), 9,
|
|
2461
|
+
}, P(e.label), 9, $n))), 128))], 40, Qn)) : (T(), o("input", h({
|
|
2455
2462
|
key: 2,
|
|
2456
2463
|
value: n[r.key]
|
|
2457
2464
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
@@ -2465,24 +2472,24 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2465
2472
|
paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
|
|
2466
2473
|
paddingRight: r.editable.suffix ? "2rem" : void 0
|
|
2467
2474
|
}
|
|
2468
|
-
}), null, 16,
|
|
2469
|
-
r.editable.suffix ? (T(), o("span",
|
|
2475
|
+
}), null, 16, er)),
|
|
2476
|
+
r.editable.suffix ? (T(), o("span", tr, P(r.editable.suffix), 1)) : a("", !0)
|
|
2470
2477
|
])) : r.display ? (T(), i(j(r.display(n)), { key: 1 })) : (T(), o(e, { key: 2 }, [c(P(n[r.key]), 1)], 64)), S(n, r) ? (T(), o("div", {
|
|
2471
2478
|
key: 3,
|
|
2472
2479
|
role: "alert",
|
|
2473
2480
|
class: "g-cell-error-message",
|
|
2474
2481
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2475
|
-
}, P(C(n, r)), 9,
|
|
2482
|
+
}, P(C(n, r)), 9, nr)) : a("", !0)], 10, Yn))), 128))], 42, qn)], 64))), 128))], 512));
|
|
2476
2483
|
}
|
|
2477
|
-
}),
|
|
2484
|
+
}), ir = ["id", "for"], ar = {
|
|
2478
2485
|
key: 0,
|
|
2479
2486
|
class: "g-multiselect-required",
|
|
2480
2487
|
"aria-hidden": "true"
|
|
2481
|
-
},
|
|
2488
|
+
}, or = ["id"], sr = ["aria-labelledby"], cr = { class: "g-multiselect-chip-label" }, lr = [
|
|
2482
2489
|
"aria-label",
|
|
2483
2490
|
"disabled",
|
|
2484
2491
|
"onClick"
|
|
2485
|
-
],
|
|
2492
|
+
], ur = [
|
|
2486
2493
|
"id",
|
|
2487
2494
|
"value",
|
|
2488
2495
|
"placeholder",
|
|
@@ -2492,23 +2499,26 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2492
2499
|
"aria-activedescendant",
|
|
2493
2500
|
"aria-describedby",
|
|
2494
2501
|
"aria-required"
|
|
2495
|
-
],
|
|
2502
|
+
], dr = ["id"], fr = [
|
|
2496
2503
|
"id",
|
|
2497
2504
|
"aria-selected",
|
|
2498
2505
|
"onClick"
|
|
2499
|
-
],
|
|
2506
|
+
], pr = {
|
|
2500
2507
|
class: "g-multiselect-option-check",
|
|
2501
2508
|
"aria-hidden": "true"
|
|
2502
|
-
},
|
|
2509
|
+
}, mr = {
|
|
2503
2510
|
key: 0,
|
|
2504
2511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2505
2512
|
viewBox: "0 0 640 640",
|
|
2506
2513
|
width: "1.25em"
|
|
2507
|
-
},
|
|
2514
|
+
}, hr = { class: "g-multiselect-option-text" }, gr = { class: "g-multiselect-option-label" }, _r = {
|
|
2515
|
+
key: 0,
|
|
2516
|
+
class: "g-multiselect-option-description"
|
|
2517
|
+
}, vr = {
|
|
2508
2518
|
key: 1,
|
|
2509
2519
|
"aria-live": "polite",
|
|
2510
2520
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
2511
|
-
},
|
|
2521
|
+
}, yr = /* @__PURE__ */ u({
|
|
2512
2522
|
__name: "GMultiSelect",
|
|
2513
2523
|
props: /*@__PURE__*/ m({
|
|
2514
2524
|
options: {},
|
|
@@ -2527,6 +2537,10 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2527
2537
|
default: !1
|
|
2528
2538
|
},
|
|
2529
2539
|
name: {},
|
|
2540
|
+
searchDescription: {
|
|
2541
|
+
type: Boolean,
|
|
2542
|
+
default: !0
|
|
2543
|
+
},
|
|
2530
2544
|
errors: { default: () => [] },
|
|
2531
2545
|
instructions: {},
|
|
2532
2546
|
formKey: {}
|
|
@@ -2550,7 +2564,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2550
2564
|
}), M = r(() => Mt(i.options)), N = r(() => {
|
|
2551
2565
|
if (!x.value) return M.value;
|
|
2552
2566
|
let e = x.value.toLowerCase();
|
|
2553
|
-
return M.value.filter((t) => t.label.toLowerCase().includes(e));
|
|
2567
|
+
return M.value.filter((t) => t.label.toLowerCase().includes(e) || i.searchDescription && !!t.description && t.description.toLowerCase().includes(e));
|
|
2554
2568
|
});
|
|
2555
2569
|
function F(e) {
|
|
2556
2570
|
return d.value.includes(e);
|
|
@@ -2642,12 +2656,12 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2642
2656
|
id: ae.value,
|
|
2643
2657
|
for: ie.value,
|
|
2644
2658
|
class: "g-multiselect-label"
|
|
2645
|
-
}, [c(P(t.label), 1), t.required ? (T(), o("span",
|
|
2659
|
+
}, [c(P(t.label), 1), t.required ? (T(), o("span", ar, " *")) : a("", !0)], 8, ir)),
|
|
2646
2660
|
t.instructions ? (T(), o("div", {
|
|
2647
2661
|
key: 1,
|
|
2648
2662
|
id: oe.value,
|
|
2649
2663
|
class: "g-multiselect-instructions"
|
|
2650
|
-
}, P(t.instructions), 9,
|
|
2664
|
+
}, P(t.instructions), 9, or)) : a("", !0),
|
|
2651
2665
|
s("div", {
|
|
2652
2666
|
ref_key: "controlRef",
|
|
2653
2667
|
ref: m,
|
|
@@ -2661,7 +2675,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2661
2675
|
}, [(T(!0), o(e, null, k(d.value, (e) => (T(), o("li", {
|
|
2662
2676
|
key: e,
|
|
2663
2677
|
class: "g-multiselect-chip"
|
|
2664
|
-
}, [s("span",
|
|
2678
|
+
}, [s("span", cr, P(L(e)), 1), s("button", {
|
|
2665
2679
|
type: "button",
|
|
2666
2680
|
class: "g-multiselect-chip-remove",
|
|
2667
2681
|
"aria-label": `Remove ${L(e)}`,
|
|
@@ -2676,7 +2690,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2676
2690
|
}, [s("path", {
|
|
2677
2691
|
fill: "currentColor",
|
|
2678
2692
|
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"
|
|
2679
|
-
})], -1)]], 40,
|
|
2693
|
+
})], -1)]], 40, lr)]))), 128))], 8, sr)) : a("", !0),
|
|
2680
2694
|
s("input", h({
|
|
2681
2695
|
ref_key: "inputRef",
|
|
2682
2696
|
ref: p,
|
|
@@ -2700,7 +2714,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2700
2714
|
onKeydown: re,
|
|
2701
2715
|
onFocus: q,
|
|
2702
2716
|
onBlur: J
|
|
2703
|
-
}), null, 16,
|
|
2717
|
+
}), null, 16, ur),
|
|
2704
2718
|
r[2] ||= s("svg", {
|
|
2705
2719
|
class: "g-multiselect-caret",
|
|
2706
2720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2732,7 +2746,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2732
2746
|
"aria-selected": F(e.value) ? "true" : "false",
|
|
2733
2747
|
onMousedown: X,
|
|
2734
2748
|
onClick: (e) => U(t)
|
|
2735
|
-
}, [s("span",
|
|
2749
|
+
}, [s("span", pr, [F(e.value) ? (T(), o("svg", mr, [...r[1] ||= [s("path", { d: "M530.8 134.1C545.1 144.5 548.3 164.5 537.9 178.8L281.9 530.8C276.4 538.4 267.9 543.1 258.5 543.9C249.1 544.7 240 541.2 233.4 534.6L105.4 406.6C92.9 394.1 92.9 373.8 105.4 361.3C117.9 348.8 138.2 348.8 150.7 361.3L252.2 462.8L486.2 141.1C496.6 126.8 516.6 123.6 530.9 134z" }, null, -1)]])) : a("", !0)]), s("span", hr, [s("span", gr, P(e.label), 1), e.description ? (T(), o("span", _r, P(e.description), 1)) : a("", !0)])], 42, fr))), 128)) : (T(), o("div", vr, " No results found. "))], 16, dr), [[ee, y.value]])
|
|
2736
2750
|
], 2),
|
|
2737
2751
|
l(je, {
|
|
2738
2752
|
errors: R(C),
|
|
@@ -2743,28 +2757,28 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2743
2757
|
});
|
|
2744
2758
|
//#endregion
|
|
2745
2759
|
//#region src/compose/useFiltering.ts
|
|
2746
|
-
function
|
|
2760
|
+
function br(e) {
|
|
2747
2761
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
2748
2762
|
}
|
|
2749
|
-
function
|
|
2763
|
+
function xr(e) {
|
|
2750
2764
|
return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
|
|
2751
2765
|
}
|
|
2752
|
-
function
|
|
2766
|
+
function Sr(e) {
|
|
2753
2767
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2754
2768
|
}
|
|
2755
|
-
function
|
|
2769
|
+
function Cr(e) {
|
|
2756
2770
|
let t = {};
|
|
2757
2771
|
for (let [n, r] of Object.entries(F(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : r === !0 ? t[n] = "true" : t[n] = r || void 0;
|
|
2758
2772
|
return t;
|
|
2759
2773
|
}
|
|
2760
|
-
function
|
|
2774
|
+
function wr(e) {
|
|
2761
2775
|
let t = {};
|
|
2762
2776
|
return Object.keys(e).forEach((n) => {
|
|
2763
2777
|
let r = e[n];
|
|
2764
2778
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
2765
2779
|
}), t;
|
|
2766
2780
|
}
|
|
2767
|
-
function
|
|
2781
|
+
function Tr(e, t = {}) {
|
|
2768
2782
|
let n = D(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
2769
2783
|
if (i) {
|
|
2770
2784
|
if (i.value) {
|
|
@@ -2777,13 +2791,13 @@ function br(e, t = {}) {
|
|
|
2777
2791
|
});
|
|
2778
2792
|
}
|
|
2779
2793
|
K(n, (e) => {
|
|
2780
|
-
i.value =
|
|
2794
|
+
i.value = wr(e);
|
|
2781
2795
|
}, { deep: !0 });
|
|
2782
2796
|
}
|
|
2783
2797
|
return {
|
|
2784
2798
|
filters: n,
|
|
2785
2799
|
isFiltered: r(() => {
|
|
2786
|
-
for (let t of Object.keys(e)) if (
|
|
2800
|
+
for (let t of Object.keys(e)) if (br(n[t])) return !0;
|
|
2787
2801
|
return !1;
|
|
2788
2802
|
}),
|
|
2789
2803
|
clearFilters: () => {
|
|
@@ -2793,56 +2807,59 @@ function br(e, t = {}) {
|
|
|
2793
2807
|
},
|
|
2794
2808
|
filteredColumns: r(() => {
|
|
2795
2809
|
let t = {};
|
|
2796
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
2810
|
+
for (let r of Object.keys(e)) t[r] = !!br(n[r]);
|
|
2797
2811
|
return t;
|
|
2798
2812
|
})
|
|
2799
2813
|
};
|
|
2800
2814
|
}
|
|
2801
2815
|
//#endregion
|
|
2802
2816
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
2803
|
-
var
|
|
2817
|
+
var Er = { class: "g-table-outer-wrap" }, Dr = {
|
|
2804
2818
|
key: 0,
|
|
2805
2819
|
class: "g-table-controls"
|
|
2806
|
-
},
|
|
2820
|
+
}, Or = { class: "g-clear-filters-wrap" }, kr = {
|
|
2807
2821
|
key: 0,
|
|
2808
2822
|
class: "pagination"
|
|
2809
|
-
},
|
|
2823
|
+
}, Ar = { class: "g-result-count" }, jr = ["aria-label", "aria-rowcount"], Mr = { class: "g-table-head" }, Nr = { "aria-rowindex": "1" }, Pr = {
|
|
2810
2824
|
key: 0,
|
|
2811
2825
|
scope: "col",
|
|
2812
2826
|
class: "g-th g-th-checkbox"
|
|
2813
|
-
},
|
|
2827
|
+
}, Fr = [
|
|
2814
2828
|
"checked",
|
|
2815
2829
|
"indeterminate",
|
|
2816
2830
|
"aria-label"
|
|
2817
|
-
],
|
|
2831
|
+
], Ir = ["id", "aria-sort"], Lr = { class: "th-inner" }, Rr = ["onClick"], zr = {
|
|
2818
2832
|
key: 0,
|
|
2819
2833
|
class: "sort-indicator"
|
|
2820
|
-
},
|
|
2834
|
+
}, Br = ["aria-label"], Vr = {
|
|
2821
2835
|
key: 1,
|
|
2822
2836
|
class: "g-column-head"
|
|
2823
|
-
},
|
|
2837
|
+
}, Hr = ["onClick", "aria-label"], Ur = {
|
|
2824
2838
|
key: 1,
|
|
2825
2839
|
class: "g-filter-search",
|
|
2826
2840
|
role: "search"
|
|
2827
|
-
},
|
|
2841
|
+
}, Wr = [
|
|
2828
2842
|
"onUpdate:modelValue",
|
|
2829
2843
|
"placeholder",
|
|
2830
2844
|
"aria-label"
|
|
2831
|
-
],
|
|
2845
|
+
], Gr = { key: 2 }, Kr = { class: "g-filter-toggle" }, qr = [
|
|
2832
2846
|
"onUpdate:modelValue",
|
|
2833
2847
|
"id",
|
|
2834
2848
|
"aria-describedby"
|
|
2835
|
-
],
|
|
2849
|
+
], Jr = ["for"], Yr = ["id"], Xr = {
|
|
2836
2850
|
key: 4,
|
|
2837
2851
|
class: "g-multi-select"
|
|
2838
|
-
},
|
|
2852
|
+
}, Zr = [
|
|
2839
2853
|
"onUpdate:modelValue",
|
|
2840
2854
|
"id",
|
|
2841
2855
|
"value"
|
|
2842
|
-
],
|
|
2856
|
+
], Qr = ["for"], $r = { class: "g-multi-select-option-label" }, ei = {
|
|
2857
|
+
key: 0,
|
|
2858
|
+
class: "g-multi-select-option-description"
|
|
2859
|
+
}, ti = {
|
|
2843
2860
|
key: 1,
|
|
2844
2861
|
class: "g-bulk-actions-toolbar"
|
|
2845
|
-
},
|
|
2862
|
+
}, ni = { class: "g-selected-count" }, ri = { class: "g-bulk-actions" }, ii = /* @__PURE__ */ u({
|
|
2846
2863
|
__name: "GTable",
|
|
2847
2864
|
props: /*@__PURE__*/ m({
|
|
2848
2865
|
label: {},
|
|
@@ -2891,7 +2908,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2891
2908
|
e.sortable && (u.value === e.key ? d.value === 1 ? d.value = -1 : d.value === -1 && (u.value = void 0, d.value = 1) : (u.value = e.key, d.value = 1));
|
|
2892
2909
|
}
|
|
2893
2910
|
let v = m.filtering;
|
|
2894
|
-
v ||=
|
|
2911
|
+
v ||= Tr({});
|
|
2895
2912
|
let { filters: b, filteredColumns: x, isFiltered: C, clearFilters: w } = v, E = r(() => m.data.map((e) => e.key)), D = r(() => p.value.filter((e) => E.value.includes(e))), j = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : D.value.length === E.value.length), M = r(() => !m.bulkSelectionEnabled || m.data.length === 0 ? !1 : D.value.length > 0 && D.value.length < E.value.length), N = O(null);
|
|
2896
2913
|
function I() {
|
|
2897
2914
|
if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
|
|
@@ -2939,9 +2956,9 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2939
2956
|
let e = f.value[t.key];
|
|
2940
2957
|
f.value[t.key] = e ? [e] : [];
|
|
2941
2958
|
}
|
|
2942
|
-
}, { immediate: !0 }), (n, r) => (T(), o("div",
|
|
2943
|
-
re.value ? (T(), o("div",
|
|
2944
|
-
s("div",
|
|
2959
|
+
}, { immediate: !0 }), (n, r) => (T(), o("div", Er, [
|
|
2960
|
+
re.value ? (T(), o("div", Dr, [
|
|
2961
|
+
s("div", Or, [R(C) ? (T(), i(Q, {
|
|
2945
2962
|
key: 0,
|
|
2946
2963
|
outlined: "",
|
|
2947
2964
|
size: "small",
|
|
@@ -2959,22 +2976,22 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2959
2976
|
})], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
2960
2977
|
_: 1
|
|
2961
2978
|
}, 8, ["onClick"])) : a("", !0)]),
|
|
2962
|
-
ne.value ? (T(), o("div",
|
|
2963
|
-
s("span",
|
|
2979
|
+
ne.value ? (T(), o("div", kr, [A(n.$slots, "pagination")])) : a("", !0),
|
|
2980
|
+
s("span", Ar, P(m.resultCount || t.data.length) + " results", 1)
|
|
2964
2981
|
])) : a("", !0),
|
|
2965
2982
|
s("table", {
|
|
2966
2983
|
class: "g-table",
|
|
2967
2984
|
ref: "tableRef",
|
|
2968
2985
|
"aria-label": t.label,
|
|
2969
2986
|
"aria-rowcount": m.resultCount || t.data.length
|
|
2970
|
-
}, [s("thead",
|
|
2987
|
+
}, [s("thead", Mr, [s("tr", Nr, [t.bulkSelectionEnabled ? (T(), o("th", Pr, [s("input", {
|
|
2971
2988
|
type: "checkbox",
|
|
2972
2989
|
checked: j.value,
|
|
2973
2990
|
indeterminate: M.value,
|
|
2974
2991
|
onChange: I,
|
|
2975
2992
|
"aria-label": j.value ? "Deselect all rows" : "Select all rows",
|
|
2976
2993
|
class: "g-bulk-select-checkbox"
|
|
2977
|
-
}, null, 40,
|
|
2994
|
+
}, null, 40, Fr)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (t) => (T(), o("th", {
|
|
2978
2995
|
key: t.key,
|
|
2979
2996
|
id: `${R(q)}-th-${String(t.key)}`,
|
|
2980
2997
|
"aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
|
|
@@ -2984,12 +3001,12 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2984
3001
|
{ filtered: R(x)[t.key] }
|
|
2985
3002
|
]),
|
|
2986
3003
|
scope: "col"
|
|
2987
|
-
}, [s("div",
|
|
3004
|
+
}, [s("div", Lr, [t.sortable ? (T(), o("button", {
|
|
2988
3005
|
key: 0,
|
|
2989
3006
|
type: "button",
|
|
2990
3007
|
class: "g-column-head",
|
|
2991
3008
|
onClick: (e) => g(t)
|
|
2992
|
-
}, [c(P(t.label) + " ", 1), u.value === t.key ? (T(), o("span",
|
|
3009
|
+
}, [c(P(t.label) + " ", 1), u.value === t.key ? (T(), o("span", zr, [(T(), o("svg", {
|
|
2993
3010
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2994
3011
|
viewBox: "0 0 640 640",
|
|
2995
3012
|
height: "1.5em",
|
|
@@ -2999,7 +3016,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2999
3016
|
}, [...r[1] ||= [s("path", {
|
|
3000
3017
|
fill: "currentColor",
|
|
3001
3018
|
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"
|
|
3002
|
-
}, null, -1)]], 12,
|
|
3019
|
+
}, null, -1)]], 12, Br))])) : a("", !0)], 8, Rr)) : (T(), o("span", Vr, P(t.label), 1)), t.filter ? (T(), i(at, { key: 2 }, {
|
|
3003
3020
|
trigger: J(({ toggle: e }) => [s("button", {
|
|
3004
3021
|
onClick: te(e, ["stop"]),
|
|
3005
3022
|
"aria-label": R(x)[t.key] ? "Column Filtered" : "Filter Column",
|
|
@@ -3013,8 +3030,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3013
3030
|
}, [s("path", {
|
|
3014
3031
|
fill: "currentColor",
|
|
3015
3032
|
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"
|
|
3016
|
-
})], -1)]], 10,
|
|
3017
|
-
default: J(() => [t.filter.type === "select" ? (T(), i(
|
|
3033
|
+
})], -1)]], 10, Hr)]),
|
|
3034
|
+
default: J(() => [t.filter.type === "select" ? (T(), i(Gt, {
|
|
3018
3035
|
key: 0,
|
|
3019
3036
|
modelValue: f.value[t.key],
|
|
3020
3037
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
@@ -3022,12 +3039,14 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3022
3039
|
class: "g-filter-select",
|
|
3023
3040
|
label: "Filter select",
|
|
3024
3041
|
searchable: "",
|
|
3042
|
+
"search-description": t.filter.searchDescription,
|
|
3025
3043
|
"clear-button": ""
|
|
3026
3044
|
}, null, 8, [
|
|
3027
3045
|
"modelValue",
|
|
3028
3046
|
"onUpdate:modelValue",
|
|
3029
|
-
"options"
|
|
3030
|
-
|
|
3047
|
+
"options",
|
|
3048
|
+
"search-description"
|
|
3049
|
+
])) : t.filter.type === "search" ? (T(), o("div", Ur, [r[3] ||= s("span", {
|
|
3031
3050
|
class: "g-filter-search-icon",
|
|
3032
3051
|
"aria-hidden": "true"
|
|
3033
3052
|
}, [s("svg", {
|
|
@@ -3043,41 +3062,46 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3043
3062
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3044
3063
|
placeholder: t.filter.placeholder,
|
|
3045
3064
|
"aria-label": `Search ${t.label}`
|
|
3046
|
-
}, null, 8,
|
|
3065
|
+
}, null, 8, Wr), [[G, f.value[t.key]]])])) : t.filter.type === "toggle" ? (T(), o("div", Gr, [s("div", Kr, [
|
|
3047
3066
|
Y(s("input", {
|
|
3048
3067
|
type: "checkbox",
|
|
3049
3068
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3050
3069
|
id: `${R(q)}-filter-${String(t.key)}`,
|
|
3051
3070
|
"aria-describedby": t.filter.description ? `${R(q)}-filter-description-${String(t.key)}` : void 0
|
|
3052
|
-
}, null, 8,
|
|
3053
|
-
s("label", { for: `${R(q)}-filter-${String(t.key)}` }, P(t.filter.label), 9,
|
|
3071
|
+
}, null, 8, qr), [[W, f.value[t.key]]]),
|
|
3072
|
+
s("label", { for: `${R(q)}-filter-${String(t.key)}` }, P(t.filter.label), 9, Jr),
|
|
3054
3073
|
t.filter.description ? (T(), o("span", {
|
|
3055
3074
|
key: 0,
|
|
3056
3075
|
class: "g-filter-description",
|
|
3057
3076
|
id: `${R(q)}-filter-description-${String(t.key)}`
|
|
3058
|
-
}, P(t.filter.description), 9,
|
|
3059
|
-
])])) : t.filter.type === "multi-select" && t.filter.searchable ? (T(), i(
|
|
3077
|
+
}, P(t.filter.description), 9, Yr)) : a("", !0)
|
|
3078
|
+
])])) : t.filter.type === "multi-select" && t.filter.searchable ? (T(), i(yr, {
|
|
3060
3079
|
key: 3,
|
|
3061
3080
|
modelValue: f.value[t.key],
|
|
3062
3081
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3063
3082
|
options: t.filter.options,
|
|
3064
3083
|
label: "Include values",
|
|
3065
3084
|
placeholder: t.filter.placeholder,
|
|
3085
|
+
"search-description": t.filter.searchDescription,
|
|
3066
3086
|
class: "g-multi-select-searchable"
|
|
3067
3087
|
}, null, 8, [
|
|
3068
3088
|
"modelValue",
|
|
3069
3089
|
"onUpdate:modelValue",
|
|
3070
3090
|
"options",
|
|
3071
|
-
"placeholder"
|
|
3072
|
-
|
|
3091
|
+
"placeholder",
|
|
3092
|
+
"search-description"
|
|
3093
|
+
])) : t.filter.type === "multi-select" ? (T(), o("fieldset", Xr, [
|
|
3073
3094
|
r[5] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
|
|
3074
|
-
(T(!0), o(e, null, k(t.filter.options, (e) => (T(), o("div", {
|
|
3095
|
+
(T(!0), o(e, null, k(t.filter.options, (e) => (T(), o("div", {
|
|
3096
|
+
key: e.value,
|
|
3097
|
+
class: "g-multi-select-option"
|
|
3098
|
+
}, [Y(s("input", {
|
|
3075
3099
|
type: "checkbox",
|
|
3076
3100
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3077
3101
|
id: `filter-${String(t.key)}-${e.value}`,
|
|
3078
3102
|
value: e.value,
|
|
3079
3103
|
name: "filter-multiselect"
|
|
3080
|
-
}, null, 8,
|
|
3104
|
+
}, null, 8, Zr), [[W, f.value[t.key]]]), s("label", { for: `filter-${String(t.key)}-${e.value}` }, [s("span", $r, P(e.label), 1), e.description ? (T(), o("span", ei, P(e.description), 1)) : a("", !0)], 8, Qr)]))), 128)),
|
|
3081
3105
|
f.value[t.key] && f.value[t.key].length ? (T(), i(Q, {
|
|
3082
3106
|
key: 0,
|
|
3083
3107
|
class: "clear-multiselect-btn",
|
|
@@ -3090,7 +3114,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3090
3114
|
}, 8, ["onClick"])) : a("", !0)
|
|
3091
3115
|
])) : a("", !0)]),
|
|
3092
3116
|
_: 2
|
|
3093
|
-
}, 1024)) : a("", !0)])], 10,
|
|
3117
|
+
}, 1024)) : a("", !0)])], 10, Ir))), 128))])]), l(rr, {
|
|
3094
3118
|
data: t.data,
|
|
3095
3119
|
columns: t.columns,
|
|
3096
3120
|
"group-by": t.groupBy,
|
|
@@ -3117,8 +3141,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3117
3141
|
"selected-rows",
|
|
3118
3142
|
"table-id",
|
|
3119
3143
|
"change-tracker"
|
|
3120
|
-
])], 8,
|
|
3121
|
-
t.bulkSelectionEnabled && p.value.length > 0 ? (T(), o("div",
|
|
3144
|
+
])], 8, jr),
|
|
3145
|
+
t.bulkSelectionEnabled && p.value.length > 0 ? (T(), o("div", ti, [s("span", ni, P(p.value.length) + " row" + P(p.value.length === 1 ? "" : "s") + " selected", 1), s("ul", ri, [(T(!0), o(e, null, k(t.bulkActions, (e) => (T(), o("li", { key: e.id }, [l(Q, {
|
|
3122
3146
|
theme: e.theme || "accent",
|
|
3123
3147
|
onClick: (t) => U(e.id),
|
|
3124
3148
|
size: "small"
|
|
@@ -3128,10 +3152,10 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3128
3152
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
3129
3153
|
]));
|
|
3130
3154
|
}
|
|
3131
|
-
}),
|
|
3155
|
+
}), ai = {
|
|
3132
3156
|
class: "g-pagination",
|
|
3133
3157
|
"aria-label": "Pagination"
|
|
3134
|
-
},
|
|
3158
|
+
}, oi = ["disabled"], si = ["disabled"], ci = { class: "page-range" }, li = ["disabled"], ui = ["disabled"], di = ["value"], fi = ["value"], pi = /* @__PURE__ */ u({
|
|
3135
3159
|
__name: "GTablePagination",
|
|
3136
3160
|
props: /*@__PURE__*/ m({
|
|
3137
3161
|
start: {},
|
|
@@ -3153,7 +3177,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3153
3177
|
function h(e) {
|
|
3154
3178
|
c.value = parseInt(e.target.value, 10);
|
|
3155
3179
|
}
|
|
3156
|
-
return (t, r) => (T(), o("nav",
|
|
3180
|
+
return (t, r) => (T(), o("nav", ai, [
|
|
3157
3181
|
s("button", {
|
|
3158
3182
|
class: "first-page g-pagination-button",
|
|
3159
3183
|
disabled: p.value === 1,
|
|
@@ -3178,7 +3202,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3178
3202
|
}),
|
|
3179
3203
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3180
3204
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3181
|
-
], -1)]], 8,
|
|
3205
|
+
], -1)]], 8, oi),
|
|
3182
3206
|
s("button", {
|
|
3183
3207
|
class: "prev-page g-pagination-button",
|
|
3184
3208
|
disabled: p.value === 1,
|
|
@@ -3199,8 +3223,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3199
3223
|
stroke: "none",
|
|
3200
3224
|
d: "M0 0h24v24H0z",
|
|
3201
3225
|
fill: "none"
|
|
3202
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
3203
|
-
s("span",
|
|
3226
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, si),
|
|
3227
|
+
s("span", ci, P(d.value) + " to " + P(f.value), 1),
|
|
3204
3228
|
s("button", {
|
|
3205
3229
|
class: "next-page g-pagination-button",
|
|
3206
3230
|
disabled: p.value === i.value,
|
|
@@ -3221,7 +3245,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3221
3245
|
stroke: "none",
|
|
3222
3246
|
d: "M0 0h24v24H0z",
|
|
3223
3247
|
fill: "none"
|
|
3224
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
3248
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, li),
|
|
3225
3249
|
s("button", {
|
|
3226
3250
|
class: "last-page g-pagination-button",
|
|
3227
3251
|
disabled: p.value === i.value,
|
|
@@ -3246,7 +3270,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3246
3270
|
}),
|
|
3247
3271
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3248
3272
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3249
|
-
], -1)]], 8,
|
|
3273
|
+
], -1)]], 8, ui),
|
|
3250
3274
|
s("select", {
|
|
3251
3275
|
id: "page-size-select",
|
|
3252
3276
|
class: "page-size-select",
|
|
@@ -3260,14 +3284,14 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3260
3284
|
], (e) => (T(), o("option", {
|
|
3261
3285
|
key: e,
|
|
3262
3286
|
value: e
|
|
3263
|
-
}, P(e), 9,
|
|
3287
|
+
}, P(e), 9, fi))), 128))], 40, di),
|
|
3264
3288
|
r[8] ||= s("label", {
|
|
3265
3289
|
class: "page-size-label",
|
|
3266
3290
|
for: "page-size-select"
|
|
3267
3291
|
}, "per page", -1)
|
|
3268
3292
|
]));
|
|
3269
3293
|
}
|
|
3270
|
-
}),
|
|
3294
|
+
}), mi = ["id"], hi = { class: "g-modal-inner" }, gi = { class: "g-modal-header" }, _i = ["id"], vi = ["id"], yi = /* @__PURE__ */ u({
|
|
3271
3295
|
__name: "GModal",
|
|
3272
3296
|
props: {
|
|
3273
3297
|
label: {},
|
|
@@ -3311,12 +3335,12 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3311
3335
|
ref_key: "dialog",
|
|
3312
3336
|
ref: f,
|
|
3313
3337
|
style: { zIndex: R(y) }
|
|
3314
|
-
}), [s("div",
|
|
3338
|
+
}), [s("div", hi, [s("div", gi, [e.hiddenLabel ? a("", !0) : (T(), o("h2", {
|
|
3315
3339
|
key: 0,
|
|
3316
3340
|
id: "modal-label-" + R(m),
|
|
3317
3341
|
class: "g-modal-label",
|
|
3318
3342
|
tabindex: "-1"
|
|
3319
|
-
}, P(e.label), 9,
|
|
3343
|
+
}, P(e.label), 9, _i)), s("button", {
|
|
3320
3344
|
class: "g-modal-close",
|
|
3321
3345
|
onClick: w,
|
|
3322
3346
|
"aria-label": "Close"
|
|
@@ -3331,19 +3355,19 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3331
3355
|
})], -1)]])]), s("div", {
|
|
3332
3356
|
id: "modal-description-" + R(m),
|
|
3333
3357
|
class: "g-modal-content"
|
|
3334
|
-
}, [A(r.$slots, "default")], 8,
|
|
3358
|
+
}, [A(r.$slots, "default")], 8, vi)])], 16, mi)]),
|
|
3335
3359
|
_: 3
|
|
3336
3360
|
})]));
|
|
3337
3361
|
}
|
|
3338
|
-
}),
|
|
3362
|
+
}), bi = [
|
|
3339
3363
|
"id",
|
|
3340
3364
|
"aria-expanded",
|
|
3341
3365
|
"aria-label",
|
|
3342
3366
|
"aria-controls"
|
|
3343
|
-
],
|
|
3367
|
+
], xi = {
|
|
3344
3368
|
key: 0,
|
|
3345
3369
|
class: "g-hamburger-label"
|
|
3346
|
-
},
|
|
3370
|
+
}, Si = /* @__PURE__ */ u({
|
|
3347
3371
|
__name: "GHamburgerMenu",
|
|
3348
3372
|
props: {
|
|
3349
3373
|
label: { default: "Main Navigation" },
|
|
@@ -3356,7 +3380,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3356
3380
|
},
|
|
3357
3381
|
emits: ["toggle"],
|
|
3358
3382
|
setup(e, { emit: t }) {
|
|
3359
|
-
let n = e, r = p("sidebar") ?? (Z() ?
|
|
3383
|
+
let n = e, r = p("sidebar") ?? (Z() ? fn(n.sidebarKey, I(n, "mediaQuery")) : void 0), i = t;
|
|
3360
3384
|
function c() {
|
|
3361
3385
|
i("toggle"), r?.toggle();
|
|
3362
3386
|
}
|
|
@@ -3379,34 +3403,34 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3379
3403
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3380
3404
|
viewBox: "0 0 51.26 51.26",
|
|
3381
3405
|
role: "none"
|
|
3382
|
-
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (T(), o("span",
|
|
3406
|
+
}, [s("g", { fill: "currentColor" }, [s("path", { d: "M11.6 16.52h28.06a3.24 3.24 0 1 0 0-6.48H11.6a3.24 3.24 0 0 0 0 6.48ZM39.66 22.07H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48ZM39.66 34.1H11.6a3.24 3.24 0 0 0 0 6.48h28.06a3.24 3.24 0 1 0 0-6.48Z" })])], -1), e.labelVisible ? (T(), o("span", xi, P(e.label), 1)) : a("", !0)], 42, bi));
|
|
3383
3407
|
}
|
|
3384
|
-
}),
|
|
3408
|
+
}), Ci = /* @__PURE__ */ u({
|
|
3385
3409
|
__name: "GDetailList",
|
|
3386
3410
|
props: { variant: { default: "grid" } },
|
|
3387
3411
|
setup(e) {
|
|
3388
3412
|
let t = e;
|
|
3389
3413
|
return (e, n) => (T(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
|
|
3390
3414
|
}
|
|
3391
|
-
}),
|
|
3415
|
+
}), wi = { class: "g-detail-list-item" }, Ti = { class: "g-detail-list-item__label" }, Ei = { class: "g-detail-list-item__value" }, Di = /* @__PURE__ */ u({
|
|
3392
3416
|
__name: "GDetailListItem",
|
|
3393
3417
|
props: { label: {} },
|
|
3394
3418
|
setup(e) {
|
|
3395
|
-
return (t, n) => (T(), o("div",
|
|
3419
|
+
return (t, n) => (T(), o("div", wi, [s("dt", Ti, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])]), s("dd", Ei, [A(t.$slots, "default")])]));
|
|
3396
3420
|
}
|
|
3397
|
-
}),
|
|
3421
|
+
}), Oi = {
|
|
3398
3422
|
key: 0,
|
|
3399
3423
|
class: "g-scroll-lock-overlay"
|
|
3400
|
-
},
|
|
3424
|
+
}, ki = /* @__PURE__ */ u({
|
|
3401
3425
|
__name: "GOverlay",
|
|
3402
3426
|
setup(e) {
|
|
3403
3427
|
let { hasScrollLock: t } = qe();
|
|
3404
3428
|
return (e, r) => (T(), i(n, { name: "g-fade" }, {
|
|
3405
|
-
default: J(() => [R(t) ? (T(), o("div",
|
|
3429
|
+
default: J(() => [R(t) ? (T(), o("div", Oi)) : a("", !0)]),
|
|
3406
3430
|
_: 1
|
|
3407
3431
|
}));
|
|
3408
3432
|
}
|
|
3409
|
-
}),
|
|
3433
|
+
}), Ai = { class: "popover-content" }, ji = { class: "year-dropdown" }, Mi = { class: "month-selector" }, Ni = /* @__PURE__ */ u({
|
|
3410
3434
|
__name: "GTermSelectorControl",
|
|
3411
3435
|
props: /*@__PURE__*/ m({
|
|
3412
3436
|
termYears: { default: () => ["2026"] },
|
|
@@ -3427,7 +3451,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3427
3451
|
emits: ["update:modelValue"],
|
|
3428
3452
|
setup(e) {
|
|
3429
3453
|
let t = V(e, "modelValue");
|
|
3430
|
-
return (n, r) => (T(), o("div",
|
|
3454
|
+
return (n, r) => (T(), o("div", Ai, [s("div", ji, [l(Gt, {
|
|
3431
3455
|
modelValue: t.value.year,
|
|
3432
3456
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
3433
3457
|
options: e.termYears,
|
|
@@ -3436,7 +3460,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3436
3460
|
"modelValue",
|
|
3437
3461
|
"options",
|
|
3438
3462
|
"label"
|
|
3439
|
-
])]), s("div",
|
|
3463
|
+
])]), s("div", Mi, [l(bt, {
|
|
3440
3464
|
modelValue: t.value.name,
|
|
3441
3465
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
3442
3466
|
options: e.termNames,
|
|
@@ -3448,10 +3472,10 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3448
3472
|
"label"
|
|
3449
3473
|
])])]));
|
|
3450
3474
|
}
|
|
3451
|
-
}),
|
|
3475
|
+
}), Pi = { class: "g-term-selector" }, Fi = { class: "g-term-label" }, Ii = {
|
|
3452
3476
|
class: "g-popover-title",
|
|
3453
3477
|
tabindex: "-1"
|
|
3454
|
-
},
|
|
3478
|
+
}, Li = /* @__PURE__ */ u({
|
|
3455
3479
|
__name: "GTermSelector",
|
|
3456
3480
|
props: /*@__PURE__*/ m({
|
|
3457
3481
|
heading: { default: "Period Selection" },
|
|
@@ -3473,7 +3497,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3473
3497
|
emits: ["update:modelValue"],
|
|
3474
3498
|
setup(e) {
|
|
3475
3499
|
let t = V(e, "modelValue");
|
|
3476
|
-
return (n, r) => (T(), o("div",
|
|
3500
|
+
return (n, r) => (T(), o("div", Pi, [l(at, null, {
|
|
3477
3501
|
trigger: J(({ toggle: e }) => [l(Q, {
|
|
3478
3502
|
class: "g-term-selector-button",
|
|
3479
3503
|
theme: "none",
|
|
@@ -3486,7 +3510,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3486
3510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3487
3511
|
viewBox: "0 0 640 640"
|
|
3488
3512
|
}, [s("path", { d: "M224 64C206.3 64 192 78.3 192 96L192 128L160 128C124.7 128 96 156.7 96 192L96 240L544 240L544 192C544 156.7 515.3 128 480 128L448 128L448 96C448 78.3 433.7 64 416 64C398.3 64 384 78.3 384 96L384 128L256 128L256 96C256 78.3 241.7 64 224 64zM96 288L96 480C96 515.3 124.7 544 160 544L480 544C515.3 544 544 515.3 544 480L544 288L96 288z" })])], -1),
|
|
3489
|
-
s("span",
|
|
3513
|
+
s("span", Fi, P(t.value?.name) + " " + P(t.value?.year), 1),
|
|
3490
3514
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
3491
3515
|
role: "none",
|
|
3492
3516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3495,15 +3519,15 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3495
3519
|
]),
|
|
3496
3520
|
_: 1
|
|
3497
3521
|
}, 8, ["onClick"])]),
|
|
3498
|
-
default: J(() => [s("h2",
|
|
3522
|
+
default: J(() => [s("h2", Ii, P(e.heading), 1), l(Ni, v(f(n.$props)), null, 16)]),
|
|
3499
3523
|
_: 1
|
|
3500
3524
|
})]));
|
|
3501
3525
|
}
|
|
3502
|
-
}),
|
|
3526
|
+
}), Ri = { class: "g-user-menu" }, zi = [
|
|
3503
3527
|
"aria-label",
|
|
3504
3528
|
"aria-expanded",
|
|
3505
3529
|
"onClick"
|
|
3506
|
-
],
|
|
3530
|
+
], Bi = { class: "g-user-menu__popover" }, Vi = { class: "g-user-menu__list" }, Hi = /* @__PURE__ */ u({
|
|
3507
3531
|
__name: "GUserMenu",
|
|
3508
3532
|
props: {
|
|
3509
3533
|
initials: {},
|
|
@@ -3515,7 +3539,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3515
3539
|
let n = `${B()}-email`, r = O(!1), a = U("emailHeading");
|
|
3516
3540
|
d()?.appContext?.components?.RouterLink;
|
|
3517
3541
|
let c = H();
|
|
3518
|
-
return (u, d) => (T(), o("div",
|
|
3542
|
+
return (u, d) => (T(), o("div", Ri, [l(at, {
|
|
3519
3543
|
modelValue: r.value,
|
|
3520
3544
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
3521
3545
|
minimal: ""
|
|
@@ -3527,8 +3551,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3527
3551
|
"aria-expanded": r.value,
|
|
3528
3552
|
"aria-haspopup": "menu",
|
|
3529
3553
|
onClick: e
|
|
3530
|
-
}, P(t.initials), 13,
|
|
3531
|
-
default: J(() => [s("div",
|
|
3554
|
+
}, P(t.initials), 13, zi)]),
|
|
3555
|
+
default: J(() => [s("div", Bi, [s("h2", {
|
|
3532
3556
|
id: n,
|
|
3533
3557
|
ref_key: "emailHeading",
|
|
3534
3558
|
ref: a,
|
|
@@ -3537,11 +3561,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3537
3561
|
}, P(t.email), 513), s("nav", {
|
|
3538
3562
|
class: "g-user-menu__nav",
|
|
3539
3563
|
"aria-labelledby": n
|
|
3540
|
-
}, [s("ul",
|
|
3564
|
+
}, [s("ul", Vi, [(T(!0), o(e, null, k(c.default(), (e, t) => (T(), o("li", { key: t }, [(T(), i(j(e)))]))), 128))])])])]),
|
|
3541
3565
|
_: 1
|
|
3542
3566
|
}, 8, ["modelValue"])]));
|
|
3543
3567
|
}
|
|
3544
|
-
}),
|
|
3568
|
+
}), Ui = /* @__PURE__ */ u({
|
|
3545
3569
|
__name: "GCurrencyInput",
|
|
3546
3570
|
props: /*@__PURE__*/ m({
|
|
3547
3571
|
label: { default: void 0 },
|
|
@@ -3592,7 +3616,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3592
3616
|
"form-key"
|
|
3593
3617
|
]));
|
|
3594
3618
|
}
|
|
3595
|
-
}),
|
|
3619
|
+
}), Wi = /* @__PURE__ */ u({
|
|
3596
3620
|
__name: "GEmailInput",
|
|
3597
3621
|
props: /*@__PURE__*/ m({
|
|
3598
3622
|
label: { default: void 0 },
|
|
@@ -3637,13 +3661,13 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3637
3661
|
"instructions"
|
|
3638
3662
|
]));
|
|
3639
3663
|
}
|
|
3640
|
-
}),
|
|
3664
|
+
}), Gi = ["for"], Ki = {
|
|
3641
3665
|
key: 0,
|
|
3642
3666
|
class: "g-file-input-required"
|
|
3643
|
-
},
|
|
3667
|
+
}, qi = {
|
|
3644
3668
|
key: 0,
|
|
3645
3669
|
class: "g-file-input-box-header"
|
|
3646
|
-
},
|
|
3670
|
+
}, Ji = ["id"], Yi = [
|
|
3647
3671
|
"id",
|
|
3648
3672
|
"disabled",
|
|
3649
3673
|
"required",
|
|
@@ -3652,11 +3676,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3652
3676
|
"aria-invalid",
|
|
3653
3677
|
"aria-describedby",
|
|
3654
3678
|
"aria-errormessage"
|
|
3655
|
-
],
|
|
3679
|
+
], Xi = {
|
|
3656
3680
|
key: 1,
|
|
3657
3681
|
class: "g-file-input-pills",
|
|
3658
3682
|
"aria-label": "Selected files"
|
|
3659
|
-
},
|
|
3683
|
+
}, Zi = /* @__PURE__ */ u({
|
|
3660
3684
|
inheritAttrs: !1,
|
|
3661
3685
|
__name: "GFileInput",
|
|
3662
3686
|
props: /*@__PURE__*/ m({
|
|
@@ -3713,12 +3737,12 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3713
3737
|
key: 0,
|
|
3714
3738
|
for: R(d),
|
|
3715
3739
|
class: "g-file-input-label"
|
|
3716
|
-
}, [c(P(t.label) + " ", 1), t.required ? (T(), o("span",
|
|
3740
|
+
}, [c(P(t.label) + " ", 1), t.required ? (T(), o("span", Ki, "*")) : a("", !0)], 8, Gi)) : a("", !0),
|
|
3717
3741
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
3718
|
-
t.instructions ? (T(), o("div",
|
|
3742
|
+
t.instructions ? (T(), o("div", qi, [s("span", {
|
|
3719
3743
|
id: "instructions-" + R(d),
|
|
3720
3744
|
class: "g-file-input-instructions"
|
|
3721
|
-
}, P(t.instructions), 9,
|
|
3745
|
+
}, P(t.instructions), 9, Ji)])) : a("", !0),
|
|
3722
3746
|
s("input", {
|
|
3723
3747
|
id: R(d),
|
|
3724
3748
|
type: "file",
|
|
@@ -3731,8 +3755,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3731
3755
|
"aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
|
|
3732
3756
|
"aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
|
|
3733
3757
|
onChange: g
|
|
3734
|
-
}, null, 40,
|
|
3735
|
-
t.multiple && b.value.length > 0 ? (T(), o("ul",
|
|
3758
|
+
}, null, 40, Yi),
|
|
3759
|
+
t.multiple && b.value.length > 0 ? (T(), o("ul", Xi, [(T(!0), o(e, null, k(b.value, (e) => (T(), o("li", {
|
|
3736
3760
|
key: e,
|
|
3737
3761
|
class: "g-file-input-pill"
|
|
3738
3762
|
}, [r[0] ||= s("svg", {
|
|
@@ -3748,7 +3772,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3748
3772
|
}, null, 8, ["errors", "id"])
|
|
3749
3773
|
], 2));
|
|
3750
3774
|
}
|
|
3751
|
-
}),
|
|
3775
|
+
}), Qi = /* @__PURE__ */ u({
|
|
3752
3776
|
__name: "GDateInput",
|
|
3753
3777
|
props: /*@__PURE__*/ m({
|
|
3754
3778
|
label: { default: void 0 },
|
|
@@ -3796,21 +3820,21 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3796
3820
|
"form-key"
|
|
3797
3821
|
]));
|
|
3798
3822
|
}
|
|
3799
|
-
}),
|
|
3823
|
+
}), $i = { class: "g-date-range-input" }, ea = {
|
|
3800
3824
|
key: 0,
|
|
3801
3825
|
class: "g-date-range-input__label"
|
|
3802
|
-
},
|
|
3826
|
+
}, ta = {
|
|
3803
3827
|
key: 0,
|
|
3804
3828
|
class: "g-date-range-input__required",
|
|
3805
3829
|
"aria-hidden": "true"
|
|
3806
|
-
},
|
|
3830
|
+
}, na = {
|
|
3807
3831
|
key: 1,
|
|
3808
3832
|
class: "g-date-range-input__instructions"
|
|
3809
|
-
},
|
|
3833
|
+
}, ra = { class: "g-date-range-input__fields" }, ia = {
|
|
3810
3834
|
key: 2,
|
|
3811
3835
|
class: "g-date-range-input__errors",
|
|
3812
3836
|
role: "alert"
|
|
3813
|
-
},
|
|
3837
|
+
}, aa = /* @__PURE__ */ u({
|
|
3814
3838
|
__name: "GDateRangeInput",
|
|
3815
3839
|
props: /*@__PURE__*/ m({
|
|
3816
3840
|
label: { default: void 0 },
|
|
@@ -3850,10 +3874,10 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3850
3874
|
};
|
|
3851
3875
|
}), K(r, (e) => {
|
|
3852
3876
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
3853
|
-
}, { deep: !0 }), (t, r) => (T(), o("div",
|
|
3854
|
-
n.label ? (T(), o("div",
|
|
3855
|
-
n.instructions ? (T(), o("div",
|
|
3856
|
-
s("div",
|
|
3877
|
+
}, { deep: !0 }), (t, r) => (T(), o("div", $i, [
|
|
3878
|
+
n.label ? (T(), o("div", ea, [c(P(n.label), 1), n.required ? (T(), o("span", ta, " *")) : a("", !0)])) : a("", !0),
|
|
3879
|
+
n.instructions ? (T(), o("div", na, P(n.instructions), 1)) : a("", !0),
|
|
3880
|
+
s("div", ra, [l(Qi, {
|
|
3857
3881
|
modelValue: i.value,
|
|
3858
3882
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
3859
3883
|
label: n.startLabel,
|
|
@@ -3865,7 +3889,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3865
3889
|
"label",
|
|
3866
3890
|
"disabled",
|
|
3867
3891
|
"required"
|
|
3868
|
-
]), l(
|
|
3892
|
+
]), l(Qi, {
|
|
3869
3893
|
modelValue: u.value,
|
|
3870
3894
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
3871
3895
|
label: n.endLabel,
|
|
@@ -3878,13 +3902,13 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3878
3902
|
"disabled",
|
|
3879
3903
|
"required"
|
|
3880
3904
|
])]),
|
|
3881
|
-
R(d).length > 0 ? (T(), o("div",
|
|
3905
|
+
R(d).length > 0 ? (T(), o("div", ia, [(T(!0), o(e, null, k(R(d), (e, t) => (T(), o("div", {
|
|
3882
3906
|
key: t,
|
|
3883
3907
|
class: "g-date-range-input__error"
|
|
3884
3908
|
}, P(e), 1))), 128))])) : a("", !0)
|
|
3885
3909
|
]));
|
|
3886
3910
|
}
|
|
3887
|
-
}),
|
|
3911
|
+
}), oa = ["action", "method"], sa = /* @__PURE__ */ u({
|
|
3888
3912
|
__name: "GForm",
|
|
3889
3913
|
props: /*@__PURE__*/ m({
|
|
3890
3914
|
action: { default: void 0 },
|
|
@@ -3924,9 +3948,9 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3924
3948
|
hasErrors: R(s).hasErrors.value,
|
|
3925
3949
|
values: R(s).values.value,
|
|
3926
3950
|
errors: R(s).errors.value
|
|
3927
|
-
})], 40,
|
|
3951
|
+
})], 40, oa));
|
|
3928
3952
|
}
|
|
3929
|
-
}),
|
|
3953
|
+
}), ca = /* @__PURE__ */ u({
|
|
3930
3954
|
__name: "GSubmitButton",
|
|
3931
3955
|
props: {
|
|
3932
3956
|
disabled: {
|
|
@@ -3949,21 +3973,21 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3949
3973
|
_: 3
|
|
3950
3974
|
}, 8, ["disabled", "variant"]));
|
|
3951
3975
|
}
|
|
3952
|
-
}),
|
|
3976
|
+
}), la = {
|
|
3953
3977
|
key: 0,
|
|
3954
3978
|
class: "g-checkbox-group__legend"
|
|
3955
|
-
},
|
|
3979
|
+
}, ua = {
|
|
3956
3980
|
key: 0,
|
|
3957
3981
|
class: "g-checkbox-group__required",
|
|
3958
3982
|
"aria-hidden": "true"
|
|
3959
|
-
},
|
|
3983
|
+
}, da = {
|
|
3960
3984
|
key: 1,
|
|
3961
3985
|
class: "g-checkbox-group__label"
|
|
3962
|
-
},
|
|
3986
|
+
}, fa = {
|
|
3963
3987
|
key: 0,
|
|
3964
3988
|
class: "g-checkbox-group__required",
|
|
3965
3989
|
"aria-hidden": "true"
|
|
3966
|
-
},
|
|
3990
|
+
}, pa = ["id"], ma = { class: "g-checkbox-group__options" }, ha = ["for"], ga = [
|
|
3967
3991
|
"id",
|
|
3968
3992
|
"type",
|
|
3969
3993
|
"name",
|
|
@@ -3972,7 +3996,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3972
3996
|
"disabled",
|
|
3973
3997
|
"required",
|
|
3974
3998
|
"onChange"
|
|
3975
|
-
],
|
|
3999
|
+
], _a = { class: "g-checkbox-group__label-text" }, va = ["id"], ya = /* @__PURE__ */ u({
|
|
3976
4000
|
__name: "GCheckboxGroup",
|
|
3977
4001
|
props: /*@__PURE__*/ m({
|
|
3978
4002
|
label: { default: void 0 },
|
|
@@ -4033,13 +4057,13 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4033
4057
|
}
|
|
4034
4058
|
return (n, r) => (T(), i(j(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": R(m) }] }, w.value), {
|
|
4035
4059
|
default: J(() => [
|
|
4036
|
-
C.value && t.label ? (T(), o("legend",
|
|
4060
|
+
C.value && t.label ? (T(), o("legend", la, [c(P(t.label), 1), t.required ? (T(), o("span", ua, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (T(), o("div", da, [c(P(t.label), 1), t.required ? (T(), o("span", fa, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
4037
4061
|
t.instructions ? (T(), o("div", {
|
|
4038
4062
|
key: 2,
|
|
4039
4063
|
id: S.value,
|
|
4040
4064
|
class: "g-checkbox-group__instructions"
|
|
4041
|
-
}, P(t.instructions), 9,
|
|
4042
|
-
s("div",
|
|
4065
|
+
}, P(t.instructions), 9, pa)) : a("", !0),
|
|
4066
|
+
s("div", ma, [(T(!0), o(e, null, k(t.options, (e, n) => (T(), o("div", {
|
|
4043
4067
|
key: e.value,
|
|
4044
4068
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
4045
4069
|
}, [s("label", {
|
|
@@ -4054,11 +4078,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4054
4078
|
disabled: e.disabled,
|
|
4055
4079
|
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
4056
4080
|
class: "g-checkbox-group__input"
|
|
4057
|
-
}, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16,
|
|
4081
|
+
}, { ref_for: !0 }, O(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, ga), s("span", _a, P(e.label), 1)], 10, ha), e.hint ? (T(), o("div", {
|
|
4058
4082
|
key: 0,
|
|
4059
4083
|
id: E(n),
|
|
4060
4084
|
class: "g-checkbox-group__hint"
|
|
4061
|
-
}, P(e.hint), 9,
|
|
4085
|
+
}, P(e.hint), 9, va)) : a("", !0)], 2))), 128))]),
|
|
4062
4086
|
l(je, {
|
|
4063
4087
|
errors: R(p),
|
|
4064
4088
|
id: x.value
|
|
@@ -4067,11 +4091,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4067
4091
|
_: 1
|
|
4068
4092
|
}, 16, ["class"]));
|
|
4069
4093
|
}
|
|
4070
|
-
}),
|
|
4094
|
+
}), ba = ["for"], xa = {
|
|
4071
4095
|
key: 0,
|
|
4072
4096
|
class: "g-textarea-required",
|
|
4073
4097
|
"aria-hidden": "true"
|
|
4074
|
-
},
|
|
4098
|
+
}, Sa = ["id"], Ca = [
|
|
4075
4099
|
"value",
|
|
4076
4100
|
"placeholder",
|
|
4077
4101
|
"disabled",
|
|
@@ -4080,11 +4104,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4080
4104
|
"rows",
|
|
4081
4105
|
"maxlength",
|
|
4082
4106
|
"aria-invalid"
|
|
4083
|
-
],
|
|
4107
|
+
], wa = {
|
|
4084
4108
|
key: 2,
|
|
4085
4109
|
class: "g-textarea-char-count",
|
|
4086
4110
|
"aria-live": "polite"
|
|
4087
|
-
},
|
|
4111
|
+
}, Ta = /* @__PURE__ */ u({
|
|
4088
4112
|
inheritAttrs: !1,
|
|
4089
4113
|
__name: "GTextarea",
|
|
4090
4114
|
props: /*@__PURE__*/ m({
|
|
@@ -4158,12 +4182,12 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4158
4182
|
key: 0,
|
|
4159
4183
|
for: m.value,
|
|
4160
4184
|
class: "g-textarea-label"
|
|
4161
|
-
}, [c(P(n.label), 1), n.required ? (T(), o("span",
|
|
4185
|
+
}, [c(P(n.label), 1), n.required ? (T(), o("span", xa, " *")) : a("", !0)], 8, ba)) : a("", !0),
|
|
4162
4186
|
t.$slots.instructions || e.instructions ? (T(), o("div", {
|
|
4163
4187
|
key: 1,
|
|
4164
4188
|
id: "instructions-" + R(u),
|
|
4165
4189
|
class: "g-textarea-instructions"
|
|
4166
|
-
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8,
|
|
4190
|
+
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Sa)) : a("", !0),
|
|
4167
4191
|
s("textarea", h({
|
|
4168
4192
|
ref: "textareaEl",
|
|
4169
4193
|
value: i.value ?? "",
|
|
@@ -4184,8 +4208,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4184
4208
|
onInput: w,
|
|
4185
4209
|
onBlur: E,
|
|
4186
4210
|
onPaste: D
|
|
4187
|
-
}), null, 16,
|
|
4188
|
-
n.maxlength === void 0 ? a("", !0) : (T(), o("div",
|
|
4211
|
+
}), null, 16, Ca),
|
|
4212
|
+
n.maxlength === void 0 ? a("", !0) : (T(), o("div", wa, P((i.value ?? "").length) + " / " + P(n.maxlength), 1)),
|
|
4189
4213
|
l(je, {
|
|
4190
4214
|
errors: R(v),
|
|
4191
4215
|
id: "error-message-" + R(u)
|
|
@@ -4195,7 +4219,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4195
4219
|
});
|
|
4196
4220
|
//#endregion
|
|
4197
4221
|
//#region src/compose/useActiveLink.ts
|
|
4198
|
-
function
|
|
4222
|
+
function Ea(e, t, n) {
|
|
4199
4223
|
let r = [
|
|
4200
4224
|
0,
|
|
4201
4225
|
.25,
|
|
@@ -4225,7 +4249,7 @@ function ya(e, t, n) {
|
|
|
4225
4249
|
}
|
|
4226
4250
|
//#endregion
|
|
4227
4251
|
//#region src/compose/useSidebar.ts
|
|
4228
|
-
function
|
|
4252
|
+
function Da(e = "(max-width: 800px)") {
|
|
4229
4253
|
let t = B(), n = O(!1), r = le(e, { ssrWidth: 1e3 });
|
|
4230
4254
|
function i(e) {
|
|
4231
4255
|
if (!r.value || !n.value) return;
|
|
@@ -4256,7 +4280,7 @@ function ba(e = "(max-width: 800px)") {
|
|
|
4256
4280
|
}
|
|
4257
4281
|
//#endregion
|
|
4258
4282
|
//#region src/compose/useTableChanges.ts
|
|
4259
|
-
function
|
|
4283
|
+
function Oa() {
|
|
4260
4284
|
let e = M(/* @__PURE__ */ new Map()), t = X(), n = (n) => {
|
|
4261
4285
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
4262
4286
|
e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
|
|
@@ -4359,6 +4383,6 @@ function xa() {
|
|
|
4359
4383
|
};
|
|
4360
4384
|
}
|
|
4361
4385
|
//#endregion
|
|
4362
|
-
export { $,
|
|
4386
|
+
export { $, rr as A, tn as B, Sr as C, wr as D, xr as E, yn as F, pt as G, jt as H, hn as I, $e as J, at as K, pn as L, Dn as M, Sn as N, Tr as O, bn as P, Re as Q, fn as R, ii as S, Cr as T, Tt as U, Gt as V, bt as W, Ke as X, Qe as Y, qe as Z, Di as _, ya as a, Q as at, yi as b, aa as c, Wi as d, ke as et, Ui as f, ki as g, Ni as h, Ta as i, xe as it, Hn as j, yr as k, Qi as l, Li as m, Da as n, Ee as nt, ca as o, Hi as p, et as q, Ea as r, Se as rt, sa as s, Oa as t, De as tt, Zi as u, Ci as v, br as w, pi as x, Si as y, ln as z };
|
|
4363
4387
|
|
|
4364
|
-
//# sourceMappingURL=grad-vue-
|
|
4388
|
+
//# sourceMappingURL=grad-vue-CLV2d1M0.js.map
|