@coreui/react-data-grid 0.2.0-rc.0 → 0.4.0

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.
Files changed (71) hide show
  1. package/README.md +6 -3
  2. package/dist/cjs/CDataGrid.js +19 -11
  3. package/dist/cjs/CDataGrid.js.map +1 -1
  4. package/dist/cjs/CDataGridBody.js +9 -8
  5. package/dist/cjs/CDataGridBody.js.map +1 -1
  6. package/dist/cjs/CDataGridCellEditor.js.map +1 -1
  7. package/dist/cjs/CDataGridColumnChooser.js +4 -4
  8. package/dist/cjs/CDataGridColumnChooser.js.map +1 -1
  9. package/dist/cjs/CDataGridFilterMenu.js +6 -5
  10. package/dist/cjs/CDataGridFilterMenu.js.map +1 -1
  11. package/dist/cjs/CDataGridHeader.js +9 -3
  12. package/dist/cjs/CDataGridHeader.js.map +1 -1
  13. package/dist/cjs/CDataGridHeaderMenu.js +6 -5
  14. package/dist/cjs/CDataGridHeaderMenu.js.map +1 -1
  15. package/dist/cjs/CDataGridPagination.js.map +1 -1
  16. package/dist/cjs/CDataGridToolbar.js.map +1 -1
  17. package/dist/cjs/active-cell.d.ts +1 -0
  18. package/dist/cjs/active-cell.js +3 -3
  19. package/dist/cjs/active-cell.js.map +1 -1
  20. package/dist/cjs/columns.js.map +1 -1
  21. package/dist/cjs/features.js.map +1 -1
  22. package/dist/cjs/icons.js.map +1 -1
  23. package/dist/cjs/pinning.js.map +1 -1
  24. package/dist/cjs/toolbar.js.map +1 -1
  25. package/dist/cjs/tooltip.js +2 -2
  26. package/dist/cjs/tooltip.js.map +1 -1
  27. package/dist/esm/CDataGrid.d.mts +18 -0
  28. package/dist/esm/CDataGrid.mjs +17 -9
  29. package/dist/esm/CDataGrid.mjs.map +1 -1
  30. package/dist/esm/CDataGridBody.d.mts +45 -0
  31. package/dist/esm/CDataGridBody.mjs +9 -8
  32. package/dist/esm/CDataGridBody.mjs.map +1 -1
  33. package/dist/esm/CDataGridCellEditor.d.mts +8 -0
  34. package/dist/esm/CDataGridCellEditor.mjs.map +1 -1
  35. package/dist/esm/CDataGridColumnChooser.d.mts +22 -0
  36. package/dist/esm/CDataGridColumnChooser.mjs +4 -4
  37. package/dist/esm/CDataGridColumnChooser.mjs.map +1 -1
  38. package/dist/esm/CDataGridFilterMenu.d.mts +21 -0
  39. package/dist/esm/CDataGridFilterMenu.mjs +6 -5
  40. package/dist/esm/CDataGridFilterMenu.mjs.map +1 -1
  41. package/dist/esm/CDataGridHeader.d.mts +36 -0
  42. package/dist/esm/CDataGridHeader.mjs +9 -3
  43. package/dist/esm/CDataGridHeader.mjs.map +1 -1
  44. package/dist/esm/CDataGridHeaderMenu.d.mts +28 -0
  45. package/dist/esm/CDataGridHeaderMenu.mjs +6 -5
  46. package/dist/esm/CDataGridHeaderMenu.mjs.map +1 -1
  47. package/dist/esm/CDataGridPagination.d.mts +17 -0
  48. package/dist/esm/CDataGridPagination.mjs.map +1 -1
  49. package/dist/esm/CDataGridToolbar.d.mts +34 -0
  50. package/dist/esm/CDataGridToolbar.mjs.map +1 -1
  51. package/dist/esm/active-cell.d.mts +23 -0
  52. package/dist/esm/active-cell.d.ts +1 -0
  53. package/dist/esm/active-cell.mjs +3 -3
  54. package/dist/esm/active-cell.mjs.map +1 -1
  55. package/dist/esm/columns.d.mts +63 -0
  56. package/dist/esm/columns.mjs.map +1 -1
  57. package/dist/esm/features.d.mts +52 -0
  58. package/dist/esm/features.mjs.map +1 -1
  59. package/dist/esm/icons.d.mts +24 -0
  60. package/dist/esm/icons.mjs.map +1 -1
  61. package/dist/esm/index.d.mts +13 -1
  62. package/dist/esm/labels.d.mts +7 -0
  63. package/dist/esm/pinning.d.mts +18 -0
  64. package/dist/esm/pinning.mjs.map +1 -1
  65. package/dist/esm/toolbar.d.mts +23 -0
  66. package/dist/esm/toolbar.mjs.map +1 -1
  67. package/dist/esm/tooltip.d.mts +10 -0
  68. package/dist/esm/tooltip.mjs +2 -2
  69. package/dist/esm/tooltip.mjs.map +1 -1
  70. package/dist/esm/types.d.mts +339 -0
  71. package/package.json +21 -21
@@ -0,0 +1,18 @@
1
+ /**
2
+ * --------------------------------------------------------------------------
3
+ * CoreUI PRO react-data-grid pinning.ts
4
+ * License (https://coreui.io/pro/license/)
5
+ * --------------------------------------------------------------------------
6
+ */
7
+ import type { CSSProperties } from 'react';
8
+ import type { CDataGridColumnInstance } from './types.mjs';
9
+ export interface PinnedCellProps {
10
+ className?: string;
11
+ style?: CSSProperties;
12
+ }
13
+ export interface PinnedEdges {
14
+ lastStart: string | null;
15
+ firstEnd: string | null;
16
+ }
17
+ export declare const pinnedColumnProps: (column: CDataGridColumnInstance, selectPinned: boolean, edges: PinnedEdges) => PinnedCellProps;
18
+ export declare const selectCellPinnedProps: (selectPinned: boolean) => PinnedCellProps;
@@ -1 +1 @@
1
- {"version":3,"file":"pinning.mjs","sources":["../../../src/pinning.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;AAKG;AAeI,MAAM,iBAAiB,GAAG,CAC/B,MAA+B,EAC/B,YAAqB,EACrB,KAAkB,KACC;AACnB,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE;AAEnC,IAAA,IAAI,MAAM,KAAK,OAAO,EAAE;QACtB,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC;QACvC,OAAO;AACL,YAAA,SAAS,EAAE,CAAA,2BAAA,EACT,MAAM,CAAC,EAAE,KAAK,KAAK,CAAC,SAAS,GAAG,mCAAmC,GAAG,EACxE,CAAA,CAAE;AACF,YAAA,KAAK,EAAE;gBACL,gBAAgB,EAAE,YAAY;oBAC5B,CAAA,8CAAA,EAAiD,MAAM,CAAA,GAAA,CAAK;oBAC5D;AACH;SACF;IACH;AAEA,IAAA,IAAI,MAAM,KAAK,KAAK,EAAE;QACpB,OAAO;AACL,YAAA,SAAS,EAAE,CAAA,yBAAA,EACT,MAAM,CAAC,EAAE,KAAK,KAAK,CAAC,QAAQ,G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AAE,SAAS,EAAE,6BAA6B,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAAE,CAAC,EAAE,EAAE,GAAG;;"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * --------------------------------------------------------------------------
3
+ * CoreUI PRO react-data-grid toolbar.ts
4
+ * License (https://coreui.io/pro/license/)
5
+ * --------------------------------------------------------------------------
6
+ */
7
+ import type { DataGridExportOptions } from '@coreui/data-grid';
8
+ import type { CDataGridToolbarOptions } from './types.mjs';
9
+ export interface ResolvedToolbar {
10
+ columns: boolean;
11
+ export: boolean;
12
+ exportOptions: DataGridExportOptions;
13
+ history: boolean;
14
+ print: boolean;
15
+ search: boolean;
16
+ }
17
+ export interface ResolveToolbarContext {
18
+ columnVisibility: boolean;
19
+ globalFilter: boolean;
20
+ history: boolean;
21
+ toolbar: boolean | CDataGridToolbarOptions;
22
+ }
23
+ export declare const resolveToolbar: ({ columnVisibility, globalFilter, history, toolbar }: ResolveToolbarContext) => ResolvedToolbar;
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.mjs","sources":["../../../src/toolbar.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;AAKG;AAqBH;AACA;AACA;AACO,MAAM,cAAc,GAAG,CAAC,EAC7B,gBAAgB,EAChB,YAAY,EACZ,OAAO,EACP,OAAO,EACe,KAAqB;;AAC3C,IAAA,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,OAAO;AACL,YAAA,OAAO,EAAE,gBAAgB;AACzB,YAAA,MAAM,EAAE,IAAI;AACZ,YAAA,aAAa,EAAE,EAAE;YACjB,OAAO;AACP,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,MAAM,EAAE;SACT;IACH;AAEA,IAAA,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,MAAM,YAAY,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,KAAK;QAC5C,OAAO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AA,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,MAAM,YAAY,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,KAAK;QAC5C,OAAO;YACL,OAAO,EAAE,CAAC,CAAA,EAAA,GAAA,OAAO,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,KAAK,KAAK,gBAAgB;AACvD,YAAA,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC;AAC7B,YAAA,aAAa,EAAE,OAAO,YAAY,KAAK,QAAQ,GAAG,YAAY,GAAG,EAAE;YACnE,OAAO,EAAE,CAAC,CAAA,EAAA,GAAA,OAAO,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,KAAK,KAAK,OAAO;AAC9C,YAAA,KAAK,EAAE,CAAA,EAAA,GAAA,OAAO,CAAC,KAAK,mCAAI,KAAK;YAC7B,MAAM,EAAE,CAAC,CAAA,EAAA,GAAA,OAAO,CAAC,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,KAAK,KAAK;SACtC;IACH;IAEA,OAAO;AACL,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,MAAM,EAAE,KAAK;AACb,QAAA,aAAa,EAAE,EAAE;AACjB,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,KAAK,EAAE,KAAK;AACZ,QAAA,MAAM,EAAE;KACT;AACH;;"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * --------------------------------------------------------------------------
3
+ * CoreUI PRO react-data-grid tooltip.ts
4
+ * License (https://coreui.io/pro/license/)
5
+ * --------------------------------------------------------------------------
6
+ */
7
+ export interface GridTooltip {
8
+ dispose: () => void;
9
+ }
10
+ export declare const createTooltip: (root: HTMLElement) => GridTooltip;
@@ -81,7 +81,7 @@ const createTooltip = (root) => {
81
81
  root.addEventListener('pointerdown', hide);
82
82
  root.addEventListener('focusin', onFocusIn);
83
83
  root.addEventListener('focusout', hide);
84
- window.addEventListener('scroll', hide, true);
84
+ window.addEventListener('scroll', hide, { capture: true });
85
85
  return {
86
86
  dispose() {
87
87
  clearTimeout(showTimer);
@@ -90,7 +90,7 @@ const createTooltip = (root) => {
90
90
  root.removeEventListener('pointerdown', hide);
91
91
  root.removeEventListener('focusin', onFocusIn);
92
92
  root.removeEventListener('focusout', hide);
93
- window.removeEventListener('scroll', hide, true);
93
+ window.removeEventListener('scroll', hide, { capture: true });
94
94
  element.remove();
95
95
  }
96
96
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.mjs","sources":["../../../src/tooltip.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;AAKG;AAEH;AACA;AACA;AAEA,MAAM,kBAAkB,GAAG,mBAAmB;AAC9C,MAAM,SAAS,GAAG,qBAAqB;AACvC,MAAM,QAAQ,GAAG,CAAA,CAAA,EAAI,SAAS,GAAG;AACjC,MAAM,UAAU,GAAG,GAAG;AACtB,MAAM,GAAG,GAAG,CAAC;AACb,MAAM,IAAI,GAAG,CAAC;AAMd;AACA;AACA;AACA;AACO,MAAM,aAAa,GAAG,CAAC,IAAiB,KAAiB;IAC9D,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;AAC7C,IAAA,OAAO,CAAC,SAAS,GAAG,kBAAkB;AACtC,IAAA,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC;AACvC,IAAA,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC;AAC3C,IAAA,OAAO,CAAC,MAAM,GAAG,IAAI;AACrB,IAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAEpB,IAAI,MAAM,GAAuB,IAAI;AACrC,IAAA,IAAI,SAAoD;AAExD,IAAA,MAAM,UAAU,GAAG,CAAC,MAA0B,KAAwB;AACpE,QAAA,MA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AgB,CAAC,YAAY,EAAE,YAA6B,CAAC;AAClE,IAAA,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,IAAI,CAAC;AAC1C,IAAA,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAA0B,CAAC;AAC5D,IAAA,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC;AACvC,IAAA,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAE1D,OAAO;QACL,OAAO,GAAA;YACL,YAAY,CAAC,SAAS,CAAC;AACvB,YAAA,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE,aAA8B,CAAC;AACvE,YAAA,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,YAA6B,CAAC;AACrE,YAAA,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC;AAC7C,YAAA,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAA0B,CAAC;AAC/D,YAAA,IAAI,CAAC,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC;AAC1C,YAAA,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAC7D,OAAO,CAAC,MAAM,EAAE;QAClB;KACD;AACH;;"}
@@ -0,0 +1,339 @@
1
+ /**
2
+ * --------------------------------------------------------------------------
3
+ * CoreUI PRO react-data-grid types.ts
4
+ * License (https://coreui.io/pro/license/)
5
+ * --------------------------------------------------------------------------
6
+ */
7
+ import type { DataGridColumn, DataGridColumnSizingOptions, DataGridDataRequest, DataGridDataResponse, DataGridEditCommitEvent, DataGridExportOptions, DataGridInfiniteScrollOptions, DataGridItem, DataGridLabels, DataGridPaginationOptions, DataGridRowSelectionOptions, DataGridSortingOptions } from '@coreui/data-grid';
8
+ import type { Column, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingState, ColumnVisibilityState, PaginationState, ReactTable, Row, RowSelectionState, SortingState, TableFeatures } from '@tanstack/react-table';
9
+ import type { ComponentType, CSSProperties, HTMLAttributes, ReactNode, Ref } from 'react';
10
+ import type { DataGridFeatures } from './features.mjs';
11
+ export type CDataGridTable<TFeatures extends TableFeatures = DataGridFeatures> = ReactTable<TFeatures, DataGridItem>;
12
+ export type CDataGridRow<TFeatures extends TableFeatures = DataGridFeatures> = Row<TFeatures, DataGridItem>;
13
+ export type CDataGridColumnInstance<TFeatures extends TableFeatures = DataGridFeatures> = Column<TFeatures, DataGridItem, unknown>;
14
+ export type CDataGridColumnPinning = Partial<ColumnPinningState>;
15
+ export interface CDataGridSlotProps<TFeatures extends TableFeatures = DataGridFeatures> {
16
+ table: CDataGridTable<TFeatures>;
17
+ labels: DataGridLabels;
18
+ }
19
+ export interface CDataGridSlots<TFeatures extends TableFeatures = DataGridFeatures> {
20
+ toolbar: ComponentType<CDataGridSlotProps<TFeatures>>;
21
+ pagination: ComponentType<CDataGridSlotProps<TFeatures>>;
22
+ empty: ComponentType<CDataGridSlotProps<TFeatures>>;
23
+ }
24
+ export interface CDataGridToolbarOptions {
25
+ columns?: boolean;
26
+ export?: boolean | DataGridExportOptions;
27
+ history?: boolean;
28
+ print?: boolean;
29
+ search?: boolean;
30
+ }
31
+ export interface CDataGridColumnFilterProps<TFeatures extends TableFeatures = DataGridFeatures> {
32
+ column: CDataGridColumnInstance<TFeatures>;
33
+ table: CDataGridTable<TFeatures>;
34
+ labels: DataGridLabels;
35
+ }
36
+ export interface CDataGridEditorHandle {
37
+ contains?: (target: Node) => boolean;
38
+ focus?: () => void;
39
+ getValue?: () => unknown;
40
+ }
41
+ export interface CDataGridEditorProps {
42
+ column: CDataGridColumn;
43
+ item: DataGridItem;
44
+ value: unknown;
45
+ invalid: string | null;
46
+ labels: DataGridLabels;
47
+ commit: (value: unknown) => void;
48
+ cancel: () => void;
49
+ handleRef: (handle: CDataGridEditorHandle | null) => void;
50
+ }
51
+ export interface CDataGridColumn<TFeatures extends TableFeatures = DataGridFeatures> extends Omit<DataGridColumn, 'editor' | 'filter' | 'render' | 'style'> {
52
+ editor?: ComponentType<CDataGridEditorProps>;
53
+ editorPopup?: boolean;
54
+ filter?: ComponentType<CDataGridColumnFilterProps<TFeatures>>;
55
+ render?: (item: DataGridItem, index: number) => ReactNode;
56
+ style?: CSSProperties;
57
+ }
58
+ export interface CDataGridRowOrderEvent {
59
+ items: DataGridItem[];
60
+ item: DataGridItem;
61
+ oldIndex: number;
62
+ newIndex: number;
63
+ }
64
+ export interface CDataGridMenuAction {
65
+ key: string;
66
+ label: string;
67
+ disabled?: boolean;
68
+ group?: string;
69
+ icon?: ReactNode;
70
+ run: () => void;
71
+ }
72
+ export interface CDataGridColumnMenuContext {
73
+ column: CDataGridColumn;
74
+ defaultActions: CDataGridMenuAction[];
75
+ }
76
+ export type CDataGridColumnMenuBuilder = (context: CDataGridColumnMenuContext) => CDataGridMenuAction[];
77
+ export interface CDataGridProps<TFeatures extends TableFeatures = DataGridFeatures> extends HTMLAttributes<HTMLDivElement> {
78
+ /**
79
+ * Measures each rendered row instead of trusting `rowHeight`, so rows grow with their content (wrapping cells, custom renderers). `rowHeight` stays the estimate for rows that have not been rendered yet. Requires virtualization.
80
+ */
81
+ autoRowHeight?: boolean;
82
+ /**
83
+ * APG grid keyboard navigation — `role="grid"`, a roving-tabindex active cell, and arrow-key movement across header and data cells.
84
+ */
85
+ cellNavigation?: boolean;
86
+ /**
87
+ * Spreadsheet-style cell ranges — shift-click, drag and shift+arrows, with Ctrl/Cmd+C copying the range as TSV and Ctrl/Cmd+A selecting everything. Implies `cellNavigation`.
88
+ */
89
+ cellSelection?: boolean;
90
+ /**
91
+ * Renders a filter row in the header with an input per filterable column.
92
+ */
93
+ columnFilters?: boolean;
94
+ /**
95
+ * Adds a per-column header menu — `true` builds it from the enabled features (sort/pin/move/hide); a builder `({ column, defaultActions }) => actions` returns the final item list.
96
+ */
97
+ columnMenu?: boolean | CDataGridColumnMenuBuilder;
98
+ /**
99
+ * Custom column menu button icon (ReactNode) replacing the default one.
100
+ */
101
+ columnMenuIcon?: ReactNode;
102
+ /**
103
+ * Enables drag-and-drop column reordering; an array sets the initial order.
104
+ */
105
+ columnOrder?: boolean | ColumnOrderState;
106
+ /**
107
+ * Freezes columns (by `key`) to the start/end edge with sticky positioning; `true` enables the feature with no initial pins.
108
+ */
109
+ columnPinning?: boolean | CDataGridColumnPinning;
110
+ /**
111
+ * Enables column resize handles; `mode` controls whether widths update while dragging (`'onChange'`, the default) or on release (`'onEnd'`).
112
+ */
113
+ columnSizing?: boolean | DataGridColumnSizingOptions;
114
+ /**
115
+ * Enables hiding/showing columns via `column.toggleVisibility()`; an object sets the initial visibility.
116
+ */
117
+ columnVisibility?: boolean | ColumnVisibilityState;
118
+ /**
119
+ * Column definitions.
120
+ */
121
+ columns: Array<CDataGridColumn<TFeatures>>;
122
+ /**
123
+ * Server-side mode: the grid requests data on every sorting/filter/page change; implies pagination.
124
+ */
125
+ dataProvider?: (request: DataGridDataRequest) => Promise<DataGridDataResponse>;
126
+ /**
127
+ * Inline cell editing on Enter/F2/double-click for columns opting in via `editable`/`editor`; implies `cellNavigation`.
128
+ */
129
+ editing?: boolean;
130
+ /**
131
+ * Content (ReactNode) shown when no rows match.
132
+ */
133
+ empty?: ReactNode;
134
+ /**
135
+ * The registered TanStack feature set — pass `dataGridLiteFeatures` (or a custom `tableFeatures({...})` set) so the app bundle only carries the features it uses; defaults to the full `dataGridFeatures`.
136
+ */
137
+ features?: TFeatures;
138
+ /** Icon for the per-column filter button. */
139
+ filterIcon?: ReactNode;
140
+ /**
141
+ * Renders a search input above the grid that filters across all columns.
142
+ */
143
+ globalFilter?: boolean;
144
+ /**
145
+ * Undo/redo history of edit commits — Ctrl/Cmd+Z and Ctrl+Shift+Z/Ctrl+Y plus toolbar buttons; requires `editing`.
146
+ */
147
+ history?: boolean;
148
+ /**
149
+ * Custom hide-column menu action icon (ReactNode) replacing the default one.
150
+ */
151
+ hideColumnIcon?: ReactNode;
152
+ /**
153
+ * Appends each loaded page to the rows already in view instead of replacing them; requires `dataProvider` and `virtualization`, cannot be combined with `pagination`.
154
+ */
155
+ infiniteScroll?: boolean | DataGridInfiniteScrollOptions;
156
+ /**
157
+ * Stable row id — required for selection to survive sorting and filtering.
158
+ */
159
+ itemKey?: (item: DataGridItem, index: number) => string;
160
+ /**
161
+ * Row data.
162
+ */
163
+ items?: DataGridItem[];
164
+ /**
165
+ * UI strings (i18n), merged over the defaults; supports `{token}` interpolation.
166
+ */
167
+ labels?: Partial<DataGridLabels>;
168
+ /**
169
+ * Custom move-left menu action icon (ReactNode) replacing the default one.
170
+ */
171
+ moveStartIcon?: ReactNode;
172
+ /**
173
+ * Custom move-right menu action icon (ReactNode) replacing the default one.
174
+ */
175
+ moveEndIcon?: ReactNode;
176
+ /**
177
+ * Fires when the data provider rejects, with the error (server-side mode).
178
+ */
179
+ onDataError?: (error: unknown) => void;
180
+ /**
181
+ * Fires when the data provider resolves, with the `{ items, totalRows }` response (server-side mode).
182
+ */
183
+ onDataLoad?: (response: DataGridDataResponse) => void;
184
+ /**
185
+ * Fires when an edit is cancelled, with the item and column key.
186
+ */
187
+ onEditCancel?: (item: DataGridItem, columnId: string) => void;
188
+ /**
189
+ * Fires when an edit commits, with `{ item, columnId, value, previousValue }` — the grid never mutates `items`; apply the change and re-render.
190
+ */
191
+ onEditCommit?: (event: DataGridEditCommitEvent) => void;
192
+ /**
193
+ * Fires when a cell enters edit mode, with the item and column key.
194
+ */
195
+ onEditStart?: (item: DataGridItem, columnId: string) => void;
196
+ /**
197
+ * Fires when column filters or the global filter change, with both filter states.
198
+ */
199
+ onFilterChange?: (columnFilters: ColumnFiltersState, globalFilter: string) => void;
200
+ /**
201
+ * Fires when columns are reordered, with the TanStack columnOrder state.
202
+ */
203
+ onOrderChange?: (columnOrder: ColumnOrderState) => void;
204
+ /**
205
+ * Fires when the page or page size changes, with the TanStack pagination state.
206
+ */
207
+ onPaginationChange?: (pagination: PaginationState) => void;
208
+ /**
209
+ * Fires when column pinning changes, with the TanStack columnPinning state.
210
+ */
211
+ onPinningChange?: (columnPinning: ColumnPinningState) => void;
212
+ /**
213
+ * Fires when the row selection changes, with the TanStack rowSelection state and the selected items.
214
+ */
215
+ onSelectionChange?: (rowSelection: RowSelectionState, selectedItems: DataGridItem[]) => void;
216
+ /**
217
+ * Fires when a column is resized, with the TanStack columnSizing state.
218
+ */
219
+ /**
220
+ * Fires when a row is dragged to a new position, with the reordered `items` array ready to assign — the grid never mutates `items` itself.
221
+ */
222
+ /**
223
+ * Fires after Ctrl/Cmd+C copies a cell selection, with the text written to the clipboard.
224
+ */
225
+ onCellCopy?: (event: {
226
+ text: string;
227
+ }) => void;
228
+ onRowOrderChange?: (event: CDataGridRowOrderEvent) => void;
229
+ onSizingChange?: (columnSizing: ColumnSizingState) => void;
230
+ /**
231
+ * Fires when sorting changes, with the TanStack sorting state.
232
+ */
233
+ onSortingChange?: (sorting: SortingState) => void;
234
+ /**
235
+ * Fires when column visibility changes, with the TanStack columnVisibility state.
236
+ */
237
+ onVisibilityChange?: (columnVisibility: ColumnVisibilityState) => void;
238
+ /**
239
+ * Extra rows rendered above and below the visible window.
240
+ */
241
+ overscan?: number;
242
+ /**
243
+ * Pagination mode — mutually exclusive with virtualization.
244
+ */
245
+ pagination?: boolean | DataGridPaginationOptions;
246
+ /**
247
+ * Custom pin-left menu action icon (ReactNode) replacing the default one.
248
+ */
249
+ pinStartIcon?: ReactNode;
250
+ /**
251
+ * Custom pin-right menu action icon (ReactNode) replacing the default one.
252
+ */
253
+ pinEndIcon?: ReactNode;
254
+ /**
255
+ * Heading printed above the table when the print action runs; omitted when unset.
256
+ */
257
+ printTitle?: string;
258
+ /**
259
+ * Custom row drag-handle icon (ReactNode) replacing the default grip.
260
+ */
261
+ rowHandleIcon?: ReactNode;
262
+ /**
263
+ * Estimated row height in px used by the virtualizer.
264
+ */
265
+ rowHeight?: number;
266
+ /**
267
+ * Adds a drag handle per row for reordering; the grid emits `onRowOrderChange` with the reordered array instead of mutating `items`.
268
+ */
269
+ rowOrder?: boolean;
270
+ /**
271
+ * Checkbox selection with select-all and shift+click ranges.
272
+ */
273
+ rowSelection?: boolean | DataGridRowSelectionOptions;
274
+ /**
275
+ * Replaces built-in chrome — each slot is a component rendered with `{ table, labels }`.
276
+ */
277
+ slots?: Partial<CDataGridSlots<TFeatures>>;
278
+ /**
279
+ * Custom ascending sort indicator icon (ReactNode) replacing the default one.
280
+ */
281
+ sortAscendingIcon?: ReactNode;
282
+ /**
283
+ * Custom descending sort indicator icon (ReactNode) replacing the default one.
284
+ */
285
+ sortDescendingIcon?: ReactNode;
286
+ /**
287
+ * Custom unsorted sort indicator icon (ReactNode) replacing the default one.
288
+ */
289
+ sortNeutralIcon?: ReactNode;
290
+ /**
291
+ * Controls when the neutral (unsorted) sort icon is shown on sortable columns: `'always'` keeps it visible, `'hover'` reveals it on header hover/focus. Omit to hide it until the column is sorted.
292
+ */
293
+ sorterVisibility?: 'always' | 'hover';
294
+ /**
295
+ * Column sorting; shift+click adds columns to the sort.
296
+ */
297
+ sorting?: boolean | DataGridSortingOptions;
298
+ /**
299
+ * Persists the grid state (sorting, filters, order, sizing, visibility, pinning, selection, page) to localStorage under this key — autosaved on every change and restored on mount.
300
+ */
301
+ stateKey?: string;
302
+ /**
303
+ * Ref that receives the TanStack table instance.
304
+ */
305
+ tableRef?: Ref<CDataGridTable<TFeatures>>;
306
+ /**
307
+ * Adds a built-in toolbar above the grid — `true` enables every action whose feature is on (column chooser, CSV export, global search); an object picks each individually.
308
+ */
309
+ toolbar?: boolean | CDataGridToolbarOptions;
310
+ /**
311
+ * Custom toolbar column-chooser button icon (ReactNode) replacing the default one.
312
+ */
313
+ toolbarColumnsIcon?: ReactNode;
314
+ /**
315
+ * Custom toolbar export button icon (ReactNode) replacing the default one.
316
+ */
317
+ toolbarExportIcon?: ReactNode;
318
+ /** Icon for the toolbar's print button. */
319
+ toolbarPrintIcon?: ReactNode;
320
+ /**
321
+ * Custom toolbar redo button icon (ReactNode) replacing the default one.
322
+ */
323
+ toolbarRedoIcon?: ReactNode;
324
+ /**
325
+ * Custom toolbar undo button icon (ReactNode) replacing the default one.
326
+ */
327
+ toolbarUndoIcon?: ReactNode;
328
+ /**
329
+ * Custom unpin menu action icon (ReactNode) replacing the default one.
330
+ */
331
+ unpinIcon?: ReactNode;
332
+ /**
333
+ * Windowed rendering for large datasets.
334
+ */
335
+ virtualization?: boolean;
336
+ }
337
+ export { type Column, type ColumnFiltersState, type ColumnOrderState, type ColumnPinningPosition, type ColumnPinningState, type ColumnSizingState, type ColumnVisibilityState, type PaginationState, type Row, type RowSelectionState, type SortingState, type Table, type TableFeatures } from '@tanstack/react-table';
338
+ export { type DataGridFeatures, type DataGridLiteFeatures } from './features.mjs';
339
+ export { type DataGridColumnFilterValue, type DataGridColumnSizingOptions, type DataGridDataRequest, type DataGridDataResponse, type DataGridEditableOptions, type DataGridEditCommitEvent, type DataGridEditorType, type DataGridFilterCondition, type DataGridFilterOperator, type DataGridFilterType, type DataGridInfiniteScrollOptions, type DataGridItem, type DataGridLabels, type DataGridPaginationOptions, type DataGridRowSelectionOptions, type DataGridSortingOptions, type DataGridState } from '@coreui/data-grid';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coreui/react-data-grid",
3
- "description": "High-performance React data grid for CoreUI \u2014 100,000 rows with sorting, filtering, selection, pagination, and server-side data",
4
- "version": "0.2.0-rc.0",
3
+ "description": "High-performance React data grid for CoreUI — 100,000 rows with sorting, filtering, selection, pagination, and server-side data",
4
+ "version": "0.4.0",
5
5
  "keywords": [
6
6
  "coreui",
7
7
  "data-grid",
@@ -17,11 +17,11 @@
17
17
  },
18
18
  "author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
19
19
  "scripts": {
20
- "build": "npm-run-all clean build-cjs build-esm esm-types-shim",
20
+ "build": "npm-run-all clean build-cjs build-esm esm-types",
21
21
  "build-cjs": "rollup --environment ESM:false --config",
22
22
  "build-esm": "rollup --environment ESM:true --config",
23
23
  "clean": "rimraf dist",
24
- "esm-types-shim": "node -e \"require('fs').writeFileSync('dist/esm/index.d.mts', \\\"export * from './index.js'\\n\\\")\"",
24
+ "esm-types": "node ../data-grid/build/types-esm.mjs dist/esm",
25
25
  "test": "npm-run-all typecheck test-unit",
26
26
  "test-unit": "vitest run",
27
27
  "test:coverage": "vitest run --coverage",
@@ -56,9 +56,9 @@
56
56
  },
57
57
  "license": "SEE LICENSE IN LICENSE",
58
58
  "dependencies": {
59
- "@coreui/data-grid": "0.2.0-rc.0",
60
- "@tanstack/react-table": "^9.0.0",
61
- "@tanstack/react-virtual": "^3.14.5"
59
+ "@coreui/data-grid": "0.4.0",
60
+ "@tanstack/react-table": "^9.3.1",
61
+ "@tanstack/react-virtual": "^3.14.21"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "react": ">=18",
@@ -67,24 +67,24 @@
67
67
  "devDependencies": {
68
68
  "@rollup/plugin-commonjs": "^29.0.3",
69
69
  "@rollup/plugin-node-resolve": "^16.0.3",
70
- "@rollup/plugin-typescript": "^12.3.0",
71
- "@testing-library/dom": "^10.4.1",
72
- "@testing-library/jest-dom": "^6.9.1",
73
- "@testing-library/react": "^16.3.2",
74
- "@types/react": "^19.2.17",
75
- "@types/react-dom": "^19.2.3",
76
- "@vitejs/plugin-react": "^6.0.3",
77
- "@vitest/coverage-v8": "^4.1.10",
70
+ "@rollup/plugin-typescript": "^12.3.1",
71
+ "@testing-library/dom": "^10.4.2",
72
+ "@testing-library/jest-dom": "^7.0.1",
73
+ "@testing-library/react": "^16.3.3",
74
+ "@types/react": "^19.3.0",
75
+ "@types/react-dom": "^19.3.0",
76
+ "@vitejs/plugin-react": "^6.1.2",
77
+ "@vitest/coverage-v8": "^5.0.5",
78
78
  "jsdom": "^29.1.1",
79
79
  "npm-run-all": "^4.1.5",
80
- "react": "^18.3.1",
81
- "react-dom": "^18.3.1",
80
+ "react": "^19.3.1",
81
+ "react-dom": "^19.3.1",
82
82
  "rimraf": "^6.1.3",
83
- "rollup": "^4.62.2",
83
+ "rollup": "^4.64.12",
84
84
  "tslib": "^2.8.1",
85
- "typescript": "^5.9.3",
86
- "vite": "^8.1.3",
87
- "vitest": "^4.1.10"
85
+ "typescript": "~6.0.3",
86
+ "vite": "^8.3.5",
87
+ "vitest": "^5.0.5"
88
88
  },
89
89
  "files": [
90
90
  "dist/"