@illinois-grad/grad-vue 3.0.13 → 3.0.15
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/GHistoryScroller.vue.d.ts +1 -1
- package/dist/components/GMultiSelect.vue.d.ts +19 -1
- package/dist/components/GSearch.vue.d.ts +1 -1
- package/dist/components/GSelect.vue.d.ts +20 -2
- package/dist/components/GTable.vue.d.ts +1 -1
- package/dist/components/table/GTableBody.vue.d.ts +1 -1
- package/dist/components/table/TableColumn.d.ts +13 -0
- package/dist/compose/useSelectDropdown.d.ts +6 -0
- package/dist/{grad-vue-BkZSETi2.js → grad-vue-N0uyBUx2.js} +268 -239
- package/dist/grad-vue-N0uyBUx2.js.map +1 -0
- package/dist/grad-vue-elements.css +30 -30
- package/dist/grad-vue-elements.js +348 -292
- 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 +5 -5
- package/dist/grad-vue-BkZSETi2.js.map +0 -1
|
@@ -130,8 +130,9 @@ var he = { class: "g-btn--icon" }, ge = { class: "g-btn--label" }, Q = /* @__PUR
|
|
|
130
130
|
return !0;
|
|
131
131
|
});
|
|
132
132
|
function f() {
|
|
133
|
+
let e = !d.value;
|
|
133
134
|
u.value = {
|
|
134
|
-
expanded:
|
|
135
|
+
expanded: e,
|
|
135
136
|
version: u.value.version + 1
|
|
136
137
|
};
|
|
137
138
|
}
|
|
@@ -511,7 +512,8 @@ var Ae = ["id"], je = /* @__PURE__ */ u({
|
|
|
511
512
|
}
|
|
512
513
|
}
|
|
513
514
|
function C(e) {
|
|
514
|
-
|
|
515
|
+
let t = e.target.value;
|
|
516
|
+
b.value = t, x && clearTimeout(x), x = setTimeout(() => {
|
|
515
517
|
S(b.value), x = null;
|
|
516
518
|
}, n.debounce);
|
|
517
519
|
}
|
|
@@ -1292,11 +1294,14 @@ var Pt = ["id"], Ft = {
|
|
|
1292
1294
|
"id",
|
|
1293
1295
|
"aria-selected",
|
|
1294
1296
|
"onClick"
|
|
1295
|
-
], Ht = {
|
|
1297
|
+
], Ht = { class: "g-select-option-label" }, Ut = {
|
|
1298
|
+
key: 0,
|
|
1299
|
+
class: "g-select-option-description"
|
|
1300
|
+
}, Wt = {
|
|
1296
1301
|
key: 1,
|
|
1297
1302
|
"aria-live": "polite",
|
|
1298
1303
|
class: "g-select-combo-option g-select-option g-select-no-results"
|
|
1299
|
-
},
|
|
1304
|
+
}, Gt = /* @__PURE__ */ u({
|
|
1300
1305
|
__name: "GSelect",
|
|
1301
1306
|
props: /*@__PURE__*/ m({
|
|
1302
1307
|
options: {},
|
|
@@ -1316,6 +1321,10 @@ var Pt = ["id"], Ft = {
|
|
|
1316
1321
|
type: Boolean,
|
|
1317
1322
|
default: !1
|
|
1318
1323
|
},
|
|
1324
|
+
searchDescription: {
|
|
1325
|
+
type: Boolean,
|
|
1326
|
+
default: !0
|
|
1327
|
+
},
|
|
1319
1328
|
clearButton: { type: Boolean },
|
|
1320
1329
|
compact: {
|
|
1321
1330
|
type: Boolean,
|
|
@@ -1343,7 +1352,7 @@ var Pt = ["id"], Ft = {
|
|
|
1343
1352
|
}), N = r(() => Mt(i.options)), F = O(""), L = r(() => {
|
|
1344
1353
|
if (!i.searchable || !y.value || !F.value) return N.value;
|
|
1345
1354
|
let e = F.value.toLowerCase();
|
|
1346
|
-
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));
|
|
1347
1356
|
}), z = r(() => L.value.findIndex((e) => e.value === d.value));
|
|
1348
1357
|
K(() => d.value, (e) => {
|
|
1349
1358
|
let t = L.value.findIndex((t) => t.value === e);
|
|
@@ -1569,34 +1578,34 @@ var Pt = ["id"], Ft = {
|
|
|
1569
1578
|
option: e,
|
|
1570
1579
|
selected: e.value === d.value,
|
|
1571
1580
|
index: t
|
|
1572
|
-
}, () => [
|
|
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]])]),
|
|
1573
1582
|
l(je, {
|
|
1574
1583
|
errors: R(C),
|
|
1575
1584
|
id: "error-message-" + R(f)
|
|
1576
1585
|
}, null, 8, ["errors", "id"])
|
|
1577
1586
|
], 2));
|
|
1578
1587
|
}
|
|
1579
|
-
}),
|
|
1588
|
+
}), Kt = ["aria-label"], qt = [
|
|
1580
1589
|
"placeholder",
|
|
1581
1590
|
"value",
|
|
1582
1591
|
"aria-expanded",
|
|
1583
1592
|
"aria-controls",
|
|
1584
1593
|
"aria-activedescendant"
|
|
1585
|
-
],
|
|
1594
|
+
], Jt = {
|
|
1586
1595
|
key: 0,
|
|
1587
1596
|
class: "g-search-dropdown"
|
|
1588
|
-
},
|
|
1597
|
+
}, Yt = {
|
|
1589
1598
|
"aria-live": "polite",
|
|
1590
1599
|
class: "g-search-result-count"
|
|
1591
|
-
},
|
|
1600
|
+
}, Xt = ["id"], Zt = ["aria-label"], Qt = { class: "g-search-group-label" }, $t = [
|
|
1592
1601
|
"id",
|
|
1593
1602
|
"onMousedown",
|
|
1594
1603
|
"aria-selected"
|
|
1595
|
-
],
|
|
1604
|
+
], en = [
|
|
1596
1605
|
"id",
|
|
1597
1606
|
"onMousedown",
|
|
1598
1607
|
"aria-selected"
|
|
1599
|
-
],
|
|
1608
|
+
], tn = /* @__PURE__ */ u({
|
|
1600
1609
|
__name: "GSearch",
|
|
1601
1610
|
props: /*@__PURE__*/ m({
|
|
1602
1611
|
results: {},
|
|
@@ -1677,7 +1686,7 @@ var Pt = ["id"], Ft = {
|
|
|
1677
1686
|
"aria-autocomplete": "list",
|
|
1678
1687
|
"aria-controls": `${R(M)}-list`,
|
|
1679
1688
|
"aria-activedescendant": h.value >= 0 ? "g-search-option-" + v.value[h.value].id : void 0
|
|
1680
|
-
}, null, 40,
|
|
1689
|
+
}, null, 40, qt), s("button", {
|
|
1681
1690
|
type: "submit",
|
|
1682
1691
|
class: "g-search-submit",
|
|
1683
1692
|
"aria-label": "Submit search",
|
|
@@ -1693,7 +1702,7 @@ var Pt = ["id"], Ft = {
|
|
|
1693
1702
|
}, [s("path", {
|
|
1694
1703
|
fill: "currentColor",
|
|
1695
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"
|
|
1696
|
-
})], -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", {
|
|
1697
1706
|
role: "listbox",
|
|
1698
1707
|
id: `${R(M)}-list`,
|
|
1699
1708
|
ref_key: "listboxRef",
|
|
@@ -1704,29 +1713,29 @@ var Pt = ["id"], Ft = {
|
|
|
1704
1713
|
class: "g-search-group",
|
|
1705
1714
|
role: "group",
|
|
1706
1715
|
"aria-label": n.label
|
|
1707
|
-
}, [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", {
|
|
1708
1717
|
key: e.id,
|
|
1709
1718
|
id: "g-search-option-" + e.id,
|
|
1710
1719
|
class: _(["g-search-option", { "g-search-option-active": v.value[h.value] && v.value[h.value].id === e.id }]),
|
|
1711
1720
|
role: "option",
|
|
1712
1721
|
onMousedown: te((t) => w(e), ["prevent"]),
|
|
1713
1722
|
"aria-selected": v.value[h.value] && v.value[h.value].id === e.id
|
|
1714
|
-
}, [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", {
|
|
1715
1724
|
key: e.id,
|
|
1716
1725
|
id: "g-search-option-" + e.id,
|
|
1717
1726
|
class: _(["g-search-option", { "g-search-option-active": h.value === n }]),
|
|
1718
1727
|
role: "option",
|
|
1719
1728
|
onMousedown: te((t) => w(e), ["prevent"]),
|
|
1720
1729
|
"aria-selected": h.value === n
|
|
1721
|
-
}, [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));
|
|
1722
1731
|
}
|
|
1723
|
-
}),
|
|
1732
|
+
}), nn = { class: /*@__PURE__*/ _({ "g-app-header": !0 }) }, rn = { class: "g-app-header__brand" }, an = {
|
|
1724
1733
|
class: "g-app-header__brand-text",
|
|
1725
1734
|
href: "/"
|
|
1726
|
-
},
|
|
1735
|
+
}, on = {
|
|
1727
1736
|
key: 0,
|
|
1728
1737
|
class: "g-app-header__block-i-container"
|
|
1729
|
-
},
|
|
1738
|
+
}, sn = { class: "g-app-header__title" }, cn = { class: "g-app-header__app-controls-wrap" }, ln = /* @__PURE__ */ u({
|
|
1730
1739
|
__name: "GAppHeader",
|
|
1731
1740
|
props: {
|
|
1732
1741
|
illinois: {
|
|
@@ -1736,10 +1745,10 @@ var Pt = ["id"], Ft = {
|
|
|
1736
1745
|
brand: { default: "GRAD" }
|
|
1737
1746
|
},
|
|
1738
1747
|
setup(e) {
|
|
1739
|
-
return (t, n) => (T(), o("header",
|
|
1748
|
+
return (t, n) => (T(), o("header", nn, [
|
|
1740
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),
|
|
1741
|
-
s("div",
|
|
1742
|
-
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", {
|
|
1743
1752
|
class: "g-app-header__block-i",
|
|
1744
1753
|
role: "img",
|
|
1745
1754
|
width: "55",
|
|
@@ -1756,24 +1765,24 @@ var Pt = ["id"], Ft = {
|
|
|
1756
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"
|
|
1757
1766
|
})
|
|
1758
1767
|
], -1)]])) : A(t.$slots, "icon", { key: 1 }),
|
|
1759
|
-
s("div",
|
|
1760
|
-
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" })])
|
|
1761
1770
|
]));
|
|
1762
1771
|
}
|
|
1763
1772
|
});
|
|
1764
1773
|
//#endregion
|
|
1765
1774
|
//#region src/compose/useWebComponentSidebar.ts
|
|
1766
|
-
function
|
|
1775
|
+
function un(e) {
|
|
1767
1776
|
return e.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
1768
1777
|
}
|
|
1769
|
-
function
|
|
1778
|
+
function dn() {
|
|
1770
1779
|
let e = globalThis;
|
|
1771
1780
|
return e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__ ||= /* @__PURE__ */ new Map(), e.__GRAD_VUE_WC_SIDEBAR_CHANNELS__;
|
|
1772
1781
|
}
|
|
1773
|
-
function
|
|
1774
|
-
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)";
|
|
1775
1784
|
if (!n.has(r)) {
|
|
1776
|
-
let e =
|
|
1785
|
+
let e = un(r), t = O(a);
|
|
1777
1786
|
n.set(r, {
|
|
1778
1787
|
id: `g-wc-sidebar-${e}`,
|
|
1779
1788
|
open: O(!1),
|
|
@@ -1810,7 +1819,7 @@ function un(e = "default", t) {
|
|
|
1810
1819
|
}
|
|
1811
1820
|
//#endregion
|
|
1812
1821
|
//#region src/compose/useScrollRestore.ts
|
|
1813
|
-
function
|
|
1822
|
+
function pn(e, t) {
|
|
1814
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;
|
|
1815
1824
|
function c(e) {
|
|
1816
1825
|
let t = window.getComputedStyle(e);
|
|
@@ -1893,7 +1902,7 @@ function dn(e, t) {
|
|
|
1893
1902
|
}
|
|
1894
1903
|
//#endregion
|
|
1895
1904
|
//#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
1896
|
-
var
|
|
1905
|
+
var mn = ["id"], hn = /* @__PURE__ */ u({
|
|
1897
1906
|
__name: "GSidebar",
|
|
1898
1907
|
props: {
|
|
1899
1908
|
backgroundColor: { default: "" },
|
|
@@ -1907,7 +1916,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
1907
1916
|
storageKey: {}
|
|
1908
1917
|
},
|
|
1909
1918
|
setup(e) {
|
|
1910
|
-
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);
|
|
1911
1920
|
function u(e) {
|
|
1912
1921
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
1913
1922
|
}
|
|
@@ -1928,13 +1937,13 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
1928
1937
|
width: "var(--g-sidebar-width)"
|
|
1929
1938
|
}),
|
|
1930
1939
|
onKeydown: u
|
|
1931
|
-
}, [A(t.$slots, "default")], 46,
|
|
1940
|
+
}, [A(t.$slots, "default")], 46, mn));
|
|
1932
1941
|
}
|
|
1933
|
-
}),
|
|
1942
|
+
}), gn = ["id"], _n = { class: "g-sidebar-menu__list" }, vn = [
|
|
1934
1943
|
"href",
|
|
1935
1944
|
"aria-current",
|
|
1936
1945
|
"onClick"
|
|
1937
|
-
],
|
|
1946
|
+
], yn = /* @__PURE__ */ u({
|
|
1938
1947
|
__name: "GSidebarMenu",
|
|
1939
1948
|
props: /*@__PURE__*/ m({
|
|
1940
1949
|
heading: {},
|
|
@@ -1982,13 +1991,13 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
1982
1991
|
key: 0,
|
|
1983
1992
|
id: R(y),
|
|
1984
1993
|
class: "g-sidebar-menu__title"
|
|
1985
|
-
}, P(t.heading), 9,
|
|
1994
|
+
}, P(t.heading), 9, gn)) : a("", !0),
|
|
1986
1995
|
l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
1987
1996
|
s("div", {
|
|
1988
1997
|
class: "g-sidebar-menu__content",
|
|
1989
1998
|
ref_key: "content",
|
|
1990
1999
|
ref: f
|
|
1991
|
-
}, [s("ul",
|
|
2000
|
+
}, [s("ul", _n, [(T(!0), o(e, null, k(t.items, (e) => (T(), o("li", {
|
|
1992
2001
|
key: e.href || e.to,
|
|
1993
2002
|
class: "g-sidebar-menu__item",
|
|
1994
2003
|
ref_for: !0,
|
|
@@ -2006,10 +2015,10 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2006
2015
|
href: e.href || e.to || "#",
|
|
2007
2016
|
"aria-current": u.value === (e.href || "") ? "location" : void 0,
|
|
2008
2017
|
onClick: (t) => v(t, e)
|
|
2009
|
-
}, P(e.label), 11,
|
|
2018
|
+
}, P(e.label), 11, vn))]))), 128))])], 512)
|
|
2010
2019
|
], 16));
|
|
2011
2020
|
}
|
|
2012
|
-
}),
|
|
2021
|
+
}), bn = {
|
|
2013
2022
|
mounted(e, t) {
|
|
2014
2023
|
let n = O(null), r = O(!1), i = O(!1), a = O(t.value), o = null, s = !1, c = ct(e), l = () => {
|
|
2015
2024
|
n.value || (n.value = lt(a.value, c), ut(n.value), o = new ResizeObserver(() => {
|
|
@@ -2061,7 +2070,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2061
2070
|
let t = e._v_gtooltip;
|
|
2062
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");
|
|
2063
2072
|
}
|
|
2064
|
-
},
|
|
2073
|
+
}, xn = { class: "g-clipboard-text" }, Sn = /* @__PURE__ */ u({
|
|
2065
2074
|
__name: "GClipboard",
|
|
2066
2075
|
props: {
|
|
2067
2076
|
text: {},
|
|
@@ -2069,12 +2078,12 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2069
2078
|
copyLabel: {}
|
|
2070
2079
|
},
|
|
2071
2080
|
setup(t) {
|
|
2072
|
-
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 = () => {
|
|
2073
2082
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2074
2083
|
}, m = () => {
|
|
2075
2084
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
2076
2085
|
};
|
|
2077
|
-
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", {
|
|
2078
2087
|
type: "button",
|
|
2079
2088
|
"aria-label": "Copy",
|
|
2080
2089
|
onClick: p,
|
|
@@ -2091,15 +2100,15 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2091
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"
|
|
2092
2101
|
})], -1)]], 32)), [[R(r), f.value]])]));
|
|
2093
2102
|
}
|
|
2094
|
-
}),
|
|
2103
|
+
}), Cn = { class: "g-history-scroller-wrapper" }, wn = {
|
|
2095
2104
|
key: 0,
|
|
2096
2105
|
class: "g-history-shadow g-history-shadow--top",
|
|
2097
2106
|
"aria-hidden": "true"
|
|
2098
|
-
},
|
|
2107
|
+
}, Tn = {
|
|
2099
2108
|
key: 1,
|
|
2100
2109
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
2101
2110
|
"aria-hidden": "true"
|
|
2102
|
-
},
|
|
2111
|
+
}, En = ["role", "aria-label"], Dn = /* @__PURE__ */ u({
|
|
2103
2112
|
__name: "GHistoryScroller",
|
|
2104
2113
|
props: {
|
|
2105
2114
|
label: {},
|
|
@@ -2131,9 +2140,9 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2131
2140
|
u.value && (await g(), f());
|
|
2132
2141
|
});
|
|
2133
2142
|
let m = r(() => [...n.entries].reverse());
|
|
2134
|
-
return (n, r) => (T(), o("div",
|
|
2135
|
-
d.value ? a("", !0) : (T(), o("div",
|
|
2136
|
-
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)),
|
|
2137
2146
|
s("div", {
|
|
2138
2147
|
ref_key: "scrollerRef",
|
|
2139
2148
|
ref: i,
|
|
@@ -2168,31 +2177,31 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2168
2177
|
key: e.id,
|
|
2169
2178
|
class: "g-history-entry",
|
|
2170
2179
|
tabindex: "-1"
|
|
2171
|
-
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40,
|
|
2180
|
+
}, [A(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, En)
|
|
2172
2181
|
]));
|
|
2173
2182
|
}
|
|
2174
|
-
}),
|
|
2183
|
+
}), On = { class: "g-three-way-toggle-wrapper" }, kn = { class: "g-three-way-toggle-control" }, An = ["id"], jn = [
|
|
2175
2184
|
"aria-labelledby",
|
|
2176
2185
|
"aria-describedby",
|
|
2177
2186
|
"disabled",
|
|
2178
2187
|
"aria-invalid",
|
|
2179
2188
|
"aria-errormessage"
|
|
2180
|
-
],
|
|
2189
|
+
], Mn = { key: 0 }, Nn = { key: 1 }, Pn = { key: 2 }, Fn = ["for"], In = [
|
|
2181
2190
|
"id",
|
|
2182
2191
|
"name",
|
|
2183
2192
|
"checked",
|
|
2184
2193
|
"disabled"
|
|
2185
|
-
],
|
|
2194
|
+
], Ln = ["for"], Rn = [
|
|
2186
2195
|
"id",
|
|
2187
2196
|
"name",
|
|
2188
2197
|
"checked",
|
|
2189
2198
|
"disabled"
|
|
2190
|
-
],
|
|
2199
|
+
], zn = ["for"], Bn = [
|
|
2191
2200
|
"id",
|
|
2192
2201
|
"name",
|
|
2193
2202
|
"checked",
|
|
2194
2203
|
"disabled"
|
|
2195
|
-
],
|
|
2204
|
+
], Vn = ["id"], Hn = /* @__PURE__ */ u({
|
|
2196
2205
|
__name: "GThreeWayToggle",
|
|
2197
2206
|
props: /*@__PURE__*/ m({
|
|
2198
2207
|
label: {},
|
|
@@ -2226,10 +2235,10 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2226
2235
|
function b(e) {
|
|
2227
2236
|
n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
|
|
2228
2237
|
}
|
|
2229
|
-
return (t, n) => (T(), o("div",
|
|
2238
|
+
return (t, n) => (T(), o("div", On, [s("div", kn, [s("span", {
|
|
2230
2239
|
class: "g-label",
|
|
2231
2240
|
id: R(p)
|
|
2232
|
-
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8,
|
|
2241
|
+
}, [A(t.$slots, "label", {}, () => [c(P(e.label), 1)])], 8, An), s("fieldset", {
|
|
2233
2242
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2234
2243
|
role: "radiogroup",
|
|
2235
2244
|
"aria-labelledby": R(p),
|
|
@@ -2241,7 +2250,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2241
2250
|
s("span", {
|
|
2242
2251
|
class: _(["g-toggle-thumb", y.value]),
|
|
2243
2252
|
"aria-hidden": "true"
|
|
2244
|
-
}, [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),
|
|
2245
2254
|
s("label", {
|
|
2246
2255
|
for: R(h),
|
|
2247
2256
|
class: "g-toggle-option g-left",
|
|
@@ -2255,7 +2264,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2255
2264
|
value: "false",
|
|
2256
2265
|
disabled: e.disabled,
|
|
2257
2266
|
onChange: n[0] ||= (e) => d(!1)
|
|
2258
|
-
}, null, 40,
|
|
2267
|
+
}, null, 40, In), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, Fn),
|
|
2259
2268
|
s("label", {
|
|
2260
2269
|
for: R(g),
|
|
2261
2270
|
class: "g-toggle-option g-center",
|
|
@@ -2267,7 +2276,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2267
2276
|
checked: i.value === null,
|
|
2268
2277
|
disabled: e.disabled,
|
|
2269
2278
|
onChange: n[2] ||= (e) => d(null)
|
|
2270
|
-
}, null, 40,
|
|
2279
|
+
}, null, 40, Rn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Ln),
|
|
2271
2280
|
s("label", {
|
|
2272
2281
|
for: R(v),
|
|
2273
2282
|
class: "g-toggle-option g-right",
|
|
@@ -2281,54 +2290,54 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2281
2290
|
checked: i.value === !0,
|
|
2282
2291
|
disabled: e.disabled,
|
|
2283
2292
|
onChange: n[3] ||= (e) => d(!0)
|
|
2284
|
-
}, null, 40,
|
|
2285
|
-
], 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", {
|
|
2286
2295
|
key: 0,
|
|
2287
2296
|
id: `${R(p)}-error`,
|
|
2288
2297
|
class: "g-form-error",
|
|
2289
2298
|
role: "alert",
|
|
2290
2299
|
"aria-atomic": "true"
|
|
2291
|
-
}, P(e.error), 9,
|
|
2300
|
+
}, P(e.error), 9, Vn)) : a("", !0)]));
|
|
2292
2301
|
}
|
|
2293
|
-
}),
|
|
2302
|
+
}), Un = {
|
|
2294
2303
|
ref: "tableBodyRef",
|
|
2295
2304
|
class: "efficient-table-body"
|
|
2296
|
-
},
|
|
2305
|
+
}, Wn = ["aria-rowindex"], Gn = {
|
|
2297
2306
|
key: 0,
|
|
2298
2307
|
class: "table-group-checkbox"
|
|
2299
|
-
},
|
|
2308
|
+
}, Kn = ["colspan"], qn = [
|
|
2300
2309
|
"aria-rowindex",
|
|
2301
2310
|
"onMousedown",
|
|
2302
2311
|
"onClick"
|
|
2303
|
-
],
|
|
2312
|
+
], Jn = [
|
|
2304
2313
|
"checked",
|
|
2305
2314
|
"onClick",
|
|
2306
2315
|
"aria-label",
|
|
2307
2316
|
"name"
|
|
2308
|
-
],
|
|
2317
|
+
], Yn = ["id"], Xn = {
|
|
2309
2318
|
key: 0,
|
|
2310
2319
|
class: "editable-cell"
|
|
2311
|
-
},
|
|
2320
|
+
}, Zn = {
|
|
2312
2321
|
key: 0,
|
|
2313
2322
|
class: "cell-prefix"
|
|
2314
|
-
},
|
|
2323
|
+
}, Qn = [
|
|
2315
2324
|
"value",
|
|
2316
2325
|
"onChange",
|
|
2317
2326
|
"aria-labelledby",
|
|
2318
2327
|
"aria-invalid",
|
|
2319
2328
|
"aria-errormessage",
|
|
2320
2329
|
"name"
|
|
2321
|
-
],
|
|
2330
|
+
], $n = ["value"], er = [
|
|
2322
2331
|
"value",
|
|
2323
2332
|
"onInput",
|
|
2324
2333
|
"aria-labelledby",
|
|
2325
2334
|
"aria-invalid",
|
|
2326
2335
|
"aria-errormessage",
|
|
2327
2336
|
"name"
|
|
2328
|
-
],
|
|
2337
|
+
], tr = {
|
|
2329
2338
|
key: 3,
|
|
2330
2339
|
class: "cell-suffix"
|
|
2331
|
-
},
|
|
2340
|
+
}, nr = ["id"], rr = /* @__PURE__ */ u({
|
|
2332
2341
|
__name: "GTableBody",
|
|
2333
2342
|
props: {
|
|
2334
2343
|
data: {},
|
|
@@ -2397,13 +2406,13 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2397
2406
|
function C(e, t) {
|
|
2398
2407
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2399
2408
|
}
|
|
2400
|
-
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", {
|
|
2401
2410
|
key: 0,
|
|
2402
2411
|
"aria-rowindex": t.startIndex + l + 2
|
|
2403
|
-
}, [t.bulkSelectionEnabled ? (T(), o("td",
|
|
2412
|
+
}, [t.bulkSelectionEnabled ? (T(), o("td", Gn)) : a("", !0), s("td", {
|
|
2404
2413
|
colspan: t.columns.length,
|
|
2405
2414
|
class: "table-group-row"
|
|
2406
|
-
}, [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", {
|
|
2407
2416
|
class: _([
|
|
2408
2417
|
"efficient-table-row",
|
|
2409
2418
|
{
|
|
@@ -2426,7 +2435,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2426
2435
|
"aria-label": `Select row ${n.key}`,
|
|
2427
2436
|
name: `row-${n.key}-checkbox`,
|
|
2428
2437
|
class: "g-bulk-select-checkbox"
|
|
2429
|
-
}, null, 8,
|
|
2438
|
+
}, null, 8, Jn)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (r) => (T(), o("td", {
|
|
2430
2439
|
key: r.key,
|
|
2431
2440
|
id: b(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2432
2441
|
class: _([
|
|
@@ -2435,8 +2444,8 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2435
2444
|
S(n, r) ? "g-cell-error" : "",
|
|
2436
2445
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2437
2446
|
])
|
|
2438
|
-
}, [r.editable ? (T(), o("div",
|
|
2439
|
-
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),
|
|
2440
2449
|
r.editable.type === "select" ? (T(), o("select", {
|
|
2441
2450
|
key: 1,
|
|
2442
2451
|
value: n[r.key],
|
|
@@ -2449,7 +2458,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2449
2458
|
}, [(T(!0), o(e, null, k(r.editable.options, (e) => (T(), o("option", {
|
|
2450
2459
|
key: e.value,
|
|
2451
2460
|
value: e.value
|
|
2452
|
-
}, P(e.label), 9,
|
|
2461
|
+
}, P(e.label), 9, $n))), 128))], 40, Qn)) : (T(), o("input", h({
|
|
2453
2462
|
key: 2,
|
|
2454
2463
|
value: n[r.key]
|
|
2455
2464
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
@@ -2463,24 +2472,24 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2463
2472
|
paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
|
|
2464
2473
|
paddingRight: r.editable.suffix ? "2rem" : void 0
|
|
2465
2474
|
}
|
|
2466
|
-
}), null, 16,
|
|
2467
|
-
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)
|
|
2468
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", {
|
|
2469
2478
|
key: 3,
|
|
2470
2479
|
role: "alert",
|
|
2471
2480
|
class: "g-cell-error-message",
|
|
2472
2481
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2473
|
-
}, P(C(n, r)), 9,
|
|
2482
|
+
}, P(C(n, r)), 9, nr)) : a("", !0)], 10, Yn))), 128))], 42, qn)], 64))), 128))], 512));
|
|
2474
2483
|
}
|
|
2475
|
-
}),
|
|
2484
|
+
}), ir = ["id", "for"], ar = {
|
|
2476
2485
|
key: 0,
|
|
2477
2486
|
class: "g-multiselect-required",
|
|
2478
2487
|
"aria-hidden": "true"
|
|
2479
|
-
},
|
|
2488
|
+
}, or = ["id"], sr = ["aria-labelledby"], cr = { class: "g-multiselect-chip-label" }, lr = [
|
|
2480
2489
|
"aria-label",
|
|
2481
2490
|
"disabled",
|
|
2482
2491
|
"onClick"
|
|
2483
|
-
],
|
|
2492
|
+
], ur = [
|
|
2484
2493
|
"id",
|
|
2485
2494
|
"value",
|
|
2486
2495
|
"placeholder",
|
|
@@ -2490,23 +2499,26 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2490
2499
|
"aria-activedescendant",
|
|
2491
2500
|
"aria-describedby",
|
|
2492
2501
|
"aria-required"
|
|
2493
|
-
],
|
|
2502
|
+
], dr = ["id"], fr = [
|
|
2494
2503
|
"id",
|
|
2495
2504
|
"aria-selected",
|
|
2496
2505
|
"onClick"
|
|
2497
|
-
],
|
|
2506
|
+
], pr = {
|
|
2498
2507
|
class: "g-multiselect-option-check",
|
|
2499
2508
|
"aria-hidden": "true"
|
|
2500
|
-
},
|
|
2509
|
+
}, mr = {
|
|
2501
2510
|
key: 0,
|
|
2502
2511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2503
2512
|
viewBox: "0 0 640 640",
|
|
2504
2513
|
width: "1.25em"
|
|
2505
|
-
},
|
|
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 = {
|
|
2506
2518
|
key: 1,
|
|
2507
2519
|
"aria-live": "polite",
|
|
2508
2520
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
2509
|
-
},
|
|
2521
|
+
}, yr = /* @__PURE__ */ u({
|
|
2510
2522
|
__name: "GMultiSelect",
|
|
2511
2523
|
props: /*@__PURE__*/ m({
|
|
2512
2524
|
options: {},
|
|
@@ -2525,6 +2537,10 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2525
2537
|
default: !1
|
|
2526
2538
|
},
|
|
2527
2539
|
name: {},
|
|
2540
|
+
searchDescription: {
|
|
2541
|
+
type: Boolean,
|
|
2542
|
+
default: !0
|
|
2543
|
+
},
|
|
2528
2544
|
errors: { default: () => [] },
|
|
2529
2545
|
instructions: {},
|
|
2530
2546
|
formKey: {}
|
|
@@ -2548,7 +2564,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2548
2564
|
}), M = r(() => Mt(i.options)), N = r(() => {
|
|
2549
2565
|
if (!x.value) return M.value;
|
|
2550
2566
|
let e = x.value.toLowerCase();
|
|
2551
|
-
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));
|
|
2552
2568
|
});
|
|
2553
2569
|
function F(e) {
|
|
2554
2570
|
return d.value.includes(e);
|
|
@@ -2640,12 +2656,12 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2640
2656
|
id: ae.value,
|
|
2641
2657
|
for: ie.value,
|
|
2642
2658
|
class: "g-multiselect-label"
|
|
2643
|
-
}, [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)),
|
|
2644
2660
|
t.instructions ? (T(), o("div", {
|
|
2645
2661
|
key: 1,
|
|
2646
2662
|
id: oe.value,
|
|
2647
2663
|
class: "g-multiselect-instructions"
|
|
2648
|
-
}, P(t.instructions), 9,
|
|
2664
|
+
}, P(t.instructions), 9, or)) : a("", !0),
|
|
2649
2665
|
s("div", {
|
|
2650
2666
|
ref_key: "controlRef",
|
|
2651
2667
|
ref: m,
|
|
@@ -2659,7 +2675,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2659
2675
|
}, [(T(!0), o(e, null, k(d.value, (e) => (T(), o("li", {
|
|
2660
2676
|
key: e,
|
|
2661
2677
|
class: "g-multiselect-chip"
|
|
2662
|
-
}, [s("span",
|
|
2678
|
+
}, [s("span", cr, P(L(e)), 1), s("button", {
|
|
2663
2679
|
type: "button",
|
|
2664
2680
|
class: "g-multiselect-chip-remove",
|
|
2665
2681
|
"aria-label": `Remove ${L(e)}`,
|
|
@@ -2674,7 +2690,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2674
2690
|
}, [s("path", {
|
|
2675
2691
|
fill: "currentColor",
|
|
2676
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"
|
|
2677
|
-
})], -1)]], 40,
|
|
2693
|
+
})], -1)]], 40, lr)]))), 128))], 8, sr)) : a("", !0),
|
|
2678
2694
|
s("input", h({
|
|
2679
2695
|
ref_key: "inputRef",
|
|
2680
2696
|
ref: p,
|
|
@@ -2698,7 +2714,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2698
2714
|
onKeydown: re,
|
|
2699
2715
|
onFocus: q,
|
|
2700
2716
|
onBlur: J
|
|
2701
|
-
}), null, 16,
|
|
2717
|
+
}), null, 16, ur),
|
|
2702
2718
|
r[2] ||= s("svg", {
|
|
2703
2719
|
class: "g-multiselect-caret",
|
|
2704
2720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2730,7 +2746,7 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2730
2746
|
"aria-selected": F(e.value) ? "true" : "false",
|
|
2731
2747
|
onMousedown: X,
|
|
2732
2748
|
onClick: (e) => U(t)
|
|
2733
|
-
}, [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]])
|
|
2734
2750
|
], 2),
|
|
2735
2751
|
l(je, {
|
|
2736
2752
|
errors: R(C),
|
|
@@ -2741,28 +2757,28 @@ var fn = ["id"], pn = /* @__PURE__ */ u({
|
|
|
2741
2757
|
});
|
|
2742
2758
|
//#endregion
|
|
2743
2759
|
//#region src/compose/useFiltering.ts
|
|
2744
|
-
function
|
|
2760
|
+
function br(e) {
|
|
2745
2761
|
if (!(Array.isArray(e) && e.length === 0) && !(e === null || e === !1 || e === "")) return e;
|
|
2746
2762
|
}
|
|
2747
|
-
function
|
|
2763
|
+
function xr(e) {
|
|
2748
2764
|
return Object.fromEntries(Object.entries(e).filter(([e, t]) => t && (!Array.isArray(t) || t.length > 0)));
|
|
2749
2765
|
}
|
|
2750
|
-
function
|
|
2766
|
+
function Sr(e) {
|
|
2751
2767
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2752
2768
|
}
|
|
2753
|
-
function
|
|
2769
|
+
function Cr(e) {
|
|
2754
2770
|
let t = {};
|
|
2755
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;
|
|
2756
2772
|
return t;
|
|
2757
2773
|
}
|
|
2758
|
-
function
|
|
2774
|
+
function wr(e) {
|
|
2759
2775
|
let t = {};
|
|
2760
2776
|
return Object.keys(e).forEach((n) => {
|
|
2761
2777
|
let r = e[n];
|
|
2762
2778
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
2763
2779
|
}), t;
|
|
2764
2780
|
}
|
|
2765
|
-
function
|
|
2781
|
+
function Tr(e, t = {}) {
|
|
2766
2782
|
let n = D(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
2767
2783
|
if (i) {
|
|
2768
2784
|
if (i.value) {
|
|
@@ -2775,13 +2791,13 @@ function br(e, t = {}) {
|
|
|
2775
2791
|
});
|
|
2776
2792
|
}
|
|
2777
2793
|
K(n, (e) => {
|
|
2778
|
-
i.value =
|
|
2794
|
+
i.value = wr(e);
|
|
2779
2795
|
}, { deep: !0 });
|
|
2780
2796
|
}
|
|
2781
2797
|
return {
|
|
2782
2798
|
filters: n,
|
|
2783
2799
|
isFiltered: r(() => {
|
|
2784
|
-
for (let t of Object.keys(e)) if (
|
|
2800
|
+
for (let t of Object.keys(e)) if (br(n[t])) return !0;
|
|
2785
2801
|
return !1;
|
|
2786
2802
|
}),
|
|
2787
2803
|
clearFilters: () => {
|
|
@@ -2791,56 +2807,59 @@ function br(e, t = {}) {
|
|
|
2791
2807
|
},
|
|
2792
2808
|
filteredColumns: r(() => {
|
|
2793
2809
|
let t = {};
|
|
2794
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
2810
|
+
for (let r of Object.keys(e)) t[r] = !!br(n[r]);
|
|
2795
2811
|
return t;
|
|
2796
2812
|
})
|
|
2797
2813
|
};
|
|
2798
2814
|
}
|
|
2799
2815
|
//#endregion
|
|
2800
2816
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
2801
|
-
var
|
|
2817
|
+
var Er = { class: "g-table-outer-wrap" }, Dr = {
|
|
2802
2818
|
key: 0,
|
|
2803
2819
|
class: "g-table-controls"
|
|
2804
|
-
},
|
|
2820
|
+
}, Or = { class: "g-clear-filters-wrap" }, kr = {
|
|
2805
2821
|
key: 0,
|
|
2806
2822
|
class: "pagination"
|
|
2807
|
-
},
|
|
2823
|
+
}, Ar = { class: "g-result-count" }, jr = ["aria-label", "aria-rowcount"], Mr = { class: "g-table-head" }, Nr = { "aria-rowindex": "1" }, Pr = {
|
|
2808
2824
|
key: 0,
|
|
2809
2825
|
scope: "col",
|
|
2810
2826
|
class: "g-th g-th-checkbox"
|
|
2811
|
-
},
|
|
2827
|
+
}, Fr = [
|
|
2812
2828
|
"checked",
|
|
2813
2829
|
"indeterminate",
|
|
2814
2830
|
"aria-label"
|
|
2815
|
-
],
|
|
2831
|
+
], Ir = ["id", "aria-sort"], Lr = { class: "th-inner" }, Rr = ["onClick"], zr = {
|
|
2816
2832
|
key: 0,
|
|
2817
2833
|
class: "sort-indicator"
|
|
2818
|
-
},
|
|
2834
|
+
}, Br = ["aria-label"], Vr = {
|
|
2819
2835
|
key: 1,
|
|
2820
2836
|
class: "g-column-head"
|
|
2821
|
-
},
|
|
2837
|
+
}, Hr = ["onClick", "aria-label"], Ur = {
|
|
2822
2838
|
key: 1,
|
|
2823
2839
|
class: "g-filter-search",
|
|
2824
2840
|
role: "search"
|
|
2825
|
-
},
|
|
2841
|
+
}, Wr = [
|
|
2826
2842
|
"onUpdate:modelValue",
|
|
2827
2843
|
"placeholder",
|
|
2828
2844
|
"aria-label"
|
|
2829
|
-
],
|
|
2845
|
+
], Gr = { key: 2 }, Kr = { class: "g-filter-toggle" }, qr = [
|
|
2830
2846
|
"onUpdate:modelValue",
|
|
2831
2847
|
"id",
|
|
2832
2848
|
"aria-describedby"
|
|
2833
|
-
],
|
|
2849
|
+
], Jr = ["for"], Yr = ["id"], Xr = {
|
|
2834
2850
|
key: 4,
|
|
2835
2851
|
class: "g-multi-select"
|
|
2836
|
-
},
|
|
2852
|
+
}, Zr = [
|
|
2837
2853
|
"onUpdate:modelValue",
|
|
2838
2854
|
"id",
|
|
2839
2855
|
"value"
|
|
2840
|
-
],
|
|
2856
|
+
], Qr = ["for"], $r = { class: "g-multi-select-option-label" }, ei = {
|
|
2857
|
+
key: 0,
|
|
2858
|
+
class: "g-multi-select-option-description"
|
|
2859
|
+
}, ti = {
|
|
2841
2860
|
key: 1,
|
|
2842
2861
|
class: "g-bulk-actions-toolbar"
|
|
2843
|
-
},
|
|
2862
|
+
}, ni = { class: "g-selected-count" }, ri = { class: "g-bulk-actions" }, ii = /* @__PURE__ */ u({
|
|
2844
2863
|
__name: "GTable",
|
|
2845
2864
|
props: /*@__PURE__*/ m({
|
|
2846
2865
|
label: {},
|
|
@@ -2889,7 +2908,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2889
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));
|
|
2890
2909
|
}
|
|
2891
2910
|
let v = m.filtering;
|
|
2892
|
-
v ||=
|
|
2911
|
+
v ||= Tr({});
|
|
2893
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);
|
|
2894
2913
|
function I() {
|
|
2895
2914
|
if (j.value) p.value = p.value.filter((e) => !E.value.includes(e));
|
|
@@ -2916,12 +2935,14 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2916
2935
|
}
|
|
2917
2936
|
function ee(e) {
|
|
2918
2937
|
let t = e.value, n = e.column.key, r = F(e.row[n]);
|
|
2919
|
-
e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t
|
|
2938
|
+
e.column.editable?.inputAttributes?.type === "number" && (t = e.value === "" ? null : Number(e.value)), e.row[n] = t;
|
|
2939
|
+
let i = {
|
|
2920
2940
|
row: e.row,
|
|
2921
2941
|
column: e.column,
|
|
2922
2942
|
value: t,
|
|
2923
2943
|
previousValue: r
|
|
2924
|
-
}
|
|
2944
|
+
};
|
|
2945
|
+
h("cell-change", i);
|
|
2925
2946
|
}
|
|
2926
2947
|
let q = B(), X = H(), ne = r(() => m.showPagination ? !0 : !!X.pagination), re = r(() => !!(C.value || ne.value));
|
|
2927
2948
|
return S(() => {
|
|
@@ -2935,9 +2956,9 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2935
2956
|
let e = f.value[t.key];
|
|
2936
2957
|
f.value[t.key] = e ? [e] : [];
|
|
2937
2958
|
}
|
|
2938
|
-
}, { immediate: !0 }), (n, r) => (T(), o("div",
|
|
2939
|
-
re.value ? (T(), o("div",
|
|
2940
|
-
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, {
|
|
2941
2962
|
key: 0,
|
|
2942
2963
|
outlined: "",
|
|
2943
2964
|
size: "small",
|
|
@@ -2955,22 +2976,22 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2955
2976
|
})], -1), s("span", { class: "g-clear-filters-text" }, " Clear Filters ", -1)]]),
|
|
2956
2977
|
_: 1
|
|
2957
2978
|
}, 8, ["onClick"])) : a("", !0)]),
|
|
2958
|
-
ne.value ? (T(), o("div",
|
|
2959
|
-
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)
|
|
2960
2981
|
])) : a("", !0),
|
|
2961
2982
|
s("table", {
|
|
2962
2983
|
class: "g-table",
|
|
2963
2984
|
ref: "tableRef",
|
|
2964
2985
|
"aria-label": t.label,
|
|
2965
2986
|
"aria-rowcount": m.resultCount || t.data.length
|
|
2966
|
-
}, [s("thead",
|
|
2987
|
+
}, [s("thead", Mr, [s("tr", Nr, [t.bulkSelectionEnabled ? (T(), o("th", Pr, [s("input", {
|
|
2967
2988
|
type: "checkbox",
|
|
2968
2989
|
checked: j.value,
|
|
2969
2990
|
indeterminate: M.value,
|
|
2970
2991
|
onChange: I,
|
|
2971
2992
|
"aria-label": j.value ? "Deselect all rows" : "Select all rows",
|
|
2972
2993
|
class: "g-bulk-select-checkbox"
|
|
2973
|
-
}, null, 40,
|
|
2994
|
+
}, null, 40, Fr)])) : a("", !0), (T(!0), o(e, null, k(t.columns, (t) => (T(), o("th", {
|
|
2974
2995
|
key: t.key,
|
|
2975
2996
|
id: `${R(q)}-th-${String(t.key)}`,
|
|
2976
2997
|
"aria-sort": u.value === t.key ? d.value === 1 ? "ascending" : "descending" : "none",
|
|
@@ -2980,12 +3001,12 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2980
3001
|
{ filtered: R(x)[t.key] }
|
|
2981
3002
|
]),
|
|
2982
3003
|
scope: "col"
|
|
2983
|
-
}, [s("div",
|
|
3004
|
+
}, [s("div", Lr, [t.sortable ? (T(), o("button", {
|
|
2984
3005
|
key: 0,
|
|
2985
3006
|
type: "button",
|
|
2986
3007
|
class: "g-column-head",
|
|
2987
3008
|
onClick: (e) => g(t)
|
|
2988
|
-
}, [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", {
|
|
2989
3010
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2990
3011
|
viewBox: "0 0 640 640",
|
|
2991
3012
|
height: "1.5em",
|
|
@@ -2995,7 +3016,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
2995
3016
|
}, [...r[1] ||= [s("path", {
|
|
2996
3017
|
fill: "currentColor",
|
|
2997
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"
|
|
2998
|
-
}, 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 }, {
|
|
2999
3020
|
trigger: J(({ toggle: e }) => [s("button", {
|
|
3000
3021
|
onClick: te(e, ["stop"]),
|
|
3001
3022
|
"aria-label": R(x)[t.key] ? "Column Filtered" : "Filter Column",
|
|
@@ -3009,8 +3030,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3009
3030
|
}, [s("path", {
|
|
3010
3031
|
fill: "currentColor",
|
|
3011
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"
|
|
3012
|
-
})], -1)]], 10,
|
|
3013
|
-
default: J(() => [t.filter.type === "select" ? (T(), i(
|
|
3033
|
+
})], -1)]], 10, Hr)]),
|
|
3034
|
+
default: J(() => [t.filter.type === "select" ? (T(), i(Gt, {
|
|
3014
3035
|
key: 0,
|
|
3015
3036
|
modelValue: f.value[t.key],
|
|
3016
3037
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
@@ -3018,12 +3039,14 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3018
3039
|
class: "g-filter-select",
|
|
3019
3040
|
label: "Filter select",
|
|
3020
3041
|
searchable: "",
|
|
3042
|
+
"search-description": t.filter.searchDescription,
|
|
3021
3043
|
"clear-button": ""
|
|
3022
3044
|
}, null, 8, [
|
|
3023
3045
|
"modelValue",
|
|
3024
3046
|
"onUpdate:modelValue",
|
|
3025
|
-
"options"
|
|
3026
|
-
|
|
3047
|
+
"options",
|
|
3048
|
+
"search-description"
|
|
3049
|
+
])) : t.filter.type === "search" ? (T(), o("div", Ur, [r[3] ||= s("span", {
|
|
3027
3050
|
class: "g-filter-search-icon",
|
|
3028
3051
|
"aria-hidden": "true"
|
|
3029
3052
|
}, [s("svg", {
|
|
@@ -3039,41 +3062,46 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3039
3062
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3040
3063
|
placeholder: t.filter.placeholder,
|
|
3041
3064
|
"aria-label": `Search ${t.label}`
|
|
3042
|
-
}, null, 8,
|
|
3065
|
+
}, null, 8, Wr), [[G, f.value[t.key]]])])) : t.filter.type === "toggle" ? (T(), o("div", Gr, [s("div", Kr, [
|
|
3043
3066
|
Y(s("input", {
|
|
3044
3067
|
type: "checkbox",
|
|
3045
3068
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3046
3069
|
id: `${R(q)}-filter-${String(t.key)}`,
|
|
3047
3070
|
"aria-describedby": t.filter.description ? `${R(q)}-filter-description-${String(t.key)}` : void 0
|
|
3048
|
-
}, null, 8,
|
|
3049
|
-
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),
|
|
3050
3073
|
t.filter.description ? (T(), o("span", {
|
|
3051
3074
|
key: 0,
|
|
3052
3075
|
class: "g-filter-description",
|
|
3053
3076
|
id: `${R(q)}-filter-description-${String(t.key)}`
|
|
3054
|
-
}, P(t.filter.description), 9,
|
|
3055
|
-
])])) : 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, {
|
|
3056
3079
|
key: 3,
|
|
3057
3080
|
modelValue: f.value[t.key],
|
|
3058
3081
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3059
3082
|
options: t.filter.options,
|
|
3060
3083
|
label: "Include values",
|
|
3061
3084
|
placeholder: t.filter.placeholder,
|
|
3085
|
+
"search-description": t.filter.searchDescription,
|
|
3062
3086
|
class: "g-multi-select-searchable"
|
|
3063
3087
|
}, null, 8, [
|
|
3064
3088
|
"modelValue",
|
|
3065
3089
|
"onUpdate:modelValue",
|
|
3066
3090
|
"options",
|
|
3067
|
-
"placeholder"
|
|
3068
|
-
|
|
3091
|
+
"placeholder",
|
|
3092
|
+
"search-description"
|
|
3093
|
+
])) : t.filter.type === "multi-select" ? (T(), o("fieldset", Xr, [
|
|
3069
3094
|
r[5] ||= s("legend", { class: "g-multi-select-legend" }, " Include values ", -1),
|
|
3070
|
-
(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", {
|
|
3071
3099
|
type: "checkbox",
|
|
3072
3100
|
"onUpdate:modelValue": (e) => f.value[t.key] = e,
|
|
3073
3101
|
id: `filter-${String(t.key)}-${e.value}`,
|
|
3074
3102
|
value: e.value,
|
|
3075
3103
|
name: "filter-multiselect"
|
|
3076
|
-
}, 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)),
|
|
3077
3105
|
f.value[t.key] && f.value[t.key].length ? (T(), i(Q, {
|
|
3078
3106
|
key: 0,
|
|
3079
3107
|
class: "clear-multiselect-btn",
|
|
@@ -3086,7 +3114,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3086
3114
|
}, 8, ["onClick"])) : a("", !0)
|
|
3087
3115
|
])) : a("", !0)]),
|
|
3088
3116
|
_: 2
|
|
3089
|
-
}, 1024)) : a("", !0)])], 10,
|
|
3117
|
+
}, 1024)) : a("", !0)])], 10, Ir))), 128))])]), l(rr, {
|
|
3090
3118
|
data: t.data,
|
|
3091
3119
|
columns: t.columns,
|
|
3092
3120
|
"group-by": t.groupBy,
|
|
@@ -3113,8 +3141,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3113
3141
|
"selected-rows",
|
|
3114
3142
|
"table-id",
|
|
3115
3143
|
"change-tracker"
|
|
3116
|
-
])], 8,
|
|
3117
|
-
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, {
|
|
3118
3146
|
theme: e.theme || "accent",
|
|
3119
3147
|
onClick: (t) => U(e.id),
|
|
3120
3148
|
size: "small"
|
|
@@ -3124,10 +3152,10 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3124
3152
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
3125
3153
|
]));
|
|
3126
3154
|
}
|
|
3127
|
-
}),
|
|
3155
|
+
}), ai = {
|
|
3128
3156
|
class: "g-pagination",
|
|
3129
3157
|
"aria-label": "Pagination"
|
|
3130
|
-
},
|
|
3158
|
+
}, oi = ["disabled"], si = ["disabled"], ci = { class: "page-range" }, li = ["disabled"], ui = ["disabled"], di = ["value"], fi = ["value"], pi = /* @__PURE__ */ u({
|
|
3131
3159
|
__name: "GTablePagination",
|
|
3132
3160
|
props: /*@__PURE__*/ m({
|
|
3133
3161
|
start: {},
|
|
@@ -3149,7 +3177,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3149
3177
|
function h(e) {
|
|
3150
3178
|
c.value = parseInt(e.target.value, 10);
|
|
3151
3179
|
}
|
|
3152
|
-
return (t, r) => (T(), o("nav",
|
|
3180
|
+
return (t, r) => (T(), o("nav", ai, [
|
|
3153
3181
|
s("button", {
|
|
3154
3182
|
class: "first-page g-pagination-button",
|
|
3155
3183
|
disabled: p.value === 1,
|
|
@@ -3174,7 +3202,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3174
3202
|
}),
|
|
3175
3203
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3176
3204
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3177
|
-
], -1)]], 8,
|
|
3205
|
+
], -1)]], 8, oi),
|
|
3178
3206
|
s("button", {
|
|
3179
3207
|
class: "prev-page g-pagination-button",
|
|
3180
3208
|
disabled: p.value === 1,
|
|
@@ -3195,8 +3223,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3195
3223
|
stroke: "none",
|
|
3196
3224
|
d: "M0 0h24v24H0z",
|
|
3197
3225
|
fill: "none"
|
|
3198
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
3199
|
-
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),
|
|
3200
3228
|
s("button", {
|
|
3201
3229
|
class: "next-page g-pagination-button",
|
|
3202
3230
|
disabled: p.value === i.value,
|
|
@@ -3217,7 +3245,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3217
3245
|
stroke: "none",
|
|
3218
3246
|
d: "M0 0h24v24H0z",
|
|
3219
3247
|
fill: "none"
|
|
3220
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
3248
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, li),
|
|
3221
3249
|
s("button", {
|
|
3222
3250
|
class: "last-page g-pagination-button",
|
|
3223
3251
|
disabled: p.value === i.value,
|
|
@@ -3242,7 +3270,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3242
3270
|
}),
|
|
3243
3271
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3244
3272
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3245
|
-
], -1)]], 8,
|
|
3273
|
+
], -1)]], 8, ui),
|
|
3246
3274
|
s("select", {
|
|
3247
3275
|
id: "page-size-select",
|
|
3248
3276
|
class: "page-size-select",
|
|
@@ -3256,14 +3284,14 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3256
3284
|
], (e) => (T(), o("option", {
|
|
3257
3285
|
key: e,
|
|
3258
3286
|
value: e
|
|
3259
|
-
}, P(e), 9,
|
|
3287
|
+
}, P(e), 9, fi))), 128))], 40, di),
|
|
3260
3288
|
r[8] ||= s("label", {
|
|
3261
3289
|
class: "page-size-label",
|
|
3262
3290
|
for: "page-size-select"
|
|
3263
3291
|
}, "per page", -1)
|
|
3264
3292
|
]));
|
|
3265
3293
|
}
|
|
3266
|
-
}),
|
|
3294
|
+
}), mi = ["id"], hi = { class: "g-modal-inner" }, gi = { class: "g-modal-header" }, _i = ["id"], vi = ["id"], yi = /* @__PURE__ */ u({
|
|
3267
3295
|
__name: "GModal",
|
|
3268
3296
|
props: {
|
|
3269
3297
|
label: {},
|
|
@@ -3307,12 +3335,12 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3307
3335
|
ref_key: "dialog",
|
|
3308
3336
|
ref: f,
|
|
3309
3337
|
style: { zIndex: R(y) }
|
|
3310
|
-
}), [s("div",
|
|
3338
|
+
}), [s("div", hi, [s("div", gi, [e.hiddenLabel ? a("", !0) : (T(), o("h2", {
|
|
3311
3339
|
key: 0,
|
|
3312
3340
|
id: "modal-label-" + R(m),
|
|
3313
3341
|
class: "g-modal-label",
|
|
3314
3342
|
tabindex: "-1"
|
|
3315
|
-
}, P(e.label), 9,
|
|
3343
|
+
}, P(e.label), 9, _i)), s("button", {
|
|
3316
3344
|
class: "g-modal-close",
|
|
3317
3345
|
onClick: w,
|
|
3318
3346
|
"aria-label": "Close"
|
|
@@ -3327,19 +3355,19 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3327
3355
|
})], -1)]])]), s("div", {
|
|
3328
3356
|
id: "modal-description-" + R(m),
|
|
3329
3357
|
class: "g-modal-content"
|
|
3330
|
-
}, [A(r.$slots, "default")], 8,
|
|
3358
|
+
}, [A(r.$slots, "default")], 8, vi)])], 16, mi)]),
|
|
3331
3359
|
_: 3
|
|
3332
3360
|
})]));
|
|
3333
3361
|
}
|
|
3334
|
-
}),
|
|
3362
|
+
}), bi = [
|
|
3335
3363
|
"id",
|
|
3336
3364
|
"aria-expanded",
|
|
3337
3365
|
"aria-label",
|
|
3338
3366
|
"aria-controls"
|
|
3339
|
-
],
|
|
3367
|
+
], xi = {
|
|
3340
3368
|
key: 0,
|
|
3341
3369
|
class: "g-hamburger-label"
|
|
3342
|
-
},
|
|
3370
|
+
}, Si = /* @__PURE__ */ u({
|
|
3343
3371
|
__name: "GHamburgerMenu",
|
|
3344
3372
|
props: {
|
|
3345
3373
|
label: { default: "Main Navigation" },
|
|
@@ -3352,7 +3380,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3352
3380
|
},
|
|
3353
3381
|
emits: ["toggle"],
|
|
3354
3382
|
setup(e, { emit: t }) {
|
|
3355
|
-
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;
|
|
3356
3384
|
function c() {
|
|
3357
3385
|
i("toggle"), r?.toggle();
|
|
3358
3386
|
}
|
|
@@ -3375,34 +3403,34 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3375
3403
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3376
3404
|
viewBox: "0 0 51.26 51.26",
|
|
3377
3405
|
role: "none"
|
|
3378
|
-
}, [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));
|
|
3379
3407
|
}
|
|
3380
|
-
}),
|
|
3408
|
+
}), Ci = /* @__PURE__ */ u({
|
|
3381
3409
|
__name: "GDetailList",
|
|
3382
3410
|
props: { variant: { default: "grid" } },
|
|
3383
3411
|
setup(e) {
|
|
3384
3412
|
let t = e;
|
|
3385
3413
|
return (e, n) => (T(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [A(e.$slots, "default")], 2));
|
|
3386
3414
|
}
|
|
3387
|
-
}),
|
|
3415
|
+
}), wi = { class: "g-detail-list-item" }, Ti = { class: "g-detail-list-item__label" }, Ei = { class: "g-detail-list-item__value" }, Di = /* @__PURE__ */ u({
|
|
3388
3416
|
__name: "GDetailListItem",
|
|
3389
3417
|
props: { label: {} },
|
|
3390
3418
|
setup(e) {
|
|
3391
|
-
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")])]));
|
|
3392
3420
|
}
|
|
3393
|
-
}),
|
|
3421
|
+
}), Oi = {
|
|
3394
3422
|
key: 0,
|
|
3395
3423
|
class: "g-scroll-lock-overlay"
|
|
3396
|
-
},
|
|
3424
|
+
}, ki = /* @__PURE__ */ u({
|
|
3397
3425
|
__name: "GOverlay",
|
|
3398
3426
|
setup(e) {
|
|
3399
3427
|
let { hasScrollLock: t } = qe();
|
|
3400
3428
|
return (e, r) => (T(), i(n, { name: "g-fade" }, {
|
|
3401
|
-
default: J(() => [R(t) ? (T(), o("div",
|
|
3429
|
+
default: J(() => [R(t) ? (T(), o("div", Oi)) : a("", !0)]),
|
|
3402
3430
|
_: 1
|
|
3403
3431
|
}));
|
|
3404
3432
|
}
|
|
3405
|
-
}),
|
|
3433
|
+
}), Ai = { class: "popover-content" }, ji = { class: "year-dropdown" }, Mi = { class: "month-selector" }, Ni = /* @__PURE__ */ u({
|
|
3406
3434
|
__name: "GTermSelectorControl",
|
|
3407
3435
|
props: /*@__PURE__*/ m({
|
|
3408
3436
|
termYears: { default: () => ["2026"] },
|
|
@@ -3423,7 +3451,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3423
3451
|
emits: ["update:modelValue"],
|
|
3424
3452
|
setup(e) {
|
|
3425
3453
|
let t = V(e, "modelValue");
|
|
3426
|
-
return (n, r) => (T(), o("div",
|
|
3454
|
+
return (n, r) => (T(), o("div", Ai, [s("div", ji, [l(Gt, {
|
|
3427
3455
|
modelValue: t.value.year,
|
|
3428
3456
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
3429
3457
|
options: e.termYears,
|
|
@@ -3432,7 +3460,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3432
3460
|
"modelValue",
|
|
3433
3461
|
"options",
|
|
3434
3462
|
"label"
|
|
3435
|
-
])]), s("div",
|
|
3463
|
+
])]), s("div", Mi, [l(bt, {
|
|
3436
3464
|
modelValue: t.value.name,
|
|
3437
3465
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
3438
3466
|
options: e.termNames,
|
|
@@ -3444,10 +3472,10 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3444
3472
|
"label"
|
|
3445
3473
|
])])]));
|
|
3446
3474
|
}
|
|
3447
|
-
}),
|
|
3475
|
+
}), Pi = { class: "g-term-selector" }, Fi = { class: "g-term-label" }, Ii = {
|
|
3448
3476
|
class: "g-popover-title",
|
|
3449
3477
|
tabindex: "-1"
|
|
3450
|
-
},
|
|
3478
|
+
}, Li = /* @__PURE__ */ u({
|
|
3451
3479
|
__name: "GTermSelector",
|
|
3452
3480
|
props: /*@__PURE__*/ m({
|
|
3453
3481
|
heading: { default: "Period Selection" },
|
|
@@ -3469,7 +3497,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3469
3497
|
emits: ["update:modelValue"],
|
|
3470
3498
|
setup(e) {
|
|
3471
3499
|
let t = V(e, "modelValue");
|
|
3472
|
-
return (n, r) => (T(), o("div",
|
|
3500
|
+
return (n, r) => (T(), o("div", Pi, [l(at, null, {
|
|
3473
3501
|
trigger: J(({ toggle: e }) => [l(Q, {
|
|
3474
3502
|
class: "g-term-selector-button",
|
|
3475
3503
|
theme: "none",
|
|
@@ -3482,7 +3510,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3482
3510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3483
3511
|
viewBox: "0 0 640 640"
|
|
3484
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),
|
|
3485
|
-
s("span",
|
|
3513
|
+
s("span", Fi, P(t.value?.name) + " " + P(t.value?.year), 1),
|
|
3486
3514
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
3487
3515
|
role: "none",
|
|
3488
3516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3491,15 +3519,15 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3491
3519
|
]),
|
|
3492
3520
|
_: 1
|
|
3493
3521
|
}, 8, ["onClick"])]),
|
|
3494
|
-
default: J(() => [s("h2",
|
|
3522
|
+
default: J(() => [s("h2", Ii, P(e.heading), 1), l(Ni, v(f(n.$props)), null, 16)]),
|
|
3495
3523
|
_: 1
|
|
3496
3524
|
})]));
|
|
3497
3525
|
}
|
|
3498
|
-
}),
|
|
3526
|
+
}), Ri = { class: "g-user-menu" }, zi = [
|
|
3499
3527
|
"aria-label",
|
|
3500
3528
|
"aria-expanded",
|
|
3501
3529
|
"onClick"
|
|
3502
|
-
],
|
|
3530
|
+
], Bi = { class: "g-user-menu__popover" }, Vi = { class: "g-user-menu__list" }, Hi = /* @__PURE__ */ u({
|
|
3503
3531
|
__name: "GUserMenu",
|
|
3504
3532
|
props: {
|
|
3505
3533
|
initials: {},
|
|
@@ -3511,7 +3539,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3511
3539
|
let n = `${B()}-email`, r = O(!1), a = U("emailHeading");
|
|
3512
3540
|
d()?.appContext?.components?.RouterLink;
|
|
3513
3541
|
let c = H();
|
|
3514
|
-
return (u, d) => (T(), o("div",
|
|
3542
|
+
return (u, d) => (T(), o("div", Ri, [l(at, {
|
|
3515
3543
|
modelValue: r.value,
|
|
3516
3544
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
3517
3545
|
minimal: ""
|
|
@@ -3523,8 +3551,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3523
3551
|
"aria-expanded": r.value,
|
|
3524
3552
|
"aria-haspopup": "menu",
|
|
3525
3553
|
onClick: e
|
|
3526
|
-
}, P(t.initials), 13,
|
|
3527
|
-
default: J(() => [s("div",
|
|
3554
|
+
}, P(t.initials), 13, zi)]),
|
|
3555
|
+
default: J(() => [s("div", Bi, [s("h2", {
|
|
3528
3556
|
id: n,
|
|
3529
3557
|
ref_key: "emailHeading",
|
|
3530
3558
|
ref: a,
|
|
@@ -3533,11 +3561,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3533
3561
|
}, P(t.email), 513), s("nav", {
|
|
3534
3562
|
class: "g-user-menu__nav",
|
|
3535
3563
|
"aria-labelledby": n
|
|
3536
|
-
}, [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))])])])]),
|
|
3537
3565
|
_: 1
|
|
3538
3566
|
}, 8, ["modelValue"])]));
|
|
3539
3567
|
}
|
|
3540
|
-
}),
|
|
3568
|
+
}), Ui = /* @__PURE__ */ u({
|
|
3541
3569
|
__name: "GCurrencyInput",
|
|
3542
3570
|
props: /*@__PURE__*/ m({
|
|
3543
3571
|
label: { default: void 0 },
|
|
@@ -3588,7 +3616,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3588
3616
|
"form-key"
|
|
3589
3617
|
]));
|
|
3590
3618
|
}
|
|
3591
|
-
}),
|
|
3619
|
+
}), Wi = /* @__PURE__ */ u({
|
|
3592
3620
|
__name: "GEmailInput",
|
|
3593
3621
|
props: /*@__PURE__*/ m({
|
|
3594
3622
|
label: { default: void 0 },
|
|
@@ -3633,13 +3661,13 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3633
3661
|
"instructions"
|
|
3634
3662
|
]));
|
|
3635
3663
|
}
|
|
3636
|
-
}),
|
|
3664
|
+
}), Gi = ["for"], Ki = {
|
|
3637
3665
|
key: 0,
|
|
3638
3666
|
class: "g-file-input-required"
|
|
3639
|
-
},
|
|
3667
|
+
}, qi = {
|
|
3640
3668
|
key: 0,
|
|
3641
3669
|
class: "g-file-input-box-header"
|
|
3642
|
-
},
|
|
3670
|
+
}, Ji = ["id"], Yi = [
|
|
3643
3671
|
"id",
|
|
3644
3672
|
"disabled",
|
|
3645
3673
|
"required",
|
|
@@ -3648,11 +3676,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3648
3676
|
"aria-invalid",
|
|
3649
3677
|
"aria-describedby",
|
|
3650
3678
|
"aria-errormessage"
|
|
3651
|
-
],
|
|
3679
|
+
], Xi = {
|
|
3652
3680
|
key: 1,
|
|
3653
3681
|
class: "g-file-input-pills",
|
|
3654
3682
|
"aria-label": "Selected files"
|
|
3655
|
-
},
|
|
3683
|
+
}, Zi = /* @__PURE__ */ u({
|
|
3656
3684
|
inheritAttrs: !1,
|
|
3657
3685
|
__name: "GFileInput",
|
|
3658
3686
|
props: /*@__PURE__*/ m({
|
|
@@ -3709,12 +3737,12 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3709
3737
|
key: 0,
|
|
3710
3738
|
for: R(d),
|
|
3711
3739
|
class: "g-file-input-label"
|
|
3712
|
-
}, [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),
|
|
3713
3741
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
3714
|
-
t.instructions ? (T(), o("div",
|
|
3742
|
+
t.instructions ? (T(), o("div", qi, [s("span", {
|
|
3715
3743
|
id: "instructions-" + R(d),
|
|
3716
3744
|
class: "g-file-input-instructions"
|
|
3717
|
-
}, P(t.instructions), 9,
|
|
3745
|
+
}, P(t.instructions), 9, Ji)])) : a("", !0),
|
|
3718
3746
|
s("input", {
|
|
3719
3747
|
id: R(d),
|
|
3720
3748
|
type: "file",
|
|
@@ -3727,8 +3755,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3727
3755
|
"aria-describedby": t.instructions ? "instructions-" + R(d) : void 0,
|
|
3728
3756
|
"aria-errormessage": y.value ? "error-message-" + R(d) : void 0,
|
|
3729
3757
|
onChange: g
|
|
3730
|
-
}, null, 40,
|
|
3731
|
-
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", {
|
|
3732
3760
|
key: e,
|
|
3733
3761
|
class: "g-file-input-pill"
|
|
3734
3762
|
}, [r[0] ||= s("svg", {
|
|
@@ -3744,7 +3772,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3744
3772
|
}, null, 8, ["errors", "id"])
|
|
3745
3773
|
], 2));
|
|
3746
3774
|
}
|
|
3747
|
-
}),
|
|
3775
|
+
}), Qi = /* @__PURE__ */ u({
|
|
3748
3776
|
__name: "GDateInput",
|
|
3749
3777
|
props: /*@__PURE__*/ m({
|
|
3750
3778
|
label: { default: void 0 },
|
|
@@ -3792,21 +3820,21 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3792
3820
|
"form-key"
|
|
3793
3821
|
]));
|
|
3794
3822
|
}
|
|
3795
|
-
}),
|
|
3823
|
+
}), $i = { class: "g-date-range-input" }, ea = {
|
|
3796
3824
|
key: 0,
|
|
3797
3825
|
class: "g-date-range-input__label"
|
|
3798
|
-
},
|
|
3826
|
+
}, ta = {
|
|
3799
3827
|
key: 0,
|
|
3800
3828
|
class: "g-date-range-input__required",
|
|
3801
3829
|
"aria-hidden": "true"
|
|
3802
|
-
},
|
|
3830
|
+
}, na = {
|
|
3803
3831
|
key: 1,
|
|
3804
3832
|
class: "g-date-range-input__instructions"
|
|
3805
|
-
},
|
|
3833
|
+
}, ra = { class: "g-date-range-input__fields" }, ia = {
|
|
3806
3834
|
key: 2,
|
|
3807
3835
|
class: "g-date-range-input__errors",
|
|
3808
3836
|
role: "alert"
|
|
3809
|
-
},
|
|
3837
|
+
}, aa = /* @__PURE__ */ u({
|
|
3810
3838
|
__name: "GDateRangeInput",
|
|
3811
3839
|
props: /*@__PURE__*/ m({
|
|
3812
3840
|
label: { default: void 0 },
|
|
@@ -3846,10 +3874,10 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3846
3874
|
};
|
|
3847
3875
|
}), K(r, (e) => {
|
|
3848
3876
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
3849
|
-
}, { deep: !0 }), (t, r) => (T(), o("div",
|
|
3850
|
-
n.label ? (T(), o("div",
|
|
3851
|
-
n.instructions ? (T(), o("div",
|
|
3852
|
-
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, {
|
|
3853
3881
|
modelValue: i.value,
|
|
3854
3882
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
3855
3883
|
label: n.startLabel,
|
|
@@ -3861,7 +3889,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3861
3889
|
"label",
|
|
3862
3890
|
"disabled",
|
|
3863
3891
|
"required"
|
|
3864
|
-
]), l(
|
|
3892
|
+
]), l(Qi, {
|
|
3865
3893
|
modelValue: u.value,
|
|
3866
3894
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
3867
3895
|
label: n.endLabel,
|
|
@@ -3874,13 +3902,13 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3874
3902
|
"disabled",
|
|
3875
3903
|
"required"
|
|
3876
3904
|
])]),
|
|
3877
|
-
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", {
|
|
3878
3906
|
key: t,
|
|
3879
3907
|
class: "g-date-range-input__error"
|
|
3880
3908
|
}, P(e), 1))), 128))])) : a("", !0)
|
|
3881
3909
|
]));
|
|
3882
3910
|
}
|
|
3883
|
-
}),
|
|
3911
|
+
}), oa = ["action", "method"], sa = /* @__PURE__ */ u({
|
|
3884
3912
|
__name: "GForm",
|
|
3885
3913
|
props: /*@__PURE__*/ m({
|
|
3886
3914
|
action: { default: void 0 },
|
|
@@ -3920,9 +3948,9 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3920
3948
|
hasErrors: R(s).hasErrors.value,
|
|
3921
3949
|
values: R(s).values.value,
|
|
3922
3950
|
errors: R(s).errors.value
|
|
3923
|
-
})], 40,
|
|
3951
|
+
})], 40, oa));
|
|
3924
3952
|
}
|
|
3925
|
-
}),
|
|
3953
|
+
}), ca = /* @__PURE__ */ u({
|
|
3926
3954
|
__name: "GSubmitButton",
|
|
3927
3955
|
props: {
|
|
3928
3956
|
disabled: {
|
|
@@ -3945,21 +3973,21 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3945
3973
|
_: 3
|
|
3946
3974
|
}, 8, ["disabled", "variant"]));
|
|
3947
3975
|
}
|
|
3948
|
-
}),
|
|
3976
|
+
}), la = {
|
|
3949
3977
|
key: 0,
|
|
3950
3978
|
class: "g-checkbox-group__legend"
|
|
3951
|
-
},
|
|
3979
|
+
}, ua = {
|
|
3952
3980
|
key: 0,
|
|
3953
3981
|
class: "g-checkbox-group__required",
|
|
3954
3982
|
"aria-hidden": "true"
|
|
3955
|
-
},
|
|
3983
|
+
}, da = {
|
|
3956
3984
|
key: 1,
|
|
3957
3985
|
class: "g-checkbox-group__label"
|
|
3958
|
-
},
|
|
3986
|
+
}, fa = {
|
|
3959
3987
|
key: 0,
|
|
3960
3988
|
class: "g-checkbox-group__required",
|
|
3961
3989
|
"aria-hidden": "true"
|
|
3962
|
-
},
|
|
3990
|
+
}, pa = ["id"], ma = { class: "g-checkbox-group__options" }, ha = ["for"], ga = [
|
|
3963
3991
|
"id",
|
|
3964
3992
|
"type",
|
|
3965
3993
|
"name",
|
|
@@ -3968,7 +3996,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
3968
3996
|
"disabled",
|
|
3969
3997
|
"required",
|
|
3970
3998
|
"onChange"
|
|
3971
|
-
],
|
|
3999
|
+
], _a = { class: "g-checkbox-group__label-text" }, va = ["id"], ya = /* @__PURE__ */ u({
|
|
3972
4000
|
__name: "GCheckboxGroup",
|
|
3973
4001
|
props: /*@__PURE__*/ m({
|
|
3974
4002
|
label: { default: void 0 },
|
|
@@ -4029,13 +4057,13 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4029
4057
|
}
|
|
4030
4058
|
return (n, r) => (T(), i(j(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": R(m) }] }, w.value), {
|
|
4031
4059
|
default: J(() => [
|
|
4032
|
-
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),
|
|
4033
4061
|
t.instructions ? (T(), o("div", {
|
|
4034
4062
|
key: 2,
|
|
4035
4063
|
id: S.value,
|
|
4036
4064
|
class: "g-checkbox-group__instructions"
|
|
4037
|
-
}, P(t.instructions), 9,
|
|
4038
|
-
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", {
|
|
4039
4067
|
key: e.value,
|
|
4040
4068
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
4041
4069
|
}, [s("label", {
|
|
@@ -4050,11 +4078,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4050
4078
|
disabled: e.disabled,
|
|
4051
4079
|
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
4052
4080
|
class: "g-checkbox-group__input"
|
|
4053
|
-
}, { 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", {
|
|
4054
4082
|
key: 0,
|
|
4055
4083
|
id: E(n),
|
|
4056
4084
|
class: "g-checkbox-group__hint"
|
|
4057
|
-
}, P(e.hint), 9,
|
|
4085
|
+
}, P(e.hint), 9, va)) : a("", !0)], 2))), 128))]),
|
|
4058
4086
|
l(je, {
|
|
4059
4087
|
errors: R(p),
|
|
4060
4088
|
id: x.value
|
|
@@ -4063,11 +4091,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4063
4091
|
_: 1
|
|
4064
4092
|
}, 16, ["class"]));
|
|
4065
4093
|
}
|
|
4066
|
-
}),
|
|
4094
|
+
}), ba = ["for"], xa = {
|
|
4067
4095
|
key: 0,
|
|
4068
4096
|
class: "g-textarea-required",
|
|
4069
4097
|
"aria-hidden": "true"
|
|
4070
|
-
},
|
|
4098
|
+
}, Sa = ["id"], Ca = [
|
|
4071
4099
|
"value",
|
|
4072
4100
|
"placeholder",
|
|
4073
4101
|
"disabled",
|
|
@@ -4076,11 +4104,11 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4076
4104
|
"rows",
|
|
4077
4105
|
"maxlength",
|
|
4078
4106
|
"aria-invalid"
|
|
4079
|
-
],
|
|
4107
|
+
], wa = {
|
|
4080
4108
|
key: 2,
|
|
4081
4109
|
class: "g-textarea-char-count",
|
|
4082
4110
|
"aria-live": "polite"
|
|
4083
|
-
},
|
|
4111
|
+
}, Ta = /* @__PURE__ */ u({
|
|
4084
4112
|
inheritAttrs: !1,
|
|
4085
4113
|
__name: "GTextarea",
|
|
4086
4114
|
props: /*@__PURE__*/ m({
|
|
@@ -4137,7 +4165,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4137
4165
|
}
|
|
4138
4166
|
}
|
|
4139
4167
|
function w(e) {
|
|
4140
|
-
|
|
4168
|
+
let t = e.target.value;
|
|
4169
|
+
i.value = t, n.autoGrow && S();
|
|
4141
4170
|
}
|
|
4142
4171
|
function E(e) {
|
|
4143
4172
|
C(e.target.value);
|
|
@@ -4153,12 +4182,12 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4153
4182
|
key: 0,
|
|
4154
4183
|
for: m.value,
|
|
4155
4184
|
class: "g-textarea-label"
|
|
4156
|
-
}, [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),
|
|
4157
4186
|
t.$slots.instructions || e.instructions ? (T(), o("div", {
|
|
4158
4187
|
key: 1,
|
|
4159
4188
|
id: "instructions-" + R(u),
|
|
4160
4189
|
class: "g-textarea-instructions"
|
|
4161
|
-
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8,
|
|
4190
|
+
}, [A(t.$slots, "instructions", {}, () => [c(P(e.instructions), 1)])], 8, Sa)) : a("", !0),
|
|
4162
4191
|
s("textarea", h({
|
|
4163
4192
|
ref: "textareaEl",
|
|
4164
4193
|
value: i.value ?? "",
|
|
@@ -4179,8 +4208,8 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4179
4208
|
onInput: w,
|
|
4180
4209
|
onBlur: E,
|
|
4181
4210
|
onPaste: D
|
|
4182
|
-
}), null, 16,
|
|
4183
|
-
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)),
|
|
4184
4213
|
l(je, {
|
|
4185
4214
|
errors: R(v),
|
|
4186
4215
|
id: "error-message-" + R(u)
|
|
@@ -4190,7 +4219,7 @@ var xr = { class: "g-table-outer-wrap" }, Sr = {
|
|
|
4190
4219
|
});
|
|
4191
4220
|
//#endregion
|
|
4192
4221
|
//#region src/compose/useActiveLink.ts
|
|
4193
|
-
function
|
|
4222
|
+
function Ea(e, t, n) {
|
|
4194
4223
|
let r = [
|
|
4195
4224
|
0,
|
|
4196
4225
|
.25,
|
|
@@ -4220,7 +4249,7 @@ function ya(e, t, n) {
|
|
|
4220
4249
|
}
|
|
4221
4250
|
//#endregion
|
|
4222
4251
|
//#region src/compose/useSidebar.ts
|
|
4223
|
-
function
|
|
4252
|
+
function Da(e = "(max-width: 800px)") {
|
|
4224
4253
|
let t = B(), n = O(!1), r = le(e, { ssrWidth: 1e3 });
|
|
4225
4254
|
function i(e) {
|
|
4226
4255
|
if (!r.value || !n.value) return;
|
|
@@ -4251,7 +4280,7 @@ function ba(e = "(max-width: 800px)") {
|
|
|
4251
4280
|
}
|
|
4252
4281
|
//#endregion
|
|
4253
4282
|
//#region src/compose/useTableChanges.ts
|
|
4254
|
-
function
|
|
4283
|
+
function Oa() {
|
|
4255
4284
|
let e = M(/* @__PURE__ */ new Map()), t = X(), n = (n) => {
|
|
4256
4285
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
4257
4286
|
e.has(i) || e.set(i, M(/* @__PURE__ */ new Map()));
|
|
@@ -4354,6 +4383,6 @@ function xa() {
|
|
|
4354
4383
|
};
|
|
4355
4384
|
}
|
|
4356
4385
|
//#endregion
|
|
4357
|
-
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 };
|
|
4358
4387
|
|
|
4359
|
-
//# sourceMappingURL=grad-vue-
|
|
4388
|
+
//# sourceMappingURL=grad-vue-N0uyBUx2.js.map
|