@toolbox-web/grid-react 0.15.0 → 0.16.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.
Files changed (90) hide show
  1. package/chunks/{data-grid-O97pdLCY.js → data-grid-oxWjOqoA.js} +160 -173
  2. package/features/clipboard.d.ts +0 -17
  3. package/features/clipboard.d.ts.map +1 -1
  4. package/features/clipboard.js +1 -6
  5. package/features/column-virtualization.d.ts +0 -15
  6. package/features/column-virtualization.d.ts.map +1 -1
  7. package/features/column-virtualization.js +1 -6
  8. package/features/context-menu.d.ts +0 -15
  9. package/features/context-menu.d.ts.map +1 -1
  10. package/features/context-menu.js +1 -6
  11. package/features/editing.d.ts +0 -15
  12. package/features/editing.d.ts.map +1 -1
  13. package/features/editing.js +1 -3
  14. package/features/export.d.ts.map +1 -1
  15. package/features/export.js +25 -30
  16. package/features/filtering.js +25 -25
  17. package/features/grouping-columns.d.ts +0 -15
  18. package/features/grouping-columns.d.ts.map +1 -1
  19. package/features/grouping-columns.js +1 -6
  20. package/features/grouping-rows.d.ts +0 -15
  21. package/features/grouping-rows.d.ts.map +1 -1
  22. package/features/grouping-rows.js +1 -6
  23. package/features/index.js +21 -21
  24. package/features/master-detail.d.ts +0 -17
  25. package/features/master-detail.d.ts.map +1 -1
  26. package/features/master-detail.js +1 -6
  27. package/features/multi-sort.d.ts +0 -21
  28. package/features/multi-sort.d.ts.map +1 -1
  29. package/features/multi-sort.js +1 -3
  30. package/features/pinned-columns.d.ts +0 -15
  31. package/features/pinned-columns.d.ts.map +1 -1
  32. package/features/pinned-columns.js +1 -6
  33. package/features/pinned-rows.d.ts +0 -15
  34. package/features/pinned-rows.d.ts.map +1 -1
  35. package/features/pinned-rows.js +1 -6
  36. package/features/pivot.d.ts +0 -15
  37. package/features/pivot.d.ts.map +1 -1
  38. package/features/pivot.js +1 -3
  39. package/features/print.d.ts.map +1 -1
  40. package/features/print.js +13 -15
  41. package/features/reorder-columns.d.ts +1 -0
  42. package/features/reorder-columns.d.ts.map +1 -0
  43. package/features/reorder-columns.js +1 -0
  44. package/features/reorder-rows.d.ts +1 -0
  45. package/features/reorder-rows.d.ts.map +1 -0
  46. package/features/reorder-rows.js +1 -0
  47. package/features/reorder.d.ts +3 -13
  48. package/features/reorder.d.ts.map +1 -1
  49. package/features/reorder.js +1 -6
  50. package/features/responsive.d.ts +0 -15
  51. package/features/responsive.d.ts.map +1 -1
  52. package/features/responsive.js +1 -6
  53. package/features/row-reorder.d.ts +3 -13
  54. package/features/row-reorder.d.ts.map +1 -1
  55. package/features/row-reorder.js +1 -3
  56. package/features/selection.d.ts.map +1 -1
  57. package/features/selection.js +28 -30
  58. package/features/server-side.d.ts +0 -15
  59. package/features/server-side.d.ts.map +1 -1
  60. package/features/server-side.js +1 -3
  61. package/features/sorting.js +1 -1
  62. package/features/tree.d.ts +0 -15
  63. package/features/tree.d.ts.map +1 -1
  64. package/features/tree.js +1 -6
  65. package/features/undo-redo.d.ts.map +1 -1
  66. package/features/undo-redo.js +23 -28
  67. package/features/visibility.d.ts +0 -15
  68. package/features/visibility.d.ts.map +1 -1
  69. package/features/visibility.js +1 -6
  70. package/index.js +2 -2
  71. package/lib/data-grid.d.ts +2 -0
  72. package/lib/data-grid.d.ts.map +1 -1
  73. package/lib/feature-props.d.ts +12 -4
  74. package/lib/feature-props.d.ts.map +1 -1
  75. package/lib/feature-registry.d.ts +13 -47
  76. package/lib/feature-registry.d.ts.map +1 -1
  77. package/lib/grid-column.d.ts +2 -0
  78. package/lib/grid-column.d.ts.map +1 -1
  79. package/lib/grid-detail-panel.d.ts +2 -0
  80. package/lib/grid-detail-panel.d.ts.map +1 -1
  81. package/lib/grid-responsive-card.d.ts +2 -0
  82. package/lib/grid-responsive-card.d.ts.map +1 -1
  83. package/lib/grid-tool-button.d.ts +2 -0
  84. package/lib/grid-tool-button.d.ts.map +1 -1
  85. package/lib/grid-tool-panel.d.ts +2 -0
  86. package/lib/grid-tool-panel.d.ts.map +1 -1
  87. package/lib/use-sync-plugins.d.ts +2 -1
  88. package/lib/use-sync-plugins.d.ts.map +1 -1
  89. package/package.json +1 -1
  90. package/chunks/feature-registry-Y3KvnN54.js +0 -26
@@ -1,6 +1 @@
1
- import { ClipboardPlugin as e } from "@toolbox-web/grid/plugins/clipboard";
2
- import { r as t } from "../chunks/feature-registry-Y3KvnN54.js";
3
- t("clipboard", (r) => {
4
- const o = typeof r == "boolean" ? {} : r ?? {};
5
- return new e(o);
6
- });
1
+ import "@toolbox-web/grid/features/clipboard";
@@ -1,16 +1 @@
1
- /**
2
- * Column Virtualization feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `columnVirtualization` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/column-virtualization';
9
- *
10
- * <DataGrid columnVirtualization />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=column-virtualization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"column-virtualization.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/column-virtualization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"column-virtualization.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/column-virtualization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,kDAAkD,CAAC"}
@@ -1,6 +1 @@
1
- import { ColumnVirtualizationPlugin as t } from "@toolbox-web/grid/plugins/column-virtualization";
2
- import { r as i } from "../chunks/feature-registry-Y3KvnN54.js";
3
- i("columnVirtualization", (o) => {
4
- const r = typeof o == "boolean" ? {} : o ?? {};
5
- return new t(r);
6
- });
1
+ import "@toolbox-web/grid/features/column-virtualization";
@@ -1,16 +1 @@
1
- /**
2
- * Context Menu feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `contextMenu` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/context-menu';
9
- *
10
- * <DataGrid contextMenu />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=context-menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/context-menu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/context-menu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,yCAAyC,CAAC"}
@@ -1,6 +1 @@
1
- import { ContextMenuPlugin as o } from "@toolbox-web/grid/plugins/context-menu";
2
- import { r } from "../chunks/feature-registry-Y3KvnN54.js";
3
- r("contextMenu", (e) => {
4
- const t = typeof e == "boolean" ? {} : e ?? {};
5
- return new o(t);
6
- });
1
+ import "@toolbox-web/grid/features/context-menu";
@@ -1,16 +1 @@
1
- /**
2
- * Editing feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `editing` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/editing';
9
- *
10
- * <DataGrid editing="dblclick" />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=editing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editing.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/editing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"editing.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/editing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,oCAAoC,CAAC"}
@@ -1,3 +1 @@
1
- import { EditingPlugin as e } from "@toolbox-web/grid/plugins/editing";
2
- import { r as t } from "../chunks/feature-registry-Y3KvnN54.js";
3
- t("editing", (r) => r === !0 ? new e({ editOn: "dblclick" }) : r === "click" || r === "dblclick" || r === "manual" ? new e({ editOn: r }) : new e(r ?? void 0));
1
+ import "@toolbox-web/grid/features/editing";
@@ -1 +1 @@
1
- {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/export.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EAAgB,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAUtG;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAEzE;;;;OAIG;IACH,aAAa,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAE3E;;;;OAIG;IACH,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAE1E;;OAEG;IACH,WAAW,EAAE,MAAM,OAAO,CAAC;IAE3B;;OAEG;IACH,aAAa,EAAE,MAAM;QAAE,MAAM,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACvE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,IAAI,aAAa,CAuE7C"}
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/export.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EAAqB,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK3G,OAAO,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAEzE;;;;OAIG;IACH,aAAa,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAE3E;;;;OAIG;IACH,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAE1E;;OAEG;IACH,WAAW,EAAE,MAAM,OAAO,CAAC;IAE3B;;OAEG;IACH,aAAa,EAAE,MAAM;QAAE,MAAM,EAAE,YAAY,CAAC;QAAC,SAAS,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACvE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,IAAI,aAAa,CAuE7C"}
@@ -1,16 +1,11 @@
1
- import { ExportPlugin as p } from "@toolbox-web/grid/plugins/export";
2
- import { useContext as a, useCallback as n } from "react";
3
- import { G as c } from "../chunks/data-grid-O97pdLCY.js";
4
- import { r as f } from "../chunks/feature-registry-Y3KvnN54.js";
5
- f("export", (i) => {
6
- const t = typeof i == "boolean" ? {} : i ?? {};
7
- return new p(t);
8
- });
9
- function w() {
10
- const i = a(c), t = n(() => i?.current?.getPlugin(p), [i]), x = n(
11
- (e, o) => {
12
- const r = t();
13
- if (!r) {
1
+ import { useContext as g, useCallback as n } from "react";
2
+ import { G as c } from "../chunks/data-grid-oxWjOqoA.js";
3
+ import "@toolbox-web/grid/features/export";
4
+ function E() {
5
+ const i = g(c), t = n(() => i?.current?.getPluginByName("export"), [i]), x = n(
6
+ (r, o) => {
7
+ const e = t();
8
+ if (!e) {
14
9
  console.warn(
15
10
  `[tbw-grid:export] ExportPlugin not found.
16
11
 
@@ -19,13 +14,13 @@ function w() {
19
14
  );
20
15
  return;
21
16
  }
22
- r.exportCsv({ ...o, fileName: e ?? o?.fileName ?? "export.csv" });
17
+ e.exportCsv({ ...o, fileName: r ?? o?.fileName ?? "export.csv" });
23
18
  },
24
19
  [t]
25
- ), l = n(
26
- (e, o) => {
27
- const r = t();
28
- if (!r) {
20
+ ), p = n(
21
+ (r, o) => {
22
+ const e = t();
23
+ if (!e) {
29
24
  console.warn(
30
25
  `[tbw-grid:export] ExportPlugin not found.
31
26
 
@@ -34,13 +29,13 @@ function w() {
34
29
  );
35
30
  return;
36
31
  }
37
- r.exportExcel({ ...o, fileName: e ?? o?.fileName ?? "export.xlsx" });
32
+ e.exportExcel({ ...o, fileName: r ?? o?.fileName ?? "export.xlsx" });
38
33
  },
39
34
  [t]
40
- ), s = n(
41
- (e, o) => {
42
- const r = t();
43
- if (!r) {
35
+ ), l = n(
36
+ (r, o) => {
37
+ const e = t();
38
+ if (!e) {
44
39
  console.warn(
45
40
  `[tbw-grid:export] ExportPlugin not found.
46
41
 
@@ -49,18 +44,18 @@ function w() {
49
44
  );
50
45
  return;
51
46
  }
52
- r.exportJson({ ...o, fileName: e ?? o?.fileName ?? "export.json" });
47
+ e.exportJson({ ...o, fileName: r ?? o?.fileName ?? "export.json" });
53
48
  },
54
49
  [t]
55
- ), u = n(() => t()?.isExporting() ?? !1, [t]), g = n(() => t()?.getLastExport() ?? null, [t]);
50
+ ), s = n(() => t()?.isExporting() ?? !1, [t]), u = n(() => t()?.getLastExport() ?? null, [t]);
56
51
  return {
57
52
  exportToCsv: x,
58
- exportToExcel: l,
59
- exportToJson: s,
60
- isExporting: u,
61
- getLastExport: g
53
+ exportToExcel: p,
54
+ exportToJson: l,
55
+ isExporting: s,
56
+ getLastExport: u
62
57
  };
63
58
  }
64
59
  export {
65
- w as useGridExport
60
+ E as useGridExport
66
61
  };
@@ -1,29 +1,29 @@
1
- import { FilteringPlugin as g } from "@toolbox-web/grid/plugins/filtering";
1
+ import { FilteringPlugin as c } from "@toolbox-web/grid/plugins/filtering";
2
2
  import { useContext as m, useCallback as n } from "react";
3
3
  import { flushSync as w } from "react-dom";
4
4
  import { createRoot as P } from "react-dom/client";
5
- import { G as b } from "../chunks/data-grid-O97pdLCY.js";
6
- import { r as R } from "../chunks/feature-registry-Y3KvnN54.js";
7
- R("filtering", (i) => {
8
- if (typeof i == "boolean") return new g();
9
- if (!i) return new g();
10
- const e = i, o = { ...e };
5
+ import { G as b } from "../chunks/data-grid-oxWjOqoA.js";
6
+ import { registerFeature as R } from "@toolbox-web/grid/features/registry";
7
+ R("filtering", (r) => {
8
+ if (typeof r == "boolean") return new c();
9
+ if (!r) return new c();
10
+ const e = r, o = { ...e };
11
11
  if (typeof e.filterPanelRenderer == "function" && e.filterPanelRenderer.length <= 1) {
12
- const s = e.filterPanelRenderer;
13
- o.filterPanelRenderer = (d, c) => {
12
+ const g = e.filterPanelRenderer;
13
+ o.filterPanelRenderer = (s, d) => {
14
14
  const l = document.createElement("div");
15
15
  l.style.display = "contents";
16
16
  const f = P(l);
17
17
  w(() => {
18
- f.render(s(c));
19
- }), d.appendChild(l);
18
+ f.render(g(d));
19
+ }), s.appendChild(l);
20
20
  };
21
21
  }
22
- return new g(o);
22
+ return new c(o);
23
23
  });
24
24
  function x() {
25
- const i = m(b), e = n(() => i?.current?.getPlugin(g), [i]), o = n(
26
- (t, r) => {
25
+ const r = m(b), e = n(() => r?.current?.getPluginByName("filtering"), [r]), o = n(
26
+ (t, i) => {
27
27
  const u = e();
28
28
  if (!u) {
29
29
  console.warn(
@@ -34,13 +34,13 @@ function x() {
34
34
  );
35
35
  return;
36
36
  }
37
- u.setFilter(t, r);
37
+ u.setFilter(t, i);
38
38
  },
39
39
  [e]
40
- ), s = n((t) => e()?.getFilter(t), [e]), d = n(() => e()?.getFilters() ?? [], [e]), c = n(
40
+ ), g = n((t) => e()?.getFilter(t), [e]), s = n(() => e()?.getFilters() ?? [], [e]), d = n(
41
41
  (t) => {
42
- const r = e();
43
- if (!r) {
42
+ const i = e();
43
+ if (!i) {
44
44
  console.warn(
45
45
  `[tbw-grid:filtering] FilteringPlugin not found.
46
46
 
@@ -49,7 +49,7 @@ function x() {
49
49
  );
50
50
  return;
51
51
  }
52
- r.setFilterModel(t);
52
+ i.setFilterModel(t);
53
53
  },
54
54
  [e]
55
55
  ), l = n(() => {
@@ -66,8 +66,8 @@ function x() {
66
66
  t.clearAllFilters();
67
67
  }, [e]), f = n(
68
68
  (t) => {
69
- const r = e();
70
- if (!r) {
69
+ const i = e();
70
+ if (!i) {
71
71
  console.warn(
72
72
  `[tbw-grid:filtering] FilteringPlugin not found.
73
73
 
@@ -76,15 +76,15 @@ function x() {
76
76
  );
77
77
  return;
78
78
  }
79
- r.clearFieldFilter(t);
79
+ i.clearFieldFilter(t);
80
80
  },
81
81
  [e]
82
82
  ), a = n((t) => e()?.isFieldFiltered(t) ?? !1, [e]), F = n(() => e()?.getFilteredRowCount() ?? 0, [e]), p = n((t) => e()?.getUniqueValues(t) ?? [], [e]);
83
83
  return {
84
84
  setFilter: o,
85
- getFilter: s,
86
- getFilters: d,
87
- setFilterModel: c,
85
+ getFilter: g,
86
+ getFilters: s,
87
+ setFilterModel: d,
88
88
  clearAllFilters: l,
89
89
  clearFieldFilter: f,
90
90
  isFieldFiltered: a,
@@ -1,16 +1 @@
1
- /**
2
- * Column Grouping feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `groupingColumns` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/grouping-columns';
9
- *
10
- * <DataGrid groupingColumns />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=grouping-columns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grouping-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/grouping-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"grouping-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/grouping-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,6CAA6C,CAAC"}
@@ -1,6 +1 @@
1
- import { GroupingColumnsPlugin as n } from "@toolbox-web/grid/plugins/grouping-columns";
2
- import { r as e } from "../chunks/feature-registry-Y3KvnN54.js";
3
- e("groupingColumns", (o) => {
4
- const r = typeof o == "boolean" ? {} : o ?? {};
5
- return new n(r);
6
- });
1
+ import "@toolbox-web/grid/features/grouping-columns";
@@ -1,16 +1 @@
1
- /**
2
- * Row Grouping feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `groupingRows` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/grouping-rows';
9
- *
10
- * <DataGrid groupingRows={{ groupBy: ['department'] }} />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=grouping-rows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grouping-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/grouping-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"grouping-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/grouping-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,0CAA0C,CAAC"}
@@ -1,6 +1 @@
1
- import { GroupingRowsPlugin as e } from "@toolbox-web/grid/plugins/grouping-rows";
2
- import { r as t } from "../chunks/feature-registry-Y3KvnN54.js";
3
- t("groupingRows", (o) => {
4
- const r = typeof o == "boolean" ? {} : o ?? {};
5
- return new e(r);
6
- });
1
+ import "@toolbox-web/grid/features/grouping-rows";
package/features/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import "./clipboard.js";
2
- import "./column-virtualization.js";
3
- import "./context-menu.js";
4
- import "./editing.js";
5
- import "./export.js";
1
+ import "@toolbox-web/grid/features/clipboard";
2
+ import "@toolbox-web/grid/features/column-virtualization";
3
+ import "@toolbox-web/grid/features/context-menu";
4
+ import "@toolbox-web/grid/features/editing";
5
+ import "react";
6
+ import "../chunks/data-grid-oxWjOqoA.js";
7
+ import "@toolbox-web/grid/features/export";
6
8
  import "./filtering.js";
7
- import "./grouping-columns.js";
8
- import "./grouping-rows.js";
9
- import "./master-detail.js";
10
- import "./multi-sort.js";
11
- import "./pinned-columns.js";
12
- import "./pinned-rows.js";
13
- import "./pivot.js";
14
- import "./print.js";
15
- import "./reorder.js";
16
- import "./responsive.js";
17
- import "./row-reorder.js";
18
- import "./selection.js";
19
- import "./server-side.js";
20
- import "./tree.js";
21
- import "./undo-redo.js";
22
- import "./visibility.js";
9
+ import "@toolbox-web/grid/features/grouping-columns";
10
+ import "@toolbox-web/grid/features/grouping-rows";
11
+ import "@toolbox-web/grid/features/master-detail";
12
+ import "@toolbox-web/grid/features/multi-sort";
13
+ import "@toolbox-web/grid/features/pinned-columns";
14
+ import "@toolbox-web/grid/features/pinned-rows";
15
+ import "@toolbox-web/grid/features/pivot";
16
+ import "@toolbox-web/grid/features/print";
17
+ import "@toolbox-web/grid/features/responsive";
18
+ import "@toolbox-web/grid/features/selection";
19
+ import "@toolbox-web/grid/features/server-side";
20
+ import "@toolbox-web/grid/features/tree";
21
+ import "@toolbox-web/grid/features/undo-redo";
22
+ import "@toolbox-web/grid/features/visibility";
@@ -1,18 +1 @@
1
- /**
2
- * Master-Detail feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `masterDetail` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/master-detail';
9
- *
10
- * <DataGrid masterDetail={{ showExpandColumn: true }}>
11
- * <GridDetailPanel>{({ row }) => <DetailView row={row} />}</GridDetailPanel>
12
- * </DataGrid>
13
- * ```
14
- *
15
- * @packageDocumentation
16
- */
17
- export {};
18
1
  //# sourceMappingURL=master-detail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"master-detail.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/master-detail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"}
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,6 +1 @@
1
- import { MasterDetailPlugin as t } from "@toolbox-web/grid/plugins/master-detail";
2
- import { r as o } from "../chunks/feature-registry-Y3KvnN54.js";
3
- o("masterDetail", (e) => {
4
- const r = typeof e == "boolean" ? {} : e ?? {};
5
- return new t(r);
6
- });
1
+ import "@toolbox-web/grid/features/master-detail";
@@ -1,22 +1 @@
1
- /**
2
- * Multi-sort feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `multiSort` prop on DataGrid.
5
- * Multi-sort allows sorting by multiple columns simultaneously.
6
- *
7
- * For basic single-column sorting, columns with `sortable: true` work without this plugin.
8
- * Use `sortable={false}` on the grid to disable all sorting.
9
- *
10
- * @example
11
- * ```tsx
12
- * import '@toolbox-web/grid-react/features/multi-sort';
13
- *
14
- * <DataGrid multiSort />
15
- * <DataGrid multiSort="single" />
16
- * <DataGrid multiSort={{ maxSortColumns: 3 }} />
17
- * ```
18
- *
19
- * @packageDocumentation
20
- */
21
- export {};
22
1
  //# sourceMappingURL=multi-sort.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"multi-sort.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/multi-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
1
+ {"version":3,"file":"multi-sort.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/multi-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,uCAAuC,CAAC"}
@@ -1,3 +1 @@
1
- import { MultiSortPlugin as t } from "@toolbox-web/grid/plugins/multi-sort";
2
- import { r as e } from "../chunks/feature-registry-Y3KvnN54.js";
3
- e("multiSort", (r) => r === !0 || r === "multi" ? new t() : r === "single" ? new t({ maxSortColumns: 1 }) : new t(r));
1
+ import "@toolbox-web/grid/features/multi-sort";
@@ -1,16 +1 @@
1
- /**
2
- * Pinned Columns feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `pinnedColumns` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/pinned-columns';
9
- *
10
- * <DataGrid pinnedColumns />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=pinned-columns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pinned-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/pinned-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"pinned-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/pinned-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,2CAA2C,CAAC"}
@@ -1,6 +1 @@
1
- import { PinnedColumnsPlugin as e } from "@toolbox-web/grid/plugins/pinned-columns";
2
- import { r } from "../chunks/feature-registry-Y3KvnN54.js";
3
- r("pinnedColumns", (n) => {
4
- const o = typeof n == "boolean" ? {} : n ?? {};
5
- return new e(o);
6
- });
1
+ import "@toolbox-web/grid/features/pinned-columns";
@@ -1,16 +1 @@
1
- /**
2
- * Pinned Rows feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `pinnedRows` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/pinned-rows';
9
- *
10
- * <DataGrid pinnedRows={{ position: 'bottom', showRowCount: true }} />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# 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;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"pinned-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/pinned-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,wCAAwC,CAAC"}
@@ -1,6 +1 @@
1
- import { PinnedRowsPlugin as r } from "@toolbox-web/grid/plugins/pinned-rows";
2
- import { r as n } from "../chunks/feature-registry-Y3KvnN54.js";
3
- n("pinnedRows", (o) => {
4
- const e = typeof o == "boolean" ? {} : o ?? {};
5
- return new r(e);
6
- });
1
+ import "@toolbox-web/grid/features/pinned-rows";
@@ -1,16 +1 @@
1
- /**
2
- * Pivot feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `pivot` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/pivot';
9
- *
10
- * <DataGrid pivot={{ rowFields: ['category'], valueField: 'sales' }} />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=pivot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pivot.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/pivot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"pivot.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/pivot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,kCAAkC,CAAC"}
package/features/pivot.js CHANGED
@@ -1,3 +1 @@
1
- import { PivotPlugin as i } from "@toolbox-web/grid/plugins/pivot";
2
- import { r as o } from "../chunks/feature-registry-Y3KvnN54.js";
3
- o("pivot", (r) => new i(r ?? void 0));
1
+ import "@toolbox-web/grid/features/pivot";
@@ -1 +1 @@
1
- {"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/print.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAYhF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/C;;OAEG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,IAAI,YAAY,CAyB3C"}
1
+ {"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/print.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAKrF,OAAO,kCAAkC,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/C;;OAEG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,IAAI,YAAY,CAyB3C"}
package/features/print.js CHANGED
@@ -1,13 +1,11 @@
1
- import { PrintPlugin as i } from "@toolbox-web/grid/plugins/print";
2
- import { useContext as g, useCallback as n } from "react";
3
- import { G as a } from "../chunks/data-grid-O97pdLCY.js";
4
- import { r as p } from "../chunks/feature-registry-Y3KvnN54.js";
5
- p("print", (r) => r === !0 ? new i() : new i(r ?? void 0));
6
- function m() {
7
- const r = g(a), t = n(() => r?.current?.getPlugin(i), [r]), u = n(
8
- async (e) => {
9
- const o = t();
10
- if (!o) {
1
+ import { useContext as g, useCallback as t } from "react";
2
+ import { G as u } from "../chunks/data-grid-oxWjOqoA.js";
3
+ import "@toolbox-web/grid/features/print";
4
+ function l() {
5
+ const r = g(u), n = t(() => r?.current?.getPluginByName("print"), [r]), o = t(
6
+ async (i) => {
7
+ const e = n();
8
+ if (!e) {
11
9
  console.warn(
12
10
  `[tbw-grid:print] PrintPlugin not found.
13
11
 
@@ -16,12 +14,12 @@ function m() {
16
14
  );
17
15
  return;
18
16
  }
19
- await o.print(e);
17
+ await e.print(i);
20
18
  },
21
- [t]
22
- ), s = n(() => t()?.isPrinting() ?? !1, [t]);
23
- return { print: u, isPrinting: s };
19
+ [n]
20
+ ), s = t(() => n()?.isPrinting() ?? !1, [n]);
21
+ return { print: o, isPrinting: s };
24
22
  }
25
23
  export {
26
- m as useGridPrint
24
+ l as useGridPrint
27
25
  };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=reorder-columns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reorder-columns.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/reorder-columns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,4CAA4C,CAAC"}
@@ -0,0 +1 @@
1
+ import "@toolbox-web/grid/features/reorder-columns";
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=reorder-rows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reorder-rows.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/reorder-rows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,yCAAyC,CAAC"}
@@ -0,0 +1 @@
1
+ import "@toolbox-web/grid/features/reorder-rows";