@wirecore/wirelayer-vue 0.12.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.
- package/dist/{CopyButton-GmqpUNLf.js → CopyButton-Cv9QfFfS.js} +22 -26
- package/dist/{Tree-B-0NXpUq.js → Tree-3o3OJASC.js} +10 -9
- package/dist/chart/Chart.vue.d.ts.map +1 -1
- package/dist/chart/PieChart.vue.d.ts.map +1 -1
- package/dist/chart/SeriesChartView.vue.d.ts.map +1 -1
- package/dist/chart/Sparkline.vue.d.ts.map +1 -1
- package/dist/chart/WaterfallChart.vue.d.ts.map +1 -1
- package/dist/chart.js +219 -218
- package/dist/code.js +1 -1
- package/dist/components/AngleSlider/AngleSlider.vue.d.ts.map +1 -1
- package/dist/components/BlockUi/BlockUi.vue.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.vue.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.vue.d.ts.map +1 -1
- package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/Fieldset.vue.d.ts +2 -0
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/JsonViewer/JsonViewer.vue.d.ts +1 -1
- package/dist/components/JsonViewer/JsonViewer.vue.d.ts.map +1 -1
- package/dist/components/Knob/Knob.vue.d.ts +1 -1
- package/dist/components/Knob/Knob.vue.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/LogViewer/LogViewer.vue.d.ts.map +1 -1
- package/dist/components/MeterGroup/MeterGroup.vue.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
- package/dist/components/OrgChart/OrgChart.vue.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
- package/dist/components/PinInput/PinInput.vue.d.ts.map +1 -1
- package/dist/components/ProgressCircle/ProgressCircle.vue.d.ts.map +1 -1
- package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
- package/dist/components/ScrollPanel/ScrollPanel.vue.d.ts.map +1 -1
- package/dist/components/SidebarNav/SidebarNav.vue.d.ts.map +1 -1
- package/dist/components/SignaturePad/SignaturePad.vue.d.ts.map +1 -1
- package/dist/components/Sortable/Sortable.vue.d.ts +4 -1
- package/dist/components/Sortable/Sortable.vue.d.ts.map +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Spoiler/Spoiler.vue.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/TableOfContents/TableOfContents.vue.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Toolbar/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/Tree/Tree.vue.d.ts +1 -1
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/data-table.js +1 -1
- package/dist/editor/Editor.vue.d.ts.map +1 -1
- package/dist/editor.js +347 -345
- package/dist/index.js +4686 -4689
- package/dist/pdf.js +1 -1
- package/dist/virtual/VirtualList.vue.d.ts.map +1 -1
- package/dist/virtual/VirtualTree.vue.d.ts.map +1 -1
- package/dist/virtual.js +171 -170
- package/llms-full.txt +62 -6
- package/package.json +1 -1
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,
|
|
4
|
-
import { chart as
|
|
5
|
-
import { Chart as
|
|
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
|
|
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,
|
|
30
|
-
function
|
|
31
|
-
let e =
|
|
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:
|
|
35
|
-
options:
|
|
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
|
|
39
|
-
|
|
40
|
-
let e =
|
|
41
|
-
e && (
|
|
42
|
-
...
|
|
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
|
|
47
|
-
if (!
|
|
48
|
-
let e =
|
|
49
|
-
|
|
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
|
|
52
|
-
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
}),
|
|
56
|
-
(e.length !== t.length || e.some((e, n) => e !== t[n])) &&
|
|
57
|
-
}),
|
|
58
|
-
|
|
59
|
-
|
|
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: `${
|
|
63
|
-
class:
|
|
64
|
-
},
|
|
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:
|
|
67
|
-
style:
|
|
66
|
+
class: m(w(b).canvasBox()),
|
|
67
|
+
style: g({ height: r.height })
|
|
68
68
|
}, [l("canvas", {
|
|
69
69
|
ref_key: "canvas",
|
|
70
|
-
ref:
|
|
70
|
+
ref: M,
|
|
71
71
|
role: "img",
|
|
72
|
-
"aria-labelledby": `${
|
|
73
|
-
}, null, 8,
|
|
74
|
-
r.table ? (
|
|
72
|
+
"aria-labelledby": `${w(j)}title`
|
|
73
|
+
}, null, 8, J)], 6),
|
|
74
|
+
r.table ? (y(), c("details", {
|
|
75
75
|
key: 0,
|
|
76
|
-
class:
|
|
77
|
-
}, [l("summary", { class:
|
|
78
|
-
l("caption", { class:
|
|
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:
|
|
82
|
-
},
|
|
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:
|
|
86
|
-
},
|
|
87
|
-
l("tbody", null, [(
|
|
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:
|
|
90
|
-
},
|
|
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:
|
|
93
|
-
},
|
|
92
|
+
class: m(w(b).td())
|
|
93
|
+
}, S(e), 3))), 128))]))), 128))])
|
|
94
94
|
], 2)], 2)], 2)) : s("", !0)
|
|
95
|
-
],
|
|
95
|
+
], 16));
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
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",
|
|
114
|
-
function
|
|
115
|
-
let e =
|
|
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:
|
|
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
|
|
143
|
-
|
|
142
|
+
function k() {
|
|
143
|
+
x && (Object.assign(x, E()), x.update());
|
|
144
144
|
}
|
|
145
|
-
return
|
|
146
|
-
let e =
|
|
147
|
-
e && (
|
|
145
|
+
return v(() => {
|
|
146
|
+
let e = p.value?.getContext("2d");
|
|
147
|
+
e && (x = new q(e, {
|
|
148
148
|
type: "line",
|
|
149
|
-
...
|
|
150
|
-
})),
|
|
151
|
-
}),
|
|
152
|
-
|
|
153
|
-
}),
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
},
|
|
159
|
-
}, [l("canvas", {
|
|
159
|
+
}, w(s).style]
|
|
160
|
+
})), [l("canvas", {
|
|
160
161
|
ref_key: "canvas",
|
|
161
|
-
ref:
|
|
162
|
+
ref: p,
|
|
162
163
|
role: "img",
|
|
163
|
-
"aria-label":
|
|
164
|
-
}, null, 8,
|
|
164
|
+
"aria-label": b.value
|
|
165
|
+
}, null, 8, X)], 16));
|
|
165
166
|
}
|
|
166
|
-
}),
|
|
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 =
|
|
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
|
|
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
|
|
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
|
-
}),
|
|
188
|
+
}), _(() => {
|
|
188
189
|
i?.disconnect(), a?.removeEventListener("change", u), o?.removeEventListener("change", u), r?.destroy();
|
|
189
|
-
}),
|
|
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,
|
|
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
|
-
}),
|
|
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,
|
|
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),
|
|
240
|
-
let n =
|
|
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:
|
|
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:
|
|
251
|
+
range: F.value,
|
|
251
252
|
legend: d.legend
|
|
252
|
-
}, e,
|
|
253
|
+
}, e, N.value, t, v.value.locale);
|
|
253
254
|
return {
|
|
254
255
|
...n,
|
|
255
|
-
options:
|
|
256
|
-
plugins: [
|
|
256
|
+
options: M(n.options, d.options),
|
|
257
|
+
plugins: [I]
|
|
257
258
|
};
|
|
258
|
-
}),
|
|
259
|
-
let t =
|
|
259
|
+
}), U = a(() => (e) => {
|
|
260
|
+
let t = z({
|
|
260
261
|
kind: "line",
|
|
261
262
|
data: d.data,
|
|
262
263
|
categoryKey: d.categoryKey,
|
|
263
|
-
series:
|
|
264
|
+
series: V.value.slice(0, 1),
|
|
264
265
|
legend: !1
|
|
265
|
-
}, e,
|
|
266
|
+
}, e, N.value, !0, v.value.locale);
|
|
266
267
|
return {
|
|
267
268
|
...t,
|
|
268
|
-
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
|
-
}),
|
|
279
|
-
function
|
|
280
|
-
let t =
|
|
281
|
-
|
|
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
|
|
284
|
-
return (t, n) => (
|
|
285
|
-
|
|
286
|
-
|
|
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: `${
|
|
290
|
-
class:
|
|
291
|
-
},
|
|
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:
|
|
294
|
-
style:
|
|
295
|
-
}, [u(
|
|
296
|
-
build:
|
|
297
|
-
labelledby: `${
|
|
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
|
-
|
|
300
|
+
q.value ? (y(), c("p", {
|
|
300
301
|
key: 0,
|
|
301
|
-
class:
|
|
302
|
-
},
|
|
303
|
-
e.brush && e.data.length > 1 ? (
|
|
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:
|
|
306
|
-
}, [l("div", { class:
|
|
307
|
-
"model-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:
|
|
313
|
-
"thumb-labels":
|
|
314
|
-
"format-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":
|
|
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 ? (
|
|
325
|
+
e.table ? (y(), c("details", {
|
|
325
326
|
key: 2,
|
|
326
|
-
class:
|
|
327
|
-
}, [l("summary", { class:
|
|
328
|
-
l("caption", { class:
|
|
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:
|
|
332
|
-
},
|
|
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:
|
|
336
|
-
},
|
|
337
|
-
l("tbody", null, [(
|
|
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:
|
|
340
|
-
},
|
|
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:
|
|
343
|
-
},
|
|
343
|
+
class: m(w(D).td())
|
|
344
|
+
}, S(e), 3))), 128))]))), 128))])
|
|
344
345
|
], 2)], 2)], 2)) : s("", !0)
|
|
345
|
-
],
|
|
346
|
+
], 16));
|
|
346
347
|
}
|
|
347
|
-
}),
|
|
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) => (
|
|
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
|
-
}),
|
|
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) => (
|
|
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
|
-
}),
|
|
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) => (
|
|
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
|
-
}),
|
|
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 =
|
|
529
|
-
let n =
|
|
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:
|
|
533
|
+
options: M(n.options, r.options)
|
|
533
534
|
};
|
|
534
|
-
}),
|
|
535
|
-
return (t, n) => (
|
|
536
|
-
|
|
537
|
-
|
|
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: `${
|
|
541
|
-
class:
|
|
542
|
-
},
|
|
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:
|
|
545
|
-
style:
|
|
546
|
-
}, [u(
|
|
547
|
-
build:
|
|
548
|
-
labelledby: `${
|
|
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 ? (
|
|
551
|
+
e.table ? (y(), c("details", {
|
|
551
552
|
key: 0,
|
|
552
|
-
class:
|
|
553
|
-
}, [l("summary", { class:
|
|
554
|
-
l("caption", { class:
|
|
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:
|
|
559
|
-
},
|
|
559
|
+
class: m(w(_).th())
|
|
560
|
+
}, S(p.value.category), 3),
|
|
560
561
|
l("th", {
|
|
561
562
|
scope: "col",
|
|
562
|
-
class:
|
|
563
|
-
},
|
|
563
|
+
class: m(w(_).th())
|
|
564
|
+
}, S(p.value.change), 3),
|
|
564
565
|
l("th", {
|
|
565
566
|
scope: "col",
|
|
566
|
-
class:
|
|
567
|
-
},
|
|
567
|
+
class: m(w(_).th())
|
|
568
|
+
}, S(p.value.total), 3)
|
|
568
569
|
])]),
|
|
569
|
-
l("tbody", null, [(
|
|
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:
|
|
573
|
-
},
|
|
574
|
-
l("td", { class:
|
|
575
|
-
l("td", { class:
|
|
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
|
-
],
|
|
579
|
+
], 16));
|
|
579
580
|
}
|
|
580
|
-
}),
|
|
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 =
|
|
609
|
-
let n =
|
|
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:
|
|
613
|
+
options: M(n.options, r.options)
|
|
613
614
|
};
|
|
614
|
-
}),
|
|
615
|
-
return (t, n) => (
|
|
616
|
-
|
|
617
|
-
|
|
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: `${
|
|
621
|
-
class:
|
|
622
|
-
},
|
|
623
|
-
l("div", { class:
|
|
624
|
-
class:
|
|
625
|
-
style:
|
|
626
|
-
}, [u(
|
|
627
|
-
build:
|
|
628
|
-
labelledby: `${
|
|
629
|
-
}, null, 8, ["build", "labelledby"])], 6), e.legend ? (
|
|
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":
|
|
633
|
-
class:
|
|
634
|
-
}, [(
|
|
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:
|
|
637
|
+
class: m(w(b).legendItem())
|
|
637
638
|
}, [
|
|
638
639
|
l("span", {
|
|
639
|
-
class:
|
|
640
|
+
class: m(w(v)({ tone: e.tone }).swatch()),
|
|
640
641
|
"aria-hidden": "true"
|
|
641
642
|
}, null, 2),
|
|
642
|
-
l("span", { class:
|
|
643
|
-
l("span", { class:
|
|
644
|
-
], 2))), 128))], 10,
|
|
645
|
-
e.table ? (
|
|
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:
|
|
648
|
-
}, [l("summary", { class:
|
|
649
|
-
l("caption", { class:
|
|
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:
|
|
654
|
-
},
|
|
654
|
+
class: m(w(_).th())
|
|
655
|
+
}, S(p.value.category), 3),
|
|
655
656
|
l("th", {
|
|
656
657
|
scope: "col",
|
|
657
|
-
class:
|
|
658
|
-
},
|
|
658
|
+
class: m(w(_).th())
|
|
659
|
+
}, S(p.value.value), 3),
|
|
659
660
|
l("th", {
|
|
660
661
|
scope: "col",
|
|
661
|
-
class:
|
|
662
|
-
},
|
|
662
|
+
class: m(w(_).th())
|
|
663
|
+
}, S(p.value.share), 3)
|
|
663
664
|
])]),
|
|
664
|
-
l("tbody", null, [(
|
|
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:
|
|
668
|
-
},
|
|
669
|
-
l("td", { class:
|
|
670
|
-
l("td", { class:
|
|
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
|
-
],
|
|
674
|
+
], 16));
|
|
674
675
|
}
|
|
675
676
|
});
|
|
676
677
|
//#endregion
|
|
677
|
-
export {
|
|
678
|
+
export { re as BarChart, Y as Chart, ae as CompositeChart, ie as LineChart, ue as PieChart, Z as Sparkline, se as WaterfallChart };
|