@toolbox-web/grid-react 0.15.1 → 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 (79) 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 +9 -14
  16. package/features/filtering.js +15 -15
  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 +10 -12
  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 +26 -28
  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 +12 -17
  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.map +1 -1
  72. package/lib/feature-props.d.ts +12 -4
  73. package/lib/feature-props.d.ts.map +1 -1
  74. package/lib/feature-registry.d.ts +13 -47
  75. package/lib/feature-registry.d.ts.map +1 -1
  76. package/lib/use-sync-plugins.d.ts +2 -1
  77. package/lib/use-sync-plugins.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. 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,13 +1,8 @@
1
- import { ExportPlugin as g } 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 g(t);
8
- });
9
- function w() {
10
- const i = a(c), t = n(() => i?.current?.getPluginByName("export"), [i]), p = n(
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(
11
6
  (r, o) => {
12
7
  const e = t();
13
8
  if (!e) {
@@ -22,7 +17,7 @@ function w() {
22
17
  e.exportCsv({ ...o, fileName: r ?? o?.fileName ?? "export.csv" });
23
18
  },
24
19
  [t]
25
- ), x = n(
20
+ ), p = n(
26
21
  (r, o) => {
27
22
  const e = t();
28
23
  if (!e) {
@@ -54,13 +49,13 @@ function w() {
54
49
  [t]
55
50
  ), s = n(() => t()?.isExporting() ?? !1, [t]), u = n(() => t()?.getLastExport() ?? null, [t]);
56
51
  return {
57
- exportToCsv: p,
58
- exportToExcel: x,
52
+ exportToCsv: x,
53
+ exportToExcel: p,
59
54
  exportToJson: l,
60
55
  isExporting: s,
61
56
  getLastExport: u
62
57
  };
63
58
  }
64
59
  export {
65
- w as useGridExport
60
+ E as useGridExport
66
61
  };
@@ -2,12 +2,12 @@ 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 c();
9
- if (!i) return new c();
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
12
  const g = e.filterPanelRenderer;
13
13
  o.filterPanelRenderer = (s, d) => {
@@ -22,8 +22,8 @@ R("filtering", (i) => {
22
22
  return new c(o);
23
23
  });
24
24
  function x() {
25
- const i = m(b), e = n(() => i?.current?.getPluginByName("filtering"), [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
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,7 +76,7 @@ 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]);
@@ -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,12 +1,10 @@
1
- import { PrintPlugin as o } from "@toolbox-web/grid/plugins/print";
2
- import { useContext as a, useCallback as n } from "react";
3
- import { G as g } from "../chunks/data-grid-O97pdLCY.js";
4
- import { r as p } from "../chunks/feature-registry-Y3KvnN54.js";
5
- p("print", (r) => r === !0 ? new o() : new o(r ?? void 0));
6
- function f() {
7
- const r = a(g), t = n(() => r?.current?.getPluginByName("print"), [r]), u = n(
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(
8
6
  async (i) => {
9
- const e = t();
7
+ const e = n();
10
8
  if (!e) {
11
9
  console.warn(
12
10
  `[tbw-grid:print] PrintPlugin not found.
@@ -18,10 +16,10 @@ function f() {
18
16
  }
19
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
- f 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";
@@ -1,16 +1,6 @@
1
1
  /**
2
- * Column Reorder feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `reorder` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/reorder';
9
- *
10
- * <DataGrid reorder />
11
- * ```
12
- *
13
- * @packageDocumentation
2
+ * @deprecated Import from `@toolbox-web/grid-react/features/reorder-columns` instead.
3
+ * This re-export will be removed in v2.0.
14
4
  */
15
- export {};
5
+ export {} from './reorder-columns';
16
6
  //# sourceMappingURL=reorder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reorder.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/reorder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"reorder.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/reorder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,6 +1 @@
1
- import { ReorderPlugin as o } from "@toolbox-web/grid/plugins/reorder";
2
- import { r as t } from "../chunks/feature-registry-Y3KvnN54.js";
3
- t("reorder", (r) => {
4
- const e = typeof r == "boolean" ? {} : r ?? {};
5
- return new o(e);
6
- });
1
+
@@ -1,16 +1 @@
1
- /**
2
- * Responsive feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `responsive` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/responsive';
9
- *
10
- * <DataGrid responsive={{ breakpoint: 700 }} />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=responsive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/responsive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
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,6 +1 @@
1
- import { ResponsivePlugin as r } from "@toolbox-web/grid/plugins/responsive";
2
- import { r as s } from "../chunks/feature-registry-Y3KvnN54.js";
3
- s("responsive", (e) => {
4
- const o = typeof e == "boolean" ? {} : e ?? {};
5
- return new r(o);
6
- });
1
+ import "@toolbox-web/grid/features/responsive";