@object-ui/plugin-aggrid 0.4.1 → 2.0.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 (46) hide show
  1. package/.turbo/turbo-build.log +99 -0
  2. package/CHANGELOG.md +16 -0
  3. package/OBJECT_AGGRID_CN.md +483 -0
  4. package/QUICKSTART.md +186 -0
  5. package/README.md +221 -1
  6. package/dist/AddressField-Bntpynvd.js +95 -0
  7. package/dist/AgGridImpl-3Mmf2qrR.js +229 -0
  8. package/dist/AutoNumberField-C1kBJaxh.js +8 -0
  9. package/dist/FileField-BDwbJvor.js +101 -0
  10. package/dist/FormulaField-BXNiyGoh.js +9 -0
  11. package/dist/GeolocationField-Df3yYcM9.js +141 -0
  12. package/dist/GridField-CcjQp4WM.js +29 -0
  13. package/dist/LocationField-BIfN5QIq.js +33 -0
  14. package/dist/MasterDetailField-CAEmxbIT.js +117 -0
  15. package/dist/ObjectAgGridImpl-EjifM4aY.js +28727 -0
  16. package/dist/ObjectField-BpkQpIF-.js +51 -0
  17. package/dist/QRCodeField-VCBewTDG.js +96 -0
  18. package/dist/RichTextField-CyQwSi2C.js +37 -0
  19. package/dist/SignatureField-Cr4tsEbj.js +96 -0
  20. package/dist/SummaryField-CnEJ_GZI.js +9 -0
  21. package/dist/UserField-DJjaVyrV.js +49 -0
  22. package/dist/VectorField-cPYmcKnV.js +25 -0
  23. package/dist/{index-B6NPAFZx.js → index-B87wd1E0.js} +301 -143
  24. package/dist/index.css +1 -1
  25. package/dist/index.js +4 -3
  26. package/dist/index.umd.cjs +225 -2
  27. package/dist/src/AgGridImpl.d.ts +5 -2
  28. package/dist/src/ObjectAgGridImpl.d.ts +6 -0
  29. package/dist/src/VirtualScrolling.d.ts +72 -0
  30. package/dist/src/field-renderers.d.ts +67 -0
  31. package/dist/src/index.d.ts +47 -2
  32. package/dist/src/object-aggrid.types.d.ts +74 -0
  33. package/dist/src/types.d.ts +48 -1
  34. package/package.json +11 -9
  35. package/src/AgGridImpl.tsx +100 -11
  36. package/src/ObjectAgGridImpl.tsx +501 -0
  37. package/src/VirtualScrolling.ts +74 -0
  38. package/src/field-renderers.test.tsx +383 -0
  39. package/src/field-renderers.tsx +224 -0
  40. package/src/index.test.ts +1 -1
  41. package/src/index.tsx +211 -2
  42. package/src/object-aggrid.test.ts +99 -0
  43. package/src/object-aggrid.types.ts +123 -0
  44. package/src/types.ts +57 -1
  45. package/vite.config.ts +13 -0
  46. package/dist/AgGridImpl-DKkq6v1B.js +0 -171
@@ -1,150 +1,150 @@
1
- import L, { Suspense as ae } from "react";
2
- import { ComponentRegistry as te } from "@object-ui/core";
3
- import { Skeleton as ne } from "@object-ui/components";
4
- var E = { exports: {} }, m = {};
5
- var V;
6
- function le() {
7
- if (V) return m;
8
- V = 1;
9
- var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.fragment");
10
- function s(c, o, i) {
11
- var d = null;
12
- if (i !== void 0 && (d = "" + i), o.key !== void 0 && (d = "" + o.key), "key" in o) {
1
+ import w, { Suspense as M } from "react";
2
+ import { ComponentRegistry as Y } from "@object-ui/core";
3
+ import { Skeleton as J } from "@object-ui/components";
4
+ var y = { exports: {} }, b = {};
5
+ var F;
6
+ function oe() {
7
+ if (F) return b;
8
+ F = 1;
9
+ var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.fragment");
10
+ function c(d, o, i) {
11
+ var f = null;
12
+ if (i !== void 0 && (f = "" + i), o.key !== void 0 && (f = "" + o.key), "key" in o) {
13
13
  i = {};
14
- for (var f in o)
15
- f !== "key" && (i[f] = o[f]);
14
+ for (var p in o)
15
+ p !== "key" && (i[p] = o[p]);
16
16
  } else i = o;
17
17
  return o = i.ref, {
18
18
  $$typeof: a,
19
- type: c,
20
- key: d,
19
+ type: d,
20
+ key: f,
21
21
  ref: o !== void 0 ? o : null,
22
22
  props: i
23
23
  };
24
24
  }
25
- return m.Fragment = b, m.jsx = s, m.jsxs = s, m;
25
+ return b.Fragment = g, b.jsx = c, b.jsxs = c, b;
26
26
  }
27
- var p = {};
28
- var Y;
29
- function oe() {
30
- return Y || (Y = 1, process.env.NODE_ENV !== "production" && (function() {
27
+ var m = {};
28
+ var G;
29
+ function ie() {
30
+ return G || (G = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function a(e) {
32
32
  if (e == null) return null;
33
33
  if (typeof e == "function")
34
- return e.$$typeof === K ? null : e.displayName || e.name || null;
34
+ return e.$$typeof === re ? null : e.displayName || e.name || null;
35
35
  if (typeof e == "string") return e;
36
36
  switch (e) {
37
- case R:
37
+ case S:
38
38
  return "Fragment";
39
- case q:
39
+ case H:
40
40
  return "Profiler";
41
- case J:
41
+ case U:
42
42
  return "StrictMode";
43
- case X:
43
+ case K:
44
44
  return "Suspense";
45
- case H:
45
+ case ee:
46
46
  return "SuspenseList";
47
- case Z:
47
+ case te:
48
48
  return "Activity";
49
49
  }
50
50
  if (typeof e == "object")
51
51
  switch (typeof e.tag == "number" && console.error(
52
52
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
53
  ), e.$$typeof) {
54
- case I:
54
+ case B:
55
55
  return "Portal";
56
- case U:
56
+ case Q:
57
57
  return e.displayName || "Context";
58
- case W:
58
+ case X:
59
59
  return (e._context.displayName || "Context") + ".Consumer";
60
- case B:
61
- var r = e.render;
62
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
63
- case Q:
64
- return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
65
- case k:
66
- r = e._payload, e = e._init;
60
+ case Z:
61
+ var t = e.render;
62
+ return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
63
+ case ae:
64
+ return t = e.displayName || null, t !== null ? t : a(e.type) || "Memo";
65
+ case R:
66
+ t = e._payload, e = e._init;
67
67
  try {
68
- return a(e(r));
68
+ return a(e(t));
69
69
  } catch {
70
70
  }
71
71
  }
72
72
  return null;
73
73
  }
74
- function b(e) {
74
+ function g(e) {
75
75
  return "" + e;
76
76
  }
77
- function s(e) {
77
+ function c(e) {
78
78
  try {
79
- b(e);
80
- var r = !1;
79
+ g(e);
80
+ var t = !1;
81
81
  } catch {
82
- r = !0;
82
+ t = !0;
83
83
  }
84
- if (r) {
85
- r = console;
86
- var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
87
- return t.call(
88
- r,
84
+ if (t) {
85
+ t = console;
86
+ var r = t.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
87
+ return r.call(
88
+ t,
89
89
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
- n
91
- ), b(e);
90
+ l
91
+ ), g(e);
92
92
  }
93
93
  }
94
- function c(e) {
95
- if (e === R) return "<>";
96
- if (typeof e == "object" && e !== null && e.$$typeof === k)
94
+ function d(e) {
95
+ if (e === S) return "<>";
96
+ if (typeof e == "object" && e !== null && e.$$typeof === R)
97
97
  return "<...>";
98
98
  try {
99
- var r = a(e);
100
- return r ? "<" + r + ">" : "<...>";
99
+ var t = a(e);
100
+ return t ? "<" + t + ">" : "<...>";
101
101
  } catch {
102
102
  return "<...>";
103
103
  }
104
104
  }
105
105
  function o() {
106
- var e = _.A;
106
+ var e = k.A;
107
107
  return e === null ? null : e.getOwner();
108
108
  }
109
109
  function i() {
110
110
  return Error("react-stack-top-frame");
111
111
  }
112
- function d(e) {
113
- if (N.call(e, "key")) {
114
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
115
- if (r && r.isReactWarning) return !1;
112
+ function f(e) {
113
+ if (j.call(e, "key")) {
114
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
115
+ if (t && t.isReactWarning) return !1;
116
116
  }
117
117
  return e.key !== void 0;
118
118
  }
119
- function f(e, r) {
120
- function t() {
121
- h || (h = !0, console.error(
119
+ function p(e, t) {
120
+ function r() {
121
+ P || (P = !0, console.error(
122
122
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
123
- r
123
+ t
124
124
  ));
125
125
  }
126
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
127
- get: t,
126
+ r.isReactWarning = !0, Object.defineProperty(e, "key", {
127
+ get: r,
128
128
  configurable: !0
129
129
  });
130
130
  }
131
- function G() {
131
+ function I() {
132
132
  var e = a(this.type);
133
- return P[e] || (P[e] = !0, console.error(
133
+ return h[e] || (h[e] = !0, console.error(
134
134
  "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."
135
135
  )), e = this.props.ref, e !== void 0 ? e : null;
136
136
  }
137
- function $(e, r, t, n, v, S) {
138
- var l = t.ref;
137
+ function W(e, t, r, l, E, x) {
138
+ var n = r.ref;
139
139
  return e = {
140
- $$typeof: x,
140
+ $$typeof: A,
141
141
  type: e,
142
- key: r,
143
- props: t,
144
- _owner: n
145
- }, (l !== void 0 ? l : null) !== null ? Object.defineProperty(e, "ref", {
142
+ key: t,
143
+ props: r,
144
+ _owner: l
145
+ }, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
146
146
  enumerable: !1,
147
- get: G
147
+ get: I
148
148
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
149
149
  configurable: !1,
150
150
  enumerable: !1,
@@ -159,110 +159,110 @@ function oe() {
159
159
  configurable: !1,
160
160
  enumerable: !1,
161
161
  writable: !0,
162
- value: v
162
+ value: E
163
163
  }), Object.defineProperty(e, "_debugTask", {
164
164
  configurable: !1,
165
165
  enumerable: !1,
166
166
  writable: !0,
167
- value: S
167
+ value: x
168
168
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
169
169
  }
170
- function w(e, r, t, n, v, S) {
171
- var l = r.children;
172
- if (l !== void 0)
173
- if (n)
174
- if (ee(l)) {
175
- for (n = 0; n < l.length; n++)
176
- A(l[n]);
177
- Object.freeze && Object.freeze(l);
170
+ function N(e, t, r, l, E, x) {
171
+ var n = t.children;
172
+ if (n !== void 0)
173
+ if (l)
174
+ if (le(n)) {
175
+ for (l = 0; l < n.length; l++)
176
+ T(n[l]);
177
+ Object.freeze && Object.freeze(n);
178
178
  } else
179
179
  console.error(
180
180
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
181
181
  );
182
- else A(l);
183
- if (N.call(r, "key")) {
184
- l = a(e);
185
- var u = Object.keys(r).filter(function(re) {
186
- return re !== "key";
182
+ else T(n);
183
+ if (j.call(t, "key")) {
184
+ n = a(e);
185
+ var u = Object.keys(t).filter(function(ne) {
186
+ return ne !== "key";
187
187
  });
188
- n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", M[l + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ l = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", V[n + l] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
189
189
  `A props object containing a "key" prop is being spread into JSX:
190
190
  let props = %s;
191
191
  <%s {...props} />
192
192
  React keys must be passed directly to JSX without using spread:
193
193
  let props = %s;
194
194
  <%s key={someKey} {...props} />`,
195
- n,
196
195
  l,
196
+ n,
197
197
  u,
198
- l
199
- ), M[l + n] = !0);
198
+ n
199
+ ), V[n + l] = !0);
200
200
  }
201
- if (l = null, t !== void 0 && (s(t), l = "" + t), d(r) && (s(r.key), l = "" + r.key), "key" in r) {
202
- t = {};
203
- for (var T in r)
204
- T !== "key" && (t[T] = r[T]);
205
- } else t = r;
206
- return l && f(
207
- t,
201
+ if (n = null, r !== void 0 && (c(r), n = "" + r), f(t) && (c(t.key), n = "" + t.key), "key" in t) {
202
+ r = {};
203
+ for (var _ in t)
204
+ _ !== "key" && (r[_] = t[_]);
205
+ } else r = t;
206
+ return n && p(
207
+ r,
208
208
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
209
- ), $(
209
+ ), W(
210
210
  e,
211
- l,
212
- t,
211
+ n,
212
+ r,
213
213
  o(),
214
- v,
215
- S
214
+ E,
215
+ x
216
216
  );
217
217
  }
218
- function A(e) {
219
- O(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === k && (e._payload.status === "fulfilled" ? O(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
218
+ function T(e) {
219
+ O(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === R && (e._payload.status === "fulfilled" ? O(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
220
220
  }
221
221
  function O(e) {
222
- return typeof e == "object" && e !== null && e.$$typeof === x;
222
+ return typeof e == "object" && e !== null && e.$$typeof === A;
223
223
  }
224
- var g = L, x = /* @__PURE__ */ Symbol.for("react.transitional.element"), I = /* @__PURE__ */ Symbol.for("react.portal"), R = /* @__PURE__ */ Symbol.for("react.fragment"), J = /* @__PURE__ */ Symbol.for("react.strict_mode"), q = /* @__PURE__ */ Symbol.for("react.profiler"), W = /* @__PURE__ */ Symbol.for("react.consumer"), U = /* @__PURE__ */ Symbol.for("react.context"), B = /* @__PURE__ */ Symbol.for("react.forward_ref"), X = /* @__PURE__ */ Symbol.for("react.suspense"), H = /* @__PURE__ */ Symbol.for("react.suspense_list"), Q = /* @__PURE__ */ Symbol.for("react.memo"), k = /* @__PURE__ */ Symbol.for("react.lazy"), Z = /* @__PURE__ */ Symbol.for("react.activity"), K = /* @__PURE__ */ Symbol.for("react.client.reference"), _ = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, ee = Array.isArray, y = console.createTask ? console.createTask : function() {
224
+ var v = w, A = /* @__PURE__ */ Symbol.for("react.transitional.element"), B = /* @__PURE__ */ Symbol.for("react.portal"), S = /* @__PURE__ */ Symbol.for("react.fragment"), U = /* @__PURE__ */ Symbol.for("react.strict_mode"), H = /* @__PURE__ */ Symbol.for("react.profiler"), X = /* @__PURE__ */ Symbol.for("react.consumer"), Q = /* @__PURE__ */ Symbol.for("react.context"), Z = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), ee = /* @__PURE__ */ Symbol.for("react.suspense_list"), ae = /* @__PURE__ */ Symbol.for("react.memo"), R = /* @__PURE__ */ Symbol.for("react.lazy"), te = /* @__PURE__ */ Symbol.for("react.activity"), re = /* @__PURE__ */ Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, le = Array.isArray, C = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
- g = {
227
+ v = {
228
228
  react_stack_bottom_frame: function(e) {
229
229
  return e();
230
230
  }
231
231
  };
232
- var h, P = {}, j = g.react_stack_bottom_frame.bind(
233
- g,
232
+ var P, h = {}, z = v.react_stack_bottom_frame.bind(
233
+ v,
234
234
  i
235
- )(), D = y(c(i)), M = {};
236
- p.Fragment = R, p.jsx = function(e, r, t) {
237
- var n = 1e4 > _.recentlyCreatedOwnerStacks++;
238
- return w(
235
+ )(), D = C(d(i)), V = {};
236
+ m.Fragment = S, m.jsx = function(e, t, r) {
237
+ var l = 1e4 > k.recentlyCreatedOwnerStacks++;
238
+ return N(
239
239
  e,
240
- r,
241
240
  t,
241
+ r,
242
242
  !1,
243
- n ? Error("react-stack-top-frame") : j,
244
- n ? y(c(e)) : D
243
+ l ? Error("react-stack-top-frame") : z,
244
+ l ? C(d(e)) : D
245
245
  );
246
- }, p.jsxs = function(e, r, t) {
247
- var n = 1e4 > _.recentlyCreatedOwnerStacks++;
248
- return w(
246
+ }, m.jsxs = function(e, t, r) {
247
+ var l = 1e4 > k.recentlyCreatedOwnerStacks++;
248
+ return N(
249
249
  e,
250
- r,
251
250
  t,
251
+ r,
252
252
  !0,
253
- n ? Error("react-stack-top-frame") : j,
254
- n ? y(c(e)) : D
253
+ l ? Error("react-stack-top-frame") : z,
254
+ l ? C(d(e)) : D
255
255
  );
256
256
  };
257
- })()), p;
257
+ })()), m;
258
258
  }
259
- var F;
260
- function ie() {
261
- return F || (F = 1, process.env.NODE_ENV === "production" ? E.exports = le() : E.exports = oe()), E.exports;
259
+ var L;
260
+ function ue() {
261
+ return L || (L = 1, process.env.NODE_ENV === "production" ? y.exports = oe() : y.exports = ie()), y.exports;
262
262
  }
263
- var C = ie();
264
- const ue = L.lazy(() => import("./AgGridImpl-DKkq6v1B.js")), z = ({ schema: a }) => /* @__PURE__ */ C.jsx(ae, { fallback: /* @__PURE__ */ C.jsx(ne, { className: "w-full h-[500px]" }), children: /* @__PURE__ */ C.jsx(
265
- ue,
263
+ var s = ue();
264
+ const se = w.lazy(() => import("./AgGridImpl-3Mmf2qrR.js")), ce = w.lazy(() => import("./ObjectAgGridImpl-EjifM4aY.js").then((a) => a.O)), q = ({ schema: a }) => /* @__PURE__ */ s.jsx(M, { fallback: /* @__PURE__ */ s.jsx(J, { className: "w-full h-[500px]" }), children: /* @__PURE__ */ s.jsx(
265
+ se,
266
266
  {
267
267
  rowData: a.rowData,
268
268
  columnDefs: a.columnDefs,
@@ -285,13 +285,17 @@ const ue = L.lazy(() => import("./AgGridImpl-DKkq6v1B.js")), z = ({ schema: a })
285
285
  columnConfig: a.columnConfig,
286
286
  enableRangeSelection: a.enableRangeSelection,
287
287
  enableCharts: a.enableCharts,
288
- contextMenu: a.contextMenu
288
+ contextMenu: a.contextMenu,
289
+ treeData: a.treeData,
290
+ rowGrouping: a.rowGrouping,
291
+ excelExport: a.excelExport
289
292
  }
290
293
  ) });
291
- te.register(
294
+ Y.register(
292
295
  "aggrid",
293
- z,
296
+ q,
294
297
  {
298
+ namespace: "plugin-aggrid",
295
299
  label: "AG Grid",
296
300
  icon: "Table",
297
301
  category: "plugin",
@@ -439,6 +443,27 @@ te.register(
439
443
  description: 'Configure right-click menu: { enabled: true, items: ["copy", "export"] }',
440
444
  advanced: !0
441
445
  },
446
+ {
447
+ name: "treeData",
448
+ type: "code",
449
+ label: "Tree Data Config (JSON)",
450
+ description: 'Configure tree data: { enabled: true, pathField: "orgHierarchy" }',
451
+ advanced: !0
452
+ },
453
+ {
454
+ name: "rowGrouping",
455
+ type: "code",
456
+ label: "Row Grouping Config (JSON)",
457
+ description: 'Configure row grouping: { enabled: true, groupByFields: ["category"] }',
458
+ advanced: !0
459
+ },
460
+ {
461
+ name: "excelExport",
462
+ type: "code",
463
+ label: "Excel Export Config (JSON)",
464
+ description: 'Configure Excel export: { enabled: true, fileName: "data.xlsx" }',
465
+ advanced: !0
466
+ },
442
467
  {
443
468
  name: "gridOptions",
444
469
  type: "code",
@@ -494,11 +519,144 @@ te.register(
494
519
  }
495
520
  }
496
521
  );
497
- const fe = {
498
- aggrid: z
522
+ const $ = ({ schema: a }) => /* @__PURE__ */ s.jsx(M, { fallback: /* @__PURE__ */ s.jsx(J, { className: "w-full h-[500px]" }), children: /* @__PURE__ */ s.jsx(
523
+ ce,
524
+ {
525
+ objectName: a.objectName,
526
+ dataSource: a.dataSource,
527
+ fields: a.fields,
528
+ fieldNames: a.fieldNames,
529
+ filters: a.filters,
530
+ sort: a.sort,
531
+ pageSize: a.pageSize,
532
+ pagination: a.pagination,
533
+ domLayout: a.domLayout,
534
+ animateRows: a.animateRows,
535
+ rowSelection: a.rowSelection,
536
+ theme: a.theme,
537
+ height: a.height,
538
+ className: a.className,
539
+ editable: a.editable,
540
+ editType: a.editType,
541
+ singleClickEdit: a.singleClickEdit,
542
+ stopEditingWhenCellsLoseFocus: a.stopEditingWhenCellsLoseFocus,
543
+ exportConfig: a.exportConfig,
544
+ statusBar: a.statusBar,
545
+ callbacks: a.callbacks,
546
+ columnConfig: a.columnConfig,
547
+ enableRangeSelection: a.enableRangeSelection,
548
+ enableCharts: a.enableCharts,
549
+ contextMenu: a.contextMenu
550
+ }
551
+ ) }), be = {
552
+ aggrid: q,
553
+ "object-aggrid": $
499
554
  };
555
+ Y.register(
556
+ "object-aggrid",
557
+ $,
558
+ {
559
+ namespace: "plugin-aggrid",
560
+ label: "Object AG Grid",
561
+ icon: "Table",
562
+ category: "view",
563
+ inputs: [
564
+ {
565
+ name: "objectName",
566
+ type: "string",
567
+ label: "Object Name",
568
+ description: "Name of the object to fetch metadata and data from",
569
+ required: !0
570
+ },
571
+ {
572
+ name: "dataSource",
573
+ type: "object",
574
+ label: "Data Source",
575
+ description: "ObjectStack data source adapter instance",
576
+ required: !0
577
+ },
578
+ {
579
+ name: "fieldNames",
580
+ type: "array",
581
+ label: "Field Names",
582
+ description: "Optional: Specify which fields to show (defaults to all fields)"
583
+ },
584
+ {
585
+ name: "filters",
586
+ type: "object",
587
+ label: "Filters",
588
+ description: "Query filters to apply to the data"
589
+ },
590
+ {
591
+ name: "sort",
592
+ type: "object",
593
+ label: "Sort",
594
+ description: 'Sorting configuration: { fieldName: "asc" | "desc" }'
595
+ },
596
+ {
597
+ name: "pagination",
598
+ type: "boolean",
599
+ label: "Enable Pagination",
600
+ defaultValue: !0
601
+ },
602
+ {
603
+ name: "pageSize",
604
+ type: "number",
605
+ label: "Page Size",
606
+ defaultValue: 10,
607
+ description: "Number of rows per page"
608
+ },
609
+ {
610
+ name: "theme",
611
+ type: "enum",
612
+ label: "Theme",
613
+ enum: [
614
+ { label: "Quartz", value: "quartz" },
615
+ { label: "Alpine", value: "alpine" },
616
+ { label: "Balham", value: "balham" },
617
+ { label: "Material", value: "material" }
618
+ ],
619
+ defaultValue: "quartz"
620
+ },
621
+ {
622
+ name: "height",
623
+ type: "number",
624
+ label: "Height (px)",
625
+ defaultValue: 500
626
+ },
627
+ {
628
+ name: "editable",
629
+ type: "boolean",
630
+ label: "Enable Editing",
631
+ defaultValue: !1,
632
+ description: "Allow cells to be edited inline",
633
+ advanced: !0
634
+ },
635
+ {
636
+ name: "exportConfig",
637
+ type: "code",
638
+ label: "Export Config (JSON)",
639
+ description: 'Configure CSV export: { enabled: true, fileName: "data.csv" }',
640
+ advanced: !0
641
+ },
642
+ {
643
+ name: "columnConfig",
644
+ type: "code",
645
+ label: "Column Config (JSON)",
646
+ description: "Global column settings: { resizable: true, sortable: true, filterable: true }",
647
+ advanced: !0
648
+ },
649
+ {
650
+ name: "className",
651
+ type: "string",
652
+ label: "CSS Class"
653
+ }
654
+ ]
655
+ }
656
+ );
500
657
  export {
501
- z as A,
502
- fe as a,
503
- C as j
658
+ q as A,
659
+ $ as O,
660
+ be as a,
661
+ s as j
504
662
  };