@object-ui/plugin-aggrid 3.1.5 → 3.3.1

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 (103) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +20 -0
  3. package/dist/AddressField-CP-8JJvR.js +98 -0
  4. package/dist/{AgGridImpl-BD5cjyc0.js → AgGridImpl-DJWnS8p3.js} +2 -2
  5. package/dist/AutoNumberField-DCL2eUJj.js +14 -0
  6. package/dist/{AvatarField-IZTLB0Ye.js → AvatarField-CpFxJRdO.js} +4 -3
  7. package/dist/{BooleanField-DRzAZhSq.js → BooleanField-Chphr8cB.js} +2 -1
  8. package/dist/CodeField-BWngVIw1.js +23 -0
  9. package/dist/ColorField-GygyYArR.js +38 -0
  10. package/dist/CurrencyField-O8Pn59RO.js +49 -0
  11. package/dist/DateField-u6U8wmvI.js +22 -0
  12. package/dist/DateTimeField-D1z1Ovvy.js +30 -0
  13. package/dist/EmailField-IOcDmGjJ.js +26 -0
  14. package/dist/FileField-D3mZIrJ1.js +158 -0
  15. package/dist/FormulaField-MuyWzQx0.js +17 -0
  16. package/dist/GeolocationField-BfhC7QLw.js +161 -0
  17. package/dist/GridField-gN34gk4b.js +49 -0
  18. package/dist/ImageField-BZfSFwmJ.js +75 -0
  19. package/dist/LocationField-B-zwfw3h.js +36 -0
  20. package/dist/{LookupField-Dmzju5Q0.js → LookupField-Cms1Cu_l.js} +336 -337
  21. package/dist/{MasterDetailField-CPLHbe_Y.js → MasterDetailField-DGUmvg2f.js} +5 -4
  22. package/dist/NumberField-BV5sKwZ7.js +27 -0
  23. package/dist/{ObjectAgGridImpl-4uephlvO.js → ObjectAgGridImpl-yiHlXYgp.js} +5763 -5763
  24. package/dist/ObjectField-DJ5s3ciA.js +50 -0
  25. package/dist/{PasswordField-d6E-vKBI.js → PasswordField-BJboeBJY.js} +3 -2
  26. package/dist/PercentField-DO3be_bL.js +61 -0
  27. package/dist/PhoneField-CT6XcO6O.js +26 -0
  28. package/dist/{QRCodeField-BIQhc73N.js → QRCodeField-COLyc5iQ.js} +31 -30
  29. package/dist/{RatingField-BKAGmlzh.js → RatingField-B2momIna.js} +3 -2
  30. package/dist/RichTextField-C7qzDPJy.js +33 -0
  31. package/dist/SelectField-oo6vnNhQ.js +36 -0
  32. package/dist/{SignatureField-fFEb0h_C.js → SignatureField-DUgoK09r.js} +3 -2
  33. package/dist/{SliderField-BlAlK3g2.js → SliderField-DrggtBSX.js} +2 -1
  34. package/dist/SummaryField-DuMsFoY5.js +22 -0
  35. package/dist/TextAreaField-CLzzmPce.js +37 -0
  36. package/dist/TextField-CZE7SzK4.js +30 -0
  37. package/dist/TimeField-Bha4cayv.js +22 -0
  38. package/dist/UrlField-Dff4WLlN.js +31 -0
  39. package/dist/UserField-eT5njHwQ.js +77 -0
  40. package/dist/VectorField-BHe8lDOH.js +34 -0
  41. package/dist/createLucideIcon-C_5JZ35b.js +42 -0
  42. package/dist/{image-Cm7ExMY2.js → image-DmzU2ETO.js} +1 -1
  43. package/dist/index.css +1 -1
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +2 -2
  46. package/dist/index.umd.cjs +78 -78
  47. package/dist/{jsx-runtime-CGDkM_Jn.js → jsx-runtime-CXSCp6pT.js} +30 -39
  48. package/dist/{plus-CsEgF66K.js → plus-bvZ2f9T_.js} +1 -1
  49. package/dist/rolldown-runtime-CkxV0rQ3.js +14 -0
  50. package/dist/{upload-B1x-ueFd.js → upload-BdzwEMeV.js} +1 -1
  51. package/dist/useFieldTranslation-CfXaJRC4.js +305 -0
  52. package/dist/{x-Bwhzfvtg.js → x-98xe-fYG.js} +1 -1
  53. package/package.json +36 -13
  54. package/.turbo/turbo-build.log +0 -68
  55. package/OBJECT_AGGRID_CN.md +0 -483
  56. package/QUICKSTART.md +0 -186
  57. package/dist/AddressField-DKqaE9pD.js +0 -93
  58. package/dist/AutoNumberField-0RU2dNKe.js +0 -13
  59. package/dist/CodeField-RWhnDMyL.js +0 -22
  60. package/dist/ColorField-B-YAFXdz.js +0 -37
  61. package/dist/CurrencyField-Bu80a-sI.js +0 -51
  62. package/dist/DateField-CV-NpLbM.js +0 -21
  63. package/dist/DateTimeField--YTsgTjw.js +0 -32
  64. package/dist/EmailField-B-3fWJsH.js +0 -28
  65. package/dist/FileField-DxxdESfc.js +0 -160
  66. package/dist/FormulaField-MQXJZOep.js +0 -13
  67. package/dist/GeolocationField-BzKgcWLN.js +0 -156
  68. package/dist/GridField-DHsGo9l2.js +0 -51
  69. package/dist/ImageField-DK7sUV6b.js +0 -77
  70. package/dist/LocationField-DSvhU9Dz.js +0 -35
  71. package/dist/NumberField-JaSlPVXs.js +0 -26
  72. package/dist/ObjectField-FzUYlu-m.js +0 -52
  73. package/dist/PercentField-D2_kMuC_.js +0 -63
  74. package/dist/PhoneField-DOaMivd6.js +0 -28
  75. package/dist/RichTextField-D4FIV9V8.js +0 -32
  76. package/dist/SelectField-C2gtlnLZ.js +0 -30
  77. package/dist/SummaryField-Dy2Kkj6M.js +0 -18
  78. package/dist/TextAreaField-BCUkjKTc.js +0 -36
  79. package/dist/TextField-XWOnbUrk.js +0 -29
  80. package/dist/TimeField-CZdzdqOO.js +0 -21
  81. package/dist/UrlField-sq1mpRoG.js +0 -33
  82. package/dist/UserField-Dqk38Arc.js +0 -79
  83. package/dist/VectorField-CY70VLiW.js +0 -35
  84. package/dist/createLucideIcon-CWx7zIL1.js +0 -39
  85. package/src/AgGridImpl.tsx +0 -405
  86. package/src/ObjectAgGridImpl.tsx +0 -509
  87. package/src/VirtualScrolling.ts +0 -74
  88. package/src/field-renderers.test.tsx +0 -383
  89. package/src/field-renderers.tsx +0 -224
  90. package/src/index.test.ts +0 -139
  91. package/src/index.tsx +0 -514
  92. package/src/object-aggrid.test.ts +0 -99
  93. package/src/object-aggrid.types.ts +0 -123
  94. package/src/types.ts +0 -184
  95. package/tsconfig.json +0 -17
  96. package/vite.config.ts +0 -63
  97. /package/dist/{src → packages/plugin-aggrid/src}/AgGridImpl.d.ts +0 -0
  98. /package/dist/{src → packages/plugin-aggrid/src}/ObjectAgGridImpl.d.ts +0 -0
  99. /package/dist/{src → packages/plugin-aggrid/src}/VirtualScrolling.d.ts +0 -0
  100. /package/dist/{src → packages/plugin-aggrid/src}/field-renderers.d.ts +0 -0
  101. /package/dist/{src → packages/plugin-aggrid/src}/index.d.ts +0 -0
  102. /package/dist/{src → packages/plugin-aggrid/src}/object-aggrid.types.d.ts +0 -0
  103. /package/dist/{src → packages/plugin-aggrid/src}/types.d.ts +0 -0
@@ -1,15 +1,6 @@
1
- //#region \0rolldown/runtime.js
2
- var e = Object.defineProperty, t = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), n = (t, n) => {
3
- let r = {};
4
- for (var i in t) e(r, i, {
5
- get: t[i],
6
- enumerable: !0
7
- });
8
- return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
9
- }, r = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
10
- if (typeof require < "u") return require.apply(this, arguments);
11
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
12
- }), i = /* @__PURE__ */ t(((e) => {
1
+ import { r as e, t } from "./rolldown-runtime-CkxV0rQ3.js";
2
+ //#region ../../node_modules/.pnpm/react@19.2.5/node_modules/react/cjs/react-jsx-runtime.production.js
3
+ var n = /* @__PURE__ */ t(((e) => {
13
4
  var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
14
5
  function r(e, n, r) {
15
6
  var i = null;
@@ -24,9 +15,9 @@ var e = Object.defineProperty, t = (e, t) => () => (t || e((t = { exports: {} })
24
15
  };
25
16
  }
26
17
  e.Fragment = n, e.jsx = r, e.jsxs = r;
27
- })), a = /* @__PURE__ */ t(((e) => {
18
+ })), r = /* @__PURE__ */ t(((t) => {
28
19
  process.env.NODE_ENV !== "production" && (function() {
29
- function t(e) {
20
+ function n(e) {
30
21
  if (e == null) return null;
31
22
  if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
32
23
  if (typeof e == "string") return e;
@@ -43,39 +34,39 @@ var e = Object.defineProperty, t = (e, t) => () => (t || e((t = { exports: {} })
43
34
  case S: return e.displayName || "Context";
44
35
  case x: return (e._context.displayName || "Context") + ".Consumer";
45
36
  case C:
46
- var n = e.render;
47
- return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
48
- case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
37
+ var t = e.render;
38
+ return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
39
+ case E: return t = e.displayName || null, t === null ? n(e.type) || "Memo" : t;
49
40
  case D:
50
- n = e._payload, e = e._init;
41
+ t = e._payload, e = e._init;
51
42
  try {
52
- return t(e(n));
43
+ return n(e(t));
53
44
  } catch {}
54
45
  }
55
46
  return null;
56
47
  }
57
- function n(e) {
48
+ function r(e) {
58
49
  return "" + e;
59
50
  }
60
51
  function i(e) {
61
52
  try {
62
- n(e);
53
+ r(e);
63
54
  var t = !1;
64
55
  } catch {
65
56
  t = !0;
66
57
  }
67
58
  if (t) {
68
59
  t = console;
69
- var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
70
- return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
60
+ var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
61
+ return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
71
62
  }
72
63
  }
73
64
  function a(e) {
74
65
  if (e === v) return "<>";
75
66
  if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
76
67
  try {
77
- var n = t(e);
78
- return n ? "<" + n + ">" : "<...>";
68
+ var t = n(e);
69
+ return t ? "<" + t + ">" : "<...>";
79
70
  } catch {
80
71
  return "<...>";
81
72
  }
@@ -104,7 +95,7 @@ var e = Object.defineProperty, t = (e, t) => () => (t || e((t = { exports: {} })
104
95
  });
105
96
  }
106
97
  function u() {
107
- var e = t(this.type);
98
+ var e = n(this.type);
108
99
  return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
109
100
  }
110
101
  function d(e, t, n, r, i, a) {
@@ -143,22 +134,22 @@ var e = Object.defineProperty, t = (e, t) => () => (t || e((t = { exports: {} })
143
134
  value: a
144
135
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
145
136
  }
146
- function f(e, n, r, a, s, u) {
147
- var f = n.children;
137
+ function f(e, t, r, a, s, u) {
138
+ var f = t.children;
148
139
  if (f !== void 0) if (a) if (M(f)) {
149
140
  for (a = 0; a < f.length; a++) p(f[a]);
150
141
  Object.freeze && Object.freeze(f);
151
142
  } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
152
143
  else p(f);
153
- if (j.call(n, "key")) {
154
- f = t(e);
155
- var m = Object.keys(n).filter(function(e) {
144
+ if (j.call(t, "key")) {
145
+ f = n(e);
146
+ var m = Object.keys(t).filter(function(e) {
156
147
  return e !== "key";
157
148
  });
158
149
  a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
159
150
  }
160
- if (f = null, r !== void 0 && (i(r), f = "" + r), c(n) && (i(n.key), f = "" + n.key), "key" in n) for (var h in r = {}, n) h !== "key" && (r[h] = n[h]);
161
- else r = n;
151
+ if (f = null, r !== void 0 && (i(r), f = "" + r), c(t) && (i(t.key), f = "" + t.key), "key" in t) for (var h in r = {}, t) h !== "key" && (r[h] = t[h]);
152
+ else r = t;
162
153
  return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
163
154
  }
164
155
  function p(e) {
@@ -167,23 +158,23 @@ var e = Object.defineProperty, t = (e, t) => () => (t || e((t = { exports: {} })
167
158
  function m(e) {
168
159
  return typeof e == "object" && !!e && e.$$typeof === g;
169
160
  }
170
- var h = r("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
161
+ var h = e("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
171
162
  return null;
172
163
  };
173
164
  h = { react_stack_bottom_frame: function(e) {
174
165
  return e();
175
166
  } };
176
167
  var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(a(s)), R = {};
177
- e.Fragment = v, e.jsx = function(e, t, n) {
168
+ t.Fragment = v, t.jsx = function(e, t, n) {
178
169
  var r = 1e4 > A.recentlyCreatedOwnerStacks++;
179
170
  return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
180
- }, e.jsxs = function(e, t, n) {
171
+ }, t.jsxs = function(e, t, n) {
181
172
  var r = 1e4 > A.recentlyCreatedOwnerStacks++;
182
173
  return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
183
174
  };
184
175
  })();
185
- })), o = /* @__PURE__ */ t(((e, t) => {
186
- process.env.NODE_ENV === "production" ? t.exports = i() : t.exports = a();
176
+ })), i = /* @__PURE__ */ t(((e, t) => {
177
+ process.env.NODE_ENV === "production" ? t.exports = n() : t.exports = r();
187
178
  }));
188
179
  //#endregion
189
- export { r as i, t as n, n as r, o as t };
180
+ export { i as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-CWx7zIL1.js";
1
+ import { t as e } from "./createLucideIcon-C_5JZ35b.js";
2
2
  var t = e("plus", [["path", {
3
3
  d: "M5 12h14",
4
4
  key: "1ays0h"
@@ -0,0 +1,14 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.defineProperty, t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), n = (t, n) => {
3
+ let r = {};
4
+ for (var i in t) e(r, i, {
5
+ get: t[i],
6
+ enumerable: !0
7
+ });
8
+ return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, r = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
10
+ if (typeof require < "u") return require.apply(this, arguments);
11
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
12
+ });
13
+ //#endregion
14
+ export { n, r, t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-CWx7zIL1.js";
1
+ import { t as e } from "./createLucideIcon-C_5JZ35b.js";
2
2
  var t = e("upload", [
3
3
  ["path", {
4
4
  d: "M12 3v12",
@@ -0,0 +1,305 @@
1
+ import { r as e, t } from "./rolldown-runtime-CkxV0rQ3.js";
2
+ import { createContext as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
3
+ //#region ../../node_modules/.pnpm/react-i18next@17.0.6_i18next@26.0.8_typescript@6.0.3__react-dom@19.2.5_react@19.2.5__react@19.2.5_typescript@6.0.3/node_modules/react-i18next/dist/es/utils.js
4
+ var l = (e, t, n, r) => {
5
+ let i = [n, {
6
+ code: t,
7
+ ...r || {}
8
+ }];
9
+ if (e?.services?.logger?.forward) return e.services.logger.forward(i, "warn", "react-i18next::", !0);
10
+ g(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...i) : console?.warn && console.warn(...i);
11
+ }, u = {}, d = (e, t, n, r) => {
12
+ g(n) && u[n] || (g(n) && (u[n] = /* @__PURE__ */ new Date()), l(e, t, n, r));
13
+ }, f = (e, t) => () => {
14
+ if (e.isInitialized) t();
15
+ else {
16
+ let n = () => {
17
+ setTimeout(() => {
18
+ e.off("initialized", n);
19
+ }, 0), t();
20
+ };
21
+ e.on("initialized", n);
22
+ }
23
+ }, p = (e, t, n) => {
24
+ e.loadNamespaces(t, f(e, n));
25
+ }, m = (e, t, n, r) => {
26
+ if (g(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return p(e, n, r);
27
+ n.forEach((t) => {
28
+ e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
29
+ }), e.loadLanguages(t, f(e, r));
30
+ }, h = (e, t, n = {}) => !t.languages || !t.languages.length ? (d(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
31
+ lng: n.lng,
32
+ precheck: (t, r) => {
33
+ if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1;
34
+ }
35
+ }), g = (e) => typeof e == "string", _ = (e) => typeof e == "object" && !!e, v = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, y = {
36
+ "&amp;": "&",
37
+ "&#38;": "&",
38
+ "&lt;": "<",
39
+ "&#60;": "<",
40
+ "&gt;": ">",
41
+ "&#62;": ">",
42
+ "&apos;": "'",
43
+ "&#39;": "'",
44
+ "&quot;": "\"",
45
+ "&#34;": "\"",
46
+ "&nbsp;": " ",
47
+ "&#160;": " ",
48
+ "&copy;": "©",
49
+ "&#169;": "©",
50
+ "&reg;": "®",
51
+ "&#174;": "®",
52
+ "&hellip;": "…",
53
+ "&#8230;": "…",
54
+ "&#x2F;": "/",
55
+ "&#47;": "/"
56
+ }, b = (e) => y[e], x = {
57
+ bindI18n: "languageChanged",
58
+ bindI18nStore: "",
59
+ transEmptyNodeValue: "",
60
+ transSupportBasicHtmlNodes: !0,
61
+ transWrapTextNodes: "",
62
+ transKeepBasicHtmlNodesFor: [
63
+ "br",
64
+ "strong",
65
+ "i",
66
+ "p"
67
+ ],
68
+ useSuspense: !0,
69
+ unescape: (e) => e.replace(v, b),
70
+ transDefaultProps: void 0
71
+ }, S = () => x, C, w = () => C, T = n(), E = class {
72
+ constructor() {
73
+ this.usedNamespaces = {};
74
+ }
75
+ addUsedNamespaces(e) {
76
+ e.forEach((e) => {
77
+ this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
78
+ });
79
+ }
80
+ getUsedNamespaces() {
81
+ return Object.keys(this.usedNamespaces);
82
+ }
83
+ }, D = /* @__PURE__ */ t(((t) => {
84
+ var n = e("react");
85
+ function r(e, t) {
86
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
87
+ }
88
+ var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
89
+ function l(e, t) {
90
+ var n = t(), r = a({ inst: {
91
+ value: n,
92
+ getSnapshot: t
93
+ } }), i = r[0].inst, l = r[1];
94
+ return s(function() {
95
+ i.value = n, i.getSnapshot = t, u(i) && l({ inst: i });
96
+ }, [
97
+ e,
98
+ n,
99
+ t
100
+ ]), o(function() {
101
+ return u(i) && l({ inst: i }), e(function() {
102
+ u(i) && l({ inst: i });
103
+ });
104
+ }, [e]), c(n), n;
105
+ }
106
+ function u(e) {
107
+ var t = e.getSnapshot;
108
+ e = e.value;
109
+ try {
110
+ var n = t();
111
+ return !i(e, n);
112
+ } catch {
113
+ return !0;
114
+ }
115
+ }
116
+ function d(e, t) {
117
+ return t();
118
+ }
119
+ var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
120
+ t.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
121
+ })), O = /* @__PURE__ */ t(((t) => {
122
+ process.env.NODE_ENV !== "production" && (function() {
123
+ function n(e, t) {
124
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
125
+ }
126
+ function r(e, t) {
127
+ f || o.startTransition === void 0 || (f = !0, console.error("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."));
128
+ var n = t();
129
+ if (!p) {
130
+ var r = t();
131
+ s(n, r) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
132
+ }
133
+ r = c({ inst: {
134
+ value: n,
135
+ getSnapshot: t
136
+ } });
137
+ var a = r[0].inst, m = r[1];
138
+ return u(function() {
139
+ a.value = n, a.getSnapshot = t, i(a) && m({ inst: a });
140
+ }, [
141
+ e,
142
+ n,
143
+ t
144
+ ]), l(function() {
145
+ return i(a) && m({ inst: a }), e(function() {
146
+ i(a) && m({ inst: a });
147
+ });
148
+ }, [e]), d(n), n;
149
+ }
150
+ function i(e) {
151
+ var t = e.getSnapshot;
152
+ e = e.value;
153
+ try {
154
+ var n = t();
155
+ return !s(e, n);
156
+ } catch {
157
+ return !0;
158
+ }
159
+ }
160
+ function a(e, t) {
161
+ return t();
162
+ }
163
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
164
+ var o = e("react"), s = typeof Object.is == "function" ? Object.is : n, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : r;
165
+ t.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
166
+ })();
167
+ })), k = (/* @__PURE__ */ t(((e, t) => {
168
+ process.env.NODE_ENV === "production" ? t.exports = D() : t.exports = O();
169
+ })))(), A = {
170
+ t: (e, t) => {
171
+ if (g(t)) return t;
172
+ if (_(t) && g(t.defaultValue)) return t.defaultValue;
173
+ if (typeof e == "function") return "";
174
+ if (Array.isArray(e)) {
175
+ let t = e[e.length - 1];
176
+ return typeof t == "function" ? "" : t;
177
+ }
178
+ return e;
179
+ },
180
+ ready: !1
181
+ }, j = () => () => {}, M = (e, t = {}) => {
182
+ let { i18n: n } = t, { i18n: l, defaultNS: u } = i(T) || {}, f = n || l || w();
183
+ f && !f.reportNamespaces && (f.reportNamespaces = new E()), f || d(f, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
184
+ let _ = o(() => ({
185
+ ...S(),
186
+ ...f?.options?.react,
187
+ ...t
188
+ }), [f, t]), { useSuspense: v, keyPrefix: y } = _, b = e || u || f?.options?.defaultNS, x = g(b) ? [b] : b || ["translation"], C = o(() => x, x);
189
+ f?.reportNamespaces?.addUsedNamespaces?.(C);
190
+ let D = s(0), O = r((e) => {
191
+ if (!f) return j;
192
+ let { bindI18n: t, bindI18nStore: n } = _, r = () => {
193
+ D.current += 1, e();
194
+ };
195
+ return t && f.on(t, r), n && f.store.on(n, r), () => {
196
+ t && t.split(" ").forEach((e) => f.off(e, r)), n && n.split(" ").forEach((e) => f.store.off(e, r));
197
+ };
198
+ }, [f, _]), M = s(), N = r(() => {
199
+ if (!f) return A;
200
+ let e = !!(f.isInitialized || f.initializedStoreOnce) && C.every((e) => h(e, f, _)), n = t.lng || f.language, r = D.current, i = M.current;
201
+ if (i && i.ready === e && i.lng === n && i.keyPrefix === y && i.revision === r) return i;
202
+ let a = {
203
+ t: f.getFixedT(n, _.nsMode === "fallback" ? C : C[0], y),
204
+ ready: e,
205
+ lng: n,
206
+ keyPrefix: y,
207
+ revision: r
208
+ };
209
+ return M.current = a, a;
210
+ }, [
211
+ f,
212
+ C,
213
+ y,
214
+ _,
215
+ t.lng
216
+ ]), [P, F] = c(0), { t: I, ready: L } = (0, k.useSyncExternalStore)(O, N, N);
217
+ a(() => {
218
+ if (f && !L && !v) {
219
+ let e = () => F((e) => e + 1);
220
+ t.lng ? m(f, t.lng, C, e) : p(f, C, e);
221
+ }
222
+ }, [
223
+ f,
224
+ t.lng,
225
+ C,
226
+ L,
227
+ v,
228
+ P
229
+ ]);
230
+ let R = f || {}, z = s(null), B = s(), V = (e) => {
231
+ let t = Object.getOwnPropertyDescriptors(e);
232
+ t.__original && delete t.__original;
233
+ let n = Object.create(Object.getPrototypeOf(e), t);
234
+ if (!Object.prototype.hasOwnProperty.call(n, "__original")) try {
235
+ Object.defineProperty(n, "__original", {
236
+ value: e,
237
+ writable: !1,
238
+ enumerable: !1,
239
+ configurable: !1
240
+ });
241
+ } catch {}
242
+ return n;
243
+ }, H = o(() => {
244
+ let e = R, t = e?.language, n = e;
245
+ e && (z.current && z.current.__original === e && B.current === t ? n = z.current : (n = V(e), z.current = n, B.current = t));
246
+ let r = !L && !v ? (...e) => (d(f, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), I(...e)) : I, i = [
247
+ r,
248
+ n,
249
+ L
250
+ ];
251
+ return i.t = r, i.i18n = n, i.ready = L, i;
252
+ }, [
253
+ I,
254
+ R,
255
+ L,
256
+ R.resolvedLanguage,
257
+ R.language,
258
+ R.languages
259
+ ]);
260
+ if (f && v && !L) throw new Promise((e) => {
261
+ let n = () => e();
262
+ t.lng ? m(f, t.lng, C, n) : p(f, C, n);
263
+ });
264
+ return H;
265
+ }, N = n(null);
266
+ function P(e) {
267
+ let t = i(N), { t: n, i18n: r } = M(e);
268
+ return {
269
+ t: n,
270
+ language: t?.language || r.language || "en",
271
+ changeLanguage: t?.changeLanguage || (async (e) => {
272
+ await r.changeLanguage(e);
273
+ }),
274
+ direction: t?.direction || "ltr",
275
+ i18n: r
276
+ };
277
+ }
278
+ //#endregion
279
+ //#region ../i18n/dist/useSafeTranslation.js
280
+ function F(e, t) {
281
+ return function() {
282
+ try {
283
+ let n = P();
284
+ return n.t(t) === t ? { t: (t, n) => {
285
+ let r = e[t] || t;
286
+ if (n) for (let [e, t] of Object.entries(n)) r = r.replace(`{{${e}}}`, String(t));
287
+ return r;
288
+ } } : { t: n.t };
289
+ } catch {
290
+ return { t: (t, n) => {
291
+ let r = e[t] || t;
292
+ if (n) for (let [e, t] of Object.entries(n)) r = r.replace(`{{${e}}}`, String(t));
293
+ return r;
294
+ } };
295
+ }
296
+ };
297
+ }
298
+ var I = F({
299
+ "common.selectOption": "Select an option",
300
+ "common.select": "Select...",
301
+ "common.search": "Search",
302
+ "table.selected": "{{count}} selected"
303
+ }, "common.selectOption");
304
+ //#endregion
305
+ export { I as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-CWx7zIL1.js";
1
+ import { t as e } from "./createLucideIcon-C_5JZ35b.js";
2
2
  var t = e("x", [["path", {
3
3
  d: "M18 6 6 18",
4
4
  key: "1bl5f8"
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@object-ui/plugin-aggrid",
3
- "version": "3.1.5",
3
+ "version": "3.3.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "AG Grid data grid plugin for Object UI, powered by AG Grid Community",
7
- "homepage": "https://www.objectui.org",
7
+ "homepage": "https://www.objectui.org/docs/plugins/plugin-aggrid",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/objectstack-ai/objectui.git",
10
+ "url": "git+https://github.com/objectstack-ai/objectui.git",
11
11
  "directory": "packages/plugin-aggrid"
12
12
  },
13
13
  "bugs": {
@@ -25,12 +25,12 @@
25
25
  "./style.css": "./dist/index.css"
26
26
  },
27
27
  "dependencies": {
28
- "@object-ui/components": "3.1.5",
29
- "@object-ui/core": "3.1.5",
30
- "@object-ui/data-objectstack": "3.1.5",
31
- "@object-ui/fields": "3.1.5",
32
- "@object-ui/react": "3.1.5",
33
- "@object-ui/types": "3.1.5"
28
+ "@object-ui/components": "3.3.1",
29
+ "@object-ui/core": "3.3.1",
30
+ "@object-ui/data-objectstack": "3.3.1",
31
+ "@object-ui/fields": "3.3.1",
32
+ "@object-ui/react": "3.3.1",
33
+ "@object-ui/types": "3.3.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "ag-grid-community": "^32.0.0",
@@ -42,12 +42,35 @@
42
42
  "@types/react": "19.2.14",
43
43
  "@types/react-dom": "19.2.3",
44
44
  "@vitejs/plugin-react": "^6.0.1",
45
- "ag-grid-react": "^35.1.0",
46
- "ag-grid-community": "^35.1.0",
47
- "typescript": "^5.9.3",
48
- "vite": "^8.0.1",
45
+ "ag-grid-react": "^35.2.1",
46
+ "ag-grid-community": "^35.2.1",
47
+ "typescript": "^6.0.3",
48
+ "vite": "^8.0.9",
49
49
  "vite-plugin-dts": "^4.5.4"
50
50
  },
51
+ "keywords": [
52
+ "objectui",
53
+ "sdui",
54
+ "schema-driven-ui",
55
+ "react",
56
+ "tailwind",
57
+ "shadcn",
58
+ "objectstack",
59
+ "plugin",
60
+ "grid",
61
+ "data-grid",
62
+ "ag-grid"
63
+ ],
64
+ "author": "ObjectStack Team <team@objectstack.ai>",
65
+ "publishConfig": {
66
+ "access": "public"
67
+ },
68
+ "files": [
69
+ "dist",
70
+ "README.md",
71
+ "CHANGELOG.md",
72
+ "LICENSE"
73
+ ],
51
74
  "scripts": {
52
75
  "build": "vite build",
53
76
  "test": "vitest run",
@@ -1,68 +0,0 @@
1
-
2
- > @object-ui/plugin-aggrid@3.1.5 build /home/runner/work/objectui/objectui/packages/plugin-aggrid
3
- > vite build
4
-
5
- vite v8.0.1 building client environment for production...
6
- 
7
- rendering chunks...
8
- 
9
- [vite:dts] Start generate declaration files...
10
- [vite:dts] Declaration files built in 19439ms.
11
- 
12
- computing gzip size...
13
- dist/index.css 366.84 kB │ gzip: 71.88 kB
14
- dist/plus-CsEgF66K.js 0.19 kB │ gzip: 0.17 kB
15
- dist/x-Bwhzfvtg.js 0.19 kB │ gzip: 0.17 kB
16
- dist/upload-B1x-ueFd.js 0.29 kB │ gzip: 0.22 kB
17
- dist/image-Cm7ExMY2.js 0.36 kB │ gzip: 0.25 kB
18
- dist/AutoNumberField-0RU2dNKe.js 0.43 kB │ gzip: 0.32 kB
19
- dist/SummaryField-Dy2Kkj6M.js 0.61 kB │ gzip: 0.43 kB
20
- dist/TimeField-CZdzdqOO.js 0.62 kB │ gzip: 0.39 kB
21
- dist/FormulaField-MQXJZOep.js 0.65 kB │ gzip: 0.44 kB
22
- dist/DateField-CV-NpLbM.js 0.66 kB │ gzip: 0.42 kB
23
- dist/NumberField-JaSlPVXs.js 0.78 kB │ gzip: 0.48 kB
24
- dist/DateTimeField--YTsgTjw.js 0.84 kB │ gzip: 0.46 kB
25
- dist/CodeField-RWhnDMyL.js 0.88 kB │ gzip: 0.52 kB
26
- dist/PhoneField-DOaMivd6.js 0.89 kB │ gzip: 0.52 kB
27
- dist/EmailField-B-3fWJsH.js 0.89 kB │ gzip: 0.52 kB
28
- dist/TextField-XWOnbUrk.js 0.92 kB │ gzip: 0.48 kB
29
- dist/VectorField-CY70VLiW.js 0.94 kB │ gzip: 0.50 kB
30
- dist/LocationField-DSvhU9Dz.js 1.02 kB │ gzip: 0.58 kB
31
- dist/UrlField-sq1mpRoG.js 1.06 kB │ gzip: 0.56 kB
32
- dist/SelectField-C2gtlnLZ.js 1.07 kB │ gzip: 0.55 kB
33
- dist/SliderField-BlAlK3g2.js 1.13 kB │ gzip: 0.53 kB
34
- dist/TextAreaField-BCUkjKTc.js 1.14 kB │ gzip: 0.63 kB
35
- dist/RichTextField-D4FIV9V8.js 1.21 kB │ gzip: 0.62 kB
36
- dist/BooleanField-DRzAZhSq.js 1.25 kB │ gzip: 0.57 kB
37
- dist/ColorField-B-YAFXdz.js 1.29 kB │ gzip: 0.57 kB
38
- dist/createLucideIcon-CWx7zIL1.js 1.50 kB │ gzip: 0.83 kB
39
- dist/CurrencyField-Bu80a-sI.js 1.56 kB │ gzip: 0.79 kB
40
- dist/ObjectField-FzUYlu-m.js 1.66 kB │ gzip: 0.81 kB
41
- dist/PercentField-D2_kMuC_.js 1.89 kB │ gzip: 0.87 kB
42
- dist/PasswordField-d6E-vKBI.js 1.93 kB │ gzip: 0.95 kB
43
- dist/GridField-DHsGo9l2.js 2.00 kB │ gzip: 0.75 kB
44
- dist/RatingField-BKAGmlzh.js 2.09 kB │ gzip: 0.93 kB
45
- dist/UserField-Dqk38Arc.js 2.68 kB │ gzip: 0.97 kB
46
- dist/ImageField-DK7sUV6b.js 2.71 kB │ gzip: 1.12 kB
47
- dist/AvatarField-IZTLB0Ye.js 2.71 kB │ gzip: 1.15 kB
48
- dist/AddressField-DKqaE9pD.js 2.91 kB │ gzip: 0.81 kB
49
- dist/SignatureField-fFEb0h_C.js 3.21 kB │ gzip: 1.30 kB
50
- dist/QRCodeField-BIQhc73N.js 3.34 kB │ gzip: 1.26 kB
51
- dist/MasterDetailField-CPLHbe_Y.js 3.47 kB │ gzip: 1.13 kB
52
- dist/GeolocationField-BzKgcWLN.js 4.19 kB │ gzip: 1.50 kB
53
- dist/FileField-DxxdESfc.js 5.80 kB │ gzip: 2.09 kB
54
- dist/AgGridImpl-BD5cjyc0.js 6.54 kB │ gzip: 2.29 kB
55
- dist/jsx-runtime-CGDkM_Jn.js 8.02 kB │ gzip: 2.92 kB
56
- dist/index.js 10.58 kB │ gzip: 2.47 kB
57
- dist/LookupField-Dmzju5Q0.js 34.54 kB │ gzip: 9.19 kB
58
- dist/ObjectAgGridImpl-4uephlvO.js 743.97 kB │ gzip: 188.71 kB
59
-
60
- [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `vite:dts`. See https://rolldown.rs/options/checks#plugintimings for more details.
61
- 
62
- 
63
- rendering chunks...
64
- computing gzip size...
65
- dist/index.css 366.84 kB │ gzip: 71.88 kB
66
- dist/index.umd.cjs 643.37 kB │ gzip: 192.27 kB
67
-
68
- ✓ built in 26.06s