@illinois-grad/grad-vue 6.0.2 → 6.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{grad-vue-B1qlZLc2.js → grad-vue-Bd30K3vh.js} +310 -310
- package/dist/grad-vue-Bd30K3vh.js.map +1 -0
- package/dist/grad-vue-elements.css +28 -28
- package/dist/grad-vue-elements.js +429 -429
- package/dist/grad-vue-elements.js.map +1 -1
- package/dist/grad-vue.css +1 -1
- package/dist/grad-vue.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +1 -1
- package/dist/grad-vue-B1qlZLc2.js.map +0 -1
|
@@ -1385,7 +1385,6 @@ var Lt = ["id"], Rt = {
|
|
|
1385
1385
|
e.preventDefault(), b.value = t, M();
|
|
1386
1386
|
break;
|
|
1387
1387
|
case "Enter":
|
|
1388
|
-
case " ":
|
|
1389
1388
|
e.preventDefault(), y.value ? ie(b.value) : H();
|
|
1390
1389
|
break;
|
|
1391
1390
|
case "Escape": j.value && (e.preventDefault(), setTimeout(() => {
|
|
@@ -1906,7 +1905,10 @@ var ln = [
|
|
|
1906
1905
|
}, gn = {
|
|
1907
1906
|
key: 0,
|
|
1908
1907
|
class: "g-app-header__block-i-container"
|
|
1909
|
-
}, _n = { class: "g-app-header__title" }, vn = ["aria-label"], yn = ["aria-label"], bn =
|
|
1908
|
+
}, _n = { class: "g-app-header__title" }, vn = ["aria-label"], yn = ["aria-label"], bn = {
|
|
1909
|
+
key: 4,
|
|
1910
|
+
class: "g-app-header__app-controls-wrap"
|
|
1911
|
+
}, xn = /* @__PURE__ */ u({
|
|
1910
1912
|
__name: "GAppHeader",
|
|
1911
1913
|
props: {
|
|
1912
1914
|
illinois: {
|
|
@@ -1918,26 +1920,27 @@ var ln = [
|
|
|
1918
1920
|
navigationMediaQuery: { default: "(max-width: 800px)" }
|
|
1919
1921
|
},
|
|
1920
1922
|
setup(e) {
|
|
1921
|
-
let t =
|
|
1922
|
-
function
|
|
1923
|
-
return $e(
|
|
1924
|
-
}
|
|
1925
|
-
function
|
|
1926
|
-
e < 0 ||
|
|
1927
|
-
}
|
|
1928
|
-
return W(
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1923
|
+
let t = Y(F(e, "navigationMediaQuery"), { ssrWidth: 1e3 }), n = H("desktopNavigationRef"), r = H("mobileNavigationRef");
|
|
1924
|
+
function c() {
|
|
1925
|
+
return $e(n.value);
|
|
1926
|
+
}
|
|
1927
|
+
function l(e) {
|
|
1928
|
+
e < 0 || c()[e]?.focus();
|
|
1929
|
+
}
|
|
1930
|
+
return W(t, async (e) => {
|
|
1931
|
+
let t = e ? et(c()) : r.value?.getFocusedItemIndex() ?? -1;
|
|
1932
|
+
if (t !== -1) {
|
|
1933
|
+
if (e) {
|
|
1934
|
+
if (t < 0) return;
|
|
1935
|
+
await g(), r.value?.show(), await r.value?.focusItem(t);
|
|
1936
|
+
return;
|
|
1937
|
+
}
|
|
1938
|
+
r.value?.hide(), !(t < 0) && (await g(), l(t));
|
|
1935
1939
|
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
e.illinois ? (w(), o("div", gn, [...n[0] ||= [s("svg", {
|
|
1940
|
+
}), (c, l) => (w(), o("header", { class: _(["g-app-header", { "g-app-header--no-app-controls": !c.$slots["app-controls"] }]) }, [
|
|
1941
|
+
l[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),
|
|
1942
|
+
s("div", mn, [k(c.$slots, "left", {}, () => [s("a", hn, N(e.brand), 1)])]),
|
|
1943
|
+
e.illinois ? (w(), o("div", gn, [...l[0] ||= [s("svg", {
|
|
1941
1944
|
class: "g-app-header__block-i",
|
|
1942
1945
|
role: "img",
|
|
1943
1946
|
width: "55",
|
|
@@ -1953,18 +1956,18 @@ var ln = [
|
|
|
1953
1956
|
class: "g-app-header__block-i-fill",
|
|
1954
1957
|
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"
|
|
1955
1958
|
})
|
|
1956
|
-
], -1)]])) : k(
|
|
1957
|
-
s("div", _n, [k(
|
|
1958
|
-
c.
|
|
1959
|
+
], -1)]])) : k(c.$slots, "icon", {}, void 0, void 0, 1),
|
|
1960
|
+
s("div", _n, [k(c.$slots, "title")]),
|
|
1961
|
+
c.$slots.navigation && !L(t) ? (w(), o("nav", {
|
|
1959
1962
|
key: 2,
|
|
1960
1963
|
ref_key: "desktopNavigationRef",
|
|
1961
|
-
ref:
|
|
1964
|
+
ref: n,
|
|
1962
1965
|
class: "g-app-header__navigation",
|
|
1963
1966
|
"aria-label": e.navigationLabel
|
|
1964
|
-
}, [k(
|
|
1967
|
+
}, [k(c.$slots, "navigation")], 8, vn)) : c.$slots.navigation ? (w(), i(pn, {
|
|
1965
1968
|
key: 3,
|
|
1966
1969
|
ref_key: "mobileNavigationRef",
|
|
1967
|
-
ref:
|
|
1970
|
+
ref: r,
|
|
1968
1971
|
class: "g-app-header__navigation-toggle",
|
|
1969
1972
|
label: e.navigationLabel,
|
|
1970
1973
|
mode: "popover"
|
|
@@ -1972,19 +1975,16 @@ var ln = [
|
|
|
1972
1975
|
default: G(() => [s("nav", {
|
|
1973
1976
|
class: "g-app-header__navigation-popover",
|
|
1974
1977
|
"aria-label": e.navigationLabel
|
|
1975
|
-
}, [k(
|
|
1978
|
+
}, [k(c.$slots, "navigation")], 8, yn)]),
|
|
1976
1979
|
_: 3
|
|
1977
1980
|
}, 8, ["label"])) : a("", !0),
|
|
1978
|
-
|
|
1979
|
-
key: 4,
|
|
1980
|
-
class: _(["g-app-header__app-controls-wrap", { "g-app-header__app-controls-wrap--push": u.value }])
|
|
1981
|
-
}, [k(t.$slots, "app-controls")], 2)) : a("", !0)
|
|
1981
|
+
c.$slots["app-controls"] ? (w(), o("div", bn, [k(c.$slots, "app-controls")])) : a("", !0)
|
|
1982
1982
|
], 2));
|
|
1983
1983
|
}
|
|
1984
1984
|
});
|
|
1985
1985
|
//#endregion
|
|
1986
1986
|
//#region src/compose/useScrollRestore.ts
|
|
1987
|
-
function
|
|
1987
|
+
function Sn(e, t) {
|
|
1988
1988
|
let n = t ? fe(`${t}:scroll`, 0, { writeDefaults: !1 }) : null, r = D(!!(n?.value && n.value > 0)), i = null, a = null, o = null, s = !1;
|
|
1989
1989
|
function c(e) {
|
|
1990
1990
|
let t = window.getComputedStyle(e);
|
|
@@ -2067,7 +2067,7 @@ function xn(e, t) {
|
|
|
2067
2067
|
}
|
|
2068
2068
|
//#endregion
|
|
2069
2069
|
//#region src/components/GSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
2070
|
-
var
|
|
2070
|
+
var Cn = ["id"], wn = /* @__PURE__ */ u({
|
|
2071
2071
|
__name: "GSidebar",
|
|
2072
2072
|
props: {
|
|
2073
2073
|
backgroundColor: { default: "" },
|
|
@@ -2081,7 +2081,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2081
2081
|
storageKey: {}
|
|
2082
2082
|
},
|
|
2083
2083
|
setup(e) {
|
|
2084
|
-
let t = e, n = p("sidebar", () => void 0, !0) ?? (Z() ? cn(t.sidebarKey, F(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 = z(), { isPendingScrollRestore: l } =
|
|
2084
|
+
let t = e, n = p("sidebar", () => void 0, !0) ?? (Z() ? cn(t.sidebarKey, F(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 = z(), { isPendingScrollRestore: l } = Sn(H("sidebar-ref"), t.storageKey);
|
|
2085
2085
|
function u(e) {
|
|
2086
2086
|
e.key === "Escape" && n?.isCollapsible?.value && n?.open?.value && (n.open.value = !1, document.getElementById(`${n.id}-hamburger`)?.focus());
|
|
2087
2087
|
}
|
|
@@ -2102,13 +2102,13 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2102
2102
|
width: "var(--g-sidebar-width)"
|
|
2103
2103
|
}),
|
|
2104
2104
|
onKeydown: u
|
|
2105
|
-
}, [k(t.$slots, "default")], 46,
|
|
2105
|
+
}, [k(t.$slots, "default")], 46, Cn));
|
|
2106
2106
|
}
|
|
2107
|
-
}),
|
|
2107
|
+
}), Tn = ["id"], En = { class: "g-sidebar-menu__list" }, Dn = [
|
|
2108
2108
|
"href",
|
|
2109
2109
|
"aria-current",
|
|
2110
2110
|
"onClick"
|
|
2111
|
-
],
|
|
2111
|
+
], On = /* @__PURE__ */ u({
|
|
2112
2112
|
__name: "GSidebarMenu",
|
|
2113
2113
|
props: /*@__PURE__*/ m({
|
|
2114
2114
|
heading: {},
|
|
@@ -2156,13 +2156,13 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2156
2156
|
key: 0,
|
|
2157
2157
|
id: L(y),
|
|
2158
2158
|
class: "g-sidebar-menu__title"
|
|
2159
|
-
}, N(t.heading), 9,
|
|
2159
|
+
}, N(t.heading), 9, Tn)) : a("", !0),
|
|
2160
2160
|
l[0] ||= s("div", { class: "g-sidebar-menu__divider" }, null, -1),
|
|
2161
2161
|
s("div", {
|
|
2162
2162
|
class: "g-sidebar-menu__content",
|
|
2163
2163
|
ref_key: "content",
|
|
2164
2164
|
ref: f
|
|
2165
|
-
}, [s("ul",
|
|
2165
|
+
}, [s("ul", En, [(w(!0), o(e, null, O(t.items, (e) => (w(), o("li", {
|
|
2166
2166
|
key: e.href || e.to,
|
|
2167
2167
|
class: "g-sidebar-menu__item",
|
|
2168
2168
|
ref_for: !0,
|
|
@@ -2180,10 +2180,10 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2180
2180
|
href: e.href || e.to || "#",
|
|
2181
2181
|
"aria-current": u.value === (e.href || "") ? "location" : void 0,
|
|
2182
2182
|
onClick: (t) => v(t, e)
|
|
2183
|
-
}, N(e.label), 11,
|
|
2183
|
+
}, N(e.label), 11, Dn))]))), 128))])], 512)
|
|
2184
2184
|
], 16));
|
|
2185
2185
|
}
|
|
2186
|
-
}),
|
|
2186
|
+
}), kn = {
|
|
2187
2187
|
mounted(e, t) {
|
|
2188
2188
|
let n = D(null), r = D(!1), i = D(!1), a = D(t.value), o = null, s = !1, c = dt(e), l = () => {
|
|
2189
2189
|
n.value || (n.value = ft(a.value, c), pt(n.value), o = new ResizeObserver(() => {
|
|
@@ -2235,7 +2235,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2235
2235
|
let t = e._v_gtooltip;
|
|
2236
2236
|
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");
|
|
2237
2237
|
}
|
|
2238
|
-
},
|
|
2238
|
+
}, An = { class: "g-clipboard-text" }, jn = /* @__PURE__ */ u({
|
|
2239
2239
|
__name: "GClipboard",
|
|
2240
2240
|
props: {
|
|
2241
2241
|
text: {},
|
|
@@ -2243,12 +2243,12 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2243
2243
|
copyLabel: {}
|
|
2244
2244
|
},
|
|
2245
2245
|
setup(t) {
|
|
2246
|
-
let n = t, r =
|
|
2246
|
+
let n = t, r = kn, { text: i, copy: l, copied: u, isSupported: d } = oe({ source: n.text }), f = D(n.copyLabel ?? "Copy to clipboard"), p = () => {
|
|
2247
2247
|
d.value ? (l(), f.value = "Copied") : f.value = "Copy not supported";
|
|
2248
2248
|
}, m = () => {
|
|
2249
2249
|
f.value = n.copyLabel ?? "Copy to clipboard";
|
|
2250
2250
|
};
|
|
2251
|
-
return (i, l) => (w(), o("div",
|
|
2251
|
+
return (i, l) => (w(), o("div", An, [t.hideText ? a("", !0) : (w(), o(e, { key: 0 }, [c(N(n.text), 1)], 64)), re((w(), o("button", {
|
|
2252
2252
|
type: "button",
|
|
2253
2253
|
"aria-label": "Copy",
|
|
2254
2254
|
onClick: p,
|
|
@@ -2265,15 +2265,15 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2265
2265
|
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"
|
|
2266
2266
|
})], -1)]], 32)), [[L(r), f.value]])]));
|
|
2267
2267
|
}
|
|
2268
|
-
}),
|
|
2268
|
+
}), Mn = { class: "g-history-scroller-wrapper" }, Nn = {
|
|
2269
2269
|
key: 0,
|
|
2270
2270
|
class: "g-history-shadow g-history-shadow--top",
|
|
2271
2271
|
"aria-hidden": "true"
|
|
2272
|
-
},
|
|
2272
|
+
}, Pn = {
|
|
2273
2273
|
key: 1,
|
|
2274
2274
|
class: "g-history-shadow g-history-shadow--bottom",
|
|
2275
2275
|
"aria-hidden": "true"
|
|
2276
|
-
},
|
|
2276
|
+
}, Fn = ["role", "aria-label"], In = /* @__PURE__ */ u({
|
|
2277
2277
|
__name: "GHistoryScroller",
|
|
2278
2278
|
props: {
|
|
2279
2279
|
label: {},
|
|
@@ -2305,9 +2305,9 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2305
2305
|
u.value && (await g(), f());
|
|
2306
2306
|
});
|
|
2307
2307
|
let m = r(() => [...n.entries].reverse());
|
|
2308
|
-
return (n, r) => (w(), o("div",
|
|
2309
|
-
d.value ? a("", !0) : (w(), o("div",
|
|
2310
|
-
u.value ? a("", !0) : (w(), o("div",
|
|
2308
|
+
return (n, r) => (w(), o("div", Mn, [
|
|
2309
|
+
d.value ? a("", !0) : (w(), o("div", Nn)),
|
|
2310
|
+
u.value ? a("", !0) : (w(), o("div", Pn)),
|
|
2311
2311
|
s("div", {
|
|
2312
2312
|
ref_key: "scrollerRef",
|
|
2313
2313
|
ref: i,
|
|
@@ -2342,31 +2342,31 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2342
2342
|
key: e.id,
|
|
2343
2343
|
class: "g-history-entry",
|
|
2344
2344
|
tabindex: "-1"
|
|
2345
|
-
}, [k(n.$slots, "default", { entry: e })]))), 128))], 512)], 40,
|
|
2345
|
+
}, [k(n.$slots, "default", { entry: e })]))), 128))], 512)], 40, Fn)
|
|
2346
2346
|
]));
|
|
2347
2347
|
}
|
|
2348
|
-
}),
|
|
2348
|
+
}), Ln = { class: "g-three-way-toggle-wrapper" }, Rn = { class: "g-three-way-toggle-control" }, zn = ["id"], Bn = [
|
|
2349
2349
|
"aria-labelledby",
|
|
2350
2350
|
"aria-describedby",
|
|
2351
2351
|
"disabled",
|
|
2352
2352
|
"aria-invalid",
|
|
2353
2353
|
"aria-errormessage"
|
|
2354
|
-
],
|
|
2354
|
+
], Vn = { key: 0 }, Hn = { key: 1 }, Un = { key: 2 }, Wn = ["for"], Gn = [
|
|
2355
2355
|
"id",
|
|
2356
2356
|
"name",
|
|
2357
2357
|
"checked",
|
|
2358
2358
|
"disabled"
|
|
2359
|
-
],
|
|
2359
|
+
], Kn = ["for"], qn = [
|
|
2360
2360
|
"id",
|
|
2361
2361
|
"name",
|
|
2362
2362
|
"checked",
|
|
2363
2363
|
"disabled"
|
|
2364
|
-
],
|
|
2364
|
+
], Jn = ["for"], Yn = [
|
|
2365
2365
|
"id",
|
|
2366
2366
|
"name",
|
|
2367
2367
|
"checked",
|
|
2368
2368
|
"disabled"
|
|
2369
|
-
],
|
|
2369
|
+
], Xn = ["id"], Zn = /* @__PURE__ */ u({
|
|
2370
2370
|
__name: "GThreeWayToggle",
|
|
2371
2371
|
props: /*@__PURE__*/ m({
|
|
2372
2372
|
label: {},
|
|
@@ -2400,10 +2400,10 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2400
2400
|
function b(e) {
|
|
2401
2401
|
n.disabled || (e.key === "n" || e.key === "N" ? (u(!1), e.preventDefault()) : (e.key === "y" || e.key === "Y") && (u(!0), e.preventDefault()));
|
|
2402
2402
|
}
|
|
2403
|
-
return (t, n) => (w(), o("div",
|
|
2403
|
+
return (t, n) => (w(), o("div", Ln, [s("div", Rn, [s("span", {
|
|
2404
2404
|
class: "g-label",
|
|
2405
2405
|
id: L(p)
|
|
2406
|
-
}, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])], 8,
|
|
2406
|
+
}, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])], 8, zn), s("fieldset", {
|
|
2407
2407
|
class: _(["g-three-way-toggle", { "g-has-error": e.error }]),
|
|
2408
2408
|
role: "radiogroup",
|
|
2409
2409
|
"aria-labelledby": L(p),
|
|
@@ -2415,7 +2415,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2415
2415
|
s("span", {
|
|
2416
2416
|
class: _(["g-toggle-thumb", y.value]),
|
|
2417
2417
|
"aria-hidden": "true"
|
|
2418
|
-
}, [i.value === !1 ? (w(), o("span",
|
|
2418
|
+
}, [i.value === !1 ? (w(), o("span", Vn, "NO")) : i.value === !0 ? (w(), o("span", Hn, "YES")) : (w(), o("span", Un))], 2),
|
|
2419
2419
|
s("label", {
|
|
2420
2420
|
for: L(h),
|
|
2421
2421
|
class: "g-toggle-option g-left",
|
|
@@ -2429,7 +2429,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2429
2429
|
value: "false",
|
|
2430
2430
|
disabled: e.disabled,
|
|
2431
2431
|
onChange: n[0] ||= (e) => d(!1)
|
|
2432
|
-
}, null, 40,
|
|
2432
|
+
}, null, 40, Gn), n[5] ||= s("span", { class: "ilw-sr-only" }, "No", -1)], 40, Wn),
|
|
2433
2433
|
s("label", {
|
|
2434
2434
|
for: L(g),
|
|
2435
2435
|
class: "g-toggle-option g-center",
|
|
@@ -2441,7 +2441,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2441
2441
|
checked: i.value === null,
|
|
2442
2442
|
disabled: e.disabled,
|
|
2443
2443
|
onChange: n[2] ||= (e) => d(null)
|
|
2444
|
-
}, null, 40,
|
|
2444
|
+
}, null, 40, qn), n[6] ||= s("span", { class: "ilw-sr-only" }, "Unset", -1)], 40, Kn),
|
|
2445
2445
|
s("label", {
|
|
2446
2446
|
for: L(v),
|
|
2447
2447
|
class: "g-toggle-option g-right",
|
|
@@ -2455,54 +2455,54 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2455
2455
|
checked: i.value === !0,
|
|
2456
2456
|
disabled: e.disabled,
|
|
2457
2457
|
onChange: n[3] ||= (e) => d(!0)
|
|
2458
|
-
}, null, 40,
|
|
2459
|
-
], 2)], 10,
|
|
2458
|
+
}, null, 40, Yn), n[7] ||= s("span", { class: "ilw-sr-only" }, "Yes", -1)], 40, Jn)
|
|
2459
|
+
], 2)], 10, Bn)]), e.error ? (w(), o("div", {
|
|
2460
2460
|
key: 0,
|
|
2461
2461
|
id: `${L(p)}-error`,
|
|
2462
2462
|
class: "g-form-error",
|
|
2463
2463
|
role: "alert",
|
|
2464
2464
|
"aria-atomic": "true"
|
|
2465
|
-
}, N(e.error), 9,
|
|
2465
|
+
}, N(e.error), 9, Xn)) : a("", !0)]));
|
|
2466
2466
|
}
|
|
2467
|
-
}),
|
|
2467
|
+
}), Qn = {
|
|
2468
2468
|
ref: "tableBodyRef",
|
|
2469
2469
|
class: "efficient-table-body"
|
|
2470
|
-
},
|
|
2470
|
+
}, $n = ["aria-rowindex"], er = {
|
|
2471
2471
|
key: 0,
|
|
2472
2472
|
class: "table-group-checkbox"
|
|
2473
|
-
},
|
|
2473
|
+
}, tr = ["colspan"], nr = [
|
|
2474
2474
|
"aria-rowindex",
|
|
2475
2475
|
"onMousedown",
|
|
2476
2476
|
"onClick"
|
|
2477
|
-
],
|
|
2477
|
+
], rr = [
|
|
2478
2478
|
"checked",
|
|
2479
2479
|
"onClick",
|
|
2480
2480
|
"aria-label",
|
|
2481
2481
|
"name"
|
|
2482
|
-
],
|
|
2482
|
+
], ir = ["id"], ar = {
|
|
2483
2483
|
key: 0,
|
|
2484
2484
|
class: "editable-cell"
|
|
2485
|
-
},
|
|
2485
|
+
}, or = {
|
|
2486
2486
|
key: 0,
|
|
2487
2487
|
class: "cell-prefix"
|
|
2488
|
-
},
|
|
2488
|
+
}, sr = [
|
|
2489
2489
|
"value",
|
|
2490
2490
|
"onChange",
|
|
2491
2491
|
"aria-labelledby",
|
|
2492
2492
|
"aria-invalid",
|
|
2493
2493
|
"aria-errormessage",
|
|
2494
2494
|
"name"
|
|
2495
|
-
],
|
|
2495
|
+
], cr = ["value"], lr = [
|
|
2496
2496
|
"value",
|
|
2497
2497
|
"onInput",
|
|
2498
2498
|
"aria-labelledby",
|
|
2499
2499
|
"aria-invalid",
|
|
2500
2500
|
"aria-errormessage",
|
|
2501
2501
|
"name"
|
|
2502
|
-
],
|
|
2502
|
+
], ur = {
|
|
2503
2503
|
key: 3,
|
|
2504
2504
|
class: "cell-suffix"
|
|
2505
|
-
},
|
|
2505
|
+
}, dr = ["id"], fr = /* @__PURE__ */ u({
|
|
2506
2506
|
__name: "GTableBody",
|
|
2507
2507
|
props: {
|
|
2508
2508
|
data: {},
|
|
@@ -2571,13 +2571,13 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2571
2571
|
function T(e, t) {
|
|
2572
2572
|
if (l.changeTracker) return l.changeTracker.getError(e.key, t.key);
|
|
2573
2573
|
}
|
|
2574
|
-
return (n, r) => (w(), o("tbody",
|
|
2574
|
+
return (n, r) => (w(), o("tbody", Qn, [(w(!0), o(e, null, O(t.data, (n, l) => (w(), o(e, { key: n.key }, [t.groupBy && (l === 0 || n[t.groupBy] !== t.data[l - 1][t.groupBy]) ? (w(), o("tr", {
|
|
2575
2575
|
key: 0,
|
|
2576
2576
|
"aria-rowindex": t.startIndex + l + 2
|
|
2577
|
-
}, [t.bulkSelectionEnabled ? (w(), o("td",
|
|
2577
|
+
}, [t.bulkSelectionEnabled ? (w(), o("td", er)) : a("", !0), s("td", {
|
|
2578
2578
|
colspan: b.value,
|
|
2579
2579
|
class: "table-group-row"
|
|
2580
|
-
}, [t.groupRender ? (w(), i(A(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(N(n[t.groupBy]), 1)], 64))], 8,
|
|
2580
|
+
}, [t.groupRender ? (w(), i(A(t.groupRender(n[t.groupBy], n)), { key: 0 })) : (w(), o(e, { key: 1 }, [c(N(n[t.groupBy]), 1)], 64))], 8, tr)], 8, $n)) : a("", !0), s("tr", {
|
|
2581
2581
|
class: _([
|
|
2582
2582
|
"efficient-table-row",
|
|
2583
2583
|
{
|
|
@@ -2600,7 +2600,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2600
2600
|
"aria-label": `Select row ${n.key}`,
|
|
2601
2601
|
name: `row-${n.key}-checkbox`,
|
|
2602
2602
|
class: "g-bulk-select-checkbox"
|
|
2603
|
-
}, null, 8,
|
|
2603
|
+
}, null, 8, rr)])) : a("", !0), (w(!0), o(e, null, O(t.columns, (r) => (w(), o("td", {
|
|
2604
2604
|
key: r.key,
|
|
2605
2605
|
id: x(r) ? `${t.tableId}-td-${n.key}-${String(r.key)}` : void 0,
|
|
2606
2606
|
class: _([
|
|
@@ -2609,8 +2609,8 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2609
2609
|
C(n, r) ? "g-cell-error" : "",
|
|
2610
2610
|
typeof r.tdClass == "function" ? r.tdClass(n) : r.tdClass
|
|
2611
2611
|
])
|
|
2612
|
-
}, [r.editable ? (w(), o("div",
|
|
2613
|
-
r.editable.prefix ? (w(), o("span",
|
|
2612
|
+
}, [r.editable ? (w(), o("div", ar, [
|
|
2613
|
+
r.editable.prefix ? (w(), o("span", or, N(r.editable.prefix), 1)) : a("", !0),
|
|
2614
2614
|
r.editable.type === "select" ? (w(), o("select", {
|
|
2615
2615
|
key: 1,
|
|
2616
2616
|
value: n[r.key],
|
|
@@ -2623,7 +2623,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2623
2623
|
}, [(w(!0), o(e, null, O(r.editable.options, (e) => (w(), o("option", {
|
|
2624
2624
|
key: e.value,
|
|
2625
2625
|
value: e.value
|
|
2626
|
-
}, N(e.label), 9,
|
|
2626
|
+
}, N(e.label), 9, cr))), 128))], 40, sr)) : (w(), o("input", h({
|
|
2627
2627
|
key: 2,
|
|
2628
2628
|
value: n[r.key]
|
|
2629
2629
|
}, { ref_for: !0 }, r.editable.inputAttributes, {
|
|
@@ -2637,24 +2637,24 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2637
2637
|
paddingLeft: r.editable.prefix ? "1.5rem" : void 0,
|
|
2638
2638
|
paddingRight: r.editable.suffix ? "2rem" : void 0
|
|
2639
2639
|
}
|
|
2640
|
-
}), null, 16,
|
|
2641
|
-
r.editable.suffix ? (w(), o("span",
|
|
2640
|
+
}), null, 16, lr)),
|
|
2641
|
+
r.editable.suffix ? (w(), o("span", ur, N(r.editable.suffix), 1)) : a("", !0)
|
|
2642
2642
|
])) : r.display ? (w(), i(A(r.display(n)), { key: 1 })) : (w(), o(e, { key: 2 }, [c(N(n[r.key]), 1)], 64)), C(n, r) ? (w(), o("div", {
|
|
2643
2643
|
key: 3,
|
|
2644
2644
|
role: "alert",
|
|
2645
2645
|
class: "g-cell-error-message",
|
|
2646
2646
|
id: `${t.tableId}-error-${n.key}-${String(r.key)}`
|
|
2647
|
-
}, N(T(n, r)), 9,
|
|
2647
|
+
}, N(T(n, r)), 9, dr)) : a("", !0)], 10, ir))), 128))], 42, nr)], 64))), 128))], 512));
|
|
2648
2648
|
}
|
|
2649
|
-
}),
|
|
2649
|
+
}), pr = ["id", "for"], mr = {
|
|
2650
2650
|
key: 0,
|
|
2651
2651
|
class: "g-multiselect-required",
|
|
2652
2652
|
"aria-hidden": "true"
|
|
2653
|
-
},
|
|
2653
|
+
}, hr = ["id"], gr = ["aria-labelledby"], _r = { class: "g-multiselect-chip-label" }, vr = [
|
|
2654
2654
|
"aria-label",
|
|
2655
2655
|
"disabled",
|
|
2656
2656
|
"onClick"
|
|
2657
|
-
],
|
|
2657
|
+
], yr = [
|
|
2658
2658
|
"id",
|
|
2659
2659
|
"value",
|
|
2660
2660
|
"placeholder",
|
|
@@ -2664,26 +2664,26 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2664
2664
|
"aria-activedescendant",
|
|
2665
2665
|
"aria-describedby",
|
|
2666
2666
|
"aria-required"
|
|
2667
|
-
],
|
|
2667
|
+
], br = ["id"], xr = [
|
|
2668
2668
|
"id",
|
|
2669
2669
|
"aria-selected",
|
|
2670
2670
|
"onClick"
|
|
2671
|
-
],
|
|
2671
|
+
], Sr = {
|
|
2672
2672
|
class: "g-multiselect-option-check",
|
|
2673
2673
|
"aria-hidden": "true"
|
|
2674
|
-
},
|
|
2674
|
+
}, Cr = {
|
|
2675
2675
|
key: 0,
|
|
2676
2676
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2677
2677
|
viewBox: "0 0 640 640",
|
|
2678
2678
|
width: "1.25em"
|
|
2679
|
-
},
|
|
2679
|
+
}, wr = { class: "g-multiselect-option-text" }, Tr = { class: "g-multiselect-option-label" }, Er = {
|
|
2680
2680
|
key: 0,
|
|
2681
2681
|
class: "g-multiselect-option-description"
|
|
2682
|
-
},
|
|
2682
|
+
}, Dr = {
|
|
2683
2683
|
key: 1,
|
|
2684
2684
|
"aria-live": "polite",
|
|
2685
2685
|
class: "g-multiselect-option g-multiselect-no-results"
|
|
2686
|
-
},
|
|
2686
|
+
}, Or = /* @__PURE__ */ u({
|
|
2687
2687
|
__name: "GMultiSelect",
|
|
2688
2688
|
props: /*@__PURE__*/ m({
|
|
2689
2689
|
options: {},
|
|
@@ -2819,12 +2819,12 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2819
2819
|
id: se.value,
|
|
2820
2820
|
for: oe.value,
|
|
2821
2821
|
class: "g-multiselect-label"
|
|
2822
|
-
}, [c(N(t.label), 1), t.required ? (w(), o("span",
|
|
2822
|
+
}, [c(N(t.label), 1), t.required ? (w(), o("span", mr, " *")) : a("", !0)], 8, pr)),
|
|
2823
2823
|
t.instructions ? (w(), o("div", {
|
|
2824
2824
|
key: 1,
|
|
2825
2825
|
id: ce.value,
|
|
2826
2826
|
class: "g-multiselect-instructions"
|
|
2827
|
-
}, N(t.instructions), 9,
|
|
2827
|
+
}, N(t.instructions), 9, hr)) : a("", !0),
|
|
2828
2828
|
s("div", {
|
|
2829
2829
|
ref_key: "controlRef",
|
|
2830
2830
|
ref: m,
|
|
@@ -2838,7 +2838,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2838
2838
|
}, [(w(!0), o(e, null, O(d.value, (e) => (w(), o("li", {
|
|
2839
2839
|
key: e,
|
|
2840
2840
|
class: "g-multiselect-chip"
|
|
2841
|
-
}, [s("span",
|
|
2841
|
+
}, [s("span", _r, N(R(e)), 1), s("button", {
|
|
2842
2842
|
type: "button",
|
|
2843
2843
|
class: "g-multiselect-chip-remove",
|
|
2844
2844
|
"aria-label": `Remove ${R(e)}`,
|
|
@@ -2853,7 +2853,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2853
2853
|
}, [s("path", {
|
|
2854
2854
|
fill: "currentColor",
|
|
2855
2855
|
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"
|
|
2856
|
-
})], -1)]], 40,
|
|
2856
|
+
})], -1)]], 40, vr)]))), 128))], 8, gr)) : a("", !0),
|
|
2857
2857
|
s("input", h({
|
|
2858
2858
|
ref_key: "inputRef",
|
|
2859
2859
|
ref: p,
|
|
@@ -2877,7 +2877,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2877
2877
|
onKeydown: J,
|
|
2878
2878
|
onFocus: G,
|
|
2879
2879
|
onBlur: ie
|
|
2880
|
-
}), null, 16,
|
|
2880
|
+
}), null, 16, yr),
|
|
2881
2881
|
r[2] ||= s("svg", {
|
|
2882
2882
|
class: "g-multiselect-caret",
|
|
2883
2883
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2909,7 +2909,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2909
2909
|
"aria-selected": I(e.value) ? "true" : "false",
|
|
2910
2910
|
onMousedown: q,
|
|
2911
2911
|
onClick: (e) => U(t)
|
|
2912
|
-
}, [s("span",
|
|
2912
|
+
}, [s("span", Sr, [I(e.value) ? (w(), o("svg", Cr, [...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", wr, [s("span", Tr, N(e.label), 1), e.description ? (w(), o("span", Er, N(e.description), 1)) : a("", !0)])], 42, xr))), 128)) : (w(), o("div", Dr, " No results found. "))], 16, br), [[te, y.value]])
|
|
2913
2913
|
], 2),
|
|
2914
2914
|
l(Me, {
|
|
2915
2915
|
errors: L(C),
|
|
@@ -2917,21 +2917,21 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2917
2917
|
}, null, 8, ["errors", "id"])
|
|
2918
2918
|
], 2));
|
|
2919
2919
|
}
|
|
2920
|
-
}),
|
|
2920
|
+
}), kr = {
|
|
2921
2921
|
key: 0,
|
|
2922
2922
|
class: "g-checkbox-group__legend"
|
|
2923
|
-
},
|
|
2923
|
+
}, Ar = {
|
|
2924
2924
|
key: 0,
|
|
2925
2925
|
class: "g-checkbox-group__required",
|
|
2926
2926
|
"aria-hidden": "true"
|
|
2927
|
-
},
|
|
2927
|
+
}, jr = {
|
|
2928
2928
|
key: 1,
|
|
2929
2929
|
class: "g-checkbox-group__label"
|
|
2930
|
-
},
|
|
2930
|
+
}, Mr = {
|
|
2931
2931
|
key: 0,
|
|
2932
2932
|
class: "g-checkbox-group__required",
|
|
2933
2933
|
"aria-hidden": "true"
|
|
2934
|
-
},
|
|
2934
|
+
}, Nr = ["id"], Pr = { class: "g-checkbox-group__options" }, Fr = ["for"], Ir = [
|
|
2935
2935
|
"id",
|
|
2936
2936
|
"type",
|
|
2937
2937
|
"name",
|
|
@@ -2940,7 +2940,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
2940
2940
|
"disabled",
|
|
2941
2941
|
"required",
|
|
2942
2942
|
"onChange"
|
|
2943
|
-
],
|
|
2943
|
+
], Lr = { class: "g-checkbox-group__label-text" }, Rr = ["id"], zr = /* @__PURE__ */ u({
|
|
2944
2944
|
__name: "GCheckboxGroup",
|
|
2945
2945
|
props: /*@__PURE__*/ m({
|
|
2946
2946
|
label: { default: void 0 },
|
|
@@ -3001,13 +3001,13 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3001
3001
|
}
|
|
3002
3002
|
return (n, r) => (w(), i(A(C.value ? "fieldset" : "div"), h({ class: ["g-checkbox-group", { "g-checkbox-group--error": L(m) }] }, T.value), {
|
|
3003
3003
|
default: G(() => [
|
|
3004
|
-
C.value && t.label ? (w(), o("legend",
|
|
3004
|
+
C.value && t.label ? (w(), o("legend", kr, [c(N(t.label), 1), t.required ? (w(), o("span", Ar, "\xA0*")) : a("", !0)])) : !C.value && t.label ? (w(), o("div", jr, [c(N(t.label), 1), t.required ? (w(), o("span", Mr, "\xA0*")) : a("", !0)])) : a("", !0),
|
|
3005
3005
|
t.instructions ? (w(), o("div", {
|
|
3006
3006
|
key: 2,
|
|
3007
3007
|
id: S.value,
|
|
3008
3008
|
class: "g-checkbox-group__instructions"
|
|
3009
|
-
}, N(t.instructions), 9,
|
|
3010
|
-
s("div",
|
|
3009
|
+
}, N(t.instructions), 9, Nr)) : a("", !0),
|
|
3010
|
+
s("div", Pr, [(w(!0), o(e, null, O(t.options, (e, n) => (w(), o("div", {
|
|
3011
3011
|
key: e.value,
|
|
3012
3012
|
class: _(["g-checkbox-group__option-wrapper", { "g-checkbox-group__option-wrapper--disabled": e.disabled }])
|
|
3013
3013
|
}, [s("label", {
|
|
@@ -3022,11 +3022,11 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3022
3022
|
disabled: e.disabled,
|
|
3023
3023
|
required: t.required && (t.radio && n === 0 || !t.radio && t.options.length === 1),
|
|
3024
3024
|
class: "g-checkbox-group__input"
|
|
3025
|
-
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16,
|
|
3025
|
+
}, { ref_for: !0 }, k(e, n), { onChange: (t) => y(e.value, t.target.checked) }), null, 16, Ir), s("span", Lr, N(e.label), 1)], 10, Fr), e.hint ? (w(), o("div", {
|
|
3026
3026
|
key: 0,
|
|
3027
3027
|
id: E(n),
|
|
3028
3028
|
class: "g-checkbox-group__hint"
|
|
3029
|
-
}, N(e.hint), 9,
|
|
3029
|
+
}, N(e.hint), 9, Rr)) : a("", !0)], 2))), 128))]),
|
|
3030
3030
|
l(Me, {
|
|
3031
3031
|
errors: L(p),
|
|
3032
3032
|
id: x.value
|
|
@@ -3035,10 +3035,10 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3035
3035
|
_: 1
|
|
3036
3036
|
}, 16, ["class"]));
|
|
3037
3037
|
}
|
|
3038
|
-
}),
|
|
3038
|
+
}), Br = {
|
|
3039
3039
|
class: "g-pagination",
|
|
3040
3040
|
"aria-label": "Pagination"
|
|
3041
|
-
},
|
|
3041
|
+
}, Vr = ["disabled"], Hr = ["disabled"], Ur = { class: "page-range" }, Wr = ["disabled"], Gr = ["disabled"], Kr = { class: "g-pagination-page-size" }, qr = { class: "page-size-select-wrap" }, Jr = ["id", "value"], Yr = ["value"], Xr = ["for"], Zr = { class: "g-pagination-overflow" }, Qr = ["onClick"], $r = { class: "g-pagination-overflow-popover" }, ei = { class: "g-pagination-overflow-page-size" }, ti = ["for"], ni = { class: "page-size-select-wrap" }, ri = ["id", "value"], ii = ["value"], ai = { class: "g-pagination-overflow-actions" }, oi = ["disabled"], si = ["disabled"], ci = /* @__PURE__ */ u({
|
|
3042
3042
|
__name: "GTablePagination",
|
|
3043
3043
|
props: /*@__PURE__*/ m({
|
|
3044
3044
|
start: {},
|
|
@@ -3065,7 +3065,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3065
3065
|
function S(e) {
|
|
3066
3066
|
u.value = parseInt(e.target.value, 10), a.value = 0;
|
|
3067
3067
|
}
|
|
3068
|
-
return (t, n) => (w(), o("nav",
|
|
3068
|
+
return (t, n) => (w(), o("nav", Br, [
|
|
3069
3069
|
s("button", {
|
|
3070
3070
|
class: "first-page g-pagination-button",
|
|
3071
3071
|
type: "button",
|
|
@@ -3091,7 +3091,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3091
3091
|
}),
|
|
3092
3092
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3093
3093
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3094
|
-
], -1)]], 8,
|
|
3094
|
+
], -1)]], 8, Vr),
|
|
3095
3095
|
s("button", {
|
|
3096
3096
|
class: "prev-page g-pagination-button",
|
|
3097
3097
|
type: "button",
|
|
@@ -3113,8 +3113,8 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3113
3113
|
stroke: "none",
|
|
3114
3114
|
d: "M0 0h24v24H0z",
|
|
3115
3115
|
fill: "none"
|
|
3116
|
-
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8,
|
|
3117
|
-
s("span",
|
|
3116
|
+
}), s("path", { d: "M15 6l-6 6l6 6" })], -1)]], 8, Hr),
|
|
3117
|
+
s("span", Ur, N(v.value) + " to " + N(y.value), 1),
|
|
3118
3118
|
s("button", {
|
|
3119
3119
|
class: "next-page g-pagination-button",
|
|
3120
3120
|
type: "button",
|
|
@@ -3136,7 +3136,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3136
3136
|
stroke: "none",
|
|
3137
3137
|
d: "M0 0h24v24H0z",
|
|
3138
3138
|
fill: "none"
|
|
3139
|
-
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8,
|
|
3139
|
+
}), s("path", { d: "M9 6l6 6l-6 6" })], -1)]], 8, Wr),
|
|
3140
3140
|
s("button", {
|
|
3141
3141
|
class: "last-page g-pagination-button",
|
|
3142
3142
|
type: "button",
|
|
@@ -3162,8 +3162,8 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3162
3162
|
}),
|
|
3163
3163
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3164
3164
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3165
|
-
], -1)]], 8,
|
|
3166
|
-
s("div",
|
|
3165
|
+
], -1)]], 8, Gr),
|
|
3166
|
+
s("div", Kr, [s("div", qr, [s("select", {
|
|
3167
3167
|
id: L(d),
|
|
3168
3168
|
class: "page-size-select",
|
|
3169
3169
|
value: m.value,
|
|
@@ -3171,7 +3171,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3171
3171
|
}, [(w(!0), o(e, null, O(h.value, (e) => (w(), o("option", {
|
|
3172
3172
|
key: e,
|
|
3173
3173
|
value: e
|
|
3174
|
-
}, N(e), 9,
|
|
3174
|
+
}, N(e), 9, Yr))), 128))], 40, Jr), n[10] ||= s("span", {
|
|
3175
3175
|
class: "page-size-select-caret",
|
|
3176
3176
|
"aria-hidden": "true"
|
|
3177
3177
|
}, [s("svg", {
|
|
@@ -3185,8 +3185,8 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3185
3185
|
})])], -1)]), s("label", {
|
|
3186
3186
|
class: "page-size-label",
|
|
3187
3187
|
for: L(d)
|
|
3188
|
-
}, " per page ", 8,
|
|
3189
|
-
s("div",
|
|
3188
|
+
}, " per page ", 8, Xr)]),
|
|
3189
|
+
s("div", Zr, [l(ct, null, {
|
|
3190
3190
|
trigger: G(({ toggle: e }) => [s("button", {
|
|
3191
3191
|
type: "button",
|
|
3192
3192
|
class: "g-pagination-button g-pagination-overflow-trigger",
|
|
@@ -3201,17 +3201,17 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3201
3201
|
}, [s("path", {
|
|
3202
3202
|
fill: "currentColor",
|
|
3203
3203
|
d: "M96 320C96 284.7 124.7 256 160 256C195.3 256 224 284.7 224 320C224 355.3 195.3 384 160 384C124.7 384 96 355.3 96 320zM256 320C256 284.7 284.7 256 320 256C355.3 256 384 284.7 384 320C384 355.3 355.3 384 320 384C284.7 384 256 355.3 256 320zM480 256C515.3 256 544 284.7 544 320C544 355.3 515.3 384 480 384C444.7 384 416 355.3 416 320C416 284.7 444.7 256 480 256z"
|
|
3204
|
-
})], -1)]], 8,
|
|
3205
|
-
default: G(() => [s("div",
|
|
3204
|
+
})], -1)]], 8, Qr)]),
|
|
3205
|
+
default: G(() => [s("div", $r, [
|
|
3206
3206
|
n[15] ||= s("h2", {
|
|
3207
3207
|
class: "g-pagination-overflow-title",
|
|
3208
3208
|
tabindex: "-1",
|
|
3209
3209
|
"popover-focus": ""
|
|
3210
3210
|
}, " Pagination options ", -1),
|
|
3211
|
-
s("div",
|
|
3211
|
+
s("div", ei, [s("label", {
|
|
3212
3212
|
class: "page-size-label",
|
|
3213
3213
|
for: L(f)
|
|
3214
|
-
}, " Rows per page ", 8,
|
|
3214
|
+
}, " Rows per page ", 8, ti), s("div", ni, [s("select", {
|
|
3215
3215
|
id: L(f),
|
|
3216
3216
|
class: "page-size-select",
|
|
3217
3217
|
value: m.value,
|
|
@@ -3219,7 +3219,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3219
3219
|
}, [(w(!0), o(e, null, O(h.value, (e) => (w(), o("option", {
|
|
3220
3220
|
key: `overflow-${e}`,
|
|
3221
3221
|
value: e
|
|
3222
|
-
}, N(e), 9,
|
|
3222
|
+
}, N(e), 9, ii))), 128))], 40, ri), n[12] ||= s("span", {
|
|
3223
3223
|
class: "page-size-select-caret",
|
|
3224
3224
|
"aria-hidden": "true"
|
|
3225
3225
|
}, [s("svg", {
|
|
@@ -3231,7 +3231,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3231
3231
|
fill: "currentColor",
|
|
3232
3232
|
d: "M300.3 439.8C312.8 450.1 331.3 449.3 343.1 437.6L471.1 309.6C480.3 300.4 483 286.7 478 274.7C473 262.7 461.4 255 448.5 255L192.5 255C179.6 255 167.9 262.8 162.9 274.8C157.9 286.8 160.7 300.5 169.9 309.6L297.9 437.6L300.3 439.8z"
|
|
3233
3233
|
})])], -1)])]),
|
|
3234
|
-
s("div",
|
|
3234
|
+
s("div", ai, [s("button", {
|
|
3235
3235
|
type: "button",
|
|
3236
3236
|
class: "g-pagination-overflow-action",
|
|
3237
3237
|
disabled: g.value,
|
|
@@ -3257,7 +3257,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3257
3257
|
}),
|
|
3258
3258
|
s("path", { d: "M11 7l-5 5l5 5" }),
|
|
3259
3259
|
s("path", { d: "M17 7l-5 5l5 5" })
|
|
3260
|
-
])], -1), c(" First Page ", -1)]], 8,
|
|
3260
|
+
])], -1), c(" First Page ", -1)]], 8, oi), s("button", {
|
|
3261
3261
|
type: "button",
|
|
3262
3262
|
class: "g-pagination-overflow-action",
|
|
3263
3263
|
disabled: _.value,
|
|
@@ -3283,7 +3283,7 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3283
3283
|
}),
|
|
3284
3284
|
s("path", { d: "M7 7l5 5l-5 5" }),
|
|
3285
3285
|
s("path", { d: "M13 7l5 5l-5 5" })
|
|
3286
|
-
])], -1), c(" Last Page ", -1)]], 8,
|
|
3286
|
+
])], -1), c(" Last Page ", -1)]], 8, si)])
|
|
3287
3287
|
])]),
|
|
3288
3288
|
_: 1
|
|
3289
3289
|
})])
|
|
@@ -3292,48 +3292,48 @@ var Sn = ["id"], Cn = /* @__PURE__ */ u({
|
|
|
3292
3292
|
});
|
|
3293
3293
|
//#endregion
|
|
3294
3294
|
//#region src/compose/useFiltering.ts
|
|
3295
|
-
function
|
|
3295
|
+
function li(e) {
|
|
3296
3296
|
if (!(Array.isArray(e) && e.length === 0) && e !== null && e !== !1 && e !== "") return e;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function ui(e) {
|
|
3299
3299
|
return Object.fromEntries(Object.entries(e).filter(([, e]) => e && (!Array.isArray(e) || e.length > 0)));
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function di(e) {
|
|
3302
3302
|
if (e != null) return Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3304
|
+
function fi(e) {
|
|
3305
3305
|
if (e == null) return;
|
|
3306
3306
|
if (typeof e == "string") return e.includes(",") ? e.split(",") : [e];
|
|
3307
3307
|
let t = [];
|
|
3308
3308
|
for (let n of e) n !== null && t.push(n);
|
|
3309
3309
|
return t.length > 0 ? t : void 0;
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3311
|
+
function pi(e) {
|
|
3312
3312
|
return Array.isArray(e) ? [...e] : e;
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function mi(e, t) {
|
|
3315
3315
|
return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
|
|
3316
3316
|
}
|
|
3317
|
-
function
|
|
3317
|
+
function hi(e, t) {
|
|
3318
3318
|
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
3319
|
-
for (let r of n) if (!
|
|
3319
|
+
for (let r of n) if (!mi(e[r], t[r])) return !1;
|
|
3320
3320
|
return !0;
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function gi(e) {
|
|
3323
3323
|
let t = {};
|
|
3324
3324
|
for (let [n, r] of Object.entries(P(e))) Array.isArray(r) ? r.length > 0 && (t[n] = r) : t[n] = r === !0 ? "true" : r || void 0;
|
|
3325
3325
|
return t;
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function _i(e) {
|
|
3328
3328
|
let t = {};
|
|
3329
3329
|
return Object.keys(e).forEach((n) => {
|
|
3330
3330
|
let r = e[n];
|
|
3331
3331
|
r != null && r !== "" && r !== !1 && (Array.isArray(r) ? r.length > 0 && (t[n] = r.map((e) => String(e))) : t[n] = String(r));
|
|
3332
3332
|
}), t;
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function vi(e, t) {
|
|
3335
3335
|
let n = Object.keys(e), r = new Set(n.filter((t) => Array.isArray(e[t]))), i = new Set(t.booleanArrayKeys ?? []), a = (e, t) => {
|
|
3336
|
-
if (t != null) return r.has(e) ?
|
|
3336
|
+
if (t != null) return r.has(e) ? fi(t) : typeof t == "string" && t.includes(",") ? t.split(",") : pi(t);
|
|
3337
3337
|
}, o = (e) => {
|
|
3338
3338
|
let t = {};
|
|
3339
3339
|
for (let r of n) {
|
|
@@ -3341,7 +3341,7 @@ function _i(e, t) {
|
|
|
3341
3341
|
n !== void 0 && (t[r] = a(r, n));
|
|
3342
3342
|
}
|
|
3343
3343
|
return t;
|
|
3344
|
-
}, s = D(o(t.route.query)), c =
|
|
3344
|
+
}, s = D(o(t.route.query)), c = yi(e, { syncWith: s }), l = c.filters, u = (e, t) => {
|
|
3345
3345
|
let n = a(e, t);
|
|
3346
3346
|
return !i.has(e) || n === void 0 ? n : (Array.isArray(n) ? n : [n]).map((e) => {
|
|
3347
3347
|
if (e === "true") return !0;
|
|
@@ -3351,15 +3351,15 @@ function _i(e, t) {
|
|
|
3351
3351
|
return W(() => o(t.route.query), (e) => {
|
|
3352
3352
|
for (let t of n) {
|
|
3353
3353
|
let n = u(t, e[t]);
|
|
3354
|
-
|
|
3354
|
+
mi(l[t], n) || (l[t] = n);
|
|
3355
3355
|
}
|
|
3356
3356
|
}, { immediate: !0 }), W(s, (e) => {
|
|
3357
3357
|
let r = { ...t.route.query };
|
|
3358
|
-
for (let t of n) e[t] === void 0 ? delete r[t] : r[t] =
|
|
3359
|
-
|
|
3358
|
+
for (let t of n) e[t] === void 0 ? delete r[t] : r[t] = pi(e[t]);
|
|
3359
|
+
hi(t.route.query, r) || t.router.replace({ query: r });
|
|
3360
3360
|
}), c;
|
|
3361
3361
|
}
|
|
3362
|
-
function
|
|
3362
|
+
function yi(e, t = {}) {
|
|
3363
3363
|
let n = E(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, t]))), i = t.syncWith;
|
|
3364
3364
|
if (i) {
|
|
3365
3365
|
if (i.value) {
|
|
@@ -3372,13 +3372,13 @@ function vi(e, t = {}) {
|
|
|
3372
3372
|
});
|
|
3373
3373
|
}
|
|
3374
3374
|
W(n, (e) => {
|
|
3375
|
-
i.value =
|
|
3375
|
+
i.value = _i(e);
|
|
3376
3376
|
}, { deep: !0 });
|
|
3377
3377
|
}
|
|
3378
3378
|
return {
|
|
3379
3379
|
filters: n,
|
|
3380
3380
|
isFiltered: r(() => {
|
|
3381
|
-
for (let t of Object.keys(e)) if (
|
|
3381
|
+
for (let t of Object.keys(e)) if (li(n[t])) return !0;
|
|
3382
3382
|
return !1;
|
|
3383
3383
|
}),
|
|
3384
3384
|
clearFilters: () => {
|
|
@@ -3388,94 +3388,94 @@ function vi(e, t = {}) {
|
|
|
3388
3388
|
},
|
|
3389
3389
|
filteredColumns: r(() => {
|
|
3390
3390
|
let t = {};
|
|
3391
|
-
for (let r of Object.keys(e)) t[r] = !!
|
|
3391
|
+
for (let r of Object.keys(e)) t[r] = !!li(n[r]);
|
|
3392
3392
|
return t;
|
|
3393
3393
|
})
|
|
3394
3394
|
};
|
|
3395
3395
|
}
|
|
3396
3396
|
//#endregion
|
|
3397
3397
|
//#region src/components/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
3398
|
-
var
|
|
3398
|
+
var bi = { class: "g-table-outer-wrap" }, xi = {
|
|
3399
3399
|
key: 0,
|
|
3400
3400
|
class: "g-table-controls"
|
|
3401
|
-
},
|
|
3401
|
+
}, Si = { class: "g-table-control-actions" }, Ci = {
|
|
3402
3402
|
key: 0,
|
|
3403
3403
|
class: "g-sort-builder-wrap"
|
|
3404
|
-
},
|
|
3404
|
+
}, wi = {
|
|
3405
3405
|
key: 0,
|
|
3406
3406
|
class: "g-sort-builder-count"
|
|
3407
|
-
},
|
|
3407
|
+
}, Ti = {
|
|
3408
3408
|
key: 0,
|
|
3409
3409
|
class: "g-sort-builder-list"
|
|
3410
|
-
},
|
|
3410
|
+
}, Ei = ["data-sort-row-key", "aria-label"], Di = {
|
|
3411
3411
|
class: "g-sort-builder-rule-priority",
|
|
3412
3412
|
"aria-hidden": "true"
|
|
3413
|
-
},
|
|
3413
|
+
}, Oi = { class: "g-sort-builder-rule-label" }, ki = ["aria-label", "onClick"], Ai = { class: "g-visually-hidden" }, ji = {
|
|
3414
3414
|
class: "sort-indicator",
|
|
3415
3415
|
"aria-hidden": "true"
|
|
3416
|
-
},
|
|
3416
|
+
}, Mi = ["aria-label", "onClick"], Ni = {
|
|
3417
3417
|
key: 1,
|
|
3418
3418
|
class: "g-sort-builder-empty"
|
|
3419
|
-
},
|
|
3419
|
+
}, Pi = {
|
|
3420
3420
|
key: 2,
|
|
3421
3421
|
class: "g-sort-builder-add"
|
|
3422
|
-
},
|
|
3422
|
+
}, Fi = { class: "g-sort-builder-add-list" }, Ii = { class: "g-sort-builder-add-name" }, Li = { class: "g-sort-builder-add-actions" }, Ri = ["aria-label", "onClick"], zi = ["aria-label", "onClick"], Bi = {
|
|
3423
3423
|
class: "sort-indicator",
|
|
3424
3424
|
"aria-hidden": "true"
|
|
3425
|
-
},
|
|
3425
|
+
}, Vi = {
|
|
3426
3426
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3427
3427
|
viewBox: "0 0 640 640",
|
|
3428
3428
|
height: "1.25em",
|
|
3429
3429
|
style: { transform: "rotate(180deg)" }
|
|
3430
|
-
},
|
|
3430
|
+
}, Hi = {
|
|
3431
3431
|
key: 1,
|
|
3432
3432
|
class: "g-column-visibility-wrap"
|
|
3433
|
-
},
|
|
3433
|
+
}, Ui = {
|
|
3434
3434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3435
3435
|
viewBox: "0 0 640 640",
|
|
3436
3436
|
height: "1.5em",
|
|
3437
3437
|
style: { transform: "rotate(90deg)" },
|
|
3438
3438
|
"aria-hidden": "true"
|
|
3439
|
-
},
|
|
3439
|
+
}, Wi = ["aria-labelledby"], Gi = { class: "g-column-visibility-header" }, Ki = ["id"], qi = { class: "g-column-visibility-legend-action" }, Ji = { class: "g-column-visibility-list" }, Yi = ["checked", "onChange"], Xi = {
|
|
3440
3440
|
key: 2,
|
|
3441
3441
|
class: "g-table-custom-controls"
|
|
3442
|
-
},
|
|
3442
|
+
}, Zi = { class: "g-clear-filters-wrap" }, Qi = {
|
|
3443
3443
|
key: 0,
|
|
3444
3444
|
class: "pagination"
|
|
3445
|
-
},
|
|
3445
|
+
}, $i = { class: "g-table-controls-right" }, ea = { class: "g-result-count" }, ta = ["aria-label", "aria-rowcount"], na = { key: 0 }, ra = ["data-column-key"], ia = { class: "g-table-head" }, aa = { "aria-rowindex": "1" }, oa = {
|
|
3446
3446
|
key: 0,
|
|
3447
3447
|
scope: "col",
|
|
3448
3448
|
class: "g-th g-th-checkbox"
|
|
3449
|
-
},
|
|
3449
|
+
}, sa = [
|
|
3450
3450
|
"checked",
|
|
3451
3451
|
"indeterminate",
|
|
3452
3452
|
"aria-label"
|
|
3453
|
-
],
|
|
3453
|
+
], ca = ["id", "aria-sort"], la = { class: "th-inner" }, ua = ["onClick"], da = {
|
|
3454
3454
|
key: 0,
|
|
3455
3455
|
class: "sort-indicator",
|
|
3456
3456
|
"aria-hidden": "true"
|
|
3457
|
-
},
|
|
3457
|
+
}, fa = {
|
|
3458
3458
|
key: 1,
|
|
3459
3459
|
class: "g-visually-hidden"
|
|
3460
|
-
},
|
|
3460
|
+
}, pa = {
|
|
3461
3461
|
key: 1,
|
|
3462
3462
|
class: "g-column-head"
|
|
3463
|
-
},
|
|
3463
|
+
}, ma = ["onClick", "aria-label"], ha = {
|
|
3464
3464
|
key: 1,
|
|
3465
3465
|
class: "g-filter-search",
|
|
3466
3466
|
role: "search"
|
|
3467
|
-
},
|
|
3467
|
+
}, ga = [
|
|
3468
3468
|
"onUpdate:modelValue",
|
|
3469
3469
|
"placeholder",
|
|
3470
3470
|
"aria-label"
|
|
3471
|
-
],
|
|
3471
|
+
], _a = { key: 2 }, va = { class: "g-filter-toggle" }, ya = [
|
|
3472
3472
|
"onUpdate:modelValue",
|
|
3473
3473
|
"id",
|
|
3474
3474
|
"aria-describedby"
|
|
3475
|
-
],
|
|
3475
|
+
], ba = ["for"], xa = ["id"], Sa = {
|
|
3476
3476
|
key: 4,
|
|
3477
3477
|
class: "g-multi-select"
|
|
3478
|
-
},
|
|
3478
|
+
}, Ca = [
|
|
3479
3479
|
"data-column-key",
|
|
3480
3480
|
"aria-label",
|
|
3481
3481
|
"aria-valuemax",
|
|
@@ -3483,10 +3483,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3483
3483
|
"aria-valuetext",
|
|
3484
3484
|
"onKeydown",
|
|
3485
3485
|
"onPointerdown"
|
|
3486
|
-
],
|
|
3486
|
+
], wa = {
|
|
3487
3487
|
key: 1,
|
|
3488
3488
|
class: "g-bulk-actions-toolbar"
|
|
3489
|
-
},
|
|
3489
|
+
}, Ta = { class: "g-selected-count" }, Ea = { class: "g-bulk-actions" }, Da = /* @__PURE__ */ u({
|
|
3490
3490
|
__name: "GTable",
|
|
3491
3491
|
props: /*@__PURE__*/ m({
|
|
3492
3492
|
label: {},
|
|
@@ -3544,7 +3544,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3544
3544
|
]),
|
|
3545
3545
|
setup(t, { emit: n }) {
|
|
3546
3546
|
let u = B(t, "sort"), f = B(t, "filter"), p = B(t, "columnState"), m = B(t, "selectedRows"), h = t, v = n, b = h.filtering;
|
|
3547
|
-
b ||=
|
|
3547
|
+
b ||= yi({});
|
|
3548
3548
|
let { filters: C, filteredColumns: T, isFiltered: E, clearFilters: A } = b, j = r(() => h.data.map((e) => e.key)), M = r(() => m.value.filter((e) => j.value.includes(e))), F = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : M.value.length === j.value.length), I = r(() => !h.bulkSelectionEnabled || h.data.length === 0 ? !1 : M.value.length > 0 && M.value.length < j.value.length), R = D(null);
|
|
3549
3549
|
function H() {
|
|
3550
3550
|
if (F.value) m.value = m.value.filter((e) => !j.value.includes(e));
|
|
@@ -3778,10 +3778,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3778
3778
|
}), S(() => {
|
|
3779
3779
|
h.rowClickable && h.bulkSelectionEnabled && console.warn("GTable: rowClickable and bulkSelectionEnabled cannot be used together. rowClickable will be ignored.");
|
|
3780
3780
|
for (let e of h.columns) e.editable && e.display && console.warn(`GTable: Column "${String(e.key)}" has both 'editable' and 'display' configured. 'display' will be ignored.`);
|
|
3781
|
-
}), (n, r) => (w(), o("div",
|
|
3782
|
-
nt.value ? (w(), o("div",
|
|
3783
|
-
s("div",
|
|
3784
|
-
me.value ? (w(), o("div",
|
|
3781
|
+
}), (n, r) => (w(), o("div", bi, [
|
|
3782
|
+
nt.value ? (w(), o("div", xi, [
|
|
3783
|
+
s("div", Si, [
|
|
3784
|
+
me.value ? (w(), o("div", Ci, [l(ct, null, {
|
|
3785
3785
|
trigger: G(({ toggle: e }) => [l(Q, {
|
|
3786
3786
|
size: "small",
|
|
3787
3787
|
class: _(["g-sort-builder-trigger", { "g-sort-builder-trigger--active": X.value.length > 0 }]),
|
|
@@ -3797,7 +3797,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3797
3797
|
}, [s("path", {
|
|
3798
3798
|
fill: "currentColor",
|
|
3799
3799
|
d: "M130.4 268.2C135.4 280.2 147 288 160 288L480 288C492.9 288 504.6 280.2 509.6 268.2C514.6 256.2 511.8 242.5 502.7 233.3L342.7 73.3C330.2 60.8 309.9 60.8 297.4 73.3L137.4 233.3C128.2 242.5 125.5 256.2 130.5 268.2zM130.4 371.7C125.4 383.7 128.2 397.4 137.3 406.6L297.3 566.6C309.8 579.1 330.1 579.1 342.6 566.6L502.6 406.6C511.8 397.4 514.5 383.7 509.5 371.7C504.5 359.7 492.9 352 480 352L160 352C147.1 352 135.4 359.8 130.4 371.8z"
|
|
3800
|
-
})], -1), X.value.length ? (w(), o("span",
|
|
3800
|
+
})], -1), X.value.length ? (w(), o("span", wi, N(X.value.length), 1)) : a("", !0)]),
|
|
3801
3801
|
_: 1
|
|
3802
3802
|
}, 8, ["class", "onClick"])]),
|
|
3803
3803
|
default: G(() => [s("fieldset", {
|
|
@@ -3809,21 +3809,21 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3809
3809
|
}, [
|
|
3810
3810
|
r[8] ||= s("legend", { class: "g-sort-builder-legend" }, " Sort order ", -1),
|
|
3811
3811
|
r[9] ||= s("p", { class: "g-sort-builder-help" }, " Click a column header to change the primary sort. Use Shift-click as a shortcut to add or update secondary sorts. ", -1),
|
|
3812
|
-
X.value.length ? (w(), o("ol",
|
|
3812
|
+
X.value.length ? (w(), o("ol", Ti, [(w(!0), o(e, null, O(X.value, (e, t) => (w(), o("li", {
|
|
3813
3813
|
key: e.key,
|
|
3814
3814
|
class: "g-sort-builder-rule",
|
|
3815
3815
|
tabindex: "-1",
|
|
3816
3816
|
"data-sort-row-key": String(e.key),
|
|
3817
3817
|
"aria-label": `${ve(e.key)} ${xe(e.order)} sort, priority ${t + 1}`
|
|
3818
3818
|
}, [
|
|
3819
|
-
s("span",
|
|
3820
|
-
s("span",
|
|
3819
|
+
s("span", Di, N(t + 1), 1),
|
|
3820
|
+
s("span", Oi, N(ve(e.key)), 1),
|
|
3821
3821
|
s("button", {
|
|
3822
3822
|
type: "button",
|
|
3823
3823
|
class: "g-sort-builder-direction",
|
|
3824
3824
|
"aria-label": `Toggle ${ve(e.key)} sort direction`,
|
|
3825
3825
|
onClick: (t) => Ee(e.key)
|
|
3826
|
-
}, [s("span",
|
|
3826
|
+
}, [s("span", Ai, N(xe(e.order)), 1), s("span", ji, [(w(), o("svg", {
|
|
3827
3827
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3828
3828
|
viewBox: "0 0 640 640",
|
|
3829
3829
|
height: "1.25em",
|
|
@@ -3831,18 +3831,18 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3831
3831
|
}, [...r[2] ||= [s("path", {
|
|
3832
3832
|
fill: "currentColor",
|
|
3833
3833
|
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"
|
|
3834
|
-
}, null, -1)]], 4))])], 8,
|
|
3834
|
+
}, null, -1)]], 4))])], 8, ki),
|
|
3835
3835
|
s("button", {
|
|
3836
3836
|
type: "button",
|
|
3837
3837
|
class: "g-sort-builder-remove",
|
|
3838
3838
|
"aria-label": `Remove ${ve(e.key)} sort`,
|
|
3839
3839
|
onClick: (t) => De(e.key)
|
|
3840
|
-
}, " Remove ", 8,
|
|
3841
|
-
], 8,
|
|
3842
|
-
he.value.length ? (w(), o("div",
|
|
3840
|
+
}, " Remove ", 8, Mi)
|
|
3841
|
+
], 8, Ei))), 128))])) : (w(), o("p", Ni, " No active sort rules. ")),
|
|
3842
|
+
he.value.length ? (w(), o("div", Pi, [r[6] ||= s("p", { class: "g-sort-builder-add-label" }, " Add sort column ", -1), s("ul", Fi, [(w(!0), o(e, null, O(he.value, (e) => (w(), o("li", {
|
|
3843
3843
|
key: e.key,
|
|
3844
3844
|
class: "g-sort-builder-add-item"
|
|
3845
|
-
}, [s("span",
|
|
3845
|
+
}, [s("span", Ii, N(e.label), 1), s("div", Li, [s("button", {
|
|
3846
3846
|
type: "button",
|
|
3847
3847
|
class: "g-sort-builder-direction",
|
|
3848
3848
|
"aria-label": `Add ${e.label} ascending sort`,
|
|
@@ -3857,15 +3857,15 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3857
3857
|
}, [s("path", {
|
|
3858
3858
|
fill: "currentColor",
|
|
3859
3859
|
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"
|
|
3860
|
-
})])], -1)]], 8,
|
|
3860
|
+
})])], -1)]], 8, Ri), s("button", {
|
|
3861
3861
|
type: "button",
|
|
3862
3862
|
class: "g-sort-builder-direction",
|
|
3863
3863
|
"aria-label": `Add ${e.label} descending sort`,
|
|
3864
3864
|
onClick: (t) => Te(e.key, -1)
|
|
3865
|
-
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span",
|
|
3865
|
+
}, [r[5] ||= s("span", { class: "g-visually-hidden" }, " Add descending sort ", -1), s("span", Bi, [(w(), o("svg", Vi, [...r[4] ||= [s("path", {
|
|
3866
3866
|
fill: "currentColor",
|
|
3867
3867
|
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"
|
|
3868
|
-
}, null, -1)]]))])], 8,
|
|
3868
|
+
}, null, -1)]]))])], 8, zi)])]))), 128))])])) : a("", !0),
|
|
3869
3869
|
X.value.length ? (w(), i(Q, {
|
|
3870
3870
|
key: 3,
|
|
3871
3871
|
outlined: "",
|
|
@@ -3879,14 +3879,14 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3879
3879
|
], 512)]),
|
|
3880
3880
|
_: 1
|
|
3881
3881
|
})])) : a("", !0),
|
|
3882
|
-
Ye.value ? (w(), o("div",
|
|
3882
|
+
Ye.value ? (w(), o("div", Hi, [l(ct, null, {
|
|
3883
3883
|
trigger: G(({ toggle: e }) => [l(Q, {
|
|
3884
3884
|
size: "small",
|
|
3885
3885
|
class: _(["g-column-visibility-trigger", { "g-column-visibility-trigger--active": Je.value }]),
|
|
3886
3886
|
"aria-label": "Choose visible columns",
|
|
3887
3887
|
onClick: e
|
|
3888
3888
|
}, {
|
|
3889
|
-
default: G(() => [(w(), o("svg",
|
|
3889
|
+
default: G(() => [(w(), o("svg", Ui, [...r[10] ||= [s("path", {
|
|
3890
3890
|
fill: "currentColor",
|
|
3891
3891
|
d: "M64 160C64 142.3 78.3 128 96 128L480 128C497.7 128 512 142.3 512 160C512 177.7 497.7 192 480 192L96 192C78.3 192 64 177.7 64 160zM128 320C128 302.3 142.3 288 160 288L544 288C561.7 288 576 302.3 576 320C576 337.7 561.7 352 544 352L160 352C142.3 352 128 337.7 128 320zM512 480C512 497.7 497.7 512 480 512L96 512C78.3 512 64 497.7 64 480C64 462.3 78.3 448 96 448L480 448C497.7 448 512 462.3 512 480z"
|
|
3892
3892
|
}, null, -1)]]))]),
|
|
@@ -3895,10 +3895,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3895
3895
|
default: G(() => [s("fieldset", {
|
|
3896
3896
|
class: "g-column-visibility-popover",
|
|
3897
3897
|
"aria-labelledby": `${L(J)}-column-visibility-heading`
|
|
3898
|
-
}, [s("div",
|
|
3898
|
+
}, [s("div", Gi, [s("span", {
|
|
3899
3899
|
id: `${L(J)}-column-visibility-heading`,
|
|
3900
3900
|
class: "g-column-visibility-heading"
|
|
3901
|
-
}, " Shown columns ", 8,
|
|
3901
|
+
}, " Shown columns ", 8, Ki), s("span", qi, [l(Q, {
|
|
3902
3902
|
text: "",
|
|
3903
3903
|
size: "small",
|
|
3904
3904
|
class: _(["g-column-visibility-show-all", { "g-column-visibility-show-all--hidden": !Je.value }]),
|
|
@@ -3906,18 +3906,18 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3906
3906
|
}, {
|
|
3907
3907
|
default: G(() => [...r[11] ||= [c(" Show All ", -1)]]),
|
|
3908
3908
|
_: 1
|
|
3909
|
-
}, 8, ["class"])])]), s("div",
|
|
3909
|
+
}, 8, ["class"])])]), s("div", Ji, [(w(!0), o(e, null, O(t.columns, (e) => (w(), o("label", {
|
|
3910
3910
|
key: e.key,
|
|
3911
3911
|
class: "g-column-visibility-option"
|
|
3912
3912
|
}, [s("input", {
|
|
3913
3913
|
checked: Qe(e),
|
|
3914
3914
|
type: "checkbox",
|
|
3915
3915
|
onChange: (t) => $e(e, t.target.checked)
|
|
3916
|
-
}, null, 40,
|
|
3916
|
+
}, null, 40, Yi), s("span", null, N(e.label), 1)]))), 128))])], 8, Wi)]),
|
|
3917
3917
|
_: 1
|
|
3918
3918
|
})])) : a("", !0),
|
|
3919
|
-
Xe.value ? (w(), o("div",
|
|
3920
|
-
s("div",
|
|
3919
|
+
Xe.value ? (w(), o("div", Xi, [k(n.$slots, "controls")])) : a("", !0),
|
|
3920
|
+
s("div", Zi, [L(E) ? (w(), i(Q, {
|
|
3921
3921
|
key: 0,
|
|
3922
3922
|
outlined: "",
|
|
3923
3923
|
size: "small",
|
|
@@ -3937,7 +3937,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3937
3937
|
_: 1
|
|
3938
3938
|
}, 8, ["onClick"])) : a("", !0)])
|
|
3939
3939
|
]),
|
|
3940
|
-
tt.value ? (w(), o("div",
|
|
3940
|
+
tt.value ? (w(), o("div", Qi, [l(ci, {
|
|
3941
3941
|
start: t.startIndex,
|
|
3942
3942
|
"page-size": t.pageSize,
|
|
3943
3943
|
"page-sizes": t.pageSizes,
|
|
@@ -3950,7 +3950,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3950
3950
|
"page-sizes",
|
|
3951
3951
|
"total"
|
|
3952
3952
|
])])) : a("", !0),
|
|
3953
|
-
s("div",
|
|
3953
|
+
s("div", $i, [s("span", ea, N(Ze.value) + " results", 1), k(n.$slots, "right-controls")])
|
|
3954
3954
|
])) : a("", !0),
|
|
3955
3955
|
s("div", {
|
|
3956
3956
|
ref_key: "tableWrapRef",
|
|
@@ -3964,19 +3964,19 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3964
3964
|
"aria-label": t.label,
|
|
3965
3965
|
"aria-rowcount": Ze.value
|
|
3966
3966
|
}, [
|
|
3967
|
-
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col",
|
|
3967
|
+
s("colgroup", null, [t.bulkSelectionEnabled ? (w(), o("col", na)) : a("", !0), (w(!0), o(e, null, O(Ke.value, (e) => (w(), o("col", {
|
|
3968
3968
|
key: e.key,
|
|
3969
3969
|
"data-column-key": String(e.key),
|
|
3970
3970
|
style: y(He(e))
|
|
3971
|
-
}, null, 12,
|
|
3972
|
-
s("thead",
|
|
3971
|
+
}, null, 12, ra))), 128))]),
|
|
3972
|
+
s("thead", ia, [s("tr", aa, [t.bulkSelectionEnabled ? (w(), o("th", oa, [s("input", {
|
|
3973
3973
|
type: "checkbox",
|
|
3974
3974
|
checked: F.value,
|
|
3975
3975
|
indeterminate: I.value,
|
|
3976
3976
|
onChange: H,
|
|
3977
3977
|
"aria-label": F.value ? "Deselect all rows" : "Select all rows",
|
|
3978
3978
|
class: "g-bulk-select-checkbox"
|
|
3979
|
-
}, null, 40,
|
|
3979
|
+
}, null, 40, sa)])) : a("", !0), (w(!0), o(e, null, O(Ke.value, (e) => (w(), o("th", {
|
|
3980
3980
|
key: e.key,
|
|
3981
3981
|
id: `${L(J)}-th-${String(e.key)}`,
|
|
3982
3982
|
"aria-sort": ye(e.key),
|
|
@@ -3987,14 +3987,14 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
3987
3987
|
{ filtered: L(T)[e.key] }
|
|
3988
3988
|
]),
|
|
3989
3989
|
scope: "col"
|
|
3990
|
-
}, [s("div",
|
|
3990
|
+
}, [s("div", la, [e.sortable ? (w(), o("button", {
|
|
3991
3991
|
key: 0,
|
|
3992
3992
|
type: "button",
|
|
3993
3993
|
class: "g-column-head",
|
|
3994
3994
|
onClick: (t) => we(e, t.shiftKey)
|
|
3995
3995
|
}, [
|
|
3996
3996
|
c(N(e.label) + " ", 1),
|
|
3997
|
-
ge(e.key) === -1 ? a("", !0) : (w(), o("span",
|
|
3997
|
+
ge(e.key) === -1 ? a("", !0) : (w(), o("span", da, [(w(), o("svg", {
|
|
3998
3998
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3999
3999
|
viewBox: "0 0 640 640",
|
|
4000
4000
|
height: "1.5em",
|
|
@@ -4003,8 +4003,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4003
4003
|
fill: "currentColor",
|
|
4004
4004
|
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"
|
|
4005
4005
|
}, null, -1)]], 4))])),
|
|
4006
|
-
ge(e.key) === -1 ? a("", !0) : (w(), o("span",
|
|
4007
|
-
], 8,
|
|
4006
|
+
ge(e.key) === -1 ? a("", !0) : (w(), o("span", fa, N(be(e.key)), 1))
|
|
4007
|
+
], 8, ua)) : (w(), o("span", pa, N(e.label), 1)), e.filter ? (w(), i(ct, { key: 2 }, {
|
|
4008
4008
|
trigger: G(({ toggle: t }) => [s("button", {
|
|
4009
4009
|
onClick: K(t, ["stop"]),
|
|
4010
4010
|
"aria-label": L(T)[e.key] ? "Column Filtered" : "Filter Column",
|
|
@@ -4018,7 +4018,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4018
4018
|
}, [s("path", {
|
|
4019
4019
|
fill: "currentColor",
|
|
4020
4020
|
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"
|
|
4021
|
-
})], -1)]], 10,
|
|
4021
|
+
})], -1)]], 10, ma)]),
|
|
4022
4022
|
default: G(() => [e.filter.type === "select" ? (w(), i(Jt, {
|
|
4023
4023
|
key: 0,
|
|
4024
4024
|
modelValue: f.value[e.key],
|
|
@@ -4034,7 +4034,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4034
4034
|
"onUpdate:modelValue",
|
|
4035
4035
|
"options",
|
|
4036
4036
|
"search-description"
|
|
4037
|
-
])) : e.filter.type === "search" ? (w(), o("div",
|
|
4037
|
+
])) : e.filter.type === "search" ? (w(), o("div", ha, [r[15] ||= s("span", {
|
|
4038
4038
|
class: "g-filter-search-icon",
|
|
4039
4039
|
"aria-hidden": "true"
|
|
4040
4040
|
}, [s("svg", {
|
|
@@ -4050,20 +4050,20 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4050
4050
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
4051
4051
|
placeholder: e.filter.placeholder,
|
|
4052
4052
|
"aria-label": `Search ${e.label}`
|
|
4053
|
-
}, null, 8,
|
|
4053
|
+
}, null, 8, ga), [[ee, f.value[e.key]]])])) : e.filter.type === "toggle" ? (w(), o("div", _a, [s("div", va, [
|
|
4054
4054
|
re(s("input", {
|
|
4055
4055
|
type: "checkbox",
|
|
4056
4056
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
4057
4057
|
id: `${L(J)}-filter-${String(e.key)}`,
|
|
4058
4058
|
"aria-describedby": e.filter.description ? `${L(J)}-filter-description-${String(e.key)}` : void 0
|
|
4059
|
-
}, null, 8,
|
|
4060
|
-
s("label", { for: `${L(J)}-filter-${String(e.key)}` }, N(e.filter.label), 9,
|
|
4059
|
+
}, null, 8, ya), [[U, f.value[e.key]]]),
|
|
4060
|
+
s("label", { for: `${L(J)}-filter-${String(e.key)}` }, N(e.filter.label), 9, ba),
|
|
4061
4061
|
e.filter.description ? (w(), o("span", {
|
|
4062
4062
|
key: 0,
|
|
4063
4063
|
class: "g-filter-description",
|
|
4064
4064
|
id: `${L(J)}-filter-description-${String(e.key)}`
|
|
4065
|
-
}, N(e.filter.description), 9,
|
|
4066
|
-
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(
|
|
4065
|
+
}, N(e.filter.description), 9, xa)) : a("", !0)
|
|
4066
|
+
])])) : e.filter.type === "multi-select" && e.filter.searchable ? (w(), i(Or, {
|
|
4067
4067
|
key: 3,
|
|
4068
4068
|
modelValue: f.value[e.key],
|
|
4069
4069
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
@@ -4078,7 +4078,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4078
4078
|
"options",
|
|
4079
4079
|
"placeholder",
|
|
4080
4080
|
"search-description"
|
|
4081
|
-
])) : e.filter.type === "multi-select" ? (w(), o("div",
|
|
4081
|
+
])) : e.filter.type === "multi-select" ? (w(), o("div", Sa, [l(zr, {
|
|
4082
4082
|
modelValue: f.value[e.key],
|
|
4083
4083
|
"onUpdate:modelValue": (t) => f.value[e.key] = t,
|
|
4084
4084
|
options: rt(e),
|
|
@@ -4114,8 +4114,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4114
4114
|
onClick: r[0] ||= K(() => {}, ["stop", "prevent"]),
|
|
4115
4115
|
onKeydown: (t) => Ve(t, e.key),
|
|
4116
4116
|
onPointerdown: (t) => Be(t, e.key)
|
|
4117
|
-
}, null, 42,
|
|
4118
|
-
l(
|
|
4117
|
+
}, null, 42, Ca)) : a("", !0)], 10, ca))), 128))])]),
|
|
4118
|
+
l(fr, {
|
|
4119
4119
|
data: t.data,
|
|
4120
4120
|
columns: Ke.value,
|
|
4121
4121
|
"group-by": t.groupBy,
|
|
@@ -4143,8 +4143,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4143
4143
|
"table-id",
|
|
4144
4144
|
"change-tracker"
|
|
4145
4145
|
])
|
|
4146
|
-
], 10,
|
|
4147
|
-
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div",
|
|
4146
|
+
], 10, ta)], 512),
|
|
4147
|
+
t.bulkSelectionEnabled && m.value.length > 0 ? (w(), o("div", wa, [s("span", Ta, N(m.value.length) + " row" + N(m.value.length === 1 ? "" : "s") + " selected", 1), s("ul", Ea, [(w(!0), o(e, null, O(t.bulkActions, (e) => (w(), o("li", { key: e.id }, [l(Q, {
|
|
4148
4148
|
theme: e.theme || "accent",
|
|
4149
4149
|
onClick: (t) => ne(e.id),
|
|
4150
4150
|
size: "small"
|
|
@@ -4154,7 +4154,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4154
4154
|
}, 1032, ["theme", "onClick"])]))), 128))])])) : a("", !0)
|
|
4155
4155
|
]));
|
|
4156
4156
|
}
|
|
4157
|
-
}),
|
|
4157
|
+
}), Oa = ["id"], ka = { class: "g-modal-inner" }, Aa = { class: "g-modal-header" }, ja = ["id"], Ma = ["id"], Na = /* @__PURE__ */ u({
|
|
4158
4158
|
__name: "GModal",
|
|
4159
4159
|
props: {
|
|
4160
4160
|
label: {},
|
|
@@ -4198,12 +4198,12 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4198
4198
|
ref_key: "dialog",
|
|
4199
4199
|
ref: f,
|
|
4200
4200
|
style: { zIndex: L(y) }
|
|
4201
|
-
}), [s("div",
|
|
4201
|
+
}), [s("div", ka, [s("div", Aa, [e.hiddenLabel ? a("", !0) : (w(), o("h2", {
|
|
4202
4202
|
key: 0,
|
|
4203
4203
|
id: "modal-label-" + L(m),
|
|
4204
4204
|
class: "g-modal-label",
|
|
4205
4205
|
tabindex: "-1"
|
|
4206
|
-
}, N(e.label), 9,
|
|
4206
|
+
}, N(e.label), 9, ja)), s("button", {
|
|
4207
4207
|
class: "g-modal-close",
|
|
4208
4208
|
onClick: T,
|
|
4209
4209
|
"aria-label": "Close"
|
|
@@ -4218,36 +4218,36 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4218
4218
|
})], -1)]])]), s("div", {
|
|
4219
4219
|
id: "modal-description-" + L(m),
|
|
4220
4220
|
class: "g-modal-content"
|
|
4221
|
-
}, [k(r.$slots, "default")], 8,
|
|
4221
|
+
}, [k(r.$slots, "default")], 8, Ma)])], 16, Oa)]),
|
|
4222
4222
|
_: 3
|
|
4223
4223
|
})]));
|
|
4224
4224
|
}
|
|
4225
|
-
}),
|
|
4225
|
+
}), Pa = /* @__PURE__ */ u({
|
|
4226
4226
|
__name: "GDetailList",
|
|
4227
4227
|
props: { variant: { default: "grid" } },
|
|
4228
4228
|
setup(e) {
|
|
4229
4229
|
let t = e;
|
|
4230
4230
|
return (e, n) => (w(), o("dl", { class: _(["g-detail-list", `g-detail-list--${t.variant}`]) }, [k(e.$slots, "default")], 2));
|
|
4231
4231
|
}
|
|
4232
|
-
}),
|
|
4232
|
+
}), Fa = { class: "g-detail-list-item" }, Ia = { class: "g-detail-list-item__label" }, La = { class: "g-detail-list-item__value" }, Ra = /* @__PURE__ */ u({
|
|
4233
4233
|
__name: "GDetailListItem",
|
|
4234
4234
|
props: { label: {} },
|
|
4235
4235
|
setup(e) {
|
|
4236
|
-
return (t, n) => (w(), o("div",
|
|
4236
|
+
return (t, n) => (w(), o("div", Fa, [s("dt", Ia, [k(t.$slots, "label", {}, () => [c(N(e.label), 1)])]), s("dd", La, [k(t.$slots, "default")])]));
|
|
4237
4237
|
}
|
|
4238
|
-
}),
|
|
4238
|
+
}), za = {
|
|
4239
4239
|
key: 0,
|
|
4240
4240
|
class: "g-scroll-lock-overlay"
|
|
4241
|
-
},
|
|
4241
|
+
}, Ba = /* @__PURE__ */ u({
|
|
4242
4242
|
__name: "GOverlay",
|
|
4243
4243
|
setup(e) {
|
|
4244
4244
|
let { hasScrollLock: t } = Je();
|
|
4245
4245
|
return (e, r) => (w(), i(n, { name: "g-fade" }, {
|
|
4246
|
-
default: G(() => [L(t) ? (w(), o("div",
|
|
4246
|
+
default: G(() => [L(t) ? (w(), o("div", za)) : a("", !0)]),
|
|
4247
4247
|
_: 1
|
|
4248
4248
|
}));
|
|
4249
4249
|
}
|
|
4250
|
-
}),
|
|
4250
|
+
}), Va = { class: "popover-content" }, Ha = { class: "year-dropdown" }, Ua = { class: "month-selector" }, Wa = /* @__PURE__ */ u({
|
|
4251
4251
|
__name: "GTermSelectorControl",
|
|
4252
4252
|
props: /*@__PURE__*/ m({
|
|
4253
4253
|
termYears: { default: () => ["2026"] },
|
|
@@ -4268,7 +4268,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4268
4268
|
emits: ["update:modelValue"],
|
|
4269
4269
|
setup(e) {
|
|
4270
4270
|
let t = B(e, "modelValue");
|
|
4271
|
-
return (n, r) => (w(), o("div",
|
|
4271
|
+
return (n, r) => (w(), o("div", Va, [s("div", Ha, [l(Jt, {
|
|
4272
4272
|
modelValue: t.value.year,
|
|
4273
4273
|
"onUpdate:modelValue": r[0] ||= (e) => t.value.year = e,
|
|
4274
4274
|
options: e.termYears,
|
|
@@ -4277,7 +4277,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4277
4277
|
"modelValue",
|
|
4278
4278
|
"options",
|
|
4279
4279
|
"label"
|
|
4280
|
-
])]), s("div",
|
|
4280
|
+
])]), s("div", Ua, [l(Ct, {
|
|
4281
4281
|
modelValue: t.value.name,
|
|
4282
4282
|
"onUpdate:modelValue": r[1] ||= (e) => t.value.name = e,
|
|
4283
4283
|
options: e.termNames,
|
|
@@ -4289,10 +4289,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4289
4289
|
"label"
|
|
4290
4290
|
])])]));
|
|
4291
4291
|
}
|
|
4292
|
-
}),
|
|
4292
|
+
}), Ga = { class: "g-term-selector" }, Ka = { class: "g-term-label" }, qa = {
|
|
4293
4293
|
class: "g-popover-title",
|
|
4294
4294
|
tabindex: "-1"
|
|
4295
|
-
},
|
|
4295
|
+
}, Ja = /* @__PURE__ */ u({
|
|
4296
4296
|
__name: "GTermSelector",
|
|
4297
4297
|
props: /*@__PURE__*/ m({
|
|
4298
4298
|
heading: { default: "Period Selection" },
|
|
@@ -4314,7 +4314,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4314
4314
|
emits: ["update:modelValue"],
|
|
4315
4315
|
setup(e) {
|
|
4316
4316
|
let t = B(e, "modelValue");
|
|
4317
|
-
return (n, r) => (w(), o("div",
|
|
4317
|
+
return (n, r) => (w(), o("div", Ga, [l(ct, null, {
|
|
4318
4318
|
trigger: G(({ toggle: e }) => [l(Q, {
|
|
4319
4319
|
class: "g-term-selector-button",
|
|
4320
4320
|
theme: "none",
|
|
@@ -4327,7 +4327,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4327
4327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4328
4328
|
viewBox: "0 0 640 640"
|
|
4329
4329
|
}, [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),
|
|
4330
|
-
s("span",
|
|
4330
|
+
s("span", Ka, N(t.value?.name) + " " + N(t.value?.year), 1),
|
|
4331
4331
|
r[1] ||= s("span", { class: "g-caret" }, [s("svg", {
|
|
4332
4332
|
role: "none",
|
|
4333
4333
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4336,15 +4336,15 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4336
4336
|
]),
|
|
4337
4337
|
_: 1
|
|
4338
4338
|
}, 8, ["onClick"])]),
|
|
4339
|
-
default: G(() => [s("h2",
|
|
4339
|
+
default: G(() => [s("h2", qa, N(e.heading), 1), l(Wa, v(f(n.$props)), null, 16)]),
|
|
4340
4340
|
_: 1
|
|
4341
4341
|
})]));
|
|
4342
4342
|
}
|
|
4343
|
-
}),
|
|
4343
|
+
}), Ya = { class: "g-user-menu" }, Xa = [
|
|
4344
4344
|
"aria-label",
|
|
4345
4345
|
"aria-expanded",
|
|
4346
4346
|
"onClick"
|
|
4347
|
-
],
|
|
4347
|
+
], Za = { class: "g-user-menu__popover" }, Qa = { class: "g-user-menu__list" }, $a = /* @__PURE__ */ u({
|
|
4348
4348
|
__name: "GUserMenu",
|
|
4349
4349
|
props: {
|
|
4350
4350
|
initials: {},
|
|
@@ -4356,7 +4356,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4356
4356
|
let n = `${z()}-email`, r = D(!1), a = H("emailHeading");
|
|
4357
4357
|
d()?.appContext?.components?.RouterLink;
|
|
4358
4358
|
let c = V();
|
|
4359
|
-
return (u, d) => (w(), o("div",
|
|
4359
|
+
return (u, d) => (w(), o("div", Ya, [l(ct, {
|
|
4360
4360
|
modelValue: r.value,
|
|
4361
4361
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
4362
4362
|
minimal: ""
|
|
@@ -4368,8 +4368,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4368
4368
|
"aria-expanded": r.value,
|
|
4369
4369
|
"aria-haspopup": "menu",
|
|
4370
4370
|
onClick: e
|
|
4371
|
-
}, N(t.initials), 13,
|
|
4372
|
-
default: G(() => [s("div",
|
|
4371
|
+
}, N(t.initials), 13, Xa)]),
|
|
4372
|
+
default: G(() => [s("div", Za, [s("h2", {
|
|
4373
4373
|
id: n,
|
|
4374
4374
|
ref_key: "emailHeading",
|
|
4375
4375
|
ref: a,
|
|
@@ -4378,11 +4378,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4378
4378
|
}, N(t.email), 513), s("nav", {
|
|
4379
4379
|
class: "g-user-menu__nav",
|
|
4380
4380
|
"aria-labelledby": n
|
|
4381
|
-
}, [s("ul",
|
|
4381
|
+
}, [s("ul", Qa, [(w(!0), o(e, null, O(c.default(), (e, t) => (w(), o("li", { key: t }, [(w(), i(A(e)))]))), 128))])])])]),
|
|
4382
4382
|
_: 1
|
|
4383
4383
|
}, 8, ["modelValue"])]));
|
|
4384
4384
|
}
|
|
4385
|
-
}),
|
|
4385
|
+
}), eo = /* @__PURE__ */ u({
|
|
4386
4386
|
__name: "GCurrencyInput",
|
|
4387
4387
|
props: /*@__PURE__*/ m({
|
|
4388
4388
|
label: { default: void 0 },
|
|
@@ -4433,7 +4433,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4433
4433
|
"form-key"
|
|
4434
4434
|
]));
|
|
4435
4435
|
}
|
|
4436
|
-
}),
|
|
4436
|
+
}), to = /* @__PURE__ */ u({
|
|
4437
4437
|
__name: "GEmailInput",
|
|
4438
4438
|
props: /*@__PURE__*/ m({
|
|
4439
4439
|
label: { default: void 0 },
|
|
@@ -4478,13 +4478,13 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4478
4478
|
"instructions"
|
|
4479
4479
|
]));
|
|
4480
4480
|
}
|
|
4481
|
-
}),
|
|
4481
|
+
}), no = ["for"], ro = {
|
|
4482
4482
|
key: 0,
|
|
4483
4483
|
class: "g-file-input-required"
|
|
4484
|
-
},
|
|
4484
|
+
}, io = {
|
|
4485
4485
|
key: 0,
|
|
4486
4486
|
class: "g-file-input-box-header"
|
|
4487
|
-
},
|
|
4487
|
+
}, ao = ["id"], oo = [
|
|
4488
4488
|
"id",
|
|
4489
4489
|
"disabled",
|
|
4490
4490
|
"required",
|
|
@@ -4493,11 +4493,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4493
4493
|
"aria-invalid",
|
|
4494
4494
|
"aria-describedby",
|
|
4495
4495
|
"aria-errormessage"
|
|
4496
|
-
],
|
|
4496
|
+
], so = {
|
|
4497
4497
|
key: 1,
|
|
4498
4498
|
class: "g-file-input-pills",
|
|
4499
4499
|
"aria-label": "Selected files"
|
|
4500
|
-
},
|
|
4500
|
+
}, co = /* @__PURE__ */ u({
|
|
4501
4501
|
inheritAttrs: !1,
|
|
4502
4502
|
__name: "GFileInput",
|
|
4503
4503
|
props: /*@__PURE__*/ m({
|
|
@@ -4554,12 +4554,12 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4554
4554
|
key: 0,
|
|
4555
4555
|
for: L(d),
|
|
4556
4556
|
class: "g-file-input-label"
|
|
4557
|
-
}, [c(N(t.label) + " ", 1), t.required ? (w(), o("span",
|
|
4557
|
+
}, [c(N(t.label) + " ", 1), t.required ? (w(), o("span", ro, "*")) : a("", !0)], 8, no)) : a("", !0),
|
|
4558
4558
|
s("div", { class: _(["g-file-input-box", { "g-file-input-box--disabled": t.disabled }]) }, [
|
|
4559
|
-
t.instructions ? (w(), o("div",
|
|
4559
|
+
t.instructions ? (w(), o("div", io, [s("span", {
|
|
4560
4560
|
id: "instructions-" + L(d),
|
|
4561
4561
|
class: "g-file-input-instructions"
|
|
4562
|
-
}, N(t.instructions), 9,
|
|
4562
|
+
}, N(t.instructions), 9, ao)])) : a("", !0),
|
|
4563
4563
|
s("input", {
|
|
4564
4564
|
id: L(d),
|
|
4565
4565
|
type: "file",
|
|
@@ -4572,8 +4572,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4572
4572
|
"aria-describedby": t.instructions ? "instructions-" + L(d) : void 0,
|
|
4573
4573
|
"aria-errormessage": y.value ? "error-message-" + L(d) : void 0,
|
|
4574
4574
|
onChange: g
|
|
4575
|
-
}, null, 40,
|
|
4576
|
-
t.multiple && b.value.length > 0 ? (w(), o("ul",
|
|
4575
|
+
}, null, 40, oo),
|
|
4576
|
+
t.multiple && b.value.length > 0 ? (w(), o("ul", so, [(w(!0), o(e, null, O(b.value, (e) => (w(), o("li", {
|
|
4577
4577
|
key: e,
|
|
4578
4578
|
class: "g-file-input-pill"
|
|
4579
4579
|
}, [r[0] ||= s("svg", {
|
|
@@ -4589,7 +4589,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4589
4589
|
}, null, 8, ["errors", "id"])
|
|
4590
4590
|
], 2));
|
|
4591
4591
|
}
|
|
4592
|
-
}),
|
|
4592
|
+
}), lo = /* @__PURE__ */ u({
|
|
4593
4593
|
__name: "GDateInput",
|
|
4594
4594
|
props: /*@__PURE__*/ m({
|
|
4595
4595
|
label: { default: void 0 },
|
|
@@ -4637,21 +4637,21 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4637
4637
|
"form-key"
|
|
4638
4638
|
]));
|
|
4639
4639
|
}
|
|
4640
|
-
}),
|
|
4640
|
+
}), uo = { class: "g-date-range-input" }, fo = {
|
|
4641
4641
|
key: 0,
|
|
4642
4642
|
class: "g-date-range-input__label"
|
|
4643
|
-
},
|
|
4643
|
+
}, po = {
|
|
4644
4644
|
key: 0,
|
|
4645
4645
|
class: "g-date-range-input__required",
|
|
4646
4646
|
"aria-hidden": "true"
|
|
4647
|
-
},
|
|
4647
|
+
}, mo = {
|
|
4648
4648
|
key: 1,
|
|
4649
4649
|
class: "g-date-range-input__instructions"
|
|
4650
|
-
},
|
|
4650
|
+
}, ho = { class: "g-date-range-input__fields" }, go = {
|
|
4651
4651
|
key: 2,
|
|
4652
4652
|
class: "g-date-range-input__errors",
|
|
4653
4653
|
role: "alert"
|
|
4654
|
-
},
|
|
4654
|
+
}, _o = /* @__PURE__ */ u({
|
|
4655
4655
|
__name: "GDateRangeInput",
|
|
4656
4656
|
props: /*@__PURE__*/ m({
|
|
4657
4657
|
label: { default: void 0 },
|
|
@@ -4691,10 +4691,10 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4691
4691
|
};
|
|
4692
4692
|
}), W(r, (e) => {
|
|
4693
4693
|
e.start !== i.value && (i.value = e.start), e.end !== u.value && (u.value = e.end);
|
|
4694
|
-
}, { deep: !0 }), (t, r) => (w(), o("div",
|
|
4695
|
-
n.label ? (w(), o("div",
|
|
4696
|
-
n.instructions ? (w(), o("div",
|
|
4697
|
-
s("div",
|
|
4694
|
+
}, { deep: !0 }), (t, r) => (w(), o("div", uo, [
|
|
4695
|
+
n.label ? (w(), o("div", fo, [c(N(n.label), 1), n.required ? (w(), o("span", po, " *")) : a("", !0)])) : a("", !0),
|
|
4696
|
+
n.instructions ? (w(), o("div", mo, N(n.instructions), 1)) : a("", !0),
|
|
4697
|
+
s("div", ho, [l(lo, {
|
|
4698
4698
|
modelValue: i.value,
|
|
4699
4699
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
4700
4700
|
label: n.startLabel,
|
|
@@ -4706,7 +4706,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4706
4706
|
"label",
|
|
4707
4707
|
"disabled",
|
|
4708
4708
|
"required"
|
|
4709
|
-
]), l(
|
|
4709
|
+
]), l(lo, {
|
|
4710
4710
|
modelValue: u.value,
|
|
4711
4711
|
"onUpdate:modelValue": r[1] ||= (e) => u.value = e,
|
|
4712
4712
|
label: n.endLabel,
|
|
@@ -4719,13 +4719,13 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4719
4719
|
"disabled",
|
|
4720
4720
|
"required"
|
|
4721
4721
|
])]),
|
|
4722
|
-
L(d).length > 0 ? (w(), o("div",
|
|
4722
|
+
L(d).length > 0 ? (w(), o("div", go, [(w(!0), o(e, null, O(L(d), (e, t) => (w(), o("div", {
|
|
4723
4723
|
key: t,
|
|
4724
4724
|
class: "g-date-range-input__error"
|
|
4725
4725
|
}, N(e), 1))), 128))])) : a("", !0)
|
|
4726
4726
|
]));
|
|
4727
4727
|
}
|
|
4728
|
-
}),
|
|
4728
|
+
}), vo = ["action", "method"], yo = /* @__PURE__ */ u({
|
|
4729
4729
|
__name: "GForm",
|
|
4730
4730
|
props: /*@__PURE__*/ m({
|
|
4731
4731
|
action: { default: void 0 },
|
|
@@ -4765,9 +4765,9 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4765
4765
|
hasErrors: L(s).hasErrors.value,
|
|
4766
4766
|
values: L(s).values.value,
|
|
4767
4767
|
errors: L(s).errors.value
|
|
4768
|
-
})], 40,
|
|
4768
|
+
})], 40, vo));
|
|
4769
4769
|
}
|
|
4770
|
-
}),
|
|
4770
|
+
}), bo = /* @__PURE__ */ u({
|
|
4771
4771
|
__name: "GSubmitButton",
|
|
4772
4772
|
props: {
|
|
4773
4773
|
disabled: {
|
|
@@ -4790,11 +4790,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4790
4790
|
_: 3
|
|
4791
4791
|
}, 8, ["disabled", "variant"]));
|
|
4792
4792
|
}
|
|
4793
|
-
}),
|
|
4793
|
+
}), xo = ["for"], So = {
|
|
4794
4794
|
key: 0,
|
|
4795
4795
|
class: "g-textarea-required",
|
|
4796
4796
|
"aria-hidden": "true"
|
|
4797
|
-
},
|
|
4797
|
+
}, Co = ["id"], wo = [
|
|
4798
4798
|
"value",
|
|
4799
4799
|
"placeholder",
|
|
4800
4800
|
"disabled",
|
|
@@ -4803,11 +4803,11 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4803
4803
|
"rows",
|
|
4804
4804
|
"maxlength",
|
|
4805
4805
|
"aria-invalid"
|
|
4806
|
-
],
|
|
4806
|
+
], To = {
|
|
4807
4807
|
key: 2,
|
|
4808
4808
|
class: "g-textarea-char-count",
|
|
4809
4809
|
"aria-live": "polite"
|
|
4810
|
-
},
|
|
4810
|
+
}, Eo = /* @__PURE__ */ u({
|
|
4811
4811
|
inheritAttrs: !1,
|
|
4812
4812
|
__name: "GTextarea",
|
|
4813
4813
|
props: /*@__PURE__*/ m({
|
|
@@ -4881,12 +4881,12 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4881
4881
|
key: 0,
|
|
4882
4882
|
for: m.value,
|
|
4883
4883
|
class: "g-textarea-label"
|
|
4884
|
-
}, [c(N(n.label), 1), n.required ? (w(), o("span",
|
|
4884
|
+
}, [c(N(n.label), 1), n.required ? (w(), o("span", So, " *")) : a("", !0)], 8, xo)) : a("", !0),
|
|
4885
4885
|
t.$slots.instructions || e.instructions ? (w(), o("div", {
|
|
4886
4886
|
key: 1,
|
|
4887
4887
|
id: "instructions-" + L(u),
|
|
4888
4888
|
class: "g-textarea-instructions"
|
|
4889
|
-
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8,
|
|
4889
|
+
}, [k(t.$slots, "instructions", {}, () => [c(N(e.instructions), 1)])], 8, Co)) : a("", !0),
|
|
4890
4890
|
s("textarea", h({
|
|
4891
4891
|
ref: "textareaEl",
|
|
4892
4892
|
value: i.value ?? "",
|
|
@@ -4907,8 +4907,8 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4907
4907
|
onInput: T,
|
|
4908
4908
|
onBlur: E,
|
|
4909
4909
|
onPaste: D
|
|
4910
|
-
}), null, 16,
|
|
4911
|
-
n.maxlength === void 0 ? a("", !0) : (w(), o("div",
|
|
4910
|
+
}), null, 16, wo),
|
|
4911
|
+
n.maxlength === void 0 ? a("", !0) : (w(), o("div", To, N((i.value ?? "").length) + " / " + N(n.maxlength), 1)),
|
|
4912
4912
|
l(Me, {
|
|
4913
4913
|
errors: L(v),
|
|
4914
4914
|
id: "error-message-" + L(u)
|
|
@@ -4918,7 +4918,7 @@ var yi = { class: "g-table-outer-wrap" }, bi = {
|
|
|
4918
4918
|
});
|
|
4919
4919
|
//#endregion
|
|
4920
4920
|
//#region src/compose/useActiveLink.ts
|
|
4921
|
-
function
|
|
4921
|
+
function Do(e, t, n) {
|
|
4922
4922
|
let r = [
|
|
4923
4923
|
0,
|
|
4924
4924
|
.25,
|
|
@@ -4955,7 +4955,7 @@ function Eo(e, t, n) {
|
|
|
4955
4955
|
}
|
|
4956
4956
|
//#endregion
|
|
4957
4957
|
//#region src/compose/useSidebar.ts
|
|
4958
|
-
function
|
|
4958
|
+
function Oo(e = "(max-width: 800px)") {
|
|
4959
4959
|
let t = z(), n = D(!1), r = Y(e, { ssrWidth: 1e3 });
|
|
4960
4960
|
function i(e) {
|
|
4961
4961
|
if (!r.value || !n.value) return;
|
|
@@ -4986,41 +4986,41 @@ function Do(e = "(max-width: 800px)") {
|
|
|
4986
4986
|
}
|
|
4987
4987
|
//#endregion
|
|
4988
4988
|
//#region src/compose/usePaging.ts
|
|
4989
|
-
function
|
|
4989
|
+
function ko(e) {
|
|
4990
4990
|
let t = /* @__PURE__ */ new Set();
|
|
4991
4991
|
return (e ?? []).filter((e) => !e?.key || t.has(e.key) || e.order !== 1 && e.order !== -1 ? !1 : (t.add(e.key), !0));
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4994
|
-
return e == null ? [] :
|
|
4993
|
+
function Ao(e) {
|
|
4994
|
+
return e == null ? [] : ko((typeof e == "string" ? e.split(",") : e).filter((e) => e !== null).map((e) => e.trim()).filter(Boolean).map((e) => ({
|
|
4995
4995
|
key: e.replace(/^-/, ""),
|
|
4996
4996
|
order: e.startsWith("-") ? -1 : 1
|
|
4997
4997
|
})));
|
|
4998
4998
|
}
|
|
4999
|
-
function
|
|
5000
|
-
let t =
|
|
4999
|
+
function jo(e) {
|
|
5000
|
+
let t = ko(e);
|
|
5001
5001
|
if (t.length !== 0) return t.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`);
|
|
5002
5002
|
}
|
|
5003
|
-
function
|
|
5004
|
-
let n =
|
|
5003
|
+
function Mo(e, t = []) {
|
|
5004
|
+
let n = ko(e);
|
|
5005
5005
|
if (n.length === 0) return;
|
|
5006
5006
|
let r = n.map(({ key: e, order: t }) => `${t === -1 ? "-" : ""}${e}`), i = new Set(n.map(({ key: e }) => String(e))), a = n.length === 1 && n[0].order === -1 ? "-" : "";
|
|
5007
5007
|
return t.forEach((e) => {
|
|
5008
5008
|
i.has(e) || r.push(`${a}${e}`);
|
|
5009
5009
|
}), r.join(",");
|
|
5010
5010
|
}
|
|
5011
|
-
function
|
|
5011
|
+
function No(e) {
|
|
5012
5012
|
return Array.isArray(e) ? [...e] : e;
|
|
5013
5013
|
}
|
|
5014
|
-
function
|
|
5014
|
+
function Po(e, t) {
|
|
5015
5015
|
return Array.isArray(e) || Array.isArray(t) ? !Array.isArray(e) || !Array.isArray(t) ? !1 : e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function Fo(e, t) {
|
|
5018
5018
|
return e.length === t.length && e.every((e, n) => {
|
|
5019
5019
|
let r = t[n];
|
|
5020
5020
|
return e.key === r?.key && e.order === r?.order;
|
|
5021
5021
|
});
|
|
5022
5022
|
}
|
|
5023
|
-
function
|
|
5023
|
+
function Io(e, t) {
|
|
5024
5024
|
if (typeof e == "string") return Number(e);
|
|
5025
5025
|
if (Array.isArray(e)) {
|
|
5026
5026
|
let n = e.find((e) => e !== null);
|
|
@@ -5028,35 +5028,35 @@ function Fo(e, t) {
|
|
|
5028
5028
|
}
|
|
5029
5029
|
return t;
|
|
5030
5030
|
}
|
|
5031
|
-
function
|
|
5031
|
+
function Lo(e = {}) {
|
|
5032
5032
|
let t = e.defaultPageSize ?? 50, n = e.defaultPageOffset ?? 0, i = e.sortKey ?? "sort", a = e.pageSizeKey ?? "pageSize", o = e.pageOffsetKey ?? "pageOffset", s = M([]), c = D(t), l = D(n);
|
|
5033
5033
|
return e.route && e.router && (W(() => e.route?.query[i], (e) => {
|
|
5034
|
-
let t =
|
|
5035
|
-
|
|
5034
|
+
let t = Ao(e);
|
|
5035
|
+
Fo(s.value, t) || (s.value = t);
|
|
5036
5036
|
}, { immediate: !0 }), W(() => e.route?.query[a], (e) => {
|
|
5037
|
-
let n =
|
|
5037
|
+
let n = Io(e, t);
|
|
5038
5038
|
c.value !== n && (c.value = n);
|
|
5039
5039
|
}, { immediate: !0 }), W(() => e.route?.query[o], (e) => {
|
|
5040
|
-
let t =
|
|
5040
|
+
let t = Io(e, n);
|
|
5041
5041
|
l.value !== t && (l.value = t);
|
|
5042
5042
|
}, { immediate: !0 }), W([
|
|
5043
5043
|
s,
|
|
5044
5044
|
c,
|
|
5045
5045
|
l
|
|
5046
5046
|
], ([r, s, c]) => {
|
|
5047
|
-
let l = { ...e.route.query }, u =
|
|
5048
|
-
u === void 0 ? delete l[i] : l[i] =
|
|
5047
|
+
let l = { ...e.route.query }, u = jo(r);
|
|
5048
|
+
u === void 0 ? delete l[i] : l[i] = No(u), s === t || s === void 0 ? delete l[a] : l[a] = String(s), c === n || c === void 0 ? delete l[o] : l[o] = String(c);
|
|
5049
5049
|
let d = /* @__PURE__ */ new Set([...Object.keys(e.route.query), ...Object.keys(l)]), f = !1;
|
|
5050
|
-
for (let t of d) if (!
|
|
5050
|
+
for (let t of d) if (!Po(e.route.query[t], l[t])) {
|
|
5051
5051
|
f = !0;
|
|
5052
5052
|
break;
|
|
5053
5053
|
}
|
|
5054
5054
|
f && e.router.replace({ query: l });
|
|
5055
5055
|
})), {
|
|
5056
5056
|
sort: r({
|
|
5057
|
-
get: () =>
|
|
5057
|
+
get: () => ko(s.value),
|
|
5058
5058
|
set: (e) => {
|
|
5059
|
-
s.value =
|
|
5059
|
+
s.value = ko(e);
|
|
5060
5060
|
}
|
|
5061
5061
|
}),
|
|
5062
5062
|
pageSize: c,
|
|
@@ -5065,7 +5065,7 @@ function Io(e = {}) {
|
|
|
5065
5065
|
}
|
|
5066
5066
|
//#endregion
|
|
5067
5067
|
//#region src/compose/useTableChanges.ts
|
|
5068
|
-
function
|
|
5068
|
+
function Ro() {
|
|
5069
5069
|
let e = j(/* @__PURE__ */ new Map()), t = ie(), n = (n) => {
|
|
5070
5070
|
let r = n.column.key, i = n.row.key, a = n.value, o = n.previousValue;
|
|
5071
5071
|
e.has(i) || e.set(i, j(/* @__PURE__ */ new Map()));
|
|
@@ -5168,6 +5168,6 @@ function Lo() {
|
|
|
5168
5168
|
};
|
|
5169
5169
|
}
|
|
5170
5170
|
//#endregion
|
|
5171
|
-
export { rt as $,
|
|
5171
|
+
export { rt as $, fi as A, On as B, Na as C, gi as D, li as E, fr as F, cn as G, Sn as H, Zn as I, Pt as J, an as K, In as L, vi as M, zr as N, ui as O, Or as P, ct as Q, jn as R, Pa as S, di as T, xn as U, wn as V, pn as W, Ct as X, Ot as Y, gt as Z, $a as _, jo as a, $ as at, Ba as b, Do as c, De as ct, yo as d, Q as dt, nt as et, _o as f, eo as g, to as h, Ao as i, ze as it, yi as j, _i as k, Eo as l, xe as lt, co as m, Mo as n, qe as nt, Lo as o, Ae as ot, lo as p, Jt as q, ko as r, Je as rt, Oo as s, Oe as st, Ro as t, tt, bo as u, be as ut, Ja as v, Da as w, Ra as x, Wa as y, kn as z };
|
|
5172
5172
|
|
|
5173
|
-
//# sourceMappingURL=grad-vue-
|
|
5173
|
+
//# sourceMappingURL=grad-vue-Bd30K3vh.js.map
|