iryx-ui 0.13.0 → 0.15.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/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +1 -1
- package/dist/components/AppShell.vue.d.ts +31 -6
- package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +68 -28
- package/dist/components/Banner.vue.d.ts +1 -1
- package/dist/components/BarChart.vue.d.ts +2 -0
- package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/Breadcrumb.vue.d.ts +1 -1
- package/dist/components/Combobox.vue.d.ts +34 -7
- package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +172 -103
- package/dist/components/CommandPalette.vue.d.ts +1 -1
- package/dist/components/DatePicker.vue.d.ts +1 -1
- package/dist/components/DateRangePicker.vue.d.ts +1 -1
- package/dist/components/Drawer.vue.d.ts +1 -1
- package/dist/components/FileUpload.vue.d.ts +2 -2
- package/dist/components/Icon.vue.d.ts +6 -0
- package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -9
- package/dist/components/LineChart.vue.d.ts +18 -0
- package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +178 -131
- package/dist/components/NavigationMenu.vue.d.ts +1 -1
- package/dist/components/Pagination.vue.d.ts +1 -1
- package/dist/components/Popover.vue.d.ts +1 -1
- package/dist/components/Sidebar.vue.d.ts +1 -1
- package/dist/components/SignaturePad.vue.d.ts +1 -1
- package/dist/components/Skeleton.vue.d.ts +1 -1
- package/dist/components/Stat.vue.d.ts +1 -1
- package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +13 -13
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +146 -144
- package/dist/composables/cartesian.d.ts +7 -0
- package/dist/composables/cartesian.js +6 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +154 -152
- package/dist/theme/app-shell.d.ts +42 -0
- package/dist/theme/app-shell.js +13 -1
- package/dist/theme/bar-chart.js +1 -1
- package/dist/theme/button.d.ts +2 -2
- package/dist/theme/button.js +1 -1
- package/dist/theme/combobox.d.ts +48 -0
- package/dist/theme/combobox.js +23 -3
- package/dist/theme/command-palette.d.ts +3 -3
- package/dist/theme/form.js +1 -1
- package/dist/theme/line-chart.js +2 -2
- package/dist/theme/sidebar.js +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,41 @@
|
|
|
1
1
|
import { useIryxUiConfig as e } from "../config.js";
|
|
2
2
|
import { useElementSize as t } from "../composables/element-size.js";
|
|
3
3
|
import { cartesianLayout as n, clampTooltip as r, seriesColor as i, slotOf as a, warnOnSlotOverflow as o } from "../composables/cartesian.js";
|
|
4
|
-
import
|
|
5
|
-
import { lineChartTheme as
|
|
6
|
-
import { Fragment as
|
|
4
|
+
import s from "./ChartLegend.js";
|
|
5
|
+
import { lineChartTheme as c } from "../theme/line-chart.js";
|
|
6
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, defineComponent as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useId as ee } from "vue";
|
|
7
7
|
//#region src/components/LineChart.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
8
|
+
var te = ["role", "aria-label"], ne = [
|
|
9
9
|
"width",
|
|
10
10
|
"height",
|
|
11
11
|
"viewBox"
|
|
12
|
-
],
|
|
12
|
+
], re = [
|
|
13
13
|
"x1",
|
|
14
14
|
"y1",
|
|
15
15
|
"x2",
|
|
16
16
|
"y2"
|
|
17
|
-
],
|
|
17
|
+
], ie = ["x", "y"], ae = { key: 1 }, oe = ["d", "fill"], se = [
|
|
18
18
|
"x1",
|
|
19
19
|
"y1",
|
|
20
20
|
"x2",
|
|
21
21
|
"y2"
|
|
22
|
-
],
|
|
22
|
+
], ce = ["d"], le = ["cx", "cy"], ue = ["cx", "cy"], E = ["x", "y"], D = [
|
|
23
23
|
"x",
|
|
24
24
|
"y",
|
|
25
25
|
"width",
|
|
26
26
|
"height",
|
|
27
27
|
"onPointerenter"
|
|
28
|
-
],
|
|
28
|
+
], O = { scope: "row" }, k = /*@__PURE__*/ h({
|
|
29
29
|
__name: "LineChart",
|
|
30
30
|
props: {
|
|
31
31
|
data: { default: () => [] },
|
|
32
32
|
series: {},
|
|
33
33
|
variant: { default: "line" },
|
|
34
|
+
tension: { default: 0 },
|
|
35
|
+
flush: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: void 0
|
|
38
|
+
},
|
|
34
39
|
height: { default: 240 },
|
|
35
40
|
ticks: { default: 5 },
|
|
36
41
|
axis: {
|
|
@@ -55,44 +60,44 @@ var w = ["role", "aria-label"], T = [
|
|
|
55
60
|
class: {},
|
|
56
61
|
ui: {}
|
|
57
62
|
},
|
|
58
|
-
setup(
|
|
59
|
-
let
|
|
60
|
-
function
|
|
61
|
-
return
|
|
63
|
+
setup(h) {
|
|
64
|
+
let k = h, A = e(), j = u(() => k.unstyled ?? A.unstyled), M = x(), { width: N } = t(M), P = u(() => new Intl.NumberFormat(k.locale, k.format));
|
|
65
|
+
function F(e) {
|
|
66
|
+
return P.value.format(e);
|
|
62
67
|
}
|
|
63
|
-
let
|
|
64
|
-
let e =
|
|
68
|
+
let I = u(() => {
|
|
69
|
+
let e = k.series?.length ? [...k.series] : [{ key: "value" }];
|
|
65
70
|
return o(e.length), e;
|
|
66
|
-
}),
|
|
67
|
-
function
|
|
71
|
+
}), L = u(() => I.value.length > 1), de = u(() => L.value || k.legend && I.value[0].name != null);
|
|
72
|
+
function R(e, t) {
|
|
68
73
|
let n = e[t];
|
|
69
74
|
return typeof n == "number" && Number.isFinite(n) ? n : null;
|
|
70
75
|
}
|
|
71
|
-
let
|
|
72
|
-
values:
|
|
73
|
-
categories:
|
|
74
|
-
longestLabel: Math.max(...
|
|
75
|
-
width:
|
|
76
|
-
height:
|
|
77
|
-
tickCount:
|
|
78
|
-
showAxis:
|
|
79
|
-
formatTick:
|
|
80
|
-
includeZero:
|
|
76
|
+
let z = u(() => n({
|
|
77
|
+
values: k.data.flatMap((e) => I.value.map((t) => R(e, t.key))),
|
|
78
|
+
categories: k.data.length,
|
|
79
|
+
longestLabel: Math.max(...k.data.map((e) => e.label.length), 1),
|
|
80
|
+
width: N.value,
|
|
81
|
+
height: k.height,
|
|
82
|
+
tickCount: k.ticks,
|
|
83
|
+
showAxis: k.axis,
|
|
84
|
+
formatTick: F,
|
|
85
|
+
includeZero: k.zero
|
|
81
86
|
}));
|
|
82
|
-
function
|
|
87
|
+
function B(e) {
|
|
83
88
|
return Math.round(e * 100) / 100;
|
|
84
89
|
}
|
|
85
|
-
let
|
|
90
|
+
let V = u(() => N.value ? I.value.map((e, t) => {
|
|
86
91
|
let n = [], r = [];
|
|
87
|
-
return
|
|
88
|
-
let a =
|
|
92
|
+
return k.data.forEach((t, i) => {
|
|
93
|
+
let a = R(t, e.key);
|
|
89
94
|
if (a == null) {
|
|
90
95
|
r.length && n.push(r), r = [];
|
|
91
96
|
return;
|
|
92
97
|
}
|
|
93
98
|
r.push({
|
|
94
|
-
x:
|
|
95
|
-
y:
|
|
99
|
+
x: B(z.value.pointAt(i)),
|
|
100
|
+
y: B(z.value.y(a)),
|
|
96
101
|
index: i
|
|
97
102
|
});
|
|
98
103
|
}), r.length && n.push(r), {
|
|
@@ -100,15 +105,41 @@ var w = ["role", "aria-label"], T = [
|
|
|
100
105
|
color: i(a(e, t)),
|
|
101
106
|
seriesIndex: t
|
|
102
107
|
};
|
|
103
|
-
}) : []),
|
|
104
|
-
|
|
105
|
-
return
|
|
108
|
+
}) : []), H = u(() => k.variant === "area" && !L.value && V.value.length > 0), U = u(() => {
|
|
109
|
+
let e = k.data?.length ?? 0;
|
|
110
|
+
return {
|
|
111
|
+
first: e ? B(z.value.pointAt(0)) : 0,
|
|
112
|
+
last: e ? B(z.value.pointAt(e - 1)) : 0,
|
|
113
|
+
left: B(z.value.plot.left),
|
|
114
|
+
right: B(z.value.plot.left + z.value.plot.width)
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
function W(e) {
|
|
118
|
+
return k.flush && e.x === U.value.last ? `L${U.value.right} ${e.y}` : "";
|
|
119
|
+
}
|
|
120
|
+
let G = u(() => Math.min(Math.max(k.tension, 0), 1) / 6);
|
|
121
|
+
function K(e) {
|
|
122
|
+
let t = e[0], n = e[e.length - 1], r = k.flush && t.x === U.value.first ? `M${U.value.left} ${t.y} L${t.x} ${t.y}` : `M${t.x} ${t.y}`;
|
|
123
|
+
if (G.value === 0 || e.length < 2) return [
|
|
124
|
+
r,
|
|
125
|
+
...e.slice(1).map((e) => `L${e.x} ${e.y}`),
|
|
126
|
+
W(n)
|
|
127
|
+
].filter(Boolean).join(" ");
|
|
128
|
+
let i = (e, t, n) => Math.min(Math.max(e, Math.min(t, n)), Math.max(t, n));
|
|
129
|
+
return [
|
|
130
|
+
r,
|
|
131
|
+
...e.slice(1).map((t, n) => {
|
|
132
|
+
let r = e[n], a = e[n - 1] ?? r, o = t, s = e[n + 2] ?? o, c = r.x + (o.x - a.x) * G.value, l = i(r.y + (o.y - a.y) * G.value, r.y, o.y), u = o.x - (s.x - r.x) * G.value, d = i(o.y - (s.y - r.y) * G.value, r.y, o.y);
|
|
133
|
+
return `C${B(c)} ${B(l)}, ${B(u)} ${B(d)}, ${o.x} ${o.y}`;
|
|
134
|
+
}),
|
|
135
|
+
W(n)
|
|
136
|
+
].filter(Boolean).join(" ");
|
|
106
137
|
}
|
|
107
|
-
function
|
|
108
|
-
let t =
|
|
109
|
-
return `${
|
|
138
|
+
function fe(e) {
|
|
139
|
+
let t = z.value.plot.top + z.value.plot.height, n = e[0], r = e[e.length - 1], i = k.flush && n.x === U.value.first ? U.value.left : n.x, a = k.flush && r.x === U.value.last ? U.value.right : r.x;
|
|
140
|
+
return `${K(e)} L${a} ${t} L${i} ${t} Z`;
|
|
110
141
|
}
|
|
111
|
-
let J =
|
|
142
|
+
let q = `iryx-area-${ee()}`, J = x(), Y = u(() => J.value == null ? [] : V.value.flatMap((e) => {
|
|
112
143
|
for (let t of e.runs) {
|
|
113
144
|
let n = t.find((e) => e.index === J.value);
|
|
114
145
|
if (n) return [{
|
|
@@ -117,149 +148,165 @@ var w = ["role", "aria-label"], T = [
|
|
|
117
148
|
}];
|
|
118
149
|
}
|
|
119
150
|
return [];
|
|
120
|
-
})), X =
|
|
151
|
+
})), X = u(() => J.value == null ? void 0 : B(z.value.pointAt(J.value))), Z = u(() => {
|
|
121
152
|
if (J.value == null) return;
|
|
122
|
-
let e =
|
|
153
|
+
let e = k.data[J.value];
|
|
123
154
|
if (!e) return;
|
|
124
|
-
let t =
|
|
155
|
+
let t = I.value.map((t, n) => ({
|
|
125
156
|
name: t.name ?? t.key,
|
|
126
157
|
color: i(a(t, n)),
|
|
127
|
-
value:
|
|
158
|
+
value: R(e, t.key)
|
|
128
159
|
})).filter((e) => e.value != null).map((e) => ({
|
|
129
160
|
...e,
|
|
130
|
-
value:
|
|
161
|
+
value: F(e.value)
|
|
131
162
|
}));
|
|
132
163
|
if (!t.length) return;
|
|
133
|
-
let n =
|
|
164
|
+
let n = L.value ? Math.max(e.label.length, ...t.map((e) => e.name.length + e.value.length + 3)) : e.label.length + t[0].value.length + 2;
|
|
134
165
|
return {
|
|
135
166
|
label: e.label,
|
|
136
167
|
rows: t,
|
|
137
|
-
multi:
|
|
138
|
-
x: r(
|
|
139
|
-
y: Math.min(...Y.value.map((e) => e.y),
|
|
168
|
+
multi: L.value,
|
|
169
|
+
x: r(z.value.pointAt(J.value), "x".repeat(n), N.value),
|
|
170
|
+
y: Math.min(...Y.value.map((e) => e.y), z.value.plot.top + z.value.plot.height)
|
|
140
171
|
};
|
|
141
|
-
}), Q =
|
|
172
|
+
}), Q = u(() => c());
|
|
142
173
|
function $(e, t) {
|
|
143
|
-
let n =
|
|
144
|
-
return
|
|
174
|
+
let n = k.ui?.[e];
|
|
175
|
+
return j.value ? [n, t] : Q.value[e]({ class: [n, t] });
|
|
145
176
|
}
|
|
146
|
-
return (e, t) => (
|
|
177
|
+
return (e, t) => (b(), p("div", {
|
|
147
178
|
ref_key: "root",
|
|
148
|
-
ref:
|
|
149
|
-
role:
|
|
150
|
-
"aria-label":
|
|
151
|
-
class:
|
|
179
|
+
ref: M,
|
|
180
|
+
role: k.label ? "figure" : void 0,
|
|
181
|
+
"aria-label": k.label,
|
|
182
|
+
class: _($("root", k.class))
|
|
152
183
|
}, [
|
|
153
|
-
|
|
184
|
+
de.value ? (b(), d(s, {
|
|
154
185
|
key: 0,
|
|
155
|
-
series:
|
|
156
|
-
unstyled:
|
|
157
|
-
}, null, 8, ["series", "unstyled"])) :
|
|
158
|
-
|
|
159
|
-
width:
|
|
160
|
-
height:
|
|
161
|
-
viewBox: `0 0 ${
|
|
186
|
+
series: I.value,
|
|
187
|
+
unstyled: k.unstyled
|
|
188
|
+
}, null, 8, ["series", "unstyled"])) : f("", !0),
|
|
189
|
+
m("div", { class: _(j.value ? void 0 : Q.value.plot()) }, [(b(), p("svg", {
|
|
190
|
+
width: T(N),
|
|
191
|
+
height: k.height,
|
|
192
|
+
viewBox: `0 0 ${T(N)} ${k.height}`,
|
|
162
193
|
"aria-hidden": "true",
|
|
163
|
-
class:
|
|
194
|
+
class: _($("svg"))
|
|
164
195
|
}, [
|
|
165
|
-
|
|
166
|
-
x1:
|
|
167
|
-
y1:
|
|
168
|
-
x2:
|
|
169
|
-
y2:
|
|
196
|
+
k.axis ? (b(!0), p(l, { key: 0 }, S(z.value.ticks, (e) => (b(), p("g", { key: `tick-${e}` }, [m("line", {
|
|
197
|
+
x1: z.value.plot.left,
|
|
198
|
+
y1: z.value.y(e),
|
|
199
|
+
x2: z.value.plot.left + z.value.plot.width,
|
|
200
|
+
y2: z.value.y(e),
|
|
170
201
|
"stroke-width": "1",
|
|
171
|
-
class:
|
|
172
|
-
}, null, 10,
|
|
173
|
-
x:
|
|
174
|
-
y:
|
|
202
|
+
class: _($("grid"))
|
|
203
|
+
}, null, 10, re), m("text", {
|
|
204
|
+
x: z.value.plot.left - T(8),
|
|
205
|
+
y: z.value.y(e),
|
|
175
206
|
"text-anchor": "end",
|
|
176
207
|
"dominant-baseline": "middle",
|
|
177
|
-
class:
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
|
|
208
|
+
class: _($("tick"))
|
|
209
|
+
}, w(F(e)), 11, ie)]))), 128)) : f("", !0),
|
|
210
|
+
C(e.$slots, "underlay", v(g(z.value))),
|
|
211
|
+
H.value ? (b(), p("defs", ae, [m("linearGradient", {
|
|
212
|
+
id: q,
|
|
213
|
+
x1: "0",
|
|
214
|
+
y1: "0",
|
|
215
|
+
x2: "0",
|
|
216
|
+
y2: "1"
|
|
217
|
+
}, [...t[1] ||= [m("stop", {
|
|
218
|
+
offset: "0%",
|
|
219
|
+
"stop-color": "currentColor",
|
|
220
|
+
"stop-opacity": "0.35"
|
|
221
|
+
}, null, -1), m("stop", {
|
|
222
|
+
offset: "100%",
|
|
223
|
+
"stop-color": "currentColor",
|
|
224
|
+
"stop-opacity": "0"
|
|
225
|
+
}, null, -1)]])])) : f("", !0),
|
|
226
|
+
H.value ? (b(!0), p(l, { key: 2 }, S(V.value[0].runs, (e, t) => (b(), p("path", {
|
|
181
227
|
key: `area-${t}`,
|
|
182
|
-
d:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
228
|
+
d: fe(e),
|
|
229
|
+
fill: `url(#${q})`,
|
|
230
|
+
style: y({ color: V.value[0].color }),
|
|
231
|
+
class: _($("area"))
|
|
232
|
+
}, null, 14, oe))), 128)) : f("", !0),
|
|
233
|
+
X.value == null ? f("", !0) : (b(), p("line", {
|
|
234
|
+
key: 3,
|
|
188
235
|
x1: X.value,
|
|
189
|
-
y1:
|
|
236
|
+
y1: z.value.plot.top,
|
|
190
237
|
x2: X.value,
|
|
191
|
-
y2:
|
|
238
|
+
y2: z.value.plot.top + z.value.plot.height,
|
|
192
239
|
"stroke-width": "1",
|
|
193
|
-
class:
|
|
194
|
-
}, null, 10,
|
|
195
|
-
(
|
|
240
|
+
class: _($("crosshair"))
|
|
241
|
+
}, null, 10, se)),
|
|
242
|
+
(b(!0), p(l, null, S(V.value, (e) => (b(), p(l, { key: `series-${e.seriesIndex}` }, [(b(!0), p(l, null, S(e.runs, (t, n) => (b(), p("path", {
|
|
196
243
|
key: `line-${e.seriesIndex}-${n}`,
|
|
197
|
-
d:
|
|
198
|
-
style:
|
|
199
|
-
class:
|
|
200
|
-
}, null, 14,
|
|
201
|
-
(
|
|
244
|
+
d: K(t),
|
|
245
|
+
style: y({ stroke: e.color }),
|
|
246
|
+
class: _($("line"))
|
|
247
|
+
}, null, 14, ce))), 128))], 64))), 128)),
|
|
248
|
+
(b(!0), p(l, null, S(Y.value, (e, t) => (b(), p(l, { key: `marker-${t}` }, [m("circle", {
|
|
202
249
|
cx: e.x,
|
|
203
250
|
cy: e.y,
|
|
204
251
|
r: "6",
|
|
205
|
-
class:
|
|
206
|
-
}, null, 10,
|
|
252
|
+
class: _($("markerRing"))
|
|
253
|
+
}, null, 10, le), m("circle", {
|
|
207
254
|
cx: e.x,
|
|
208
255
|
cy: e.y,
|
|
209
256
|
r: "4",
|
|
210
|
-
style:
|
|
211
|
-
class:
|
|
212
|
-
}, null, 14,
|
|
213
|
-
(
|
|
257
|
+
style: y({ fill: e.color }),
|
|
258
|
+
class: _($("marker"))
|
|
259
|
+
}, null, 14, ue)], 64))), 128)),
|
|
260
|
+
(b(!0), p(l, null, S(k.data, (e, t) => (b(), p(l, { key: `label-${e.label}-${t}` }, [t % z.value.labelStep === 0 ? (b(), p("text", {
|
|
214
261
|
key: 0,
|
|
215
|
-
x:
|
|
216
|
-
y:
|
|
262
|
+
x: z.value.pointAt(t),
|
|
263
|
+
y: z.value.plot.top + z.value.plot.height + 14,
|
|
217
264
|
"text-anchor": "middle",
|
|
218
|
-
class:
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
(
|
|
265
|
+
class: _($("category"))
|
|
266
|
+
}, w(e.label), 11, E)) : f("", !0)], 64))), 128)),
|
|
267
|
+
C(e.$slots, "overlay", v(g(z.value))),
|
|
268
|
+
(b(!0), p(l, null, S(k.data, (e, n) => (b(), p("rect", {
|
|
222
269
|
key: `hit-${e.label}-${n}`,
|
|
223
|
-
x:
|
|
224
|
-
y:
|
|
225
|
-
width:
|
|
226
|
-
height:
|
|
227
|
-
class:
|
|
270
|
+
x: z.value.plot.left + z.value.bandWidth * n,
|
|
271
|
+
y: z.value.plot.top,
|
|
272
|
+
width: z.value.bandWidth,
|
|
273
|
+
height: z.value.plot.height,
|
|
274
|
+
class: _(j.value ? void 0 : Q.value.hit()),
|
|
228
275
|
onPointerenter: (e) => J.value = n,
|
|
229
276
|
onPointerleave: t[0] ||= (e) => J.value = void 0
|
|
230
|
-
}, null, 42,
|
|
231
|
-
], 10,
|
|
277
|
+
}, null, 42, D))), 128))
|
|
278
|
+
], 10, ne)), Z.value ? (b(), p("div", {
|
|
232
279
|
key: 0,
|
|
233
|
-
class:
|
|
234
|
-
style:
|
|
280
|
+
class: _($("tooltip", Z.value.multi ? "flex-col items-start gap-1" : void 0)),
|
|
281
|
+
style: y({
|
|
235
282
|
left: `${Z.value.x}px`,
|
|
236
283
|
top: `${Z.value.y}px`,
|
|
237
284
|
transform: "translate(-50%, -100%) translateY(-12px)"
|
|
238
285
|
})
|
|
239
|
-
}, [
|
|
286
|
+
}, [m("span", { class: _($("tooltipLabel")) }, w(Z.value.label), 3), Z.value.multi ? (b(!0), p(l, { key: 0 }, S(Z.value.rows, (e) => (b(), p("span", {
|
|
240
287
|
key: e.name,
|
|
241
288
|
class: "flex items-center gap-1.5"
|
|
242
289
|
}, [
|
|
243
|
-
|
|
290
|
+
m("span", {
|
|
244
291
|
class: "size-2 shrink-0 rounded-full",
|
|
245
|
-
style:
|
|
292
|
+
style: y({ background: e.color })
|
|
246
293
|
}, null, 4),
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
]))), 128)) : (
|
|
294
|
+
m("span", { class: _($("tooltipLabel")) }, w(e.name), 3),
|
|
295
|
+
m("span", { class: _($("tooltipValue")) }, w(e.value), 3)
|
|
296
|
+
]))), 128)) : (b(), p("span", {
|
|
250
297
|
key: 1,
|
|
251
|
-
class:
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
298
|
+
class: _($("tooltipValue"))
|
|
299
|
+
}, w(Z.value.rows[0].value), 3))], 6)) : f("", !0)], 2),
|
|
300
|
+
m("div", { class: _($("table")) }, [m("table", null, [
|
|
301
|
+
m("caption", null, w(k.label), 1),
|
|
302
|
+
m("thead", null, [m("tr", null, [t[2] ||= m("th", { scope: "col" }, " Category ", -1), (b(!0), p(l, null, S(I.value, (e) => (b(), p("th", {
|
|
256
303
|
key: e.key,
|
|
257
304
|
scope: "col"
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
], 2)
|
|
261
|
-
], 10,
|
|
305
|
+
}, w(e.name ?? "Value"), 1))), 128))])]),
|
|
306
|
+
m("tbody", null, [(b(!0), p(l, null, S(k.data, (e, t) => (b(), p("tr", { key: `row-${e.label}-${t}` }, [m("th", O, w(e.label), 1), (b(!0), p(l, null, S(I.value, (t) => (b(), p("td", { key: t.key }, w(R(e, t.key) == null ? "—" : F(R(e, t.key))), 1))), 128))]))), 128))])
|
|
307
|
+
])], 2)
|
|
308
|
+
], 10, te));
|
|
262
309
|
}
|
|
263
310
|
});
|
|
264
311
|
//#endregion
|
|
265
|
-
export {
|
|
312
|
+
export { k as default };
|
|
@@ -60,9 +60,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
60
60
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
61
61
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
62
62
|
}>, {
|
|
63
|
+
label: string;
|
|
63
64
|
unstyled: boolean;
|
|
64
65
|
orientation: "horizontal" | "vertical";
|
|
65
|
-
label: string;
|
|
66
66
|
columns: 1 | 2 | 3;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -40,8 +40,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
40
40
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
41
41
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
|
-
unstyled: boolean;
|
|
44
43
|
label: string;
|
|
44
|
+
unstyled: boolean;
|
|
45
45
|
total: number;
|
|
46
46
|
nextLabel: string;
|
|
47
47
|
itemsPerPage: number;
|
|
@@ -61,8 +61,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
61
61
|
}>, {
|
|
62
62
|
unstyled: boolean;
|
|
63
63
|
closeLabel: string;
|
|
64
|
-
align: "start" | "center" | "end";
|
|
65
64
|
side: "top" | "right" | "bottom" | "left";
|
|
65
|
+
align: "start" | "center" | "end";
|
|
66
66
|
sideOffset: number;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -58,8 +58,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
58
58
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
59
59
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
60
60
|
}>, {
|
|
61
|
-
unstyled: boolean;
|
|
62
61
|
label: string;
|
|
62
|
+
unstyled: boolean;
|
|
63
63
|
side: "left" | "right";
|
|
64
64
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
65
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -50,8 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<SignaturePadProps, {
|
|
|
50
50
|
unstyled: boolean;
|
|
51
51
|
height: number;
|
|
52
52
|
invalid: boolean;
|
|
53
|
-
ariaLabel: string;
|
|
54
53
|
clearLabel: string;
|
|
54
|
+
ariaLabel: string;
|
|
55
55
|
penColor: string;
|
|
56
56
|
penWidth: number;
|
|
57
57
|
undoLabel: string;
|
|
@@ -11,9 +11,9 @@ export interface SkeletonProps {
|
|
|
11
11
|
class?: string;
|
|
12
12
|
}
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
|
|
14
|
+
label: string;
|
|
14
15
|
unstyled: boolean;
|
|
15
16
|
as: string;
|
|
16
|
-
label: string;
|
|
17
17
|
lines: number;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -24,35 +24,35 @@ var x = /*@__PURE__*/ u({
|
|
|
24
24
|
ui: {}
|
|
25
25
|
},
|
|
26
26
|
setup(u) {
|
|
27
|
-
let x = u, S = r(() => x.
|
|
27
|
+
let x = u, S = r(() => x.delta == null || x.delta === 0 ? "neutral" : x.delta > 0 ? "up" : "down"), C = r(() => x.trend ?? S.value), w = r(() => ({
|
|
28
28
|
up: y,
|
|
29
29
|
down: _,
|
|
30
30
|
neutral: v
|
|
31
|
-
})[S.value]),
|
|
31
|
+
})[S.value]), T = r(() => {
|
|
32
32
|
if (x.delta != null) return x.formatDelta ? x.formatDelta(x.delta) : `${x.delta > 0 ? "+" : ""}${x.delta}%`;
|
|
33
|
-
}),
|
|
33
|
+
}), E = e(), D = r(() => x.unstyled ?? E.unstyled), O = r(() => n({
|
|
34
34
|
size: x.size,
|
|
35
|
-
trend:
|
|
36
|
-
})),
|
|
35
|
+
trend: C.value
|
|
36
|
+
})), k = r(() => D.value ? [x.ui?.root, x.class] : O.value.root({ class: [x.ui?.root, x.class] })), A = r(() => D.value ? x.ui?.label : O.value.label({ class: x.ui?.label })), j = r(() => D.value ? x.ui?.value : O.value.value({ class: x.ui?.value })), M = r(() => D.value ? x.ui?.delta : O.value.delta({ class: x.ui?.delta })), N = r(() => D.value ? x.ui?.hint : O.value.hint({ class: x.ui?.hint })), P = r(() => D.value ? x.ui?.row : O.value.row({ class: x.ui?.row }));
|
|
37
37
|
return (e, n) => (f(), i(h(b), {
|
|
38
38
|
as: x.as,
|
|
39
|
-
class: d(
|
|
39
|
+
class: d(k.value)
|
|
40
40
|
}, {
|
|
41
41
|
default: g(() => [
|
|
42
42
|
x.label || e.$slots.label ? (f(), o("span", {
|
|
43
43
|
key: 0,
|
|
44
|
-
class: d(
|
|
44
|
+
class: d(A.value)
|
|
45
45
|
}, [p(e.$slots, "label", {}, () => [c(m(x.label), 1)])], 2)) : a("", !0),
|
|
46
|
-
s("span", { class: d(
|
|
46
|
+
s("span", { class: d(P.value) }, [s("span", { class: d(j.value) }, [p(e.$slots, "default", {}, () => [c(m(x.value), 1)])], 2), T.value || e.$slots.delta ? (f(), o("span", {
|
|
47
47
|
key: 0,
|
|
48
|
-
class: d(
|
|
49
|
-
}, [p(e.$slots, "delta", { trend:
|
|
50
|
-
icon:
|
|
48
|
+
class: d(M.value)
|
|
49
|
+
}, [p(e.$slots, "delta", { trend: C.value }, () => [l(t, {
|
|
50
|
+
icon: w.value,
|
|
51
51
|
"data-icon": "inline-start"
|
|
52
|
-
}, null, 8, ["icon"]), c(" " + m(
|
|
52
|
+
}, null, 8, ["icon"]), c(" " + m(T.value), 1)])], 2)) : a("", !0)], 2),
|
|
53
53
|
x.hint || e.$slots.hint ? (f(), o("span", {
|
|
54
54
|
key: 1,
|
|
55
|
-
class: d(
|
|
55
|
+
class: d(N.value)
|
|
56
56
|
}, [p(e.$slots, "hint", {}, () => [c(m(x.hint), 1)])], 2)) : a("", !0)
|
|
57
57
|
]),
|
|
58
58
|
_: 3
|
|
@@ -30,6 +30,7 @@ export { default as EmptyState } from './EmptyState.vue';
|
|
|
30
30
|
export { default as FileUpload } from './FileUpload.vue';
|
|
31
31
|
export { default as Form } from './Form.vue';
|
|
32
32
|
export { default as FormField } from './FormField.vue';
|
|
33
|
+
export { default as Icon } from './Icon.vue';
|
|
33
34
|
export { default as Input } from './Input.vue';
|
|
34
35
|
export { default as Kbd } from './Kbd.vue';
|
|
35
36
|
export { default as Label } from './Label.vue';
|