@wirecore/wirelayer-vue 0.11.0 → 0.12.1

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 (67) hide show
  1. package/dist/{CopyButton-GmqpUNLf.js → CopyButton-Cv9QfFfS.js} +22 -26
  2. package/dist/{Tree-B-0NXpUq.js → Tree-3o3OJASC.js} +10 -9
  3. package/dist/chart/Chart.vue.d.ts.map +1 -1
  4. package/dist/chart/PieChart.vue.d.ts.map +1 -1
  5. package/dist/chart/SeriesChartView.vue.d.ts.map +1 -1
  6. package/dist/chart/Sparkline.vue.d.ts.map +1 -1
  7. package/dist/chart/WaterfallChart.vue.d.ts.map +1 -1
  8. package/dist/chart.js +219 -218
  9. package/dist/code.js +1 -1
  10. package/dist/components/AngleSlider/AngleSlider.vue.d.ts.map +1 -1
  11. package/dist/components/BlockUi/BlockUi.vue.d.ts.map +1 -1
  12. package/dist/components/Calendar/Calendar.vue.d.ts.map +1 -1
  13. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  14. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  15. package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -1
  16. package/dist/components/CopyButton/CopyButton.vue.d.ts.map +1 -1
  17. package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
  18. package/dist/components/Fieldset/Fieldset.vue.d.ts +2 -0
  19. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  20. package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
  21. package/dist/components/JsonViewer/JsonViewer.vue.d.ts +1 -1
  22. package/dist/components/JsonViewer/JsonViewer.vue.d.ts.map +1 -1
  23. package/dist/components/Knob/Knob.vue.d.ts +1 -1
  24. package/dist/components/Knob/Knob.vue.d.ts.map +1 -1
  25. package/dist/components/Listbox/Listbox.vue.d.ts +1 -1
  26. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  27. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts +4 -0
  28. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
  29. package/dist/components/LogViewer/LogViewer.vue.d.ts.map +1 -1
  30. package/dist/components/MeterGroup/MeterGroup.vue.d.ts.map +1 -1
  31. package/dist/components/NavigationMenu/NavigationMenu.vue.d.ts.map +1 -1
  32. package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts.map +1 -1
  33. package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
  34. package/dist/components/OrgChart/OrgChart.vue.d.ts.map +1 -1
  35. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  36. package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
  37. package/dist/components/PinInput/PinInput.vue.d.ts.map +1 -1
  38. package/dist/components/ProgressCircle/ProgressCircle.vue.d.ts.map +1 -1
  39. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  40. package/dist/components/ScrollPanel/ScrollPanel.vue.d.ts.map +1 -1
  41. package/dist/components/SidebarNav/SidebarNav.vue.d.ts.map +1 -1
  42. package/dist/components/SignaturePad/SignaturePad.vue.d.ts.map +1 -1
  43. package/dist/components/Sortable/Sortable.vue.d.ts +9 -1
  44. package/dist/components/Sortable/Sortable.vue.d.ts.map +1 -1
  45. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  46. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  47. package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
  48. package/dist/components/Spoiler/Spoiler.vue.d.ts.map +1 -1
  49. package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
  50. package/dist/components/TableOfContents/TableOfContents.vue.d.ts.map +1 -1
  51. package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
  52. package/dist/components/Toolbar/Toolbar.vue.d.ts.map +1 -1
  53. package/dist/components/Tour/Tour.vue.d.ts +12 -0
  54. package/dist/components/Tour/Tour.vue.d.ts.map +1 -1
  55. package/dist/components/Tree/Tree.vue.d.ts +1 -1
  56. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  57. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  58. package/dist/data-table.js +1 -1
  59. package/dist/editor/Editor.vue.d.ts.map +1 -1
  60. package/dist/editor.js +347 -345
  61. package/dist/index.js +5235 -5187
  62. package/dist/pdf.js +1 -1
  63. package/dist/virtual/VirtualList.vue.d.ts.map +1 -1
  64. package/dist/virtual/VirtualTree.vue.d.ts.map +1 -1
  65. package/dist/virtual.js +171 -170
  66. package/llms-full.txt +66 -6
  67. package/package.json +2 -2
package/dist/chart.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { a as e, i as t, n } from "./recipes-BlM9aKyt.js";
2
2
  import { t as r } from "./Slider-Cpv7Vj3B.js";
3
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, toRaw as x, unref as S, useAttrs as C, useId as w, useTemplateRef as T, watch as E } from "vue";
4
- import { chart as D, chartTable as O, clampRange as k, mergeOptions as A, pieConfig as j, pieLegend as M, readChartTheme as N, referencePlugin as P, referenceSummary as F, seriesChart as I, seriesChartConfig as L, seriesTable as R, sparkline as z, sparklineSummary as B, themeChartData as V, themeChartOptions as H, waterfallBars as U, waterfallConfig as W } from "@wirecore/wirelayer-recipes";
5
- import { Chart as G } from "chart.js/auto";
3
+ import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, toRaw as C, unref as w, useAttrs as T, useId as E, useTemplateRef as D, watch as O } from "vue";
4
+ import { chart as k, chartTable as A, clampRange as j, mergeOptions as M, pieConfig as N, pieLegend as P, readChartTheme as F, referencePlugin as I, referenceSummary as L, seriesChart as R, seriesChartConfig as z, seriesTable as B, sparkline as V, sparklineSummary as H, themeChartData as U, themeChartOptions as W, waterfallBars as G, waterfallConfig as K } from "@wirecore/wirelayer-recipes";
5
+ import { Chart as q } from "chart.js/auto";
6
6
  //#region src/chart/Chart.vue?vue&type=script&setup=true&lang.ts
7
- var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
7
+ var ee = ["id"], J = ["aria-labelledby"], Y = /* @__PURE__ */ d({
8
8
  inheritAttrs: !1,
9
9
  __name: "Chart",
10
10
  props: {
@@ -26,75 +26,75 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
26
26
  classes: {}
27
27
  },
28
28
  setup(r) {
29
- let o = t(), u = e(), d = r, f = C(), v = n("chart", D, () => d.classes)(), k = w(), A = T("canvas"), j = a(() => d.formatValue ?? ((e) => e.toLocaleString(o.value.locale))), M = a(() => O(d.data, j.value, u.chart)), P, F, I, L;
30
- function R() {
31
- let e = N(A.value);
29
+ let o = t(), u = e(), d = r, p = T(), b = n("chart", k, () => d.classes)(), j = E(), M = D("canvas"), N = a(() => d.formatValue ?? ((e) => e.toLocaleString(o.value.locale))), P = a(() => A(d.data, N.value, u.chart)), I, L, R, z;
30
+ function B() {
31
+ let e = F(M.value);
32
32
  return {
33
33
  type: d.type,
34
- data: V(d.type, x(d.data), e),
35
- options: H(d.type, e, x(d.options), !!I?.matches, o.value.locale)
34
+ data: U(d.type, C(d.data), e),
35
+ options: W(d.type, e, C(d.options), !!R?.matches, o.value.locale)
36
36
  };
37
37
  }
38
- function z() {
39
- P?.destroy(), P = void 0;
40
- let e = A.value?.getContext("2d");
41
- e && (P = new G(e, {
42
- ...R(),
38
+ function V() {
39
+ I?.destroy(), I = void 0;
40
+ let e = M.value?.getContext("2d");
41
+ e && (I = new q(e, {
42
+ ...B(),
43
43
  plugins: d.plugins ? [...d.plugins] : []
44
44
  }));
45
45
  }
46
- function B() {
47
- if (!P) return z();
48
- let e = R();
49
- P.data = e.data, P.options = e.options, P.update();
46
+ function H() {
47
+ if (!I) return V();
48
+ let e = B();
49
+ I.data = e.data, I.options = e.options, I.update();
50
50
  }
51
- return g(() => {
52
- I = matchMedia("(prefers-reduced-motion: reduce)"), z(), F = new MutationObserver(B), F.observe(document.documentElement, { attributes: !0 }), I.addEventListener("change", B), L = matchMedia("(prefers-color-scheme: dark)"), L.addEventListener("change", B);
53
- }), h(() => {
54
- F?.disconnect(), I?.removeEventListener("change", B), L?.removeEventListener("change", B), P?.destroy();
55
- }), E(() => d.type, z), E(() => d.plugins, (e = [], t = []) => {
56
- (e.length !== t.length || e.some((e, n) => e !== t[n])) && z();
57
- }), E([() => d.data, () => d.options], B, { deep: !0 }), (e, t) => (_(), c("figure", {
58
- class: p(S(v).base({ class: p(S(f).class) })),
59
- style: m(S(f).style)
60
- }, [
51
+ return v(() => {
52
+ R = matchMedia("(prefers-reduced-motion: reduce)"), V(), L = new MutationObserver(H), L.observe(document.documentElement, { attributes: !0 }), R.addEventListener("change", H), z = matchMedia("(prefers-color-scheme: dark)"), z.addEventListener("change", H);
53
+ }), _(() => {
54
+ L?.disconnect(), R?.removeEventListener("change", H), z?.removeEventListener("change", H), I?.destroy();
55
+ }), O(() => d.type, V), O(() => d.plugins, (e = [], t = []) => {
56
+ (e.length !== t.length || e.some((e, n) => e !== t[n])) && V();
57
+ }), O([() => d.data, () => d.options], H, { deep: !0 }), (e, t) => (y(), c("figure", h(f({
58
+ ...w(p),
59
+ class: w(b).base({ class: m(w(p).class) })
60
+ })), [
61
61
  l("figcaption", {
62
- id: `${S(k)}title`,
63
- class: p(r.hideTitle ? S(v).caption() : S(v).title())
64
- }, b(r.title), 11, K),
62
+ id: `${w(j)}title`,
63
+ class: m(r.hideTitle ? w(b).caption() : w(b).title())
64
+ }, S(r.title), 11, ee),
65
65
  l("div", {
66
- class: p(S(v).canvasBox()),
67
- style: m({ height: r.height })
66
+ class: m(w(b).canvasBox()),
67
+ style: g({ height: r.height })
68
68
  }, [l("canvas", {
69
69
  ref_key: "canvas",
70
- ref: A,
70
+ ref: M,
71
71
  role: "img",
72
- "aria-labelledby": `${S(k)}title`
73
- }, null, 8, ee)], 6),
74
- r.table ? (_(), c("details", {
72
+ "aria-labelledby": `${w(j)}title`
73
+ }, null, 8, J)], 6),
74
+ r.table ? (y(), c("details", {
75
75
  key: 0,
76
- class: p(S(v).details())
77
- }, [l("summary", { class: p(S(v).summary()) }, b(S(u).chart.showTable), 3), l("div", { class: p(S(v).scroll()) }, [l("table", { class: p(S(v).table()) }, [
78
- l("caption", { class: p(S(v).caption()) }, b(r.title), 3),
76
+ class: m(w(b).details())
77
+ }, [l("summary", { class: m(w(b).summary()) }, S(w(u).chart.showTable), 3), l("div", { class: m(w(b).scroll()) }, [l("table", { class: m(w(b).table()) }, [
78
+ l("caption", { class: m(w(b).caption()) }, S(r.title), 3),
79
79
  l("thead", null, [l("tr", null, [l("th", {
80
80
  scope: "col",
81
- class: p(S(v).th())
82
- }, b(S(u).chart.category), 3), (_(!0), c(i, null, y(M.value.columns, (e) => (_(), c("th", {
81
+ class: m(w(b).th())
82
+ }, S(w(u).chart.category), 3), (y(!0), c(i, null, x(P.value.columns, (e) => (y(), c("th", {
83
83
  key: e,
84
84
  scope: "col",
85
- class: p(S(v).th())
86
- }, b(e), 3))), 128))])]),
87
- l("tbody", null, [(_(!0), c(i, null, y(M.value.rows, (e) => (_(), c("tr", { key: e.label }, [l("th", {
85
+ class: m(w(b).th())
86
+ }, S(e), 3))), 128))])]),
87
+ l("tbody", null, [(y(!0), c(i, null, x(P.value.rows, (e) => (y(), c("tr", { key: e.label }, [l("th", {
88
88
  scope: "row",
89
- class: p(S(v).rowHeader())
90
- }, b(e.label), 3), (_(!0), c(i, null, y(e.values, (e, t) => (_(), c("td", {
89
+ class: m(w(b).rowHeader())
90
+ }, S(e.label), 3), (y(!0), c(i, null, x(e.values, (e, t) => (y(), c("td", {
91
91
  key: t,
92
- class: p(S(v).td())
93
- }, b(e), 3))), 128))]))), 128))])
92
+ class: m(w(b).td())
93
+ }, S(e), 3))), 128))]))), 128))])
94
94
  ], 2)], 2)], 2)) : s("", !0)
95
- ], 6));
95
+ ], 16));
96
96
  }
97
- }), q = ["aria-label"], J = /* @__PURE__ */ d({
97
+ }), X = ["aria-label"], Z = /* @__PURE__ */ d({
98
98
  inheritAttrs: !1,
99
99
  __name: "Sparkline",
100
100
  props: {
@@ -110,9 +110,9 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
110
110
  classes: {}
111
111
  },
112
112
  setup(r) {
113
- let i = r, o = n("sparkline", z, () => i.classes), s = C(), u = t(), d = e(), f = T("canvas"), v = a(() => i.formatValue ?? ((e) => e.toLocaleString(u.value.locale))), y = a(() => B(i.label, i.data, v.value, d.chart)), b, x, w;
114
- function D() {
115
- let e = N(f.value), t = e.palette[0], n = matchMedia("(prefers-reduced-motion: reduce)").matches;
113
+ let i = r, o = n("sparkline", V, () => i.classes), s = T(), u = t(), d = e(), p = D("canvas"), g = a(() => i.formatValue ?? ((e) => e.toLocaleString(u.value.locale))), b = a(() => H(i.label, i.data, g.value, d.chart)), x, S, C;
114
+ function E() {
115
+ let e = F(p.value), t = e.palette[0], n = matchMedia("(prefers-reduced-motion: reduce)").matches;
116
116
  return {
117
117
  data: {
118
118
  labels: i.data.map((e, t) => t),
@@ -126,7 +126,7 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
126
126
  tension: .35
127
127
  }]
128
128
  },
129
- options: H("line", e, {
129
+ options: W("line", e, {
130
130
  scales: {
131
131
  x: { display: !1 },
132
132
  y: { display: !1 }
@@ -139,42 +139,43 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
139
139
  }, n, u.value.locale)
140
140
  };
141
141
  }
142
- function O() {
143
- b && (Object.assign(b, D()), b.update());
142
+ function k() {
143
+ x && (Object.assign(x, E()), x.update());
144
144
  }
145
- return g(() => {
146
- let e = f.value?.getContext("2d");
147
- e && (b = new G(e, {
145
+ return v(() => {
146
+ let e = p.value?.getContext("2d");
147
+ e && (x = new q(e, {
148
148
  type: "line",
149
- ...D()
150
- })), x = new MutationObserver(O), x.observe(document.documentElement, { attributes: !0 }), w = matchMedia("(prefers-color-scheme: dark)"), w.addEventListener("change", O);
151
- }), h(() => {
152
- x?.disconnect(), w?.removeEventListener("change", O), b?.destroy();
153
- }), E(() => [...i.data], O), (e, t) => (_(), c("span", {
154
- class: p(S(o)({ class: p(S(s).class) })),
155
- style: m([{
149
+ ...E()
150
+ })), S = new MutationObserver(k), S.observe(document.documentElement, { attributes: !0 }), C = matchMedia("(prefers-color-scheme: dark)"), C.addEventListener("change", k);
151
+ }), _(() => {
152
+ S?.disconnect(), C?.removeEventListener("change", k), x?.destroy();
153
+ }), O(() => [...i.data], k), (e, t) => (y(), c("span", h(f({
154
+ ...w(s),
155
+ class: w(o)({ class: m(w(s).class) }),
156
+ style: [{
156
157
  width: r.width,
157
158
  height: r.height
158
- }, S(s).style])
159
- }, [l("canvas", {
159
+ }, w(s).style]
160
+ })), [l("canvas", {
160
161
  ref_key: "canvas",
161
- ref: f,
162
+ ref: p,
162
163
  role: "img",
163
- "aria-label": y.value
164
- }, null, 8, q)], 6));
164
+ "aria-label": b.value
165
+ }, null, 8, X)], 16));
165
166
  }
166
- }), Y = ["aria-labelledby"], X = /* @__PURE__ */ d({
167
+ }), te = ["aria-labelledby"], Q = /* @__PURE__ */ d({
167
168
  __name: "ChartCanvas",
168
169
  props: {
169
170
  build: { type: Function },
170
171
  labelledby: {}
171
172
  },
172
173
  setup(e) {
173
- let t = e, n = T("canvas"), r, i, a, o, s = () => t.build(N(n.value), !!a?.matches);
174
+ let t = e, n = D("canvas"), r, i, a, o, s = () => t.build(F(n.value), !!a?.matches);
174
175
  function l() {
175
176
  r?.destroy(), r = void 0;
176
177
  let e = n.value?.getContext("2d");
177
- e && (r = new G(e, s()));
178
+ e && (r = new q(e, s()));
178
179
  }
179
180
  function u() {
180
181
  if (!r) return l();
@@ -182,24 +183,24 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
182
183
  if (e.type !== r.config.type) return l();
183
184
  r.data = e.data, r.options = e.options ?? {}, r.update();
184
185
  }
185
- return g(() => {
186
+ return v(() => {
186
187
  a = matchMedia("(prefers-reduced-motion: reduce)"), l(), i = new MutationObserver(u), i.observe(document.documentElement, { attributes: !0 }), a.addEventListener("change", u), o = matchMedia("(prefers-color-scheme: dark)"), o.addEventListener("change", u);
187
- }), h(() => {
188
+ }), _(() => {
188
189
  i?.disconnect(), a?.removeEventListener("change", u), o?.removeEventListener("change", u), r?.destroy();
189
- }), E(() => t.build, u), (t, r) => e.labelledby ? (_(), c("canvas", {
190
+ }), O(() => t.build, u), (t, r) => e.labelledby ? (y(), c("canvas", {
190
191
  key: 0,
191
192
  ref_key: "canvas",
192
193
  ref: n,
193
194
  role: "img",
194
195
  "aria-labelledby": e.labelledby
195
- }, null, 8, Y)) : (_(), c("canvas", {
196
+ }, null, 8, te)) : (y(), c("canvas", {
196
197
  key: 1,
197
198
  ref_key: "canvas",
198
199
  ref: n,
199
200
  "aria-hidden": "true"
200
201
  }, null, 512));
201
202
  }
202
- }), Z = ["id"], Q = /* @__PURE__ */ d({
203
+ }), ne = ["id"], $ = /* @__PURE__ */ d({
203
204
  inheritAttrs: !1,
204
205
  __name: "SeriesChartView",
205
206
  props: {
@@ -233,39 +234,39 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
233
234
  },
234
235
  emits: ["update:range"],
235
236
  setup(e, { emit: o }) {
236
- let d = e, f = o, h = C(), g = t(), x = a(() => g.value.translations.chart), T = n("chart", D, () => d.classes)(), E = n("seriesChart", I)(), O = w(), j = a(() => d.formatValue ?? ((e) => e.toLocaleString(g.value.locale))), M = v(d.defaultRange), N = a(() => d.brush ? k(d.range ?? M.value, d.data.length) : void 0), z = a(() => d.area ? d.series.map((e) => ({
237
+ let d = e, p = o, _ = T(), v = t(), C = a(() => v.value.translations.chart), D = n("chart", k, () => d.classes)(), O = n("seriesChart", R)(), A = E(), N = a(() => d.formatValue ?? ((e) => e.toLocaleString(v.value.locale))), P = b(d.defaultRange), F = a(() => d.brush ? j(d.range ?? P.value, d.data.length) : void 0), V = a(() => d.area ? d.series.map((e) => ({
237
238
  ...e,
238
239
  area: e.area ?? !0
239
- })) : d.series), B = a(() => (e, t) => {
240
- let n = L({
240
+ })) : d.series), H = a(() => (e, t) => {
241
+ let n = z({
241
242
  kind: d.kind,
242
243
  data: d.data,
243
244
  categoryKey: d.categoryKey,
244
- series: z.value,
245
+ series: V.value,
245
246
  horizontal: d.horizontal,
246
247
  stacked: d.stacked,
247
248
  scale: d.scale,
248
249
  curved: d.curved,
249
250
  references: d.references,
250
- range: N.value,
251
+ range: F.value,
251
252
  legend: d.legend
252
- }, e, j.value, t, g.value.locale);
253
+ }, e, N.value, t, v.value.locale);
253
254
  return {
254
255
  ...n,
255
- options: A(n.options, d.options),
256
- plugins: [P]
256
+ options: M(n.options, d.options),
257
+ plugins: [I]
257
258
  };
258
- }), V = a(() => (e) => {
259
- let t = L({
259
+ }), U = a(() => (e) => {
260
+ let t = z({
260
261
  kind: "line",
261
262
  data: d.data,
262
263
  categoryKey: d.categoryKey,
263
- series: z.value.slice(0, 1),
264
+ series: V.value.slice(0, 1),
264
265
  legend: !1
265
- }, e, j.value, !0, g.value.locale);
266
+ }, e, N.value, !0, v.value.locale);
266
267
  return {
267
268
  ...t,
268
- options: A(t.options, {
269
+ options: M(t.options, {
269
270
  scales: {
270
271
  x: { display: !1 },
271
272
  y: { display: !1 }
@@ -275,45 +276,45 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
275
276
  events: []
276
277
  })
277
278
  };
278
- }), H = a(() => d.data.map((e) => String(e[d.categoryKey] ?? "")));
279
- function U(e) {
280
- let t = k([e[0] ?? 0, e[1] ?? 0], d.data.length);
281
- M.value = t, f("update:range", t);
279
+ }), W = a(() => d.data.map((e) => String(e[d.categoryKey] ?? "")));
280
+ function G(e) {
281
+ let t = j([e[0] ?? 0, e[1] ?? 0], d.data.length);
282
+ P.value = t, p("update:range", t);
282
283
  }
283
- let W = a(() => R(d.data, d.categoryKey, z.value, j.value, N.value)), G = a(() => d.references?.length ? F(d.references, j.value) : "");
284
- return (t, n) => (_(), c("figure", {
285
- class: p(S(T).base({ class: p(S(h).class) })),
286
- style: m(S(h).style)
287
- }, [
284
+ let K = a(() => B(d.data, d.categoryKey, V.value, N.value, F.value)), q = a(() => d.references?.length ? L(d.references, N.value) : "");
285
+ return (t, n) => (y(), c("figure", h(f({
286
+ ...w(_),
287
+ class: w(D).base({ class: m(w(_).class) })
288
+ })), [
288
289
  l("figcaption", {
289
- id: `${S(O)}title`,
290
- class: p(e.hideTitle ? S(T).caption() : S(T).title())
291
- }, b(e.title), 11, Z),
290
+ id: `${w(A)}title`,
291
+ class: m(e.hideTitle ? w(D).caption() : w(D).title())
292
+ }, S(e.title), 11, ne),
292
293
  l("div", {
293
- class: p(S(T).canvasBox()),
294
- style: m({ height: e.height })
295
- }, [u(X, {
296
- build: B.value,
297
- labelledby: `${S(O)}title`
294
+ class: m(w(D).canvasBox()),
295
+ style: g({ height: e.height })
296
+ }, [u(Q, {
297
+ build: H.value,
298
+ labelledby: `${w(A)}title`
298
299
  }, null, 8, ["build", "labelledby"])], 6),
299
- G.value ? (_(), c("p", {
300
+ q.value ? (y(), c("p", {
300
301
  key: 0,
301
- class: p(S(E).references())
302
- }, b(x.value.references) + ": " + b(G.value), 3)) : s("", !0),
303
- e.brush && e.data.length > 1 ? (_(), c("div", {
302
+ class: m(w(O).references())
303
+ }, S(C.value.references) + ": " + S(q.value), 3)) : s("", !0),
304
+ e.brush && e.data.length > 1 ? (y(), c("div", {
304
305
  key: 1,
305
- class: p(S(E).brush())
306
- }, [l("div", { class: p(S(E).brushCanvas()) }, [u(X, { build: V.value }, null, 8, ["build"])], 2), u(r, {
307
- "model-value": N.value,
306
+ class: m(w(O).brush())
307
+ }, [l("div", { class: m(w(O).brushCanvas()) }, [u(Q, { build: U.value }, null, 8, ["build"])], 2), u(r, {
308
+ "model-value": F.value,
308
309
  min: 0,
309
310
  max: e.data.length - 1,
310
311
  step: 1,
311
312
  "min-range": 1,
312
- label: x.value.brush,
313
- "thumb-labels": x.value.brushThumbs,
314
- "format-value": (e) => H.value[e] ?? "",
313
+ label: C.value.brush,
314
+ "thumb-labels": C.value.brushThumbs,
315
+ "format-value": (e) => W.value[e] ?? "",
315
316
  "show-value": "",
316
- "onUpdate:modelValue": U
317
+ "onUpdate:modelValue": G
317
318
  }, null, 8, [
318
319
  "model-value",
319
320
  "max",
@@ -321,30 +322,30 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
321
322
  "thumb-labels",
322
323
  "format-value"
323
324
  ])], 2)) : s("", !0),
324
- e.table ? (_(), c("details", {
325
+ e.table ? (y(), c("details", {
325
326
  key: 2,
326
- class: p(S(T).details())
327
- }, [l("summary", { class: p(S(T).summary()) }, b(x.value.showTable), 3), l("div", { class: p(S(T).scroll()) }, [l("table", { class: p(S(T).table()) }, [
328
- l("caption", { class: p(S(T).caption()) }, b(e.title), 3),
327
+ class: m(w(D).details())
328
+ }, [l("summary", { class: m(w(D).summary()) }, S(C.value.showTable), 3), l("div", { class: m(w(D).scroll()) }, [l("table", { class: m(w(D).table()) }, [
329
+ l("caption", { class: m(w(D).caption()) }, S(e.title), 3),
329
330
  l("thead", null, [l("tr", null, [l("th", {
330
331
  scope: "col",
331
- class: p(S(T).th())
332
- }, b(x.value.category), 3), (_(!0), c(i, null, y(W.value.columns, (e) => (_(), c("th", {
332
+ class: m(w(D).th())
333
+ }, S(C.value.category), 3), (y(!0), c(i, null, x(K.value.columns, (e) => (y(), c("th", {
333
334
  key: e,
334
335
  scope: "col",
335
- class: p(S(T).th())
336
- }, b(e), 3))), 128))])]),
337
- l("tbody", null, [(_(!0), c(i, null, y(W.value.rows, (e, t) => (_(), c("tr", { key: t }, [l("th", {
336
+ class: m(w(D).th())
337
+ }, S(e), 3))), 128))])]),
338
+ l("tbody", null, [(y(!0), c(i, null, x(K.value.rows, (e, t) => (y(), c("tr", { key: t }, [l("th", {
338
339
  scope: "row",
339
- class: p(S(T).rowHeader())
340
- }, b(e.label), 3), (_(!0), c(i, null, y(e.values, (e, t) => (_(), c("td", {
340
+ class: m(w(D).rowHeader())
341
+ }, S(e.label), 3), (y(!0), c(i, null, x(e.values, (e, t) => (y(), c("td", {
341
342
  key: t,
342
- class: p(S(T).td())
343
- }, b(e), 3))), 128))]))), 128))])
343
+ class: m(w(D).td())
344
+ }, S(e), 3))), 128))]))), 128))])
344
345
  ], 2)], 2)], 2)) : s("", !0)
345
- ], 6));
346
+ ], 16));
346
347
  }
347
- }), ne = /* @__PURE__ */ d({
348
+ }), re = /* @__PURE__ */ d({
348
349
  inheritAttrs: !1,
349
350
  __name: "BarChart",
350
351
  props: {
@@ -388,7 +389,7 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
388
389
  emits: ["update:range"],
389
390
  setup(e, { emit: t }) {
390
391
  let n = e, r = t;
391
- return (e, t) => (_(), o(Q, f({
392
+ return (e, t) => (y(), o($, p({
392
393
  ...e.$attrs,
393
394
  ...n
394
395
  }, {
@@ -396,7 +397,7 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
396
397
  "onUpdate:range": t[0] ||= (e) => r("update:range", e)
397
398
  }), null, 16));
398
399
  }
399
- }), re = /* @__PURE__ */ d({
400
+ }), ie = /* @__PURE__ */ d({
400
401
  inheritAttrs: !1,
401
402
  __name: "LineChart",
402
403
  props: {
@@ -444,7 +445,7 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
444
445
  emits: ["update:range"],
445
446
  setup(e, { emit: t }) {
446
447
  let n = e, r = t;
447
- return (e, t) => (_(), o(Q, f({
448
+ return (e, t) => (y(), o($, p({
448
449
  ...e.$attrs,
449
450
  ...n
450
451
  }, {
@@ -452,7 +453,7 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
452
453
  "onUpdate:range": t[0] ||= (e) => r("update:range", e)
453
454
  }), null, 16));
454
455
  }
455
- }), ie = /* @__PURE__ */ d({
456
+ }), ae = /* @__PURE__ */ d({
456
457
  inheritAttrs: !1,
457
458
  __name: "CompositeChart",
458
459
  props: {
@@ -496,7 +497,7 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
496
497
  emits: ["update:range"],
497
498
  setup(e, { emit: t }) {
498
499
  let n = e, r = t;
499
- return (e, t) => (_(), o(Q, f({
500
+ return (e, t) => (y(), o($, p({
500
501
  ...e.$attrs,
501
502
  ...n
502
503
  }, {
@@ -504,7 +505,7 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
504
505
  "onUpdate:range": t[0] ||= (e) => r("update:range", e)
505
506
  }), null, 16));
506
507
  }
507
- }), $ = ["id"], ae = /* @__PURE__ */ d({
508
+ }), oe = ["id"], se = /* @__PURE__ */ d({
508
509
  inheritAttrs: !1,
509
510
  __name: "WaterfallChart",
510
511
  props: {
@@ -525,59 +526,59 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
525
526
  classes: {}
526
527
  },
527
528
  setup(e) {
528
- let r = e, o = C(), d = t(), f = a(() => d.value.translations.chart), h = n("chart", D, () => r.classes)(), g = w(), v = a(() => r.formatValue ?? ((e) => e.toLocaleString(d.value.locale))), x = a(() => (e, t) => {
529
- let n = W(r.steps, e, v.value, f.value, r.tones, t, d.value.locale);
529
+ let r = e, o = T(), d = t(), p = a(() => d.value.translations.chart), _ = n("chart", k, () => r.classes)(), v = E(), b = a(() => r.formatValue ?? ((e) => e.toLocaleString(d.value.locale))), C = a(() => (e, t) => {
530
+ let n = K(r.steps, e, b.value, p.value, r.tones, t, d.value.locale);
530
531
  return {
531
532
  ...n,
532
- options: A(n.options, r.options)
533
+ options: M(n.options, r.options)
533
534
  };
534
- }), T = a(() => U(r.steps));
535
- return (t, n) => (_(), c("figure", {
536
- class: p(S(h).base({ class: p(S(o).class) })),
537
- style: m(S(o).style)
538
- }, [
535
+ }), D = a(() => G(r.steps));
536
+ return (t, n) => (y(), c("figure", h(f({
537
+ ...w(o),
538
+ class: w(_).base({ class: m(w(o).class) })
539
+ })), [
539
540
  l("figcaption", {
540
- id: `${S(g)}title`,
541
- class: p(e.hideTitle ? S(h).caption() : S(h).title())
542
- }, b(e.title), 11, $),
541
+ id: `${w(v)}title`,
542
+ class: m(e.hideTitle ? w(_).caption() : w(_).title())
543
+ }, S(e.title), 11, oe),
543
544
  l("div", {
544
- class: p(S(h).canvasBox()),
545
- style: m({ height: e.height })
546
- }, [u(X, {
547
- build: x.value,
548
- labelledby: `${S(g)}title`
545
+ class: m(w(_).canvasBox()),
546
+ style: g({ height: e.height })
547
+ }, [u(Q, {
548
+ build: C.value,
549
+ labelledby: `${w(v)}title`
549
550
  }, null, 8, ["build", "labelledby"])], 6),
550
- e.table ? (_(), c("details", {
551
+ e.table ? (y(), c("details", {
551
552
  key: 0,
552
- class: p(S(h).details())
553
- }, [l("summary", { class: p(S(h).summary()) }, b(f.value.showTable), 3), l("div", { class: p(S(h).scroll()) }, [l("table", { class: p(S(h).table()) }, [
554
- l("caption", { class: p(S(h).caption()) }, b(e.title), 3),
553
+ class: m(w(_).details())
554
+ }, [l("summary", { class: m(w(_).summary()) }, S(p.value.showTable), 3), l("div", { class: m(w(_).scroll()) }, [l("table", { class: m(w(_).table()) }, [
555
+ l("caption", { class: m(w(_).caption()) }, S(e.title), 3),
555
556
  l("thead", null, [l("tr", null, [
556
557
  l("th", {
557
558
  scope: "col",
558
- class: p(S(h).th())
559
- }, b(f.value.category), 3),
559
+ class: m(w(_).th())
560
+ }, S(p.value.category), 3),
560
561
  l("th", {
561
562
  scope: "col",
562
- class: p(S(h).th())
563
- }, b(f.value.change), 3),
563
+ class: m(w(_).th())
564
+ }, S(p.value.change), 3),
564
565
  l("th", {
565
566
  scope: "col",
566
- class: p(S(h).th())
567
- }, b(f.value.total), 3)
567
+ class: m(w(_).th())
568
+ }, S(p.value.total), 3)
568
569
  ])]),
569
- l("tbody", null, [(_(!0), c(i, null, y(T.value, (e, t) => (_(), c("tr", { key: t }, [
570
+ l("tbody", null, [(y(!0), c(i, null, x(D.value, (e, t) => (y(), c("tr", { key: t }, [
570
571
  l("th", {
571
572
  scope: "row",
572
- class: p(S(h).rowHeader())
573
- }, b(e.label), 3),
574
- l("td", { class: p(S(h).td()) }, b(e.kind === "total" ? "–" : v.value(e.change)), 3),
575
- l("td", { class: p(S(h).td()) }, b(v.value(e.sum)), 3)
573
+ class: m(w(_).rowHeader())
574
+ }, S(e.label), 3),
575
+ l("td", { class: m(w(_).td()) }, S(e.kind === "total" ? "–" : b.value(e.change)), 3),
576
+ l("td", { class: m(w(_).td()) }, S(b.value(e.sum)), 3)
576
577
  ]))), 128))])
577
578
  ], 2)], 2)], 2)) : s("", !0)
578
- ], 6));
579
+ ], 16));
579
580
  }
580
- }), oe = ["id"], se = ["aria-label"], ce = /* @__PURE__ */ d({
581
+ }), ce = ["id"], le = ["aria-label"], ue = /* @__PURE__ */ d({
581
582
  inheritAttrs: !1,
582
583
  __name: "PieChart",
583
584
  props: {
@@ -605,73 +606,73 @@ var K = ["id"], ee = ["aria-labelledby"], te = /* @__PURE__ */ d({
605
606
  classes: {}
606
607
  },
607
608
  setup(e) {
608
- let r = e, o = C(), d = t(), f = a(() => d.value.translations.chart), h = n("chart", D, () => r.classes)(), g = n("seriesChart", I), v = g(), x = w(), T = a(() => r.formatValue ?? ((e) => e.toLocaleString(d.value.locale))), E = a(() => (e, t) => {
609
- let n = j(r.slices, r.donut, e, T.value, r.title, t, d.value.locale);
609
+ let r = e, o = T(), d = t(), p = a(() => d.value.translations.chart), _ = n("chart", k, () => r.classes)(), v = n("seriesChart", R), b = v(), C = E(), D = a(() => r.formatValue ?? ((e) => e.toLocaleString(d.value.locale))), O = a(() => (e, t) => {
610
+ let n = N(r.slices, r.donut, e, D.value, r.title, t, d.value.locale);
610
611
  return {
611
612
  ...n,
612
- options: A(n.options, r.options)
613
+ options: M(n.options, r.options)
613
614
  };
614
- }), O = a(() => M(r.slices, T.value, d.value.locale));
615
- return (t, n) => (_(), c("figure", {
616
- class: p(S(h).base({ class: p(S(o).class) })),
617
- style: m(S(o).style)
618
- }, [
615
+ }), A = a(() => P(r.slices, D.value, d.value.locale));
616
+ return (t, n) => (y(), c("figure", h(f({
617
+ ...w(o),
618
+ class: w(_).base({ class: m(w(o).class) })
619
+ })), [
619
620
  l("figcaption", {
620
- id: `${S(x)}title`,
621
- class: p(e.hideTitle ? S(h).caption() : S(h).title())
622
- }, b(e.title), 11, oe),
623
- l("div", { class: p(S(v).pieLayout()) }, [l("div", {
624
- class: p(S(v).pieBox()),
625
- style: m({ height: e.height })
626
- }, [u(X, {
627
- build: E.value,
628
- labelledby: `${S(x)}title`
629
- }, null, 8, ["build", "labelledby"])], 6), e.legend ? (_(), c("ul", {
621
+ id: `${w(C)}title`,
622
+ class: m(e.hideTitle ? w(_).caption() : w(_).title())
623
+ }, S(e.title), 11, ce),
624
+ l("div", { class: m(w(b).pieLayout()) }, [l("div", {
625
+ class: m(w(b).pieBox()),
626
+ style: g({ height: e.height })
627
+ }, [u(Q, {
628
+ build: O.value,
629
+ labelledby: `${w(C)}title`
630
+ }, null, 8, ["build", "labelledby"])], 6), e.legend ? (y(), c("ul", {
630
631
  key: 0,
631
632
  role: "list",
632
- "aria-label": f.value.legend,
633
- class: p(S(v).legend())
634
- }, [(_(!0), c(i, null, y(O.value, (e) => (_(), c("li", {
633
+ "aria-label": p.value.legend,
634
+ class: m(w(b).legend())
635
+ }, [(y(!0), c(i, null, x(A.value, (e) => (y(), c("li", {
635
636
  key: e.label,
636
- class: p(S(v).legendItem())
637
+ class: m(w(b).legendItem())
637
638
  }, [
638
639
  l("span", {
639
- class: p(S(g)({ tone: e.tone }).swatch()),
640
+ class: m(w(v)({ tone: e.tone }).swatch()),
640
641
  "aria-hidden": "true"
641
642
  }, null, 2),
642
- l("span", { class: p(S(v).legendLabel()) }, b(e.label), 3),
643
- l("span", { class: p(S(v).legendValue()) }, b(e.value) + " · " + b(e.share), 3)
644
- ], 2))), 128))], 10, se)) : s("", !0)], 2),
645
- e.table ? (_(), c("details", {
643
+ l("span", { class: m(w(b).legendLabel()) }, S(e.label), 3),
644
+ l("span", { class: m(w(b).legendValue()) }, S(e.value) + " · " + S(e.share), 3)
645
+ ], 2))), 128))], 10, le)) : s("", !0)], 2),
646
+ e.table ? (y(), c("details", {
646
647
  key: 0,
647
- class: p(S(h).details())
648
- }, [l("summary", { class: p(S(h).summary()) }, b(f.value.showTable), 3), l("div", { class: p(S(h).scroll()) }, [l("table", { class: p(S(h).table()) }, [
649
- l("caption", { class: p(S(h).caption()) }, b(e.title), 3),
648
+ class: m(w(_).details())
649
+ }, [l("summary", { class: m(w(_).summary()) }, S(p.value.showTable), 3), l("div", { class: m(w(_).scroll()) }, [l("table", { class: m(w(_).table()) }, [
650
+ l("caption", { class: m(w(_).caption()) }, S(e.title), 3),
650
651
  l("thead", null, [l("tr", null, [
651
652
  l("th", {
652
653
  scope: "col",
653
- class: p(S(h).th())
654
- }, b(f.value.category), 3),
654
+ class: m(w(_).th())
655
+ }, S(p.value.category), 3),
655
656
  l("th", {
656
657
  scope: "col",
657
- class: p(S(h).th())
658
- }, b(f.value.value), 3),
658
+ class: m(w(_).th())
659
+ }, S(p.value.value), 3),
659
660
  l("th", {
660
661
  scope: "col",
661
- class: p(S(h).th())
662
- }, b(f.value.share), 3)
662
+ class: m(w(_).th())
663
+ }, S(p.value.share), 3)
663
664
  ])]),
664
- l("tbody", null, [(_(!0), c(i, null, y(O.value, (e) => (_(), c("tr", { key: e.label }, [
665
+ l("tbody", null, [(y(!0), c(i, null, x(A.value, (e) => (y(), c("tr", { key: e.label }, [
665
666
  l("th", {
666
667
  scope: "row",
667
- class: p(S(h).rowHeader())
668
- }, b(e.label), 3),
669
- l("td", { class: p(S(h).td()) }, b(e.value), 3),
670
- l("td", { class: p(S(h).td()) }, b(e.share), 3)
668
+ class: m(w(_).rowHeader())
669
+ }, S(e.label), 3),
670
+ l("td", { class: m(w(_).td()) }, S(e.value), 3),
671
+ l("td", { class: m(w(_).td()) }, S(e.share), 3)
671
672
  ]))), 128))])
672
673
  ], 2)], 2)], 2)) : s("", !0)
673
- ], 6));
674
+ ], 16));
674
675
  }
675
676
  });
676
677
  //#endregion
677
- export { ne as BarChart, te as Chart, ie as CompositeChart, re as LineChart, ce as PieChart, J as Sparkline, ae as WaterfallChart };
678
+ export { re as BarChart, Y as Chart, ae as CompositeChart, ie as LineChart, ue as PieChart, Z as Sparkline, se as WaterfallChart };