impact-nova 1.7.17 → 1.7.19
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/ui/ag-grid-react/index.js +215 -170
- package/dist/components/ui/data-table/data-table-context.d.ts +1 -1
- package/dist/components/ui/data-table/data-table-format-options.js +9 -5
- package/dist/components/ui/data-table/data-table-saved-views.js +43 -43
- package/dist/components/ui/data-table/data-table.js +12 -11
- package/dist/components/ui/toaster.js +41 -39
- package/dist/components/ui/types/data-table-saved-views.types.d.ts +2 -0
- package/dist/i18n/defaultMessages.d.ts +1 -0
- package/dist/i18n/defaultMessages.js +11 -10
- package/dist/i18n/locales/de.js +1 -0
- package/dist/i18n/locales/es.js +1 -0
- package/dist/i18n/locales/hi.js +1 -0
- package/dist/i18n/locales/kn.js +1 -0
- package/dist/impact-nova.css +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as H, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { ChevronDown as be, Star as P, Search as xe, Bookmark as ve, Pencil as ge, Trash2 as ye } from "lucide-react";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as w } from "../../../lib/utils.js";
|
|
5
5
|
import { Popover as Ne, PopoverTrigger as we, PopoverContent as Te } from "../popover.js";
|
|
6
6
|
import { Tooltip as J, TooltipTrigger as W, TooltipContent as X } from "../tooltip.js";
|
|
7
7
|
import { Button as d } from "../button.js";
|
|
8
8
|
import { Badge as B } from "../badge.js";
|
|
9
|
-
import { Input as
|
|
9
|
+
import { Input as Ve } from "../input.js";
|
|
10
10
|
import { Separator as Z } from "../separator.js";
|
|
11
11
|
import { Skeleton as O } from "../skeleton.js";
|
|
12
|
-
import { Prompt as
|
|
12
|
+
import { Prompt as Ce } from "../prompt.js";
|
|
13
13
|
import { useImpactNovaI18n as ke } from "../../../i18n/ImpactNovaI18nContext.js";
|
|
14
14
|
function De(h) {
|
|
15
|
-
return h.
|
|
15
|
+
return h.isSystemView ? "system" : h.isDefaultView ? "default" : h.isActive ? "active" : "other";
|
|
16
16
|
}
|
|
17
17
|
const Se = ["default", "active", "system"], Fe = ({
|
|
18
18
|
isSaveViewEnabled: h = !0,
|
|
@@ -22,7 +22,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
22
22
|
menuOpen: E,
|
|
23
23
|
defaultMenuOpen: te = !1,
|
|
24
24
|
onMenuOpenChange: j,
|
|
25
|
-
onSearch:
|
|
25
|
+
onSearch: T,
|
|
26
26
|
isLoadingViews: I = !1,
|
|
27
27
|
customListContent: R,
|
|
28
28
|
disableApply: ae = !1,
|
|
@@ -34,64 +34,64 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
34
34
|
onDeleteView: oe,
|
|
35
35
|
onSetDefaultView: _
|
|
36
36
|
}) => {
|
|
37
|
-
const { t: a } = ke(),
|
|
37
|
+
const { t: a } = ke(), V = E !== void 0, [ce, de] = i.useState(
|
|
38
38
|
te
|
|
39
|
-
), m =
|
|
39
|
+
), m = V ? !!E : ce, u = i.useCallback(
|
|
40
40
|
(e) => {
|
|
41
|
-
|
|
41
|
+
V || de(e), j?.(e);
|
|
42
42
|
},
|
|
43
|
-
[
|
|
44
|
-
), [b, C] = i.useState("All"), [g,
|
|
43
|
+
[V, j]
|
|
44
|
+
), [b, C] = i.useState("All"), [g, k] = i.useState(""), [L, D] = i.useState("");
|
|
45
45
|
i.useEffect(() => {
|
|
46
|
-
const e = window.setTimeout(() =>
|
|
46
|
+
const e = window.setTimeout(() => D(g), 300);
|
|
47
47
|
return () => window.clearTimeout(e);
|
|
48
48
|
}, [g]), i.useEffect(() => {
|
|
49
|
-
|
|
50
|
-
}, [L,
|
|
49
|
+
T && T(L);
|
|
50
|
+
}, [L, T]);
|
|
51
51
|
const F = i.useMemo(
|
|
52
52
|
() => s.find((e) => e.isActive),
|
|
53
53
|
[s]
|
|
54
|
-
),
|
|
54
|
+
), o = F ?? null, Q = q ?? F?.viewName ?? a("dataTable.savedViewsNotApplicable"), [y, S] = i.useState(null), [x, U] = i.useState(null), Y = i.useRef(!1);
|
|
55
55
|
i.useEffect(() => {
|
|
56
56
|
const e = m && !Y.current;
|
|
57
57
|
if (Y.current = m, e) {
|
|
58
|
-
const l = s.find((
|
|
59
|
-
S(l?.id ?? null), C("All"),
|
|
58
|
+
const l = s.find((c) => c.isActive);
|
|
59
|
+
S(l?.id ?? null), C("All"), k(""), D("");
|
|
60
60
|
}
|
|
61
61
|
}, [m, s]);
|
|
62
|
-
const v = i.useMemo(() => b === "All" ? s : s.filter((e) => e.viewType === b), [s, b]), p = g.trim().toLowerCase(),
|
|
62
|
+
const v = i.useMemo(() => b === "All" ? s : s.filter((e) => e.viewType === b), [s, b]), p = g.trim().toLowerCase(), N = i.useCallback(
|
|
63
63
|
(e, l) => l ? (e.viewName ?? "").trim().toLowerCase().includes(l) : !0,
|
|
64
64
|
[]
|
|
65
65
|
), M = i.useMemo(() => {
|
|
66
66
|
let e = v;
|
|
67
|
-
return p && (e = e.filter((l) =>
|
|
68
|
-
}, [v, p,
|
|
67
|
+
return p && (e = e.filter((l) => N(l, p))), e;
|
|
68
|
+
}, [v, p, N]), f = i.useMemo(() => {
|
|
69
69
|
if (v.length === 0) return [];
|
|
70
70
|
const e = Object.groupBy(v, De);
|
|
71
71
|
return Se.flatMap((l) => {
|
|
72
|
-
const
|
|
73
|
-
return
|
|
72
|
+
const c = e[l]?.[0];
|
|
73
|
+
return c ? p && !N(c, p) ? [] : [c] : [];
|
|
74
74
|
});
|
|
75
|
-
}, [v, p,
|
|
75
|
+
}, [v, p, N]), z = i.useMemo(() => {
|
|
76
76
|
const e = new Set(f.map((l) => l.id));
|
|
77
77
|
return M.filter((l) => !e.has(l.id));
|
|
78
|
-
}, [M, f]), $ =
|
|
79
|
-
le?.($, { activeView:
|
|
78
|
+
}, [M, f]), $ = y === null ? null : s.find((e) => e.id === y) ?? null, me = () => {
|
|
79
|
+
le?.($, { activeView: o }), u(!1);
|
|
80
80
|
}, ue = () => {
|
|
81
|
-
re?.({ activeView:
|
|
81
|
+
re?.({ activeView: o, pendingView: $ }), u(!1);
|
|
82
82
|
}, pe = (e) => {
|
|
83
|
-
u(e), e || (
|
|
83
|
+
u(e), e || (k(""), D(""));
|
|
84
84
|
};
|
|
85
85
|
if (!h)
|
|
86
86
|
return null;
|
|
87
|
-
const fe = s.length > 0, K = (e, l,
|
|
88
|
-
const A =
|
|
87
|
+
const fe = s.length > 0, K = (e, l, c) => {
|
|
88
|
+
const A = y === e.id, G = l === "priority" && !!e.isActive, he = l === "list" && !!e.isActive;
|
|
89
89
|
return /* @__PURE__ */ n(
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
92
92
|
role: "button",
|
|
93
93
|
tabIndex: 0,
|
|
94
|
-
className:
|
|
94
|
+
className: w(
|
|
95
95
|
"mb-1 flex cursor-pointer items-center justify-between rounded-lg px-3 py-2 text-left text-sm font-medium font-['Manrope'] hover:bg-muted",
|
|
96
96
|
G && !A && "bg-primary/10 dark:bg-primary/15",
|
|
97
97
|
A && "bg-badge-info-muted text-badge-info-foreground",
|
|
@@ -106,7 +106,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
106
106
|
/* @__PURE__ */ t(W, { asChild: !0, children: /* @__PURE__ */ t(
|
|
107
107
|
"span",
|
|
108
108
|
{
|
|
109
|
-
className:
|
|
109
|
+
className: w(
|
|
110
110
|
"min-w-0 flex-1 truncate",
|
|
111
111
|
he && "underline decoration-primary decoration-2 underline-offset-2"
|
|
112
112
|
),
|
|
@@ -125,7 +125,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
125
125
|
className: "text-foreground hover:text-content-charcoal",
|
|
126
126
|
"aria-label": a("dataTable.savedViewsEdit"),
|
|
127
127
|
onClick: (r) => {
|
|
128
|
-
r.stopPropagation(), r.preventDefault(), u(!1), se?.(e, { activeView:
|
|
128
|
+
r.stopPropagation(), r.preventDefault(), u(!1), se?.(e, { activeView: o });
|
|
129
129
|
},
|
|
130
130
|
children: /* @__PURE__ */ t(ge, { className: "size-3.5" })
|
|
131
131
|
}
|
|
@@ -153,7 +153,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
153
153
|
className: "text-yellow-500 hover:text-yellow-600",
|
|
154
154
|
"aria-label": a("dataTable.savedViewsDefaultAction"),
|
|
155
155
|
onClick: (r) => {
|
|
156
|
-
r.stopPropagation(), r.preventDefault(), _?.(e, { activeView:
|
|
156
|
+
r.stopPropagation(), r.preventDefault(), _?.(e, { activeView: o });
|
|
157
157
|
},
|
|
158
158
|
children: /* @__PURE__ */ t(P, { className: "size-3.5 fill-current" })
|
|
159
159
|
}
|
|
@@ -166,7 +166,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
166
166
|
className: "text-yellow-500 hover:text-yellow-600",
|
|
167
167
|
"aria-label": a("dataTable.savedViewsSetDefault"),
|
|
168
168
|
onClick: (r) => {
|
|
169
|
-
r.stopPropagation(), r.preventDefault(), _?.(e, { activeView:
|
|
169
|
+
r.stopPropagation(), r.preventDefault(), _?.(e, { activeView: o });
|
|
170
170
|
},
|
|
171
171
|
children: /* @__PURE__ */ t(P, { className: "size-3.5" })
|
|
172
172
|
}
|
|
@@ -174,7 +174,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
174
174
|
] })
|
|
175
175
|
]
|
|
176
176
|
},
|
|
177
|
-
|
|
177
|
+
c
|
|
178
178
|
);
|
|
179
179
|
};
|
|
180
180
|
return /* @__PURE__ */ n(H, { children: [
|
|
@@ -182,7 +182,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
182
182
|
"div",
|
|
183
183
|
{
|
|
184
184
|
"data-component": "data-table-saved-views",
|
|
185
|
-
className:
|
|
185
|
+
className: w(
|
|
186
186
|
"mb-2 mx-4 rounded-lg bg-[linear-gradient(83.74deg,#F5F9EC_72.68%,#D7E5B2_108.88%)] flex min-w-0 flex-wrap items-center justify-between gap-2 px-2 py-3",
|
|
187
187
|
ne
|
|
188
188
|
),
|
|
@@ -215,7 +215,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
215
215
|
/* @__PURE__ */ t(
|
|
216
216
|
"span",
|
|
217
217
|
{
|
|
218
|
-
className:
|
|
218
|
+
className: w(
|
|
219
219
|
"flex size-6 shrink-0 items-center justify-center rounded-md bg-white transition-transform duration-200",
|
|
220
220
|
m && "rotate-180"
|
|
221
221
|
),
|
|
@@ -230,7 +230,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
230
230
|
Te,
|
|
231
231
|
{
|
|
232
232
|
align: "start",
|
|
233
|
-
className: "z-[
|
|
233
|
+
className: "z-[50] w-[min(100vw-24px,280px)] p-0 shadow-[0_0_4px_0_rgba(0,0,0,0.12)] overflow-visible",
|
|
234
234
|
sideOffset: 8,
|
|
235
235
|
children: /* @__PURE__ */ n("div", { className: "flex flex-col py-2", children: [
|
|
236
236
|
/* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-2 px-3 pb-2", children: [
|
|
@@ -280,12 +280,12 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
280
280
|
))
|
|
281
281
|
] }),
|
|
282
282
|
/* @__PURE__ */ t("div", { className: "px-3 pb-2", children: /* @__PURE__ */ t(
|
|
283
|
-
|
|
283
|
+
Ve,
|
|
284
284
|
{
|
|
285
285
|
size: "sm",
|
|
286
286
|
placeholder: a("dataTable.savedViewsSearchPlaceholder"),
|
|
287
287
|
value: g,
|
|
288
|
-
onChange: (e) =>
|
|
288
|
+
onChange: (e) => k(e.target.value),
|
|
289
289
|
prefix: /* @__PURE__ */ t(
|
|
290
290
|
xe,
|
|
291
291
|
{
|
|
@@ -335,7 +335,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
335
335
|
type: "button",
|
|
336
336
|
variant: "default",
|
|
337
337
|
size: "md",
|
|
338
|
-
disabled: ae,
|
|
338
|
+
disabled: ae || y === o?.id,
|
|
339
339
|
onClick: me,
|
|
340
340
|
children: a("dataTable.savedViewsApply")
|
|
341
341
|
}
|
|
@@ -356,7 +356,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
356
356
|
size: "sm",
|
|
357
357
|
className: "shrink-0 font-['Manrope']",
|
|
358
358
|
onClick: () => {
|
|
359
|
-
u(!1), ie?.({ activeView:
|
|
359
|
+
u(!1), ie?.({ activeView: o });
|
|
360
360
|
},
|
|
361
361
|
children: a("dataTable.savedViewsSave")
|
|
362
362
|
}
|
|
@@ -365,7 +365,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
365
365
|
}
|
|
366
366
|
),
|
|
367
367
|
/* @__PURE__ */ t(
|
|
368
|
-
|
|
368
|
+
Ce,
|
|
369
369
|
{
|
|
370
370
|
variant: "destructive",
|
|
371
371
|
open: x !== null,
|
|
@@ -378,7 +378,7 @@ const Se = ["default", "active", "system"], Fe = ({
|
|
|
378
378
|
}) : void 0,
|
|
379
379
|
confirmLabel: a("dataTable.savedViewsDeleteConfirmButton"),
|
|
380
380
|
onConfirm: () => {
|
|
381
|
-
x && oe?.(x, { activeView:
|
|
381
|
+
x && oe?.(x, { activeView: o });
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as D } from "react/jsx-runtime";
|
|
2
|
-
import { useState as l, useRef as O, useCallback as H, useMemo as b, useEffect as
|
|
2
|
+
import { useState as l, useRef as O, useCallback as H, useMemo as b, useEffect as y, memo as E } from "react";
|
|
3
3
|
import { AgGridWrapper as F } from "../ag-grid-react/index.js";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as _ } from "../../../lib/utils.js";
|
|
5
5
|
import { DataTableContext as N, DataTableSheetPortalContext as M, useDataTable as z, useDataTableSheetPortal as I } from "./data-table-context.js";
|
|
6
6
|
import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as j } from "./data-table-constants.js";
|
|
7
7
|
import { AG_GRID_VALUE_FORMATTERS as k } from "../ag-grid-react/value-formatters.js";
|
|
@@ -64,7 +64,7 @@ const w = {
|
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
66
|
"data-component": "data-table",
|
|
67
|
-
className:
|
|
67
|
+
className: _("flex flex-col w-full min-h-0 rounded-[inherit]", e),
|
|
68
68
|
style: {
|
|
69
69
|
"--ag-font-size": a,
|
|
70
70
|
"--ag-row-height": R
|
|
@@ -72,11 +72,12 @@ const w = {
|
|
|
72
72
|
children: o
|
|
73
73
|
}
|
|
74
74
|
) }) });
|
|
75
|
-
},
|
|
75
|
+
}, A = {
|
|
76
76
|
full: "full_no",
|
|
77
77
|
k: "thou",
|
|
78
78
|
m: "mil",
|
|
79
|
-
b: "bil"
|
|
79
|
+
b: "bil",
|
|
80
|
+
precision: "full_no"
|
|
80
81
|
}, L = E(function() {
|
|
81
82
|
const { setSheetTarget: e, scopedSheetOpen: t } = I();
|
|
82
83
|
return /* @__PURE__ */ i(
|
|
@@ -104,16 +105,16 @@ function J(o) {
|
|
|
104
105
|
...f
|
|
105
106
|
} = o, g = w[t], S = h ?? g, m = b(() => P(d), [d]), x = b(() => ({
|
|
106
107
|
...c,
|
|
107
|
-
formatType:
|
|
108
|
+
formatType: A[n]
|
|
108
109
|
}), [c, n]);
|
|
109
|
-
|
|
110
|
+
y(() => {
|
|
110
111
|
r?.resetRowHeights();
|
|
111
|
-
}, [t, r]),
|
|
112
|
+
}, [t, r]), y(() => {
|
|
112
113
|
if (r) {
|
|
113
114
|
const a = r.getGridOption("context") || {};
|
|
114
115
|
r.setGridOption("context", {
|
|
115
116
|
...a,
|
|
116
|
-
formatType:
|
|
117
|
+
formatType: A[n]
|
|
117
118
|
}), r.refreshCells({ force: !0 });
|
|
118
119
|
}
|
|
119
120
|
}, [n, r]);
|
|
@@ -123,7 +124,7 @@ function J(o) {
|
|
|
123
124
|
return /* @__PURE__ */ D(
|
|
124
125
|
"div",
|
|
125
126
|
{
|
|
126
|
-
className:
|
|
127
|
+
className: _(
|
|
127
128
|
"relative flex-1 min-h-0 w-full bg-canvas-elevated rounded-b-[inherit] grid-rounded-bottom",
|
|
128
129
|
p
|
|
129
130
|
),
|
|
@@ -147,7 +148,7 @@ function J(o) {
|
|
|
147
148
|
const K = ({
|
|
148
149
|
children: o,
|
|
149
150
|
className: e
|
|
150
|
-
}) => /* @__PURE__ */ i("div", { "data-component": "data-table-toolbar", className:
|
|
151
|
+
}) => /* @__PURE__ */ i("div", { "data-component": "data-table-toolbar", className: _("flex items-center justify-between px-4 py-3 shrink-0 bg-canvas-elevated rounded-t-[inherit]", e), children: o });
|
|
151
152
|
export {
|
|
152
153
|
q as DataTable,
|
|
153
154
|
J as DataTableContent,
|
|
@@ -1,91 +1,93 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as a, jsxs as v, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
3
|
import { useToast as z } from "../../hooks/use-toast.js";
|
|
4
4
|
import { ToastProvider as A, Toast as D, ToastTitle as F, ToastDescription as M, ToastClose as P, ToastViewport as W } from "./toast.js";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as p } from "../../lib/utils.js";
|
|
6
6
|
function _({
|
|
7
7
|
stacked: t = !1,
|
|
8
|
-
position:
|
|
8
|
+
position: d = "top-right"
|
|
9
9
|
}) {
|
|
10
|
-
const { toasts:
|
|
11
|
-
|
|
12
|
-
const e = [],
|
|
13
|
-
|
|
14
|
-
const c = E.current[
|
|
10
|
+
const { toasts: u } = z(), [x, b] = m.useState(!1), [g, H] = m.useState({}), E = m.useRef({});
|
|
11
|
+
m.useEffect(() => {
|
|
12
|
+
const e = [], l = setTimeout(() => {
|
|
13
|
+
u.forEach((i) => {
|
|
14
|
+
const c = E.current[i.id];
|
|
15
15
|
if (c) {
|
|
16
|
-
const
|
|
16
|
+
const r = new ResizeObserver(() => {
|
|
17
17
|
const s = c.offsetHeight;
|
|
18
|
-
s > 0 && H((o) => o[
|
|
18
|
+
s > 0 && H((o) => o[i.id] === s ? o : { ...o, [i.id]: s });
|
|
19
19
|
});
|
|
20
|
-
|
|
20
|
+
r.observe(c), e.push(r);
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
}, 32);
|
|
24
24
|
return () => {
|
|
25
|
-
clearTimeout(
|
|
25
|
+
clearTimeout(l), e.forEach((i) => i.disconnect());
|
|
26
26
|
};
|
|
27
|
-
}, [
|
|
28
|
-
const n =
|
|
27
|
+
}, [u]);
|
|
28
|
+
const n = u.filter((e) => e.open !== !1), T = d.startsWith("bottom"), w = d.endsWith("left"), N = T ? -1 : 1, O = 10, R = 12, y = m.useMemo(() => {
|
|
29
29
|
let e = 0;
|
|
30
30
|
return n.map((f) => {
|
|
31
|
-
const
|
|
32
|
-
return e += (
|
|
31
|
+
const l = e;
|
|
32
|
+
return e += (g[f.id] || 70) + R, l;
|
|
33
33
|
});
|
|
34
|
-
}, [n,
|
|
35
|
-
return /* @__PURE__ */
|
|
34
|
+
}, [n, g]), I = (y[n.length - 1] || 0) + (g[n[n.length - 1]?.id] || 70);
|
|
35
|
+
return /* @__PURE__ */ a(A, { children: /* @__PURE__ */ v(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
onMouseEnter: () => t && b(!0),
|
|
39
39
|
onMouseLeave: () => t && b(!1),
|
|
40
|
-
className:
|
|
40
|
+
className: p(
|
|
41
41
|
"fixed z-[60] md:max-w-[420px] w-full sm:w-[420px] pointer-events-none transition-all duration-300",
|
|
42
|
-
|
|
42
|
+
T ? "bottom-4 sm:bottom-8" : "top-4 sm:top-8",
|
|
43
43
|
w ? "left-4 sm:left-8" : "right-4 sm:right-8"
|
|
44
44
|
),
|
|
45
45
|
style: {
|
|
46
|
-
height: t && n.length > 0 ?
|
|
46
|
+
height: t && n.length > 0 ? x ? `${I + 100}px` : "140px" : t ? "0px" : "auto",
|
|
47
47
|
pointerEvents: t && n.length > 0 ? "auto" : "none"
|
|
48
48
|
},
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
const s = n.findIndex((h) => h.id === e), o = s !== -1, S = o && (!t ||
|
|
52
|
-
return /* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ a("div", { className: "relative w-full h-full pointer-events-none", children: u.map(function({ id: e, title: f, description: l, action: i, children: c, ...r }) {
|
|
51
|
+
const s = n.findIndex((h) => h.id === e), o = s !== -1, S = o && (!t || x || s < 3), $ = t ? x ? `translateY(${(o ? y[s] : 0) * N}px) scale(1)` : `translateY(${(o ? s : 0) * N * O}px) scale(${1 - (o ? s : 0) * 0.02})` : void 0;
|
|
52
|
+
return /* @__PURE__ */ a(
|
|
53
53
|
D,
|
|
54
54
|
{
|
|
55
|
-
...
|
|
55
|
+
...r,
|
|
56
56
|
ref: (h) => {
|
|
57
57
|
h && (E.current[e] = h);
|
|
58
58
|
},
|
|
59
|
-
className:
|
|
60
|
-
|
|
59
|
+
className: p(
|
|
60
|
+
r.className,
|
|
61
61
|
"transition-all duration-500 ease-in-out",
|
|
62
62
|
t && "absolute w-full pointer-events-auto",
|
|
63
63
|
t && (w ? "left-0" : "right-0"),
|
|
64
|
-
t && (
|
|
64
|
+
t && (T ? "bottom-0" : "top-0"),
|
|
65
65
|
S ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
66
66
|
),
|
|
67
67
|
style: {
|
|
68
68
|
zIndex: 100 - (o ? s : 0),
|
|
69
69
|
transform: $,
|
|
70
|
-
...
|
|
70
|
+
...r.style
|
|
71
71
|
},
|
|
72
|
-
children: c || /* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
f && /* @__PURE__ */
|
|
75
|
-
|
|
72
|
+
children: c || /* @__PURE__ */ v(j, { children: [
|
|
73
|
+
/* @__PURE__ */ v("div", { className: p("grid gap-1", r.variant?.toString().startsWith("basic") && "flex flex-col items-center justify-center w-full"), children: [
|
|
74
|
+
f && /* @__PURE__ */ a(F, { children: f }),
|
|
75
|
+
l && /* @__PURE__ */ a(M, { children: l })
|
|
76
76
|
] }),
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
/* @__PURE__ */ v("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
78
|
+
i,
|
|
79
|
+
/* @__PURE__ */ a(P, { className: "static relative opacity-100 position-static" })
|
|
80
|
+
] })
|
|
79
81
|
] })
|
|
80
82
|
},
|
|
81
83
|
e
|
|
82
84
|
);
|
|
83
85
|
}) }),
|
|
84
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ a(
|
|
85
87
|
W,
|
|
86
88
|
{
|
|
87
|
-
position:
|
|
88
|
-
className:
|
|
89
|
+
position: d,
|
|
90
|
+
className: p(
|
|
89
91
|
"relative w-full h-full p-0 m-0 pointer-events-none",
|
|
90
92
|
t && "static"
|
|
91
93
|
)
|
|
@@ -8,6 +8,8 @@ export interface SavedTableViewItem {
|
|
|
8
8
|
isEditable?: boolean;
|
|
9
9
|
isDeletable?: boolean;
|
|
10
10
|
isDefaultView?: boolean;
|
|
11
|
+
/** When true, this view is a system-generated view (shown in priority section, not editable/deletable). */
|
|
12
|
+
isSystemView?: boolean;
|
|
11
13
|
/** When true, hide the default-view star control (legacy `notReqDefaultView`). */
|
|
12
14
|
hideDefaultStar?: boolean;
|
|
13
15
|
}
|
|
@@ -116,6 +116,7 @@ export interface DataTableMessages {
|
|
|
116
116
|
numericK: string;
|
|
117
117
|
numericM: string;
|
|
118
118
|
numericB: string;
|
|
119
|
+
numericPrecision: string;
|
|
119
120
|
/** Saved table views (toolbar / settings sheet) */
|
|
120
121
|
savedViewsNotApplicable: string;
|
|
121
122
|
savedViewsOpenMenu: string;
|
|
@@ -100,6 +100,7 @@ const e = {
|
|
|
100
100
|
numericK: "In K (Thousands)",
|
|
101
101
|
numericM: "In M (Millions)",
|
|
102
102
|
numericB: "In B (Billions)",
|
|
103
|
+
numericPrecision: "Full precision (decimals)",
|
|
103
104
|
savedViewsNotApplicable: "Not applicable",
|
|
104
105
|
savedViewsOpenMenu: "Open saved views",
|
|
105
106
|
savedViewsTitle: "Saved views",
|
|
@@ -119,7 +120,7 @@ const e = {
|
|
|
119
120
|
savedViewsDeleteConfirmTitle: "Delete saved view?",
|
|
120
121
|
savedViewsDeleteConfirmDescription: 'This will permanently delete "{{viewName}}". You cannot undo this action.',
|
|
121
122
|
savedViewsDeleteConfirmButton: "Delete"
|
|
122
|
-
},
|
|
123
|
+
}, i = {
|
|
123
124
|
close: "Close",
|
|
124
125
|
breadcrumb: "breadcrumb",
|
|
125
126
|
remove: "Remove",
|
|
@@ -131,7 +132,7 @@ const e = {
|
|
|
131
132
|
toggle: "Toggle",
|
|
132
133
|
more: "More",
|
|
133
134
|
loading: "Loading"
|
|
134
|
-
},
|
|
135
|
+
}, r = {
|
|
135
136
|
cancel: "Cancel",
|
|
136
137
|
confirm: "Confirm"
|
|
137
138
|
}, c = {
|
|
@@ -160,13 +161,13 @@ const e = {
|
|
|
160
161
|
}, m = {
|
|
161
162
|
scrollLeft: "Scroll left",
|
|
162
163
|
scrollRight: "Scroll right"
|
|
163
|
-
},
|
|
164
|
+
}, p = {
|
|
164
165
|
viewMore: "View More",
|
|
165
166
|
viewLess: "View Less",
|
|
166
167
|
logout: "Logout"
|
|
167
|
-
},
|
|
168
|
+
}, f = {
|
|
168
169
|
stepOfTotal: "Step {{current}} of {{total}}"
|
|
169
|
-
},
|
|
170
|
+
}, h = {
|
|
170
171
|
title: "Advanced Filter",
|
|
171
172
|
currentColumn: "Current Column",
|
|
172
173
|
allFilters: "All Filters",
|
|
@@ -217,16 +218,16 @@ const e = {
|
|
|
217
218
|
select: o,
|
|
218
219
|
nestedList: s,
|
|
219
220
|
dataTable: n,
|
|
220
|
-
aria:
|
|
221
|
-
prompt:
|
|
221
|
+
aria: i,
|
|
222
|
+
prompt: r,
|
|
222
223
|
filterStrip: c,
|
|
223
224
|
filterPanel: d,
|
|
224
|
-
advancedFilter:
|
|
225
|
+
advancedFilter: h,
|
|
225
226
|
gridHeader: S,
|
|
226
227
|
notificationPanel: u,
|
|
227
228
|
horizontalScroller: m,
|
|
228
|
-
sidebar:
|
|
229
|
-
stepper:
|
|
229
|
+
sidebar: p,
|
|
230
|
+
stepper: f
|
|
230
231
|
};
|
|
231
232
|
export {
|
|
232
233
|
v as defaultMessages
|
package/dist/i18n/locales/de.js
CHANGED
|
@@ -106,6 +106,7 @@ const e = {
|
|
|
106
106
|
numericK: "In T (Tausender)",
|
|
107
107
|
numericM: "In M (Millionen)",
|
|
108
108
|
numericB: "In Mrd (Milliarden)",
|
|
109
|
+
numericPrecision: "Volle Präzision (Dezimalstellen)",
|
|
109
110
|
savedViewsNotApplicable: "Nicht zutreffend",
|
|
110
111
|
savedViewsOpenMenu: "Gespeicherte Ansichten öffnen",
|
|
111
112
|
savedViewsTitle: "Gespeicherte Ansichten",
|
package/dist/i18n/locales/es.js
CHANGED
|
@@ -106,6 +106,7 @@ const e = {
|
|
|
106
106
|
numericK: "En K (miles)",
|
|
107
107
|
numericM: "En M (millones)",
|
|
108
108
|
numericB: "En B (miles de millones)",
|
|
109
|
+
numericPrecision: "Precisión completa (decimales)",
|
|
109
110
|
savedViewsNotApplicable: "No aplica",
|
|
110
111
|
savedViewsOpenMenu: "Abrir vistas guardadas",
|
|
111
112
|
savedViewsTitle: "Vistas guardadas",
|
package/dist/i18n/locales/hi.js
CHANGED
|
@@ -106,6 +106,7 @@ const e = {
|
|
|
106
106
|
numericK: "हज़ार में (K)",
|
|
107
107
|
numericM: "मिलियन में (M)",
|
|
108
108
|
numericB: "बिलियन में (B)",
|
|
109
|
+
numericPrecision: "पूर्ण परिशुद्धता (दशमलव)",
|
|
109
110
|
savedViewsNotApplicable: "लागू नहीं",
|
|
110
111
|
savedViewsOpenMenu: "सहेजे गए व्यू खोलें",
|
|
111
112
|
savedViewsTitle: "सहेजे गए व्यू",
|
package/dist/i18n/locales/kn.js
CHANGED
|
@@ -106,6 +106,7 @@ const e = {
|
|
|
106
106
|
numericK: "ಸಾವಿರದಲ್ಲಿ (K)",
|
|
107
107
|
numericM: "ಮಿಲಿಯನ್ನಲ್ಲಿ (M)",
|
|
108
108
|
numericB: "ಬಿಲಿಯನ್ನಲ್ಲಿ (B)",
|
|
109
|
+
numericPrecision: "ಪೂರ್ಣ ನಿಖರತೆ (ದಶಮಾಂಶಗಳು)",
|
|
109
110
|
savedViewsNotApplicable: "ಅನ್ವಯಿಸುವುದಿಲ್ಲ",
|
|
110
111
|
savedViewsOpenMenu: "ಉಳಿಸಿದ ವೀಕ್ಷಣೆಗಳನ್ನು ತೆರೆಯಿರಿ",
|
|
111
112
|
savedViewsTitle: "ಉಳಿಸಿದ ವೀಕ್ಷಣೆಗಳು",
|