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