@object-ui/plugin-aggrid 3.1.3 → 3.1.4

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 (68) hide show
  1. package/.turbo/turbo-build.log +60 -91
  2. package/CHANGELOG.md +11 -0
  3. package/dist/AddressField-DKqaE9pD.js +93 -0
  4. package/dist/AgGridImpl-BD5cjyc0.js +226 -0
  5. package/dist/AutoNumberField-0RU2dNKe.js +13 -0
  6. package/dist/AvatarField-IZTLB0Ye.js +82 -0
  7. package/dist/BooleanField-DRzAZhSq.js +40 -0
  8. package/dist/CodeField-RWhnDMyL.js +22 -0
  9. package/dist/ColorField-B-YAFXdz.js +37 -0
  10. package/dist/CurrencyField-Bu80a-sI.js +51 -0
  11. package/dist/DateField-CV-NpLbM.js +21 -0
  12. package/dist/DateTimeField--YTsgTjw.js +32 -0
  13. package/dist/EmailField-B-3fWJsH.js +28 -0
  14. package/dist/FileField-DxxdESfc.js +160 -0
  15. package/dist/FormulaField-MQXJZOep.js +13 -0
  16. package/dist/GeolocationField-BzKgcWLN.js +156 -0
  17. package/dist/GridField-DHsGo9l2.js +51 -0
  18. package/dist/ImageField-DK7sUV6b.js +77 -0
  19. package/dist/LocationField-DSvhU9Dz.js +35 -0
  20. package/dist/LookupField-Dmzju5Q0.js +1033 -0
  21. package/dist/MasterDetailField-CPLHbe_Y.js +109 -0
  22. package/dist/NumberField-JaSlPVXs.js +26 -0
  23. package/dist/ObjectAgGridImpl-4uephlvO.js +19998 -0
  24. package/dist/ObjectField-FzUYlu-m.js +52 -0
  25. package/dist/PasswordField-d6E-vKBI.js +60 -0
  26. package/dist/PercentField-D2_kMuC_.js +63 -0
  27. package/dist/PhoneField-DOaMivd6.js +28 -0
  28. package/dist/QRCodeField-BIQhc73N.js +144 -0
  29. package/dist/RatingField-BKAGmlzh.js +42 -0
  30. package/dist/RichTextField-D4FIV9V8.js +32 -0
  31. package/dist/SelectField-C2gtlnLZ.js +30 -0
  32. package/dist/SignatureField-fFEb0h_C.js +98 -0
  33. package/dist/SliderField-BlAlK3g2.js +34 -0
  34. package/dist/SummaryField-Dy2Kkj6M.js +18 -0
  35. package/dist/TextAreaField-BCUkjKTc.js +36 -0
  36. package/dist/TextField-XWOnbUrk.js +29 -0
  37. package/dist/TimeField-CZdzdqOO.js +21 -0
  38. package/dist/UrlField-sq1mpRoG.js +33 -0
  39. package/dist/UserField-Dqk38Arc.js +79 -0
  40. package/dist/VectorField-CY70VLiW.js +35 -0
  41. package/dist/createLucideIcon-CWx7zIL1.js +39 -0
  42. package/dist/image-Cm7ExMY2.js +24 -0
  43. package/dist/index.css +2 -1
  44. package/dist/index.js +503 -8
  45. package/dist/index.umd.cjs +116 -112
  46. package/dist/jsx-runtime-CGDkM_Jn.js +189 -0
  47. package/dist/plus-CsEgF66K.js +10 -0
  48. package/dist/upload-B1x-ueFd.js +17 -0
  49. package/dist/x-Bwhzfvtg.js +10 -0
  50. package/package.json +9 -9
  51. package/dist/AddressField-CKC4ZJAb.js +0 -95
  52. package/dist/AgGridImpl-Da1-9kQm.js +0 -229
  53. package/dist/AutoNumberField-DUIGHfEs.js +0 -8
  54. package/dist/FileField-VTTCu1Mi.js +0 -144
  55. package/dist/FormulaField-Db3yTWbM.js +0 -9
  56. package/dist/GeolocationField-CEWtxddT.js +0 -141
  57. package/dist/GridField-Doeh0ghH.js +0 -29
  58. package/dist/LocationField-BF0sYg0h.js +0 -33
  59. package/dist/MasterDetailField-EG8aGKCm.js +0 -113
  60. package/dist/ObjectAgGridImpl-BQKWGygD.js +0 -28987
  61. package/dist/ObjectField-C63JFk2A.js +0 -51
  62. package/dist/QRCodeField-DnYB9SbX.js +0 -96
  63. package/dist/RichTextField-DJFKaCj6.js +0 -37
  64. package/dist/SignatureField-DdhPdmDm.js +0 -96
  65. package/dist/SummaryField-qwokC_TB.js +0 -9
  66. package/dist/UserField-BGSE0B99.js +0 -49
  67. package/dist/VectorField-MkcitfSl.js +0 -25
  68. package/dist/index-CTPRjgpn.js +0 -662
@@ -1,662 +0,0 @@
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
- i = {};
14
- for (var p in o)
15
- p !== "key" && (i[p] = o[p]);
16
- } else i = o;
17
- return o = i.ref, {
18
- $$typeof: a,
19
- type: d,
20
- key: f,
21
- ref: o !== void 0 ? o : null,
22
- props: i
23
- };
24
- }
25
- return b.Fragment = g, b.jsx = c, b.jsxs = c, b;
26
- }
27
- var m = {};
28
- var G;
29
- function ie() {
30
- return G || (G = 1, process.env.NODE_ENV !== "production" && (function() {
31
- function a(e) {
32
- if (e == null) return null;
33
- if (typeof e == "function")
34
- return e.$$typeof === re ? null : e.displayName || e.name || null;
35
- if (typeof e == "string") return e;
36
- switch (e) {
37
- case S:
38
- return "Fragment";
39
- case H:
40
- return "Profiler";
41
- case U:
42
- return "StrictMode";
43
- case K:
44
- return "Suspense";
45
- case ee:
46
- return "SuspenseList";
47
- case te:
48
- return "Activity";
49
- }
50
- if (typeof e == "object")
51
- switch (typeof e.tag == "number" && console.error(
52
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
- ), e.$$typeof) {
54
- case B:
55
- return "Portal";
56
- case Q:
57
- return e.displayName || "Context";
58
- case X:
59
- return (e._context.displayName || "Context") + ".Consumer";
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
- try {
68
- return a(e(t));
69
- } catch {
70
- }
71
- }
72
- return null;
73
- }
74
- function g(e) {
75
- return "" + e;
76
- }
77
- function c(e) {
78
- try {
79
- g(e);
80
- var t = !1;
81
- } catch {
82
- t = !0;
83
- }
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
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
- l
91
- ), g(e);
92
- }
93
- }
94
- function d(e) {
95
- if (e === S) return "<>";
96
- if (typeof e == "object" && e !== null && e.$$typeof === R)
97
- return "<...>";
98
- try {
99
- var t = a(e);
100
- return t ? "<" + t + ">" : "<...>";
101
- } catch {
102
- return "<...>";
103
- }
104
- }
105
- function o() {
106
- var e = k.A;
107
- return e === null ? null : e.getOwner();
108
- }
109
- function i() {
110
- return Error("react-stack-top-frame");
111
- }
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
- }
117
- return e.key !== void 0;
118
- }
119
- function p(e, t) {
120
- function r() {
121
- P || (P = !0, console.error(
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
- t
124
- ));
125
- }
126
- r.isReactWarning = !0, Object.defineProperty(e, "key", {
127
- get: r,
128
- configurable: !0
129
- });
130
- }
131
- function I() {
132
- var e = a(this.type);
133
- return h[e] || (h[e] = !0, console.error(
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
- )), e = this.props.ref, e !== void 0 ? e : null;
136
- }
137
- function W(e, t, r, l, E, x) {
138
- var n = r.ref;
139
- return e = {
140
- $$typeof: A,
141
- type: e,
142
- key: t,
143
- props: r,
144
- _owner: l
145
- }, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
146
- enumerable: !1,
147
- get: I
148
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
149
- configurable: !1,
150
- enumerable: !1,
151
- writable: !0,
152
- value: 0
153
- }), Object.defineProperty(e, "_debugInfo", {
154
- configurable: !1,
155
- enumerable: !1,
156
- writable: !0,
157
- value: null
158
- }), Object.defineProperty(e, "_debugStack", {
159
- configurable: !1,
160
- enumerable: !1,
161
- writable: !0,
162
- value: E
163
- }), Object.defineProperty(e, "_debugTask", {
164
- configurable: !1,
165
- enumerable: !1,
166
- writable: !0,
167
- value: x
168
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
169
- }
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
- } else
179
- console.error(
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
- );
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
- });
188
- l = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", V[n + l] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
189
- `A props object containing a "key" prop is being spread into JSX:
190
- let props = %s;
191
- <%s {...props} />
192
- React keys must be passed directly to JSX without using spread:
193
- let props = %s;
194
- <%s key={someKey} {...props} />`,
195
- l,
196
- n,
197
- u,
198
- n
199
- ), V[n + l] = !0);
200
- }
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
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
209
- ), W(
210
- e,
211
- n,
212
- r,
213
- o(),
214
- E,
215
- x
216
- );
217
- }
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
- }
221
- function O(e) {
222
- return typeof e == "object" && e !== null && e.$$typeof === A;
223
- }
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
- return null;
226
- };
227
- v = {
228
- react_stack_bottom_frame: function(e) {
229
- return e();
230
- }
231
- };
232
- var P, h = {}, z = v.react_stack_bottom_frame.bind(
233
- v,
234
- i
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
- e,
240
- t,
241
- r,
242
- !1,
243
- l ? Error("react-stack-top-frame") : z,
244
- l ? C(d(e)) : D
245
- );
246
- }, m.jsxs = function(e, t, r) {
247
- var l = 1e4 > k.recentlyCreatedOwnerStacks++;
248
- return N(
249
- e,
250
- t,
251
- r,
252
- !0,
253
- l ? Error("react-stack-top-frame") : z,
254
- l ? C(d(e)) : D
255
- );
256
- };
257
- })()), m;
258
- }
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
- }
263
- var s = ue();
264
- const se = w.lazy(() => import("./AgGridImpl-Da1-9kQm.js")), ce = w.lazy(() => import("./ObjectAgGridImpl-BQKWGygD.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
- {
267
- rowData: a.rowData,
268
- columnDefs: a.columnDefs,
269
- gridOptions: a.gridOptions,
270
- pagination: a.pagination,
271
- paginationPageSize: a.paginationPageSize,
272
- domLayout: a.domLayout,
273
- animateRows: a.animateRows,
274
- rowSelection: a.rowSelection,
275
- theme: a.theme,
276
- height: a.height,
277
- className: a.className,
278
- editable: a.editable,
279
- editType: a.editType,
280
- singleClickEdit: a.singleClickEdit,
281
- stopEditingWhenCellsLoseFocus: a.stopEditingWhenCellsLoseFocus,
282
- exportConfig: a.exportConfig,
283
- statusBar: a.statusBar,
284
- callbacks: a.callbacks,
285
- columnConfig: a.columnConfig,
286
- enableRangeSelection: a.enableRangeSelection,
287
- enableCharts: a.enableCharts,
288
- contextMenu: a.contextMenu,
289
- treeData: a.treeData,
290
- rowGrouping: a.rowGrouping,
291
- excelExport: a.excelExport
292
- }
293
- ) });
294
- Y.register(
295
- "aggrid",
296
- q,
297
- {
298
- namespace: "plugin-aggrid",
299
- label: "AG Grid",
300
- icon: "Table",
301
- category: "plugin",
302
- inputs: [
303
- {
304
- name: "rowData",
305
- type: "array",
306
- label: "Row Data",
307
- description: "Array of objects to display in the grid",
308
- required: !0
309
- },
310
- {
311
- name: "columnDefs",
312
- type: "array",
313
- label: "Column Definitions",
314
- description: "Array of column definitions",
315
- required: !0
316
- },
317
- {
318
- name: "pagination",
319
- type: "boolean",
320
- label: "Enable Pagination",
321
- defaultValue: !1
322
- },
323
- {
324
- name: "paginationPageSize",
325
- type: "number",
326
- label: "Page Size",
327
- defaultValue: 10,
328
- description: "Number of rows per page when pagination is enabled"
329
- },
330
- {
331
- name: "theme",
332
- type: "enum",
333
- label: "Theme",
334
- enum: [
335
- { label: "Quartz", value: "quartz" },
336
- { label: "Alpine", value: "alpine" },
337
- { label: "Balham", value: "balham" },
338
- { label: "Material", value: "material" }
339
- ],
340
- defaultValue: "quartz"
341
- },
342
- {
343
- name: "rowSelection",
344
- type: "enum",
345
- label: "Row Selection",
346
- enum: [
347
- { label: "None", value: void 0 },
348
- { label: "Single", value: "single" },
349
- { label: "Multiple", value: "multiple" }
350
- ],
351
- defaultValue: void 0,
352
- advanced: !0
353
- },
354
- {
355
- name: "domLayout",
356
- type: "enum",
357
- label: "DOM Layout",
358
- enum: [
359
- { label: "Normal", value: "normal" },
360
- { label: "Auto Height", value: "autoHeight" },
361
- { label: "Print", value: "print" }
362
- ],
363
- defaultValue: "normal",
364
- advanced: !0
365
- },
366
- {
367
- name: "animateRows",
368
- type: "boolean",
369
- label: "Animate Rows",
370
- defaultValue: !0,
371
- advanced: !0
372
- },
373
- {
374
- name: "height",
375
- type: "number",
376
- label: "Height (px)",
377
- defaultValue: 500
378
- },
379
- {
380
- name: "editable",
381
- type: "boolean",
382
- label: "Enable Editing",
383
- defaultValue: !1,
384
- description: "Allow cells to be edited inline",
385
- advanced: !0
386
- },
387
- {
388
- name: "singleClickEdit",
389
- type: "boolean",
390
- label: "Single Click Edit",
391
- defaultValue: !1,
392
- description: "Start editing on single click instead of double click",
393
- advanced: !0
394
- },
395
- {
396
- name: "exportConfig",
397
- type: "code",
398
- label: "Export Config (JSON)",
399
- description: 'Configure CSV export: { enabled: true, fileName: "data.csv" }',
400
- advanced: !0
401
- },
402
- {
403
- name: "statusBar",
404
- type: "code",
405
- label: "Status Bar Config (JSON)",
406
- description: 'Configure status bar: { enabled: true, aggregations: ["count", "sum", "avg"] }',
407
- advanced: !0
408
- },
409
- {
410
- name: "callbacks",
411
- type: "code",
412
- label: "Event Callbacks (JSON)",
413
- description: "Event handlers for cell clicks, selection changes, etc.",
414
- advanced: !0
415
- },
416
- {
417
- name: "columnConfig",
418
- type: "code",
419
- label: "Column Config (JSON)",
420
- description: "Global column settings: { resizable: true, sortable: true, filterable: true }",
421
- advanced: !0
422
- },
423
- {
424
- name: "enableRangeSelection",
425
- type: "boolean",
426
- label: "Enable Range Selection",
427
- defaultValue: !1,
428
- description: "Allow selecting ranges of cells (like Excel)",
429
- advanced: !0
430
- },
431
- {
432
- name: "enableCharts",
433
- type: "boolean",
434
- label: "Enable Charts",
435
- defaultValue: !1,
436
- description: "Enable integrated charting (requires AG Grid Enterprise)",
437
- advanced: !0
438
- },
439
- {
440
- name: "contextMenu",
441
- type: "code",
442
- label: "Context Menu Config (JSON)",
443
- description: 'Configure right-click menu: { enabled: true, items: ["copy", "export"] }',
444
- advanced: !0
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
- },
467
- {
468
- name: "gridOptions",
469
- type: "code",
470
- label: "Grid Options (JSON)",
471
- description: "Advanced AG Grid options",
472
- advanced: !0
473
- },
474
- {
475
- name: "className",
476
- type: "string",
477
- label: "CSS Class"
478
- }
479
- ],
480
- defaultProps: {
481
- rowData: [
482
- { make: "Tesla", model: "Model Y", price: 64950, electric: !0 },
483
- { make: "Ford", model: "F-Series", price: 33850, electric: !1 },
484
- { make: "Toyota", model: "Corolla", price: 29600, electric: !1 },
485
- { make: "Mercedes", model: "EQA", price: 48890, electric: !0 },
486
- { make: "Fiat", model: "500", price: 15774, electric: !1 },
487
- { make: "Nissan", model: "Juke", price: 20675, electric: !1 },
488
- { make: "Vauxhall", model: "Corsa", price: 18460, electric: !1 },
489
- { make: "Volvo", model: "XC90", price: 72835, electric: !1 },
490
- { make: "Mercedes", model: "GLA", price: 47825, electric: !1 },
491
- { make: "Ford", model: "Puma", price: 27420, electric: !1 },
492
- { make: "Volkswagen", model: "Golf", price: 28850, electric: !1 },
493
- { make: "Kia", model: "Sportage", price: 31095, electric: !1 }
494
- ],
495
- columnDefs: [
496
- { field: "make", headerName: "Make", sortable: !0, filter: !0 },
497
- { field: "model", headerName: "Model", sortable: !0, filter: !0 },
498
- {
499
- field: "price",
500
- headerName: "Price",
501
- sortable: !0,
502
- filter: "number",
503
- valueFormatter: (a) => a.value != null ? "$" + a.value.toLocaleString() : ""
504
- },
505
- {
506
- field: "electric",
507
- headerName: "Electric",
508
- sortable: !0,
509
- filter: !0,
510
- cellRenderer: (a) => a.value === !0 ? "⚡ Yes" : "No"
511
- }
512
- ],
513
- pagination: !0,
514
- paginationPageSize: 10,
515
- theme: "quartz",
516
- height: 500,
517
- animateRows: !0,
518
- domLayout: "normal"
519
- }
520
- }
521
- );
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": $
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
- );
657
- export {
658
- q as A,
659
- $ as O,
660
- be as a,
661
- s as j
662
- };