@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.
@@ -1 +1 @@
1
- {"version":3,"file":"master-detail.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/master-detail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,0CAA0C,CAAC"}
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 { g as s } from "../chunks/grid-detail-panel-BZFcujsZ.js";
3
- import { a as m } from "../chunks/portal-bridge-CvxNt40O.js";
4
- import { r as c } from "../chunks/post-mount-refresh-hooks-Dt7mPoZC.js";
5
- import { a as l } from "../chunks/react-grid-adapter-LBf2Mqhn.js";
6
- l((e, { trackPortal: n }) => {
7
- const t = s(e);
8
- if (t)
9
- return (a, i) => {
10
- const r = document.createElement("div");
11
- r.className = "react-detail-panel";
12
- const o = m(
13
- r,
14
- t({ row: a, rowIndex: i }),
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
- e
18
+ t
17
19
  );
18
- return n(o, r, !1), r;
20
+ return e(r, o, !1), o;
19
21
  };
20
22
  });
21
- c("masterDetail", ({ gridEl: e }) => {
22
- e.getPluginByName("masterDetail")?.refreshDetailRenderer?.();
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
- import { AggregationSlot, PanelZone, PinnedRowsConfig, PinnedRowsContext } from '@toolbox-web/grid/plugins/pinned-rows';
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;AAEhD,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EAEd,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAEvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,iBAAiB,KAAK,SAAS,CAAC;AACrE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AACD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,MAAM,EAAE,gBAAgB,GAAG,qBAAqB,EAAE,CAAC;CACpD;AACD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,eAAe,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG;IACrF,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,KAAK,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,SAAS,CAAC;QACpB,MAAM,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,SAAS,CAAC;KAC/C,CAAC,CAAC;CACJ,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;;;;;;;;;;;;;GAaG;AAGH,OAAO,uCAAuC,CAAC"}
1
+ {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/responsive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,uCAAuC,CAAC"}
@@ -1,27 +1,65 @@
1
1
  import "@toolbox-web/grid/features/responsive";
2
- import { g as a } from "../chunks/grid-responsive-card-CSZhDCoN.js";
3
- import { a as d } from "../chunks/portal-bridge-CvxNt40O.js";
4
- import { r as c } from "../chunks/post-mount-refresh-hooks-Dt7mPoZC.js";
5
- import { b as p } from "../chunks/react-grid-adapter-LBf2Mqhn.js";
6
- p((e, { trackPortal: s }) => {
7
- const r = a(e);
8
- if (r)
9
- return (n, t) => {
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 = d(
14
+ const i = f(
13
15
  o,
14
- r({ row: n, index: t }),
16
+ t({ row: n, index: s }),
15
17
  void 0,
16
18
  e
17
19
  );
18
- return s(i, o, !1), o;
20
+ return r(i, o, !1), o;
19
21
  };
20
22
  });
21
- c("responsive", ({ gridEl: e }) => {
22
- if (!e.querySelector("tbw-grid-responsive-card") || !a(e)) return;
23
- const r = e, n = r.getPluginByName("responsive");
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 t = r.__frameworkAdapter?.createResponsiveCardRenderer?.(e);
26
- t && n.setCardRenderer(t);
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,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACtG,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG9F,YAAY,EACV,eAAe,EACf,YAAY,EACZ,0BAA0B,EAC1B,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACvB,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,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AAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,KAAK,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGtG,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG3E,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG1E,OAAO,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGpF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAMvD,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,oBAAoB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAG5G,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC"}
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 Ce(t, r) {
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, (l) => {
23
- if (!we(l)) return;
24
- const n = l.type?.displayName;
25
- if (typeof n != "string") return;
26
- const c = q.get(n);
27
- if (!c) return;
28
- const f = c(l);
29
- f && Object.assign(r, f);
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 l = t.slice(r + 1).toLowerCase();
43
- if (Le.has(l)) {
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: l
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((l) => ({ ...r, ...l })) : t;
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, l) {
134
- const n = P(/* @__PURE__ */ new Map()), [, c] = Re((C) => C + 1, 0), f = P(!1), d = P(0), u = P(0), h = P(!1), g = P(!1), v = () => {
135
- f.current || (f.current = !0, queueMicrotask(() => {
136
- f.current = !1, !g.current && (oe(c), w());
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
- d.current || (d.current = requestAnimationFrame(() => {
140
- d.current = 0, !g.current && c();
139
+ l.current || (l.current = requestAnimationFrame(() => {
140
+ l.current = 0, !g.current && c();
141
141
  }));
142
- }, R = (C, o) => {
143
- console.error(`[grid-react] Portal "${C}" crashed; dropping.`, o), n.current.delete(C), w();
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
- l,
146
+ f,
147
147
  () => ({
148
- renderPortal(C, o, m) {
149
- g.current || (n.current.set(C, { container: o, element: m }), v());
148
+ renderPortal(y, o, m) {
149
+ g.current || (n.current.set(y, { container: o, element: m }), v());
150
150
  },
151
- removePortal(C, o) {
151
+ removePortal(y, o) {
152
152
  if (g.current) {
153
- n.current.delete(C);
153
+ n.current.delete(y);
154
154
  return;
155
155
  }
156
- n.current.delete(C) && (u.current > 0 ? h.current = !0 : o ? oe(c) : v());
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(), d.current && (cancelAnimationFrame(d.current), d.current = 0), v());
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 C = n.current;
177
+ const y = n.current;
178
178
  return () => {
179
- g.current = !0, d.current && (cancelAnimationFrame(d.current), d.current = 0), C.clear();
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 [C, { container: o, element: m }] of n.current) {
184
+ for (const [y, { container: o, element: m }] of n.current) {
185
185
  if (!o.isConnected) {
186
- (x ??= []).push(C);
186
+ (x ??= []).push(y);
187
187
  continue;
188
188
  }
189
189
  G.push(
190
190
  Ee(
191
- /* @__PURE__ */ S(He, { portalKey: C, onError: R, children: m }),
191
+ /* @__PURE__ */ S(He, { portalKey: y, onError: R, children: m }),
192
192
  o,
193
- C
193
+ y
194
194
  )
195
195
  );
196
196
  }
197
197
  if (x) {
198
- const C = x;
198
+ const y = x;
199
199
  queueMicrotask(() => {
200
- for (const o of C) n.current.delete(o);
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 l of t) {
211
- const n = Be[l];
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 "${l}" requires "${c}" to be enabled. Add the "${c}" prop to your DataGrid.`
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 [l, n] of Object.entries(t))
222
- n === void 0 || n === !1 || r.push(l);
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
- Ce("GridDetailPanel", (t) => {
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
- Ce("GridResponsiveCard", () => ({
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, l) {
251
+ const ur = le(function(r, f) {
252
252
  const {
253
253
  // Core props
254
254
  rows: n,
255
255
  gridConfig: c,
256
- columns: f,
257
- columnDefaults: d,
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: C,
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: y,
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), ye = F(() => te().map((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
- }, [ye]), Q = F(() => ke(C), [C]), X = F(() => {
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(() => f && Oe(Me(f), d), [f, d]), L = 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 y && i.push(e.on("rows-change", (s) => y(s.rows))), () => {
356
+ return C && i.push(e.on("rows-change", (s) => C(s.rows))), () => {
357
357
  i.forEach((s) => s());
358
358
  };
359
- }, [y]);
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
- l,
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: C })
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: l,
446
+ header: f,
447
447
  type: n,
448
448
  editable: c,
449
- sortable: f,
450
- resizable: d,
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: C
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
- ), y = typeof u == "number" ? `${u}px` : u, p = {
465
+ ), C = typeof u == "number" ? `${u}px` : u, p = {
466
466
  field: r,
467
467
  ref: m
468
468
  };
469
- return l !== void 0 && (p.header = l), n !== void 0 && (p.type = n), c !== void 0 && (p.editable = c), f !== void 0 && (p.sortable = f), d !== void 0 && (p.resizable = d), y !== void 0 && (p.width = y), 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), C && (p["data-has-format"] = "true"), G && (p["data-has-options"] = "true"), /* @__PURE__ */ S("tbw-grid-column", { ...p });
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: l }) {
472
- const n = ge(), c = t ?? `tbw-header-content-${n}`, f = T(N), [d, u] = O(null), h = P(null);
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 = f?.current;
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
- }, [f, c, r]), b(() => {
496
- if (!d) return;
497
- const g = f?.current ?? void 0;
498
- h.current = me(d, l, h.current ?? void 0, g);
499
- }, [l, d, f]), null;
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: l }) {
505
- const n = ge(), c = t ?? `tbw-toolbar-content-${n}`, f = T(N), [d, u] = O(null), h = P(null);
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 = f?.current;
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
- }, [f, c, r]), b(() => {
529
- if (!d) return;
530
- const g = f?.current ?? void 0;
531
- h.current = me(d, l, h.current ?? void 0, g);
532
- }, [l, d, f]), null;
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: l }) => {
535
- let n = l;
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), [l, n] = O(!1), [c, f] = O(null), d = P(null), u = D(() => t ? (d.current ??= document.querySelector(t), d.current) : r.current?.element ?? null, [t]);
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 y = document.querySelector(t);
546
- if (!y) return;
547
- if (d.current = y, await y.ready?.(), o) {
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 y.getConfig?.();
550
- o && p && f(p);
549
+ const p = await C.getConfig?.();
550
+ o && p && d(p);
551
551
  }
552
552
  } else {
553
- const y = r.current;
554
- if (!y) return;
555
- if (await y.ready?.(), o) {
553
+ const C = r.current;
554
+ if (!C) return;
555
+ if (await C.ready?.(), o) {
556
556
  n(!0);
557
- const p = await y.getConfig?.();
558
- o && p && f(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 y = r.current;
589
- y && await y.toggleGroup?.(o);
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 y = u();
601
- if (y) {
602
- y.registerStyles?.(o, m);
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
- ), C = D(() => c?.columns ? c.columns.filter((o) => !o.hidden) : [], [c]);
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: l,
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: C
631
+ getVisibleColumns: y
632
632
  };
633
633
  }
634
634
  function mr(t, r = {}) {
635
- const { open: l = !0, gridElement: n } = r, c = T(N);
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 = n ?? f.closest("tbw-grid, [data-tbw-grid]") ?? c?.current ?? null;
641
- if (d)
642
- return d.registerExternalFocusContainer?.(f), () => {
643
- d.unregisterExternalFocusContainer?.(f);
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
- }, [l, n, c, t]);
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
- Ce as registerChildFeatureDetector,
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,CAehH;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD"}
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"}
@@ -1,48 +1,150 @@
1
- import { ClipboardConfig, ColumnVirtualizationConfig, ContextMenuConfig, ExportConfig, FilterConfig, GroupingColumnsConfig, GroupingRowsConfig, MasterDetailConfig, MultiSortConfig, PinnedRowsConfig, PivotConfig, PrintConfig, ReorderConfig, ResponsivePluginConfig, RowDragDropConfig, RowReorderConfig, SelectionConfig, ServerSideConfig, StickyRowsConfig, TooltipConfig, TreeConfig, UndoRedoConfig, VisibilityConfig } from '@toolbox-web/grid/all';
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
- * React-specific filter config that allows React components as `filterPanelRenderer`.
9
+ * Filter config widened to accept a React render function as `filterPanelRenderer`.
9
10
  *
10
- * Extends the base FilterConfig to accept a React render function
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 ReactFilterConfig<TRow = unknown> = Omit<FilterConfig<TRow>, 'filterPanelRenderer'> & {
15
- filterPanelRenderer?: FilterConfig<TRow>['filterPanelRenderer'] | ((params: FilterPanelParams) => ReactNode);
15
+ export type FilterConfig<TRow = unknown> = Omit<CoreFilterConfig<TRow>, 'filterPanelRenderer'> & {
16
+ filterPanelRenderer?: CoreFilterConfig<TRow>['filterPanelRenderer'] | ((params: FilterPanelParams) => ReactNode);
16
17
  };
17
18
  /**
18
- * React-specific column group definition that allows React render functions as `renderer`.
19
+ * Column group definition widened to accept a React `renderer`.
19
20
  */
20
- export type ReactColumnGroupDefinition = Omit<ColumnGroupDefinition, 'renderer'> & {
21
- renderer?: ColumnGroupDefinition['renderer'] | ((...args: Parameters<NonNullable<ColumnGroupDefinition['renderer']>>) => ReactNode);
21
+ export type ColumnGroupDefinition = Omit<CoreColumnGroupDefinition, 'renderer'> & {
22
+ renderer?: CoreColumnGroupDefinition['renderer'] | ((...args: Parameters<NonNullable<CoreColumnGroupDefinition['renderer']>>) => ReactNode);
22
23
  };
23
24
  /**
24
- * React-specific grouping columns config that allows React components as `groupHeaderRenderer`
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 ReactGroupingColumnsConfig = Omit<GroupingColumnsConfig, 'groupHeaderRenderer' | 'columnGroups'> & {
31
- columnGroups?: ReactColumnGroupDefinition[];
32
- groupHeaderRenderer?: GroupingColumnsConfig['groupHeaderRenderer'] | ((...args: Parameters<NonNullable<GroupingColumnsConfig['groupHeaderRenderer']>>) => ReactNode);
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
- * React-specific grouping rows config that allows React components as `groupRowRenderer`.
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 ReactGroupingRowsConfig = Omit<GroupingRowsConfig, 'groupRowRenderer'> & {
44
- groupRowRenderer?: GroupingRowsConfig['groupRowRenderer'] | ((params: GroupRowRenderParams) => ReactNode);
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 | ReactFilterConfig<TRow>;
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 | ReactGroupingColumnsConfig;
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?: ReactGroupingRowsConfig;
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;AAGH,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,YAAY,EAEZ,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,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AE,WAAW,CAAC;IAEpB;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAM9B;;;;;;;;;;OAUG;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, } from '@toolbox-web/grid/features/registry';
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,EACL,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAE7C,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,aAAa,EAAE,SAAS,CAAC,CAAC"}
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;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CAAsC,CAAC;AACnG,YAAY,EAAE,aAAa,IAAI,uBAAuB,EAAE,MAAM,uCAAuC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolbox-web/grid-react",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "React adapter for @toolbox-web/grid data grid component",
5
5
  "type": "module",
6
6
  "main": "./index.js",