tembro 6.0.3 → 6.1.1
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/CHANGELOG.md +13 -0
- package/dist/components/actions/action-menu.d.ts +11 -1
- package/dist/components/calendar/calendar-range-scheduler.cjs +1 -0
- package/dist/components/calendar/calendar-range-scheduler.d.ts +20 -0
- package/dist/components/calendar/calendar-range-scheduler.js +1 -0
- package/dist/components/calendar/date-time-picker.cjs +1 -0
- package/dist/components/calendar/date-time-picker.d.ts +15 -0
- package/dist/components/calendar/date-time-picker.js +1 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/charts/chart-card.cjs +1 -0
- package/dist/components/charts/chart-card.d.ts +24 -0
- package/dist/components/charts/chart-card.js +1 -0
- package/dist/components/charts/index.d.ts +1 -0
- package/dist/components/command/advanced-command-menu.cjs +1 -0
- package/dist/components/command/advanced-command-menu.d.ts +25 -0
- package/dist/components/command/advanced-command-menu.js +1 -0
- package/dist/components/command/index.d.ts +1 -0
- package/dist/components/data-table/data-grid.cjs +1 -0
- package/dist/components/data-table/data-grid.d.ts +15 -0
- package/dist/components/data-table/data-grid.js +1 -0
- package/dist/components/data-table/index.d.ts +1 -0
- package/dist/components/data-table/public.d.ts +1 -0
- package/dist/components/display/index.d.ts +0 -2
- package/dist/components/feedback/async-boundary.cjs +1 -0
- package/dist/components/feedback/async-boundary.d.ts +12 -0
- package/dist/components/feedback/async-boundary.js +1 -0
- package/dist/components/feedback/index.d.ts +1 -0
- package/dist/components/filters/index.d.ts +0 -1
- package/dist/components/inputs/index.d.ts +1 -0
- package/dist/components/inputs/multi-select.cjs +1 -0
- package/dist/components/inputs/multi-select.d.ts +16 -0
- package/dist/components/inputs/multi-select.js +1 -0
- package/dist/components/inputs/public.d.ts +1 -0
- package/dist/components/inputs/time-picker.d.ts +11 -3
- package/dist/components/modern/file-manager.cjs +1 -0
- package/dist/components/modern/file-manager.d.ts +20 -0
- package/dist/components/modern/file-manager.js +1 -0
- package/dist/components/modern/index.d.ts +4 -1
- package/dist/components/modern/map.cjs +1 -0
- package/dist/components/modern/map.d.ts +29 -0
- package/dist/components/modern/map.js +1 -0
- package/dist/components/modern/media-player.cjs +1 -0
- package/dist/components/modern/media-player.d.ts +21 -0
- package/dist/components/modern/media-player.js +1 -0
- package/dist/components/modern/spreadsheet.cjs +1 -0
- package/dist/components/modern/spreadsheet.d.ts +35 -0
- package/dist/components/modern/spreadsheet.js +1 -0
- package/dist/components/notifications/action-toast.cjs +1 -0
- package/dist/components/notifications/action-toast.d.ts +16 -0
- package/dist/components/notifications/action-toast.js +1 -0
- package/dist/components/notifications/index.d.ts +1 -0
- package/dist/components/overlay/drawer.d.ts +3 -1
- package/dist/components/patterns/index.d.ts +1 -0
- package/dist/components/patterns/permissions-matrix.cjs +1 -0
- package/dist/components/patterns/permissions-matrix.d.ts +19 -0
- package/dist/components/patterns/permissions-matrix.js +1 -0
- package/dist/components/patterns/public.d.ts +1 -0
- package/dist/index.d.ts +0 -2
- package/dist/src/components/actions/action-menu.cjs +1 -1
- package/dist/src/components/actions/action-menu.js +47 -39
- package/dist/src/components/actions/copy-button.cjs +1 -1
- package/dist/src/components/actions/copy-button.js +4 -1
- package/dist/src/components/calendar/calendar-range-scheduler.cjs +1 -0
- package/dist/src/components/calendar/calendar-range-scheduler.js +75 -0
- package/dist/src/components/calendar/date-picker.cjs +1 -1
- package/dist/src/components/calendar/date-picker.js +5 -8
- package/dist/src/components/calendar/date-range-picker.cjs +1 -1
- package/dist/src/components/calendar/date-range-picker.js +12 -27
- package/dist/src/components/calendar/date-time-picker.cjs +1 -0
- package/dist/src/components/calendar/date-time-picker.js +36 -0
- package/dist/src/components/calendar/index.cjs +1 -1
- package/dist/src/components/calendar/index.js +5 -3
- package/dist/src/components/charts/chart-card.cjs +1 -0
- package/dist/src/components/charts/chart-card.js +55 -0
- package/dist/src/components/charts/index.cjs +1 -1
- package/dist/src/components/charts/index.js +3 -2
- package/dist/src/components/command/advanced-command-menu.cjs +1 -0
- package/dist/src/components/command/advanced-command-menu.js +57 -0
- package/dist/src/components/command/index.cjs +1 -1
- package/dist/src/components/command/index.js +3 -2
- package/dist/src/components/data-table/data-grid.cjs +1 -0
- package/dist/src/components/data-table/data-grid.js +32 -0
- package/dist/src/components/data-table/data-table-saved-filters.cjs +1 -1
- package/dist/src/components/data-table/data-table-saved-filters.js +11 -11
- package/dist/src/components/data-table/data-table.cjs +1 -1
- package/dist/src/components/data-table/data-table.js +175 -174
- package/dist/src/components/data-table/index.cjs +1 -1
- package/dist/src/components/data-table/index.js +15 -14
- package/dist/src/components/data-table/public.cjs +1 -1
- package/dist/src/components/data-table/public.js +3 -2
- package/dist/src/components/display/index.cjs +1 -1
- package/dist/src/components/display/index.js +9 -11
- package/dist/src/components/feedback/async-boundary.cjs +1 -0
- package/dist/src/components/feedback/async-boundary.js +22 -0
- package/dist/src/components/feedback/index.cjs +1 -1
- package/dist/src/components/feedback/index.js +2 -1
- package/dist/src/components/filters/index.cjs +1 -1
- package/dist/src/components/filters/index.js +2 -3
- package/dist/src/components/inputs/color-picker.cjs +1 -1
- package/dist/src/components/inputs/color-picker.js +63 -46
- package/dist/src/components/inputs/index.cjs +1 -1
- package/dist/src/components/inputs/index.js +13 -12
- package/dist/src/components/inputs/multi-select.cjs +1 -0
- package/dist/src/components/inputs/multi-select.js +80 -0
- package/dist/src/components/inputs/public.cjs +1 -1
- package/dist/src/components/inputs/public.js +13 -12
- package/dist/src/components/inputs/slider.cjs +1 -1
- package/dist/src/components/inputs/slider.js +3 -3
- package/dist/src/components/inputs/tag-input.cjs +1 -1
- package/dist/src/components/inputs/tag-input.js +7 -4
- package/dist/src/components/inputs/time-picker.cjs +1 -1
- package/dist/src/components/inputs/time-picker.js +90 -34
- package/dist/src/components/modern/file-manager.cjs +1 -0
- package/dist/src/components/modern/file-manager.js +75 -0
- package/dist/src/components/modern/index.cjs +1 -1
- package/dist/src/components/modern/index.js +7 -4
- package/dist/src/components/modern/map.cjs +1 -0
- package/dist/src/components/modern/map.js +158 -0
- package/dist/src/components/modern/media-player.cjs +1 -0
- package/dist/src/components/modern/media-player.js +176 -0
- package/dist/src/components/modern/resizable-panel.cjs +1 -1
- package/dist/src/components/modern/resizable-panel.js +39 -32
- package/dist/src/components/modern/spreadsheet.cjs +1 -0
- package/dist/src/components/modern/spreadsheet.js +97 -0
- package/dist/src/components/navigation/pagination.cjs +1 -1
- package/dist/src/components/navigation/pagination.js +5 -5
- package/dist/src/components/notifications/action-toast.cjs +1 -0
- package/dist/src/components/notifications/action-toast.js +49 -0
- package/dist/src/components/notifications/index.cjs +1 -1
- package/dist/src/components/notifications/index.js +3 -2
- package/dist/src/components/notifications/toast.cjs +1 -1
- package/dist/src/components/notifications/toast.js +68 -63
- package/dist/src/components/overlay/alert-dialog.cjs +1 -1
- package/dist/src/components/overlay/alert-dialog.js +8 -6
- package/dist/src/components/overlay/drawer.cjs +1 -1
- package/dist/src/components/overlay/drawer.js +38 -20
- package/dist/src/components/patterns/index.cjs +1 -1
- package/dist/src/components/patterns/index.js +2 -1
- package/dist/src/components/patterns/permissions-matrix.cjs +1 -0
- package/dist/src/components/patterns/permissions-matrix.js +43 -0
- package/dist/src/components/patterns/public.cjs +1 -1
- package/dist/src/components/patterns/public.js +2 -1
- package/dist/src/components/ui/checkbox/index.cjs +1 -1
- package/dist/src/components/ui/checkbox/index.js +2 -1
- package/dist/src/components/ui/dialog/index.cjs +1 -1
- package/dist/src/components/ui/dialog/index.js +8 -8
- package/dist/src/components/ui/dropdown-menu/index.cjs +1 -1
- package/dist/src/components/ui/dropdown-menu/index.js +21 -19
- package/dist/src/components/ui/input/group.cjs +1 -1
- package/dist/src/components/ui/input/group.js +8 -8
- package/dist/src/components/ui/popover/index.cjs +1 -1
- package/dist/src/components/ui/popover/index.js +10 -10
- package/dist/src/components/ui/tabs/index.cjs +1 -1
- package/dist/src/components/ui/tabs/index.js +6 -6
- package/dist/src/components/ui/toggle-group/index.cjs +1 -1
- package/dist/src/components/ui/toggle-group/index.js +2 -2
- package/dist/src/index.cjs +1 -1
- package/dist/src/index.js +111 -104
- package/dist/src/public-component-surface.cjs +1 -1
- package/dist/src/public-component-surface.js +59 -14
- package/package.json +1 -2
- package/packages/cli/dist/index.cjs +45 -165
- package/packages/cli/vendor/src/components/actions/action-menu.tsx +47 -19
- package/packages/cli/vendor/src/components/actions/copy-button.tsx +2 -2
- package/packages/cli/vendor/src/components/calendar/calendar-range-scheduler.tsx +72 -0
- package/packages/cli/vendor/src/components/calendar/date-picker.tsx +2 -5
- package/packages/cli/vendor/src/components/calendar/date-range-picker.tsx +5 -12
- package/packages/cli/vendor/src/components/calendar/date-time-picker.tsx +53 -0
- package/packages/cli/vendor/src/components/calendar/index.ts +5 -3
- package/packages/cli/vendor/src/components/charts/chart-card.tsx +81 -0
- package/packages/cli/vendor/src/components/charts/index.ts +1 -0
- package/packages/cli/vendor/src/components/command/advanced-command-menu.tsx +88 -0
- package/packages/cli/vendor/src/components/command/index.ts +2 -1
- package/packages/cli/vendor/src/components/data-table/data-grid.tsx +59 -0
- package/packages/cli/vendor/src/components/data-table/data-table.tsx +45 -34
- package/packages/cli/vendor/src/components/data-table/index.ts +3 -2
- package/packages/cli/vendor/src/components/data-table/public.ts +1 -0
- package/packages/cli/vendor/src/components/display/index.ts +3 -5
- package/packages/cli/vendor/src/components/feedback/async-boundary.tsx +36 -0
- package/packages/cli/vendor/src/components/feedback/index.ts +1 -0
- package/packages/cli/vendor/src/components/filters/index.ts +0 -1
- package/packages/cli/vendor/src/components/inputs/color-picker.tsx +15 -1
- package/packages/cli/vendor/src/components/inputs/index.ts +1 -0
- package/packages/cli/vendor/src/components/inputs/multi-select.tsx +75 -0
- package/packages/cli/vendor/src/components/inputs/public.ts +1 -0
- package/packages/cli/vendor/src/components/inputs/slider.tsx +3 -3
- package/packages/cli/vendor/src/components/inputs/tag-input.tsx +4 -4
- package/packages/cli/vendor/src/components/inputs/time-picker.tsx +91 -38
- package/packages/cli/vendor/src/components/modern/file-manager.tsx +79 -0
- package/packages/cli/vendor/src/components/modern/index.ts +4 -1
- package/packages/cli/vendor/src/components/modern/map.tsx +146 -0
- package/packages/cli/vendor/src/components/modern/media-player.tsx +182 -0
- package/packages/cli/vendor/src/components/modern/resizable-panel.tsx +15 -5
- package/packages/cli/vendor/src/components/modern/spreadsheet.tsx +155 -0
- package/packages/cli/vendor/src/components/navigation/pagination.tsx +9 -5
- package/packages/cli/vendor/src/components/notifications/action-toast.tsx +78 -0
- package/packages/cli/vendor/src/components/notifications/index.ts +2 -1
- package/packages/cli/vendor/src/components/notifications/toast.tsx +20 -10
- package/packages/cli/vendor/src/components/overlay/alert-dialog.tsx +3 -5
- package/packages/cli/vendor/src/components/overlay/drawer.tsx +22 -11
- package/packages/cli/vendor/src/components/patterns/index.ts +1 -0
- package/packages/cli/vendor/src/components/patterns/permissions-matrix.tsx +71 -0
- package/packages/cli/vendor/src/components/patterns/public.ts +1 -0
- package/packages/cli/vendor/src/components/ui/checkbox/index.tsx +3 -1
- package/packages/cli/vendor/src/components/ui/dialog/index.tsx +4 -4
- package/packages/cli/vendor/src/components/ui/dropdown-menu/index.tsx +18 -22
- package/packages/cli/vendor/src/components/ui/popover/index.tsx +4 -4
- package/packages/cli/vendor/src/components/ui/tabs/index.tsx +8 -3
- package/packages/cli/vendor/src/components/ui/toggle-group/index.tsx +6 -6
- package/packages/cli/vendor/src/index.ts +0 -2
- package/packages/cli/vendor/src/public-component-surface.ts +13 -4
- package/packages/cli/vendor/templates/showcase/src/showcase/data/registry.ts +6 -6
- package/packages/cli/vendor/templates/showcase/src/showcase/layout/HeroSection.tsx +23 -8
- package/packages/cli/vendor/templates/showcase/src/showcase/layout/WorkbenchSidebar.tsx +1 -1
- package/packages/cli/vendor/templates/showcase/src/showcase/sections/PatternsSection.tsx +1 -1
- package/packages/cli/vendor/templates/styles/globals.css +0 -120
- package/registry.json +3197 -2794
- package/dist/components/display/info-card.cjs +0 -1
- package/dist/components/display/info-card.d.ts +0 -51
- package/dist/components/display/info-card.js +0 -1
- package/dist/components/display/statistic.cjs +0 -1
- package/dist/components/display/statistic.d.ts +0 -25
- package/dist/components/display/statistic.js +0 -1
- package/dist/components/filters/filter-bar.cjs +0 -1
- package/dist/components/filters/filter-bar.d.ts +0 -28
- package/dist/components/filters/filter-bar.js +0 -1
- package/dist/components/modern/image-cropper.cjs +0 -1
- package/dist/components/modern/image-cropper.d.ts +0 -39
- package/dist/components/modern/image-cropper.js +0 -1
- package/dist/components/ui/number-field/index.cjs +0 -1
- package/dist/components/ui/number-field/index.d.ts +0 -18
- package/dist/components/ui/number-field/index.js +0 -1
- package/dist/components/ui/toolbar/index.cjs +0 -1
- package/dist/components/ui/toolbar/index.d.ts +0 -14
- package/dist/components/ui/toolbar/index.js +0 -1
- package/dist/src/components/display/info-card.cjs +0 -1
- package/dist/src/components/display/info-card.js +0 -124
- package/dist/src/components/display/statistic.cjs +0 -1
- package/dist/src/components/display/statistic.js +0 -104
- package/dist/src/components/filters/filter-bar.cjs +0 -1
- package/dist/src/components/filters/filter-bar.js +0 -103
- package/dist/src/components/modern/image-cropper.cjs +0 -1
- package/dist/src/components/modern/image-cropper.js +0 -143
- package/dist/src/components/ui/number-field/index.cjs +0 -1
- package/dist/src/components/ui/number-field/index.js +0 -73
- package/dist/src/components/ui/toolbar/index.cjs +0 -1
- package/dist/src/components/ui/toolbar/index.js +0 -50
- package/packages/cli/vendor/src/components/display/info-card.tsx +0 -195
- package/packages/cli/vendor/src/components/display/statistic.tsx +0 -114
- package/packages/cli/vendor/src/components/filters/filter-bar.tsx +0 -163
- package/packages/cli/vendor/src/components/modern/image-cropper.tsx +0 -226
- package/packages/cli/vendor/src/components/ui/number-field/index.tsx +0 -89
- package/packages/cli/vendor/src/components/ui/toolbar/index.tsx +0 -67
|
@@ -3,198 +3,199 @@ import { cn as e } from "../../lib/utils.js";
|
|
|
3
3
|
import { Button as t } from "../ui/button/index.js";
|
|
4
4
|
import { StateView as n } from "../feedback/state-view.js";
|
|
5
5
|
import { Input as r } from "../ui/input/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import * as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { flexRender as
|
|
6
|
+
import { Table as i, TableBody as ee, TableCell as a, TableHead as te, TableHeader as ne, TableRow as o } from "../ui/table/index.js";
|
|
7
|
+
import { createDataTableActionsColumn as re } from "./data-table-actions-column.js";
|
|
8
|
+
import { DataTableBulkActions as ie } from "./data-table-bulk-actions.js";
|
|
9
|
+
import { DataTableColumnVisibilityMenu as ae } from "./data-table-column-visibility-menu.js";
|
|
10
|
+
import { DataTablePagination as oe } from "./data-table-pagination.js";
|
|
11
|
+
import { DataTableToolbar as se } from "./data-table-toolbar.js";
|
|
12
|
+
import { useVirtualizer as ce } from "../../../node_modules/@tanstack/react-virtual/dist/esm/index.js";
|
|
13
|
+
import { DataState as le } from "../display/data-state.js";
|
|
14
|
+
import { useIsMobile as ue } from "../../hooks/use-is-mobile.js";
|
|
15
|
+
import * as s from "react";
|
|
16
|
+
import { Fragment as de, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
17
|
+
import { flexRender as u, getCoreRowModel as fe, getExpandedRowModel as pe, getPaginationRowModel as me, getSortedRowModel as he, useReactTable as ge } from "@tanstack/react-table";
|
|
18
18
|
//#region src/components/data-table/data-table.tsx
|
|
19
|
-
var
|
|
19
|
+
var _e = {
|
|
20
20
|
compact: "h-8 px-2 py-1.5",
|
|
21
21
|
default: "h-10 px-2 py-2",
|
|
22
22
|
comfortable: "h-12 px-3 py-3"
|
|
23
|
-
},
|
|
23
|
+
}, ve = {
|
|
24
24
|
compact: "px-2 py-1.5",
|
|
25
25
|
default: "p-2",
|
|
26
26
|
comfortable: "px-3 py-3"
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function ye(e, t) {
|
|
29
29
|
return typeof t == "function" ? t(e) : t;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function be(e, t) {
|
|
32
32
|
return typeof t == "function" ? t(e) : t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function xe(e, t) {
|
|
35
35
|
return typeof t == "function" ? t(e) : t;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Se(e) {
|
|
38
38
|
return e == null || e === "";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Ce(e) {
|
|
41
41
|
let t = e.column.columnDef.header;
|
|
42
42
|
return typeof t == "string" ? t : typeof t == "number" ? String(t) : e.column.id === "actions" ? "Actions" : e.column.id;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
let nt =
|
|
46
|
-
let e =
|
|
47
|
-
return !
|
|
44
|
+
function we({ className: we, columns: Te, data: d, title: f, description: p, features: m, search: h, filters: g, summary: _, toolbarActions: v, rowActions: y, bulkActions: b, onRefresh: x, onExport: S, refreshLabel: Ee = "Refresh", exportLabel: De = "Export", getRowId: Oe, isLoading: C = !1, isError: ke = !1, emptyState: Ae, errorState: je, loadingState: w, loadingVariant: Me = "skeleton", toolbar: T, toolbarProps: E, pagination: D, sorting: Ne, onSortingChange: Pe, columnVisibility: Fe, onColumnVisibilityChange: Ie, rowSelection: Le, onRowSelectionChange: Re, enableRowSelection: ze, renderMobileCard: O, mobileLayout: Be = "auto", onRowClick: k, onRowDoubleClick: Ve, getRowDisabled: A, density: j = "default", striped: M = !1, bordered: N = !1, stickyHeader: P = !1, skeletonRows: He = 6, skeletonCellClassName: Ue, cellFallback: F = "-", tableClassName: We, tableWrapperClassName: Ge, headerCellClassName: Ke, cellClassName: qe, rowClassName: I, renderExpandedRow: Je, expanded: Ye, onExpandedChange: Xe, getRowCanExpand: Ze, columnPinning: Qe, onColumnPinningChange: $e, virtualization: et, ...tt }) {
|
|
45
|
+
let nt = s.useMemo(() => {
|
|
46
|
+
let e = Te;
|
|
47
|
+
return !y || m?.rowActions === !1 ? e : [...e, re({ getActions: y })];
|
|
48
48
|
}, [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
]),
|
|
53
|
-
pageIndex:
|
|
54
|
-
pageSize:
|
|
55
|
-
} : void 0,
|
|
56
|
-
data:
|
|
49
|
+
Te,
|
|
50
|
+
m?.rowActions,
|
|
51
|
+
y
|
|
52
|
+
]), L = D === !1 ? void 0 : D, [rt, it] = s.useState([]), [at, ot] = s.useState({}), [st, ct] = s.useState({}), [lt, ut] = s.useState({}), [dt, ft] = s.useState({}), pt = Ne ?? rt, mt = Fe ?? at, ht = Le ?? st, gt = Ye ?? lt, _t = Qe ?? dt, vt = L ? {
|
|
53
|
+
pageIndex: L.pageIndex,
|
|
54
|
+
pageSize: L.pageSize
|
|
55
|
+
} : void 0, yt = !!(L && L.manual !== !1), R = ge({
|
|
56
|
+
data: d,
|
|
57
57
|
columns: nt,
|
|
58
|
-
getRowId:
|
|
59
|
-
getCoreRowModel:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
getRowId: Oe,
|
|
59
|
+
getCoreRowModel: fe(),
|
|
60
|
+
getSortedRowModel: he(),
|
|
61
|
+
getPaginationRowModel: L && !yt ? me() : void 0,
|
|
62
|
+
manualPagination: yt,
|
|
63
|
+
pageCount: L?.pageCount,
|
|
63
64
|
state: {
|
|
64
|
-
sorting:
|
|
65
|
-
columnVisibility:
|
|
66
|
-
rowSelection:
|
|
67
|
-
pagination:
|
|
68
|
-
expanded:
|
|
69
|
-
|
|
65
|
+
sorting: pt,
|
|
66
|
+
columnVisibility: mt,
|
|
67
|
+
rowSelection: ht,
|
|
68
|
+
pagination: vt,
|
|
69
|
+
expanded: gt,
|
|
70
|
+
columnPinning: _t
|
|
70
71
|
},
|
|
71
|
-
onSortingChange:
|
|
72
|
-
onColumnVisibilityChange:
|
|
73
|
-
onRowSelectionChange:
|
|
74
|
-
onExpandedChange: Xe,
|
|
75
|
-
onColumnPinningChange: $e,
|
|
76
|
-
enableRowSelection:
|
|
72
|
+
onSortingChange: Pe ?? it,
|
|
73
|
+
onColumnVisibilityChange: Ie ?? ot,
|
|
74
|
+
onRowSelectionChange: Re ?? ct,
|
|
75
|
+
onExpandedChange: Xe ?? ut,
|
|
76
|
+
onColumnPinningChange: $e ?? ft,
|
|
77
|
+
enableRowSelection: ze,
|
|
77
78
|
getRowCanExpand: Ze,
|
|
78
|
-
getExpandedRowModel:
|
|
79
|
-
}),
|
|
80
|
-
count:
|
|
81
|
-
getScrollElement: () =>
|
|
82
|
-
estimateSize: () =>
|
|
83
|
-
getItemKey: (e) =>
|
|
84
|
-
overscan:
|
|
79
|
+
getExpandedRowModel: pe()
|
|
80
|
+
}), z = R.getRowModel().rows, bt = s.useRef(null), B = et === !1 ? void 0 : et, V = !!(B && B.enabled !== !1 && z.length > 0), H = B?.height ?? 480, xt = B?.onRangeChange, U = ce({
|
|
81
|
+
count: V ? z.length : 0,
|
|
82
|
+
getScrollElement: () => bt.current,
|
|
83
|
+
estimateSize: () => B?.estimateRowHeight ?? 48,
|
|
84
|
+
getItemKey: (e) => z[e]?.id ?? e,
|
|
85
|
+
overscan: B?.overscan ?? 8,
|
|
85
86
|
initialRect: {
|
|
86
87
|
width: 0,
|
|
87
|
-
height: typeof
|
|
88
|
+
height: typeof H == "number" ? H : 480
|
|
88
89
|
},
|
|
89
90
|
onChange(e) {
|
|
90
|
-
if (!
|
|
91
|
+
if (!xt) return;
|
|
91
92
|
let t = e.getVirtualItems();
|
|
92
|
-
|
|
93
|
+
xt({
|
|
93
94
|
startIndex: t[0]?.index ?? -1,
|
|
94
95
|
endIndex: t.at(-1)?.index ?? -1
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
|
-
}),
|
|
98
|
-
key:
|
|
98
|
+
}), St = V ? U.getVirtualItems() : [], W = B?.estimateRowHeight ?? 48, Ct = V ? Math.min(z.length, Math.ceil((typeof H == "number" ? H : 480) / W) + (B?.overscan ?? 8)) : 0, G = St.length > 0 ? St : Array.from({ length: Ct }, (e, t) => ({
|
|
99
|
+
key: z[t]?.id ?? t,
|
|
99
100
|
index: t,
|
|
100
|
-
start: t *
|
|
101
|
-
end: (t + 1) *
|
|
102
|
-
size:
|
|
101
|
+
start: t * W,
|
|
102
|
+
end: (t + 1) * W,
|
|
103
|
+
size: W,
|
|
103
104
|
lane: 0
|
|
104
|
-
})),
|
|
105
|
-
table:
|
|
106
|
-
data:
|
|
107
|
-
selectedRows:
|
|
105
|
+
})), wt = G[0]?.start ?? 0, Tt = G.length ? Math.max(U.getTotalSize() - G[G.length - 1].end, 0) : 0, K = R.getSelectedRowModel().rows.map((e) => e.original), Et = K.length, q = s.useMemo(() => ({
|
|
106
|
+
table: R,
|
|
107
|
+
data: d,
|
|
108
|
+
selectedRows: K
|
|
108
109
|
}), [
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
]),
|
|
110
|
+
d,
|
|
111
|
+
K,
|
|
112
|
+
R
|
|
113
|
+
]), Dt = R.getVisibleLeafColumns(), Ot = Math.max(Dt.length, 1), kt = typeof T == "function" ? T(R) : T, At = typeof E == "function" ? E(R) : E, J = typeof g == "function" ? g(q) : g, Y = typeof _ == "function" ? _(q) : _, jt = !!(h && m?.search !== !1), Mt = !!(m?.columnVisibility && R.getAllLeafColumns().some((e) => e.getCanHide())), X = !!(m?.refresh && x), Z = !!(m?.export && S), Nt = !!(m?.bulkActions !== !1 && b?.length), Pt = Mt && !!(f || p || h || J || Y || v || X || Z), Ft = jt && h ? /* @__PURE__ */ c(r, {
|
|
113
114
|
type: "search",
|
|
114
|
-
value:
|
|
115
|
-
onValueChange:
|
|
116
|
-
placeholder:
|
|
117
|
-
wrapperClassName:
|
|
118
|
-
inputClassName:
|
|
119
|
-
disabled:
|
|
120
|
-
clearable:
|
|
121
|
-
clearLabel:
|
|
122
|
-
searchIcon:
|
|
123
|
-
}) : void 0,
|
|
124
|
-
typeof
|
|
125
|
-
|
|
126
|
-
|
|
115
|
+
value: h.value,
|
|
116
|
+
onValueChange: h.onValueChange,
|
|
117
|
+
placeholder: h.placeholder ?? "Search...",
|
|
118
|
+
wrapperClassName: h.wrapperClassName ?? h.className,
|
|
119
|
+
inputClassName: h.inputClassName,
|
|
120
|
+
disabled: h.disabled,
|
|
121
|
+
clearable: h.clearable,
|
|
122
|
+
clearLabel: h.clearLabel,
|
|
123
|
+
searchIcon: h.searchIcon
|
|
124
|
+
}) : void 0, It = /* @__PURE__ */ l(de, { children: [
|
|
125
|
+
typeof v == "function" ? v(q) : v,
|
|
126
|
+
Pt && /* @__PURE__ */ c(ae, { table: R }),
|
|
127
|
+
X && /* @__PURE__ */ c(t, {
|
|
127
128
|
type: "button",
|
|
128
129
|
variant: "outline",
|
|
129
130
|
size: "sm",
|
|
130
131
|
disabled: C,
|
|
131
|
-
onClick: () => x?.(
|
|
132
|
-
children:
|
|
132
|
+
onClick: () => x?.(q),
|
|
133
|
+
children: Ee
|
|
133
134
|
}),
|
|
134
|
-
|
|
135
|
+
Z && /* @__PURE__ */ c(t, {
|
|
135
136
|
type: "button",
|
|
136
137
|
variant: "outline",
|
|
137
138
|
size: "sm",
|
|
138
|
-
onClick: () => S?.(
|
|
139
|
-
children:
|
|
139
|
+
onClick: () => S?.(q),
|
|
140
|
+
children: De
|
|
140
141
|
})
|
|
141
|
-
] }),
|
|
142
|
-
rows:
|
|
143
|
-
actions:
|
|
142
|
+
] }), Lt = Nt ? /* @__PURE__ */ c(ie, {
|
|
143
|
+
rows: K,
|
|
144
|
+
actions: b ?? [],
|
|
144
145
|
selectedLabel: () => "Actions",
|
|
145
146
|
clearLabel: null,
|
|
146
|
-
onClearSelection: () =>
|
|
147
|
+
onClearSelection: () => R.resetRowSelection(),
|
|
147
148
|
hideWhenEmpty: !1
|
|
148
|
-
}) : void 0,
|
|
149
|
+
}) : void 0, Rt = !!(kt || At || f || p || Ft || J || Y || v || Pt || X || Z || Lt), zt = !!(L && !L.hidden), Q = C && Me === "skeleton", Bt = ue(), Vt = Be !== "scroll" && Bt, Ht = (e, t) => t > 0 ? /* @__PURE__ */ c(o, {
|
|
149
150
|
"aria-hidden": "true",
|
|
150
151
|
className: "pointer-events-none border-0 hover:bg-transparent",
|
|
151
|
-
children: /* @__PURE__ */
|
|
152
|
-
colSpan:
|
|
152
|
+
children: /* @__PURE__ */ c(a, {
|
|
153
|
+
colSpan: Ot,
|
|
153
154
|
className: "border-0 p-0",
|
|
154
155
|
style: { height: t }
|
|
155
156
|
})
|
|
156
|
-
}, e) : null,
|
|
157
|
-
colSpan:
|
|
157
|
+
}, e) : null, Ut = (e) => /* @__PURE__ */ c(o, { children: /* @__PURE__ */ c(a, {
|
|
158
|
+
colSpan: Ot,
|
|
158
159
|
className: "p-0",
|
|
159
160
|
children: e
|
|
160
|
-
}) }),
|
|
161
|
+
}) }), Wt = () => Array.from({ length: Math.max(He, 1) }, (t, n) => /* @__PURE__ */ c(o, {
|
|
161
162
|
"aria-hidden": "true",
|
|
162
|
-
children:
|
|
163
|
-
className: e(
|
|
164
|
-
children: /* @__PURE__ */
|
|
163
|
+
children: Dt.map((t) => /* @__PURE__ */ c(a, {
|
|
164
|
+
className: e(ve[j], N && "border-r last:border-r-0"),
|
|
165
|
+
children: /* @__PURE__ */ c("div", { className: e("h-4 w-full max-w-40 animate-pulse rounded-md bg-muted", n % 3 == 1 && "max-w-24", n % 3 == 2 && "max-w-32", Ue) })
|
|
165
166
|
}, `${t.id}-${n}`))
|
|
166
|
-
}, `skeleton-${n}`)), $ =
|
|
167
|
+
}, `skeleton-${n}`)), $ = Q ? null : C ? /* @__PURE__ */ c(n, {
|
|
167
168
|
status: "loading",
|
|
168
169
|
title: "Loading data...",
|
|
169
170
|
...w
|
|
170
|
-
}) :
|
|
171
|
+
}) : ke ? /* @__PURE__ */ c(le, {
|
|
171
172
|
status: "error",
|
|
172
173
|
title: "Could not load data",
|
|
173
174
|
description: "Please try again.",
|
|
174
175
|
variant: "plain",
|
|
175
|
-
...
|
|
176
|
-
}) :
|
|
176
|
+
...je
|
|
177
|
+
}) : z.length === 0 ? /* @__PURE__ */ c(le, {
|
|
177
178
|
status: "empty",
|
|
178
179
|
variant: "plain",
|
|
179
|
-
...
|
|
180
|
-
}) : null,
|
|
180
|
+
...Ae
|
|
181
|
+
}) : null, Gt = (t, n, r) => {
|
|
181
182
|
let i = A?.(t) ?? !1;
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
ref: r &&
|
|
183
|
+
return /* @__PURE__ */ l(s.Fragment, { children: [/* @__PURE__ */ c(o, {
|
|
184
|
+
ref: r && B?.measureRows !== !1 ? U.measureElement : void 0,
|
|
184
185
|
"data-index": r?.index,
|
|
185
186
|
"data-state": t.getIsSelected() ? "selected" : void 0,
|
|
186
187
|
"data-striped": M && n % 2 == 1 ? "true" : void 0,
|
|
187
188
|
"data-disabled": i || void 0,
|
|
188
|
-
className: e(k && !i && "cursor-pointer", !i && "transition-colors hover:bg-[color:color-mix(in_oklch,var(--primary),transparent_96%)] data-[state=selected]:bg-[color:color-mix(in_oklch,var(--primary),transparent_90%)]", i && "pointer-events-none opacity-55",
|
|
189
|
+
className: e(k && !i && "cursor-pointer", !i && "transition-colors hover:bg-[color:color-mix(in_oklch,var(--primary),transparent_96%)] data-[state=selected]:bg-[color:color-mix(in_oklch,var(--primary),transparent_90%)]", i && "pointer-events-none opacity-55", ye(t, I)),
|
|
189
190
|
onClick: () => {
|
|
190
191
|
i || k?.(t);
|
|
191
192
|
},
|
|
192
193
|
onDoubleClick: () => {
|
|
193
|
-
i ||
|
|
194
|
+
i || Ve?.(t);
|
|
194
195
|
},
|
|
195
196
|
children: t.getVisibleCells().map((t) => {
|
|
196
|
-
let n =
|
|
197
|
-
return /* @__PURE__ */
|
|
197
|
+
let n = u(t.column.columnDef.cell, t.getContext());
|
|
198
|
+
return /* @__PURE__ */ c(a, {
|
|
198
199
|
style: {
|
|
199
200
|
...t.column.getIsPinned() === "left" ? {
|
|
200
201
|
left: `${t.column.getStart("left")}px`,
|
|
@@ -207,24 +208,24 @@ function Se({ className: Se, columns: Ce, data: f, title: p, description: m, fea
|
|
|
207
208
|
zIndex: 10
|
|
208
209
|
} : {}
|
|
209
210
|
},
|
|
210
|
-
className: e(
|
|
211
|
-
children:
|
|
211
|
+
className: e(ve[j], t.column.getIsPinned() && "bg-card shadow-[1px_0_0_var(--border)]", N && "border-r last:border-r-0", xe(t, qe)),
|
|
212
|
+
children: Se(n) ? F : n
|
|
212
213
|
}, t.id);
|
|
213
214
|
})
|
|
214
|
-
}), t.getIsExpanded() && Je ? /* @__PURE__ */
|
|
215
|
+
}), t.getIsExpanded() && Je ? /* @__PURE__ */ c(o, {
|
|
215
216
|
className: "bg-muted/50 hover:bg-muted/50",
|
|
216
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ c(a, {
|
|
217
218
|
colSpan: t.getVisibleCells().length,
|
|
218
219
|
children: Je(t)
|
|
219
220
|
})
|
|
220
221
|
}) : null] }, t.id);
|
|
221
|
-
},
|
|
222
|
+
}, Kt = (t) => {
|
|
222
223
|
let n = A?.(t) ?? !1, r = t.getVisibleCells();
|
|
223
|
-
return /* @__PURE__ */
|
|
224
|
+
return /* @__PURE__ */ c("article", {
|
|
224
225
|
"data-slot": "data-table-mobile-card",
|
|
225
226
|
"data-state": t.getIsSelected() ? "selected" : void 0,
|
|
226
227
|
"data-disabled": n || void 0,
|
|
227
|
-
className: e("grid gap-3 rounded-[var(--aui-card-radius,var(--radius-lg))] border border-[color:var(--aui-card-border,var(--border))] bg-card p-3 shadow-[var(--aui-card-shadow,0_10px_24px_rgba(15,23,42,0.07))]", k && !n && "cursor-pointer transition-colors hover:bg-[color:color-mix(in_oklch,var(--primary),transparent_96%)]", n && "pointer-events-none opacity-55",
|
|
228
|
+
className: e("grid gap-3 rounded-[var(--aui-card-radius,var(--radius-lg))] border border-[color:var(--aui-card-border,var(--border))] bg-card p-3 shadow-[var(--aui-card-shadow,0_10px_24px_rgba(15,23,42,0.07))]", k && !n && "cursor-pointer transition-colors hover:bg-[color:color-mix(in_oklch,var(--primary),transparent_96%)]", n && "pointer-events-none opacity-55", ye(t, I)),
|
|
228
229
|
role: k && !n ? "button" : void 0,
|
|
229
230
|
tabIndex: k && !n ? 0 : void 0,
|
|
230
231
|
onClick: () => {
|
|
@@ -234,66 +235,66 @@ function Se({ className: Se, columns: Ce, data: f, title: p, description: m, fea
|
|
|
234
235
|
e.target !== e.currentTarget || n || !k || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), k(t));
|
|
235
236
|
},
|
|
236
237
|
children: r.map((e) => {
|
|
237
|
-
let t =
|
|
238
|
-
return /* @__PURE__ */
|
|
238
|
+
let t = u(e.column.columnDef.cell, e.getContext());
|
|
239
|
+
return /* @__PURE__ */ l("div", {
|
|
239
240
|
"data-slot": "data-table-mobile-cell",
|
|
240
241
|
className: "grid grid-cols-[minmax(7rem,0.42fr)_minmax(0,1fr)] items-start gap-3 text-sm",
|
|
241
|
-
children: [/* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ c("span", {
|
|
242
243
|
className: "min-w-0 text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
243
|
-
children:
|
|
244
|
-
}), /* @__PURE__ */
|
|
244
|
+
children: Ce(e)
|
|
245
|
+
}), /* @__PURE__ */ c("div", {
|
|
245
246
|
className: "min-w-0 text-right text-foreground/92 [&>*]:ml-auto",
|
|
246
|
-
children:
|
|
247
|
+
children: Se(t) ? F : t
|
|
247
248
|
})]
|
|
248
249
|
}, e.id);
|
|
249
250
|
})
|
|
250
251
|
}, t.id);
|
|
251
252
|
};
|
|
252
|
-
return /* @__PURE__ */
|
|
253
|
+
return /* @__PURE__ */ l("div", {
|
|
253
254
|
"data-slot": "data-table",
|
|
254
|
-
className: e("grid gap-3",
|
|
255
|
+
className: e("grid gap-3", we),
|
|
255
256
|
...tt,
|
|
256
257
|
children: [
|
|
257
|
-
|
|
258
|
-
title:
|
|
259
|
-
description:
|
|
260
|
-
search:
|
|
261
|
-
filters:
|
|
262
|
-
summary:
|
|
263
|
-
actions:
|
|
264
|
-
selectionActions:
|
|
265
|
-
selectedCount:
|
|
266
|
-
totalCount:
|
|
258
|
+
Rt && (kt ?? /* @__PURE__ */ c(se, {
|
|
259
|
+
title: f,
|
|
260
|
+
description: p,
|
|
261
|
+
search: Ft,
|
|
262
|
+
filters: J,
|
|
263
|
+
summary: Y,
|
|
264
|
+
actions: It,
|
|
265
|
+
selectionActions: Lt,
|
|
266
|
+
selectedCount: Et,
|
|
267
|
+
totalCount: L ? L.rowCount ?? d.length : d.length,
|
|
267
268
|
variant: "plain",
|
|
268
|
-
...
|
|
269
|
+
...At
|
|
269
270
|
})),
|
|
270
|
-
|
|
271
|
+
Vt && /* @__PURE__ */ c("div", {
|
|
271
272
|
className: "grid gap-3",
|
|
272
|
-
children: $ ?? (
|
|
273
|
+
children: $ ?? (Q ? /* @__PURE__ */ c(n, {
|
|
273
274
|
status: "loading",
|
|
274
275
|
title: "Loading data...",
|
|
275
276
|
...w
|
|
276
|
-
}) :
|
|
277
|
+
}) : z.map((e) => /* @__PURE__ */ c(s.Fragment, { children: O ? O(e) : Kt(e) }, e.id)))
|
|
277
278
|
}),
|
|
278
|
-
!
|
|
279
|
+
!Vt && /* @__PURE__ */ l("div", {
|
|
279
280
|
"data-slot": "data-table-wrapper",
|
|
280
281
|
"data-density": j,
|
|
281
282
|
"data-striped": M || void 0,
|
|
282
283
|
"data-bordered": N || void 0,
|
|
283
|
-
"data-virtualized":
|
|
284
|
-
className: e("overflow-hidden rounded-[var(--aui-card-radius,var(--radius-lg))] border border-[color:var(--aui-card-border,var(--border))] bg-card shadow-[var(--aui-card-shadow,0_10px_24px_rgba(15,23,42,0.07))] backdrop-blur",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
286
|
-
containerRef:
|
|
287
|
-
containerStyle:
|
|
288
|
-
height:
|
|
284
|
+
"data-virtualized": V || void 0,
|
|
285
|
+
className: e("overflow-hidden rounded-[var(--aui-card-radius,var(--radius-lg))] border border-[color:var(--aui-card-border,var(--border))] bg-card shadow-[var(--aui-card-shadow,0_10px_24px_rgba(15,23,42,0.07))] backdrop-blur", Ge),
|
|
286
|
+
children: [/* @__PURE__ */ l(i, {
|
|
287
|
+
containerRef: bt,
|
|
288
|
+
containerStyle: V ? {
|
|
289
|
+
height: H,
|
|
289
290
|
overscrollBehavior: "contain"
|
|
290
291
|
} : void 0,
|
|
291
|
-
containerClassName: e("rounded-none border-0 bg-transparent shadow-none ring-0",
|
|
292
|
-
className: e("text-[0.95rem]",
|
|
293
|
-
"aria-rowcount":
|
|
294
|
-
children: [/* @__PURE__ */
|
|
295
|
-
className: e((P ||
|
|
296
|
-
children:
|
|
292
|
+
containerClassName: e("rounded-none border-0 bg-transparent shadow-none ring-0", V && "overflow-auto"),
|
|
293
|
+
className: e("text-[0.95rem]", We),
|
|
294
|
+
"aria-rowcount": z.length,
|
|
295
|
+
children: [/* @__PURE__ */ c(ne, {
|
|
296
|
+
className: e((P || V) && "sticky top-0 z-10 shadow-sm backdrop-blur"),
|
|
297
|
+
children: R.getHeaderGroups().map((t) => /* @__PURE__ */ c(o, { children: t.headers.map((t) => /* @__PURE__ */ c(te, {
|
|
297
298
|
style: {
|
|
298
299
|
width: t.getSize(),
|
|
299
300
|
...t.column.getIsPinned() === "left" ? {
|
|
@@ -307,29 +308,29 @@ function Se({ className: Se, columns: Ce, data: f, title: p, description: m, fea
|
|
|
307
308
|
zIndex: P ? 20 : 11
|
|
308
309
|
} : {}
|
|
309
310
|
},
|
|
310
|
-
className: e(
|
|
311
|
-
children: t.isPlaceholder ? null :
|
|
311
|
+
className: e(_e[j], "bg-[color:color-mix(in_oklch,var(--card),var(--background)_10%)] text-muted-foreground", (P || V) && "bg-[color:color-mix(in_oklch,var(--card),transparent_12%)] backdrop-blur", t.column.getIsPinned() && "bg-card shadow-[1px_0_0_var(--border)]", N && "border-r last:border-r-0", be(t, Ke)),
|
|
312
|
+
children: t.isPlaceholder ? null : u(t.column.columnDef.header, t.getContext())
|
|
312
313
|
}, t.id)) }, t.id))
|
|
313
|
-
}), /* @__PURE__ */
|
|
314
|
-
|
|
315
|
-
...
|
|
316
|
-
|
|
317
|
-
] :
|
|
318
|
-
}),
|
|
319
|
-
pageIndex:
|
|
320
|
-
pageSize:
|
|
321
|
-
pageCount:
|
|
322
|
-
rowCount:
|
|
323
|
-
pageSizeOptions:
|
|
324
|
-
showPageSize:
|
|
325
|
-
labels:
|
|
314
|
+
}), /* @__PURE__ */ c(ee, { children: $ ? Ut($) : Q ? Wt() : V ? [
|
|
315
|
+
Ht("virtual-top", wt),
|
|
316
|
+
...G.map((e) => Gt(z[e.index], e.index, e)),
|
|
317
|
+
Ht("virtual-bottom", Tt)
|
|
318
|
+
] : z.map((e, t) => Gt(e, t)) })]
|
|
319
|
+
}), zt && L && /* @__PURE__ */ c(oe, {
|
|
320
|
+
pageIndex: L.pageIndex,
|
|
321
|
+
pageSize: L.pageSize,
|
|
322
|
+
pageCount: L.pageCount,
|
|
323
|
+
rowCount: L.rowCount,
|
|
324
|
+
pageSizeOptions: L.pageSizeOptions,
|
|
325
|
+
showPageSize: L.showPageSize,
|
|
326
|
+
labels: L.labels,
|
|
326
327
|
disabled: C,
|
|
327
|
-
onPageChange:
|
|
328
|
-
onPageSizeChange:
|
|
328
|
+
onPageChange: L.onPageChange,
|
|
329
|
+
onPageSizeChange: L.onPageSizeChange
|
|
329
330
|
})]
|
|
330
331
|
})
|
|
331
332
|
]
|
|
332
333
|
});
|
|
333
334
|
}
|
|
334
335
|
//#endregion
|
|
335
|
-
export {
|
|
336
|
+
export { we as DataTable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./data-table-row-actions.cjs"),
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./data-grid.cjs"),t=require("./data-table-row-actions.cjs"),n=require("./data-table-actions-column.cjs"),r=require("./data-table-bulk-actions.cjs"),i=require("./data-table-column-visibility-menu.cjs"),a=require("./data-table-pagination.cjs"),o=require("./data-table-saved-filters.cjs"),s=require("./data-table-select-column.cjs"),c=require("./data-table-sortable-header.cjs"),l=require("./data-table-toolbar.cjs"),u=require("./data-table-view-presets.cjs"),d=require("./data-table.cjs"),f=require("./table-export-menu.cjs"),p=require("./table-import-button.cjs");exports.DataGrid=e.DataGrid,exports.DataTable=d.DataTable,exports.DataTableBulkActions=r.DataTableBulkActions,exports.DataTableColumnVisibilityMenu=i.DataTableColumnVisibilityMenu,exports.DataTablePagination=a.DataTablePagination,exports.DataTableRowActions=t.DataTableRowActions,exports.DataTableSavedFilters=o.DataTableSavedFilters,exports.DataTableSortableHeader=c.DataTableSortableHeader,exports.DataTableToolbar=l.DataTableToolbar,exports.DataTableViewPresets=u.DataTableViewPresets,exports.TableExportMenu=f.TableExportMenu,exports.TableImportButton=p.TableImportButton,exports.createDataTableActionsColumn=n.createDataTableActionsColumn,exports.createDataTableSelectColumn=s.createDataTableSelectColumn,exports.dataTableToolbarVariants=l.dataTableToolbarVariants,exports.getDataTablePageCount=a.getDataTablePageCount,exports.resolveRowActions=t.resolveRowActions;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import { DataGrid as e } from "./data-grid.js";
|
|
2
|
+
import { DataTableRowActions as t, resolveRowActions as n } from "./data-table-row-actions.js";
|
|
3
|
+
import { createDataTableActionsColumn as r } from "./data-table-actions-column.js";
|
|
4
|
+
import { DataTableBulkActions as i } from "./data-table-bulk-actions.js";
|
|
5
|
+
import { DataTableColumnVisibilityMenu as a } from "./data-table-column-visibility-menu.js";
|
|
6
|
+
import { DataTablePagination as o, getDataTablePageCount as s } from "./data-table-pagination.js";
|
|
7
|
+
import { DataTableSavedFilters as c } from "./data-table-saved-filters.js";
|
|
8
|
+
import { createDataTableSelectColumn as l } from "./data-table-select-column.js";
|
|
9
|
+
import { DataTableSortableHeader as u } from "./data-table-sortable-header.js";
|
|
10
|
+
import { DataTableToolbar as d, dataTableToolbarVariants as f } from "./data-table-toolbar.js";
|
|
11
|
+
import { DataTableViewPresets as p } from "./data-table-view-presets.js";
|
|
12
|
+
import { DataTable as m } from "./data-table.js";
|
|
13
|
+
import { TableExportMenu as h } from "./table-export-menu.js";
|
|
14
|
+
import { TableImportButton as g } from "./table-import-button.js";
|
|
15
|
+
export { e as DataGrid, m as DataTable, i as DataTableBulkActions, a as DataTableColumnVisibilityMenu, o as DataTablePagination, t as DataTableRowActions, c as DataTableSavedFilters, u as DataTableSortableHeader, d as DataTableToolbar, p as DataTableViewPresets, h as TableExportMenu, g as TableImportButton, r as createDataTableActionsColumn, l as createDataTableSelectColumn, f as dataTableToolbarVariants, s as getDataTablePageCount, n as resolveRowActions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./data-table.cjs");exports.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./data-grid.cjs"),t=require("./data-table.cjs");exports.DataGrid=e.DataGrid,exports.DataTable=t.DataTable;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DataGrid as e } from "./data-grid.js";
|
|
2
|
+
import { DataTable as t } from "./data-table.js";
|
|
3
|
+
export { e as DataGrid, t as DataTable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./data-state.cjs"),t=require("./activity-feed.cjs"),n=require("./avatar.cjs"),r=require("./carousel.cjs"),i=require("./chat.cjs"),a=require("./code-block.cjs"),o=require("./description-list.cjs"),s=require("./kanban.cjs"),c=require("./list.cjs"),l=require("./progress.cjs"),u=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./data-state.cjs"),t=require("./activity-feed.cjs"),n=require("./avatar.cjs"),r=require("./carousel.cjs"),i=require("./chat.cjs"),a=require("./code-block.cjs"),o=require("./description-list.cjs"),s=require("./kanban.cjs"),c=require("./list.cjs"),l=require("./progress.cjs"),u=require("./status-dot.cjs"),d=require("./status-legend.cjs"),f=require("./timeline.cjs"),p=require("./tree-view.cjs"),m=require("./virtual-list.cjs"),h=require("./qr-code.cjs"),g=require("./tag.cjs"),_=require("./typography.cjs");exports.ActivityFeed=t.ActivityFeed,exports.Avatar=n.Avatar,exports.AvatarGroup=n.AvatarGroup,exports.Blockquote=_.Blockquote,exports.Carousel=r.Carousel,exports.CarouselItem=r.CarouselItem,exports.ChatAttachment=i.ChatAttachment,exports.ChatComposer=i.ChatComposer,exports.ChatHeader=i.ChatHeader,exports.ChatHeaderActions=i.ChatHeaderActions,exports.ChatMessage=i.ChatMessage,exports.ChatMessageList=i.ChatMessageList,exports.ChatShell=i.ChatShell,exports.ChatTypingIndicator=i.ChatTypingIndicator,exports.Chip=g.Chip,exports.CodeBlock=a.CodeBlock,exports.ConversationList=i.ConversationList,exports.DataState=e.DataState,exports.DescriptionList=o.DescriptionList,exports.Heading=_.Heading,exports.KanbanBoard=s.KanbanBoard,exports.List=c.List,exports.ListRow=c.ListRow,exports.Mark=_.Mark,exports.Progress=l.Progress,exports.ProgressCard=l.ProgressCard,exports.QRCode=h.QRCode,exports.QRCodeSvg=h.QRCodeSvg,exports.Spoiler=_.Spoiler,exports.SpoilerSummary=_.SpoilerSummary,exports.StatusDot=u.StatusDot,exports.StatusLegend=d.StatusLegend,exports.Tag=g.Tag,exports.TagGroup=g.TagGroup,exports.Text=_.Text,exports.Timeline=f.Timeline,exports.TreeView=p.TreeView,exports.VirtualList=m.VirtualList,exports.getProgressPercent=l.getProgressPercent;
|
|
@@ -8,14 +8,12 @@ import { DescriptionList as g } from "./description-list.js";
|
|
|
8
8
|
import { KanbanBoard as _ } from "./kanban.js";
|
|
9
9
|
import { List as v, ListRow as y } from "./list.js";
|
|
10
10
|
import { Progress as b, ProgressCard as x, getProgressPercent as S } from "./progress.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
import { Blockquote as L, Heading as R, Mark as z, Spoiler as B, SpoilerSummary as V, Text as H } from "./typography.js";
|
|
21
|
-
export { t as ActivityFeed, n as Avatar, r as AvatarGroup, L as Blockquote, i as Carousel, a as CarouselItem, o as ChatAttachment, s as ChatComposer, c as ChatHeader, l as ChatHeaderActions, u as ChatMessage, d as ChatMessageList, f as ChatShell, p as ChatTypingIndicator, P as Chip, h as CodeBlock, m as ConversationList, e as DataState, g as DescriptionList, R as Heading, A as InfoCard, _ as KanbanBoard, v as List, y as ListRow, z as Mark, b as Progress, x as ProgressCard, M as QRCode, N as QRCodeSvg, B as Spoiler, V as SpoilerSummary, C as Statistic, w as StatisticCard, T as StatisticGrid, E as StatusDot, D as StatusLegend, F as Tag, I as TagGroup, H as Text, O as Timeline, k as TreeView, j as VirtualList, S as getProgressPercent };
|
|
11
|
+
import { StatusDot as C } from "./status-dot.js";
|
|
12
|
+
import { StatusLegend as w } from "./status-legend.js";
|
|
13
|
+
import { Timeline as T } from "./timeline.js";
|
|
14
|
+
import { TreeView as E } from "./tree-view.js";
|
|
15
|
+
import { VirtualList as D } from "./virtual-list.js";
|
|
16
|
+
import { QRCode as O, QRCodeSvg as k } from "./qr-code.js";
|
|
17
|
+
import { Chip as A, Tag as j, TagGroup as M } from "./tag.js";
|
|
18
|
+
import { Blockquote as N, Heading as P, Mark as F, Spoiler as I, SpoilerSummary as L, Text as R } from "./typography.js";
|
|
19
|
+
export { t as ActivityFeed, n as Avatar, r as AvatarGroup, N as Blockquote, i as Carousel, a as CarouselItem, o as ChatAttachment, s as ChatComposer, c as ChatHeader, l as ChatHeaderActions, u as ChatMessage, d as ChatMessageList, f as ChatShell, p as ChatTypingIndicator, A as Chip, h as CodeBlock, m as ConversationList, e as DataState, g as DescriptionList, P as Heading, _ as KanbanBoard, v as List, y as ListRow, F as Mark, b as Progress, x as ProgressCard, O as QRCode, k as QRCodeSvg, I as Spoiler, L as SpoilerSummary, C as StatusDot, w as StatusLegend, j as Tag, M as TagGroup, R as Text, T as Timeline, E as TreeView, D as VirtualList, S as getProgressPercent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./state-view.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");function i({loading:e,error:n,empty:i,loadingTitle:a=`Loading`,errorTitle:o=`Unable to load`,emptyTitle:s=`No data`,onRetry:c,children:l}){return e?(0,r.jsx)(t.StateView,{status:`loading`,title:a,loadingVariant:`skeleton`}):n?(0,r.jsx)(t.StateView,{status:`error`,title:o,description:n instanceof Error?n.message:`Try again or check the request.`,onRetry:c}):i?(0,r.jsx)(t.StateView,{status:`empty`,title:s}):(0,r.jsx)(r.Fragment,{children:l})}exports.AsyncBoundary=i;
|