@toolbox-web/grid-react 1.2.0 → 1.3.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.
- package/README.md +7 -31
- package/features/index.d.ts.map +1 -1
- package/features/index.js +1 -0
- package/features/row-drag-drop.d.ts +1 -0
- package/features/row-drag-drop.d.ts.map +1 -0
- package/index.js +145 -140
- package/lib/data-grid.d.ts.map +1 -1
- package/lib/event-props.d.ts +27 -1
- package/lib/event-props.d.ts.map +1 -1
- package/lib/feature-props.d.ts +19 -1
- package/lib/feature-props.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ React adapter for `@toolbox-web/grid` data grid component. Provides components a
|
|
|
15
15
|
- ✅ **Render props** - Clean `children` syntax for custom cells
|
|
16
16
|
- ✅ **Type-level defaults** - App-wide renderers/editors via `GridTypeProvider`
|
|
17
17
|
- ✅ **Icon configuration** - App-wide icon overrides via `GridProvider` or `GridIconProvider`
|
|
18
|
-
- ✅ **Hooks API** - `useGrid`
|
|
18
|
+
- ✅ **Hooks API** - `useGrid` for programmatic access
|
|
19
19
|
- ✅ **Ref forwarding** - Access grid instance via `DataGridRef`
|
|
20
20
|
- ✅ **Master-detail** - `GridDetailPanel` for expandable rows
|
|
21
21
|
- ✅ **Tool panels** - `GridToolPanel` for custom sidebar content
|
|
@@ -440,25 +440,6 @@ function MyComponent() {
|
|
|
440
440
|
}
|
|
441
441
|
```
|
|
442
442
|
|
|
443
|
-
### useGridEvent
|
|
444
|
-
|
|
445
|
-
Type-safe event subscription with automatic cleanup:
|
|
446
|
-
|
|
447
|
-
```tsx
|
|
448
|
-
import { DataGrid, useGridEvent, DataGridRef } from '@toolbox-web/grid-react';
|
|
449
|
-
import { useRef } from 'react';
|
|
450
|
-
|
|
451
|
-
function MyComponent() {
|
|
452
|
-
const gridRef = useRef<DataGridRef>(null);
|
|
453
|
-
|
|
454
|
-
useGridEvent(gridRef, 'selection-change', (event) => {
|
|
455
|
-
console.log('Selected:', event.detail.selectedRows);
|
|
456
|
-
});
|
|
457
|
-
|
|
458
|
-
return <DataGrid ref={gridRef} rows={employees} />;
|
|
459
|
-
}
|
|
460
|
-
```
|
|
461
|
-
|
|
462
443
|
## Event Handling
|
|
463
444
|
|
|
464
445
|
### Via Props
|
|
@@ -472,10 +453,6 @@ function MyComponent() {
|
|
|
472
453
|
/>
|
|
473
454
|
```
|
|
474
455
|
|
|
475
|
-
### Via useGridEvent Hook
|
|
476
|
-
|
|
477
|
-
See [useGridEvent](#usegridevent) above.
|
|
478
|
-
|
|
479
456
|
## Type-Level Defaults
|
|
480
457
|
|
|
481
458
|
Define app-wide renderers and editors for custom column types using `GridTypeProvider`:
|
|
@@ -676,13 +653,12 @@ Inject custom CSS into the grid:
|
|
|
676
653
|
|
|
677
654
|
### Exported Hooks
|
|
678
655
|
|
|
679
|
-
| Hook | Description
|
|
680
|
-
| ----------------------- |
|
|
681
|
-
| `useGrid` | Grid ref with ready state and methods
|
|
682
|
-
| `
|
|
683
|
-
| `
|
|
684
|
-
| `
|
|
685
|
-
| `useGridIcons()` | Get icon overrides from context |
|
|
656
|
+
| Hook | Description |
|
|
657
|
+
| ----------------------- | ------------------------------------- |
|
|
658
|
+
| `useGrid` | Grid ref with ready state and methods |
|
|
659
|
+
| `useGridTypeDefaults()` | Get all type defaults from context |
|
|
660
|
+
| `useTypeDefault(type)` | Get defaults for a specific type |
|
|
661
|
+
| `useGridIcons()` | Get icon overrides from context |
|
|
686
662
|
|
|
687
663
|
### Exported Types
|
|
688
664
|
|
package/features/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,aAAa,CAAC;AACrB,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AACxB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AACrB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,SAAS,CAAC;AACjB,OAAO,SAAS,CAAC;AACjB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,gBAAgB,CAAC;AACxB,OAAO,cAAc,CAAC;AACtB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,WAAW,CAAC;AACnB,OAAO,QAAQ,CAAC;AAChB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,aAAa,CAAC;AACrB,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AACxB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AACrB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,SAAS,CAAC;AACjB,OAAO,SAAS,CAAC;AACjB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,gBAAgB,CAAC;AACxB,OAAO,cAAc,CAAC;AACtB,OAAO,iBAAiB,CAAC;AACzB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,WAAW,CAAC;AACnB,OAAO,QAAQ,CAAC;AAChB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC"}
|
package/features/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import "@toolbox-web/grid/features/print";
|
|
|
17
17
|
import "@toolbox-web/grid/features/reorder-columns";
|
|
18
18
|
import "@toolbox-web/grid/features/reorder-rows";
|
|
19
19
|
import "@toolbox-web/grid/features/responsive";
|
|
20
|
+
import "@toolbox-web/grid/features/row-drag-drop";
|
|
20
21
|
import "@toolbox-web/grid/features/selection";
|
|
21
22
|
import "@toolbox-web/grid/features/server-side";
|
|
22
23
|
import "@toolbox-web/grid/features/tooltip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=row-drag-drop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-drag-drop.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/row-drag-drop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,0CAA0C,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as b, Fragment as ne, jsxs as Pe } from "react/jsx-runtime";
|
|
2
2
|
import { DataGridElement as be } from "@toolbox-web/grid";
|
|
3
|
-
import { createContext as ye, useContext as O, useRef as k, useCallback as E, useEffect as P, forwardRef as he, useReducer as Ee, useImperativeHandle as
|
|
3
|
+
import { createContext as ye, useContext as O, useRef as k, useCallback as E, useEffect as P, forwardRef as he, useReducer as Ee, useImperativeHandle as Re, useMemo as S, useLayoutEffect as ke, Children as Se, isValidElement as De, useState as fe } from "react";
|
|
4
4
|
import { a as w, r as H, s as ge } from "./chunks/portal-bridge-DZ4yQkmm.js";
|
|
5
5
|
import { flushSync as V, createPortal as Ge } from "react-dom";
|
|
6
6
|
import { createPluginsFromFeatures as Ae } from "@toolbox-web/grid/features/registry";
|
|
@@ -49,6 +49,10 @@ const W = {
|
|
|
49
49
|
onColumnStateChange: "column-state-change",
|
|
50
50
|
onSelectionChange: "selection-change",
|
|
51
51
|
onRowMove: "row-move",
|
|
52
|
+
onRowDragStart: "row-drag-start",
|
|
53
|
+
onRowDragEnd: "row-drag-end",
|
|
54
|
+
onRowDrop: "row-drop",
|
|
55
|
+
onRowTransfer: "row-transfer",
|
|
52
56
|
onGroupToggle: "group-toggle",
|
|
53
57
|
onTreeExpand: "tree-expand",
|
|
54
58
|
onDetailExpand: "detail-expand",
|
|
@@ -65,7 +69,7 @@ function pt() {
|
|
|
65
69
|
return O(oe);
|
|
66
70
|
}
|
|
67
71
|
const Le = oe, Y = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new Map();
|
|
68
|
-
function
|
|
72
|
+
function ve(n) {
|
|
69
73
|
const e = n.querySelector("tbw-grid-responsive-card");
|
|
70
74
|
if (e) {
|
|
71
75
|
const r = Y.get(e);
|
|
@@ -77,10 +81,10 @@ function Ce(n) {
|
|
|
77
81
|
}
|
|
78
82
|
function Me(n) {
|
|
79
83
|
const { children: e, cardRowHeight: t = "auto" } = n, r = k(null), o = E(
|
|
80
|
-
(
|
|
81
|
-
if (r.current =
|
|
82
|
-
Y.set(
|
|
83
|
-
const s =
|
|
84
|
+
(c) => {
|
|
85
|
+
if (r.current = c, !c) return;
|
|
86
|
+
Y.set(c, e);
|
|
87
|
+
const s = c.closest("tbw-grid");
|
|
84
88
|
if (s) {
|
|
85
89
|
const g = s.id || s.getAttribute("data-grid-id");
|
|
86
90
|
g && Z.set(g, e);
|
|
@@ -89,18 +93,18 @@ function Me(n) {
|
|
|
89
93
|
[e]
|
|
90
94
|
);
|
|
91
95
|
P(() => () => {
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
94
|
-
Y.delete(
|
|
95
|
-
const s =
|
|
96
|
+
const c = r.current;
|
|
97
|
+
if (c) {
|
|
98
|
+
Y.delete(c);
|
|
99
|
+
const s = c.closest("tbw-grid");
|
|
96
100
|
if (s) {
|
|
97
101
|
const g = s.id || s.getAttribute("data-grid-id");
|
|
98
102
|
g && Z.delete(g);
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
}, []);
|
|
102
|
-
const
|
|
103
|
-
return /* @__PURE__ */ b("tbw-grid-responsive-card", { ref: o, cardRowHeight:
|
|
106
|
+
const a = t === "auto" ? "auto" : String(t);
|
|
107
|
+
return /* @__PURE__ */ b("tbw-grid-responsive-card", { ref: o, cardRowHeight: a });
|
|
104
108
|
}
|
|
105
109
|
Me.displayName = "GridResponsiveCard";
|
|
106
110
|
const z = ye(null), He = ({ defaults: n, children: e }) => /* @__PURE__ */ b(z.Provider, { value: n, children: e });
|
|
@@ -111,30 +115,30 @@ function yt(n) {
|
|
|
111
115
|
return O(z)?.[n];
|
|
112
116
|
}
|
|
113
117
|
const Oe = z, je = he(function(e, t) {
|
|
114
|
-
const r = k(/* @__PURE__ */ new Map()), [, o] = Ee((p) => p + 1, 0),
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
const r = k(/* @__PURE__ */ new Map()), [, o] = Ee((p) => p + 1, 0), a = k(!1), c = k(0), s = () => {
|
|
119
|
+
a.current || (a.current = !0, queueMicrotask(() => {
|
|
120
|
+
a.current = !1, V(o), g();
|
|
117
121
|
}));
|
|
118
122
|
}, g = () => {
|
|
119
|
-
|
|
120
|
-
|
|
123
|
+
c.current || (c.current = requestAnimationFrame(() => {
|
|
124
|
+
c.current = 0;
|
|
121
125
|
let p = !1;
|
|
122
|
-
for (const [
|
|
123
|
-
|
|
126
|
+
for (const [v, C] of r.current)
|
|
127
|
+
C.container.isConnected || (r.current.delete(v), p = !0);
|
|
124
128
|
p && V(o);
|
|
125
129
|
}));
|
|
126
130
|
};
|
|
127
|
-
|
|
131
|
+
Re(
|
|
128
132
|
t,
|
|
129
133
|
() => ({
|
|
130
|
-
renderPortal(p,
|
|
131
|
-
r.current.set(p, { container:
|
|
134
|
+
renderPortal(p, v, C) {
|
|
135
|
+
r.current.set(p, { container: v, element: C }), s();
|
|
132
136
|
},
|
|
133
|
-
removePortal(p,
|
|
134
|
-
r.current.delete(p) && (
|
|
137
|
+
removePortal(p, v) {
|
|
138
|
+
r.current.delete(p) && (v ? V(o) : s());
|
|
135
139
|
},
|
|
136
140
|
clear() {
|
|
137
|
-
r.current.size > 0 && (r.current.clear(),
|
|
141
|
+
r.current.size > 0 && (r.current.clear(), c.current && (cancelAnimationFrame(c.current), c.current = 0), s());
|
|
138
142
|
}
|
|
139
143
|
}),
|
|
140
144
|
// forceRender is stable (useReducer dispatch), refs are stable
|
|
@@ -142,8 +146,8 @@ const Oe = z, je = he(function(e, t) {
|
|
|
142
146
|
[]
|
|
143
147
|
);
|
|
144
148
|
const d = [];
|
|
145
|
-
for (const [p, { container:
|
|
146
|
-
d.push(Ge(
|
|
149
|
+
for (const [p, { container: v, element: C }] of r.current)
|
|
150
|
+
d.push(Ge(C, v, p));
|
|
147
151
|
return /* @__PURE__ */ b(ne, { children: d });
|
|
148
152
|
}), U = /* @__PURE__ */ Symbol("reactProcessed"), D = [];
|
|
149
153
|
function ze(n) {
|
|
@@ -157,14 +161,14 @@ function qe(n) {
|
|
|
157
161
|
return (t) => {
|
|
158
162
|
const r = t.cellEl;
|
|
159
163
|
if (r) {
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
return w(
|
|
164
|
+
const c = e.get(r);
|
|
165
|
+
if (c)
|
|
166
|
+
return w(c.container, n(t), c.portalKey), c.container;
|
|
163
167
|
}
|
|
164
168
|
const o = document.createElement("div");
|
|
165
169
|
o.className = "react-cell-renderer", o.style.display = "contents";
|
|
166
|
-
const
|
|
167
|
-
return r && e.set(r, { portalKey:
|
|
170
|
+
const a = w(o, n(t));
|
|
171
|
+
return r && e.set(r, { portalKey: a, container: o }), D.push({ key: a, container: o }), o;
|
|
168
172
|
};
|
|
169
173
|
}
|
|
170
174
|
function _e(n) {
|
|
@@ -202,7 +206,7 @@ function Ve(n) {
|
|
|
202
206
|
return D.push({ key: o, container: r }), r;
|
|
203
207
|
};
|
|
204
208
|
}
|
|
205
|
-
function
|
|
209
|
+
function Ce(n) {
|
|
206
210
|
if (!n) return;
|
|
207
211
|
if (n[U]) return n;
|
|
208
212
|
if (n.loadingRenderer && typeof n.loadingRenderer == "function") {
|
|
@@ -217,8 +221,8 @@ function Re(n) {
|
|
|
217
221
|
return r[U] = !0, r;
|
|
218
222
|
}
|
|
219
223
|
const e = n.columns.map((r) => {
|
|
220
|
-
const { renderer: o, editor:
|
|
221
|
-
return o && (d.renderer = qe(o)),
|
|
224
|
+
const { renderer: o, editor: a, headerRenderer: c, headerLabelRenderer: s, ...g } = r, d = { ...g };
|
|
225
|
+
return o && (d.renderer = qe(o)), a && (d.editor = _e(a)), c && (d.headerRenderer = $e(c)), s && (d.headerLabelRenderer = Be(s)), d;
|
|
222
226
|
}), t = {
|
|
223
227
|
...n,
|
|
224
228
|
columns: e
|
|
@@ -237,7 +241,7 @@ function We(n) {
|
|
|
237
241
|
return X.get(t);
|
|
238
242
|
}
|
|
239
243
|
function Ue(n) {
|
|
240
|
-
const { children: e, showExpandColumn: t = !0, animation: r = "slide" } = n, o = k(null),
|
|
244
|
+
const { children: e, showExpandColumn: t = !0, animation: r = "slide" } = n, o = k(null), a = E(
|
|
241
245
|
(s) => {
|
|
242
246
|
if (o.current = s, !s) return;
|
|
243
247
|
Q.set(s, e);
|
|
@@ -264,7 +268,7 @@ function Ue(n) {
|
|
|
264
268
|
}, []), /* @__PURE__ */ b(
|
|
265
269
|
"tbw-grid-detail",
|
|
266
270
|
{
|
|
267
|
-
ref:
|
|
271
|
+
ref: a,
|
|
268
272
|
showExpandColumn: t ? void 0 : "false",
|
|
269
273
|
animation: r === !1 ? "false" : r
|
|
270
274
|
}
|
|
@@ -280,11 +284,11 @@ function Je(n) {
|
|
|
280
284
|
return te.get(t);
|
|
281
285
|
}
|
|
282
286
|
function ht(n) {
|
|
283
|
-
const { id: e, title: t, icon: r, tooltip: o, order:
|
|
287
|
+
const { id: e, title: t, icon: r, tooltip: o, order: a = 100, children: c } = n, s = k(null), g = E(
|
|
284
288
|
(d) => {
|
|
285
|
-
s.current = d, d && (ee.set(d,
|
|
289
|
+
s.current = d, d && (ee.set(d, c), e && te.set(e, c));
|
|
286
290
|
},
|
|
287
|
-
[
|
|
291
|
+
[c, e]
|
|
288
292
|
);
|
|
289
293
|
return P(() => () => {
|
|
290
294
|
const d = s.current;
|
|
@@ -297,7 +301,7 @@ function ht(n) {
|
|
|
297
301
|
title: t,
|
|
298
302
|
icon: r,
|
|
299
303
|
tooltip: o,
|
|
300
|
-
order:
|
|
304
|
+
order: a?.toString()
|
|
301
305
|
}
|
|
302
306
|
);
|
|
303
307
|
}
|
|
@@ -355,7 +359,7 @@ class et {
|
|
|
355
359
|
* Converts React renderer/editor functions to DOM-returning functions.
|
|
356
360
|
*/
|
|
357
361
|
processConfig(e) {
|
|
358
|
-
return
|
|
362
|
+
return Ce(e) ?? e;
|
|
359
363
|
}
|
|
360
364
|
/**
|
|
361
365
|
* Determines if this adapter can handle the given element.
|
|
@@ -365,11 +369,11 @@ class et {
|
|
|
365
369
|
const t = e.getAttribute("field");
|
|
366
370
|
let r = G.get(e);
|
|
367
371
|
if (!r && t) {
|
|
368
|
-
const
|
|
369
|
-
|
|
372
|
+
const c = A.get(t);
|
|
373
|
+
c && (c.renderer || c.editor) && (r = c, G.set(e, r));
|
|
370
374
|
}
|
|
371
|
-
const o = r?.renderer !== void 0,
|
|
372
|
-
return r !== void 0 && (o ||
|
|
375
|
+
const o = r?.renderer !== void 0, a = r?.editor !== void 0;
|
|
376
|
+
return r !== void 0 && (o || a);
|
|
373
377
|
}
|
|
374
378
|
/**
|
|
375
379
|
* Creates a view renderer function that renders a React component
|
|
@@ -387,27 +391,27 @@ class et {
|
|
|
387
391
|
if (!t)
|
|
388
392
|
return;
|
|
389
393
|
const r = e.closest("tbw-grid"), o = /* @__PURE__ */ new WeakMap();
|
|
390
|
-
return (
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
const d = o.get(
|
|
394
|
+
return (a) => {
|
|
395
|
+
const c = a.cellEl;
|
|
396
|
+
if (c) {
|
|
397
|
+
const d = o.get(c);
|
|
394
398
|
if (d)
|
|
395
|
-
return w(d.container, t(
|
|
399
|
+
return w(d.container, t(a), d.portalKey), d.container;
|
|
396
400
|
const p = document.createElement("div");
|
|
397
401
|
p.className = "react-cell-renderer", p.style.display = "contents";
|
|
398
|
-
const
|
|
402
|
+
const v = w(
|
|
399
403
|
p,
|
|
400
|
-
t(
|
|
404
|
+
t(a),
|
|
401
405
|
void 0,
|
|
402
406
|
r ?? void 0
|
|
403
407
|
);
|
|
404
|
-
return o.set(
|
|
408
|
+
return o.set(c, { portalKey: v, container: p }), this.trackPortal(v, p, !1), p;
|
|
405
409
|
}
|
|
406
410
|
const s = document.createElement("div");
|
|
407
411
|
s.className = "react-cell-renderer", s.style.display = "contents";
|
|
408
412
|
const g = w(
|
|
409
413
|
s,
|
|
410
|
-
t(
|
|
414
|
+
t(a),
|
|
411
415
|
void 0,
|
|
412
416
|
r ?? void 0
|
|
413
417
|
);
|
|
@@ -424,15 +428,15 @@ class et {
|
|
|
424
428
|
return () => document.createElement("div");
|
|
425
429
|
const r = e.closest("tbw-grid") ?? void 0;
|
|
426
430
|
return (o) => {
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
+
const a = document.createElement("div");
|
|
432
|
+
a.className = "react-cell-editor", a.style.display = "contents";
|
|
433
|
+
const c = w(
|
|
434
|
+
a,
|
|
431
435
|
t(o),
|
|
432
436
|
void 0,
|
|
433
437
|
r
|
|
434
438
|
);
|
|
435
|
-
return this.trackPortal(
|
|
439
|
+
return this.trackPortal(c, a, !0), a;
|
|
436
440
|
};
|
|
437
441
|
}
|
|
438
442
|
/**
|
|
@@ -443,15 +447,15 @@ class et {
|
|
|
443
447
|
const t = We(e);
|
|
444
448
|
if (t)
|
|
445
449
|
return (r, o) => {
|
|
446
|
-
const
|
|
447
|
-
|
|
450
|
+
const a = document.createElement("div");
|
|
451
|
+
a.className = "react-detail-panel";
|
|
448
452
|
const s = w(
|
|
449
|
-
|
|
453
|
+
a,
|
|
450
454
|
t({ row: r, rowIndex: o }),
|
|
451
455
|
void 0,
|
|
452
456
|
e
|
|
453
457
|
);
|
|
454
|
-
return this.trackPortal(s,
|
|
458
|
+
return this.trackPortal(s, a, !1), a;
|
|
455
459
|
};
|
|
456
460
|
}
|
|
457
461
|
/**
|
|
@@ -468,18 +472,18 @@ class et {
|
|
|
468
472
|
* Renders React components for card layout in responsive mode.
|
|
469
473
|
*/
|
|
470
474
|
createResponsiveCardRenderer(e) {
|
|
471
|
-
const t =
|
|
475
|
+
const t = ve(e);
|
|
472
476
|
if (t)
|
|
473
477
|
return (r, o) => {
|
|
474
|
-
const
|
|
475
|
-
|
|
478
|
+
const a = document.createElement("div");
|
|
479
|
+
a.className = "react-responsive-card";
|
|
476
480
|
const s = w(
|
|
477
|
-
|
|
481
|
+
a,
|
|
478
482
|
t({ row: r, index: o }),
|
|
479
483
|
void 0,
|
|
480
484
|
e
|
|
481
485
|
);
|
|
482
|
-
return this.trackPortal(s,
|
|
486
|
+
return this.trackPortal(s, a, !1), a;
|
|
483
487
|
};
|
|
484
488
|
}
|
|
485
489
|
/**
|
|
@@ -505,11 +509,11 @@ class et {
|
|
|
505
509
|
return;
|
|
506
510
|
const r = e.closest("tbw-grid");
|
|
507
511
|
return (o) => {
|
|
508
|
-
const
|
|
512
|
+
const c = w(o, t({
|
|
509
513
|
grid: r ?? o
|
|
510
514
|
}), void 0, r ?? void 0);
|
|
511
|
-
return this.trackPortal(
|
|
512
|
-
H(
|
|
515
|
+
return this.trackPortal(c, o, !1), () => {
|
|
516
|
+
H(c, { sync: !0 }), this.untrackPortal(c);
|
|
513
517
|
};
|
|
514
518
|
};
|
|
515
519
|
}
|
|
@@ -556,8 +560,8 @@ class et {
|
|
|
556
560
|
return (r) => {
|
|
557
561
|
const o = document.createElement("span");
|
|
558
562
|
o.style.display = "contents";
|
|
559
|
-
const
|
|
560
|
-
return this.trackPortal(
|
|
563
|
+
const a = r.cellEl?.closest("tbw-grid") ?? t, c = w(o, e(r), void 0, a);
|
|
564
|
+
return this.trackPortal(c, o, !1), o;
|
|
561
565
|
};
|
|
562
566
|
}
|
|
563
567
|
/**
|
|
@@ -568,8 +572,8 @@ class et {
|
|
|
568
572
|
return (r) => {
|
|
569
573
|
const o = document.createElement("span");
|
|
570
574
|
o.style.display = "contents";
|
|
571
|
-
const
|
|
572
|
-
return this.trackPortal(
|
|
575
|
+
const a = w(o, e(r), void 0, t);
|
|
576
|
+
return this.trackPortal(a, o, !0), o;
|
|
573
577
|
};
|
|
574
578
|
}
|
|
575
579
|
/**
|
|
@@ -578,10 +582,10 @@ class et {
|
|
|
578
582
|
*/
|
|
579
583
|
createFilterPanelRenderer(e, t) {
|
|
580
584
|
return (r, o) => {
|
|
581
|
-
const
|
|
582
|
-
|
|
583
|
-
const
|
|
584
|
-
this.trackPortal(s,
|
|
585
|
+
const a = document.createElement("div");
|
|
586
|
+
a.style.display = "contents";
|
|
587
|
+
const c = r.closest("tbw-grid") ?? t, s = w(a, e(o), void 0, c);
|
|
588
|
+
this.trackPortal(s, a, !1), r.appendChild(a);
|
|
585
589
|
};
|
|
586
590
|
}
|
|
587
591
|
// #region Portal tracking helpers
|
|
@@ -659,11 +663,11 @@ function ot(n) {
|
|
|
659
663
|
}
|
|
660
664
|
function it(n, e) {
|
|
661
665
|
const t = n;
|
|
662
|
-
if (!n.querySelector("tbw-grid-responsive-card") || !
|
|
663
|
-
const
|
|
664
|
-
if (
|
|
665
|
-
const
|
|
666
|
-
|
|
666
|
+
if (!n.querySelector("tbw-grid-responsive-card") || !ve(n)) return;
|
|
667
|
+
const a = t.getPluginByName?.("responsive");
|
|
668
|
+
if (a && typeof a.setCardRenderer == "function") {
|
|
669
|
+
const c = e.createResponsiveCardRenderer(n);
|
|
670
|
+
c && a.setCardRenderer(c);
|
|
667
671
|
}
|
|
668
672
|
}
|
|
669
673
|
function st(n) {
|
|
@@ -683,19 +687,19 @@ function st(n) {
|
|
|
683
687
|
}
|
|
684
688
|
}), e;
|
|
685
689
|
}
|
|
686
|
-
const
|
|
690
|
+
const Rt = he(function(e, t) {
|
|
687
691
|
const {
|
|
688
692
|
// Core props
|
|
689
693
|
rows: r,
|
|
690
694
|
gridConfig: o,
|
|
691
|
-
columns:
|
|
692
|
-
columnDefaults:
|
|
695
|
+
columns: a,
|
|
696
|
+
columnDefaults: c,
|
|
693
697
|
fitMode: s,
|
|
694
698
|
sortable: g,
|
|
695
699
|
filterable: d,
|
|
696
700
|
selectable: p,
|
|
697
|
-
loading:
|
|
698
|
-
customStyles:
|
|
701
|
+
loading: v,
|
|
702
|
+
customStyles: C,
|
|
699
703
|
className: K,
|
|
700
704
|
style: x,
|
|
701
705
|
children: T,
|
|
@@ -704,7 +708,7 @@ const vt = he(function(e, t) {
|
|
|
704
708
|
// SSR mode
|
|
705
709
|
ssr: h,
|
|
706
710
|
// Legacy event handlers
|
|
707
|
-
onRowsChange:
|
|
711
|
+
onRowsChange: R,
|
|
708
712
|
// Feature props and event props are in ...rest
|
|
709
713
|
...m
|
|
710
714
|
} = e, f = k(null), j = k(null), ie = O(Oe), q = O(Le), se = [
|
|
@@ -716,6 +720,7 @@ const vt = he(function(e, t) {
|
|
|
716
720
|
"contextMenu",
|
|
717
721
|
"reorderColumns",
|
|
718
722
|
"reorderRows",
|
|
723
|
+
"rowDragDrop",
|
|
719
724
|
"visibility",
|
|
720
725
|
"undoRedo",
|
|
721
726
|
"tree",
|
|
@@ -734,27 +739,27 @@ const vt = he(function(e, t) {
|
|
|
734
739
|
], we = S(() => se.map((i) => {
|
|
735
740
|
const l = m[i];
|
|
736
741
|
return l !== void 0 ? `${i}:${JSON.stringify(l)}` : "";
|
|
737
|
-
}).filter(Boolean).join("|"), [m]),
|
|
742
|
+
}).filter(Boolean).join("|"), [m]), ae = S(() => {
|
|
738
743
|
const i = {};
|
|
739
744
|
for (const l of se)
|
|
740
745
|
l in m && m[l] !== void 0 && (i[l] = m[l]);
|
|
741
746
|
return i;
|
|
742
|
-
}, [we]),
|
|
747
|
+
}, [we]), ce = S(() => st(T), [T]), le = S(() => ({ ...ce, ...ae }), [ae, ce]), _ = S(() => u || h ? [] : nt(le), [le, u, h]), N = S(() => {
|
|
743
748
|
if (u) {
|
|
744
749
|
const i = new Set(u.map((y) => y.name)), l = _.filter((y) => !i.has(y.name));
|
|
745
750
|
return [...u, ...l];
|
|
746
751
|
}
|
|
747
752
|
return _;
|
|
748
753
|
}, [u, _]), F = S(() => {
|
|
749
|
-
if (!
|
|
750
|
-
const i = Fe(
|
|
751
|
-
return
|
|
752
|
-
...
|
|
754
|
+
if (!a) return a;
|
|
755
|
+
const i = Fe(a);
|
|
756
|
+
return c ? i.map((l) => ({
|
|
757
|
+
...c,
|
|
753
758
|
...l
|
|
754
759
|
// Individual column props override defaults
|
|
755
760
|
})) : i;
|
|
756
|
-
}, [
|
|
757
|
-
const i =
|
|
761
|
+
}, [a, c]), I = S(() => {
|
|
762
|
+
const i = Ce(o), l = {};
|
|
758
763
|
if (g !== void 0 && (l.sortable = g), d !== void 0 && (l.filterable = d), p !== void 0 && (l.selectable = p), q) {
|
|
759
764
|
const y = i?.icons || o?.icons || {};
|
|
760
765
|
l.icons = { ...q, ...y };
|
|
@@ -780,8 +785,8 @@ const vt = he(function(e, t) {
|
|
|
780
785
|
}, [F]), P(() => {
|
|
781
786
|
f.current && s !== void 0 && (f.current.fitMode = s);
|
|
782
787
|
}, [s]), P(() => {
|
|
783
|
-
f.current &&
|
|
784
|
-
}, [
|
|
788
|
+
f.current && v !== void 0 && (f.current.loading = v);
|
|
789
|
+
}, [v]), P(() => {
|
|
785
790
|
const i = f.current;
|
|
786
791
|
if (!i) return;
|
|
787
792
|
const l = re();
|
|
@@ -794,22 +799,22 @@ const vt = he(function(e, t) {
|
|
|
794
799
|
y = !0, cancelAnimationFrame(L);
|
|
795
800
|
};
|
|
796
801
|
}, []), P(() => {
|
|
797
|
-
if (!f.current || !
|
|
802
|
+
if (!f.current || !C) return;
|
|
798
803
|
const i = f.current, l = "react-custom-styles";
|
|
799
804
|
let y = !0;
|
|
800
805
|
return i.ready?.().then(() => {
|
|
801
|
-
y &&
|
|
806
|
+
y && C && (i.registerStyles?.(l, C), j.current = l);
|
|
802
807
|
}), () => {
|
|
803
808
|
y = !1, j.current && (i.unregisterStyles?.(j.current), j.current = null);
|
|
804
809
|
};
|
|
805
|
-
}, [
|
|
810
|
+
}, [C]), P(() => {
|
|
806
811
|
const i = f.current;
|
|
807
812
|
if (!i) return;
|
|
808
813
|
const l = [];
|
|
809
|
-
return
|
|
814
|
+
return R && l.push(i.on("rows-change", (y) => R(y.rows))), () => {
|
|
810
815
|
l.forEach((y) => y());
|
|
811
816
|
};
|
|
812
|
-
}, [
|
|
817
|
+
}, [R]);
|
|
813
818
|
const de = S(() => Object.keys(W).filter((i) => typeof m[i] == "function").sort().join("|"), [m]), ue = k({});
|
|
814
819
|
for (const i of Object.keys(W))
|
|
815
820
|
ue.current[i] = m[i];
|
|
@@ -826,7 +831,7 @@ const vt = he(function(e, t) {
|
|
|
826
831
|
return () => {
|
|
827
832
|
l.forEach((y) => y());
|
|
828
833
|
};
|
|
829
|
-
}, [de]),
|
|
834
|
+
}, [de]), Re(
|
|
830
835
|
t,
|
|
831
836
|
() => ({
|
|
832
837
|
get element() {
|
|
@@ -892,35 +897,35 @@ const vt = he(function(e, t) {
|
|
|
892
897
|
)
|
|
893
898
|
] });
|
|
894
899
|
});
|
|
895
|
-
function
|
|
900
|
+
function vt(n) {
|
|
896
901
|
const {
|
|
897
902
|
field: e,
|
|
898
903
|
header: t,
|
|
899
904
|
type: r,
|
|
900
905
|
editable: o,
|
|
901
|
-
sortable:
|
|
902
|
-
resizable:
|
|
906
|
+
sortable: a,
|
|
907
|
+
resizable: c,
|
|
903
908
|
width: s,
|
|
904
909
|
minWidth: g,
|
|
905
910
|
hidden: d,
|
|
906
911
|
lockVisible: p,
|
|
907
|
-
children:
|
|
908
|
-
editor:
|
|
912
|
+
children: v,
|
|
913
|
+
editor: C,
|
|
909
914
|
options: K,
|
|
910
915
|
multi: x,
|
|
911
916
|
format: T
|
|
912
917
|
} = n, u = k(null), h = E(
|
|
913
918
|
(f) => {
|
|
914
|
-
u.current = f, f && (
|
|
919
|
+
u.current = f, f && (v && Ye(f, v), C && Ze(f, C));
|
|
915
920
|
},
|
|
916
|
-
[
|
|
917
|
-
),
|
|
921
|
+
[v, C, e]
|
|
922
|
+
), R = typeof s == "number" ? `${s}px` : s, m = {
|
|
918
923
|
field: e,
|
|
919
924
|
ref: h
|
|
920
925
|
};
|
|
921
|
-
return t !== void 0 && (m.header = t), r !== void 0 && (m.type = r), o !== void 0 && (m.editable = o),
|
|
926
|
+
return t !== void 0 && (m.header = t), r !== void 0 && (m.type = r), o !== void 0 && (m.editable = o), a !== void 0 && (m.sortable = a), c !== void 0 && (m.resizable = c), R !== void 0 && (m.width = R), g !== void 0 && (m["min-width"] = g), d !== void 0 && (m.hidden = d), p !== void 0 && (m["lock-visible"] = p), x !== void 0 && (m.multi = x), T && (m["data-has-format"] = "true"), K && (m["data-has-options"] = "true"), /* @__PURE__ */ b("tbw-grid-column", { ...m });
|
|
922
927
|
}
|
|
923
|
-
function
|
|
928
|
+
function Ct({ children: n }) {
|
|
924
929
|
return /* @__PURE__ */ b("tbw-grid-tool-buttons", { children: n });
|
|
925
930
|
}
|
|
926
931
|
const wt = ({ icons: n, defaults: e, children: t }) => {
|
|
@@ -928,26 +933,26 @@ const wt = ({ icons: n, defaults: e, children: t }) => {
|
|
|
928
933
|
return e && (r = /* @__PURE__ */ b(He, { defaults: e, children: r })), n && (r = /* @__PURE__ */ b(Ie, { icons: n, children: r })), /* @__PURE__ */ b(ne, { children: r });
|
|
929
934
|
};
|
|
930
935
|
function Pt(n) {
|
|
931
|
-
const e = k(null), [t, r] = fe(!1), [o,
|
|
936
|
+
const e = k(null), [t, r] = fe(!1), [o, a] = fe(null), c = k(null), s = E(() => n ? (c.current ??= document.querySelector(n), c.current) : e.current?.element ?? null, [n]);
|
|
932
937
|
P(() => {
|
|
933
938
|
let u = !0;
|
|
934
939
|
return (async () => {
|
|
935
940
|
try {
|
|
936
941
|
if (n) {
|
|
937
|
-
const
|
|
938
|
-
if (!
|
|
939
|
-
if (
|
|
942
|
+
const R = document.querySelector(n);
|
|
943
|
+
if (!R) return;
|
|
944
|
+
if (c.current = R, await R.ready?.(), u) {
|
|
940
945
|
r(!0);
|
|
941
|
-
const m = await
|
|
942
|
-
u && m &&
|
|
946
|
+
const m = await R.getConfig?.();
|
|
947
|
+
u && m && a(m);
|
|
943
948
|
}
|
|
944
949
|
} else {
|
|
945
|
-
const
|
|
946
|
-
if (!
|
|
947
|
-
if (await
|
|
950
|
+
const R = e.current;
|
|
951
|
+
if (!R) return;
|
|
952
|
+
if (await R.ready?.(), u) {
|
|
948
953
|
r(!0);
|
|
949
|
-
const m = await
|
|
950
|
-
u && m &&
|
|
954
|
+
const m = await R.getConfig?.();
|
|
955
|
+
u && m && a(m);
|
|
951
956
|
}
|
|
952
957
|
}
|
|
953
958
|
} catch {
|
|
@@ -977,21 +982,21 @@ function Pt(n) {
|
|
|
977
982
|
await h.toggleGroup?.(u);
|
|
978
983
|
return;
|
|
979
984
|
}
|
|
980
|
-
const
|
|
981
|
-
|
|
985
|
+
const R = e.current;
|
|
986
|
+
R && await R.toggleGroup?.(u);
|
|
982
987
|
},
|
|
983
988
|
[s]
|
|
984
|
-
),
|
|
989
|
+
), v = E(
|
|
985
990
|
(u) => s()?.getPlugin?.(u),
|
|
986
991
|
[s]
|
|
987
|
-
),
|
|
992
|
+
), C = E(
|
|
988
993
|
((u) => s()?.getPluginByName?.(u)),
|
|
989
994
|
[s]
|
|
990
995
|
), K = E(
|
|
991
996
|
(u, h) => {
|
|
992
|
-
const
|
|
993
|
-
if (
|
|
994
|
-
|
|
997
|
+
const R = s();
|
|
998
|
+
if (R) {
|
|
999
|
+
R.registerStyles?.(u, h);
|
|
995
1000
|
return;
|
|
996
1001
|
}
|
|
997
1002
|
e.current?.registerStyles?.(u, h);
|
|
@@ -1016,22 +1021,22 @@ function Pt(n) {
|
|
|
1016
1021
|
getConfig: g,
|
|
1017
1022
|
forceLayout: d,
|
|
1018
1023
|
toggleGroup: p,
|
|
1019
|
-
getPlugin:
|
|
1020
|
-
getPluginByName:
|
|
1024
|
+
getPlugin: v,
|
|
1025
|
+
getPluginByName: C,
|
|
1021
1026
|
registerStyles: K,
|
|
1022
1027
|
unregisterStyles: x,
|
|
1023
1028
|
getVisibleColumns: T
|
|
1024
1029
|
};
|
|
1025
1030
|
}
|
|
1026
1031
|
export {
|
|
1027
|
-
|
|
1032
|
+
Rt as DataGrid,
|
|
1028
1033
|
et as GridAdapter,
|
|
1029
|
-
|
|
1034
|
+
vt as GridColumn,
|
|
1030
1035
|
Ue as GridDetailPanel,
|
|
1031
1036
|
Ie as GridIconProvider,
|
|
1032
1037
|
wt as GridProvider,
|
|
1033
1038
|
Me as GridResponsiveCard,
|
|
1034
|
-
|
|
1039
|
+
Ct as GridToolButtons,
|
|
1035
1040
|
ht as GridToolPanel,
|
|
1036
1041
|
He as GridTypeProvider,
|
|
1037
1042
|
Pt as useGrid,
|
package/lib/data-grid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-grid.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/data-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,aAAa,CAAC;AACrB,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,KAAK,eAAe,EAAqB,MAAM,iBAAiB,CAAC;AAO1E,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,UAAU,E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AAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,2CAA2C;IAC3C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,4CAA4C;IAC5C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,yCAAyC;IACzC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,0CAA0C;IAC1C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACzD,uDAAuD;IACvD,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,eAAO,MAAM,QAAQ,EA8cf,CAAC,IAAI,GAAG,OAAO,EAAE,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAA;CAAE,KAAK,KAAK,CAAC,YAAY,CAAC"}
|
package/lib/event-props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CellActivateDetail, CellChangeDetail, CellClickDetail, CellCommitDetail, ChangedRowsResetDetail, ColumnMoveDetail, ColumnResizeDetail, ColumnVisibilityDetail, CopyDetail, DetailExpandDetail, ExportCompleteDetail, FilterChangeDetail, GridColumnState, GroupToggleDetail, PasteDetail, PrintCompleteDetail, PrintStartDetail, ResponsiveChangeDetail, RowClickDetail, RowCommitDetail, RowMoveDetail, SelectionChangeDetail, SortChangeDetail, TbwScrollDetail, TreeExpandDetail, UndoRedoDetail } from '@toolbox-web/grid/all';
|
|
1
|
+
import { CellActivateDetail, CellChangeDetail, CellClickDetail, CellCommitDetail, ChangedRowsResetDetail, ColumnMoveDetail, ColumnResizeDetail, ColumnVisibilityDetail, CopyDetail, DetailExpandDetail, ExportCompleteDetail, FilterChangeDetail, GridColumnState, GroupToggleDetail, PasteDetail, PrintCompleteDetail, PrintStartDetail, ResponsiveChangeDetail, RowClickDetail, RowCommitDetail, RowDragEndDetail, RowDragStartDetail, RowDropDetail, RowMoveDetail, RowTransferDetail, SelectionChangeDetail, SortChangeDetail, TbwScrollDetail, TreeExpandDetail, UndoRedoDetail } from '@toolbox-web/grid/all';
|
|
2
2
|
/**
|
|
3
3
|
* Event handler type with unwrapped detail.
|
|
4
4
|
* Pattern: `(detail: T, event?: CustomEvent) => void`
|
|
@@ -187,6 +187,32 @@ export interface EventProps<TRow = unknown> {
|
|
|
187
187
|
* ```
|
|
188
188
|
*/
|
|
189
189
|
onRowMove?: EventHandler<RowMoveDetail<TRow>>;
|
|
190
|
+
/**
|
|
191
|
+
* Fired when a row drag starts. Cancelable.
|
|
192
|
+
*
|
|
193
|
+
* @requires `import '@toolbox-web/grid-react/features/row-drag-drop';`
|
|
194
|
+
*/
|
|
195
|
+
onRowDragStart?: EventHandler<RowDragStartDetail<TRow>>;
|
|
196
|
+
/**
|
|
197
|
+
* Fired when a row drag ends (after drop or cancel).
|
|
198
|
+
*
|
|
199
|
+
* @requires `import '@toolbox-web/grid-react/features/row-drag-drop';`
|
|
200
|
+
*/
|
|
201
|
+
onRowDragEnd?: EventHandler<RowDragEndDetail<TRow>>;
|
|
202
|
+
/**
|
|
203
|
+
* Fired on the target grid when rows are dropped from another grid.
|
|
204
|
+
* Cancelable.
|
|
205
|
+
*
|
|
206
|
+
* @requires `import '@toolbox-web/grid-react/features/row-drag-drop';`
|
|
207
|
+
*/
|
|
208
|
+
onRowDrop?: EventHandler<RowDropDetail<TRow>>;
|
|
209
|
+
/**
|
|
210
|
+
* Fired on BOTH source and target grids after a successful cross-grid
|
|
211
|
+
* row transfer.
|
|
212
|
+
*
|
|
213
|
+
* @requires `import '@toolbox-web/grid-react/features/row-drag-drop';`
|
|
214
|
+
*/
|
|
215
|
+
onRowTransfer?: EventHandler<RowTransferDetail<TRow>>;
|
|
190
216
|
/**
|
|
191
217
|
* Fired when a group is expanded or collapsed.
|
|
192
218
|
*
|
package/lib/event-props.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-props.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/event-props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAE1E;;;;;;GAMG;AACH,MAAM,WAAW,UAAU,CAAC,IAAI,GAAG,OAAO;IAKxC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;IAElD;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;IAEhD;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAA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;;;;OAWG;IACH,cAAc,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAMlD;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,EAAE,YAAY,CAAC,sBAAsB,CAAC,CAAC;IAM1D;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAElC;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAMpC;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAM1C;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAMtD;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAE9C;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,YAAY,CAAC,mBAAmB,CAAC,CAAC;IAMpD;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;CAC7C;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,UAAU,EAAE,MAAM,CA+B3D,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,CAAC,MAAM,UAAU,CAAC,EAAE,CAExD"}
|
package/lib/feature-props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClipboardConfig, ColumnVirtualizationConfig, ContextMenuConfig, ExportConfig, FilterConfig, GroupingColumnsConfig, GroupingRowsConfig, MasterDetailConfig, MultiSortConfig, PinnedRowsConfig, PivotConfig, PrintConfig, ReorderConfig, ResponsivePluginConfig, RowReorderConfig, SelectionConfig, ServerSideConfig, TooltipConfig, TreeConfig, UndoRedoConfig, VisibilityConfig } from '@toolbox-web/grid/all';
|
|
1
|
+
import { ClipboardConfig, ColumnVirtualizationConfig, ContextMenuConfig, ExportConfig, FilterConfig, GroupingColumnsConfig, GroupingRowsConfig, MasterDetailConfig, MultiSortConfig, PinnedRowsConfig, PivotConfig, PrintConfig, ReorderConfig, ResponsivePluginConfig, RowDragDropConfig, RowReorderConfig, SelectionConfig, ServerSideConfig, TooltipConfig, TreeConfig, UndoRedoConfig, VisibilityConfig } from '@toolbox-web/grid/all';
|
|
2
2
|
import { EditingConfig } from '@toolbox-web/grid/plugins/editing';
|
|
3
3
|
import { FilterPanelParams } from '@toolbox-web/grid/plugins/filtering';
|
|
4
4
|
import { ColumnGroupDefinition } from '@toolbox-web/grid/plugins/grouping-columns';
|
|
@@ -197,6 +197,8 @@ export interface FeatureProps<TRow = unknown> {
|
|
|
197
197
|
/**
|
|
198
198
|
* Enable row drag-to-reorder.
|
|
199
199
|
*
|
|
200
|
+
* @deprecated Use `rowDragDrop` instead. `reorderRows` remains as an alias
|
|
201
|
+
* until V3 and forwards to the same plugin.
|
|
200
202
|
* @requires `import '@toolbox-web/grid-react/features/reorder-rows';`
|
|
201
203
|
*
|
|
202
204
|
* @example
|
|
@@ -205,6 +207,22 @@ export interface FeatureProps<TRow = unknown> {
|
|
|
205
207
|
* ```
|
|
206
208
|
*/
|
|
207
209
|
reorderRows?: boolean | RowReorderConfig;
|
|
210
|
+
/**
|
|
211
|
+
* Enable row drag-and-drop, both within a single grid (reorder) and
|
|
212
|
+
* across grids that share a `dropZone`.
|
|
213
|
+
*
|
|
214
|
+
* @requires `import '@toolbox-web/grid-react/features/row-drag-drop';`
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* ```tsx
|
|
218
|
+
* // Intra-grid reorder (parity with reorderRows)
|
|
219
|
+
* <DataGrid rowDragDrop />
|
|
220
|
+
*
|
|
221
|
+
* // Cross-grid transfer
|
|
222
|
+
* <DataGrid rowDragDrop={{ dropZone: 'employees', operation: 'move' }} />
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
rowDragDrop?: boolean | RowDragDropConfig<TRow>;
|
|
208
226
|
/**
|
|
209
227
|
* Enable row grouping by field values.
|
|
210
228
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-props.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/feature-props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;;;;;GAMG;AACH,KAAK,iBAAiB,CAAC,IAAI,GAAG,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,qBAAqB,CAAC,GAAG;IACzF,mBAAmB,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,iBAAiB,KAAK,SAAS,CAAC,CAAC;CAC9G,CAAC;AAEF;;GAEG;AACH,KAAK,0BAA0B,GAAG,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG;IAC1E,QAAQ,CAAC,EACL,qBAAqB,CAAC,UAAU,CAAC,GACjC,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC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ACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;;;;;;;OAaG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,0BAA0B,CAAC;IAEvD;;;;;;;;;OASG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,0BAA0B,CAAC;IAM5D
|
|
1
|
+
{"version":3,"file":"feature-props.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/feature-props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;;;;;GAMG;AACH,KAAK,iBAAiB,CAAC,IAAI,GAAG,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,qBAAqB,CAAC,GAAG;IACzF,mBAAmB,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,iBAAiB,KAAK,SAAS,CAAC,CAAC;CAC9G,CAAC;AAEF;;GAEG;AACH,KAAK,0BAA0B,GAAG,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GA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