@krosoft/react 0.0.263 → 0.0.265
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 +2 -2
- package/dist/components/core/table/index.js +599 -2
- package/dist/components/index.js +2 -2
- package/dist/constants/datatable.d.ts +2 -0
- package/dist/constants/datatable.d.ts.map +1 -1
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +5 -0
- package/dist/constants/search.d.ts +2 -0
- package/dist/constants/search.d.ts.map +1 -0
- package/dist/datatable-COQcYUrk.js +14 -0
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/ui/index.js +1 -1
- package/dist/hooks/ui/useServerTable.d.ts.map +1 -1
- package/dist/tailwind/index.d.ts +11 -0
- package/dist/tailwind/index.d.ts.map +1 -1
- package/dist/tailwind/index.js +12 -1
- package/dist/{ui-IEH46J4v.js → ui-CnhA3ntY.js} +1 -0
- package/package.json +1 -1
- package/dist/table-BWEBIVqj.js +0 -607
|
@@ -18,7 +18,7 @@ import { t as G } from "../../AppTitle-DBGJRsjU.js";
|
|
|
18
18
|
import { n as K, t as q } from "../../states-C6lWnADN.js";
|
|
19
19
|
import { AppPageHeader as J, KpiCardsLayout as Y } from "./layouts/index.js";
|
|
20
20
|
import { a as X, i as Z, n as Q, o as $, r as ee, t as te } from "../../navbar-Cl4welok.js";
|
|
21
|
-
import {
|
|
21
|
+
import { DataTable as ne, JsonTableOutput as re, TableActions as ie, TableBody as ae, TableBulkActions as oe, TableHeader as se, TablePagination as ce, TableSettings as le } from "./table/index.js";
|
|
22
22
|
import { AppTabContainer as ue, AppTabHeader as de, AppTabs as fe, AppVerticalTabs as pe } from "./tabs/index.js";
|
|
23
23
|
import { t as me } from "../../theme-Dwc4zNXG.js";
|
|
24
|
-
export { R as ActiveFilters, z as AdvancedFilters, k as AppActions, E as AppDialog, J as AppPageHeader, A as AppSubTitle, ue as AppTabContainer, de as AppTabHeader, fe as AppTabs, G as AppTitle, pe as AppVerticalTabs, v as BarChartHorizontal, C as BarChartVertical, _ as CHART_COLORS, y as ChartCard, S as CircularGauge, D as ConfirmationDialog, r as DashboardCard,
|
|
24
|
+
export { R as ActiveFilters, z as AdvancedFilters, k as AppActions, E as AppDialog, J as AppPageHeader, A as AppSubTitle, ue as AppTabContainer, de as AppTabHeader, fe as AppTabs, G as AppTitle, pe as AppVerticalTabs, v as BarChartHorizontal, C as BarChartVertical, _ as CHART_COLORS, y as ChartCard, S as CircularGauge, D as ConfirmationDialog, r as DashboardCard, ne as DataTable, P as DatePicker, I as DateRangePicker, l as Dialog, c as DialogClose, p as DialogContent, g as DialogDescription, s as DialogFooter, h as DialogHeader, d as DialogOverlay, f as DialogPortal, m as DialogTitle, u as DialogTrigger, N as ErrorAlert, K as ErrorState, B as FilterField, T as FormDialog, M as GenericForm, $ as GlobalSearch, O as ImageInput, re as JsonTableOutput, e as KpiCard, t as KpiCards, Y as KpiCardsLayout, W as LanguageSelector, b as LineChart, q as LoadingState, i as MetricCard, j as MultiSelect, X as NotificationsBell, w as PieChart, o as Progress, U as RatingInput, L as SearchInput, V as SearchableFilterPill, F as SearchableSelect, ee as Sidebar, Q as SidebarHeader, Z as SidebarNavItem, n as SkeletonCard, a as SkeletonCards, ie as TableActions, ae as TableBody, oe as TableBulkActions, H as TableFilter, se as TableHeader, ce as TablePagination, le as TableSettings, me as ThemeSelector, te as Topbar, x as getChartColor };
|
|
@@ -1,2 +1,599 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ACTIONS_COLUMN_KEY as e, SELECTION_COLUMN_KEY as t, getAlignmentClass as n, getColumnAlignment as r, getFixedCellProps as i } from "../../../helpers/index.js";
|
|
2
|
+
import { t as a } from "../../../i18n-CevI9Cgk.js";
|
|
3
|
+
import { At as o, C as s, D as c, Ft as l, Gt as u, Mt as d, Nt as f, O as p, S as m, T as h, bn as g, jt as _, k as v, v as y } from "../../../ui-D7YSs2kF.js";
|
|
4
|
+
import { s as b } from "../../../tooltip-BmZ9Bfou.js";
|
|
5
|
+
import { i as x, l as S, n as C, t as w, u as T } from "../../../select-DmLScQKX.js";
|
|
6
|
+
import { n as E, t as D } from "../../../useFixedColumns-BVZs3wbh.js";
|
|
7
|
+
import { n as O, r as k } from "../../../datatable-COQcYUrk.js";
|
|
8
|
+
import { useState as A } from "react";
|
|
9
|
+
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
10
|
+
import { formatJsonValue as P, isRecord as F, tryParseJson as I } from "@krosoft/core/helpers";
|
|
11
|
+
import { AlertTriangleIcon as L, ArrowDownIcon as R, ArrowUpDownIcon as ee, ArrowUpIcon as z, ChevronLeftIcon as B, ChevronRightIcon as V, GripVerticalIcon as H, Loader2Icon as U, MoreVerticalIcon as W, SettingsIcon as G } from "lucide-react";
|
|
12
|
+
import { useNavigate as K } from "react-router-dom";
|
|
13
|
+
//#region src/components/core/table/TableActions.tsx
|
|
14
|
+
function q({ actions: e, row: t }) {
|
|
15
|
+
let { t: n } = a(), r = e.filter((e) => e.visible === void 0 || e.visible(t));
|
|
16
|
+
if (r.length === 0) return null;
|
|
17
|
+
let i = r.filter((e) => e.overflow !== !0), o = r.filter((e) => e.overflow === !0);
|
|
18
|
+
return /* @__PURE__ */ N("div", {
|
|
19
|
+
className: "flex items-center justify-end gap-1",
|
|
20
|
+
children: [i.map((e, r) => {
|
|
21
|
+
let i = e.icon;
|
|
22
|
+
return /* @__PURE__ */ N(b, {
|
|
23
|
+
variant: e.variant ?? "ghost",
|
|
24
|
+
size: "sm",
|
|
25
|
+
disabled: e.disabled?.(t) ?? !1,
|
|
26
|
+
className: `h-7 px-2 text-muted-foreground hover:text-foreground ${e.className ?? ""}`,
|
|
27
|
+
onClick: (n) => {
|
|
28
|
+
n.stopPropagation(), e.onClick(t);
|
|
29
|
+
},
|
|
30
|
+
children: [i !== void 0 && /* @__PURE__ */ M(i, { className: "size-3.5" }), n(e.labelKey)]
|
|
31
|
+
}, r);
|
|
32
|
+
}), o.length > 0 && /* @__PURE__ */ N(_, { children: [/* @__PURE__ */ M(u, {
|
|
33
|
+
asChild: !0,
|
|
34
|
+
children: /* @__PURE__ */ M(b, {
|
|
35
|
+
variant: "ghost",
|
|
36
|
+
size: "icon",
|
|
37
|
+
className: "h-7 w-7 text-muted-foreground hover:text-foreground",
|
|
38
|
+
children: /* @__PURE__ */ M(W, { className: "size-3.5" })
|
|
39
|
+
})
|
|
40
|
+
}), /* @__PURE__ */ M(f, {
|
|
41
|
+
align: "end",
|
|
42
|
+
onClick: (e) => {
|
|
43
|
+
e.stopPropagation();
|
|
44
|
+
},
|
|
45
|
+
children: o.map((e, r) => {
|
|
46
|
+
let i = e.icon;
|
|
47
|
+
return /* @__PURE__ */ N(l, {
|
|
48
|
+
disabled: e.disabled?.(t) ?? !1,
|
|
49
|
+
onClick: () => {
|
|
50
|
+
e.onClick(t);
|
|
51
|
+
},
|
|
52
|
+
className: e.className,
|
|
53
|
+
children: [i !== void 0 && /* @__PURE__ */ M("span", {
|
|
54
|
+
className: "mr-2 size-4 flex items-center justify-center",
|
|
55
|
+
children: /* @__PURE__ */ M(i, { className: "size-4" })
|
|
56
|
+
}), n(e.labelKey)]
|
|
57
|
+
}, r);
|
|
58
|
+
})
|
|
59
|
+
})] })]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/core/table/TableBody.tsx
|
|
64
|
+
function J({ isLoading: o, error: s, colSpanCount: c, messages: l, paginatedData: u, rowKey: d, onRowClick: f, onRowNavigate: p, hasBulkActions: m, selectedRows: h, toggleRowSelection: _, visibleColumnsArray: v, columnWidths: y, hasActions: b, actions: x, columns: S, bordered: C = !1, dense: w = !1, resizableColumns: T = !1, fixedColumns: E = {} }) {
|
|
65
|
+
let { t: D } = a(), O = D(l?.loadingKey ?? "states.loading"), k = D(l?.emptyKey ?? "states.noResult"), A = K(), j = (e, t) => {
|
|
66
|
+
let n = S.find((e) => e.key === t);
|
|
67
|
+
if (n?.renderCell !== void 0) return n.renderCell(e);
|
|
68
|
+
let r = e[t];
|
|
69
|
+
return /* @__PURE__ */ M("span", {
|
|
70
|
+
className: "text-sm truncate",
|
|
71
|
+
children: r == null ? "-" : String(r)
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
if (o) return /* @__PURE__ */ M("tbody", {
|
|
75
|
+
className: "divide-y divide-border",
|
|
76
|
+
children: /* @__PURE__ */ M("tr", { children: /* @__PURE__ */ M("td", {
|
|
77
|
+
colSpan: c,
|
|
78
|
+
className: "py-8 text-center",
|
|
79
|
+
children: /* @__PURE__ */ N("div", {
|
|
80
|
+
className: "flex flex-col items-center justify-center gap-2 text-muted-foreground",
|
|
81
|
+
children: [/* @__PURE__ */ M(U, { className: "h-6 w-6 animate-spin text-primary" }), /* @__PURE__ */ M("span", {
|
|
82
|
+
className: "text-sm",
|
|
83
|
+
children: O
|
|
84
|
+
})]
|
|
85
|
+
})
|
|
86
|
+
}) })
|
|
87
|
+
});
|
|
88
|
+
if (s) return /* @__PURE__ */ M("tbody", {
|
|
89
|
+
className: "divide-y divide-border",
|
|
90
|
+
children: /* @__PURE__ */ M("tr", { children: /* @__PURE__ */ M("td", {
|
|
91
|
+
colSpan: c,
|
|
92
|
+
className: "py-8 text-center",
|
|
93
|
+
children: /* @__PURE__ */ N("div", {
|
|
94
|
+
className: "flex flex-col items-center justify-center gap-2 text-destructive",
|
|
95
|
+
children: [/* @__PURE__ */ M(L, { className: "h-6 w-6" }), /* @__PURE__ */ M("span", {
|
|
96
|
+
className: "text-sm",
|
|
97
|
+
children: s
|
|
98
|
+
})]
|
|
99
|
+
})
|
|
100
|
+
}) })
|
|
101
|
+
});
|
|
102
|
+
if (u.length === 0) return /* @__PURE__ */ M("tbody", {
|
|
103
|
+
className: "divide-y divide-border",
|
|
104
|
+
children: /* @__PURE__ */ M("tr", { children: /* @__PURE__ */ M("td", {
|
|
105
|
+
colSpan: c,
|
|
106
|
+
className: "py-8 text-center text-sm text-muted-foreground",
|
|
107
|
+
children: k
|
|
108
|
+
}) })
|
|
109
|
+
});
|
|
110
|
+
let P = i(E[t], "body"), F = i(E[e], "body"), I = p !== void 0 || f !== void 0, R = (e, t) => {
|
|
111
|
+
if (p !== void 0) {
|
|
112
|
+
let n = p(e);
|
|
113
|
+
t.ctrlKey || t.metaKey ? window.open(n, "_blank") : A(n);
|
|
114
|
+
} else f?.(e, t);
|
|
115
|
+
};
|
|
116
|
+
return /* @__PURE__ */ M("tbody", {
|
|
117
|
+
className: "divide-y divide-border",
|
|
118
|
+
children: u.map((e) => {
|
|
119
|
+
let t = d(e);
|
|
120
|
+
return /* @__PURE__ */ N("tr", {
|
|
121
|
+
className: `group hover:bg-muted/50 transition-colors ${I ? "cursor-pointer" : ""}`,
|
|
122
|
+
onClick: (t) => {
|
|
123
|
+
R(e, t);
|
|
124
|
+
},
|
|
125
|
+
children: [
|
|
126
|
+
m ? /* @__PURE__ */ M("td", {
|
|
127
|
+
className: `p-1 text-center align-middle ${P.className}`,
|
|
128
|
+
style: {
|
|
129
|
+
width: "48px",
|
|
130
|
+
minWidth: "48px",
|
|
131
|
+
maxWidth: "48px",
|
|
132
|
+
...P.style
|
|
133
|
+
},
|
|
134
|
+
onClick: (e) => {
|
|
135
|
+
e.stopPropagation();
|
|
136
|
+
},
|
|
137
|
+
children: /* @__PURE__ */ M("div", {
|
|
138
|
+
className: "flex items-center justify-center",
|
|
139
|
+
children: /* @__PURE__ */ M(g, {
|
|
140
|
+
checked: h.includes(t),
|
|
141
|
+
onCheckedChange: () => {
|
|
142
|
+
_(t);
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
})
|
|
146
|
+
}) : null,
|
|
147
|
+
v.map((t, a) => {
|
|
148
|
+
let o = a === v.length - 1, s = i(E[t.key], "body");
|
|
149
|
+
return /* @__PURE__ */ M("td", {
|
|
150
|
+
className: `${`${a === 0 && !m ? "pl-4" : "pl-2"} ${o && !b ? "pr-4" : "pr-2"}`} ${w ? "py-2" : "py-4"} text-sm ${n(r(t))} ${s.className} ${C && !o ? "border-r border-border" : ""} ${t.className ?? ""}`,
|
|
151
|
+
style: {
|
|
152
|
+
...T ? { width: y[t.key] } : { minWidth: y[t.key] },
|
|
153
|
+
...s.style
|
|
154
|
+
},
|
|
155
|
+
children: /* @__PURE__ */ M("div", {
|
|
156
|
+
className: "w-full h-full",
|
|
157
|
+
children: j(e, t.key)
|
|
158
|
+
})
|
|
159
|
+
}, t.key);
|
|
160
|
+
}),
|
|
161
|
+
b ? /* @__PURE__ */ M("td", {
|
|
162
|
+
className: `py-1 pl-1 pr-4 text-right align-middle whitespace-nowrap ${F.className}`,
|
|
163
|
+
style: {
|
|
164
|
+
minWidth: "32px",
|
|
165
|
+
...F.style
|
|
166
|
+
},
|
|
167
|
+
onClick: (e) => {
|
|
168
|
+
e.stopPropagation();
|
|
169
|
+
},
|
|
170
|
+
children: x !== void 0 && x.length > 0 ? /* @__PURE__ */ M("div", {
|
|
171
|
+
className: "flex items-center justify-end",
|
|
172
|
+
children: /* @__PURE__ */ M(q, {
|
|
173
|
+
actions: x,
|
|
174
|
+
row: e
|
|
175
|
+
})
|
|
176
|
+
}) : null
|
|
177
|
+
}) : null
|
|
178
|
+
]
|
|
179
|
+
}, t);
|
|
180
|
+
})
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/components/core/table/TableBulkActions.tsx
|
|
185
|
+
function Y({ selectedRows: e, setSelectedRows: t, bulkActions: n }) {
|
|
186
|
+
let { t: r } = a();
|
|
187
|
+
return /* @__PURE__ */ N("div", {
|
|
188
|
+
className: "bg-muted/60 border border-border px-3 py-1.5 flex items-center justify-between rounded-surface",
|
|
189
|
+
children: [/* @__PURE__ */ N("div", {
|
|
190
|
+
className: "flex items-center gap-4",
|
|
191
|
+
children: [/* @__PURE__ */ M("span", {
|
|
192
|
+
className: "text-sm font-medium text-primary ml-1",
|
|
193
|
+
children: r("table.selectedCount", { count: e.length })
|
|
194
|
+
}), /* @__PURE__ */ M("div", {
|
|
195
|
+
className: "flex items-center gap-2",
|
|
196
|
+
children: n.map((n, i) => {
|
|
197
|
+
let a = n.icon;
|
|
198
|
+
return /* @__PURE__ */ N(b, {
|
|
199
|
+
variant: "outline",
|
|
200
|
+
size: "sm",
|
|
201
|
+
onClick: () => {
|
|
202
|
+
n.onClick(e, () => {
|
|
203
|
+
t([]);
|
|
204
|
+
});
|
|
205
|
+
},
|
|
206
|
+
className: `h-7 bg-background shadow-sm text-xs px-2.5 ${n.variant === "destructive" ? "text-destructive border-destructive/30 hover:bg-destructive/10 hover:text-destructive" : "text-foreground"}`,
|
|
207
|
+
children: [a !== void 0 && /* @__PURE__ */ M("span", {
|
|
208
|
+
className: "mr-1.5 flex items-center justify-center",
|
|
209
|
+
children: /* @__PURE__ */ M(a, { className: "h-3.5 w-3.5" })
|
|
210
|
+
}), r(n.labelKey)]
|
|
211
|
+
}, i);
|
|
212
|
+
})
|
|
213
|
+
})]
|
|
214
|
+
}), /* @__PURE__ */ M(b, {
|
|
215
|
+
variant: "ghost",
|
|
216
|
+
size: "sm",
|
|
217
|
+
onClick: () => {
|
|
218
|
+
t([]);
|
|
219
|
+
},
|
|
220
|
+
className: "text-xs text-muted-foreground hover:text-foreground h-7 px-2",
|
|
221
|
+
children: r("table.clearSelection")
|
|
222
|
+
})]
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/components/core/table/TableHeader.tsx
|
|
227
|
+
var X = {
|
|
228
|
+
left: "justify-start",
|
|
229
|
+
center: "justify-center",
|
|
230
|
+
right: "justify-end"
|
|
231
|
+
};
|
|
232
|
+
function te({ hasBulkActions: o, selectedRows: s, totalItems: c, toggleSelectAll: l, visibleColumnsArray: u, draggableColumns: d, resizableColumns: f, columnWidths: p, sortColumn: m, sortDirection: h, handleSort: _, handleDragStart: v, handleDragOver: y, handleDrop: b, handleMouseDown: x, hasActions: S, settingsNode: C, bordered: w = !1, dense: T = !1, fixedColumns: E = {}, fixedSelection: D = !1, fixedActions: O = !1 }) {
|
|
233
|
+
let { t: k } = a(), A = !1;
|
|
234
|
+
s.length === c && c > 0 ? A = !0 : s.length > 0 && (A = "indeterminate");
|
|
235
|
+
let j = (e) => e.sortable === !0 ? m === e.key ? M(h === "asc" ? z : R, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ M(ee, { className: "size-3.5 text-muted-foreground/50 group-hover:text-muted-foreground transition-colors" }) : null, P = (e, t, a) => {
|
|
236
|
+
let s = a !== !1 && e.fixed === void 0, c = e.sortable === !0, l = i(E[e.key], "header"), d = r(e), m = j(e), h = t === 0 && !o, g = t === u.length - 1 && !(S || C !== void 0), D = `${h ? "pl-4" : "pl-2"} ${g ? "pr-4" : "pr-2"}`;
|
|
237
|
+
return /* @__PURE__ */ N("th", {
|
|
238
|
+
"data-column-key": e.key,
|
|
239
|
+
"data-fixed-side": e.fixed,
|
|
240
|
+
className: [
|
|
241
|
+
`${D} ${T ? "py-2" : "py-4"} text-sm font-medium text-foreground group`,
|
|
242
|
+
n(d),
|
|
243
|
+
l.className,
|
|
244
|
+
w ? "border-r border-border" : "",
|
|
245
|
+
c ? "cursor-pointer select-none" : "",
|
|
246
|
+
e.className ?? ""
|
|
247
|
+
].filter(Boolean).join(" "),
|
|
248
|
+
style: {
|
|
249
|
+
...f ? { width: p[e.key] } : { minWidth: p[e.key] },
|
|
250
|
+
...l.style
|
|
251
|
+
},
|
|
252
|
+
draggable: s,
|
|
253
|
+
onClick: () => {
|
|
254
|
+
_(e.key);
|
|
255
|
+
},
|
|
256
|
+
onDragStart: (t) => {
|
|
257
|
+
s ? v(t, e.key) : t.preventDefault();
|
|
258
|
+
},
|
|
259
|
+
onDragOver: (t) => {
|
|
260
|
+
y(t, e.key);
|
|
261
|
+
},
|
|
262
|
+
onDrop: (t) => {
|
|
263
|
+
b(t, e.key);
|
|
264
|
+
},
|
|
265
|
+
children: [/* @__PURE__ */ N("div", {
|
|
266
|
+
className: `flex items-center gap-1 ${X[d]} ${f ? "pr-2" : ""}`,
|
|
267
|
+
children: [
|
|
268
|
+
s ? /* @__PURE__ */ M(H, { className: "size-4 text-muted-foreground cursor-grab shrink-0" }) : null,
|
|
269
|
+
/* @__PURE__ */ M("span", {
|
|
270
|
+
className: "truncate",
|
|
271
|
+
children: k(e.headerKey)
|
|
272
|
+
}),
|
|
273
|
+
m === null ? null : /* @__PURE__ */ M("span", {
|
|
274
|
+
className: "ml-1 shrink-0",
|
|
275
|
+
children: m
|
|
276
|
+
})
|
|
277
|
+
]
|
|
278
|
+
}), f ? /* @__PURE__ */ M("div", {
|
|
279
|
+
className: "absolute right-0 top-0 bottom-0 w-2 cursor-col-resize hover:bg-blue-500 opacity-0 group-hover:opacity-50 transition-opacity",
|
|
280
|
+
onMouseDown: (t) => {
|
|
281
|
+
x(t, e.key);
|
|
282
|
+
}
|
|
283
|
+
}) : null]
|
|
284
|
+
}, e.key);
|
|
285
|
+
}, F = i(E[t], "header"), I = i(E[e], "header");
|
|
286
|
+
return /* @__PURE__ */ M("thead", {
|
|
287
|
+
className: "bg-muted/50 border-b border-border",
|
|
288
|
+
children: /* @__PURE__ */ N("tr", { children: [
|
|
289
|
+
o ? /* @__PURE__ */ M("th", {
|
|
290
|
+
"data-column-key": t,
|
|
291
|
+
"data-fixed-side": D ? "left" : void 0,
|
|
292
|
+
className: `p-1 text-center align-middle ${F.className}`,
|
|
293
|
+
style: {
|
|
294
|
+
width: "48px",
|
|
295
|
+
minWidth: "48px",
|
|
296
|
+
maxWidth: "48px",
|
|
297
|
+
...F.style
|
|
298
|
+
},
|
|
299
|
+
children: /* @__PURE__ */ M("div", {
|
|
300
|
+
className: "flex items-center justify-center",
|
|
301
|
+
children: /* @__PURE__ */ M(g, {
|
|
302
|
+
checked: A,
|
|
303
|
+
onCheckedChange: l
|
|
304
|
+
})
|
|
305
|
+
})
|
|
306
|
+
}) : null,
|
|
307
|
+
u.map((e, t) => P(e, t, d)),
|
|
308
|
+
S || C !== void 0 ? /* @__PURE__ */ M("th", {
|
|
309
|
+
"data-column-key": e,
|
|
310
|
+
"data-fixed-side": O ? "right" : void 0,
|
|
311
|
+
className: `py-1 pl-1 pr-4 text-right align-middle ${I.className}`,
|
|
312
|
+
style: {
|
|
313
|
+
minWidth: "32px",
|
|
314
|
+
...I.style
|
|
315
|
+
},
|
|
316
|
+
children: C
|
|
317
|
+
}) : null
|
|
318
|
+
] })
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region src/components/core/table/TablePagination.tsx
|
|
323
|
+
var Z = "…";
|
|
324
|
+
function Q(e, t) {
|
|
325
|
+
return Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
326
|
+
}
|
|
327
|
+
function ne(e, t, n = 1) {
|
|
328
|
+
if (n * 2 + 5 >= t) return Q(1, t);
|
|
329
|
+
let r = Math.max(e - n, 1), i = Math.min(e + n, t), a = r > 2, o = i < t - 1;
|
|
330
|
+
return !a && o ? [
|
|
331
|
+
...Q(1, n + 2),
|
|
332
|
+
Z,
|
|
333
|
+
t
|
|
334
|
+
] : a && !o ? [
|
|
335
|
+
1,
|
|
336
|
+
Z,
|
|
337
|
+
...Q(t - (n + 2) + 1, t)
|
|
338
|
+
] : [
|
|
339
|
+
1,
|
|
340
|
+
Z,
|
|
341
|
+
...Q(r, i),
|
|
342
|
+
Z,
|
|
343
|
+
t
|
|
344
|
+
];
|
|
345
|
+
}
|
|
346
|
+
function re({ totalItems: e, startIndex: t, endIndex: n, pageSize: r, setPageSize: i, currentPage: o, setCurrentPage: s, pageSizeOptions: c, totalPages: l }) {
|
|
347
|
+
let { t: u } = a(), d = ne(o, l);
|
|
348
|
+
return /* @__PURE__ */ N("div", {
|
|
349
|
+
className: "px-4 py-2 border-t border-border flex flex-col sm:grid sm:grid-cols-3 items-center gap-2 bg-muted/50",
|
|
350
|
+
children: [
|
|
351
|
+
/* @__PURE__ */ M("div", {
|
|
352
|
+
className: "text-sm text-muted-foreground justify-self-start",
|
|
353
|
+
children: u("table.rangeOfTotal", {
|
|
354
|
+
range: e === 0 ? "0" : `${String(t + 1)} - ${String(n)}`,
|
|
355
|
+
total: e
|
|
356
|
+
})
|
|
357
|
+
}),
|
|
358
|
+
/* @__PURE__ */ M("div", {
|
|
359
|
+
className: "flex items-center justify-center gap-1",
|
|
360
|
+
children: l > 1 && /* @__PURE__ */ N(j, { children: [
|
|
361
|
+
/* @__PURE__ */ M(b, {
|
|
362
|
+
variant: "ghost",
|
|
363
|
+
size: "icon",
|
|
364
|
+
className: "h-8 w-8 rounded-control",
|
|
365
|
+
onClick: () => {
|
|
366
|
+
s((e) => Math.max(1, e - 1));
|
|
367
|
+
},
|
|
368
|
+
disabled: o === 1,
|
|
369
|
+
"aria-label": u("table.previousPage"),
|
|
370
|
+
children: /* @__PURE__ */ M(B, { className: "size-4" })
|
|
371
|
+
}),
|
|
372
|
+
d.map((e, t) => e === Z ? /* @__PURE__ */ M("span", {
|
|
373
|
+
className: "flex h-8 w-8 items-center justify-center text-sm text-muted-foreground",
|
|
374
|
+
children: Z
|
|
375
|
+
}, `dots-${String(t)}`) : /* @__PURE__ */ M(b, {
|
|
376
|
+
variant: e === o ? "default" : "ghost",
|
|
377
|
+
size: "icon",
|
|
378
|
+
className: "h-8 w-8 rounded-control text-sm",
|
|
379
|
+
onClick: () => {
|
|
380
|
+
s(e);
|
|
381
|
+
},
|
|
382
|
+
"aria-current": e === o ? "page" : void 0,
|
|
383
|
+
children: e
|
|
384
|
+
}, e)),
|
|
385
|
+
/* @__PURE__ */ M(b, {
|
|
386
|
+
variant: "ghost",
|
|
387
|
+
size: "icon",
|
|
388
|
+
className: "h-8 w-8 rounded-control",
|
|
389
|
+
onClick: () => {
|
|
390
|
+
s((e) => Math.min(l, e + 1));
|
|
391
|
+
},
|
|
392
|
+
disabled: o === l,
|
|
393
|
+
"aria-label": u("table.nextPage"),
|
|
394
|
+
children: /* @__PURE__ */ M(V, { className: "size-4" })
|
|
395
|
+
})
|
|
396
|
+
] })
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ M("div", {
|
|
399
|
+
className: "justify-self-end",
|
|
400
|
+
children: /* @__PURE__ */ N(w, {
|
|
401
|
+
value: String(r),
|
|
402
|
+
onValueChange: (e) => {
|
|
403
|
+
i(Number(e)), s(1);
|
|
404
|
+
},
|
|
405
|
+
children: [/* @__PURE__ */ M(S, {
|
|
406
|
+
className: "h-8 w-[110px] text-sm",
|
|
407
|
+
children: /* @__PURE__ */ M(T, {})
|
|
408
|
+
}), /* @__PURE__ */ M(C, { children: c.map((e) => /* @__PURE__ */ M(x, {
|
|
409
|
+
value: String(e),
|
|
410
|
+
children: u("table.perPage", { count: e })
|
|
411
|
+
}, e)) })]
|
|
412
|
+
})
|
|
413
|
+
})
|
|
414
|
+
]
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region src/components/core/table/TableSettings.tsx
|
|
419
|
+
function ie({ columns: e, visibleColumns: t, toggleColumnVisibility: n }) {
|
|
420
|
+
let { t: r } = a();
|
|
421
|
+
return /* @__PURE__ */ N(_, { children: [/* @__PURE__ */ M(u, {
|
|
422
|
+
asChild: !0,
|
|
423
|
+
children: /* @__PURE__ */ M(b, {
|
|
424
|
+
variant: "outline",
|
|
425
|
+
size: "sm",
|
|
426
|
+
className: "size-7 p-0 bg-background hover:bg-muted shadow-sm border-border",
|
|
427
|
+
children: /* @__PURE__ */ M(G, { className: "size-3.5 text-muted-foreground" })
|
|
428
|
+
})
|
|
429
|
+
}), /* @__PURE__ */ M(f, {
|
|
430
|
+
align: "end",
|
|
431
|
+
className: "w-56",
|
|
432
|
+
children: e.map((e) => /* @__PURE__ */ M(d, {
|
|
433
|
+
checked: t.has(e.key),
|
|
434
|
+
onCheckedChange: () => {
|
|
435
|
+
n(e.key);
|
|
436
|
+
},
|
|
437
|
+
children: r(e.headerKey)
|
|
438
|
+
}, e.key))
|
|
439
|
+
})] });
|
|
440
|
+
}
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region src/components/core/table/DataTable.tsx
|
|
443
|
+
function $({ data: e, isLoading: t = !1, error: n = null, config: r, server: i }) {
|
|
444
|
+
let { columns: a, rowKey: o, onRowClick: s, onRowNavigate: c, actions: l, bulkActions: u } = r, d = r.pageSizeDefault ?? O, f = r.pageSizeOptions ?? k, p = r.dense ?? !1, m = r.bordered ?? !1, h = r.draggableColumns ?? !1, g = r.resizableColumns ?? !1, _ = r.columnVisibility ?? !1, v = r.fixedActions ?? !1, { sortColumn: y, sortDirection: b, selectedRows: x, setSelectedRows: S, visibleColumns: C, columnWidths: w, safeCurrentPage: T, totalPages: A, startIndex: j, endIndex: P, tableRef: F, hasActions: I, hasBulkActions: L, visibleColumnsArray: R, colSpanCount: ee, paginatedData: z, handleSort: B, handleMouseDown: V, handleDragStart: H, handleDragOver: U, handleDrop: W, toggleColumnVisibility: G, toggleRowSelection: K, toggleSelectAll: q, pageSize: X, setPageSize: Z, setCurrentPage: Q } = E({
|
|
445
|
+
data: e,
|
|
446
|
+
columns: a,
|
|
447
|
+
rowKey: o,
|
|
448
|
+
pageSizeDefault: d,
|
|
449
|
+
actions: l,
|
|
450
|
+
bulkActions: u,
|
|
451
|
+
columnVisibility: _,
|
|
452
|
+
server: i
|
|
453
|
+
}), ne = L && R.some((e) => e.fixed === "left"), $ = D(F);
|
|
454
|
+
return /* @__PURE__ */ N("div", {
|
|
455
|
+
className: "space-y-4 [--k-radius-control:var(--k-radius-control-dense,0.5rem)] [--k-radius-surface:var(--k-radius-surface-dense,0.75rem)]",
|
|
456
|
+
children: [x.length > 0 && u !== void 0 && u.length > 0 && /* @__PURE__ */ M(Y, {
|
|
457
|
+
selectedRows: x,
|
|
458
|
+
setSelectedRows: S,
|
|
459
|
+
bulkActions: u
|
|
460
|
+
}), /* @__PURE__ */ N("div", {
|
|
461
|
+
className: "w-full bg-card rounded-surface border border-border overflow-hidden",
|
|
462
|
+
children: [/* @__PURE__ */ M("div", {
|
|
463
|
+
className: "overflow-x-auto",
|
|
464
|
+
children: /* @__PURE__ */ N("table", {
|
|
465
|
+
ref: F,
|
|
466
|
+
className: "w-full",
|
|
467
|
+
children: [/* @__PURE__ */ M(te, {
|
|
468
|
+
hasBulkActions: L,
|
|
469
|
+
selectedRows: x,
|
|
470
|
+
totalItems: e.length,
|
|
471
|
+
toggleSelectAll: q,
|
|
472
|
+
visibleColumnsArray: R,
|
|
473
|
+
draggableColumns: h,
|
|
474
|
+
resizableColumns: g,
|
|
475
|
+
columnWidths: w,
|
|
476
|
+
sortColumn: y,
|
|
477
|
+
sortDirection: b,
|
|
478
|
+
handleSort: B,
|
|
479
|
+
handleDragStart: H,
|
|
480
|
+
handleDragOver: U,
|
|
481
|
+
handleDrop: W,
|
|
482
|
+
handleMouseDown: V,
|
|
483
|
+
hasActions: I,
|
|
484
|
+
bordered: m,
|
|
485
|
+
dense: p,
|
|
486
|
+
fixedColumns: $,
|
|
487
|
+
fixedSelection: ne,
|
|
488
|
+
fixedActions: v,
|
|
489
|
+
settingsNode: _ ? /* @__PURE__ */ M(ie, {
|
|
490
|
+
columns: a,
|
|
491
|
+
visibleColumns: C,
|
|
492
|
+
toggleColumnVisibility: G
|
|
493
|
+
}) : void 0
|
|
494
|
+
}), /* @__PURE__ */ M(J, {
|
|
495
|
+
bordered: m,
|
|
496
|
+
dense: p,
|
|
497
|
+
isLoading: t,
|
|
498
|
+
error: n,
|
|
499
|
+
colSpanCount: ee,
|
|
500
|
+
messages: r.messages,
|
|
501
|
+
paginatedData: z,
|
|
502
|
+
rowKey: o,
|
|
503
|
+
onRowClick: s,
|
|
504
|
+
onRowNavigate: c,
|
|
505
|
+
hasBulkActions: L,
|
|
506
|
+
selectedRows: x,
|
|
507
|
+
toggleRowSelection: K,
|
|
508
|
+
visibleColumnsArray: R,
|
|
509
|
+
columnWidths: w,
|
|
510
|
+
hasActions: I || _,
|
|
511
|
+
actions: l,
|
|
512
|
+
columns: a,
|
|
513
|
+
resizableColumns: g,
|
|
514
|
+
fixedColumns: $
|
|
515
|
+
})]
|
|
516
|
+
})
|
|
517
|
+
}), /* @__PURE__ */ M(re, {
|
|
518
|
+
totalItems: i?.totalRows ?? e.length,
|
|
519
|
+
startIndex: j,
|
|
520
|
+
endIndex: P,
|
|
521
|
+
pageSize: X,
|
|
522
|
+
setPageSize: Z,
|
|
523
|
+
currentPage: T,
|
|
524
|
+
setCurrentPage: Q,
|
|
525
|
+
pageSizeOptions: f,
|
|
526
|
+
totalPages: A
|
|
527
|
+
})]
|
|
528
|
+
})]
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region src/components/core/table/JsonTableOutput.tsx
|
|
533
|
+
var ae = ({ header: e, output: t }) => {
|
|
534
|
+
let [n, r] = A(!0), i = I(t), a = i !== null, l = () => /* @__PURE__ */ N("div", {
|
|
535
|
+
className: "flex items-center justify-between mb-2",
|
|
536
|
+
children: [/* @__PURE__ */ M("span", {
|
|
537
|
+
className: "font-medium text-sm",
|
|
538
|
+
children: e
|
|
539
|
+
}), /* @__PURE__ */ N("div", {
|
|
540
|
+
className: "flex items-center gap-2",
|
|
541
|
+
children: [/* @__PURE__ */ M(y, {
|
|
542
|
+
id: "table-mode",
|
|
543
|
+
checked: n,
|
|
544
|
+
onCheckedChange: r
|
|
545
|
+
}), /* @__PURE__ */ M(o, {
|
|
546
|
+
htmlFor: "table-mode",
|
|
547
|
+
className: "text-xs",
|
|
548
|
+
children: "Mode tableau"
|
|
549
|
+
})]
|
|
550
|
+
})]
|
|
551
|
+
}), u = ({ children: e }) => /* @__PURE__ */ M("div", {
|
|
552
|
+
className: "border rounded min-w-0 w-full",
|
|
553
|
+
children: /* @__PURE__ */ M(m, { children: e })
|
|
554
|
+
}), d = () => /* @__PURE__ */ M("pre", {
|
|
555
|
+
className: "text-xs bg-muted p-4 rounded overflow-x-auto whitespace-pre-wrap",
|
|
556
|
+
children: a && !n ? JSON.stringify(i, null, 2) : t
|
|
557
|
+
});
|
|
558
|
+
return t ? /* @__PURE__ */ N("div", {
|
|
559
|
+
className: "min-w-0 w-full",
|
|
560
|
+
children: [l(), (() => {
|
|
561
|
+
if (!a || !n) return /* @__PURE__ */ M(d, {});
|
|
562
|
+
if (Array.isArray(i) && i.length > 0 && F(i[0])) {
|
|
563
|
+
let e = i, t = Object.keys(e[0]);
|
|
564
|
+
return /* @__PURE__ */ N(u, { children: [/* @__PURE__ */ M(p, {
|
|
565
|
+
className: "bg-muted/50",
|
|
566
|
+
children: /* @__PURE__ */ M(v, { children: t.map((e) => /* @__PURE__ */ M(c, {
|
|
567
|
+
className: "font-medium",
|
|
568
|
+
children: e
|
|
569
|
+
}, e)) })
|
|
570
|
+
}), /* @__PURE__ */ M(s, { children: e.map((e, n) => /* @__PURE__ */ M(v, { children: t.map((t) => /* @__PURE__ */ M(h, {
|
|
571
|
+
className: "text-sm whitespace-pre-wrap",
|
|
572
|
+
children: P(e[t])
|
|
573
|
+
}, t)) }, n)) })] });
|
|
574
|
+
}
|
|
575
|
+
if (F(i)) {
|
|
576
|
+
let e = Object.entries(i);
|
|
577
|
+
return /* @__PURE__ */ N(u, { children: [/* @__PURE__ */ M(p, {
|
|
578
|
+
className: "bg-muted/50",
|
|
579
|
+
children: /* @__PURE__ */ N(v, { children: [/* @__PURE__ */ M(c, {
|
|
580
|
+
className: "font-medium",
|
|
581
|
+
children: "Propriété"
|
|
582
|
+
}), /* @__PURE__ */ M(c, {
|
|
583
|
+
className: "font-medium",
|
|
584
|
+
children: "Valeur"
|
|
585
|
+
})] })
|
|
586
|
+
}), /* @__PURE__ */ M(s, { children: e.map(([e, t]) => /* @__PURE__ */ N(v, { children: [/* @__PURE__ */ M(h, {
|
|
587
|
+
className: "font-medium text-sm",
|
|
588
|
+
children: e
|
|
589
|
+
}), /* @__PURE__ */ M(h, {
|
|
590
|
+
className: "text-sm whitespace-pre-wrap",
|
|
591
|
+
children: P(t)
|
|
592
|
+
})] }, e)) })] });
|
|
593
|
+
}
|
|
594
|
+
return /* @__PURE__ */ M(d, {});
|
|
595
|
+
})()]
|
|
596
|
+
}) : null;
|
|
597
|
+
};
|
|
598
|
+
//#endregion
|
|
599
|
+
export { $ as DataTable, ae as JsonTableOutput, q as TableActions, J as TableBody, Y as TableBulkActions, te as TableHeader, re as TablePagination, ie as TableSettings };
|
package/dist/components/index.js
CHANGED
|
@@ -22,8 +22,8 @@ import { t as Jr } from "../AppTitle-DBGJRsjU.js";
|
|
|
22
22
|
import { n as Yr, t as Xr } from "../states-C6lWnADN.js";
|
|
23
23
|
import { AppPageHeader as Zr, KpiCardsLayout as Qr } from "./core/layouts/index.js";
|
|
24
24
|
import { a as $r, i as ei, n as ti, o as ni, r as ri, t as ii } from "../navbar-Cl4welok.js";
|
|
25
|
-
import {
|
|
25
|
+
import { DataTable as ai, JsonTableOutput as oi, TableActions as si, TableBody as ci, TableBulkActions as li, TableHeader as ui, TablePagination as di, TableSettings as fi } from "./core/table/index.js";
|
|
26
26
|
import { AppTabContainer as pi, AppTabHeader as mi, AppTabs as hi, AppVerticalTabs as gi } from "./core/tabs/index.js";
|
|
27
27
|
import { t as _i } from "../theme-Dwc4zNXG.js";
|
|
28
28
|
import "./core/index.js";
|
|
29
|
-
export { ze as Accordion, Ie as AccordionContent, He as AccordionItem, he as AccordionTrigger, Vr as ActiveFilters, Hr as AdvancedFilters, yn as Alert, _n as AlertDescription, w as AlertDialog, Ae as AlertDialogAction, H as AlertDialogCancel, De as AlertDialogContent, Ne as AlertDialogDescription, z as AlertDialogFooter, Z as AlertDialogHeader, Vt as AlertDialogTitle, J as AlertDialogTrigger, vn as AlertTitle, Mr as AppActions, kr as AppDialog, Zr as AppPageHeader, Nr as AppSubTitle, pi as AppTabContainer, mi as AppTabHeader, hi as AppTabs, Jr as AppTitle, gi as AppVerticalTabs, hn as AspectRatio, G as Avatar, ee as AvatarFallback, ve as AvatarImage, fe as Badge, xr as BarChartHorizontal, Er as BarChartVertical, A as Breadcrumb, le as BreadcrumbEllipsis, Ct as BreadcrumbItem, x as BreadcrumbLink, bt as BreadcrumbList, re as BreadcrumbPage, oe as BreadcrumbSeparator, En as Button, br as CHART_COLORS, N as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, ln as Carousel, xe as CarouselContent, D as CarouselItem, on as CarouselNext, we as CarouselPrevious, Sr as ChartCard, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ze as Checkbox, Tr as CircularGauge, Ge as Collapsible, nn as CollapsibleContent, fn as CollapsibleTrigger, zn as Command, ar as CommandDialog, cr as CommandEmpty, Vn as CommandGroup, sr as CommandInput, Ln as CommandItem, kn as CommandList, or as CommandSeparator, Rn as CommandShortcut, Ar as ConfirmationDialog, Mt as ContextMenu, Wt as ContextMenuCheckboxItem, _t as ContextMenuContent, Je as ContextMenuGroup, Ft as ContextMenuItem, qt as ContextMenuLabel, et as ContextMenuPortal, Et as ContextMenuRadioGroup, $t as ContextMenuRadioItem, rt as ContextMenuSeparator, ct as ContextMenuShortcut, Rt as ContextMenuSub, kt as ContextMenuSubContent, mt as ContextMenuSubTrigger, dt as ContextMenuTrigger, h as DashboardCard,
|
|
29
|
+
export { ze as Accordion, Ie as AccordionContent, He as AccordionItem, he as AccordionTrigger, Vr as ActiveFilters, Hr as AdvancedFilters, yn as Alert, _n as AlertDescription, w as AlertDialog, Ae as AlertDialogAction, H as AlertDialogCancel, De as AlertDialogContent, Ne as AlertDialogDescription, z as AlertDialogFooter, Z as AlertDialogHeader, Vt as AlertDialogTitle, J as AlertDialogTrigger, vn as AlertTitle, Mr as AppActions, kr as AppDialog, Zr as AppPageHeader, Nr as AppSubTitle, pi as AppTabContainer, mi as AppTabHeader, hi as AppTabs, Jr as AppTitle, gi as AppVerticalTabs, hn as AspectRatio, G as Avatar, ee as AvatarFallback, ve as AvatarImage, fe as Badge, xr as BarChartHorizontal, Er as BarChartVertical, A as Breadcrumb, le as BreadcrumbEllipsis, Ct as BreadcrumbItem, x as BreadcrumbLink, bt as BreadcrumbList, re as BreadcrumbPage, oe as BreadcrumbSeparator, En as Button, br as CHART_COLORS, N as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, ln as Carousel, xe as CarouselContent, D as CarouselItem, on as CarouselNext, we as CarouselPrevious, Sr as ChartCard, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ze as Checkbox, Tr as CircularGauge, Ge as Collapsible, nn as CollapsibleContent, fn as CollapsibleTrigger, zn as Command, ar as CommandDialog, cr as CommandEmpty, Vn as CommandGroup, sr as CommandInput, Ln as CommandItem, kn as CommandList, or as CommandSeparator, Rn as CommandShortcut, Ar as ConfirmationDialog, Mt as ContextMenu, Wt as ContextMenuCheckboxItem, _t as ContextMenuContent, Je as ContextMenuGroup, Ft as ContextMenuItem, qt as ContextMenuLabel, et as ContextMenuPortal, Et as ContextMenuRadioGroup, $t as ContextMenuRadioItem, rt as ContextMenuSeparator, ct as ContextMenuShortcut, Rt as ContextMenuSub, kt as ContextMenuSubContent, mt as ContextMenuSubTrigger, dt as ContextMenuTrigger, h as DashboardCard, ai as DataTable, Lr as DatePicker, zr as DateRangePicker, jn as Dialog, An as DialogClose, Fn as DialogContent, Yn as DialogDescription, On as DialogFooter, Jn as DialogHeader, Nn as DialogOverlay, Pn as DialogPortal, In as DialogTitle, Mn as DialogTrigger, Q as Drawer, Ht as DrawerClose, Y as DrawerContent, Be as DrawerDescription, Le as DrawerFooter, Ue as DrawerHeader, ge as DrawerOverlay, y as DrawerPortal, at as DrawerTitle, Xt as DrawerTrigger, xt as DropdownMenu, ie as DropdownMenuCheckboxItem, se as DropdownMenuContent, pe as DropdownMenuGroup, L as DropdownMenuItem, K as DropdownMenuLabel, te as DropdownMenuPortal, ye as DropdownMenuRadioGroup, gn as DropdownMenuRadioItem, T as DropdownMenuSeparator, je as DropdownMenuShortcut, U as DropdownMenuSub, Oe as DropdownMenuSubContent, Pe as DropdownMenuSubTrigger, B as DropdownMenuTrigger, Ir as ErrorAlert, Yr as ErrorState, Ur as FilterField, Se as Form, O as FormControl, sn as FormDescription, Or as FormDialog, Te as FormField, P as FormItem, j as FormLabel, ue as FormMessage, Fr as GenericForm, ni as GlobalSearch, pn as HoverCard, Qe as HoverCardContent, un as HoverCardTrigger, jr as ImageInput, Gn as Input, ht as InputOTP, ft as InputOTPGroup, Ke as InputOTPSeparator, rn as InputOTPSlot, oi as JsonTableOutput, f as KpiCard, p as KpiCards, Qr as KpiCardsLayout, S as Label, qr as LanguageSelector, Cr as LineChart, Xr as LoadingState, v as Menubar, ot as MenubarCheckboxItem, Zt as MenubarContent, Nt as MenubarGroup, Gt as MenubarItem, vt as MenubarLabel, Ye as MenubarMenu, It as MenubarPortal, Jt as MenubarRadioGroup, tt as MenubarRadioItem, Dt as MenubarSeparator, en as MenubarShortcut, it as MenubarSub, lt as MenubarSubContent, zt as MenubarSubTrigger, At as MenubarTrigger, g as MetricCard, Pr as MultiSelect, Me as NavigationMenu, R as NavigationMenuContent, X as NavigationMenuIndicator, Bt as NavigationMenuItem, q as NavigationMenuLink, Re as NavigationMenuList, Fe as NavigationMenuTrigger, Ve as NavigationMenuViewport, $r as NotificationsBell, $ as Pagination, _e as PaginationContent, mn as PaginationEllipsis, C as PaginationItem, ke as PaginationLink, V as PaginationNext, Ee as PaginationPrevious, Dr as PieChart, er as Popover, Zn as PopoverContent, Kn as PopoverTrigger, W as Progress, de as RadioGroup, F as RadioGroupItem, Kr as RatingInput, yt as ResizableHandle, ne as ResizablePanel, ae as ResizablePanelGroup, Un as ScrollArea, Wn as ScrollBar, Br as SearchInput, Wr as SearchableFilterPill, Rr as SearchableSelect, _r as Select, pr as SelectContent, hr as SelectGroup, dr as SelectItem, lr as SelectLabel, mr as SelectScrollDownButton, gr as SelectScrollUpButton, ur as SelectSeparator, fr as SelectTrigger, vr as SelectValue, b as Separator, rr as Sheet, Qn as SheetClose, tr as SheetContent, qn as SheetDescription, Bn as SheetFooter, $n as SheetHeader, nr as SheetOverlay, Hn as SheetPortal, Xn as SheetTitle, ir as SheetTrigger, ri as Sidebar, ti as SidebarHeader, ei as SidebarNavItem, be as SimpleTable, E as SimpleTableBody, an as SimpleTableCaption, Ce as SimpleTableCell, M as SimpleTableFooter, k as SimpleTableHead, ce as SimpleTableHeader, St as SimpleTableRow, yr as Skeleton, m as SkeletonCard, _ as SkeletonCards, cn as Slider, dn as Sonner, tn as Switch, si as TableActions, ci as TableBody, li as TableBulkActions, Gr as TableFilter, ui as TableHeader, di as TablePagination, fi as TableSettings, Ot as Tabs, pt as TabsContent, ut as TabsList, We as TabsTrigger, Lt as Textarea, _i as ThemeSelector, Pt as Toast, Kt as ToastAction, $e as ToastClose, Tt as ToastDescription, Qt as ToastProvider, nt as ToastTitle, st as ToastViewport, qe as Toaster, Ut as Toggle, Yt as ToggleGroup, jt as ToggleGroupItem, Dn as Tooltip, Cn as TooltipContent, Tn as TooltipProvider, Sn as TooltipTrigger, ii as Topbar, I as badgeVariants, xn as buttonVariants, bn as controlBaseClass, wn as controlTriggerClass, wr as getChartColor, me as navigationMenuTriggerStyle, Xe as toast, gt as toggleVariants, wt as useFormField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../src/constants/datatable.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,UAAuB,CAAC;AAC/C,eAAO,MAAM,eAAe,QAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../src/constants/datatable.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,UAAuB,CAAC;AAC/C,eAAO,MAAM,eAAe,QAAgB,CAAC;AAC7C,eAAO,MAAM,WAAW,IAAI,CAAC;AAG7B,eAAO,MAAM,iBAAiB,UAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|