@object-ui/plugin-charts 0.5.0 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @object-ui/plugin-charts@0.5.0 build /home/runner/work/objectui/objectui/packages/plugin-charts
2
+ > @object-ui/plugin-charts@2.0.0 build /home/runner/work/objectui/objectui/packages/plugin-charts
3
3
  > vite build
4
4
 
5
5
  vite v7.3.1 building client environment for production...
@@ -9,12 +9,12 @@ rendering chunks...
9
9
  
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- [vite:dts] Declaration files built in 23214ms.
12
+ [vite:dts] Declaration files built in 24061ms.
13
13
  
14
14
  dist/index.js  0.20 kB │ gzip: 0.16 kB
15
- dist/ChartImpl-CU5lEzui.js  3.25 kB │ gzip: 1.10 kB
16
- dist/index-DgxI83zT.js  14.93 kB │ gzip: 4.43 kB
17
- dist/AdvancedChartImpl-DcIHnCct.js 127.68 kB │ gzip: 26.51 kB
15
+ dist/ChartImpl-B5LY4On3.js  3.25 kB │ gzip: 1.10 kB
16
+ dist/index-DSBO2Kdy.js  15.55 kB │ gzip: 4.54 kB
17
+ dist/AdvancedChartImpl-DFmeUY4Q.js 127.68 kB │ gzip: 26.51 kB
18
18
  dist/BarChart-C_I0OFbj.js 555.79 kB │ gzip: 138.30 kB
19
- dist/index.umd.cjs 481.85 kB │ gzip: 138.68 kB
20
- ✓ built in 41.15s
19
+ dist/index.umd.cjs 482.37 kB │ gzip: 138.79 kB
20
+ ✓ built in 43.95s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @object-ui/plugin-charts
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - b859617: Release v1.0.0 — unify all package versions to 1.0.0
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b859617]
12
+ - @object-ui/types@2.0.0
13
+ - @object-ui/core@2.0.0
14
+ - @object-ui/react@2.0.0
15
+ - @object-ui/components@2.0.0
16
+
3
17
  ## 0.3.1
4
18
 
5
19
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { j as A } from "./index-DgxI83zT.js";
1
+ import { j as A } from "./index-DSBO2Kdy.js";
2
2
  import * as o from "react";
3
3
  import { useMemo as le, useEffect as St, useRef as Z, useState as Re, useCallback as re, isValidElement as Fr, cloneElement as Vr, Component as Xa, PureComponent as Ya, useLayoutEffect as nr, forwardRef as Oe } from "react";
4
4
  import { c as W, s as de, r as Ha, i as Q, b as Gr, d as N, e as w, f as nt, g as Ua, h as qr, j as Ja, k as ye, p as ce, l as Qa, m as ee, n as en, o as tn, q as rn, t as kt, u as an, v as nn, w as ln, x as on, y as sn, z as cn, A as un, D as dn, E as vn, F as pn, G as K, H as fn, I as Zr, J as mn, K as Xr, M as Dt, N as yn, O as hn, P as gn, Q as bn, S as z, U as $, Z as X, V as ae, W as it, _ as G, $ as Yr, a0 as Hr, a1 as Ur, a2 as lt, a3 as Jr, a4 as $e, a5 as xn, a6 as Pn, a7 as An, a8 as L, a9 as On, aa as En, ab as Qr, ac as pe, ad as ot, ae as _t, af as Lt, ag as jn, ah as In, ai as wn, aj as ue, ak as Ue, al as ne, am as Sn, an as Ne, ao as ea, ap as Ct, aq as ta, ar as st, as as Ke, at as Be, au as Me, av as kn, aw as R, ax as He, ay as Dn, az as Tt, aA as _n, aB as Ln, aC as ra, aD as aa, aE as na, aF as ia, aG as Cn, aH as Je, aI as We, aJ as Tn, aK as Se, aL as ke, aM as Rt, aN as Rn, aO as $n, aP as H, aQ as ct, aR as Pe, aS as Nn, aT as ut, aU as la, aV as Ee, aW as je, aX as $t, aY as Nt, aZ as Kt, a_ as Bt, a$ as Mt, b0 as oa, b1 as sa, b2 as Wt, b3 as ca, b4 as Ae, b5 as Kn, b6 as Bn, b7 as zt, b8 as Ft, b9 as Mn, ba as Wn, bb as zn, bc as Fn, bd as Vn, be as Gn, bf as Qe, bg as qn, bh as Zn, bi as Xn, bj as oe, bk as Yn, bl as Hn, bm as Un, bn as Jn, bo as Qn, bp as ei, bq as Vt, br as ze, bs as ti, bt as ri, bu as ai, bv as ni, bw as ii, bx as li, T as oi, L as si, R as ci, C as ir, X as lr, Y as ui, B as or, a as di } from "./BarChart-C_I0OFbj.js";
@@ -1,4 +1,4 @@
1
- import { j as r } from "./index-DgxI83zT.js";
1
+ import { j as r } from "./index-DSBO2Kdy.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 = [],
@@ -1,14 +1,14 @@
1
1
  import { ComponentRegistry as m } from "@object-ui/core";
2
- import k, { Suspense as W, useState as L, useEffect as se } from "react";
3
- import { Skeleton as q } from "@object-ui/components";
4
- import { useSchemaContext as ce, useDataScope as ue } from "@object-ui/react";
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 ie() {
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(i, l, c) {
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: i,
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 = u, E.jsxs = u, E;
26
+ return E.Fragment = t, E.jsx = i, E.jsxs = i, E;
27
27
  }
28
28
  var R = {};
29
29
  var J;
30
- function fe() {
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 === ne ? null : e.displayName || e.name || null;
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 O:
38
+ case C:
39
39
  return "Fragment";
40
- case G:
40
+ case H:
41
41
  return "Profiler";
42
- case B:
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 te:
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 X:
55
+ case B:
56
56
  return "Portal";
57
- case Z:
57
+ case Q:
58
58
  return e.displayName || "Context";
59
- case H:
59
+ case Z:
60
60
  return (e._context.displayName || "Context") + ".Consumer";
61
- case Q:
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 ae:
64
+ case te:
65
65
  return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
66
- case C:
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 u(e) {
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 i(e) {
96
- if (e === O) return "<>";
97
- if (typeof e == "object" && e !== null && e.$$typeof === C)
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 = P.A;
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 (K.call(e, "key")) {
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
- Y || (Y = !0, console.error(
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,13 +129,13 @@ function fe() {
129
129
  configurable: !0
130
130
  });
131
131
  }
132
- function g() {
132
+ function v() {
133
133
  var e = a(this.type);
134
- return F[e] || (F[e] = !0, console.error(
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 x(e, r, n, o, S, w) {
138
+ function T(e, r, n, o, S, w) {
139
139
  var s = n.ref;
140
140
  return e = {
141
141
  $$typeof: h,
@@ -145,7 +145,7 @@ function fe() {
145
145
  _owner: o
146
146
  }, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
147
147
  enumerable: !1,
148
- get: g
148
+ get: v
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 T(e, r, n, o, S, w) {
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 (le(s)) {
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 (K.call(r, "key")) {
184
+ if (F.call(r, "key")) {
185
185
  s = a(e);
186
- var _ = Object.keys(r).filter(function(oe) {
187
- return oe !== "key";
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 && (u(n), s = "" + n), d(r) && (u(r.key), s = "" + r.key), "key" in r) {
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
- ), x(
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 === C && (e._payload.status === "fulfilled" ? A(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
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
223
  return typeof e == "object" && e !== null && e.$$typeof === h;
224
224
  }
225
- var f = k, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), X = /* @__PURE__ */ Symbol.for("react.portal"), O = /* @__PURE__ */ Symbol.for("react.fragment"), B = /* @__PURE__ */ Symbol.for("react.strict_mode"), G = /* @__PURE__ */ Symbol.for("react.profiler"), H = /* @__PURE__ */ Symbol.for("react.consumer"), Z = /* @__PURE__ */ Symbol.for("react.context"), Q = /* @__PURE__ */ Symbol.for("react.forward_ref"), ee = /* @__PURE__ */ Symbol.for("react.suspense"), re = /* @__PURE__ */ Symbol.for("react.suspense_list"), ae = /* @__PURE__ */ Symbol.for("react.memo"), C = /* @__PURE__ */ Symbol.for("react.lazy"), te = /* @__PURE__ */ Symbol.for("react.activity"), ne = /* @__PURE__ */ Symbol.for("react.client.reference"), P = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, le = Array.isArray, N = console.createTask ? console.createTask : function() {
225
+ var f = O, h = /* @__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 Y, F = {}, M = f.react_stack_bottom_frame.bind(
233
+ var K, Y = {}, M = f.react_stack_bottom_frame.bind(
234
234
  f,
235
235
  c
236
- )(), $ = N(i(c)), I = {};
237
- R.Fragment = O, R.jsx = function(e, r, n) {
238
- var o = 1e4 > P.recentlyCreatedOwnerStacks++;
239
- return T(
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 ? N(i(e)) : $
245
+ o ? P(u(e)) : $
246
246
  );
247
247
  }, R.jsxs = function(e, r, n) {
248
- var o = 1e4 > P.recentlyCreatedOwnerStacks++;
249
- return T(
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 ? N(i(e)) : $
255
+ o ? P(u(e)) : $
256
256
  );
257
257
  };
258
258
  })()), R;
259
259
  }
260
- var z;
261
- function de() {
262
- return z || (z = 1, process.env.NODE_ENV === "production" ? j.exports = ie() : j.exports = fe()), j.exports;
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 v = de();
265
- const pe = k.lazy(() => import("./ChartImpl-CU5lEzui.js")), me = k.lazy(() => import("./AdvancedChartImpl-DcIHnCct.js")), U = ({ schema: a }) => /* @__PURE__ */ v.jsx(W, { fallback: /* @__PURE__ */ v.jsx(q, { className: "w-full h-[400px]" }), children: /* @__PURE__ */ v.jsx(
266
- pe,
264
+ var g = pe();
265
+ const me = O.lazy(() => import("./ChartImpl-B5LY4On3.js")), be = O.lazy(() => import("./AdvancedChartImpl-DFmeUY4Q.js")), U = ({ schema: a }) => /* @__PURE__ */ g.jsx(z, { fallback: /* @__PURE__ */ g.jsx(W, { className: "w-full 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 = k.useMemo(() => {
277
- let u = a.series, i = a.xAxisKey, l = a.config;
278
- if (i || (a.index ? i = a.index : a.category && (i = a.category)), u || (a.categories ? u = a.categories.map((c) => ({ dataKey: c })) : a.value && (u = [{ dataKey: a.value }])), !l && u) {
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
- u.forEach((p, g) => {
281
- d[p.dataKey] = { label: p.dataKey, color: c[g % c.length] };
280
+ i.forEach((p, v) => {
281
+ d[p.dataKey] = { label: p.dataKey, color: c[v % 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: i,
289
- series: u,
288
+ xAxisKey: u,
289
+ series: i,
290
290
  className: a.className
291
291
  };
292
292
  }, [a]);
293
- return /* @__PURE__ */ v.jsx(W, { fallback: /* @__PURE__ */ v.jsx(q, { className: "w-full h-[400px]" }), children: /* @__PURE__ */ v.jsx(
294
- me,
293
+ return /* @__PURE__ */ g.jsx(z, { fallback: /* @__PURE__ */ g.jsx(W, { className: "w-full h-[400px]" }), children: /* @__PURE__ */ g.jsx(
294
+ be,
295
295
  {
296
296
  chartType: t.chartType,
297
297
  data: t.data,
@@ -301,15 +301,15 @@ const pe = k.lazy(() => import("./ChartImpl-CU5lEzui.js")), me = k.lazy(() => im
301
301
  className: t.className
302
302
  }
303
303
  ) });
304
- }, be = (a) => {
305
- const { schema: t } = a, u = ce(), i = a.dataSource || u.dataSource, l = ue(t.bind), [c, d] = L([]), [p, g] = L(!1);
306
- se(() => {
304
+ }, X = (a) => {
305
+ const { schema: t } = a, i = ie(), u = a.dataSource || i.dataSource, l = ue(t.bind), [c, d] = L([]), [p, v] = L(!1);
306
+ ce(() => {
307
307
  let y = !0;
308
308
  const A = async () => {
309
- if (!(!i || !t.objectName)) {
310
- y && g(!0);
309
+ if (!(!u || !t.objectName)) {
310
+ y && v(!0);
311
311
  try {
312
- const f = await i.find(t.objectName, {
312
+ const f = await u.find(t.objectName, {
313
313
  $filter: t.filter
314
314
  });
315
315
  let h = [];
@@ -317,24 +317,29 @@ const pe = k.lazy(() => import("./ChartImpl-CU5lEzui.js")), me = k.lazy(() => im
317
317
  } catch (f) {
318
318
  console.error("[ObjectChart] Fetch error:", f);
319
319
  } finally {
320
- y && g(!1);
320
+ y && v(!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, i, l, t.data, t.filter]);
328
- const x = l || t.data || c || [], T = {
327
+ }, [t.objectName, u, l, t.data, t.filter]);
328
+ const T = l || t.data || c || [], x = {
329
329
  ...t,
330
- data: x
330
+ data: T
331
331
  };
332
- return p && x.length, /* @__PURE__ */ v.jsx(b, { ...a, schema: T });
332
+ return p && T.length, /* @__PURE__ */ g.jsx(b, { ...a, schema: x });
333
333
  };
334
- m.register("object-chart", be, {
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
- be as O,
490
+ X as O,
475
491
  b as a,
476
492
  _e as c,
477
- v as j
493
+ g as j
478
494
  };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@object-ui/core";
2
- import { C as t, a as o, O as s, c as C } from "./index-DgxI83zT.js";
2
+ import { C as t, a as o, O as s, c as C } from "./index-DSBO2Kdy.js";
3
3
  export {
4
4
  t as ChartBarRenderer,
5
5
  o as ChartRenderer,