@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.
- package/.turbo/turbo-build.log +99 -0
- package/CHANGELOG.md +16 -0
- package/OBJECT_AGGRID_CN.md +483 -0
- package/QUICKSTART.md +186 -0
- package/README.md +221 -1
- package/dist/AddressField-Bntpynvd.js +95 -0
- package/dist/AgGridImpl-3Mmf2qrR.js +229 -0
- package/dist/AutoNumberField-C1kBJaxh.js +8 -0
- package/dist/FileField-BDwbJvor.js +101 -0
- package/dist/FormulaField-BXNiyGoh.js +9 -0
- package/dist/GeolocationField-Df3yYcM9.js +141 -0
- package/dist/GridField-CcjQp4WM.js +29 -0
- package/dist/LocationField-BIfN5QIq.js +33 -0
- package/dist/MasterDetailField-CAEmxbIT.js +117 -0
- package/dist/ObjectAgGridImpl-EjifM4aY.js +28727 -0
- package/dist/ObjectField-BpkQpIF-.js +51 -0
- package/dist/QRCodeField-VCBewTDG.js +96 -0
- package/dist/RichTextField-CyQwSi2C.js +37 -0
- package/dist/SignatureField-Cr4tsEbj.js +96 -0
- package/dist/SummaryField-CnEJ_GZI.js +9 -0
- package/dist/UserField-DJjaVyrV.js +49 -0
- package/dist/VectorField-cPYmcKnV.js +25 -0
- package/dist/{index-B6NPAFZx.js → index-B87wd1E0.js} +301 -143
- package/dist/index.css +1 -1
- package/dist/index.js +4 -3
- package/dist/index.umd.cjs +225 -2
- package/dist/src/AgGridImpl.d.ts +5 -2
- package/dist/src/ObjectAgGridImpl.d.ts +6 -0
- package/dist/src/VirtualScrolling.d.ts +72 -0
- package/dist/src/field-renderers.d.ts +67 -0
- package/dist/src/index.d.ts +47 -2
- package/dist/src/object-aggrid.types.d.ts +74 -0
- package/dist/src/types.d.ts +48 -1
- package/package.json +11 -9
- package/src/AgGridImpl.tsx +100 -11
- package/src/ObjectAgGridImpl.tsx +501 -0
- package/src/VirtualScrolling.ts +74 -0
- package/src/field-renderers.test.tsx +383 -0
- package/src/field-renderers.tsx +224 -0
- package/src/index.test.ts +1 -1
- package/src/index.tsx +211 -2
- package/src/object-aggrid.test.ts +99 -0
- package/src/object-aggrid.types.ts +123 -0
- package/src/types.ts +57 -1
- package/vite.config.ts +13 -0
- package/dist/AgGridImpl-DKkq6v1B.js +0 -171
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentRegistry as
|
|
3
|
-
import { Skeleton as
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
var a = /* @__PURE__ */ Symbol.for("react.transitional.element"),
|
|
10
|
-
function
|
|
11
|
-
var
|
|
12
|
-
if (i !== void 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
13
|
i = {};
|
|
14
|
-
for (var
|
|
15
|
-
|
|
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:
|
|
20
|
-
key:
|
|
19
|
+
type: d,
|
|
20
|
+
key: f,
|
|
21
21
|
ref: o !== void 0 ? o : null,
|
|
22
22
|
props: i
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return b.Fragment = g, b.jsx = c, b.jsxs = c, b;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
-
return
|
|
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 ===
|
|
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
|
|
37
|
+
case S:
|
|
38
38
|
return "Fragment";
|
|
39
|
-
case
|
|
39
|
+
case H:
|
|
40
40
|
return "Profiler";
|
|
41
|
-
case
|
|
41
|
+
case U:
|
|
42
42
|
return "StrictMode";
|
|
43
|
-
case
|
|
43
|
+
case K:
|
|
44
44
|
return "Suspense";
|
|
45
|
-
case
|
|
45
|
+
case ee:
|
|
46
46
|
return "SuspenseList";
|
|
47
|
-
case
|
|
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
|
|
54
|
+
case B:
|
|
55
55
|
return "Portal";
|
|
56
|
-
case
|
|
56
|
+
case Q:
|
|
57
57
|
return e.displayName || "Context";
|
|
58
|
-
case
|
|
58
|
+
case X:
|
|
59
59
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
60
|
-
case
|
|
61
|
-
var
|
|
62
|
-
return e = e.displayName, e || (e =
|
|
63
|
-
case
|
|
64
|
-
return
|
|
65
|
-
case
|
|
66
|
-
|
|
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(
|
|
68
|
+
return a(e(t));
|
|
69
69
|
} catch {
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function g(e) {
|
|
75
75
|
return "" + e;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function c(e) {
|
|
78
78
|
try {
|
|
79
|
-
|
|
80
|
-
var
|
|
79
|
+
g(e);
|
|
80
|
+
var t = !1;
|
|
81
81
|
} catch {
|
|
82
|
-
|
|
82
|
+
t = !0;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
return
|
|
88
|
-
|
|
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
|
-
|
|
91
|
-
),
|
|
90
|
+
l
|
|
91
|
+
), g(e);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
if (e ===
|
|
96
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
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
|
|
100
|
-
return
|
|
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 =
|
|
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
|
|
113
|
-
if (
|
|
114
|
-
var
|
|
115
|
-
if (
|
|
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
|
|
120
|
-
function
|
|
121
|
-
|
|
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
|
-
|
|
123
|
+
t
|
|
124
124
|
));
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
get:
|
|
126
|
+
r.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
127
|
+
get: r,
|
|
128
128
|
configurable: !0
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function I() {
|
|
132
132
|
var e = a(this.type);
|
|
133
|
-
return
|
|
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
|
|
138
|
-
var
|
|
137
|
+
function W(e, t, r, l, E, x) {
|
|
138
|
+
var n = r.ref;
|
|
139
139
|
return e = {
|
|
140
|
-
$$typeof:
|
|
140
|
+
$$typeof: A,
|
|
141
141
|
type: e,
|
|
142
|
-
key:
|
|
143
|
-
props:
|
|
144
|
-
_owner:
|
|
145
|
-
}, (
|
|
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:
|
|
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:
|
|
162
|
+
value: E
|
|
163
163
|
}), Object.defineProperty(e, "_debugTask", {
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
writable: !0,
|
|
167
|
-
value:
|
|
167
|
+
value: x
|
|
168
168
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
var
|
|
172
|
-
if (
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
for (
|
|
176
|
-
|
|
177
|
-
Object.freeze && Object.freeze(
|
|
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
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
var u = Object.keys(
|
|
186
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
199
|
-
),
|
|
198
|
+
n
|
|
199
|
+
), V[n + l] = !0);
|
|
200
200
|
}
|
|
201
|
-
if (
|
|
202
|
-
|
|
203
|
-
for (var
|
|
204
|
-
|
|
205
|
-
} else
|
|
206
|
-
return
|
|
207
|
-
|
|
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
|
-
|
|
212
|
-
|
|
211
|
+
n,
|
|
212
|
+
r,
|
|
213
213
|
o(),
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
E,
|
|
215
|
+
x
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
O(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof ===
|
|
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 ===
|
|
222
|
+
return typeof e == "object" && e !== null && e.$$typeof === A;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
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
|
-
|
|
227
|
+
v = {
|
|
228
228
|
react_stack_bottom_frame: function(e) {
|
|
229
229
|
return e();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var P, h = {}, z = v.react_stack_bottom_frame.bind(
|
|
233
|
+
v,
|
|
234
234
|
i
|
|
235
|
-
)(), D =
|
|
236
|
-
|
|
237
|
-
var
|
|
238
|
-
return
|
|
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
|
-
|
|
244
|
-
|
|
243
|
+
l ? Error("react-stack-top-frame") : z,
|
|
244
|
+
l ? C(d(e)) : D
|
|
245
245
|
);
|
|
246
|
-
},
|
|
247
|
-
var
|
|
248
|
-
return
|
|
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
|
-
|
|
254
|
-
|
|
253
|
+
l ? Error("react-stack-top-frame") : z,
|
|
254
|
+
l ? C(d(e)) : D
|
|
255
255
|
);
|
|
256
256
|
};
|
|
257
|
-
})()),
|
|
257
|
+
})()), m;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
261
|
-
return
|
|
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
|
|
264
|
-
const
|
|
265
|
-
|
|
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
|
-
|
|
294
|
+
Y.register(
|
|
292
295
|
"aggrid",
|
|
293
|
-
|
|
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
|
|
498
|
-
|
|
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
|
-
|
|
502
|
-
|
|
503
|
-
|
|
658
|
+
q as A,
|
|
659
|
+
$ as O,
|
|
660
|
+
be as a,
|
|
661
|
+
s as j
|
|
504
662
|
};
|