@toolbox-web/grid-react 1.8.0 → 1.8.2
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/features/master-detail.d.ts.map +1 -1
- package/features/master-detail.js +59 -17
- package/features/pinned-rows.d.ts +1 -46
- package/features/pinned-rows.d.ts.map +1 -1
- package/features/responsive.d.ts.map +1 -1
- package/features/responsive.js +54 -16
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +107 -107
- package/lib/child-feature-detector.d.ts.map +1 -1
- package/lib/feature-props.d.ts +137 -26
- package/lib/feature-props.d.ts.map +1 -1
- package/lib/feature-registry.d.ts +1 -1
- package/lib/feature-registry.d.ts.map +1 -1
- package/lib/internal/feature-augmentations.d.ts +26 -0
- package/lib/internal/feature-augmentations.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-detail.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/master-detail.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"master-detail.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/master-detail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,0CAA0C,CAAC"}
|
|
@@ -1,23 +1,65 @@
|
|
|
1
1
|
import "@toolbox-web/grid/features/master-detail";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const o =
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { MasterDetailPlugin as c } from "@toolbox-web/grid/plugins/master-detail";
|
|
3
|
+
import { registerFeature as m } from "@toolbox-web/grid/features/registry";
|
|
4
|
+
import { g as f } from "../chunks/grid-detail-panel-BZFcujsZ.js";
|
|
5
|
+
import { r as p, a as d } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
6
|
+
import { r as g } from "../chunks/post-mount-refresh-hooks-Dt7mPoZC.js";
|
|
7
|
+
import { a as y } from "../chunks/react-grid-adapter-LBf2Mqhn.js";
|
|
8
|
+
y((t, { trackPortal: e }) => {
|
|
9
|
+
const n = f(t);
|
|
10
|
+
if (n)
|
|
11
|
+
return (s, a) => {
|
|
12
|
+
const o = document.createElement("div");
|
|
13
|
+
o.className = "react-detail-panel";
|
|
14
|
+
const r = d(
|
|
15
|
+
o,
|
|
16
|
+
n({ row: s, rowIndex: a }),
|
|
15
17
|
void 0,
|
|
16
|
-
|
|
18
|
+
t
|
|
17
19
|
);
|
|
18
|
-
return
|
|
20
|
+
return e(r, o, !1), o;
|
|
19
21
|
};
|
|
20
22
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
g("masterDetail", ({ gridEl: t }) => {
|
|
24
|
+
t.getPluginByName("masterDetail")?.refreshDetailRenderer?.();
|
|
23
25
|
});
|
|
26
|
+
class h extends c {
|
|
27
|
+
#e;
|
|
28
|
+
constructor(e, n) {
|
|
29
|
+
super(e), this.#e = n;
|
|
30
|
+
}
|
|
31
|
+
detach() {
|
|
32
|
+
super.detach();
|
|
33
|
+
for (const e of this.#e)
|
|
34
|
+
try {
|
|
35
|
+
p(e, { sync: !1 });
|
|
36
|
+
} catch {
|
|
37
|
+
}
|
|
38
|
+
this.#e.clear();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
m(
|
|
42
|
+
"masterDetail",
|
|
43
|
+
(t) => {
|
|
44
|
+
const e = t == null || typeof t == "boolean" ? {} : t, n = e.detailRenderer;
|
|
45
|
+
if (typeof n != "function")
|
|
46
|
+
return new c(e);
|
|
47
|
+
const s = /* @__PURE__ */ new Set(), a = (o, l) => {
|
|
48
|
+
const r = n(
|
|
49
|
+
o,
|
|
50
|
+
l
|
|
51
|
+
);
|
|
52
|
+
if (r == null || r === !1) return document.createElement("div");
|
|
53
|
+
if (typeof r == "string" || r instanceof HTMLElement) return r;
|
|
54
|
+
const i = document.createElement("div");
|
|
55
|
+
i.className = "react-detail-panel";
|
|
56
|
+
const u = d(i, r);
|
|
57
|
+
return s.add(u), i;
|
|
58
|
+
};
|
|
59
|
+
return new h(
|
|
60
|
+
{ ...e, detailRenderer: a },
|
|
61
|
+
s
|
|
62
|
+
);
|
|
63
|
+
},
|
|
64
|
+
{ override: !0 }
|
|
65
|
+
);
|
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* React-typed render function for a pinned-row panel slot.
|
|
5
|
-
*
|
|
6
|
-
* @since 1.8.0
|
|
7
|
-
*/
|
|
8
|
-
export type ReactPanelRender = (ctx: PinnedRowsContext) => ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* React-typed zoned render entry.
|
|
11
|
-
*
|
|
12
|
-
* @since 1.8.0
|
|
13
|
-
*/
|
|
14
|
-
export interface ReactZonedPanelRender {
|
|
15
|
-
zone?: PanelZone;
|
|
16
|
-
render: ReactPanelRender;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* React-typed panel slot — same shape as vanilla PanelSlot but with ReactNode render returns.
|
|
20
|
-
*
|
|
21
|
-
* @since 1.8.0
|
|
22
|
-
*/
|
|
23
|
-
export interface ReactPanelSlot {
|
|
24
|
-
id?: string;
|
|
25
|
-
position?: 'top' | 'bottom';
|
|
26
|
-
render: ReactPanelRender | ReactZonedPanelRender[];
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* React-typed slot — either a panel slot or an aggregation slot.
|
|
30
|
-
*
|
|
31
|
-
* @since 1.8.0
|
|
32
|
-
*/
|
|
33
|
-
export type ReactPinnedRowSlot = ReactPanelSlot | AggregationSlot;
|
|
34
|
-
/**
|
|
35
|
-
* Per-feature shape of `pinnedRows` accepted by the React adapter.
|
|
36
|
-
*
|
|
37
|
-
* @since 1.8.0
|
|
38
|
-
*/
|
|
39
|
-
export type ReactPinnedRowsConfig = Omit<PinnedRowsConfig, 'slots' | 'customPanels'> & {
|
|
40
|
-
slots?: ReactPinnedRowSlot[];
|
|
41
|
-
customPanels?: Array<{
|
|
42
|
-
id: string;
|
|
43
|
-
position: PanelZone;
|
|
44
|
-
render: (ctx: PinnedRowsContext) => ReactNode;
|
|
45
|
-
}>;
|
|
46
|
-
};
|
|
1
|
+
export type { PanelRender, PanelSlot, PinnedRowSlot, PinnedRowsConfig, ReactPanelRender, ReactPanelSlot, ReactPinnedRowSlot, ReactPinnedRowsConfig, ReactZonedPanelRender, ZonedPanelRender, } from '../lib/feature-props';
|
|
47
2
|
//# sourceMappingURL=pinned-rows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/pinned-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,OAAO,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"pinned-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/pinned-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,OAAO,wCAAwC,CAAC;AAehD,YAAY,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,gBAAgB,EAEhB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/responsive.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/responsive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,uCAAuC,CAAC"}
|
package/features/responsive.js
CHANGED
|
@@ -1,27 +1,65 @@
|
|
|
1
1
|
import "@toolbox-web/grid/features/responsive";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { ResponsivePlugin as u } from "@toolbox-web/grid/plugins/responsive";
|
|
3
|
+
import { registerFeature as l } from "@toolbox-web/grid/features/registry";
|
|
4
|
+
import { g as p } from "../chunks/grid-responsive-card-CSZhDCoN.js";
|
|
5
|
+
import { r as v, a as f } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
6
|
+
import { r as R } from "../chunks/post-mount-refresh-hooks-Dt7mPoZC.js";
|
|
7
|
+
import { b as y } from "../chunks/react-grid-adapter-LBf2Mqhn.js";
|
|
8
|
+
y((e, { trackPortal: r }) => {
|
|
9
|
+
const t = p(e);
|
|
10
|
+
if (t)
|
|
11
|
+
return (n, s) => {
|
|
10
12
|
const o = document.createElement("div");
|
|
11
13
|
o.className = "react-responsive-card";
|
|
12
|
-
const i =
|
|
14
|
+
const i = f(
|
|
13
15
|
o,
|
|
14
|
-
|
|
16
|
+
t({ row: n, index: s }),
|
|
15
17
|
void 0,
|
|
16
18
|
e
|
|
17
19
|
);
|
|
18
|
-
return
|
|
20
|
+
return r(i, o, !1), o;
|
|
19
21
|
};
|
|
20
22
|
});
|
|
21
|
-
|
|
22
|
-
if (!e.querySelector("tbw-grid-responsive-card") || !
|
|
23
|
-
const
|
|
23
|
+
R("responsive", ({ gridEl: e }) => {
|
|
24
|
+
if (!e.querySelector("tbw-grid-responsive-card") || !p(e)) return;
|
|
25
|
+
const t = e, n = t.getPluginByName("responsive");
|
|
24
26
|
if (!n?.setCardRenderer) return;
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
+
const s = t.__frameworkAdapter?.createResponsiveCardRenderer?.(e);
|
|
28
|
+
s && n.setCardRenderer(s);
|
|
27
29
|
});
|
|
30
|
+
class h extends u {
|
|
31
|
+
#e;
|
|
32
|
+
constructor(r, t) {
|
|
33
|
+
super(r), this.#e = t;
|
|
34
|
+
}
|
|
35
|
+
detach() {
|
|
36
|
+
super.detach();
|
|
37
|
+
for (const r of this.#e)
|
|
38
|
+
try {
|
|
39
|
+
v(r, { sync: !1 });
|
|
40
|
+
} catch {
|
|
41
|
+
}
|
|
42
|
+
this.#e.clear();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
l(
|
|
46
|
+
"responsive",
|
|
47
|
+
(e) => {
|
|
48
|
+
const r = e == null || typeof e == "boolean" ? {} : e, t = r.cardRenderer;
|
|
49
|
+
if (typeof t != "function")
|
|
50
|
+
return new u(r);
|
|
51
|
+
const n = /* @__PURE__ */ new Set(), s = (o, d, i) => {
|
|
52
|
+
const a = t(o, d, i);
|
|
53
|
+
if (a instanceof HTMLElement) return a;
|
|
54
|
+
const c = document.createElement("div");
|
|
55
|
+
if (c.className = "react-responsive-card", a == null || a === !1) return c;
|
|
56
|
+
const m = f(c, a);
|
|
57
|
+
return n.add(m), c;
|
|
58
|
+
};
|
|
59
|
+
return new h(
|
|
60
|
+
{ ...r, cardRenderer: s },
|
|
61
|
+
n
|
|
62
|
+
);
|
|
63
|
+
},
|
|
64
|
+
{ override: !0 }
|
|
65
|
+
);
|
package/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ 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 type { AllFeatureProps, FeatureProps, ReactColumnGroupDefinition, ReactFilterConfig, ReactGroupingColumnsConfig, ReactGroupingRowsConfig, SSRProps, } from './lib/feature-props';
|
|
11
|
+
export type { AllFeatureProps, ColumnGroupDefinition, FeatureProps, FilterConfig, GroupingColumnsConfig, GroupingRowsConfig, MasterDetailConfig, PanelRender, PanelSlot, PinnedRowSlot, PinnedRowsConfig, ReactColumnGroupDefinition, ReactFilterConfig, ReactGroupingColumnsConfig, ReactGroupingRowsConfig, ReactPanelRender, ReactPanelSlot, ReactPinnedRowSlot, ReactPinnedRowsConfig, ReactZonedPanelRender, ResponsivePluginConfig, SSRProps, ZonedPanelRender, } from './lib/feature-props';
|
|
12
12
|
export { applyColumnDefaults, hasColumnShorthands, normalizeColumns, parseColumnShorthand, } from './lib/column-shorthand';
|
|
13
13
|
export type { ColumnShorthand } from './lib/column-shorthand';
|
|
14
14
|
export type { EventHandler, EventProps } from './lib/event-props';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/grid-react/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,YAAY,CAAC;AAGpB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC9G,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,KAAK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"}
|
package/index.js
CHANGED
|
@@ -14,19 +14,19 @@ import { G as N } from "./chunks/grid-element-context-BU3WvNtM.js";
|
|
|
14
14
|
import { G as Sr } from "./chunks/grid-detail-panel-BZFcujsZ.js";
|
|
15
15
|
import { G as Er } from "./chunks/grid-responsive-card-CSZhDCoN.js";
|
|
16
16
|
const q = /* @__PURE__ */ new Map();
|
|
17
|
-
function
|
|
17
|
+
function ye(t, r) {
|
|
18
18
|
q.set(t, r);
|
|
19
19
|
}
|
|
20
20
|
function ke(t) {
|
|
21
21
|
const r = {};
|
|
22
|
-
return q.size === 0 || ve.forEach(t, (
|
|
23
|
-
if (!we(
|
|
24
|
-
const n =
|
|
25
|
-
if (typeof
|
|
26
|
-
const
|
|
27
|
-
if (!
|
|
28
|
-
const
|
|
29
|
-
|
|
22
|
+
return q.size === 0 || ve.forEach(t, (f) => {
|
|
23
|
+
if (!we(f)) return;
|
|
24
|
+
const n = f.type, c = typeof n == "string" ? void 0 : n?.displayName;
|
|
25
|
+
if (typeof c != "string") return;
|
|
26
|
+
const d = q.get(c);
|
|
27
|
+
if (!d) return;
|
|
28
|
+
const l = d(f);
|
|
29
|
+
l && Object.assign(r, l);
|
|
30
30
|
}), r;
|
|
31
31
|
}
|
|
32
32
|
function Ie(t) {
|
|
@@ -39,13 +39,13 @@ const Le = /* @__PURE__ */ new Set(["string", "number", "boolean", "date", "date
|
|
|
39
39
|
function Ae(t) {
|
|
40
40
|
const r = t.lastIndexOf(":");
|
|
41
41
|
if (r > 0) {
|
|
42
|
-
const
|
|
43
|
-
if (Le.has(
|
|
42
|
+
const f = t.slice(r + 1).toLowerCase();
|
|
43
|
+
if (Le.has(f)) {
|
|
44
44
|
const n = t.slice(0, r);
|
|
45
45
|
return {
|
|
46
46
|
field: n,
|
|
47
47
|
header: ie(n),
|
|
48
|
-
type:
|
|
48
|
+
type: f
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -58,7 +58,7 @@ function Me(t) {
|
|
|
58
58
|
return t.map((r) => typeof r == "string" ? Ae(r) : r);
|
|
59
59
|
}
|
|
60
60
|
function Oe(t, r) {
|
|
61
|
-
return r ? t.map((
|
|
61
|
+
return r ? t.map((f) => ({ ...r, ...f })) : t;
|
|
62
62
|
}
|
|
63
63
|
function or(t) {
|
|
64
64
|
return t.some((r) => typeof r == "string");
|
|
@@ -130,30 +130,30 @@ class He extends be {
|
|
|
130
130
|
return this.state.failed ? null : this.props.children;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
const Ke = le(function(r,
|
|
134
|
-
const n = P(/* @__PURE__ */ new Map()), [, c] = Re((
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
const Ke = le(function(r, f) {
|
|
134
|
+
const n = P(/* @__PURE__ */ new Map()), [, c] = Re((y) => y + 1, 0), d = P(!1), l = P(0), u = P(0), h = P(!1), g = P(!1), v = () => {
|
|
135
|
+
d.current || (d.current = !0, queueMicrotask(() => {
|
|
136
|
+
d.current = !1, !g.current && (oe(c), w());
|
|
137
137
|
}));
|
|
138
138
|
}, w = () => {
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
l.current || (l.current = requestAnimationFrame(() => {
|
|
140
|
+
l.current = 0, !g.current && c();
|
|
141
141
|
}));
|
|
142
|
-
}, R = (
|
|
143
|
-
console.error(`[grid-react] Portal "${
|
|
142
|
+
}, R = (y, o) => {
|
|
143
|
+
console.error(`[grid-react] Portal "${y}" crashed; dropping.`, o), n.current.delete(y), w();
|
|
144
144
|
};
|
|
145
145
|
fe(
|
|
146
|
-
|
|
146
|
+
f,
|
|
147
147
|
() => ({
|
|
148
|
-
renderPortal(
|
|
149
|
-
g.current || (n.current.set(
|
|
148
|
+
renderPortal(y, o, m) {
|
|
149
|
+
g.current || (n.current.set(y, { container: o, element: m }), v());
|
|
150
150
|
},
|
|
151
|
-
removePortal(
|
|
151
|
+
removePortal(y, o) {
|
|
152
152
|
if (g.current) {
|
|
153
|
-
n.current.delete(
|
|
153
|
+
n.current.delete(y);
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
|
-
n.current.delete(
|
|
156
|
+
n.current.delete(y) && (u.current > 0 ? h.current = !0 : o ? oe(c) : v());
|
|
157
157
|
},
|
|
158
158
|
beginBatch() {
|
|
159
159
|
u.current++;
|
|
@@ -166,7 +166,7 @@ const Ke = le(function(r, l) {
|
|
|
166
166
|
n.current.clear();
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
|
-
n.current.size > 0 && (n.current.clear(),
|
|
169
|
+
n.current.size > 0 && (n.current.clear(), l.current && (cancelAnimationFrame(l.current), l.current = 0), v());
|
|
170
170
|
}
|
|
171
171
|
}),
|
|
172
172
|
// forceRender is stable (useReducer dispatch), refs are stable
|
|
@@ -174,30 +174,30 @@ const Ke = le(function(r, l) {
|
|
|
174
174
|
[]
|
|
175
175
|
), de(() => {
|
|
176
176
|
g.current = !1;
|
|
177
|
-
const
|
|
177
|
+
const y = n.current;
|
|
178
178
|
return () => {
|
|
179
|
-
g.current = !0,
|
|
179
|
+
g.current = !0, l.current && (cancelAnimationFrame(l.current), l.current = 0), y.clear();
|
|
180
180
|
};
|
|
181
181
|
}, []);
|
|
182
182
|
const G = [];
|
|
183
183
|
let x = null;
|
|
184
|
-
for (const [
|
|
184
|
+
for (const [y, { container: o, element: m }] of n.current) {
|
|
185
185
|
if (!o.isConnected) {
|
|
186
|
-
(x ??= []).push(
|
|
186
|
+
(x ??= []).push(y);
|
|
187
187
|
continue;
|
|
188
188
|
}
|
|
189
189
|
G.push(
|
|
190
190
|
Ee(
|
|
191
|
-
/* @__PURE__ */ S(He, { portalKey:
|
|
191
|
+
/* @__PURE__ */ S(He, { portalKey: y, onError: R, children: m }),
|
|
192
192
|
o,
|
|
193
|
-
|
|
193
|
+
y
|
|
194
194
|
)
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
if (x) {
|
|
198
|
-
const
|
|
198
|
+
const y = x;
|
|
199
199
|
queueMicrotask(() => {
|
|
200
|
-
for (const o of
|
|
200
|
+
for (const o of y) n.current.delete(o);
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
return /* @__PURE__ */ S(U, { children: G });
|
|
@@ -207,19 +207,19 @@ const Ke = le(function(r, l) {
|
|
|
207
207
|
};
|
|
208
208
|
function _e(t) {
|
|
209
209
|
const r = new Set(t);
|
|
210
|
-
for (const
|
|
211
|
-
const n = Be[
|
|
210
|
+
for (const f of t) {
|
|
211
|
+
const n = Be[f];
|
|
212
212
|
if (n)
|
|
213
213
|
for (const c of n)
|
|
214
214
|
r.has(c) || console.warn(
|
|
215
|
-
`[DataGrid] Feature "${
|
|
215
|
+
`[DataGrid] Feature "${f}" requires "${c}" to be enabled. Add the "${c}" prop to your DataGrid.`
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
function qe(t) {
|
|
220
220
|
const r = [];
|
|
221
|
-
for (const [
|
|
222
|
-
n === void 0 || n === !1 || r.push(
|
|
221
|
+
for (const [f, n] of Object.entries(t))
|
|
222
|
+
n === void 0 || n === !1 || r.push(f);
|
|
223
223
|
return _e(r), Te(t);
|
|
224
224
|
}
|
|
225
225
|
let se = !1, _ = null;
|
|
@@ -233,7 +233,7 @@ function Ue(t) {
|
|
|
233
233
|
let r = ce.get(t);
|
|
234
234
|
return r === void 0 && (r = ++Ve, ce.set(t, r)), r;
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
ye("GridDetailPanel", (t) => {
|
|
237
237
|
const r = t.props;
|
|
238
238
|
return {
|
|
239
239
|
masterDetail: {
|
|
@@ -243,18 +243,18 @@ Ce("GridDetailPanel", (t) => {
|
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
});
|
|
246
|
-
|
|
246
|
+
ye("GridResponsiveCard", () => ({
|
|
247
247
|
// GridResponsiveCard only carries cardRowHeight; breakpoint is set via the
|
|
248
248
|
// responsive prop. Enable the plugin with defaults — user can override.
|
|
249
249
|
responsive: !0
|
|
250
250
|
}));
|
|
251
|
-
const ur = le(function(r,
|
|
251
|
+
const ur = le(function(r, f) {
|
|
252
252
|
const {
|
|
253
253
|
// Core props
|
|
254
254
|
rows: n,
|
|
255
255
|
gridConfig: c,
|
|
256
|
-
columns:
|
|
257
|
-
columnDefaults:
|
|
256
|
+
columns: d,
|
|
257
|
+
columnDefaults: l,
|
|
258
258
|
fitMode: u,
|
|
259
259
|
sortable: h,
|
|
260
260
|
filterable: g,
|
|
@@ -263,16 +263,16 @@ const ur = le(function(r, l) {
|
|
|
263
263
|
customStyles: R,
|
|
264
264
|
className: G,
|
|
265
265
|
style: x,
|
|
266
|
-
children:
|
|
266
|
+
children: y,
|
|
267
267
|
// Plugin props
|
|
268
268
|
plugins: o,
|
|
269
269
|
// SSR mode (deprecated - see SSRProps)
|
|
270
270
|
ssr: m,
|
|
271
271
|
// Legacy event handlers
|
|
272
|
-
onRowsChange:
|
|
272
|
+
onRowsChange: C,
|
|
273
273
|
// Feature props and event props are in ...rest
|
|
274
274
|
...p
|
|
275
|
-
} = r, a = P(null), M = P(null), J = P(!1), Y = T(ze), j = T($e),
|
|
275
|
+
} = r, a = P(null), M = P(null), J = P(!1), Y = T(ze), j = T($e), Ce = F(() => te().map((e) => {
|
|
276
276
|
const i = p[e];
|
|
277
277
|
if (i === void 0) return "";
|
|
278
278
|
let s;
|
|
@@ -289,7 +289,7 @@ const ur = le(function(r, l) {
|
|
|
289
289
|
E !== void 0 && (e[s] = E);
|
|
290
290
|
}
|
|
291
291
|
return e;
|
|
292
|
-
}, [
|
|
292
|
+
}, [Ce]), Q = F(() => ke(y), [y]), X = F(() => {
|
|
293
293
|
const e = c?.features, i = {};
|
|
294
294
|
for (const [s, E] of Object.entries(Q))
|
|
295
295
|
e && s in e && e[s] !== void 0 && e[s] !== !1 || (i[s] = E);
|
|
@@ -300,7 +300,7 @@ const ur = le(function(r, l) {
|
|
|
300
300
|
return [...o, ...i];
|
|
301
301
|
}
|
|
302
302
|
return z;
|
|
303
|
-
}, [o, z]), I = F(() =>
|
|
303
|
+
}, [o, z]), I = F(() => d && Oe(Me(d), l), [d, l]), L = F(() => {
|
|
304
304
|
const e = Fe(c), i = {};
|
|
305
305
|
if (h !== void 0 && (i.sortable = h), g !== void 0 && (i.filterable = g), v !== void 0 && (i.selectable = v), j) {
|
|
306
306
|
const s = e?.icons || c?.icons || {};
|
|
@@ -353,10 +353,10 @@ const ur = le(function(r, l) {
|
|
|
353
353
|
const e = a.current;
|
|
354
354
|
if (!e) return;
|
|
355
355
|
const i = [];
|
|
356
|
-
return
|
|
356
|
+
return C && i.push(e.on("rows-change", (s) => C(s.rows))), () => {
|
|
357
357
|
i.forEach((s) => s());
|
|
358
358
|
};
|
|
359
|
-
}, [
|
|
359
|
+
}, [C]);
|
|
360
360
|
const ee = F(() => Object.keys(B).filter((e) => typeof p[e] == "function").sort().join("|"), [p]), re = P({});
|
|
361
361
|
for (const e of Object.keys(B))
|
|
362
362
|
re.current[e] = p[e];
|
|
@@ -374,7 +374,7 @@ const ur = le(function(r, l) {
|
|
|
374
374
|
i.forEach((s) => s());
|
|
375
375
|
};
|
|
376
376
|
}, [ee]), fe(
|
|
377
|
-
|
|
377
|
+
f,
|
|
378
378
|
() => ({
|
|
379
379
|
get element() {
|
|
380
380
|
return a.current;
|
|
@@ -436,18 +436,18 @@ const ur = le(function(r, l) {
|
|
|
436
436
|
class: G,
|
|
437
437
|
style: x
|
|
438
438
|
},
|
|
439
|
-
/* @__PURE__ */ S(N.Provider, { value: a, children:
|
|
439
|
+
/* @__PURE__ */ S(N.Provider, { value: a, children: y })
|
|
440
440
|
)
|
|
441
441
|
] });
|
|
442
442
|
});
|
|
443
443
|
function ar(t) {
|
|
444
444
|
const {
|
|
445
445
|
field: r,
|
|
446
|
-
header:
|
|
446
|
+
header: f,
|
|
447
447
|
type: n,
|
|
448
448
|
editable: c,
|
|
449
|
-
sortable:
|
|
450
|
-
resizable:
|
|
449
|
+
sortable: d,
|
|
450
|
+
resizable: l,
|
|
451
451
|
width: u,
|
|
452
452
|
minWidth: h,
|
|
453
453
|
hidden: g,
|
|
@@ -456,22 +456,22 @@ function ar(t) {
|
|
|
456
456
|
editor: R,
|
|
457
457
|
options: G,
|
|
458
458
|
multi: x,
|
|
459
|
-
format:
|
|
459
|
+
format: y
|
|
460
460
|
} = t, o = P(null), m = D(
|
|
461
461
|
(a) => {
|
|
462
462
|
o.current = a, a && (w && Se(a, w), R && xe(a, R));
|
|
463
463
|
},
|
|
464
464
|
[w, R]
|
|
465
|
-
),
|
|
465
|
+
), C = typeof u == "number" ? `${u}px` : u, p = {
|
|
466
466
|
field: r,
|
|
467
467
|
ref: m
|
|
468
468
|
};
|
|
469
|
-
return
|
|
469
|
+
return f !== void 0 && (p.header = f), n !== void 0 && (p.type = n), c !== void 0 && (p.editable = c), d !== void 0 && (p.sortable = d), l !== void 0 && (p.resizable = l), C !== void 0 && (p.width = C), h !== void 0 && (p["min-width"] = h), g !== void 0 && (p.hidden = g), v !== void 0 && (p["lock-visible"] = v), x !== void 0 && (p.multi = x), y && (p["data-has-format"] = "true"), G && (p["data-has-options"] = "true"), /* @__PURE__ */ S("tbw-grid-column", { ...p });
|
|
470
470
|
}
|
|
471
|
-
function lr({ id: t, order: r = 100, children:
|
|
472
|
-
const n = ge(), c = t ?? `tbw-header-content-${n}`,
|
|
471
|
+
function lr({ id: t, order: r = 100, children: f }) {
|
|
472
|
+
const n = ge(), c = t ?? `tbw-header-content-${n}`, d = T(N), [l, u] = O(null), h = P(null);
|
|
473
473
|
return b(() => {
|
|
474
|
-
const g =
|
|
474
|
+
const g = d?.current;
|
|
475
475
|
if (!g) return;
|
|
476
476
|
const v = h;
|
|
477
477
|
let w = !1;
|
|
@@ -492,19 +492,19 @@ function lr({ id: t, order: r = 100, children: l }) {
|
|
|
492
492
|
})(), () => {
|
|
493
493
|
w = !0, g.unregisterHeaderContent?.(c), v.current && (pe(v.current, { sync: !0 }), v.current = null), u(null);
|
|
494
494
|
};
|
|
495
|
-
}, [
|
|
496
|
-
if (!
|
|
497
|
-
const g =
|
|
498
|
-
h.current = me(
|
|
499
|
-
}, [l, d
|
|
495
|
+
}, [d, c, r]), b(() => {
|
|
496
|
+
if (!l) return;
|
|
497
|
+
const g = d?.current ?? void 0;
|
|
498
|
+
h.current = me(l, f, h.current ?? void 0, g);
|
|
499
|
+
}, [f, l, d]), null;
|
|
500
500
|
}
|
|
501
501
|
function fr({ children: t }) {
|
|
502
502
|
return /* @__PURE__ */ S("tbw-grid-tool-buttons", { children: t });
|
|
503
503
|
}
|
|
504
|
-
function dr({ id: t, order: r = 100, children:
|
|
505
|
-
const n = ge(), c = t ?? `tbw-toolbar-content-${n}`,
|
|
504
|
+
function dr({ id: t, order: r = 100, children: f }) {
|
|
505
|
+
const n = ge(), c = t ?? `tbw-toolbar-content-${n}`, d = T(N), [l, u] = O(null), h = P(null);
|
|
506
506
|
return b(() => {
|
|
507
|
-
const g =
|
|
507
|
+
const g = d?.current;
|
|
508
508
|
if (!g) return;
|
|
509
509
|
const v = h;
|
|
510
510
|
let w = !1;
|
|
@@ -525,37 +525,37 @@ function dr({ id: t, order: r = 100, children: l }) {
|
|
|
525
525
|
})(), () => {
|
|
526
526
|
w = !0, g.unregisterToolbarContent?.(c), v.current && (pe(v.current, { sync: !0 }), v.current = null), u(null);
|
|
527
527
|
};
|
|
528
|
-
}, [
|
|
529
|
-
if (!
|
|
530
|
-
const g =
|
|
531
|
-
h.current = me(
|
|
532
|
-
}, [l, d
|
|
528
|
+
}, [d, c, r]), b(() => {
|
|
529
|
+
if (!l) return;
|
|
530
|
+
const g = d?.current ?? void 0;
|
|
531
|
+
h.current = me(l, f, h.current ?? void 0, g);
|
|
532
|
+
}, [f, l, d]), null;
|
|
533
533
|
}
|
|
534
|
-
const gr = ({ icons: t, defaults: r, children:
|
|
535
|
-
let n =
|
|
534
|
+
const gr = ({ icons: t, defaults: r, children: f }) => {
|
|
535
|
+
let n = f;
|
|
536
536
|
return r && (n = /* @__PURE__ */ S(je, { defaults: r, children: n })), t && (n = /* @__PURE__ */ S(Ne, { icons: t, children: n })), /* @__PURE__ */ S(U, { children: n });
|
|
537
537
|
};
|
|
538
538
|
function pr(t) {
|
|
539
|
-
const r = P(null), [
|
|
539
|
+
const r = P(null), [f, n] = O(!1), [c, d] = O(null), l = P(null), u = D(() => t ? (l.current ??= document.querySelector(t), l.current) : r.current?.element ?? null, [t]);
|
|
540
540
|
b(() => {
|
|
541
541
|
let o = !0;
|
|
542
542
|
return (async () => {
|
|
543
543
|
try {
|
|
544
544
|
if (t) {
|
|
545
|
-
const
|
|
546
|
-
if (!
|
|
547
|
-
if (
|
|
545
|
+
const C = document.querySelector(t);
|
|
546
|
+
if (!C) return;
|
|
547
|
+
if (l.current = C, await C.ready?.(), o) {
|
|
548
548
|
n(!0);
|
|
549
|
-
const p = await
|
|
550
|
-
o && p &&
|
|
549
|
+
const p = await C.getConfig?.();
|
|
550
|
+
o && p && d(p);
|
|
551
551
|
}
|
|
552
552
|
} else {
|
|
553
|
-
const
|
|
554
|
-
if (!
|
|
555
|
-
if (await
|
|
553
|
+
const C = r.current;
|
|
554
|
+
if (!C) return;
|
|
555
|
+
if (await C.ready?.(), o) {
|
|
556
556
|
n(!0);
|
|
557
|
-
const p = await
|
|
558
|
-
o && p &&
|
|
557
|
+
const p = await C.getConfig?.();
|
|
558
|
+
o && p && d(p);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
} catch {
|
|
@@ -585,8 +585,8 @@ function pr(t) {
|
|
|
585
585
|
await m.toggleGroup?.(o);
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
588
|
-
const
|
|
589
|
-
|
|
588
|
+
const C = r.current;
|
|
589
|
+
C && await C.toggleGroup?.(o);
|
|
590
590
|
},
|
|
591
591
|
[u]
|
|
592
592
|
), w = D(
|
|
@@ -597,9 +597,9 @@ function pr(t) {
|
|
|
597
597
|
[u]
|
|
598
598
|
), G = D(
|
|
599
599
|
(o, m) => {
|
|
600
|
-
const
|
|
601
|
-
if (
|
|
602
|
-
|
|
600
|
+
const C = u();
|
|
601
|
+
if (C) {
|
|
602
|
+
C.registerStyles?.(o, m);
|
|
603
603
|
return;
|
|
604
604
|
}
|
|
605
605
|
r.current?.registerStyles?.(o, m);
|
|
@@ -615,11 +615,11 @@ function pr(t) {
|
|
|
615
615
|
r.current?.unregisterStyles?.(o);
|
|
616
616
|
},
|
|
617
617
|
[u]
|
|
618
|
-
),
|
|
618
|
+
), y = D(() => c?.columns ? c.columns.filter((o) => !o.hidden) : [], [c]);
|
|
619
619
|
return {
|
|
620
620
|
ref: r,
|
|
621
621
|
element: u(),
|
|
622
|
-
isReady:
|
|
622
|
+
isReady: f,
|
|
623
623
|
config: c,
|
|
624
624
|
getConfig: h,
|
|
625
625
|
forceLayout: g,
|
|
@@ -628,21 +628,21 @@ function pr(t) {
|
|
|
628
628
|
getPluginByName: R,
|
|
629
629
|
registerStyles: G,
|
|
630
630
|
unregisterStyles: x,
|
|
631
|
-
getVisibleColumns:
|
|
631
|
+
getVisibleColumns: y
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
function mr(t, r = {}) {
|
|
635
|
-
const { open:
|
|
635
|
+
const { open: f = !0, gridElement: n } = r, c = T(N);
|
|
636
636
|
b(() => {
|
|
637
|
-
if (!l) return;
|
|
638
|
-
const f = t.current;
|
|
639
637
|
if (!f) return;
|
|
640
|
-
const d =
|
|
641
|
-
if (d)
|
|
642
|
-
|
|
643
|
-
|
|
638
|
+
const d = t.current;
|
|
639
|
+
if (!d) return;
|
|
640
|
+
const l = n ?? d.closest("tbw-grid, [data-tbw-grid]") ?? c?.current ?? null;
|
|
641
|
+
if (l)
|
|
642
|
+
return l.registerExternalFocusContainer?.(d), () => {
|
|
643
|
+
l.unregisterExternalFocusContainer?.(d);
|
|
644
644
|
};
|
|
645
|
-
}, [
|
|
645
|
+
}, [f, n, c, t]);
|
|
646
646
|
}
|
|
647
647
|
export {
|
|
648
648
|
ur as DataGrid,
|
|
@@ -661,7 +661,7 @@ export {
|
|
|
661
661
|
or as hasColumnShorthands,
|
|
662
662
|
Me as normalizeColumns,
|
|
663
663
|
Ae as parseColumnShorthand,
|
|
664
|
-
|
|
664
|
+
ye as registerChildFeatureDetector,
|
|
665
665
|
Pr as registerEditorMountHook,
|
|
666
666
|
vr as registerFeaturePropKey,
|
|
667
667
|
Rr as registerPostMountRefresh,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"child-feature-detector.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/child-feature-detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAA4B,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpF;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CACtE,OAAO,EAAE,YAAY,KAClB,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAIpC;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9E,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,oBAAoB,CAAC,SAAS,CAAC,GACxC,IAAI,CAEN;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"child-feature-detector.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/child-feature-detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAA4B,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpF;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CACtE,OAAO,EAAE,YAAY,KAClB,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAIpC;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9E,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,oBAAoB,CAAC,SAAS,CAAC,GACxC,IAAI,CAEN;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAoBhH;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD"}
|
package/lib/feature-props.d.ts
CHANGED
|
@@ -1,48 +1,150 @@
|
|
|
1
|
-
import { ClipboardConfig, ColumnVirtualizationConfig, ContextMenuConfig,
|
|
1
|
+
import { ClipboardConfig, ColumnVirtualizationConfig, ContextMenuConfig, FilterConfig as CoreFilterConfig, GroupingColumnsConfig as CoreGroupingColumnsConfig, GroupingRowsConfig as CoreGroupingRowsConfig, MasterDetailConfig as CoreMasterDetailConfig, PinnedRowsConfig as CorePinnedRowsConfig, ResponsivePluginConfig as CoreResponsivePluginConfig, ExportConfig, MultiSortConfig, PivotConfig, PrintConfig, ReorderConfig, RowDragDropConfig, RowReorderConfig, SelectionConfig, ServerSideConfig, StickyRowsConfig, 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
|
-
import { ColumnGroupDefinition } from '@toolbox-web/grid/plugins/grouping-columns';
|
|
4
|
+
import { ColumnGroupDefinition as CoreColumnGroupDefinition } from '@toolbox-web/grid/plugins/grouping-columns';
|
|
5
5
|
import { GroupRowRenderParams } from '@toolbox-web/grid/plugins/grouping-rows';
|
|
6
|
+
import { AggregationSlot, PanelZone, PinnedRowsContext } from '@toolbox-web/grid/plugins/pinned-rows';
|
|
6
7
|
import { ReactNode } from 'react';
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* Filter config widened to accept a React render function as `filterPanelRenderer`.
|
|
9
10
|
*
|
|
10
|
-
* Extends the
|
|
11
|
+
* Extends the core `FilterConfig` so consumers can return a `ReactNode`
|
|
11
12
|
* `(params: FilterPanelParams) => ReactNode` in addition to the vanilla
|
|
12
13
|
* `(container: HTMLElement, params: FilterPanelParams) => void` signature.
|
|
13
14
|
*/
|
|
14
|
-
export type
|
|
15
|
-
filterPanelRenderer?:
|
|
15
|
+
export type FilterConfig<TRow = unknown> = Omit<CoreFilterConfig<TRow>, 'filterPanelRenderer'> & {
|
|
16
|
+
filterPanelRenderer?: CoreFilterConfig<TRow>['filterPanelRenderer'] | ((params: FilterPanelParams) => ReactNode);
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Column group definition widened to accept a React `renderer`.
|
|
19
20
|
*/
|
|
20
|
-
export type
|
|
21
|
-
renderer?:
|
|
21
|
+
export type ColumnGroupDefinition = Omit<CoreColumnGroupDefinition, 'renderer'> & {
|
|
22
|
+
renderer?: CoreColumnGroupDefinition['renderer'] | ((...args: Parameters<NonNullable<CoreColumnGroupDefinition['renderer']>>) => ReactNode);
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
* and per-group `renderer` in `columnGroups`.
|
|
26
|
-
*
|
|
27
|
-
* Extends the base GroupingColumnsConfig to accept a React render function
|
|
28
|
-
* returning `ReactNode` instead of only `HTMLElement | string | void`.
|
|
25
|
+
* Grouping-columns config widened to accept React render functions for
|
|
26
|
+
* `groupHeaderRenderer` and per-group `renderer` entries in `columnGroups`.
|
|
29
27
|
*/
|
|
30
|
-
export type
|
|
31
|
-
columnGroups?:
|
|
32
|
-
groupHeaderRenderer?:
|
|
28
|
+
export type GroupingColumnsConfig = Omit<CoreGroupingColumnsConfig, 'groupHeaderRenderer' | 'columnGroups'> & {
|
|
29
|
+
columnGroups?: ColumnGroupDefinition[];
|
|
30
|
+
groupHeaderRenderer?: CoreGroupingColumnsConfig['groupHeaderRenderer'] | ((...args: Parameters<NonNullable<CoreGroupingColumnsConfig['groupHeaderRenderer']>>) => ReactNode);
|
|
33
31
|
};
|
|
34
32
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* Extends the base GroupingRowsConfig to accept a React render function
|
|
33
|
+
* Grouping-rows config widened to accept a React `groupRowRenderer`
|
|
38
34
|
* `(params: GroupRowRenderParams) => ReactNode` in addition to the vanilla
|
|
39
35
|
* `(params) => HTMLElement | string | void` signature.
|
|
40
36
|
*
|
|
41
37
|
* @since 1.8.0
|
|
42
38
|
*/
|
|
43
|
-
export type
|
|
44
|
-
groupRowRenderer?:
|
|
39
|
+
export type GroupingRowsConfig = Omit<CoreGroupingRowsConfig, 'groupRowRenderer'> & {
|
|
40
|
+
groupRowRenderer?: CoreGroupingRowsConfig['groupRowRenderer'] | ((params: GroupRowRenderParams) => ReactNode);
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* React-typed render function for a pinned-row panel slot.
|
|
44
|
+
*
|
|
45
|
+
* Mirrors the vanilla `PanelRender` signature but returns a `ReactNode`
|
|
46
|
+
* instead of `HTMLElement | null`. The React adapter (see
|
|
47
|
+
* `features/pinned-rows.ts`) wraps the returned node in a portal so the
|
|
48
|
+
* pinned-rows plugin can keep its host-element reference stable across
|
|
49
|
+
* grid re-renders.
|
|
50
|
+
*
|
|
51
|
+
* @since 1.8.2
|
|
52
|
+
*/
|
|
53
|
+
export type PanelRender = (ctx: PinnedRowsContext) => ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* React-typed zoned panel render entry.
|
|
56
|
+
*
|
|
57
|
+
* @since 1.8.2
|
|
58
|
+
*/
|
|
59
|
+
export interface ZonedPanelRender {
|
|
60
|
+
zone?: PanelZone;
|
|
61
|
+
render: PanelRender;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* React-typed panel slot — same shape as the vanilla `PanelSlot` but with
|
|
65
|
+
* `ReactNode` render returns.
|
|
66
|
+
*
|
|
67
|
+
* @since 1.8.2
|
|
68
|
+
*/
|
|
69
|
+
export interface PanelSlot {
|
|
70
|
+
id?: string;
|
|
71
|
+
position?: 'top' | 'bottom';
|
|
72
|
+
render: PanelRender | ZonedPanelRender[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* React-typed pinned-rows slot — either a panel slot (with React renderers)
|
|
76
|
+
* or a passthrough aggregation slot.
|
|
77
|
+
*
|
|
78
|
+
* @since 1.8.2
|
|
79
|
+
*/
|
|
80
|
+
export type PinnedRowSlot = PanelSlot | AggregationSlot;
|
|
81
|
+
/**
|
|
82
|
+
* Pinned-rows config widened to accept React components as panel
|
|
83
|
+
* `render` functions inside `slots[]` and `customPanels[]`.
|
|
84
|
+
*
|
|
85
|
+
* Extends the core `PinnedRowsConfig` to accept React render functions
|
|
86
|
+
* returning `ReactNode` instead of only `HTMLElement | null`. Bridging to
|
|
87
|
+
* vanilla DOM is handled by the side-effect import
|
|
88
|
+
* `@toolbox-web/grid-react/features/pinned-rows`.
|
|
89
|
+
*
|
|
90
|
+
* @since 1.8.2
|
|
91
|
+
*/
|
|
92
|
+
export type PinnedRowsConfig = Omit<CorePinnedRowsConfig, 'slots' | 'customPanels'> & {
|
|
93
|
+
slots?: PinnedRowSlot[];
|
|
94
|
+
customPanels?: Array<{
|
|
95
|
+
id: string;
|
|
96
|
+
position: PanelZone;
|
|
97
|
+
render: (ctx: PinnedRowsContext) => ReactNode;
|
|
98
|
+
}>;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Master-detail config widened to accept a React `detailRenderer`
|
|
102
|
+
* `(row, rowIndex) => ReactNode` in addition to the vanilla
|
|
103
|
+
* `(row, rowIndex) => HTMLElement | string` signature. Bridging to vanilla
|
|
104
|
+
* DOM is handled by the side-effect import
|
|
105
|
+
* `@toolbox-web/grid-react/features/master-detail`.
|
|
106
|
+
*
|
|
107
|
+
* Re-exported under the same name as the core type so React users see a
|
|
108
|
+
* single canonical `MasterDetailConfig` from `@toolbox-web/grid-react`.
|
|
109
|
+
*
|
|
110
|
+
* @since 1.8.2
|
|
111
|
+
*/
|
|
112
|
+
export type MasterDetailConfig = Omit<CoreMasterDetailConfig, 'detailRenderer'> & {
|
|
113
|
+
detailRenderer?: CoreMasterDetailConfig['detailRenderer'] | ((row: Record<string, unknown>, rowIndex: number) => ReactNode);
|
|
45
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Responsive config widened to accept a React `cardRenderer`
|
|
117
|
+
* `(row, rowIndex, column?) => ReactNode` in addition to the vanilla
|
|
118
|
+
* `(row, rowIndex, column?) => HTMLElement` signature. Bridging to vanilla
|
|
119
|
+
* DOM is handled by the side-effect import
|
|
120
|
+
* `@toolbox-web/grid-react/features/responsive`.
|
|
121
|
+
*
|
|
122
|
+
* Re-exported under the same name as the core type so React users see a
|
|
123
|
+
* single canonical `ResponsivePluginConfig` from `@toolbox-web/grid-react`.
|
|
124
|
+
*
|
|
125
|
+
* @since 1.8.2
|
|
126
|
+
*/
|
|
127
|
+
export type ResponsivePluginConfig<TRow = unknown> = Omit<CoreResponsivePluginConfig<TRow>, 'cardRenderer'> & {
|
|
128
|
+
cardRenderer?: CoreResponsivePluginConfig<TRow>['cardRenderer'] | ((row: TRow, rowIndex: number, column?: Parameters<NonNullable<CoreResponsivePluginConfig<TRow>['cardRenderer']>>[2]) => ReactNode);
|
|
129
|
+
};
|
|
130
|
+
/** @deprecated Use {@link FilterConfig} from `@toolbox-web/grid-react` instead. */
|
|
131
|
+
export type ReactFilterConfig<TRow = unknown> = FilterConfig<TRow>;
|
|
132
|
+
/** @deprecated Use {@link ColumnGroupDefinition} from `@toolbox-web/grid-react` instead. */
|
|
133
|
+
export type ReactColumnGroupDefinition = ColumnGroupDefinition;
|
|
134
|
+
/** @deprecated Use {@link GroupingColumnsConfig} from `@toolbox-web/grid-react` instead. */
|
|
135
|
+
export type ReactGroupingColumnsConfig = GroupingColumnsConfig;
|
|
136
|
+
/** @deprecated Use {@link GroupingRowsConfig} from `@toolbox-web/grid-react` instead. */
|
|
137
|
+
export type ReactGroupingRowsConfig = GroupingRowsConfig;
|
|
138
|
+
/** @deprecated Use {@link PanelRender} from `@toolbox-web/grid-react` instead. */
|
|
139
|
+
export type ReactPanelRender = PanelRender;
|
|
140
|
+
/** @deprecated Use {@link ZonedPanelRender} from `@toolbox-web/grid-react` instead. */
|
|
141
|
+
export type ReactZonedPanelRender = ZonedPanelRender;
|
|
142
|
+
/** @deprecated Use {@link PanelSlot} from `@toolbox-web/grid-react` instead. */
|
|
143
|
+
export type ReactPanelSlot = PanelSlot;
|
|
144
|
+
/** @deprecated Use {@link PinnedRowSlot} from `@toolbox-web/grid-react` instead. */
|
|
145
|
+
export type ReactPinnedRowSlot = PinnedRowSlot;
|
|
146
|
+
/** @deprecated Use {@link PinnedRowsConfig} from `@toolbox-web/grid-react` instead. */
|
|
147
|
+
export type ReactPinnedRowsConfig = PinnedRowsConfig;
|
|
46
148
|
/**
|
|
47
149
|
* Feature props for declarative plugin configuration.
|
|
48
150
|
* Each prop lazily loads its corresponding plugin when used.
|
|
@@ -143,7 +245,7 @@ export interface FeatureProps<TRow = unknown> {
|
|
|
143
245
|
* <DataGrid filtering={{ debounceMs: 200 }} />
|
|
144
246
|
* ```
|
|
145
247
|
*/
|
|
146
|
-
filtering?: boolean |
|
|
248
|
+
filtering?: boolean | FilterConfig<TRow>;
|
|
147
249
|
/**
|
|
148
250
|
* Enable column drag-to-reorder.
|
|
149
251
|
*
|
|
@@ -196,7 +298,7 @@ export interface FeatureProps<TRow = unknown> {
|
|
|
196
298
|
* }} />
|
|
197
299
|
* ```
|
|
198
300
|
*/
|
|
199
|
-
groupingColumns?: boolean |
|
|
301
|
+
groupingColumns?: boolean | GroupingColumnsConfig;
|
|
200
302
|
/**
|
|
201
303
|
* Enable horizontal column virtualization for wide grids.
|
|
202
304
|
*
|
|
@@ -267,7 +369,7 @@ export interface FeatureProps<TRow = unknown> {
|
|
|
267
369
|
* }} />
|
|
268
370
|
* ```
|
|
269
371
|
*/
|
|
270
|
-
groupingRows?:
|
|
372
|
+
groupingRows?: GroupingRowsConfig;
|
|
271
373
|
/**
|
|
272
374
|
* Enable pinned rows (aggregation/status bar).
|
|
273
375
|
*
|
|
@@ -279,6 +381,15 @@ export interface FeatureProps<TRow = unknown> {
|
|
|
279
381
|
* bottom: [{ type: 'aggregation', aggregator: 'sum' }],
|
|
280
382
|
* }} />
|
|
281
383
|
* ```
|
|
384
|
+
*
|
|
385
|
+
* @example React JSX in panel slots
|
|
386
|
+
* ```tsx
|
|
387
|
+
* <DataGrid pinnedRows={{
|
|
388
|
+
* slots: [
|
|
389
|
+
* { id: 'add-row', position: 'bottom', render: () => <AddRowPanel /> },
|
|
390
|
+
* ],
|
|
391
|
+
* }} />
|
|
392
|
+
* ```
|
|
282
393
|
*/
|
|
283
394
|
pinnedRows?: boolean | PinnedRowsConfig;
|
|
284
395
|
/**
|
|
@@ -340,7 +451,7 @@ export interface FeatureProps<TRow = unknown> {
|
|
|
340
451
|
* }} />
|
|
341
452
|
* ```
|
|
342
453
|
*/
|
|
343
|
-
responsive?: boolean | ResponsivePluginConfig
|
|
454
|
+
responsive?: boolean | ResponsivePluginConfig<TRow>;
|
|
344
455
|
/**
|
|
345
456
|
* Enable undo/redo for cell edits.
|
|
346
457
|
* Requires editing to be enabled (will be auto-added).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-props.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/feature-props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3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AUG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,IAAI,GAAG,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC"}
|
|
@@ -16,7 +16,7 @@ import { FeatureConfig } from '@toolbox-web/grid/all';
|
|
|
16
16
|
* <DataGrid selection="range" filtering={{ debounceMs: 200 }} />
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export { clearFeatureRegistry, createPluginFromFeature, getFeatureFactory, getRegisteredFeatures, isFeatureRegistered, registerFeature
|
|
19
|
+
export { clearFeatureRegistry, createPluginFromFeature, getFeatureFactory, getRegisteredFeatures, isFeatureRegistered, registerFeature } from '@toolbox-web/grid/features/registry';
|
|
20
20
|
export type { PluginFactory } from '@toolbox-web/grid/features/registry';
|
|
21
21
|
export type FeatureName = Exclude<keyof FeatureConfig, '__brand'>;
|
|
22
22
|
//# sourceMappingURL=feature-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-registry.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/feature-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"feature-registry.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/lib/feature-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACH,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EAClB,MAAM,qCAAqC,CAAC;AAE7C,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAQ3D,OAAO,kCAAkC,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,aAAa,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type { _Augmentation as _ClipboardAugmentation } from '@toolbox-web/grid/features/clipboard';
|
|
2
|
+
export type { _Augmentation as _ColumnVirtualizationAugmentation } from '@toolbox-web/grid/features/column-virtualization';
|
|
3
|
+
export type { _Augmentation as _ContextMenuAugmentation } from '@toolbox-web/grid/features/context-menu';
|
|
4
|
+
export type { _Augmentation as _EditingAugmentation } from '@toolbox-web/grid/features/editing';
|
|
5
|
+
export type { _Augmentation as _ExportAugmentation } from '@toolbox-web/grid/features/export';
|
|
6
|
+
export type { _Augmentation as _FilteringAugmentation } from '@toolbox-web/grid/features/filtering';
|
|
7
|
+
export type { _Augmentation as _GroupingColumnsAugmentation } from '@toolbox-web/grid/features/grouping-columns';
|
|
8
|
+
export type { _Augmentation as _GroupingRowsAugmentation } from '@toolbox-web/grid/features/grouping-rows';
|
|
9
|
+
export type { _Augmentation as _MasterDetailAugmentation } from '@toolbox-web/grid/features/master-detail';
|
|
10
|
+
export type { _Augmentation as _MultiSortAugmentation } from '@toolbox-web/grid/features/multi-sort';
|
|
11
|
+
export type { _Augmentation as _PinnedColumnsAugmentation } from '@toolbox-web/grid/features/pinned-columns';
|
|
12
|
+
export type { _Augmentation as _PinnedRowsAugmentation } from '@toolbox-web/grid/features/pinned-rows';
|
|
13
|
+
export type { _Augmentation as _PivotAugmentation } from '@toolbox-web/grid/features/pivot';
|
|
14
|
+
export type { _Augmentation as _PrintAugmentation } from '@toolbox-web/grid/features/print';
|
|
15
|
+
export type { _Augmentation as _ReorderColumnsAugmentation } from '@toolbox-web/grid/features/reorder-columns';
|
|
16
|
+
export type { _Augmentation as _ReorderRowsAugmentation } from '@toolbox-web/grid/features/reorder-rows';
|
|
17
|
+
export type { _Augmentation as _ResponsiveAugmentation } from '@toolbox-web/grid/features/responsive';
|
|
18
|
+
export type { _Augmentation as _RowDragDropAugmentation } from '@toolbox-web/grid/features/row-drag-drop';
|
|
19
|
+
export type { _Augmentation as _SelectionAugmentation } from '@toolbox-web/grid/features/selection';
|
|
20
|
+
export type { _Augmentation as _ServerSideAugmentation } from '@toolbox-web/grid/features/server-side';
|
|
21
|
+
export type { _Augmentation as _StickyRowsAugmentation } from '@toolbox-web/grid/features/sticky-rows';
|
|
22
|
+
export type { _Augmentation as _TooltipAugmentation } from '@toolbox-web/grid/features/tooltip';
|
|
23
|
+
export type { _Augmentation as _TreeAugmentation } from '@toolbox-web/grid/features/tree';
|
|
24
|
+
export type { _Augmentation as _UndoRedoAugmentation } from '@toolbox-web/grid/features/undo-redo';
|
|
25
|
+
export type { _Augmentation as _VisibilityAugmentation } from '@toolbox-web/grid/features/visibility';
|
|
26
|
+
//# sourceMappingURL=feature-augmentations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-augmentations.d.ts","sourceRoot":"","sources":["../../../../../libs/grid-react/src/lib/internal/feature-augmentations.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACpG,YAAY,EAAE,aAAa,IAAI,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAC3H,YAAY,EAAE,aAAa,IAAI,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACzG,YAAY,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAChG,YAAY,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC9F,YAAY,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACpG,YAAY,EAAE,aAAa,IAAI,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AACjH,YAAY,EAAE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