@pibit.ai/cure-design-system 0.3.24 → 0.3.28
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -54
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +688 -546
- package/dist/patterns/table/index.d.ts +1 -1
- package/dist/patterns/table/index.d.ts.map +1 -1
- package/dist/patterns/table/rowReorderDrag.d.ts +57 -0
- package/dist/patterns/table/rowReorderDrag.d.ts.map +1 -0
- package/dist/patterns/table/rowReorderDrag.js +120 -0
- package/dist/patterns/table/table.d.ts.map +1 -1
- package/dist/patterns/table/table.js +36 -36
- package/dist/patterns/table/tableUndoRedo.d.ts.map +1 -1
- package/dist/patterns/table/tableUndoRedo.js +21 -18
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts +17 -1
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/RowActionsMenu.js +69 -51
- package/dist/patterns/table/types.d.ts +1 -0
- package/dist/patterns/table/types.d.ts.map +1 -1
- package/dist/patterns/table/useTableUndoRedo.d.ts +9 -0
- package/dist/patterns/table/useTableUndoRedo.d.ts.map +1 -1
- package/dist/patterns/table/useTableUndoRedo.js +217 -127
- package/dist/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/dist/primitives/checkbox/checkbox.js +16 -16
- package/dist/primitives/select/ExpandableSearchInput.d.ts.map +1 -1
- package/dist/primitives/select/ExpandableSearchInput.js +2 -1
- package/dist/primitives/select/SearchInput.d.ts +7 -7
- package/dist/primitives/select/SearchInput.d.ts.map +1 -1
- package/dist/primitives/select/SearchInput.js +66 -62
- package/dist/styles/components.css +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export type { TableColumnSchema, TableColumnMenuSchema, TableColumnValueType } f
|
|
|
10
10
|
export { TableToolbar, pickCoreToolbarProps, registerToolbarExtensions, getToolbarExtensions, RowHeightDropdown, HideFieldsDropdown, AlignDropdown, GroupByDropdown, ShowSummaryDropdown, SummaryFooterRow, ColumnHeaderMenu, RowActionsMenu, BulkActionBar, applyHideAndReorder, getDefaultAlignmentForType, getEffectiveAlignment, alignmentClass, getAggregationsForType, computeAggregation, groupRows, resolveColumnLabel, resolveSummaryDisplayValueType, ROW_HEIGHT_CLASS, AGGREGATION_LABELS, } from './toolbar';
|
|
11
11
|
export type { SearchToolConfig, SortToolConfig, FilterToolConfig, RowHeightToolConfig, HideFieldsToolConfig, AlignToolConfig, GroupByToolConfig, SummaryToolConfig, UndoRedoToolConfig, ToolbarExtensionComponents, LegacySortToolConfig, LegacyFilterToolConfig, RowHeightOption, SummaryFooterRowProps, ColumnMenuAction, ColumnMenuCapabilities, RowActionsConfig, CellAlignment, AggregationType, AggregationOption, RowGroup, } from './toolbar';
|
|
12
12
|
export { GridNavProvider, useGridKeyboardNavigation, isWithinCellEditor, findGridCell, focusGridCell, getGridNeighbor, getGridTabNeighbor, type GridNavDirection, type GridNeighbor, type GridNavValue, } from './useGridKeyboardNavigation';
|
|
13
|
-
export { TableUndoRedoProvider, useTableUndoRedo, useTableUndoRedoScope, wrapColumnHeaderActionWithUndoRedo, wrapEditChromeWithUndoRedo, wrapRowActionsWithUndoRedo, wrapSummaryFooterWithUndoRedo, wrapToolbarWithUndoRedo, type TableUndoRedoRegistration, type TableUndoRedoScopeApi, type TableUndoRedoState, type TableUndoSnapshot, } from './useTableUndoRedo';
|
|
13
|
+
export { TableUndoRedoProvider, useTableUndoRedo, useTableUndoRedoScope, MAX_HISTORY, wrapColumnHeaderActionWithUndoRedo, wrapEditChromeWithUndoRedo, wrapRowActionsWithUndoRedo, wrapSummaryFooterWithUndoRedo, wrapToolbarWithUndoRedo, type TableUndoRedoRegistration, type TableUndoRedoScopeApi, type TableUndoRedoState, type TableUndoSnapshot, } from './useTableUndoRedo';
|
|
14
14
|
export { useIntegrateTableUndoRedo, type IntegrateTableUndoRedoOptions, type IntegrateTableUndoRedoResult, } from './integrateTableUndoRedo';
|
|
15
15
|
export { applyTableUndoSnapshot, captureTableUndoSnapshot, } from './tableUndoRedo';
|
|
16
16
|
export { EllipsisContentWithTooltip, createEllipsisContent, type EllipsisContentWithTooltipProps, } from '../../primitives/tooltip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,YAAY,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC9F,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,8BAA8B,EAC9B,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,QAAQ,GACT,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,kCAAkC,EAClC,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,yBAAyB,EACzB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,GAClC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,KAAK,+BAA+B,GACrC,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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f,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,QAAQ,GACT,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,kCAAkC,EAClC,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,yBAAyB,EACzB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,GAClC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,KAAK,+BAA+B,GACrC,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export declare const ROW_REORDER_ATTR = "data-row-reorder-id";
|
|
3
|
+
export declare const ROW_SOURCE_INDEX_ATTR = "data-source-index";
|
|
4
|
+
export declare const ROW_DRAG_THRESHOLD_PX = 5;
|
|
5
|
+
export type RowDragPreviewMetrics = {
|
|
6
|
+
left: number;
|
|
7
|
+
top: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
cellWidths: number[];
|
|
11
|
+
tableClassName: string;
|
|
12
|
+
};
|
|
13
|
+
export type RowDragSession = {
|
|
14
|
+
rowId: string;
|
|
15
|
+
fromSourceIndex: number;
|
|
16
|
+
item: Record<string, unknown>;
|
|
17
|
+
pointerId: number;
|
|
18
|
+
startX: number;
|
|
19
|
+
startY: number;
|
|
20
|
+
currentX: number;
|
|
21
|
+
currentY: number;
|
|
22
|
+
/** True once movement exceeds the drag threshold. */
|
|
23
|
+
active: boolean;
|
|
24
|
+
preview: RowDragPreviewMetrics;
|
|
25
|
+
/** Destination index for `onReorderRows` (final index after move). */
|
|
26
|
+
toSourceIndex: number;
|
|
27
|
+
dropLineY: number | null;
|
|
28
|
+
dropLineLeft: number;
|
|
29
|
+
dropLineWidth: number;
|
|
30
|
+
/** Live clone of the source `<tr>` for the floating preview. */
|
|
31
|
+
rowClone: HTMLTableRowElement;
|
|
32
|
+
};
|
|
33
|
+
export declare function measureRowPreview(rowEl: HTMLTableRowElement): RowDragPreviewMetrics;
|
|
34
|
+
export declare function cloneRowForPreview(rowEl: HTMLTableRowElement): HTMLTableRowElement;
|
|
35
|
+
type DropTargetResult = {
|
|
36
|
+
toSourceIndex: number;
|
|
37
|
+
dropLineY: number;
|
|
38
|
+
dropLineLeft: number;
|
|
39
|
+
dropLineWidth: number;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Hit-test body rows by pointer Y and return the final destination source index
|
|
43
|
+
* (index after moving the dragged row out of its original position).
|
|
44
|
+
*/
|
|
45
|
+
export declare function computeDropTarget(container: HTMLElement, clientY: number, fromSourceIndex: number, draggedRowId: string): DropTargetResult | null;
|
|
46
|
+
type FloatingRowPreviewProps = {
|
|
47
|
+
session: RowDragSession;
|
|
48
|
+
};
|
|
49
|
+
export declare const FloatingRowPreview: FC<FloatingRowPreviewProps>;
|
|
50
|
+
type DropIndicatorLineProps = {
|
|
51
|
+
y: number;
|
|
52
|
+
left: number;
|
|
53
|
+
width: number;
|
|
54
|
+
};
|
|
55
|
+
export declare const DropIndicatorLine: FC<DropIndicatorLineProps>;
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=rowReorderDrag.d.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E,mBAAmB,GAAG,mBAAmB,CAalF;AAED,KAAK,gBAAgB,GAAG;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,GACnB,gBAAgB,GAAG,IAAI,CA8DzB;AAED,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAkD1D,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAYtD,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as I, useLayoutEffect as N } from "react";
|
|
3
|
+
import { createPortal as A } from "react-dom";
|
|
4
|
+
import { cx as E } from "../../utils/cn.js";
|
|
5
|
+
const y = "data-row-reorder-id", C = "data-source-index", _ = 5;
|
|
6
|
+
function O(n) {
|
|
7
|
+
const t = n.getBoundingClientRect(), e = n.closest("table"), u = Array.from(n.children).map(
|
|
8
|
+
(i) => i.getBoundingClientRect().width
|
|
9
|
+
);
|
|
10
|
+
return {
|
|
11
|
+
left: t.left,
|
|
12
|
+
top: t.top,
|
|
13
|
+
width: t.width,
|
|
14
|
+
height: t.height,
|
|
15
|
+
cellWidths: u,
|
|
16
|
+
tableClassName: (e == null ? void 0 : e.className) ?? ""
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function D(n) {
|
|
20
|
+
const t = n.cloneNode(!0);
|
|
21
|
+
return t.removeAttribute(y), t.removeAttribute(C), t.removeAttribute("id"), t.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id")), t.querySelectorAll("button, input, a, [tabindex]").forEach((e) => {
|
|
22
|
+
e.setAttribute("tabindex", "-1"), (e instanceof HTMLButtonElement || e instanceof HTMLInputElement) && (e.disabled = !0);
|
|
23
|
+
}), t;
|
|
24
|
+
}
|
|
25
|
+
function S(n, t, e, u) {
|
|
26
|
+
var w, x;
|
|
27
|
+
const i = Array.from(
|
|
28
|
+
n.querySelectorAll(`tr[${y}]`)
|
|
29
|
+
);
|
|
30
|
+
if (i.length === 0) return null;
|
|
31
|
+
const m = (w = i[0]) == null ? void 0 : w.closest("table"), d = m == null ? void 0 : m.getBoundingClientRect(), b = (d == null ? void 0 : d.left) ?? i[0].getBoundingClientRect().left, f = (d == null ? void 0 : d.width) ?? i[0].getBoundingClientRect().width, o = i.map((r) => {
|
|
32
|
+
const g = r.getBoundingClientRect(), R = Number(r.getAttribute(C));
|
|
33
|
+
return {
|
|
34
|
+
rowId: r.getAttribute(y) ?? "",
|
|
35
|
+
sourceIndex: Number.isFinite(R) ? R : 0,
|
|
36
|
+
top: g.top,
|
|
37
|
+
bottom: g.bottom,
|
|
38
|
+
mid: (g.top + g.bottom) / 2
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
let s = o.length, h = ((x = o[o.length - 1]) == null ? void 0 : x.bottom) ?? 0;
|
|
42
|
+
for (let r = 0; r < o.length; r++)
|
|
43
|
+
if (t < o[r].mid) {
|
|
44
|
+
s = r, h = o[r].top;
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
const p = o.findIndex(
|
|
48
|
+
(r) => r.rowId === u || r.sourceIndex === e
|
|
49
|
+
);
|
|
50
|
+
if (p < 0) return null;
|
|
51
|
+
let a = s;
|
|
52
|
+
p < s && (a = s - 1);
|
|
53
|
+
const c = o.map((r) => r.sourceIndex), [l] = c.splice(p, 1);
|
|
54
|
+
return c.splice(a, 0, l), a = c.indexOf(l), {
|
|
55
|
+
toSourceIndex: a,
|
|
56
|
+
dropLineY: h,
|
|
57
|
+
dropLineLeft: b,
|
|
58
|
+
dropLineWidth: f
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const $ = ({ session: n }) => {
|
|
62
|
+
const t = I(null), { preview: e, startX: u, startY: i, currentX: m, currentY: d, rowClone: b } = n;
|
|
63
|
+
return N(() => {
|
|
64
|
+
const f = t.current;
|
|
65
|
+
if (!f) return;
|
|
66
|
+
f.replaceChildren();
|
|
67
|
+
const o = document.createElement("table");
|
|
68
|
+
o.className = e.tableClassName, o.style.width = `${e.width}px`, o.style.height = `${e.height}px`, o.style.tableLayout = "fixed", o.style.borderCollapse = "collapse", o.style.background = "var(--color-bg-primary, #fff)";
|
|
69
|
+
const s = document.createElement("tbody"), h = b.cloneNode(!0);
|
|
70
|
+
Array.from(h.children).forEach((p, a) => {
|
|
71
|
+
const c = e.cellWidths[a];
|
|
72
|
+
if (c == null) return;
|
|
73
|
+
const l = p;
|
|
74
|
+
l.style.width = `${c}px`, l.style.minWidth = `${c}px`, l.style.maxWidth = `${c}px`, l.style.background = "var(--color-bg-primary, #fff)";
|
|
75
|
+
}), s.appendChild(h), o.appendChild(s), f.appendChild(o);
|
|
76
|
+
}, [e, b]), A(
|
|
77
|
+
/* @__PURE__ */ v(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
ref: t,
|
|
81
|
+
"aria-hidden": !0,
|
|
82
|
+
className: E(
|
|
83
|
+
"pointer-events-none fixed z-[10000] overflow-hidden rounded-md border border-brand bg-primary shadow-lg",
|
|
84
|
+
"cursor-grabbing"
|
|
85
|
+
),
|
|
86
|
+
style: {
|
|
87
|
+
left: e.left + (m - u),
|
|
88
|
+
top: e.top + (d - i),
|
|
89
|
+
width: e.width,
|
|
90
|
+
height: e.height
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
document.body
|
|
95
|
+
);
|
|
96
|
+
}, P = ({ y: n, left: t, width: e }) => A(
|
|
97
|
+
/* @__PURE__ */ v(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
"aria-hidden": !0,
|
|
101
|
+
className: "pointer-events-none fixed z-[10000] h-0.5 bg-border-brand",
|
|
102
|
+
style: {
|
|
103
|
+
top: n - 1,
|
|
104
|
+
left: t,
|
|
105
|
+
width: e
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
document.body
|
|
110
|
+
);
|
|
111
|
+
export {
|
|
112
|
+
P as DropIndicatorLine,
|
|
113
|
+
$ as FloatingRowPreview,
|
|
114
|
+
_ as ROW_DRAG_THRESHOLD_PX,
|
|
115
|
+
y as ROW_REORDER_ATTR,
|
|
116
|
+
C as ROW_SOURCE_INDEX_ATTR,
|
|
117
|
+
D as cloneRowForPreview,
|
|
118
|
+
S as computeDropTarget,
|
|
119
|
+
O as measureRowPreview
|
|
120
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAgB,SAAS,EAAE,GAAG,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAqBrI,OAAO,KAAK,EACV,SAAS,IAAI,aAAa,EAC1B,WAAW,IAAI,eAAe,EAC9B,QAAQ,IAAI,YAAY,EACxB,gBAAgB,IAAI,oBAAoB,EACxC,UAAU,IAAI,cAAc,EAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAOL,SAAS,IAAI,aAAa,EAG3B,MAAM,uBAAuB,CAAC;AAQ/B,eAAO,MAAM,uBAAuB,+CAiBnC,CAAC;AA2EF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,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EAAE,OAAO,aAAa,CAAC;IAC3B,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,GAAG,EAAE,OAAO,QAAQ,CAAC;CACtB,CAAC;AAOF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as h, jsx as e, Fragment as V } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as F, useContext as N, createContext as G, useState as R, isValidElement as k, useRef as J, useEffect as Q, cloneElement as _, Children as X } from "react";
|
|
3
|
-
import { Edit01 as Y, Copy01 as Z, Trash01 as ee, HelpCircle as te, ArrowDown as re, ChevronSelectorVertical as oe, ChevronRight as
|
|
4
|
-
import { Table as
|
|
3
|
+
import { Edit01 as Y, Copy01 as Z, Trash01 as ee, HelpCircle as te, ArrowDown as re, ChevronSelectorVertical as oe, ChevronRight as se } from "@untitledui/icons";
|
|
4
|
+
import { Table as ne, useTableOptions as T, Cell as z, TableBody as ie, Column as H, Group as le, TableHeader as ae, Collection as A, Row as B } from "react-aria-components";
|
|
5
5
|
import { cn as d } from "../../utils/cn.js";
|
|
6
6
|
import { isWithinCellEditor as ce } from "./useGridKeyboardNavigation.js";
|
|
7
7
|
import { Badge as de } from "../../primitives/badge/badge.js";
|
|
@@ -21,7 +21,7 @@ const be = () => /* @__PURE__ */ h(b.Root, { children: [
|
|
|
21
21
|
toggleRow: () => {
|
|
22
22
|
},
|
|
23
23
|
inlineSelection: !1
|
|
24
|
-
}), W = F(({ children:
|
|
24
|
+
}), W = F(({ children: s, className: i, size: n = "md", ...a }, o) => {
|
|
25
25
|
const t = J(null), [u, f] = R(!1), [l, p] = R(/* @__PURE__ */ new Set());
|
|
26
26
|
Q(() => {
|
|
27
27
|
const r = t.current;
|
|
@@ -42,7 +42,7 @@ const be = () => /* @__PURE__ */ h(b.Root, { children: [
|
|
|
42
42
|
return c.has(r) ? c.delete(r) : c.add(r), c;
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
return /* @__PURE__ */ e(w.Provider, { value: { size:
|
|
45
|
+
return /* @__PURE__ */ e(w.Provider, { value: { size: n, hasOverflow: u, expandedRows: l, toggleRow: x }, children: /* @__PURE__ */ e(
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
48
|
ref: (r) => {
|
|
@@ -50,15 +50,15 @@ const be = () => /* @__PURE__ */ h(b.Root, { children: [
|
|
|
50
50
|
},
|
|
51
51
|
...a,
|
|
52
52
|
className: d("overflow-hidden rounded-lg bg-primary", i),
|
|
53
|
-
children:
|
|
53
|
+
children: s
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
56
|
});
|
|
57
57
|
W.displayName = "TableCardRoot";
|
|
58
58
|
const j = ({
|
|
59
|
-
title:
|
|
59
|
+
title: s,
|
|
60
60
|
badge: i,
|
|
61
|
-
description:
|
|
61
|
+
description: n,
|
|
62
62
|
contentTrailing: a,
|
|
63
63
|
className: o
|
|
64
64
|
}) => {
|
|
@@ -81,12 +81,12 @@ const j = ({
|
|
|
81
81
|
"font-semibold text-primary",
|
|
82
82
|
t === "sm" ? "text-md" : t === "xs" ? "text-sm" : "text-lg"
|
|
83
83
|
),
|
|
84
|
-
children:
|
|
84
|
+
children: s
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
87
|
i ? k(i) ? i : /* @__PURE__ */ e(de, { color: "brand", size: "sm", children: i }) : null
|
|
88
88
|
] }),
|
|
89
|
-
|
|
89
|
+
n && /* @__PURE__ */ e("p", { className: d("text-sm text-tertiary", t === "xs" ? "text-xs" : "text-sm"), children: n })
|
|
90
90
|
] }),
|
|
91
91
|
a
|
|
92
92
|
]
|
|
@@ -95,9 +95,9 @@ const j = ({
|
|
|
95
95
|
};
|
|
96
96
|
j.displayName = "TableCardHeader";
|
|
97
97
|
const I = ({
|
|
98
|
-
className:
|
|
98
|
+
className: s,
|
|
99
99
|
size: i = "sm",
|
|
100
|
-
isEditable:
|
|
100
|
+
isEditable: n = !1,
|
|
101
101
|
inlineSelection: a = !1,
|
|
102
102
|
...o
|
|
103
103
|
}) => {
|
|
@@ -107,12 +107,12 @@ const I = ({
|
|
|
107
107
|
return c.has(r) ? c.delete(r) : c.add(r), c;
|
|
108
108
|
});
|
|
109
109
|
}), x = /* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
ne,
|
|
111
111
|
{
|
|
112
112
|
className: (r) => d(
|
|
113
113
|
"w-full overflow-x-hidden",
|
|
114
114
|
i === "xs" && "px-3 py-0",
|
|
115
|
-
typeof
|
|
115
|
+
typeof s == "function" ? s(r) : s
|
|
116
116
|
),
|
|
117
117
|
...o
|
|
118
118
|
}
|
|
@@ -127,7 +127,7 @@ const I = ({
|
|
|
127
127
|
toggleRow: p,
|
|
128
128
|
inlineSelection: a
|
|
129
129
|
},
|
|
130
|
-
children:
|
|
130
|
+
children: n ? /* @__PURE__ */ e(
|
|
131
131
|
"div",
|
|
132
132
|
{
|
|
133
133
|
onKeyDownCapture: (r) => {
|
|
@@ -151,9 +151,9 @@ const I = ({
|
|
|
151
151
|
};
|
|
152
152
|
I.displayName = "Table";
|
|
153
153
|
const K = ({
|
|
154
|
-
columns:
|
|
154
|
+
columns: s,
|
|
155
155
|
children: i,
|
|
156
|
-
bordered:
|
|
156
|
+
bordered: n = !1,
|
|
157
157
|
hasExpandableRows: a = !1,
|
|
158
158
|
className: o,
|
|
159
159
|
...t
|
|
@@ -165,22 +165,22 @@ const K = ({
|
|
|
165
165
|
...t,
|
|
166
166
|
className: (x) => d(
|
|
167
167
|
"sticky top-0 z-30 rounded-t-lg bg-secondary_subtle [&>tr>th]:h-9 [&>tr>th:first-child]:rounded-tl-lg [&>tr>th:last-child]:rounded-tr-lg",
|
|
168
|
-
|
|
168
|
+
n && "[&>tr>th]:after:pointer-events-none [&>tr>th]:after:absolute [&>tr>th]:after:inset-x-0 [&>tr>th]:after:bottom-0 [&>tr>th]:after:h-px [&>tr>th]:after:bg-border-tertiary [&>tr>th]:focus-visible:after:bg-transparent",
|
|
169
169
|
typeof o == "function" ? o(x) : o
|
|
170
170
|
),
|
|
171
171
|
children: [
|
|
172
172
|
a && /* @__PURE__ */ e(H, { className: d("relative p-0", u === "sm" ? "w-9" : "w-11") }),
|
|
173
|
-
l === "toggle" && !f && /* @__PURE__ */ e(H, { className: d("relative p-0", u === "sm" ? "w-9" : "w-11"), children: p === "multiple" && /* @__PURE__ */ e("div", { className: "flex items-start", children: /* @__PURE__ */ e(M, { slot: "selection" }) }) }),
|
|
174
|
-
/* @__PURE__ */ e(A, { items:
|
|
173
|
+
l === "toggle" && !f && /* @__PURE__ */ e(H, { className: d("relative p-0", u === "sm" ? "w-9" : "w-11"), children: p === "multiple" && /* @__PURE__ */ e("div", { className: "flex items-start", children: /* @__PURE__ */ e(M, { className: "hidden", slot: "selection" }) }) }),
|
|
174
|
+
/* @__PURE__ */ e(A, { items: s, children: i })
|
|
175
175
|
]
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
};
|
|
179
179
|
K.displayName = "TableHeader";
|
|
180
180
|
const $ = ({
|
|
181
|
-
className:
|
|
181
|
+
className: s,
|
|
182
182
|
tooltip: i,
|
|
183
|
-
label:
|
|
183
|
+
label: n,
|
|
184
184
|
children: a,
|
|
185
185
|
sticky: o,
|
|
186
186
|
stickyOffset: t = 0,
|
|
@@ -212,7 +212,7 @@ const $ = ({
|
|
|
212
212
|
x === "toggle" && !y && "nth-2:pl-3",
|
|
213
213
|
o && "bg-secondary",
|
|
214
214
|
m.allowsSorting && "cursor-pointer",
|
|
215
|
-
typeof
|
|
215
|
+
typeof s == "function" ? s(m) : s
|
|
216
216
|
),
|
|
217
217
|
children: (m) => /* @__PURE__ */ h(
|
|
218
218
|
le,
|
|
@@ -230,11 +230,11 @@ const $ = ({
|
|
|
230
230
|
u
|
|
231
231
|
),
|
|
232
232
|
children: [
|
|
233
|
-
f ? /* @__PURE__ */ e(O, { title:
|
|
234
|
-
|
|
233
|
+
f ? /* @__PURE__ */ e(O, { title: n, placement: "top", children: /* @__PURE__ */ e(P, { className: "cursor-pointer overflow-hidden text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover", children: /* @__PURE__ */ h("div", { className: "flex items-center gap-1 overflow-hidden", children: [
|
|
234
|
+
n && /* @__PURE__ */ e("span", { className: "overflow-hidden text-xs font-medium text-ellipsis whitespace-nowrap text-secondary", children: n }),
|
|
235
235
|
typeof a == "function" ? a(m) : a
|
|
236
236
|
] }) }) }) : /* @__PURE__ */ h("div", { className: "flex items-center gap-1 overflow-hidden", children: [
|
|
237
|
-
|
|
237
|
+
n && /* @__PURE__ */ e("span", { className: "overflow-hidden text-xs font-medium text-ellipsis whitespace-nowrap text-secondary", children: n }),
|
|
238
238
|
typeof a == "function" ? a(m) : a
|
|
239
239
|
] }),
|
|
240
240
|
i && /* @__PURE__ */ e(O, { title: i, placement: "top", children: /* @__PURE__ */ e(P, { className: "cursor-pointer overflow-hidden text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover", children: /* @__PURE__ */ e(te, { className: "size-4" }) }) }),
|
|
@@ -261,9 +261,9 @@ const $ = ({
|
|
|
261
261
|
};
|
|
262
262
|
$.displayName = "TableHead";
|
|
263
263
|
const L = ({
|
|
264
|
-
columns:
|
|
264
|
+
columns: s,
|
|
265
265
|
children: i,
|
|
266
|
-
className:
|
|
266
|
+
className: n,
|
|
267
267
|
highlightSelectedRow: a = !0,
|
|
268
268
|
isExpandable: o = !1,
|
|
269
269
|
renderExpandedContent: t,
|
|
@@ -282,7 +282,7 @@ const L = ({
|
|
|
282
282
|
v && "rotate-90"
|
|
283
283
|
),
|
|
284
284
|
"aria-label": v ? "Collapse row" : "Expand row",
|
|
285
|
-
children: /* @__PURE__ */ e(
|
|
285
|
+
children: /* @__PURE__ */ e(se, { className: "size-4 text-fg-quaternary" })
|
|
286
286
|
}
|
|
287
287
|
) : null, E = o ? (() => {
|
|
288
288
|
const g = X.toArray(i);
|
|
@@ -312,31 +312,31 @@ const L = ({
|
|
|
312
312
|
a && !r && "selected:bg-secondary",
|
|
313
313
|
r && "selected:!bg-transparent",
|
|
314
314
|
!v && "[&>td]:after:absolute [&>td]:after:inset-x-0 [&>td]:after:bottom-0 [&>td]:after:h-px [&>td]:after:w-full [&>td]:after:bg-border-tertiary last:[&>td]:after:hidden [&>td]:focus-visible:after:opacity-0 focus-visible:[&>td]:after:opacity-0",
|
|
315
|
-
typeof
|
|
315
|
+
typeof n == "function" ? n(g) : n
|
|
316
316
|
),
|
|
317
317
|
children: [
|
|
318
318
|
y === "toggle" && !r && /* @__PURE__ */ e(z, { className: d("relative p-0", l === "sm" ? "w-9" : "w-11"), children: /* @__PURE__ */ e("div", { className: "flex items-end", children: /* @__PURE__ */ e(M, { className: "hidden", slot: "selection" }) }) }),
|
|
319
|
-
/* @__PURE__ */ e(A, { items:
|
|
319
|
+
/* @__PURE__ */ e(A, { items: s, children: E })
|
|
320
320
|
]
|
|
321
321
|
}
|
|
322
322
|
),
|
|
323
|
-
o && v && t && /* @__PURE__ */ e(B, { id: `${c}-expanded`, className: "relative bg-secondary_subtle", children: /* @__PURE__ */ e(z, { className: "p-0", colSpan: u ?? (
|
|
323
|
+
o && v && t && /* @__PURE__ */ e(B, { id: `${c}-expanded`, className: "relative bg-secondary_subtle", children: /* @__PURE__ */ e(z, { className: "p-0", colSpan: u ?? (s == null ? void 0 : s.length) ?? 1, children: /* @__PURE__ */ e("div", { className: "w-full", children: t(f.value) }) }) })
|
|
324
324
|
] });
|
|
325
325
|
};
|
|
326
326
|
L.displayName = "TableRow";
|
|
327
|
-
const U = ({ className:
|
|
327
|
+
const U = ({ className: s, children: i, sticky: n, stickyOffset: a = 0, ...o }) => {
|
|
328
328
|
const { size: t, inlineSelection: u } = N(w), { selectionBehavior: f } = T();
|
|
329
329
|
return /* @__PURE__ */ e(
|
|
330
330
|
z,
|
|
331
331
|
{
|
|
332
332
|
...o,
|
|
333
333
|
style: (l) => {
|
|
334
|
-
const p =
|
|
334
|
+
const p = n ? {
|
|
335
335
|
position: "sticky",
|
|
336
|
-
[
|
|
336
|
+
[n]: a,
|
|
337
337
|
zIndex: 20,
|
|
338
338
|
backgroundColor: "white",
|
|
339
|
-
boxShadow:
|
|
339
|
+
boxShadow: n === "right" ? "inset 2px 0 0px 0px var(--color-border-tertiary)" : "inset -2px 0 0px 0px var(--color-border-tertiary)"
|
|
340
340
|
} : {};
|
|
341
341
|
return { ...typeof o.style == "function" ? o.style(l) : o.style || {}, ...p };
|
|
342
342
|
},
|
|
@@ -346,7 +346,7 @@ const U = ({ className: n, children: i, sticky: s, stickyOffset: a = 0, ...o })
|
|
|
346
346
|
t === "sm" && "p-0 px-4 py-2 text-sm",
|
|
347
347
|
t === "md" && "p-0 px-6 py-2 text-base",
|
|
348
348
|
f === "toggle" && !u && "nth-2:pl-3",
|
|
349
|
-
typeof
|
|
349
|
+
typeof s == "function" ? s(l) : s
|
|
350
350
|
),
|
|
351
351
|
children: i
|
|
352
352
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableUndoRedo.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/tableUndoRedo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EA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,UAAU,EAAE,sBAAsB,EAClC,MAAM,EAAE,MAAM,IAAI,GACjB,sBAAsB,CAYxB;AAED,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1E,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC3B,MAAM,EAAE,MAAM,IAAI,GACjB,gBAAgB,CAAC,CAAC,CAAC,CAwBrB;AAED,wBAAgB,kCAAkC,CAChD,oBAAoB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,EAC3E,MAAM,EAAE,MAAM,IAAI,GACjB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAOvD"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
function
|
|
1
|
+
function h(e) {
|
|
2
2
|
return e ? new Set(e) : void 0;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function A(e) {
|
|
5
5
|
return e ? new Map(e) : void 0;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function f(e) {
|
|
8
8
|
return e == null ? void 0 : e.map((n) => ({ ...n }));
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function R(e) {
|
|
11
11
|
return e == null ? void 0 : e.map((n) => ({ ...n }));
|
|
12
12
|
}
|
|
13
13
|
function v(e) {
|
|
@@ -15,24 +15,24 @@ function v(e) {
|
|
|
15
15
|
return typeof structuredClone == "function" ? structuredClone(e) : JSON.parse(JSON.stringify(e));
|
|
16
16
|
}
|
|
17
17
|
function S(e) {
|
|
18
|
-
var
|
|
19
|
-
const { toolbar: n, columnAlignments: i, summaryFooterProps: d, appliedFilterConditions: u, data:
|
|
18
|
+
var t, g, l, w, m, y, C;
|
|
19
|
+
const { toolbar: n, columnAlignments: i, summaryFooterProps: d, appliedFilterConditions: u, data: o, getData: r } = e, s = i ?? ((t = n == null ? void 0 : n.align) == null ? void 0 : t.columnAlignments) ?? void 0, p = u ?? ((g = n == null ? void 0 : n.filter) == null ? void 0 : g.pendingConditions);
|
|
20
20
|
return {
|
|
21
|
-
hiddenColumns:
|
|
21
|
+
hiddenColumns: h((l = n == null ? void 0 : n.hideFields) == null ? void 0 : l.hiddenColumns),
|
|
22
22
|
columnOrder: n != null && n.hideFields ? [...n.hideFields.columnOrder] : void 0,
|
|
23
|
-
columnAlignments:
|
|
24
|
-
groupBy: ((
|
|
23
|
+
columnAlignments: A(s),
|
|
24
|
+
groupBy: ((w = n == null ? void 0 : n.groupBy) == null ? void 0 : w.value) ?? null,
|
|
25
25
|
showSummary: (m = n == null ? void 0 : n.summary) == null ? void 0 : m.value,
|
|
26
|
-
summaryAggregations:
|
|
27
|
-
rowHeight: (
|
|
28
|
-
sorts:
|
|
29
|
-
filterConditions:
|
|
30
|
-
data: v((
|
|
26
|
+
summaryAggregations: A(d == null ? void 0 : d.summaryAggregations),
|
|
27
|
+
rowHeight: (y = n == null ? void 0 : n.rowHeight) == null ? void 0 : y.value,
|
|
28
|
+
sorts: f((C = n == null ? void 0 : n.sort) == null ? void 0 : C.sorts),
|
|
29
|
+
filterConditions: R(p),
|
|
30
|
+
data: v((r == null ? void 0 : r()) ?? o)
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
function B(e, n) {
|
|
34
34
|
const { toolbar: i, summaryFooterProps: d, onDataRestore: u } = n;
|
|
35
|
-
e.hiddenColumns !== void 0 && (i != null && i.hideFields) && i.hideFields.setHiddenColumns(new Set(e.hiddenColumns)), e.columnOrder !== void 0 && (i != null && i.hideFields) && i.hideFields.setColumnOrder([...e.columnOrder]), e.columnAlignments !== void 0 && (i != null && i.align) && i.align.setColumnAlignments(new Map(e.columnAlignments)), e.groupBy !== void 0 && (i != null && i.groupBy) && i.groupBy.onChange(e.groupBy), e.showSummary !== void 0 && (i != null && i.summary) && i.summary.onChange(e.showSummary), e.rowHeight !== void 0 && (i != null && i.rowHeight) && i.rowHeight.onChange(e.rowHeight), e.sorts !== void 0 && (i != null && i.sort) && (i.sort.onSortsChange(
|
|
35
|
+
e.hiddenColumns !== void 0 && (i != null && i.hideFields) && i.hideFields.setHiddenColumns(new Set(e.hiddenColumns)), e.columnOrder !== void 0 && (i != null && i.hideFields) && i.hideFields.setColumnOrder([...e.columnOrder]), e.columnAlignments !== void 0 && (i != null && i.align) && i.align.setColumnAlignments(new Map(e.columnAlignments)), e.groupBy !== void 0 && (i != null && i.groupBy) && i.groupBy.onChange(e.groupBy), e.showSummary !== void 0 && (i != null && i.summary) && i.summary.onChange(e.showSummary), e.rowHeight !== void 0 && (i != null && i.rowHeight) && i.rowHeight.onChange(e.rowHeight), e.sorts !== void 0 && (i != null && i.sort) && (i.sort.onSortsChange(f(e.sorts) ?? []), i.sort.onApply()), e.filterConditions !== void 0 && (i != null && i.filter) && (i.filter.setPendingConditions(R(e.filterConditions) ?? []), i.filter.onApply()), e.summaryAggregations !== void 0 && (d != null && d.setSummaryAggregations) && d.setSummaryAggregations(new Map(e.summaryAggregations)), e.data !== void 0 && u && u(v(e.data) ?? []);
|
|
36
36
|
}
|
|
37
37
|
function c(e) {
|
|
38
38
|
let n = !1;
|
|
@@ -119,8 +119,10 @@ function a(e, n) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
function D(e, n) {
|
|
122
|
-
const i = (
|
|
123
|
-
n(),
|
|
122
|
+
const i = (u) => (o, r) => {
|
|
123
|
+
n(), u == null || u(o, r);
|
|
124
|
+
}, d = (u) => (o, r, s) => {
|
|
125
|
+
n(), u == null || u(o, r, s);
|
|
124
126
|
};
|
|
125
127
|
return {
|
|
126
128
|
...e,
|
|
@@ -128,7 +130,8 @@ function D(e, n) {
|
|
|
128
130
|
onAddRowBelow: e.onAddRowBelow ? i(e.onAddRowBelow) : void 0,
|
|
129
131
|
onDuplicateRow: e.onDuplicateRow ? i(e.onDuplicateRow) : void 0,
|
|
130
132
|
onPasteRowValues: e.onPasteRowValues ? i(e.onPasteRowValues) : void 0,
|
|
131
|
-
onDeleteRow: e.onDeleteRow ? i(e.onDeleteRow) : void 0
|
|
133
|
+
onDeleteRow: e.onDeleteRow ? i(e.onDeleteRow) : void 0,
|
|
134
|
+
onReorderRows: e.onReorderRows ? d(e.onReorderRows) : void 0
|
|
132
135
|
};
|
|
133
136
|
}
|
|
134
137
|
function O(e, n) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PointerEvent } from 'react';
|
|
1
2
|
export interface RowActionsConfig<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
2
3
|
onAddRowAbove?: (sourceRowIndex: number, item: T) => void;
|
|
3
4
|
onAddRowBelow?: (sourceRowIndex: number, item: T) => void;
|
|
@@ -6,6 +7,16 @@ export interface RowActionsConfig<T extends Record<string, unknown> = Record<str
|
|
|
6
7
|
onPasteRowValues?: (sourceRowIndex: number, item: T) => void;
|
|
7
8
|
onDeleteRow?: (sourceRowIndex: number, item: T) => void;
|
|
8
9
|
canPasteRowValues?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Called after a successful drag reorder. Indices are `__sourceIndex` values
|
|
12
|
+
* (source data indices), not visual/display indices.
|
|
13
|
+
*/
|
|
14
|
+
onReorderRows?: (fromSourceIndex: number, toSourceIndex: number, item: T) => void;
|
|
15
|
+
/**
|
|
16
|
+
* When false, drag reorder is disabled even if `onReorderRows` is provided.
|
|
17
|
+
* Defaults to true whenever `onReorderRows` is set. Drag UX is wired by TableWrapper.
|
|
18
|
+
*/
|
|
19
|
+
enableRowReorder?: boolean;
|
|
9
20
|
}
|
|
10
21
|
interface RowActionsMenuProps<T extends Record<string, unknown>> {
|
|
11
22
|
config: RowActionsConfig<T>;
|
|
@@ -13,7 +24,12 @@ interface RowActionsMenuProps<T extends Record<string, unknown>> {
|
|
|
13
24
|
item: T;
|
|
14
25
|
triggerClassName?: string;
|
|
15
26
|
onOpenChange?: (open: boolean) => void;
|
|
27
|
+
/** When true, handle shows grabbing cursor (active row drag). */
|
|
28
|
+
isDragging?: boolean;
|
|
29
|
+
/** When true, primary-button pointer down can start a row drag (wired by TableWrapper). */
|
|
30
|
+
enableDrag?: boolean;
|
|
31
|
+
onDragHandlePointerDown?: (event: PointerEvent<HTMLButtonElement>) => void;
|
|
16
32
|
}
|
|
17
|
-
export declare function RowActionsMenu<T extends Record<string, unknown>>({ config, sourceRowIndex, item, triggerClassName, onOpenChange, }: RowActionsMenuProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function RowActionsMenu<T extends Record<string, unknown>>({ config, sourceRowIndex, item, triggerClassName, onOpenChange, isDragging, enableDrag, onDragHandlePointerDown, }: RowActionsMenuProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
18
34
|
export {};
|
|
19
35
|
//# sourceMappingURL=RowActionsMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/patterns/table/toolbar/RowActionsMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RowActionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/patterns/table/toolbar/RowActionsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgD,YAAY,EAAE,MAAM,OAAO,CAAC;AAQxF,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3F,aAAa,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC1D,aAAa,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC1D,cAAc,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC3D,eAAe,CAAC,EAAE,CAAC,cAAc,EAAE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