@object-ui/plugin-charts 0.5.0 → 3.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 +7 -7
- package/CHANGELOG.md +34 -0
- package/dist/{AdvancedChartImpl-DcIHnCct.js → AdvancedChartImpl-BPJDgZhN.js} +429 -398
- package/dist/{ChartImpl-CU5lEzui.js → ChartImpl-C-IeuOgj.js} +2 -2
- package/dist/{index-DgxI83zT.js → index-B49zCCfG.js} +100 -84
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +12 -12
- package/dist/src/ObjectChart.stories.d.ts +24 -0
- package/package.json +8 -8
- package/src/AdvancedChartImpl.tsx +26 -4
- package/src/ChartImpl.tsx +2 -2
- package/src/ChartRenderer.tsx +2 -2
- package/src/ObjectChart.stories.tsx +104 -0
- package/src/ObjectChart.tsx +8 -3
- package/src/index.tsx +13 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./index-
|
|
1
|
+
import { j as r } from "./index-B49zCCfG.js";
|
|
2
2
|
import { R as l, B as n, C as d, X as f, Y as p, T as x, L as u, a as c } from "./BarChart-C_I0OFbj.js";
|
|
3
3
|
function j({
|
|
4
4
|
data: e = [],
|
|
@@ -9,7 +9,7 @@ function j({
|
|
|
9
9
|
// Default to standard primary color
|
|
10
10
|
color: o = "hsl(var(--primary))"
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ r.jsx("div", { className: `p-4 rounded-xl border border-border bg-card/40 backdrop-blur-sm shadow-lg shadow-background/5 ${i}`, children: /* @__PURE__ */ r.jsx(l, { width: "100%", height: t, children: /* @__PURE__ */ r.jsxs(n, { data: e, margin: { top:
|
|
12
|
+
return /* @__PURE__ */ r.jsx("div", { className: `p-2 sm:p-3 md:p-4 rounded-xl border border-border bg-card/40 backdrop-blur-sm shadow-lg shadow-background/5 ${i}`, children: /* @__PURE__ */ r.jsx(l, { width: "100%", height: t, children: /* @__PURE__ */ r.jsxs(n, { data: e, margin: { top: 10, right: 10, left: 10, bottom: 5 }, children: [
|
|
13
13
|
/* @__PURE__ */ r.jsxs("defs", { children: [
|
|
14
14
|
/* @__PURE__ */ r.jsxs("linearGradient", { id: "barGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
15
15
|
/* @__PURE__ */ r.jsx("stop", { offset: "0%", stopColor: o, stopOpacity: 1 }),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ComponentRegistry as m } from "@object-ui/core";
|
|
2
|
-
import
|
|
3
|
-
import { Skeleton as
|
|
4
|
-
import { useSchemaContext as
|
|
2
|
+
import O, { Suspense as z, useState as L, useEffect as ce } from "react";
|
|
3
|
+
import { Skeleton as W } from "@object-ui/components";
|
|
4
|
+
import { useSchemaContext as ie, useDataScope as ue } from "@object-ui/react";
|
|
5
5
|
var j = { exports: {} }, E = {};
|
|
6
6
|
var V;
|
|
7
|
-
function
|
|
7
|
+
function fe() {
|
|
8
8
|
if (V) return E;
|
|
9
9
|
V = 1;
|
|
10
10
|
var a = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
11
|
-
function u
|
|
11
|
+
function i(u, l, c) {
|
|
12
12
|
var d = null;
|
|
13
13
|
if (c !== void 0 && (d = "" + c), l.key !== void 0 && (d = "" + l.key), "key" in l) {
|
|
14
14
|
c = {};
|
|
@@ -17,53 +17,53 @@ function ie() {
|
|
|
17
17
|
} else c = l;
|
|
18
18
|
return l = c.ref, {
|
|
19
19
|
$$typeof: a,
|
|
20
|
-
type:
|
|
20
|
+
type: u,
|
|
21
21
|
key: d,
|
|
22
22
|
ref: l !== void 0 ? l : null,
|
|
23
23
|
props: c
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
return E.Fragment = t, E.jsx =
|
|
26
|
+
return E.Fragment = t, E.jsx = i, E.jsxs = i, E;
|
|
27
27
|
}
|
|
28
28
|
var R = {};
|
|
29
29
|
var J;
|
|
30
|
-
function
|
|
30
|
+
function de() {
|
|
31
31
|
return J || (J = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
32
32
|
function a(e) {
|
|
33
33
|
if (e == null) return null;
|
|
34
34
|
if (typeof e == "function")
|
|
35
|
-
return e.$$typeof ===
|
|
35
|
+
return e.$$typeof === le ? null : e.displayName || e.name || null;
|
|
36
36
|
if (typeof e == "string") return e;
|
|
37
37
|
switch (e) {
|
|
38
|
-
case
|
|
38
|
+
case C:
|
|
39
39
|
return "Fragment";
|
|
40
|
-
case
|
|
40
|
+
case H:
|
|
41
41
|
return "Profiler";
|
|
42
|
-
case
|
|
42
|
+
case G:
|
|
43
43
|
return "StrictMode";
|
|
44
|
-
case ee:
|
|
45
|
-
return "Suspense";
|
|
46
44
|
case re:
|
|
45
|
+
return "Suspense";
|
|
46
|
+
case ae:
|
|
47
47
|
return "SuspenseList";
|
|
48
|
-
case
|
|
48
|
+
case ne:
|
|
49
49
|
return "Activity";
|
|
50
50
|
}
|
|
51
51
|
if (typeof e == "object")
|
|
52
52
|
switch (typeof e.tag == "number" && console.error(
|
|
53
53
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
54
54
|
), e.$$typeof) {
|
|
55
|
-
case
|
|
55
|
+
case B:
|
|
56
56
|
return "Portal";
|
|
57
|
-
case
|
|
57
|
+
case Q:
|
|
58
58
|
return e.displayName || "Context";
|
|
59
|
-
case
|
|
59
|
+
case Z:
|
|
60
60
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
61
|
-
case
|
|
61
|
+
case ee:
|
|
62
62
|
var r = e.render;
|
|
63
63
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
64
|
-
case
|
|
64
|
+
case te:
|
|
65
65
|
return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
|
|
66
|
-
case
|
|
66
|
+
case k:
|
|
67
67
|
r = e._payload, e = e._init;
|
|
68
68
|
try {
|
|
69
69
|
return a(e(r));
|
|
@@ -75,7 +75,7 @@ function fe() {
|
|
|
75
75
|
function t(e) {
|
|
76
76
|
return "" + e;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function i(e) {
|
|
79
79
|
try {
|
|
80
80
|
t(e);
|
|
81
81
|
var r = !1;
|
|
@@ -92,9 +92,9 @@ function fe() {
|
|
|
92
92
|
), t(e);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
if (e ===
|
|
97
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
95
|
+
function u(e) {
|
|
96
|
+
if (e === C) return "<>";
|
|
97
|
+
if (typeof e == "object" && e !== null && e.$$typeof === k)
|
|
98
98
|
return "<...>";
|
|
99
99
|
try {
|
|
100
100
|
var r = a(e);
|
|
@@ -104,14 +104,14 @@ function fe() {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
function l() {
|
|
107
|
-
var e =
|
|
107
|
+
var e = N.A;
|
|
108
108
|
return e === null ? null : e.getOwner();
|
|
109
109
|
}
|
|
110
110
|
function c() {
|
|
111
111
|
return Error("react-stack-top-frame");
|
|
112
112
|
}
|
|
113
113
|
function d(e) {
|
|
114
|
-
if (
|
|
114
|
+
if (F.call(e, "key")) {
|
|
115
115
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
116
116
|
if (r && r.isReactWarning) return !1;
|
|
117
117
|
}
|
|
@@ -119,7 +119,7 @@ function fe() {
|
|
|
119
119
|
}
|
|
120
120
|
function p(e, r) {
|
|
121
121
|
function n() {
|
|
122
|
-
|
|
122
|
+
K || (K = !0, console.error(
|
|
123
123
|
"%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)",
|
|
124
124
|
r
|
|
125
125
|
));
|
|
@@ -129,23 +129,23 @@ function fe() {
|
|
|
129
129
|
configurable: !0
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function h() {
|
|
133
133
|
var e = a(this.type);
|
|
134
|
-
return
|
|
134
|
+
return Y[e] || (Y[e] = !0, console.error(
|
|
135
135
|
"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."
|
|
136
136
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function T(e, r, n, o, S, w) {
|
|
139
139
|
var s = n.ref;
|
|
140
140
|
return e = {
|
|
141
|
-
$$typeof:
|
|
141
|
+
$$typeof: v,
|
|
142
142
|
type: e,
|
|
143
143
|
key: r,
|
|
144
144
|
props: n,
|
|
145
145
|
_owner: o
|
|
146
146
|
}, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
|
|
147
147
|
enumerable: !1,
|
|
148
|
-
get:
|
|
148
|
+
get: h
|
|
149
149
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
150
150
|
configurable: !1,
|
|
151
151
|
enumerable: !1,
|
|
@@ -168,11 +168,11 @@ function fe() {
|
|
|
168
168
|
value: w
|
|
169
169
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function x(e, r, n, o, S, w) {
|
|
172
172
|
var s = r.children;
|
|
173
173
|
if (s !== void 0)
|
|
174
174
|
if (o)
|
|
175
|
-
if (
|
|
175
|
+
if (oe(s)) {
|
|
176
176
|
for (o = 0; o < s.length; o++)
|
|
177
177
|
y(s[o]);
|
|
178
178
|
Object.freeze && Object.freeze(s);
|
|
@@ -181,10 +181,10 @@ function fe() {
|
|
|
181
181
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
182
182
|
);
|
|
183
183
|
else y(s);
|
|
184
|
-
if (
|
|
184
|
+
if (F.call(r, "key")) {
|
|
185
185
|
s = a(e);
|
|
186
|
-
var _ = Object.keys(r).filter(function(
|
|
187
|
-
return
|
|
186
|
+
var _ = Object.keys(r).filter(function(se) {
|
|
187
|
+
return se !== "key";
|
|
188
188
|
});
|
|
189
189
|
o = 0 < _.length ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}", I[s + o] || (_ = 0 < _.length ? "{" + _.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
190
190
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -199,7 +199,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
199
199
|
s
|
|
200
200
|
), I[s + o] = !0);
|
|
201
201
|
}
|
|
202
|
-
if (s = null, n !== void 0 && (
|
|
202
|
+
if (s = null, n !== void 0 && (i(n), s = "" + n), d(r) && (i(r.key), s = "" + r.key), "key" in r) {
|
|
203
203
|
n = {};
|
|
204
204
|
for (var D in r)
|
|
205
205
|
D !== "key" && (n[D] = r[D]);
|
|
@@ -207,7 +207,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
207
207
|
return s && p(
|
|
208
208
|
n,
|
|
209
209
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
210
|
-
),
|
|
210
|
+
), T(
|
|
211
211
|
e,
|
|
212
212
|
s,
|
|
213
213
|
n,
|
|
@@ -217,12 +217,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
function y(e) {
|
|
220
|
-
A(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof ===
|
|
220
|
+
A(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === k && (e._payload.status === "fulfilled" ? A(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
221
221
|
}
|
|
222
222
|
function A(e) {
|
|
223
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
223
|
+
return typeof e == "object" && e !== null && e.$$typeof === v;
|
|
224
224
|
}
|
|
225
|
-
var f =
|
|
225
|
+
var f = O, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), B = /* @__PURE__ */ Symbol.for("react.portal"), C = /* @__PURE__ */ Symbol.for("react.fragment"), G = /* @__PURE__ */ Symbol.for("react.strict_mode"), H = /* @__PURE__ */ Symbol.for("react.profiler"), Z = /* @__PURE__ */ Symbol.for("react.consumer"), Q = /* @__PURE__ */ Symbol.for("react.context"), ee = /* @__PURE__ */ Symbol.for("react.forward_ref"), re = /* @__PURE__ */ Symbol.for("react.suspense"), ae = /* @__PURE__ */ Symbol.for("react.suspense_list"), te = /* @__PURE__ */ Symbol.for("react.memo"), k = /* @__PURE__ */ Symbol.for("react.lazy"), ne = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), N = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, oe = Array.isArray, P = console.createTask ? console.createTask : function() {
|
|
226
226
|
return null;
|
|
227
227
|
};
|
|
228
228
|
f = {
|
|
@@ -230,40 +230,40 @@ React keys must be passed directly to JSX without using spread:
|
|
|
230
230
|
return e();
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
|
-
var
|
|
233
|
+
var K, Y = {}, M = f.react_stack_bottom_frame.bind(
|
|
234
234
|
f,
|
|
235
235
|
c
|
|
236
|
-
)(), $ =
|
|
237
|
-
R.Fragment =
|
|
238
|
-
var o = 1e4 >
|
|
239
|
-
return
|
|
236
|
+
)(), $ = P(u(c)), I = {};
|
|
237
|
+
R.Fragment = C, R.jsx = function(e, r, n) {
|
|
238
|
+
var o = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
239
|
+
return x(
|
|
240
240
|
e,
|
|
241
241
|
r,
|
|
242
242
|
n,
|
|
243
243
|
!1,
|
|
244
244
|
o ? Error("react-stack-top-frame") : M,
|
|
245
|
-
o ?
|
|
245
|
+
o ? P(u(e)) : $
|
|
246
246
|
);
|
|
247
247
|
}, R.jsxs = function(e, r, n) {
|
|
248
|
-
var o = 1e4 >
|
|
249
|
-
return
|
|
248
|
+
var o = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
249
|
+
return x(
|
|
250
250
|
e,
|
|
251
251
|
r,
|
|
252
252
|
n,
|
|
253
253
|
!0,
|
|
254
254
|
o ? Error("react-stack-top-frame") : M,
|
|
255
|
-
o ?
|
|
255
|
+
o ? P(u(e)) : $
|
|
256
256
|
);
|
|
257
257
|
};
|
|
258
258
|
})()), R;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
function
|
|
262
|
-
return
|
|
260
|
+
var q;
|
|
261
|
+
function pe() {
|
|
262
|
+
return q || (q = 1, process.env.NODE_ENV === "production" ? j.exports = fe() : j.exports = de()), j.exports;
|
|
263
263
|
}
|
|
264
|
-
var
|
|
265
|
-
const
|
|
266
|
-
|
|
264
|
+
var g = pe();
|
|
265
|
+
const me = O.lazy(() => import("./ChartImpl-C-IeuOgj.js")), be = O.lazy(() => import("./AdvancedChartImpl-BPJDgZhN.js")), U = ({ schema: a }) => /* @__PURE__ */ g.jsx(z, { fallback: /* @__PURE__ */ g.jsx(W, { className: "w-full h-48 sm:h-64 md:h-80 lg:h-[400px]" }), children: /* @__PURE__ */ g.jsx(
|
|
266
|
+
me,
|
|
267
267
|
{
|
|
268
268
|
data: a.data,
|
|
269
269
|
dataKey: a.dataKey,
|
|
@@ -273,25 +273,25 @@ const pe = k.lazy(() => import("./ChartImpl-CU5lEzui.js")), me = k.lazy(() => im
|
|
|
273
273
|
color: a.color
|
|
274
274
|
}
|
|
275
275
|
) }), b = ({ schema: a }) => {
|
|
276
|
-
const t =
|
|
277
|
-
let
|
|
278
|
-
if (
|
|
276
|
+
const t = O.useMemo(() => {
|
|
277
|
+
let i = a.series, u = a.xAxisKey, l = a.config;
|
|
278
|
+
if (u || (a.index ? u = a.index : a.category && (u = a.category)), i || (a.categories ? i = a.categories.map((c) => ({ dataKey: c })) : a.value && (i = [{ dataKey: a.value }])), !l && i) {
|
|
279
279
|
const c = a.colors || ["hsl(var(--chart-1))", "hsl(var(--chart-2))", "hsl(var(--chart-3))"], d = {};
|
|
280
|
-
|
|
281
|
-
d[p.dataKey] = { label: p.dataKey, color: c[
|
|
280
|
+
i.forEach((p, h) => {
|
|
281
|
+
d[p.dataKey] = { label: p.dataKey, color: c[h % c.length] };
|
|
282
282
|
}), l = d;
|
|
283
283
|
}
|
|
284
284
|
return {
|
|
285
285
|
chartType: a.chartType,
|
|
286
286
|
data: a.data,
|
|
287
287
|
config: l,
|
|
288
|
-
xAxisKey:
|
|
289
|
-
series:
|
|
288
|
+
xAxisKey: u,
|
|
289
|
+
series: i,
|
|
290
290
|
className: a.className
|
|
291
291
|
};
|
|
292
292
|
}, [a]);
|
|
293
|
-
return /* @__PURE__ */
|
|
294
|
-
|
|
293
|
+
return /* @__PURE__ */ g.jsx(z, { fallback: /* @__PURE__ */ g.jsx(W, { className: "w-full h-48 sm:h-64 md:h-80 lg:h-[400px]" }), children: /* @__PURE__ */ g.jsx(
|
|
294
|
+
be,
|
|
295
295
|
{
|
|
296
296
|
chartType: t.chartType,
|
|
297
297
|
data: t.data,
|
|
@@ -301,40 +301,45 @@ const pe = k.lazy(() => import("./ChartImpl-CU5lEzui.js")), me = k.lazy(() => im
|
|
|
301
301
|
className: t.className
|
|
302
302
|
}
|
|
303
303
|
) });
|
|
304
|
-
},
|
|
305
|
-
const { schema: t } = a,
|
|
306
|
-
|
|
304
|
+
}, X = (a) => {
|
|
305
|
+
const { schema: t } = a, i = ie(), u = a.dataSource || i.dataSource, l = ue(t.bind), [c, d] = L([]), [p, h] = L(!1);
|
|
306
|
+
ce(() => {
|
|
307
307
|
let y = !0;
|
|
308
308
|
const A = async () => {
|
|
309
|
-
if (!(!
|
|
310
|
-
y &&
|
|
309
|
+
if (!(!u || !t.objectName)) {
|
|
310
|
+
y && h(!0);
|
|
311
311
|
try {
|
|
312
|
-
const f = await
|
|
312
|
+
const f = await u.find(t.objectName, {
|
|
313
313
|
$filter: t.filter
|
|
314
314
|
});
|
|
315
|
-
let
|
|
316
|
-
Array.isArray(f) ?
|
|
315
|
+
let v = [];
|
|
316
|
+
Array.isArray(f) ? v = f : f && typeof f == "object" && Array.isArray(f.records) && (v = f.records), y && d(v);
|
|
317
317
|
} catch (f) {
|
|
318
318
|
console.error("[ObjectChart] Fetch error:", f);
|
|
319
319
|
} finally {
|
|
320
|
-
y &&
|
|
320
|
+
y && h(!1);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
return t.objectName && !l && !t.data && A(), () => {
|
|
325
325
|
y = !1;
|
|
326
326
|
};
|
|
327
|
-
}, [t.objectName,
|
|
328
|
-
const
|
|
327
|
+
}, [t.objectName, u, l, t.data, t.filter]);
|
|
328
|
+
const T = l || t.data || c || [], x = {
|
|
329
329
|
...t,
|
|
330
|
-
data:
|
|
330
|
+
data: T
|
|
331
331
|
};
|
|
332
|
-
return p &&
|
|
332
|
+
return p && T.length, /* @__PURE__ */ g.jsx(b, { ...a, schema: x });
|
|
333
333
|
};
|
|
334
|
-
m.register("object-chart",
|
|
334
|
+
m.register("object-chart", X, {
|
|
335
335
|
namespace: "plugin-charts",
|
|
336
336
|
label: "Object Chart",
|
|
337
|
-
category: "view"
|
|
337
|
+
category: "view",
|
|
338
|
+
inputs: [
|
|
339
|
+
{ name: "objectName", type: "string", label: "Object Name", required: !0 },
|
|
340
|
+
{ name: "data", type: "array", label: "Data", description: "Optional static data" },
|
|
341
|
+
{ name: "filter", type: "array", label: "Filter" }
|
|
342
|
+
]
|
|
338
343
|
});
|
|
339
344
|
const _e = {
|
|
340
345
|
"bar-chart": U,
|
|
@@ -369,6 +374,17 @@ m.register(
|
|
|
369
374
|
}
|
|
370
375
|
}
|
|
371
376
|
);
|
|
377
|
+
m.register("chart", X, {
|
|
378
|
+
namespace: "view",
|
|
379
|
+
category: "view",
|
|
380
|
+
label: "Chart",
|
|
381
|
+
inputs: [
|
|
382
|
+
{ name: "objectName", type: "string", label: "Object Name", required: !0 },
|
|
383
|
+
{ name: "type", type: "string", label: "Chart Type" },
|
|
384
|
+
{ name: "categoryField", type: "string", label: "Category Field" },
|
|
385
|
+
{ name: "valueField", type: "string", label: "Value Field" }
|
|
386
|
+
]
|
|
387
|
+
});
|
|
372
388
|
m.register(
|
|
373
389
|
"chart",
|
|
374
390
|
b,
|
|
@@ -471,8 +487,8 @@ m.register(
|
|
|
471
487
|
);
|
|
472
488
|
export {
|
|
473
489
|
U as C,
|
|
474
|
-
|
|
490
|
+
X as O,
|
|
475
491
|
b as a,
|
|
476
492
|
_e as c,
|
|
477
|
-
|
|
493
|
+
g as j
|
|
478
494
|
};
|
package/dist/index.js
CHANGED