@geovi/the-datagrid 0.0.12 → 0.0.13

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 (69) hide show
  1. package/README.md +195 -40
  2. package/dist/base.css +1 -1
  3. package/dist/components.js +23 -23
  4. package/dist/grid/ReactDataGrid.d.ts.map +1 -1
  5. package/dist/grid/hooks/useGridColumnApi.d.ts +0 -5
  6. package/dist/grid/hooks/useGridColumnApi.d.ts.map +1 -1
  7. package/dist/grid/hooks/useGridToolbarBridge.d.ts +28 -0
  8. package/dist/grid/hooks/useGridToolbarBridge.d.ts.map +1 -0
  9. package/dist/grid/internalProps.d.ts +12 -5
  10. package/dist/grid/internalProps.d.ts.map +1 -1
  11. package/dist/index.cjs +9 -9
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +6061 -5994
  14. package/dist/optional-target.d.ts +1 -1
  15. package/dist/optional-target.d.ts.map +1 -1
  16. package/dist/providers/index.d.ts +2 -2
  17. package/dist/providers/index.d.ts.map +1 -1
  18. package/dist/search/RDGSearchTarget.d.ts.map +1 -1
  19. package/dist/search.js +70 -70
  20. package/dist/style/theme/amber-dark/index.css +1 -1
  21. package/dist/style/theme/amber-light/index.css +1 -1
  22. package/dist/style/theme/blue-dark/index.css +1 -1
  23. package/dist/style/theme/blue-light/index.css +1 -1
  24. package/dist/style/theme/default-dark/index.css +1 -1
  25. package/dist/style/theme/default-light/index.css +1 -1
  26. package/dist/style/theme/green-dark/index.css +1 -1
  27. package/dist/style/theme/green-light/index.css +1 -1
  28. package/dist/style/theme/pink-dark/index.css +1 -1
  29. package/dist/style/theme/pink-light/index.css +1 -1
  30. package/dist/toolbar/RDGToolbar.d.ts +88 -0
  31. package/dist/toolbar/RDGToolbar.d.ts.map +1 -0
  32. package/dist/toolbar/RDGToolbarProvider.d.ts +6 -0
  33. package/dist/toolbar/RDGToolbarProvider.d.ts.map +1 -0
  34. package/dist/toolbar/RDGToolbarTarget.d.ts +7 -0
  35. package/dist/toolbar/RDGToolbarTarget.d.ts.map +1 -0
  36. package/dist/toolbar/controller.d.ts +29 -0
  37. package/dist/toolbar/controller.d.ts.map +1 -0
  38. package/dist/toolbar/export.d.ts +70 -0
  39. package/dist/toolbar/export.d.ts.map +1 -0
  40. package/dist/toolbar/icons.d.ts +22 -0
  41. package/dist/toolbar/icons.d.ts.map +1 -0
  42. package/dist/toolbar/index.d.ts +8 -0
  43. package/dist/toolbar/index.d.ts.map +1 -0
  44. package/dist/toolbar/runtime.d.ts.map +1 -0
  45. package/dist/toolbar/store.d.ts +20 -0
  46. package/dist/toolbar/store.d.ts.map +1 -0
  47. package/dist/toolbar/xlsx.d.ts +35 -0
  48. package/dist/toolbar/xlsx.d.ts.map +1 -0
  49. package/dist/toolbar.css +1 -0
  50. package/dist/toolbar.js +797 -0
  51. package/dist/types.d.ts +18 -0
  52. package/dist/types.d.ts.map +1 -1
  53. package/package.json +29 -11
  54. package/dist/column-visibility/RDGColumnVisibilityProvider.d.ts +0 -6
  55. package/dist/column-visibility/RDGColumnVisibilityProvider.d.ts.map +0 -1
  56. package/dist/column-visibility/RDGColumnVisibilityTarget.d.ts +0 -7
  57. package/dist/column-visibility/RDGColumnVisibilityTarget.d.ts.map +0 -1
  58. package/dist/column-visibility/RDGColumnVisibilityToolbar.d.ts +0 -9
  59. package/dist/column-visibility/RDGColumnVisibilityToolbar.d.ts.map +0 -1
  60. package/dist/column-visibility/controller.d.ts +0 -13
  61. package/dist/column-visibility/controller.d.ts.map +0 -1
  62. package/dist/column-visibility/index.d.ts +0 -7
  63. package/dist/column-visibility/index.d.ts.map +0 -1
  64. package/dist/column-visibility/runtime.d.ts.map +0 -1
  65. package/dist/column-visibility/store.d.ts +0 -20
  66. package/dist/column-visibility/store.d.ts.map +0 -1
  67. package/dist/column-visibility.css +0 -1
  68. package/dist/column-visibility.js +0 -426
  69. /package/dist/{column-visibility → toolbar}/runtime.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { TypeDataGridProps } from './types.js';
2
2
  import * as React from "react";
3
3
  export declare const RDG_SEARCH_TARGET_COMPONENT_MARKER: unique symbol;
4
- export declare const RDG_COLUMN_VISIBILITY_TARGET_COMPONENT_MARKER: unique symbol;
4
+ export declare const RDG_TOOLBAR_TARGET_COMPONENT_MARKER: unique symbol;
5
5
  export declare function isOptionalTargetType(type: unknown): boolean;
6
6
  export declare function findTargetGridElement(element: React.ReactElement<unknown>, isGridType: (type: unknown) => boolean): React.ReactElement<TypeDataGridProps> | null;
7
7
  export declare function markOptionalTargetType(type: unknown, marker: symbol): void;
@@ -1 +1 @@
1
- {"version":3,"file":"optional-target.d.ts","sourceRoot":"","sources":["../src/optional-target.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,kCAAkC,eAE9C,CAAC;AAEF,eAAO,MAAM,6CAA6C,eAEzD,CAAC;AAUF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAK3D;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,EACpC,UAAU,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,GACrC,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAkB9C;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAM1E"}
1
+ {"version":3,"file":"optional-target.d.ts","sourceRoot":"","sources":["../src/optional-target.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,kCAAkC,eAE9C,CAAC;AAEF,eAAO,MAAM,mCAAmC,eAE/C,CAAC;AAUF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAK3D;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,EACpC,UAAU,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,GACrC,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAkB9C;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAM1E"}
@@ -1,9 +1,9 @@
1
1
  export { RDGProvider } from './RDGProvider.js';
2
2
  export { RDGTarget } from './RDGTarget.js';
3
3
  export { RDGSearchBar, RDGSearchProvider, RDGSearchTarget, } from '../search/index.js';
4
- export { RDGColumnVisibilityProvider, RDGColumnVisibilityTarget, RDGColumnVisibilityToolbar, } from '../column-visibility/index.js';
4
+ export { RDGToolbar, RDGToolbarProvider, RDGToolbarTarget, } from '../toolbar/index.js';
5
5
  export type { RDGProviderProps } from './RDGProvider.js';
6
6
  export type { RDGTargetProps } from './RDGTarget.js';
7
7
  export type { RDGSearchBarProps, RDGSearchProviderProps, RDGSearchTargetProps, } from '../search/index.js';
8
- export type { RDGColumnVisibilityProviderProps, RDGColumnVisibilityTargetProps, RDGColumnVisibilityToolbarProps, } from '../column-visibility/index.js';
8
+ export type { RDGToolbarExportFormat, RDGToolbarExportScope, RDGToolbarLabels, RDGToolbarProps, RDGToolbarProviderProps, RDGToolbarTargetProps, } from '../toolbar/index.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,gCAAgC,EAChC,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RDGSearchTarget.d.ts","sourceRoot":"","sources":["../../src/search/RDGSearchTarget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAe9D,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;CACjD,CAAC;AAEF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,oBAAoB,GAC1B,KAAK,CAAC,YAAY,CAoDpB"}
1
+ {"version":3,"file":"RDGSearchTarget.d.ts","sourceRoot":"","sources":["../../src/search/RDGSearchTarget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAe9D,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;CACjD,CAAC;AAEF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,oBAAoB,GAC1B,KAAK,CAAC,YAAY,CAmDpB"}
package/dist/search.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import "./search.css";
3
3
  import * as B from "react";
4
4
  import Q from "./index.js";
5
- const Z = B, u = Z.default ?? B, U = u.Children, ee = u.Component, te = u.Fragment, re = u.PureComponent, k = u.cloneElement, q = u.createContext, R = u.createElement, ne = u.createRef, oe = u.forwardRef, T = u.isValidElement, se = u.lazy, ae = u.memo, K = u.useCallback, $ = u.useContext, ue = u.useDebugValue, ce = u.useDeferredValue, x = u.useEffect, ie = u.useId, le = u.useImperativeHandle, fe = u.useInsertionEffect, de = u.useLayoutEffect, A = u.useMemo, Se = u.useReducer, he = u.useRef, W = u.useState, pe = u.use, me = u.version, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
+ const Z = B, c = Z.default ?? B, U = c.Children, ee = c.Component, te = c.Fragment, re = c.PureComponent, k = c.cloneElement, q = c.createContext, R = c.createElement, ne = c.createRef, oe = c.forwardRef, C = c.isValidElement, se = c.lazy, ae = c.memo, K = c.useCallback, $ = c.useContext, ce = c.useDebugValue, ue = c.useDeferredValue, x = c.useEffect, ie = c.useId, le = c.useImperativeHandle, fe = c.useInsertionEffect, de = c.useLayoutEffect, A = c.useMemo, Se = c.useReducer, he = c.useRef, W = c.useState, pe = c.use, me = c.version, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
6
  __proto__: null,
7
7
  Children: U,
8
8
  Component: ee,
@@ -12,16 +12,16 @@ const Z = B, u = Z.default ?? B, U = u.Children, ee = u.Component, te = u.Fragme
12
12
  createContext: q,
13
13
  createElement: R,
14
14
  createRef: ne,
15
- default: u,
15
+ default: c,
16
16
  forwardRef: oe,
17
- isValidElement: T,
17
+ isValidElement: C,
18
18
  lazy: se,
19
19
  memo: ae,
20
20
  use: pe,
21
21
  useCallback: K,
22
22
  useContext: $,
23
- useDebugValue: ue,
24
- useDeferredValue: ce,
23
+ useDebugValue: ce,
24
+ useDeferredValue: ue,
25
25
  useEffect: x,
26
26
  useId: ie,
27
27
  useImperativeHandle: le,
@@ -57,53 +57,53 @@ function ge(e) {
57
57
  });
58
58
  }), r;
59
59
  }
60
- var b = { exports: {} }, w = {};
60
+ var T = { exports: {} }, w = {};
61
61
  const F = /* @__PURE__ */ ge(Ee);
62
- var M;
62
+ var j;
63
63
  function _e() {
64
- if (M) return w;
65
- M = 1;
64
+ if (j) return w;
65
+ j = 1;
66
66
  var e = F;
67
- function n(c, l) {
68
- return c === l && (c !== 0 || 1 / c === 1 / l) || c !== c && l !== l;
67
+ function n(u, l) {
68
+ return u === l && (u !== 0 || 1 / u === 1 / l) || u !== u && l !== l;
69
69
  }
70
70
  var r = typeof Object.is == "function" ? Object.is : n, o = e.useState, s = e.useEffect, d = e.useLayoutEffect, S = e.useDebugValue;
71
- function p(c, l) {
71
+ function p(u, l) {
72
72
  var i = l(), t = o({ inst: { value: i, getSnapshot: l } }), a = t[0].inst, f = t[1];
73
73
  return d(
74
74
  function() {
75
75
  a.value = i, a.getSnapshot = l, h(a) && f({ inst: a });
76
76
  },
77
- [c, i, l]
77
+ [u, i, l]
78
78
  ), s(
79
79
  function() {
80
- return h(a) && f({ inst: a }), c(function() {
80
+ return h(a) && f({ inst: a }), u(function() {
81
81
  h(a) && f({ inst: a });
82
82
  });
83
83
  },
84
- [c]
84
+ [u]
85
85
  ), S(i), i;
86
86
  }
87
- function h(c) {
88
- var l = c.getSnapshot;
89
- c = c.value;
87
+ function h(u) {
88
+ var l = u.getSnapshot;
89
+ u = u.value;
90
90
  try {
91
91
  var i = l();
92
- return !r(c, i);
92
+ return !r(u, i);
93
93
  } catch {
94
94
  return !0;
95
95
  }
96
96
  }
97
- function E(c, l) {
97
+ function E(u, l) {
98
98
  return l();
99
99
  }
100
100
  var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? E : p;
101
101
  return w.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : m, w;
102
102
  }
103
103
  var L = {};
104
- var j;
104
+ var I;
105
105
  function ve() {
106
- return j || (j = 1, process.env.NODE_ENV !== "production" && (function() {
106
+ return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
107
107
  function e(i, t) {
108
108
  return i === t && (i !== 0 || 1 / i === 1 / t) || i !== i && t !== t;
109
109
  }
@@ -112,11 +112,11 @@ function ve() {
112
112
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
113
113
  ));
114
114
  var a = t();
115
- if (!c) {
115
+ if (!u) {
116
116
  var f = t();
117
117
  d(a, f) || (console.error(
118
118
  "The result of getSnapshot should be cached to avoid an infinite loop"
119
- ), c = !0);
119
+ ), u = !0);
120
120
  }
121
121
  f = S({
122
122
  inst: { value: a, getSnapshot: t }
@@ -150,19 +150,19 @@ function ve() {
150
150
  return t();
151
151
  }
152
152
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
153
- var s = F, d = typeof Object.is == "function" ? Object.is : e, S = s.useState, p = s.useEffect, h = s.useLayoutEffect, E = s.useDebugValue, m = !1, c = !1, l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : n;
153
+ var s = F, d = typeof Object.is == "function" ? Object.is : e, S = s.useState, p = s.useEffect, h = s.useLayoutEffect, E = s.useDebugValue, m = !1, u = !1, l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : n;
154
154
  L.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : l, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
155
155
  })()), L;
156
156
  }
157
- var V;
157
+ var P;
158
158
  function ye() {
159
- return V || (V = 1, process.env.NODE_ENV === "production" ? b.exports = _e() : b.exports = ve()), b.exports;
159
+ return P || (P = 1, process.env.NODE_ENV === "production" ? T.exports = _e() : T.exports = ve()), T.exports;
160
160
  }
161
161
  var G = ye();
162
- const P = [], C = "default";
162
+ const V = [], b = "default";
163
163
  function Re(e) {
164
- let n = e, r = e, o = P, s = C, d = null;
165
- const S = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Map(), c = () => {
164
+ let n = e, r = e, o = V, s = b, d = null;
165
+ const S = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Map(), u = () => {
166
166
  d != null && (clearTimeout(d), d = null);
167
167
  }, l = (t) => {
168
168
  d = null, !Object.is(n, t) && (n = t, S.forEach((a) => a()));
@@ -171,32 +171,32 @@ function Re(e) {
171
171
  (_) => _.columns.filter((O) => t.has(O) ? !1 : (t.add(O), !0))
172
172
  );
173
173
  f.length === o.length && f.every((_, O) => _ === o[O]) || (o = f, h.forEach((_) => _()));
174
- const v = a[0]?.theme ?? C;
174
+ const v = a[0]?.theme ?? b;
175
175
  Object.is(s, v) || (s = v, E.forEach((_) => _()));
176
176
  };
177
177
  return {
178
178
  dispose() {
179
- c(), S.clear(), p.clear(), h.clear(), E.clear(), m.clear();
179
+ u(), S.clear(), p.clear(), h.clear(), E.clear(), m.clear();
180
180
  },
181
181
  getColumnsSnapshot: () => o,
182
- getColumnsServerSnapshot: () => P,
182
+ getColumnsServerSnapshot: () => V,
183
183
  getDraftSnapshot: () => r,
184
184
  getDraftServerSnapshot: () => e,
185
185
  getThemeSnapshot: () => s,
186
- getThemeServerSnapshot: () => C,
186
+ getThemeServerSnapshot: () => b,
187
187
  getSnapshot: () => n,
188
188
  getServerSnapshot: () => e,
189
189
  registerTarget(t, a) {
190
190
  const f = /* @__PURE__ */ Symbol();
191
191
  return m.set(f, {
192
192
  columns: t,
193
- theme: String(a ?? C)
193
+ theme: String(a ?? b)
194
194
  }), i(), () => {
195
195
  m.delete(f) && i();
196
196
  };
197
197
  },
198
198
  setDraftValue(t, a) {
199
- if (c(), Object.is(r, t) || (r = t, p.forEach((f) => f())), a != null) {
199
+ if (u(), Object.is(r, t) || (r = t, p.forEach((f) => f())), a != null) {
200
200
  if (a <= 0) {
201
201
  l(t);
202
202
  return;
@@ -205,7 +205,7 @@ function Re(e) {
205
205
  }
206
206
  },
207
207
  setValue(t) {
208
- c(), Object.is(r, t) || (r = t, p.forEach((a) => a())), l(t);
208
+ u(), Object.is(r, t) || (r = t, p.forEach((a) => a())), l(t);
209
209
  },
210
210
  subscribe(t) {
211
211
  return S.add(t), () => S.delete(t);
@@ -221,11 +221,11 @@ function Re(e) {
221
221
  }
222
222
  };
223
223
  }
224
- const Y = q(
224
+ const z = q(
225
225
  null
226
226
  );
227
227
  function y() {
228
- const e = $(Y);
228
+ const e = $(z);
229
229
  if (!e)
230
230
  throw new Error(
231
231
  "RDG search components must be rendered inside RDGSearchProvider."
@@ -240,7 +240,7 @@ function Oe() {
240
240
  e.getServerSnapshot
241
241
  );
242
242
  }
243
- function be() {
243
+ function Te() {
244
244
  const e = y();
245
245
  return G.useSyncExternalStore(
246
246
  e.subscribeDraft,
@@ -248,7 +248,7 @@ function be() {
248
248
  e.getDraftServerSnapshot
249
249
  );
250
250
  }
251
- function Ce() {
251
+ function be() {
252
252
  const e = y();
253
253
  return G.useSyncExternalStore(
254
254
  e.subscribeColumns,
@@ -264,20 +264,20 @@ function De() {
264
264
  e.getThemeServerSnapshot
265
265
  );
266
266
  }
267
- const Te = /* @__PURE__ */ Symbol.for(
267
+ const Ce = /* @__PURE__ */ Symbol.for(
268
268
  "@geovi/the-datagrid/search-runtime"
269
269
  );
270
270
  let D;
271
- function I() {
271
+ function M() {
272
272
  if (D) return D;
273
- const e = Q[Te];
273
+ const e = Q[Ce];
274
274
  if (!e)
275
275
  throw new Error(
276
276
  "The optional search entry requires a matching the-datagrid core runtime."
277
277
  );
278
278
  return D = e, D;
279
279
  }
280
- const Ge = I().SearchBar;
280
+ const Ge = M().SearchBar;
281
281
  function He(e) {
282
282
  const {
283
283
  ariaLabel: n = "Search all fields",
@@ -285,13 +285,13 @@ function He(e) {
285
285
  clearLabel: o = "Clear search",
286
286
  debounceMs: s = 150,
287
287
  placeholder: d = "Search all fields"
288
- } = e, S = y(), p = be(), h = Ce(), E = De(), m = K(
289
- (c, l) => {
288
+ } = e, S = y(), p = Te(), h = be(), E = De(), m = K(
289
+ (u, l) => {
290
290
  if (l.immediate) {
291
- S.setValue(c);
291
+ S.setValue(u);
292
292
  return;
293
293
  }
294
- S.setDraftValue(c, l.commit ? s : null);
294
+ S.setDraftValue(u, l.commit ? s : null);
295
295
  },
296
296
  [s, S]
297
297
  );
@@ -310,16 +310,16 @@ function He(e) {
310
310
  }
311
311
  );
312
312
  }
313
- const z = /* @__PURE__ */ Symbol.for(
313
+ const Y = /* @__PURE__ */ Symbol.for(
314
314
  "@geovi/the-datagrid/search-target-component"
315
315
  ), we = /* @__PURE__ */ Symbol.for(
316
- "@geovi/the-datagrid/column-visibility-target-component"
316
+ "@geovi/the-datagrid/toolbar-target-component"
317
317
  );
318
318
  function H(e, n) {
319
319
  return typeof e != "function" && typeof e != "object" || !e ? !1 : e[n] === !0;
320
320
  }
321
321
  function Le(e) {
322
- return H(e, z) || H(e, we);
322
+ return H(e, Y) || H(e, we);
323
323
  }
324
324
  function xe(e, n) {
325
325
  let r = e;
@@ -329,7 +329,7 @@ function xe(e, n) {
329
329
  return r;
330
330
  if (!Le(r.type)) return null;
331
331
  const s = r.props.children;
332
- if (!T(s)) return null;
332
+ if (!C(s)) return null;
333
333
  r = s;
334
334
  }
335
335
  return null;
@@ -337,25 +337,25 @@ function xe(e, n) {
337
337
  function Ae(e, n) {
338
338
  typeof e != "function" && typeof e != "object" || !e || Object.defineProperty(e, n, { value: !0 });
339
339
  }
340
- const Ie = /* @__PURE__ */ Symbol.for(
340
+ const Me = /* @__PURE__ */ Symbol.for(
341
341
  "@geovi/the-datagrid/search-target"
342
342
  );
343
343
  function X(e) {
344
- return typeof e != "function" && typeof e != "object" || !e ? !1 : e[Ie] === !0;
344
+ return typeof e != "function" && typeof e != "object" || !e ? !1 : e[Me] === !0;
345
345
  }
346
346
  const N = /* @__PURE__ */ new WeakMap();
347
- function Me(e, n) {
347
+ function je(e, n) {
348
348
  let r = N.get(e);
349
349
  r || (r = /* @__PURE__ */ new WeakMap(), N.set(e, r));
350
350
  let o = r.get(n);
351
- return o || (o = I().buildIndex(e, n), r.set(n, o)), o;
351
+ return o || (o = M().buildIndex(e, n), r.set(n, o)), o;
352
352
  }
353
- function je(e, n) {
354
- return I().filterIndex(e, n);
353
+ function Ie(e, n) {
354
+ return M().filterIndex(e, n);
355
355
  }
356
356
  function J(e) {
357
- const { children: n } = e, r = e.__rdgColumnVisibilityController, o = y(), d = Oe().trim();
358
- if (!T(n))
357
+ const { children: n } = e, r = e.__rdgToolbarController, o = y(), d = Oe().trim();
358
+ if (!C(n))
359
359
  throw new Error("RDGSearchTarget expects exactly one ReactDataGrid child.");
360
360
  const S = xe(n, X);
361
361
  if (!S)
@@ -369,9 +369,9 @@ function J(e) {
369
369
  __rdgSearchController: A(
370
370
  () => ({
371
371
  value: d,
372
- filterRows(c, l) {
373
- return je(
374
- Me(c, l),
372
+ filterRows(u, l) {
373
+ return Ie(
374
+ je(u, l),
375
375
  d
376
376
  );
377
377
  }
@@ -379,25 +379,25 @@ function J(e) {
379
379
  [d]
380
380
  )
381
381
  };
382
- return r !== void 0 && (m.__rdgColumnVisibilityController = r), k(
382
+ return r !== void 0 && (m.__rdgToolbarController = r), k(
383
383
  n,
384
384
  m
385
385
  );
386
386
  }
387
- Ae(J, z);
388
- function Ve(e) {
387
+ Ae(J, Y);
388
+ function Pe(e) {
389
389
  const { children: n, defaultValue: r } = e, [o] = W(() => Re(r));
390
- return x(() => () => o.dispose(), [o]), /* @__PURE__ */ R(Y.Provider, { value: o }, n);
390
+ return x(() => () => o.dispose(), [o]), /* @__PURE__ */ R(z.Provider, { value: o }, n);
391
391
  }
392
392
  function Ne(e) {
393
393
  const { children: n, defaultValue: r = "" } = e, o = A(
394
394
  () => U.map(
395
395
  n,
396
- (s) => T(s) && X(s.type) ? /* @__PURE__ */ R(J, null, s) : s
396
+ (s) => C(s) && X(s.type) ? /* @__PURE__ */ R(J, null, s) : s
397
397
  ),
398
398
  [n]
399
399
  );
400
- return /* @__PURE__ */ R(Ve, { defaultValue: r }, o);
400
+ return /* @__PURE__ */ R(Pe, { defaultValue: r }, o);
401
401
  }
402
402
  export {
403
403
  He as RDGSearchBar,