@fluidattacks/design 4.16.2 → 4.16.3
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/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/advanced-badge/index.js +1 -1
- package/dist/components/advisories-card/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/card/indicator-card/index.js +1 -1
- package/dist/components/card-container/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/circular-progress/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/conditions-dialog/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/fa-tag/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/filters/active-filters/active-filter/index.js +1 -1
- package/dist/components/filters/active-filters/index.js +1 -1
- package/dist/components/filters/context/index.js +1 -1
- package/dist/components/filters/filters-menu/index.js +1 -1
- package/dist/components/filters/index.js +1 -1
- package/dist/components/filters/options-menu/include-exclude/index.js +1 -1
- package/dist/components/filters/options-menu/index.js +1 -1
- package/dist/components/filters/options-menu/options/index.js +1 -1
- package/dist/components/filters/search/no-matches/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card-db/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/index.js +1 -1
- package/dist/components/inputs/fields/input-file/default/index.js +1 -1
- package/dist/components/inputs/fields/input-file/dropzone/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-section/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/fields/text-input/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/item-card-db/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/package-card/index.js +1 -1
- package/dist/components/paginator-db/btn/index.js +1 -1
- package/dist/components/paginator-db/dropdown/index.js +1 -1
- package/dist/components/paginator-db/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-cards/card/index.js +1 -1
- package/dist/components/priority-cards/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/progress-indicator/step/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/rank-position/icon/index.js +1 -1
- package/dist/components/rank-position/index.js +1 -1
- package/dist/components/rules-card/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-dropdown/index.js +1 -1
- package/dist/components/segmented-progress-bar/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-indicator/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/index.stories.d.ts +2 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/table-content/index.js +1 -1
- package/dist/components/table-content/item-content/index.js +1 -1
- package/dist/components/table-of-contents/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tree/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/weaknesses-card/index.js +1 -1
- package/dist/{components-DIJCNlEu.mjs → components-Bys1Jmds.mjs} +137 -127
- package/dist/globals/design-tokens-css/index.js +1 -1
- package/dist/globals/designs-provider/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as u, Fragment as ue } from "react/jsx-runtime";
|
|
2
|
-
import bt, { forwardRef as re, useState as O, useCallback as w, useReducer as xi, useEffect as Q, useMemo as
|
|
2
|
+
import bt, { forwardRef as re, useState as O, useCallback as w, useReducer as xi, useEffect as Q, useMemo as _, useRef as Z, StrictMode as mi, Fragment as xe, Children as Gt, isValidElement as bo, cloneElement as xo, createContext as mo, useContext as we, useImperativeHandle as wi, createElement as vi } from "react";
|
|
3
3
|
import ki, { ThemeProvider as Ci, styled as m, useTheme as A, css as Qe, keyframes as wo } from "styled-components";
|
|
4
4
|
import { C as Si, s as zi, _ as q, A as Ii, l as Ti, p as Di, d as ce, $ as Ei, a as vo, b as J, c as xt, u as Ze, e as Ni, f as Ri, g as Li, h as Fi, i as mt, j as ko, o as wt, k as Ai, m as ji, n as Pi, q as Oi, r as Mi, t as Vi, v as Bi, w as Wi, x as Hi, y as Gi, z as Co, B as Qt, D as en, E as _i, F as Ui, G as Yi, H as Sn, I as vt, J as Xi, K as Zi, L as So, M as kt, N as zo, O as Ki, P as qi, Q as Ji, R as Qi, S as er, T as tr, U as Io, V as To, W as nr, X as or, Y as ir, Z as rr, a0 as ar, a1 as lr, a2 as tn, a3 as sr, a4 as zn, a5 as In, a6 as Tn, a7 as Xe, a8 as cr, a9 as dr, aa as pr, ab as gr, ac as ur, ad as hr, ae as fr, af as yr, ag as $r, ah as br, ai as xr, aj as mr, ak as wr, al as vr, am as kr, an as Cr, ao as Sr, ap as zr, aq as Ir, ar as Tr, as as _t, at as Dr, au as Do, av as Eo, aw as Er, ax as Nr, ay as Rr, az as Dn, aA as Lr, aB as Fr, aC as Ar, aD as jr, aE as Pr, aF as Or, aJ as No, aK as Mr, aL as Vr, aM as Br, aN as Wr, aO as Hr, aP as Gr, aQ as _r, aR as Ur, aS as Yr, aT as Xr, aU as Ut, aV as Zr, aW as En, aX as Kr, aY as Nn, aZ as qr } from "./vendor-BBQctgLx.mjs";
|
|
5
5
|
import { useQueryStates as Jr, parseAsString as Qr } from "nuqs";
|
|
@@ -1108,12 +1108,12 @@ const N = re(function({
|
|
|
1108
1108
|
publicId: e,
|
|
1109
1109
|
format: t = "webp"
|
|
1110
1110
|
}) => {
|
|
1111
|
-
const o =
|
|
1111
|
+
const o = _(() => new Si({
|
|
1112
1112
|
cloud: {
|
|
1113
1113
|
cloudName: "fluid-attacks"
|
|
1114
1114
|
}
|
|
1115
1115
|
}), []);
|
|
1116
|
-
return
|
|
1116
|
+
return _(() => o.image(e).format(t), [o, e, t]);
|
|
1117
1117
|
}, Rt = (e) => {
|
|
1118
1118
|
const [t, o] = O(!1), i = w(() => {
|
|
1119
1119
|
o(!0);
|
|
@@ -1133,7 +1133,7 @@ const N = re(function({
|
|
|
1133
1133
|
setColumnOrder: i,
|
|
1134
1134
|
setColumnVisibility: a
|
|
1135
1135
|
}) => {
|
|
1136
|
-
const r =
|
|
1136
|
+
const r = _(
|
|
1137
1137
|
() => [
|
|
1138
1138
|
// locked -> visible -> hidden
|
|
1139
1139
|
...t.filter(({ locked: g }) => g).map(({ locked: g, ...h }) => ({ ...h, visible: !0, locked: g })),
|
|
@@ -1162,7 +1162,7 @@ const N = re(function({
|
|
|
1162
1162
|
return x - y;
|
|
1163
1163
|
});
|
|
1164
1164
|
a?.(Aa(g)), c(g);
|
|
1165
|
-
}, [l, o, c, a]), p =
|
|
1165
|
+
}, [l, o, c, a]), p = _(() => zi(l, (g) => (o?.includes(g.id) ?? !1) !== g.visible), [l, o]);
|
|
1166
1166
|
return {
|
|
1167
1167
|
setColumns: c,
|
|
1168
1168
|
resetToDefault: d,
|
|
@@ -1170,7 +1170,7 @@ const N = re(function({
|
|
|
1170
1170
|
...Rt(e),
|
|
1171
1171
|
hasChanged: p
|
|
1172
1172
|
};
|
|
1173
|
-
}, nn = (e, t) =>
|
|
1173
|
+
}, nn = (e, t) => _(
|
|
1174
1174
|
() => q.debounce(e, t),
|
|
1175
1175
|
[e, t]
|
|
1176
1176
|
), Po = 7, Oo = (e) => e.reduce(
|
|
@@ -1239,12 +1239,12 @@ const N = re(function({
|
|
|
1239
1239
|
}, Ln = (e) => typeof window > "u" ? null : window.localStorage.getItem(e), gt = (e) => {
|
|
1240
1240
|
typeof window > "u" || window.localStorage.removeItem(e);
|
|
1241
1241
|
}, Ba = (e, t, o) => {
|
|
1242
|
-
const i = Z(!1), a = Z(!1), [r, l] = Jr(t, o), [s, c] = Va(e, null), d =
|
|
1242
|
+
const i = Z(!1), a = Z(!1), [r, l] = Jr(t, o), [s, c] = Va(e, null), d = _(
|
|
1243
1243
|
() => Object.values(r).every(
|
|
1244
1244
|
(h) => h == null || h === ""
|
|
1245
1245
|
),
|
|
1246
1246
|
[r]
|
|
1247
|
-
), p =
|
|
1247
|
+
), p = _(() => {
|
|
1248
1248
|
if (a.current || !d || typeof window > "u") return r;
|
|
1249
1249
|
const h = Ln(e);
|
|
1250
1250
|
if (h === null) return r;
|
|
@@ -1342,10 +1342,10 @@ const N = re(function({
|
|
|
1342
1342
|
filters: e,
|
|
1343
1343
|
storageKey: t
|
|
1344
1344
|
}) => {
|
|
1345
|
-
const o =
|
|
1345
|
+
const o = _(Mo, []), i = _(() => t ?? o, [t, o]), a = _(
|
|
1346
1346
|
() => e.flatMap((y) => y.id),
|
|
1347
1347
|
[e]
|
|
1348
|
-
), r =
|
|
1348
|
+
), r = _(
|
|
1349
1349
|
() => ({
|
|
1350
1350
|
...Object.fromEntries(
|
|
1351
1351
|
a.map((y) => [y, Qr.withDefault("")])
|
|
@@ -1361,10 +1361,10 @@ const N = re(function({
|
|
|
1361
1361
|
s(y);
|
|
1362
1362
|
},
|
|
1363
1363
|
[s]
|
|
1364
|
-
), p =
|
|
1364
|
+
), p = _(
|
|
1365
1365
|
() => new Map(Oo(e).menu.map((y) => [y.id, y])),
|
|
1366
1366
|
[e]
|
|
1367
|
-
), g =
|
|
1367
|
+
), g = _(() => Object.entries(c).filter(
|
|
1368
1368
|
([y, b]) => p.has(y) && !!b && b !== "undefined"
|
|
1369
1369
|
).reduce((y, [b, k]) => {
|
|
1370
1370
|
const v = p.get(b);
|
|
@@ -1383,7 +1383,7 @@ const N = re(function({
|
|
|
1383
1383
|
return R !== "-" && R !== "" && R !== on;
|
|
1384
1384
|
});
|
|
1385
1385
|
return y + E.length;
|
|
1386
|
-
}, 0), [c, p]), h =
|
|
1386
|
+
}, 0), [c, p]), h = _(() => Object.entries(c).filter(([, y]) => !!y && y !== "undefined").flatMap(([y, b]) => {
|
|
1387
1387
|
const k = p.get(y);
|
|
1388
1388
|
if (!k) return [];
|
|
1389
1389
|
const { label: v, options: S, hideChipLabel: C } = k, E = S?.find((T) => T.type === "text"), z = C ? { hideChipLabel: !0 } : {}, R = S?.find(
|
|
@@ -2123,7 +2123,7 @@ const N = re(function({
|
|
|
2123
2123
|
z,
|
|
2124
2124
|
R,
|
|
2125
2125
|
j
|
|
2126
|
-
]), F =
|
|
2126
|
+
]), F = _(() => E.startsWith("top") ? "top" : E.startsWith("bottom") ? "bottom" : E.startsWith("left") ? "left" : E.startsWith("right") ? "right" : "bottom", [E]);
|
|
2127
2127
|
return t ? /* @__PURE__ */ n(mi, { children: e }) : /* @__PURE__ */ u(ue, { children: [
|
|
2128
2128
|
/* @__PURE__ */ n(
|
|
2129
2129
|
ll,
|
|
@@ -3865,7 +3865,7 @@ const N = re(function({
|
|
|
3865
3865
|
{ key: t.key },
|
|
3866
3866
|
l,
|
|
3867
3867
|
d
|
|
3868
|
-
), k =
|
|
3868
|
+
), k = _(() => l.collection.getItem("All")?.rendered?.toString(), [l.collection]), v = [
|
|
3869
3869
|
x ? "selected" : "",
|
|
3870
3870
|
y ? "focused" : "",
|
|
3871
3871
|
b ? "disabled" : ""
|
|
@@ -3893,14 +3893,14 @@ const N = re(function({
|
|
|
3893
3893
|
[h, i, a, r]
|
|
3894
3894
|
), E = w(
|
|
3895
3895
|
(L) => {
|
|
3896
|
-
const U = L.target.value, P = s?.(`${i}Options`) ?? [], W = Array.isArray(P) ? P : P ? [P] : [], K = L.target.checked ? [...W, U] : W.filter((
|
|
3896
|
+
const U = L.target.value, P = s?.(`${i}Options`) ?? [], W = Array.isArray(P) ? P : P ? [P] : [], K = L.target.checked ? [...W, U] : W.filter((G) => G !== U);
|
|
3897
3897
|
r?.(`${i}Options`, K), S(K);
|
|
3898
3898
|
},
|
|
3899
3899
|
[i, r, s, S]
|
|
3900
|
-
), z = s?.(`${i}Options`), R =
|
|
3900
|
+
), z = s?.(`${i}Options`), R = _(() => Array.isArray(z) ? z : typeof z == "string" && z ? [z] : [], [z]), j = _(
|
|
3901
3901
|
() => R.includes(t.key.toString()),
|
|
3902
3902
|
[R, t.key]
|
|
3903
|
-
), M = s?.(`${i}CheckAll`), D =
|
|
3903
|
+
), M = s?.(`${i}CheckAll`), D = _(() => !!M, [M]), F = t.key === "All" ? /* @__PURE__ */ n(
|
|
3904
3904
|
De,
|
|
3905
3905
|
{
|
|
3906
3906
|
checked: D,
|
|
@@ -3983,7 +3983,7 @@ const N = re(function({
|
|
|
3983
3983
|
}) => {
|
|
3984
3984
|
const j = A(), M = t ? void 0 : i, D = e?.value ?? E, [F, Y] = O(
|
|
3985
3985
|
g.find((B) => B.value === D)?.name ?? ""
|
|
3986
|
-
), [T, L] = O(D), [U, P] = O(g), [W, K] = O(!1), { contains:
|
|
3986
|
+
), [T, L] = O(D), [U, P] = O(g), [W, K] = O(!1), { contains: G } = Vi({ sensitivity: "base" }), X = Z(null), oe = Z(null), te = Z(null), ae = Z(null), $e = Z(null), At = Z(/* @__PURE__ */ new Set()), si = _(() => {
|
|
3987
3987
|
const B = At.current, le = Array.from(o ?? []), de = g.some((se) => se.group !== void 0);
|
|
3988
3988
|
return g.toSorted((se, ve) => {
|
|
3989
3989
|
if (se.value === "All") return -1;
|
|
@@ -4012,7 +4012,7 @@ const N = re(function({
|
|
|
4012
4012
|
}
|
|
4013
4013
|
return 0;
|
|
4014
4014
|
}).map(
|
|
4015
|
-
(se) =>
|
|
4015
|
+
(se) => G(se.name, F) || W ? /* @__PURE__ */ n(
|
|
4016
4016
|
Bi,
|
|
4017
4017
|
{
|
|
4018
4018
|
"aria-label": se.value,
|
|
@@ -4023,7 +4023,7 @@ const N = re(function({
|
|
|
4023
4023
|
se.value
|
|
4024
4024
|
) : null
|
|
4025
4025
|
);
|
|
4026
|
-
}, [
|
|
4026
|
+
}, [G, o, F, g, p, W]), ci = w(
|
|
4027
4027
|
(B) => {
|
|
4028
4028
|
const le = B.split(/,|\s/u).slice(-1)[0].trim();
|
|
4029
4029
|
Y(p ? le : B), B === "" || B.endsWith(",") ? K(!0) : (K(!1), L((de) => {
|
|
@@ -4031,11 +4031,11 @@ const N = re(function({
|
|
|
4031
4031
|
return e && e.onChange(fe), f && f(B), fe;
|
|
4032
4032
|
}), P(
|
|
4033
4033
|
g.filter(
|
|
4034
|
-
(de) =>
|
|
4034
|
+
(de) => G(de.name, p ? le : B)
|
|
4035
4035
|
)
|
|
4036
4036
|
));
|
|
4037
4037
|
},
|
|
4038
|
-
[
|
|
4038
|
+
[G, g, e, p, f]
|
|
4039
4039
|
), di = w(
|
|
4040
4040
|
(B) => {
|
|
4041
4041
|
Y(g.find((le) => le.value === B)?.name ?? ""), L(B ? String(B) : ""), e && e.onChange(B), f && f(B ? String(B) : ""), P(g);
|
|
@@ -4112,10 +4112,10 @@ const N = re(function({
|
|
|
4112
4112
|
}, [D, g, c, p]);
|
|
4113
4113
|
const _e = Array.from(ge.collection), mn = p ? _e.findLastIndex(
|
|
4114
4114
|
(B) => B.key === "All" || At.current.has(String(B.key))
|
|
4115
|
-
) : -1, bi =
|
|
4115
|
+
) : -1, bi = _(() => g.map((B) => B.value), [g]), wn = _(
|
|
4116
4116
|
() => new Map(g.map((B) => [B.value, B.group])),
|
|
4117
4117
|
[g]
|
|
4118
|
-
), tt =
|
|
4118
|
+
), tt = _(() => _e.reduce(
|
|
4119
4119
|
(B, le, de) => {
|
|
4120
4120
|
const fe = wn.get(String(le.key));
|
|
4121
4121
|
return fe !== void 0 && fe !== B.currentGroup ? (B.result.push({ type: "header", group: fe }), B.currentGroup = fe) : fe === void 0 && B.currentGroup !== void 0 && (B.currentGroup = void 0), B.result.push({ type: "item", index: de }), B;
|
|
@@ -5385,7 +5385,7 @@ const N = re(function({
|
|
|
5385
5385
|
Y(X.target.value), j?.(X);
|
|
5386
5386
|
},
|
|
5387
5387
|
[j]
|
|
5388
|
-
), K = c && d && !e && F.trim() !== "",
|
|
5388
|
+
), K = c && d && !e && F.trim() !== "", G = w(
|
|
5389
5389
|
(X) => {
|
|
5390
5390
|
X.key === "Enter" && X.preventDefault();
|
|
5391
5391
|
},
|
|
@@ -5424,7 +5424,7 @@ const N = re(function({
|
|
|
5424
5424
|
disabled: e,
|
|
5425
5425
|
id: g,
|
|
5426
5426
|
list: k ? `list_${g}` : void 0,
|
|
5427
|
-
onKeyDown:
|
|
5427
|
+
onKeyDown: G,
|
|
5428
5428
|
onPaste: f,
|
|
5429
5429
|
placeholder: x,
|
|
5430
5430
|
type: U,
|
|
@@ -6429,7 +6429,7 @@ const N = re(function({
|
|
|
6429
6429
|
value: f,
|
|
6430
6430
|
weight: x
|
|
6431
6431
|
}) => {
|
|
6432
|
-
const y = A(), b = e ? void 0 : t, [k, v] = O(""), S = c ? f : o?.value, C =
|
|
6432
|
+
const y = A(), b = e ? void 0 : t, [k, v] = O(""), S = c ? f : o?.value, C = _(() => S && typeof S == "string" ? S.split(",").filter(Boolean) : [], [S]), E = w(
|
|
6433
6433
|
(D) => {
|
|
6434
6434
|
const Y = [...new Set(D.filter(Boolean))].join(","), T = qe("change", s, Y);
|
|
6435
6435
|
o && o.onChange(T), c && c(T);
|
|
@@ -7019,31 +7019,31 @@ const N = re(function({
|
|
|
7019
7019
|
forceDialCode: !0,
|
|
7020
7020
|
value: x ? String(x) : ""
|
|
7021
7021
|
}), Y = w(
|
|
7022
|
-
(
|
|
7023
|
-
|
|
7022
|
+
(G) => {
|
|
7023
|
+
G.key === "Enter" && G.preventDefault();
|
|
7024
7024
|
},
|
|
7025
7025
|
[]
|
|
7026
7026
|
), T = w(
|
|
7027
|
-
(
|
|
7028
|
-
|
|
7027
|
+
(G) => {
|
|
7028
|
+
G.preventDefault(), b((X) => !X), y || v("");
|
|
7029
7029
|
},
|
|
7030
7030
|
[y]
|
|
7031
7031
|
), L = w(
|
|
7032
|
-
(
|
|
7033
|
-
F(
|
|
7032
|
+
(G) => () => {
|
|
7033
|
+
F(G), b(!1), v("");
|
|
7034
7034
|
},
|
|
7035
7035
|
[F, b]
|
|
7036
7036
|
), U = w(
|
|
7037
|
-
(
|
|
7038
|
-
|
|
7037
|
+
(G) => {
|
|
7038
|
+
G.key.length === 1 ? v((X) => X + G.key) : G.key === "Backspace" && v((X) => X.slice(0, -1));
|
|
7039
7039
|
},
|
|
7040
7040
|
[]
|
|
7041
7041
|
), P = w(() => {
|
|
7042
7042
|
C(!0);
|
|
7043
7043
|
}, []), W = w(() => {
|
|
7044
7044
|
C(!1);
|
|
7045
|
-
}, []), K = zn.filter((
|
|
7046
|
-
const { name: X } = In(
|
|
7045
|
+
}, []), K = zn.filter((G) => {
|
|
7046
|
+
const { name: X } = In(G);
|
|
7047
7047
|
return X.toLowerCase().includes(k.toLowerCase());
|
|
7048
7048
|
});
|
|
7049
7049
|
return Ce(E.floating.current, () => {
|
|
@@ -7130,8 +7130,8 @@ const N = re(function({
|
|
|
7130
7130
|
}
|
|
7131
7131
|
),
|
|
7132
7132
|
y && He(
|
|
7133
|
-
/* @__PURE__ */ n(ks, { ref: E.setFloating, style: z, children: K.map((
|
|
7134
|
-
const { dialCode: X, iso2: oe, name: te } = In(
|
|
7133
|
+
/* @__PURE__ */ n(ks, { ref: E.setFloating, style: z, children: K.map((G) => {
|
|
7134
|
+
const { dialCode: X, iso2: oe, name: te } = In(G);
|
|
7135
7135
|
return /* @__PURE__ */ u(
|
|
7136
7136
|
Cs,
|
|
7137
7137
|
{
|
|
@@ -7273,7 +7273,7 @@ const N = re(function({
|
|
|
7273
7273
|
setValue: E,
|
|
7274
7274
|
watch: z
|
|
7275
7275
|
}) => {
|
|
7276
|
-
const R =
|
|
7276
|
+
const R = _(() => {
|
|
7277
7277
|
if (l === "text")
|
|
7278
7278
|
return /* @__PURE__ */ n(
|
|
7279
7279
|
pn,
|
|
@@ -8284,11 +8284,11 @@ const Jn = Object.fromEntries(
|
|
|
8284
8284
|
}) => {
|
|
8285
8285
|
const c = A(), [d, p] = O(!1);
|
|
8286
8286
|
Q(() => p(!1), [r]);
|
|
8287
|
-
const g = s === "location", h = !q.isNil(r) && !q.isString(r) && !q.isEmpty(r.content), f = h ? r.content : null, x = h ? r.offset : 0, y = l !== void 0 ? Number(l) : null, b = q.isString(r) && !q.isEmpty(r), k =
|
|
8287
|
+
const g = s === "location", h = !q.isNil(r) && !q.isString(r) && !q.isEmpty(r.content), f = h ? r.content : null, x = h ? r.offset : 0, y = l !== void 0 ? Number(l) : null, b = q.isString(r) && !q.isEmpty(r), k = _(
|
|
8288
8288
|
() => b ? r.split(`
|
|
8289
8289
|
`) : [],
|
|
8290
8290
|
[b, r]
|
|
8291
|
-
), v = k.length > 8, S =
|
|
8291
|
+
), v = k.length > 8, S = _(() => b ? v && !d ? `${k.slice(0, 8).join(`
|
|
8292
8292
|
`)}...` : r : i, [b, v, d, k, r, i]), C = w(
|
|
8293
8293
|
(j) => ({
|
|
8294
8294
|
style: {
|
|
@@ -10166,7 +10166,7 @@ const Jn = Object.fromEntries(
|
|
|
10166
10166
|
values: d,
|
|
10167
10167
|
updateSearch: p,
|
|
10168
10168
|
setValues: g
|
|
10169
|
-
} = we(Ge), h = Ma(o, s), f =
|
|
10169
|
+
} = we(Ge), h = Ma(o, s), f = _(() => Object.values(d).filter(Boolean).length > 0, [d]), x = w(
|
|
10170
10170
|
(k) => () => {
|
|
10171
10171
|
i(k), p({ previousValue: d[k] ?? "" }), c({ searchFilter: "", searchGlobal: "" });
|
|
10172
10172
|
},
|
|
@@ -10298,7 +10298,7 @@ const Jn = Object.fromEntries(
|
|
|
10298
10298
|
);
|
|
10299
10299
|
return { searchState: t, updateSearch: i };
|
|
10300
10300
|
}, wc = () => {
|
|
10301
|
-
const e = Z(null), [t, o] = O("0"), i =
|
|
10301
|
+
const e = Z(null), [t, o] = O("0"), i = _(
|
|
10302
10302
|
() => ({ height: t, ref: e }),
|
|
10303
10303
|
[t]
|
|
10304
10304
|
), a = w((r) => {
|
|
@@ -10406,7 +10406,7 @@ const Jn = Object.fromEntries(
|
|
|
10406
10406
|
}) => {
|
|
10407
10407
|
const l = A(), [s, c] = O(r), [d, p] = O(
|
|
10408
10408
|
() => new Set(o)
|
|
10409
|
-
), [g, h] = O(null), f = Z(null), x =
|
|
10409
|
+
), [g, h] = O(null), f = Z(null), x = _(() => new Set(o), [o]), y = _(
|
|
10410
10410
|
() => [...t].sort(
|
|
10411
10411
|
(D, F) => Number(d.has(F.value)) - Number(d.has(D.value))
|
|
10412
10412
|
),
|
|
@@ -10533,7 +10533,7 @@ const Jn = Object.fromEntries(
|
|
|
10533
10533
|
) : void 0
|
|
10534
10534
|
] });
|
|
10535
10535
|
}, ro = (e, t) => e.includes(t) ? e.filter((o) => o !== t) : [...e, t], Rc = re(function({ id: t, label: o, option: i }, a) {
|
|
10536
|
-
const r = A(), { values: l, setValues: s, navMode: c } = we(Ge), d = i.items ?? [], p = i.includeLabel ?? "Include", g = i.excludeLabel ?? "Exclude", { include: h, exclude: f } =
|
|
10536
|
+
const r = A(), { values: l, setValues: s, navMode: c } = we(Ge), d = i.items ?? [], p = i.includeLabel ?? "Include", g = i.excludeLabel ?? "Exclude", { include: h, exclude: f } = _(
|
|
10537
10537
|
() => Ve(l[t] ?? ""),
|
|
10538
10538
|
[l, t]
|
|
10539
10539
|
), x = w(
|
|
@@ -10962,7 +10962,7 @@ const Jn = Object.fromEntries(
|
|
|
10962
10962
|
(T) => T.type === "includeExclude"
|
|
10963
10963
|
), v = o?.find(
|
|
10964
10964
|
(T) => T.type === "checkboxes" && T.excludeLabel
|
|
10965
|
-
), { mode: S, values: C } = Ie(b ?? ""), E = S === "exclude", z = C.length > 0, R =
|
|
10965
|
+
), { mode: S, values: C } = Ie(b ?? ""), E = S === "exclude", z = C.length > 0, R = _(() => o?.map((T) => (T?.items ?? []).filter(
|
|
10966
10966
|
(U) => U.label?.toLowerCase().includes(s.toLowerCase()) ?? !1
|
|
10967
10967
|
)) ?? [], [o, s]), j = w(() => {
|
|
10968
10968
|
p((T) => ({ ...T, [r]: "" }));
|
|
@@ -11006,27 +11006,27 @@ const Jn = Object.fromEntries(
|
|
|
11006
11006
|
if (L === "checkboxes") {
|
|
11007
11007
|
const { mode: W, values: K } = Ie(
|
|
11008
11008
|
P[r] ?? ""
|
|
11009
|
-
),
|
|
11009
|
+
), G = K.includes(T) ? K.filter((X) => X !== T) : [...K, T];
|
|
11010
11010
|
return {
|
|
11011
11011
|
...P,
|
|
11012
|
-
[r]: dt({ mode: W, values:
|
|
11012
|
+
[r]: dt({ mode: W, values: G })
|
|
11013
11013
|
};
|
|
11014
11014
|
}
|
|
11015
11015
|
if (L === "dateRange") {
|
|
11016
11016
|
const W = Vt(P[r] ?? ""), K = W.filter(
|
|
11017
11017
|
(te) => te !== "-" && !RegExp(/^\d+\-\d+\-\d+$/).test(te.trim())
|
|
11018
|
-
),
|
|
11018
|
+
), G = W.filter(
|
|
11019
11019
|
(te) => ce(te).isValid() && ce(te).isAfter(ce("1903-01-01"))
|
|
11020
11020
|
), X = ce(T, "YYYY-MM-DD", !0), oe = ["-", "-"];
|
|
11021
|
-
return
|
|
11021
|
+
return G.length === 2 ? (oe[0] = G[0], oe[1] = G[1]) : G.length === 1 && (X.isAfter(ce(G[0])) ? (oe[0] = G[0], oe[1] = T) : (oe[0] = T, oe[1] = G[0])), oe[U ?? 0] = T, { ...P, [r]: [...K, ...oe].join(",") };
|
|
11022
11022
|
}
|
|
11023
11023
|
if (L === "numberRange") {
|
|
11024
11024
|
const W = Vt(P[r] ?? ""), K = W.filter(
|
|
11025
11025
|
(te) => te !== "-" && !RegExp(/^\d+$/).test(te.trim())
|
|
11026
|
-
),
|
|
11026
|
+
), G = W.filter(
|
|
11027
11027
|
(te) => te === "-" || RegExp(/^\d+$/).test(te.trim())
|
|
11028
11028
|
), X = ["-", "-"];
|
|
11029
|
-
|
|
11029
|
+
G.forEach((te, ae) => {
|
|
11030
11030
|
if (ae >= 2) return;
|
|
11031
11031
|
const $e = te.trim();
|
|
11032
11032
|
RegExp(/^\d+$/).test($e) ? X[ae] = Number($e) : $e === "-" && (X[ae] = "-");
|
|
@@ -11048,13 +11048,13 @@ const Jn = Object.fromEntries(
|
|
|
11048
11048
|
}
|
|
11049
11049
|
if (L === "list") {
|
|
11050
11050
|
const K = Vt(P[r] ?? "").filter(
|
|
11051
|
-
(
|
|
11051
|
+
(G) => G === "-" || RegExp(/^\d+$/).test(G) || RegExp(/^\d+\-\d+\-\d+$/).test(G.trim())
|
|
11052
11052
|
);
|
|
11053
11053
|
return { ...P, [r]: [...K, T].join(",") };
|
|
11054
11054
|
}
|
|
11055
11055
|
if (L === "textCheckbox") {
|
|
11056
|
-
const W = P[r] ?? "", K = W.match(/^textCheck:(true|false),(.*)$/),
|
|
11057
|
-
return !X &&
|
|
11056
|
+
const W = P[r] ?? "", K = W.match(/^textCheck:(true|false),(.*)$/), G = K ? K[2] : W, X = T === "true";
|
|
11057
|
+
return !X && G === "" ? { ...P, [r]: "" } : { ...P, [r]: `textCheck:${X},${G}` };
|
|
11058
11058
|
}
|
|
11059
11059
|
if (L === "text") {
|
|
11060
11060
|
const K = (P[r] ?? "").match(/^textCheck:(true|false),/);
|
|
@@ -11238,19 +11238,19 @@ const Jn = Object.fromEntries(
|
|
|
11238
11238
|
const f = Rt("filters"), { calendarState: x } = vc(), { searchState: y, updateSearch: b } = mc(!1), { scrollState: k, updateScrollHeight: v } = wc(), [S, C] = O(""), [E, z] = O(null), { refs: R } = Ze({ placement: "bottom-start" }), { refs: j } = Ze({
|
|
11239
11239
|
elements: { reference: R.reference.current },
|
|
11240
11240
|
placement: "right-end"
|
|
11241
|
-
}), { activeFilters: M, values: D, setValues: F } = i, { previousValue: Y } = y, { menu: T, inline: L } =
|
|
11241
|
+
}), { activeFilters: M, values: D, setValues: F } = i, { previousValue: Y } = y, { menu: T, inline: L } = _(
|
|
11242
11242
|
() => Oo(t),
|
|
11243
11243
|
[t]
|
|
11244
|
-
), { label: U, options: P } = Oa(T, S, Y), W = Pa(T), K = Lr(l) || l === null || S !== l,
|
|
11244
|
+
), { label: U, options: P } = Oa(T, S, Y), W = Pa(T), K = Lr(l) || l === null || S !== l, G = w(
|
|
11245
11245
|
(ae, $e) => {
|
|
11246
11246
|
C(ae), s(ae), z($e);
|
|
11247
11247
|
},
|
|
11248
11248
|
[s]
|
|
11249
11249
|
), X = w(
|
|
11250
11250
|
(ae) => {
|
|
11251
|
-
|
|
11251
|
+
G(ae, null);
|
|
11252
11252
|
},
|
|
11253
|
-
[
|
|
11253
|
+
[G]
|
|
11254
11254
|
), oe = w(() => {
|
|
11255
11255
|
f.isOpen || c(), f.toggle(), C(""), s(null), z(null), r({ searchGlobal: "", searchFilter: "" });
|
|
11256
11256
|
}, [f, s, r, c]), te = w(() => {
|
|
@@ -11266,10 +11266,10 @@ const Jn = Object.fromEntries(
|
|
|
11266
11266
|
h,
|
|
11267
11267
|
() => ({
|
|
11268
11268
|
openAndNavigate: (ae, $e) => {
|
|
11269
|
-
f.isOpen || (c(), f.open()), r({ searchGlobal: "", searchFilter: "" }), b({ previousValue: D[ae] ?? "" }),
|
|
11269
|
+
f.isOpen || (c(), f.open()), r({ searchGlobal: "", searchFilter: "" }), b({ previousValue: D[ae] ?? "" }), G(ae, $e ?? null);
|
|
11270
11270
|
}
|
|
11271
11271
|
}),
|
|
11272
|
-
[f, c, r, b, D,
|
|
11272
|
+
[f, c, r, b, D, G]
|
|
11273
11273
|
), Ce(R.floating.current, te, [
|
|
11274
11274
|
R.reference.current,
|
|
11275
11275
|
j.floating.current
|
|
@@ -11347,10 +11347,10 @@ const Jn = Object.fromEntries(
|
|
|
11347
11347
|
);
|
|
11348
11348
|
}, Mc = re(
|
|
11349
11349
|
({ disabled: e = !1, filters: t, tooltip: o, storageKey: i, width: a, justify: r }, l) => {
|
|
11350
|
-
const s =
|
|
11350
|
+
const s = _(Mo, []), c = _(() => i ?? s, [i, s]), d = Ho({ filters: t, storageKey: i }), [p, g] = O(null), [h, f] = O({
|
|
11351
11351
|
searchGlobal: "",
|
|
11352
11352
|
searchFilter: ""
|
|
11353
|
-
}), x =
|
|
11353
|
+
}), x = _(
|
|
11354
11354
|
() => Object.values(d.values).some(
|
|
11355
11355
|
(k) => !!k && k !== "undefined"
|
|
11356
11356
|
),
|
|
@@ -13626,10 +13626,10 @@ const Lg = ({
|
|
|
13626
13626
|
}) => {
|
|
13627
13627
|
const i = Gt.toArray(
|
|
13628
13628
|
e
|
|
13629
|
-
), a =
|
|
13629
|
+
), a = _(
|
|
13630
13630
|
() => Gt.count(e),
|
|
13631
13631
|
[e]
|
|
13632
|
-
), r =
|
|
13632
|
+
), r = _(
|
|
13633
13633
|
() => a * o,
|
|
13634
13634
|
[a, o]
|
|
13635
13635
|
);
|
|
@@ -13955,7 +13955,7 @@ const Lg = ({
|
|
|
13955
13955
|
i?.(Y), x(!1);
|
|
13956
13956
|
},
|
|
13957
13957
|
[t, i]
|
|
13958
|
-
), R = f && (y.trim().length > 0 || t.length > 0), j =
|
|
13958
|
+
), R = f && (y.trim().length > 0 || t.length > 0), j = _(
|
|
13959
13959
|
() => t.length === 0 ? /* @__PURE__ */ n(Md, { children: c }) : /* @__PURE__ */ n(Pd, { role: "listbox", children: t.map(
|
|
13960
13960
|
(D, F) => /* @__PURE__ */ n(Od, { onClick: z, role: "option", children: o(D) }, F)
|
|
13961
13961
|
) }),
|
|
@@ -15013,7 +15013,7 @@ const Lg = ({
|
|
|
15013
15013
|
variant: i = "default",
|
|
15014
15014
|
onItemClick: a
|
|
15015
15015
|
}) => {
|
|
15016
|
-
const r =
|
|
15016
|
+
const r = _(
|
|
15017
15017
|
() => e.map((d) => d.id),
|
|
15018
15018
|
[e]
|
|
15019
15019
|
), [l, s] = Ra(r, {
|
|
@@ -15077,15 +15077,15 @@ const Lg = ({
|
|
|
15077
15077
|
export: a = !1,
|
|
15078
15078
|
headers: r = {},
|
|
15079
15079
|
name: l = "Report"
|
|
15080
|
-
} = e, s =
|
|
15080
|
+
} = e, s = _(
|
|
15081
15081
|
() => q.isUndefined(i) ? po(t) : po(t).map(
|
|
15082
15082
|
(p) => q.pick(p, i)
|
|
15083
15083
|
),
|
|
15084
15084
|
[t, i]
|
|
15085
|
-
), c =
|
|
15085
|
+
), c = _(
|
|
15086
15086
|
() => s.length > 0 && !q.isEmpty(r),
|
|
15087
15087
|
[s.length, r]
|
|
15088
|
-
), d =
|
|
15088
|
+
), d = _(
|
|
15089
15089
|
() => (c ? Object.keys(s[0]) : []).map(
|
|
15090
15090
|
(p) => q.includes(Object.keys(r), p) ? { key: p, label: r[p] } : { key: p, label: p }
|
|
15091
15091
|
),
|
|
@@ -15101,10 +15101,10 @@ const Lg = ({
|
|
|
15101
15101
|
}
|
|
15102
15102
|
) : /* @__PURE__ */ n(xe, { children: o });
|
|
15103
15103
|
}, gp = (e) => {
|
|
15104
|
-
const { table: t } = e, { meta: o } = t.options, [i, a] = O(0), [, r] = t.getHeaderGroups(), l = t.getState(), s =
|
|
15104
|
+
const { table: t } = e, { meta: o } = t.options, [i, a] = O(0), [, r] = t.getHeaderGroups(), l = t.getState(), s = _(
|
|
15105
15105
|
() => t.getAllLeafColumns().filter((g) => g.id !== "selection"),
|
|
15106
15106
|
[t]
|
|
15107
|
-
), c =
|
|
15107
|
+
), c = _(() => s.map(
|
|
15108
15108
|
(g) => ({
|
|
15109
15109
|
group: g.parent?.id,
|
|
15110
15110
|
id: g.id,
|
|
@@ -15582,19 +15582,22 @@ const Lg = ({
|
|
|
15582
15582
|
display: flex;
|
|
15583
15583
|
width: 100%;
|
|
15584
15584
|
`, xp = () => {
|
|
15585
|
-
const e = A(), { table: t } = we(Re), { loading: o } = t?.options.meta ?? {}, i =
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15594
|
-
|
|
15585
|
+
const e = A(), { table: t } = we(Re), { loading: o } = t?.options.meta ?? {}, i = w(
|
|
15586
|
+
(s) => {
|
|
15587
|
+
const c = s.findIndex(
|
|
15588
|
+
(d) => d.column.id !== "selection"
|
|
15589
|
+
);
|
|
15590
|
+
return c === -1 ? 0 : c;
|
|
15591
|
+
},
|
|
15592
|
+
[]
|
|
15593
|
+
), a = w(
|
|
15594
|
+
(s, c, d) => {
|
|
15595
|
+
if (c === d)
|
|
15596
|
+
return (p) => {
|
|
15597
|
+
p.stopPropagation(), t?.options?.onRowClick?.(s);
|
|
15595
15598
|
};
|
|
15596
15599
|
},
|
|
15597
|
-
[
|
|
15600
|
+
[t]
|
|
15598
15601
|
), r = w(
|
|
15599
15602
|
(s) => (c) => {
|
|
15600
15603
|
c.stopPropagation(), s.toggleExpanded();
|
|
@@ -15624,47 +15627,54 @@ const Lg = ({
|
|
|
15624
15627
|
textAlign: "center",
|
|
15625
15628
|
children: "No data to display"
|
|
15626
15629
|
}
|
|
15627
|
-
) }) }) }) : /* @__PURE__ */ n("tbody", { children: t?.getRowModel().rows.map((s) =>
|
|
15628
|
-
|
|
15629
|
-
|
|
15630
|
-
|
|
15631
|
-
"
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
|
|
15635
|
-
"
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
|
|
15646
|
-
|
|
15647
|
-
|
|
15648
|
-
|
|
15649
|
-
|
|
15650
|
-
|
|
15651
|
-
|
|
15652
|
-
|
|
15653
|
-
|
|
15654
|
-
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
|
|
15659
|
-
|
|
15660
|
-
|
|
15661
|
-
|
|
15662
|
-
|
|
15663
|
-
|
|
15664
|
-
|
|
15665
|
-
|
|
15666
|
-
|
|
15667
|
-
|
|
15630
|
+
) }) }) }) : /* @__PURE__ */ n("tbody", { children: t?.getRowModel().rows.map((s) => {
|
|
15631
|
+
const c = s.getVisibleCells(), d = i(c);
|
|
15632
|
+
return /* @__PURE__ */ u(bt.Fragment, { children: [
|
|
15633
|
+
/* @__PURE__ */ n(
|
|
15634
|
+
"tr",
|
|
15635
|
+
{
|
|
15636
|
+
"aria-expanded": s.getIsExpanded(),
|
|
15637
|
+
className: s.getIsSelected() ? "selected" : "",
|
|
15638
|
+
"data-testid": `row-${s.id}`,
|
|
15639
|
+
children: c.map((p, g) => /* @__PURE__ */ n(
|
|
15640
|
+
"td",
|
|
15641
|
+
{
|
|
15642
|
+
className: g === d && t.options.onRowClick ? "clickable" : "",
|
|
15643
|
+
"data-testid": `cell-${p.id}`,
|
|
15644
|
+
onClick: a(
|
|
15645
|
+
s,
|
|
15646
|
+
g,
|
|
15647
|
+
d
|
|
15648
|
+
),
|
|
15649
|
+
children: /* @__PURE__ */ u(bp, { children: [
|
|
15650
|
+
g === d && s.getCanExpand() ? /* @__PURE__ */ n(
|
|
15651
|
+
"button",
|
|
15652
|
+
{
|
|
15653
|
+
onClick: r(s),
|
|
15654
|
+
style: { cursor: "pointer", marginRight: "1rem" },
|
|
15655
|
+
children: /* @__PURE__ */ n(
|
|
15656
|
+
N,
|
|
15657
|
+
{
|
|
15658
|
+
icon: s.getIsExpanded() ? "angle-up" : "angle-down",
|
|
15659
|
+
iconSize: "lg",
|
|
15660
|
+
iconType: "fa-light"
|
|
15661
|
+
}
|
|
15662
|
+
)
|
|
15663
|
+
}
|
|
15664
|
+
) : void 0,
|
|
15665
|
+
Ut(
|
|
15666
|
+
p.column.columnDef.cell,
|
|
15667
|
+
p.getContext()
|
|
15668
|
+
)
|
|
15669
|
+
] })
|
|
15670
|
+
},
|
|
15671
|
+
p.id
|
|
15672
|
+
))
|
|
15673
|
+
}
|
|
15674
|
+
),
|
|
15675
|
+
s.getIsExpanded() ? /* @__PURE__ */ n("tr", { "data-testid": `row-${s.id}-expand`, id: "description", children: /* @__PURE__ */ n("td", { colSpan: 100, children: l(s) }) }) : void 0
|
|
15676
|
+
] }, s.id);
|
|
15677
|
+
}) });
|
|
15668
15678
|
}, mp = () => {
|
|
15669
15679
|
const {
|
|
15670
15680
|
containerRef: e,
|
|
@@ -15764,7 +15774,7 @@ const Lg = ({
|
|
|
15764
15774
|
open: c,
|
|
15765
15775
|
placement: "top-end",
|
|
15766
15776
|
whileElementsMounted: mt
|
|
15767
|
-
}), x =
|
|
15777
|
+
}), x = _(
|
|
15768
15778
|
() => Zr(
|
|
15769
15779
|
[vp, kp, Cp, fo],
|
|
15770
15780
|
// eslint-disable-next-line functional/prefer-immutable-types
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { DesignTokensCss as e } from "../design-tokens-css/index.js";
|
|
3
3
|
import { GlobalTypography as m } from "../global-typography/index.js";
|
|
4
|
-
import { C as i } from "../../components-
|
|
4
|
+
import { C as i } from "../../components-Bys1Jmds.mjs";
|
|
5
5
|
const a = ({
|
|
6
6
|
children: o
|
|
7
7
|
}) => /* @__PURE__ */ s(i, { children: [
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bB as a, bC as u, bD as b, bE as l, bF as o, bI as c, bJ as i, bK as r, bL as C } from "../components-
|
|
1
|
+
import { bB as a, bC as u, bD as b, bE as l, bF as o, bI as c, bJ as i, bK as r, bL as C } from "../components-Bys1Jmds.mjs";
|
|
2
2
|
export {
|
|
3
3
|
a as useActiveSection,
|
|
4
4
|
u as useCarousel,
|