@toolbox-web/grid-react 2.0.0-beta → 2.0.0-rc.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/chunks/{react-grid-adapter-C9gIJ33-.js → react-grid-adapter-BhC9x425.js} +165 -120
- package/features/filtering.js +1 -1
- package/features/master-detail.js +1 -1
- package/features/responsive.js +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +313 -312
- package/lib/column-shorthand.d.ts +4 -4
- package/lib/column-shorthand.d.ts.map +1 -1
- package/lib/grid-type.d.ts +27 -0
- package/lib/grid-type.d.ts.map +1 -0
- package/lib/react-grid-adapter.d.ts +6 -0
- package/lib/react-grid-adapter.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import { p as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { a as
|
|
5
|
-
const
|
|
6
|
-
let
|
|
7
|
-
function
|
|
8
|
-
|
|
1
|
+
import { useRef as k, useCallback as B, useEffect as D } from "react";
|
|
2
|
+
import { p as M, n as A, c as S } from "./react-column-config-BOe_PgL1.js";
|
|
3
|
+
import { jsx as F } from "react/jsx-runtime";
|
|
4
|
+
import { a as f, r as p, b as N, e as U } from "./portal-bridge-CvxNt40O.js";
|
|
5
|
+
const v = /* @__PURE__ */ new Set();
|
|
6
|
+
let b = null;
|
|
7
|
+
function x(n) {
|
|
8
|
+
v.has(n) || (v.add(n), b = null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function J() {
|
|
11
|
+
return b === null && (b = Object.freeze(Array.from(v))), b;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const G = [
|
|
14
14
|
"selection",
|
|
15
15
|
"editing",
|
|
16
16
|
"filtering",
|
|
@@ -35,80 +35,120 @@ const F = [
|
|
|
35
35
|
"serverSide",
|
|
36
36
|
"tooltip"
|
|
37
37
|
];
|
|
38
|
-
for (const
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
function
|
|
42
|
-
const e =
|
|
38
|
+
for (const n of G)
|
|
39
|
+
x(n);
|
|
40
|
+
const R = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new Map();
|
|
41
|
+
function I(n) {
|
|
42
|
+
const e = R.get(n);
|
|
43
43
|
if (e) return e;
|
|
44
|
-
const t =
|
|
44
|
+
const t = n.id;
|
|
45
45
|
if (t)
|
|
46
|
-
return
|
|
46
|
+
return P.get(t);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const { id: e, title: t, icon: r, tooltip:
|
|
48
|
+
function Q(n) {
|
|
49
|
+
const { id: e, title: t, icon: r, tooltip: i, order: s = 100, children: o } = n, d = k(null), c = B(
|
|
50
50
|
(a) => {
|
|
51
|
-
|
|
51
|
+
d.current = a, a && (R.set(a, o), e && P.set(e, o));
|
|
52
52
|
},
|
|
53
|
-
[
|
|
53
|
+
[o, e]
|
|
54
54
|
);
|
|
55
|
-
return
|
|
56
|
-
const a =
|
|
57
|
-
a && (
|
|
58
|
-
}, [e]), /* @__PURE__ */
|
|
55
|
+
return D(() => () => {
|
|
56
|
+
const a = d.current;
|
|
57
|
+
a && (R.delete(a), e && P.delete(e));
|
|
58
|
+
}, [e]), /* @__PURE__ */ F(
|
|
59
59
|
"tbw-grid-tool-panel",
|
|
60
60
|
{
|
|
61
|
-
ref:
|
|
61
|
+
ref: c,
|
|
62
62
|
id: e,
|
|
63
63
|
title: t,
|
|
64
64
|
icon: r,
|
|
65
|
-
tooltip:
|
|
65
|
+
tooltip: i,
|
|
66
66
|
order: s?.toString()
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
let
|
|
71
|
-
function
|
|
72
|
-
|
|
70
|
+
let m = null, K = null, w = null;
|
|
71
|
+
function X(n) {
|
|
72
|
+
m = n;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
74
|
+
function Z(n) {
|
|
75
|
+
K = n;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
|
|
77
|
+
function $(n) {
|
|
78
|
+
w = n;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
81
|
-
function
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
const l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Set();
|
|
81
|
+
function O(n) {
|
|
82
|
+
return n.closest("tbw-grid, [data-tbw-grid]") ?? void 0;
|
|
83
|
+
}
|
|
84
|
+
function y(n, e) {
|
|
85
|
+
const t = O(n);
|
|
86
|
+
if (!t)
|
|
87
|
+
return W;
|
|
88
|
+
const r = T.get(t);
|
|
89
|
+
if (r || !e)
|
|
90
|
+
return r;
|
|
91
|
+
const i = /* @__PURE__ */ new Map();
|
|
92
|
+
return T.set(t, i), i;
|
|
93
|
+
}
|
|
94
|
+
function h(n) {
|
|
95
|
+
return n.tagName.toLowerCase() === "tbw-grid-type" ? n.getAttribute("name") : n.closest("tbw-grid-type")?.getAttribute("name") ?? null;
|
|
96
|
+
}
|
|
97
|
+
function ee(n, e) {
|
|
98
|
+
const t = n.getAttribute("field"), r = l.get(n) ?? {};
|
|
99
|
+
if (r.renderer = e, l.set(n, r), t) {
|
|
100
|
+
const i = u.get(t) ?? {};
|
|
101
|
+
i.renderer = e, u.set(t, i);
|
|
86
102
|
}
|
|
87
103
|
}
|
|
88
|
-
function
|
|
89
|
-
const t =
|
|
90
|
-
if (r.editor = e,
|
|
91
|
-
const
|
|
92
|
-
|
|
104
|
+
function te(n, e) {
|
|
105
|
+
const t = n.getAttribute("field"), r = l.get(n) ?? {};
|
|
106
|
+
if (r.editor = e, l.set(n, r), t) {
|
|
107
|
+
const i = u.get(t) ?? {};
|
|
108
|
+
i.editor = e, u.set(t, i);
|
|
93
109
|
}
|
|
94
110
|
}
|
|
95
|
-
function
|
|
96
|
-
let e =
|
|
111
|
+
function _(n) {
|
|
112
|
+
let e = l.get(n)?.renderer;
|
|
97
113
|
if (!e) {
|
|
98
|
-
const t =
|
|
99
|
-
t && (e =
|
|
114
|
+
const t = n.getAttribute("field");
|
|
115
|
+
t && (e = u.get(t)?.renderer);
|
|
100
116
|
}
|
|
101
117
|
return e;
|
|
102
118
|
}
|
|
103
|
-
function
|
|
104
|
-
let e =
|
|
119
|
+
function j(n) {
|
|
120
|
+
let e = l.get(n)?.editor;
|
|
105
121
|
if (!e) {
|
|
106
|
-
const t =
|
|
107
|
-
t && (e =
|
|
122
|
+
const t = n.getAttribute("field");
|
|
123
|
+
t && (e = u.get(t)?.editor);
|
|
108
124
|
}
|
|
109
125
|
return e;
|
|
110
126
|
}
|
|
111
|
-
|
|
127
|
+
function re(n, e) {
|
|
128
|
+
const t = h(n);
|
|
129
|
+
if (!t) return;
|
|
130
|
+
const r = y(n, !0);
|
|
131
|
+
if (!r) return;
|
|
132
|
+
const i = r.get(t) ?? {};
|
|
133
|
+
i.renderer = e, r.set(t, i), E.add(t);
|
|
134
|
+
}
|
|
135
|
+
function z(n) {
|
|
136
|
+
const e = h(n);
|
|
137
|
+
return e ? y(n, !1)?.get(e)?.renderer : void 0;
|
|
138
|
+
}
|
|
139
|
+
function ne(n, e) {
|
|
140
|
+
const t = h(n);
|
|
141
|
+
if (!t) return;
|
|
142
|
+
const r = y(n, !0);
|
|
143
|
+
if (!r) return;
|
|
144
|
+
const i = r.get(t) ?? {};
|
|
145
|
+
i.editor = e, r.set(t, i), E.add(t);
|
|
146
|
+
}
|
|
147
|
+
function L(n) {
|
|
148
|
+
const e = h(n);
|
|
149
|
+
return e ? y(n, !1)?.get(e)?.editor : void 0;
|
|
150
|
+
}
|
|
151
|
+
class ie {
|
|
112
152
|
/** Portal keys for all managed portals (for cleanup on destroy). */
|
|
113
153
|
allPortalKeys = /* @__PURE__ */ new Set();
|
|
114
154
|
/** Portal keys for editor-specific portals (for per-cell cleanup via releaseCell). */
|
|
@@ -163,7 +203,7 @@ class Y {
|
|
|
163
203
|
* Converts React renderer/editor functions to DOM-returning functions.
|
|
164
204
|
*/
|
|
165
205
|
processConfig(e) {
|
|
166
|
-
return
|
|
206
|
+
return M(e) ?? e;
|
|
167
207
|
}
|
|
168
208
|
/**
|
|
169
209
|
* Determines if this adapter can handle the given element.
|
|
@@ -171,13 +211,16 @@ class Y {
|
|
|
171
211
|
*/
|
|
172
212
|
canHandle(e) {
|
|
173
213
|
const t = e.getAttribute("field");
|
|
174
|
-
let r =
|
|
214
|
+
let r = l.get(e);
|
|
175
215
|
if (!r && t) {
|
|
176
|
-
const
|
|
177
|
-
|
|
216
|
+
const c = u.get(t);
|
|
217
|
+
c && (c.renderer || c.editor) && (r = c, l.set(e, r));
|
|
178
218
|
}
|
|
179
|
-
const
|
|
180
|
-
|
|
219
|
+
const i = r?.renderer !== void 0, s = r?.editor !== void 0;
|
|
220
|
+
if (r !== void 0 && (i || s))
|
|
221
|
+
return !0;
|
|
222
|
+
const o = h(e), d = o ? y(e, !1)?.get(o) : void 0;
|
|
223
|
+
return !!d && (d.renderer !== void 0 || d.editor !== void 0);
|
|
181
224
|
}
|
|
182
225
|
/**
|
|
183
226
|
* Creates a view renderer function that renders a React component
|
|
@@ -191,38 +234,38 @@ class Y {
|
|
|
191
234
|
* allowing the grid to use its default rendering.
|
|
192
235
|
*/
|
|
193
236
|
createRenderer(e) {
|
|
194
|
-
const t =
|
|
237
|
+
const t = _(e) ?? z(e);
|
|
195
238
|
if (!t)
|
|
196
239
|
return;
|
|
197
|
-
const r = e.closest("tbw-grid, [data-tbw-grid]"),
|
|
240
|
+
const r = e.closest("tbw-grid, [data-tbw-grid]"), i = /* @__PURE__ */ new WeakMap();
|
|
198
241
|
return (s) => {
|
|
199
|
-
const
|
|
200
|
-
if (
|
|
201
|
-
const a =
|
|
242
|
+
const o = s.cellEl;
|
|
243
|
+
if (o) {
|
|
244
|
+
const a = i.get(o);
|
|
202
245
|
if (a) {
|
|
203
|
-
if (
|
|
204
|
-
return
|
|
205
|
-
|
|
246
|
+
if (o.contains(a.container))
|
|
247
|
+
return f(a.container, t(s), a.portalKey), a.container;
|
|
248
|
+
p(a.portalKey, { sync: !0 }), this.untrackPortal(a.portalKey), i.delete(o);
|
|
206
249
|
}
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
|
|
250
|
+
const g = document.createElement("div");
|
|
251
|
+
g.className = "react-cell-renderer", g.style.display = "contents";
|
|
252
|
+
const C = f(
|
|
253
|
+
g,
|
|
211
254
|
t(s),
|
|
212
255
|
void 0,
|
|
213
256
|
r ?? void 0
|
|
214
257
|
);
|
|
215
|
-
return
|
|
258
|
+
return i.set(o, { portalKey: C, container: g }), this.trackPortal(C, g, !1), g;
|
|
216
259
|
}
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
const
|
|
220
|
-
|
|
260
|
+
const d = document.createElement("div");
|
|
261
|
+
d.className = "react-cell-renderer", d.style.display = "contents";
|
|
262
|
+
const c = f(
|
|
263
|
+
d,
|
|
221
264
|
t(s),
|
|
222
265
|
void 0,
|
|
223
266
|
r ?? void 0
|
|
224
267
|
);
|
|
225
|
-
return this.trackPortal(
|
|
268
|
+
return this.trackPortal(c, d, !1), d;
|
|
226
269
|
};
|
|
227
270
|
}
|
|
228
271
|
/**
|
|
@@ -230,20 +273,20 @@ class Y {
|
|
|
230
273
|
* with commit/cancel callbacks passed as props.
|
|
231
274
|
*/
|
|
232
275
|
createEditor(e) {
|
|
233
|
-
const t =
|
|
276
|
+
const t = j(e) ?? L(e);
|
|
234
277
|
if (!t)
|
|
235
278
|
return () => document.createElement("div");
|
|
236
279
|
const r = e.closest("tbw-grid, [data-tbw-grid]") ?? void 0;
|
|
237
|
-
return (
|
|
280
|
+
return (i) => {
|
|
238
281
|
const s = document.createElement("div");
|
|
239
282
|
s.className = "react-cell-editor", s.style.display = "contents";
|
|
240
|
-
const
|
|
283
|
+
const o = f(
|
|
241
284
|
s,
|
|
242
|
-
t(
|
|
285
|
+
t(i),
|
|
243
286
|
void 0,
|
|
244
287
|
r
|
|
245
288
|
);
|
|
246
|
-
return this.trackPortal(
|
|
289
|
+
return this.trackPortal(o, s, !0), r && this.editorBeforeCloseUnsubs.set(o, A(s, r)), s;
|
|
247
290
|
};
|
|
248
291
|
}
|
|
249
292
|
/**
|
|
@@ -254,7 +297,7 @@ class Y {
|
|
|
254
297
|
* was registered for this grid.
|
|
255
298
|
*/
|
|
256
299
|
createDetailRenderer(e) {
|
|
257
|
-
return
|
|
300
|
+
return m?.(e, this.bridgeContext);
|
|
258
301
|
}
|
|
259
302
|
/**
|
|
260
303
|
* Framework adapter hook called by MasterDetailPlugin during attach().
|
|
@@ -273,7 +316,7 @@ class Y {
|
|
|
273
316
|
* was registered for this grid.
|
|
274
317
|
*/
|
|
275
318
|
createResponsiveCardRenderer(e) {
|
|
276
|
-
return
|
|
319
|
+
return K?.(e, this.bridgeContext);
|
|
277
320
|
}
|
|
278
321
|
/**
|
|
279
322
|
* FrameworkAdapter hook called by ResponsivePlugin during attach().
|
|
@@ -293,16 +336,16 @@ class Y {
|
|
|
293
336
|
* Renders React components into tool panel containers.
|
|
294
337
|
*/
|
|
295
338
|
createToolPanelRenderer(e) {
|
|
296
|
-
const t =
|
|
339
|
+
const t = I(e);
|
|
297
340
|
if (!t)
|
|
298
341
|
return;
|
|
299
342
|
const r = e.closest("tbw-grid, [data-tbw-grid]");
|
|
300
|
-
return (
|
|
301
|
-
const
|
|
302
|
-
grid: r ??
|
|
343
|
+
return (i) => {
|
|
344
|
+
const o = f(i, t({
|
|
345
|
+
grid: r ?? i
|
|
303
346
|
}), void 0, r ?? void 0);
|
|
304
|
-
return this.trackPortal(
|
|
305
|
-
|
|
347
|
+
return this.trackPortal(o, i, !1), () => {
|
|
348
|
+
p(o, { sync: !0 }), this.untrackPortal(o);
|
|
306
349
|
};
|
|
307
350
|
};
|
|
308
351
|
}
|
|
@@ -336,14 +379,14 @@ class Y {
|
|
|
336
379
|
const r = this.typeDefaults[e];
|
|
337
380
|
if (!r)
|
|
338
381
|
return;
|
|
339
|
-
const
|
|
382
|
+
const i = {
|
|
340
383
|
editorParams: r.editorParams
|
|
341
384
|
};
|
|
342
|
-
return r.renderer && (
|
|
385
|
+
return r.renderer && (i.renderer = this.createTypeRenderer(r.renderer, t)), r.editor && (i.editor = this.createTypeEditor(r.editor, t)), r.filterPanelRenderer && w && (i.filterPanelRenderer = w(
|
|
343
386
|
r.filterPanelRenderer,
|
|
344
387
|
t,
|
|
345
388
|
this.bridgeContext
|
|
346
|
-
)),
|
|
389
|
+
)), i;
|
|
347
390
|
}
|
|
348
391
|
/**
|
|
349
392
|
* Creates a renderer function from a React render function for type defaults.
|
|
@@ -351,10 +394,10 @@ class Y {
|
|
|
351
394
|
*/
|
|
352
395
|
createTypeRenderer(e, t) {
|
|
353
396
|
return (r) => {
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
const s = r.cellEl?.closest("tbw-grid, [data-tbw-grid]") ?? t,
|
|
357
|
-
return this.trackPortal(
|
|
397
|
+
const i = document.createElement("span");
|
|
398
|
+
i.style.display = "contents";
|
|
399
|
+
const s = r.cellEl?.closest("tbw-grid, [data-tbw-grid]") ?? t, o = f(i, e(r), void 0, s);
|
|
400
|
+
return this.trackPortal(o, i, !1), i;
|
|
358
401
|
};
|
|
359
402
|
}
|
|
360
403
|
/**
|
|
@@ -363,10 +406,10 @@ class Y {
|
|
|
363
406
|
*/
|
|
364
407
|
createTypeEditor(e, t) {
|
|
365
408
|
return (r) => {
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
const s =
|
|
369
|
-
return this.trackPortal(s,
|
|
409
|
+
const i = document.createElement("span");
|
|
410
|
+
i.style.display = "contents";
|
|
411
|
+
const s = f(i, e(r), void 0, t);
|
|
412
|
+
return this.trackPortal(s, i, !0), i;
|
|
370
413
|
};
|
|
371
414
|
}
|
|
372
415
|
// #region Portal tracking helpers
|
|
@@ -397,10 +440,10 @@ class Y {
|
|
|
397
440
|
*/
|
|
398
441
|
destroy() {
|
|
399
442
|
for (const e of this.allPortalKeys)
|
|
400
|
-
|
|
443
|
+
p(e);
|
|
401
444
|
this.allPortalKeys.clear(), this.editorPortalKeys.clear(), this.keyToContainer.clear();
|
|
402
445
|
for (const e of this.editorBeforeCloseUnsubs.values()) e();
|
|
403
|
-
this.editorBeforeCloseUnsubs.clear(),
|
|
446
|
+
this.editorBeforeCloseUnsubs.clear(), u.clear();
|
|
404
447
|
}
|
|
405
448
|
/**
|
|
406
449
|
* Called when a cell's content is about to be wiped.
|
|
@@ -427,17 +470,17 @@ class Y {
|
|
|
427
470
|
releaseCell(e) {
|
|
428
471
|
const t = e.querySelectorAll(".react-cell-renderer, .react-cell-editor");
|
|
429
472
|
for (const r of t) {
|
|
430
|
-
const
|
|
431
|
-
|
|
473
|
+
const i = this.containerToKey.get(r);
|
|
474
|
+
i && (p(i, { sync: !0 }), this.untrackPortal(i));
|
|
432
475
|
}
|
|
433
|
-
|
|
476
|
+
S(e);
|
|
434
477
|
}
|
|
435
478
|
/**
|
|
436
479
|
* Unmount a specific container (called when cell is recycled).
|
|
437
480
|
*/
|
|
438
481
|
unmount(e) {
|
|
439
482
|
const t = this.containerToKey.get(e);
|
|
440
|
-
t && (
|
|
483
|
+
t && (p(t), this.untrackPortal(t));
|
|
441
484
|
}
|
|
442
485
|
/**
|
|
443
486
|
* Open a teardown batch on the PortalManager. Grid core wraps multi-cell
|
|
@@ -448,7 +491,7 @@ class Y {
|
|
|
448
491
|
* grouping changes (#330).
|
|
449
492
|
*/
|
|
450
493
|
beginBatch(e) {
|
|
451
|
-
|
|
494
|
+
N(e);
|
|
452
495
|
}
|
|
453
496
|
/**
|
|
454
497
|
* Close a teardown batch opened by {@link beginBatch}. Caller is
|
|
@@ -457,17 +500,19 @@ class Y {
|
|
|
457
500
|
* filter then prunes them silently.
|
|
458
501
|
*/
|
|
459
502
|
endBatch(e) {
|
|
460
|
-
|
|
503
|
+
U(e);
|
|
461
504
|
}
|
|
462
505
|
}
|
|
463
506
|
export {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
507
|
+
ie as G,
|
|
508
|
+
X as a,
|
|
509
|
+
Z as b,
|
|
510
|
+
ee as c,
|
|
511
|
+
te as d,
|
|
512
|
+
re as e,
|
|
513
|
+
ne as f,
|
|
514
|
+
J as g,
|
|
515
|
+
Q as h,
|
|
516
|
+
x as i,
|
|
517
|
+
$ as r
|
|
473
518
|
};
|
package/features/filtering.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useContext as h, useCallback as n } from "react";
|
|
|
3
3
|
import { registerFeature as E } from "@toolbox-web/grid/features/registry";
|
|
4
4
|
import { G as k } from "../chunks/grid-element-context-BU3WvNtM.js";
|
|
5
5
|
import { r as v, a as m } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
6
|
-
import { r as C } from "../chunks/react-grid-adapter-
|
|
6
|
+
import { r as C } from "../chunks/react-grid-adapter-BhC9x425.js";
|
|
7
7
|
E(
|
|
8
8
|
"filtering",
|
|
9
9
|
(l) => {
|
|
@@ -4,7 +4,7 @@ import { registerFeature as m } from "@toolbox-web/grid/features/registry";
|
|
|
4
4
|
import { g as f } from "../chunks/grid-detail-panel-BZFcujsZ.js";
|
|
5
5
|
import { r as p, a as d } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
6
6
|
import { r as g } from "../chunks/post-mount-refresh-hooks-Dt7mPoZC.js";
|
|
7
|
-
import { a as y } from "../chunks/react-grid-adapter-
|
|
7
|
+
import { a as y } from "../chunks/react-grid-adapter-BhC9x425.js";
|
|
8
8
|
y((t, { trackPortal: e }) => {
|
|
9
9
|
const n = f(t);
|
|
10
10
|
if (n)
|
package/features/responsive.js
CHANGED
|
@@ -4,7 +4,7 @@ import { registerFeature as l } from "@toolbox-web/grid/features/registry";
|
|
|
4
4
|
import { g as p } from "../chunks/grid-responsive-card-CSZhDCoN.js";
|
|
5
5
|
import { r as v, a as f } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
6
6
|
import { r as R } from "../chunks/post-mount-refresh-hooks-Dt7mPoZC.js";
|
|
7
|
-
import { b as y } from "../chunks/react-grid-adapter-
|
|
7
|
+
import { b as y } from "../chunks/react-grid-adapter-BhC9x425.js";
|
|
8
8
|
y((e, { trackPortal: r }) => {
|
|
9
9
|
const t = p(e);
|
|
10
10
|
if (t)
|
package/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export { GridResponsiveCard, type GridResponsiveCardProps, type ResponsiveCardCo
|
|
|
8
8
|
export { GridToolButtons, type GridToolButtonsProps } from './lib/grid-tool-button';
|
|
9
9
|
export { GridToolPanel, type GridToolPanelProps, type ToolPanelContext } from './lib/grid-tool-panel';
|
|
10
10
|
export { GridToolbarContent, type GridToolbarContentProps } from './lib/grid-toolbar-content';
|
|
11
|
+
export { GridType } from './lib/grid-type';
|
|
12
|
+
export type { GridTypeProps } from './lib/grid-type';
|
|
11
13
|
export type { AllFeatureProps, ColumnGroupDefinition, FeatureProps, FilterConfig, GroupingColumnsConfig, GroupingRowsConfig, MasterDetailConfig, PanelRender, PanelSlot, PinnedRowSlot, PinnedRowsConfig, ReactColumnGroupDefinition, ReactFilterConfig, ReactGroupingColumnsConfig, ReactGroupingRowsConfig, ReactPanelRender, ReactPanelSlot, ReactPinnedRowSlot, ReactPinnedRowsConfig, ReactZonedPanelRender, ResponsivePluginConfig, ZonedPanelRender, } from './lib/feature-props';
|
|
12
14
|
export { applyColumnDefaults, hasColumnShorthands, normalizeColumns, parseColumnShorthand, } from './lib/column-shorthand';
|
|
13
15
|
export type { ColumnShorthand } from './lib/column-shorthand';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/grid-react/src/index.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