@wikicasa-dev/components 2.4.1-alpha.15 → 2.4.1-alpha.16

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
- import { defineComponent as i, defineAsyncComponent as c, onMounted as p, createBlock as d, createCommentVNode as m, unref as o, openBlock as h } from "vue";
2
- import { useChartJsModules as l } from "../../../../chart/composables/useChartjsModules.js";
1
+ import { defineComponent as i, defineAsyncComponent as c, hydrateOnIdle as d, onMounted as p, createBlock as m, createCommentVNode as h, unref as e, openBlock as l } from "vue";
2
+ import { useChartJsModules as f } from "../../../../chart/composables/useChartjsModules.js";
3
3
  const x = /* @__PURE__ */ i({
4
4
  __name: "DoughnutChart",
5
5
  props: {
@@ -7,21 +7,22 @@ const x = /* @__PURE__ */ i({
7
7
  data: {}
8
8
  },
9
9
  setup(t) {
10
- const e = t, n = c(
11
- () => import("../../../../VueChartJs/Doughnut.js")
12
- ), {
10
+ const o = t, n = c({
11
+ loader: () => import("../../../../VueChartJs/Doughnut.js"),
12
+ hydrate: d()
13
+ }), {
13
14
  registerDoughnutChart: r,
14
- registerPlugins: s,
15
- resolved: a,
15
+ registerPlugins: a,
16
+ resolved: s,
16
17
  executeRegistration: u
17
- } = l(e.options);
18
+ } = f(o.options);
18
19
  return p(() => {
19
- u(r, s);
20
- }), (f, g) => o(a) ? (h(), d(o(n), {
20
+ u(r, a);
21
+ }), (g, C) => e(s) ? (l(), m(e(n), {
21
22
  key: 0,
22
23
  options: t.options,
23
24
  data: t.data
24
- }, null, 8, ["options", "data"])) : m("", !0);
25
+ }, null, 8, ["options", "data"])) : h("", !0);
25
26
  }
26
27
  });
27
28
  export {
@@ -1,37 +1,38 @@
1
- import { defineComponent as d, defineAsyncComponent as l, onMounted as h, useTemplateRef as f, computed as C, createBlock as g, createCommentVNode as x, unref as t, openBlock as k } from "vue";
2
- import { useChartJsModules as y } from "../../../../chart/composables/useChartjsModules.js";
3
- const M = /* @__PURE__ */ d({
1
+ import { defineComponent as m, defineAsyncComponent as l, hydrateOnIdle as h, onMounted as f, useTemplateRef as C, computed as g, createBlock as x, createCommentVNode as y, unref as t, openBlock as k } from "vue";
2
+ import { useChartJsModules as A } from "../../../../chart/composables/useChartjsModules.js";
3
+ const M = /* @__PURE__ */ m({
4
4
  __name: "LineChart",
5
5
  props: {
6
6
  options: {},
7
7
  data: {}
8
8
  },
9
9
  setup(e, { expose: o }) {
10
- const n = e, r = l(
11
- () => import("../../../../VueChartJs/Line.js")
12
- ), {
10
+ const n = e, r = l({
11
+ loader: () => import("../../../../VueChartJs/Line.js"),
12
+ hydrate: h()
13
+ }), {
13
14
  registerLineChart: a,
14
15
  registerPlugins: s,
15
16
  registerTimeCartesianAxis: c,
16
17
  executeRegistration: i,
17
- resolved: p
18
- } = y(n.options);
19
- h(() => {
18
+ resolved: d
19
+ } = A(n.options);
20
+ f(() => {
20
21
  i(
21
22
  a,
22
23
  s,
23
24
  c
24
25
  );
25
26
  });
26
- const u = f("chart"), m = C(
27
- () => u.value?.chart
27
+ const p = C("chart"), u = g(
28
+ () => p.value?.chart
28
29
  );
29
- return o({ chartInstance: m }), (A, L) => t(p) ? (k(), g(t(r), {
30
+ return o({ chartInstance: u }), (L, v) => t(d) ? (k(), x(t(r), {
30
31
  key: 0,
31
32
  ref: "chart",
32
33
  options: e.options,
33
34
  data: e.data
34
- }, null, 8, ["options", "data"])) : x("", !0);
35
+ }, null, 8, ["options", "data"])) : y("", !0);
35
36
  }
36
37
  });
37
38
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.4.1-alpha.15",
3
+ "version": "2.4.1-alpha.16",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",