@toolbox-web/grid-react 1.6.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -10
- package/chunks/{grid-detail-panel-CR7YUhdN.js → grid-detail-panel-BZFcujsZ.js} +10 -10
- package/chunks/grid-responsive-card-CSZhDCoN.js +45 -0
- package/chunks/portal-bridge-CvxNt40O.js +68 -0
- package/chunks/post-mount-refresh-hooks-Dt7mPoZC.js +12 -0
- package/chunks/{react-column-config-Dz234dN8.js → react-column-config-BOe_PgL1.js} +28 -28
- package/chunks/{react-grid-adapter-KD5roD6F.js → react-grid-adapter-LBf2Mqhn.js} +108 -69
- package/features/editing.js +1 -1
- package/features/filtering.js +3 -3
- package/features/grouping-columns.js +1 -1
- package/features/grouping-rows.js +1 -1
- package/features/index.d.ts.map +1 -1
- package/features/index.js +1 -0
- package/features/master-detail.js +17 -13
- package/features/pinned-rows.d.ts +46 -0
- package/features/pinned-rows.d.ts.map +1 -1
- package/features/pinned-rows.js +49 -20
- package/features/reorder-rows.d.ts.map +1 -1
- package/features/responsive.js +22 -14
- package/features/row-drag-drop.js +1 -0
- package/features/sticky-rows.d.ts +1 -0
- package/features/sticky-rows.d.ts.map +1 -0
- package/features/sticky-rows.js +1 -0
- package/index.d.ts +5 -1
- package/index.d.ts.map +1 -1
- package/index.js +467 -408
- package/lib/child-feature-detector.d.ts +33 -0
- package/lib/child-feature-detector.d.ts.map +1 -0
- package/lib/data-grid.d.ts.map +1 -1
- package/lib/event-props.d.ts +22 -1
- package/lib/event-props.d.ts.map +1 -1
- package/lib/feature-prop-keys.d.ts +27 -0
- package/lib/feature-prop-keys.d.ts.map +1 -0
- package/lib/feature-props.d.ts +52 -3
- package/lib/feature-props.d.ts.map +1 -1
- package/lib/feature-registry.d.ts +3 -3
- package/lib/feature-registry.d.ts.map +1 -1
- package/lib/grid-header-content.d.ts +41 -0
- package/lib/grid-header-content.d.ts.map +1 -0
- package/lib/grid-toolbar-content.d.ts +44 -0
- package/lib/grid-toolbar-content.d.ts.map +1 -0
- package/lib/post-mount-refresh-hooks.d.ts +49 -0
- package/lib/post-mount-refresh-hooks.d.ts.map +1 -0
- package/lib/react-grid-adapter.d.ts +6 -0
- package/lib/react-grid-adapter.d.ts.map +1 -1
- package/lib/use-grid-overlay.d.ts +1 -1
- package/package.json +1 -1
- package/chunks/grid-responsive-card-BB28Zl2O.js +0 -45
- package/chunks/portal-bridge-BydpO5wl.js +0 -68
package/features/filtering.js
CHANGED
|
@@ -2,8 +2,8 @@ import { FilteringPlugin as F } from "@toolbox-web/grid/plugins/filtering";
|
|
|
2
2
|
import { useContext as h, useCallback as n } from "react";
|
|
3
3
|
import { registerFeature as E } from "@toolbox-web/grid/features/registry";
|
|
4
4
|
import { G as k } from "../chunks/grid-element-context-BU3WvNtM.js";
|
|
5
|
-
import { r as v, a as m } from "../chunks/portal-bridge-
|
|
6
|
-
import { r as C } from "../chunks/react-grid-adapter-
|
|
5
|
+
import { r as v, a as m } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
6
|
+
import { r as C } from "../chunks/react-grid-adapter-LBf2Mqhn.js";
|
|
7
7
|
E(
|
|
8
8
|
"filtering",
|
|
9
9
|
(l) => {
|
|
@@ -30,7 +30,7 @@ C((l, o, { trackPortal: e }) => {
|
|
|
30
30
|
return (s, a) => {
|
|
31
31
|
const g = document.createElement("div");
|
|
32
32
|
g.style.display = "contents";
|
|
33
|
-
const c = s.closest("tbw-grid") ?? o, d = m(g, f(a), void 0, c);
|
|
33
|
+
const c = s.closest("tbw-grid, [data-tbw-grid]") ?? o, d = m(g, f(a), void 0, c);
|
|
34
34
|
e(d, g, !1), s.appendChild(g);
|
|
35
35
|
};
|
|
36
36
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GroupingColumnsPlugin as t } from "@toolbox-web/grid/plugins/grouping-columns";
|
|
2
2
|
import { registerFeature as c } from "@toolbox-web/grid/features/registry";
|
|
3
|
-
import { c as p } from "../chunks/portal-bridge-
|
|
3
|
+
import { c as p } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
4
4
|
function u(n) {
|
|
5
5
|
const r = p(n);
|
|
6
6
|
return (o) => r(o) ?? document.createElement("div");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GroupingRowsPlugin as o } from "@toolbox-web/grid/plugins/grouping-rows";
|
|
2
2
|
import { registerFeature as c } from "@toolbox-web/grid/features/registry";
|
|
3
|
-
import { c as p } from "../chunks/portal-bridge-
|
|
3
|
+
import { c as p } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
4
4
|
c(
|
|
5
5
|
"groupingRows",
|
|
6
6
|
(e) => {
|
package/features/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,aAAa,CAAC;AACrB,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AACxB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AACrB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,SAAS,CAAC;AACjB,OAAO,SAAS,CAAC;AACjB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,gBAAgB,CAAC;AACxB,OAAO,cAAc,CAAC;AACtB,OAAO,iBAAiB,CAAC;AACzB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,WAAW,CAAC;AACnB,OAAO,QAAQ,CAAC;AAChB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,aAAa,CAAC;AACrB,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AACxB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AACrB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,SAAS,CAAC;AACjB,OAAO,SAAS,CAAC;AACjB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,gBAAgB,CAAC;AACxB,OAAO,cAAc,CAAC;AACtB,OAAO,iBAAiB,CAAC;AACzB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,eAAe,CAAC;AACvB,OAAO,WAAW,CAAC;AACnB,OAAO,QAAQ,CAAC;AAChB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC"}
|
package/features/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import "./responsive.js";
|
|
|
20
20
|
import "@toolbox-web/grid/features/row-drag-drop";
|
|
21
21
|
import "@toolbox-web/grid/features/selection";
|
|
22
22
|
import "@toolbox-web/grid/features/server-side";
|
|
23
|
+
import "@toolbox-web/grid/features/sticky-rows";
|
|
23
24
|
import "@toolbox-web/grid/features/tooltip";
|
|
24
25
|
import "@toolbox-web/grid/features/tree";
|
|
25
26
|
import "@toolbox-web/grid/features/undo-redo";
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import "@toolbox-web/grid/features/master-detail";
|
|
2
|
-
import { g as
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
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);
|
|
7
8
|
if (t)
|
|
8
|
-
return (
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
t({ row:
|
|
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 }),
|
|
14
15
|
void 0,
|
|
15
|
-
|
|
16
|
+
e
|
|
16
17
|
);
|
|
17
|
-
return n(
|
|
18
|
+
return n(o, r, !1), r;
|
|
18
19
|
};
|
|
19
20
|
});
|
|
21
|
+
c("masterDetail", ({ gridEl: e }) => {
|
|
22
|
+
e.getPluginByName("masterDetail")?.refreshDetailRenderer?.();
|
|
23
|
+
});
|
|
@@ -1 +1,47 @@
|
|
|
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
47
|
//# 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,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"}
|
package/features/pinned-rows.js
CHANGED
|
@@ -1,33 +1,62 @@
|
|
|
1
1
|
import "@toolbox-web/grid/features/pinned-rows";
|
|
2
|
-
import { PinnedRowsPlugin as
|
|
2
|
+
import { PinnedRowsPlugin as u } from "@toolbox-web/grid/plugins/pinned-rows";
|
|
3
3
|
import { registerFeature as m } from "@toolbox-web/grid/features/registry";
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
6
|
-
|
|
4
|
+
import { a as p, r as y } from "../chunks/portal-bridge-CvxNt40O.js";
|
|
5
|
+
function c(e, n) {
|
|
6
|
+
let r = null, t = !1;
|
|
7
|
+
return (a) => {
|
|
8
|
+
const o = e(a);
|
|
9
|
+
if (o == null || o === !1) return null;
|
|
10
|
+
if (o instanceof HTMLElement) return o;
|
|
11
|
+
if (!r) {
|
|
12
|
+
const s = document.createElement("div");
|
|
13
|
+
s.style.display = "contents", r = { host: s, portalKey: null };
|
|
14
|
+
}
|
|
15
|
+
return r.portalKey = p(r.host, o, r.portalKey ?? void 0), t || (t = !0, n(() => {
|
|
16
|
+
r?.portalKey && y(r.portalKey, { sync: !1 }), r = null;
|
|
17
|
+
})), r.host;
|
|
18
|
+
};
|
|
7
19
|
}
|
|
8
|
-
function
|
|
9
|
-
if (!("render" in
|
|
10
|
-
if (Array.isArray(
|
|
11
|
-
const
|
|
12
|
-
return { ...
|
|
20
|
+
function h(e, n) {
|
|
21
|
+
if (!("render" in e) || e.render == null) return e;
|
|
22
|
+
if (Array.isArray(e.render)) {
|
|
23
|
+
const r = e.render.map((t) => typeof t?.render != "function" ? t : { zone: t.zone, render: c(t.render, n) });
|
|
24
|
+
return { ...e, render: r };
|
|
25
|
+
}
|
|
26
|
+
return typeof e.render == "function" ? { ...e, render: c(e.render, n) } : e;
|
|
27
|
+
}
|
|
28
|
+
class P extends u {
|
|
29
|
+
#e;
|
|
30
|
+
constructor(n, r) {
|
|
31
|
+
super(n), this.#e = r;
|
|
32
|
+
}
|
|
33
|
+
detach() {
|
|
34
|
+
super.detach();
|
|
35
|
+
for (const n of this.#e)
|
|
36
|
+
try {
|
|
37
|
+
n();
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
40
|
+
this.#e.length = 0;
|
|
13
41
|
}
|
|
14
|
-
return typeof r.render == "function" ? { ...r, render: u(r.render) } : r;
|
|
15
42
|
}
|
|
16
43
|
m(
|
|
17
44
|
"pinnedRows",
|
|
18
|
-
(
|
|
19
|
-
if (typeof
|
|
20
|
-
if (!
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
45
|
+
(e) => {
|
|
46
|
+
if (typeof e == "boolean") return new u();
|
|
47
|
+
if (!e) return new u();
|
|
48
|
+
const n = e, { slots: r, customPanels: t, ...a } = n, o = { ...a }, s = [], d = (i) => {
|
|
49
|
+
s.push(i);
|
|
50
|
+
};
|
|
51
|
+
return Array.isArray(t) && (o.customPanels = t.map((i) => {
|
|
52
|
+
if (typeof i.render != "function") return i;
|
|
53
|
+
const f = c(i.render, d);
|
|
25
54
|
return {
|
|
26
|
-
...
|
|
55
|
+
...i,
|
|
27
56
|
// customPanels expect HTMLElement (not nullable); coerce null → empty wrapper.
|
|
28
|
-
render: (
|
|
57
|
+
render: (l) => f(l) ?? document.createElement("div")
|
|
29
58
|
};
|
|
30
|
-
})), Array.isArray(
|
|
59
|
+
})), Array.isArray(r) && (o.slots = r.map((i) => h(i, d))), new P(o, s);
|
|
31
60
|
},
|
|
32
61
|
{ override: !0 }
|
|
33
62
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reorder-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/reorder-rows.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"reorder-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/reorder-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,yCAAyC,CAAC"}
|
package/features/responsive.js
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import "@toolbox-web/grid/features/responsive";
|
|
2
|
-
import { g as
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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) => {
|
|
10
|
+
const o = document.createElement("div");
|
|
11
|
+
o.className = "react-responsive-card";
|
|
12
|
+
const i = d(
|
|
13
|
+
o,
|
|
14
|
+
r({ row: n, index: t }),
|
|
14
15
|
void 0,
|
|
15
|
-
|
|
16
|
+
e
|
|
16
17
|
);
|
|
17
|
-
return
|
|
18
|
+
return s(i, o, !1), o;
|
|
18
19
|
};
|
|
19
20
|
});
|
|
21
|
+
c("responsive", ({ gridEl: e }) => {
|
|
22
|
+
if (!e.querySelector("tbw-grid-responsive-card") || !a(e)) return;
|
|
23
|
+
const r = e, n = r.getPluginByName("responsive");
|
|
24
|
+
if (!n?.setCardRenderer) return;
|
|
25
|
+
const t = r.__frameworkAdapter?.createResponsiveCardRenderer?.(e);
|
|
26
|
+
t && n.setCardRenderer(t);
|
|
27
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@toolbox-web/grid/features/row-drag-drop";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=sticky-rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticky-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/sticky-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,wCAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@toolbox-web/grid/features/sticky-rows";
|
package/index.d.ts
CHANGED
|
@@ -3,10 +3,12 @@ export type { DataGridProps, DataGridRef } from './lib/data-grid';
|
|
|
3
3
|
export { GridColumn } from './lib/grid-column';
|
|
4
4
|
export type { GridColumnProps } from './lib/grid-column';
|
|
5
5
|
export { GridDetailPanel, type DetailPanelContext, type GridDetailPanelProps } from './lib/grid-detail-panel';
|
|
6
|
+
export { GridHeaderContent, type GridHeaderContentProps } from './lib/grid-header-content';
|
|
6
7
|
export { GridResponsiveCard, type GridResponsiveCardProps, type ResponsiveCardContext, } from './lib/grid-responsive-card';
|
|
7
8
|
export { GridToolButtons, type GridToolButtonsProps } from './lib/grid-tool-button';
|
|
8
9
|
export { GridToolPanel, type GridToolPanelProps, type ToolPanelContext } from './lib/grid-tool-panel';
|
|
9
|
-
export
|
|
10
|
+
export { GridToolbarContent, type GridToolbarContentProps } from './lib/grid-toolbar-content';
|
|
11
|
+
export type { AllFeatureProps, FeatureProps, ReactColumnGroupDefinition, ReactFilterConfig, ReactGroupingColumnsConfig, ReactGroupingRowsConfig, SSRProps, } from './lib/feature-props';
|
|
10
12
|
export { applyColumnDefaults, hasColumnShorthands, normalizeColumns, parseColumnShorthand, } from './lib/column-shorthand';
|
|
11
13
|
export type { ColumnShorthand } from './lib/column-shorthand';
|
|
12
14
|
export type { EventHandler, EventProps } from './lib/event-props';
|
|
@@ -17,5 +19,7 @@ export type { ColumnConfig, GridConfig } from './lib/react-column-config';
|
|
|
17
19
|
export { useGrid, type UseGridReturn } from './lib/use-grid';
|
|
18
20
|
export { useGridOverlay, type UseGridOverlayOptions } from './lib/use-grid-overlay';
|
|
19
21
|
export { GridAdapter } from './lib/react-grid-adapter';
|
|
22
|
+
export { registerChildFeatureDetector, registerEditorMountHook, registerFeaturePropKey, registerPostMountRefresh, } from './lib/react-grid-adapter';
|
|
23
|
+
export type { ChildFeatureDetector, EditorMountHook, PostMountRefreshHook } from './lib/react-grid-adapter';
|
|
20
24
|
export type { GridCellContext, GridDetailContext, GridEditorContext, GridToolPanelContext } from './lib/context-types';
|
|
21
25
|
//# sourceMappingURL=index.d.ts.map
|
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,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;
|
|
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,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGlE,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,KAAK,qBAAqB,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"}
|