vue-data-ui 3.23.1 → 3.23.3
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/{PackageVersion-D6d8SCp9.js → PackageVersion-1OKZ1W6H.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-KvlL5CqE.js → package-Cg4kroiZ.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-DXUvcGUp.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-CDti5Yrx.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-CyfvdA32.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-B4akhyhb.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-CRVbAoXy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-D7a8R9Rg.js} +213 -263
- package/dist/vue-ui-candlestick-DDeDF04h.js +1837 -0
- package/dist/vue-ui-carousel-table-CV-962pa.js +467 -0
- package/dist/vue-ui-chestnut-DdF3f-qF.js +2014 -0
- package/dist/vue-ui-chord-CFtlZsF0.js +1345 -0
- package/dist/vue-ui-circle-pack-CF0525gq.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-C8SJymel.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-DjN2WTn7.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-urkM2RYu.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-BcEqgBhZ.js} +2 -2
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-K1RfKnQq.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-bcwR4sv_.js} +333 -359
- package/dist/vue-ui-donut-evolution-DZO16wgT.js +1549 -0
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-CAMuCd_S.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-CYjjPNyR.js} +182 -207
- package/dist/vue-ui-funnel-SdQbCfPX.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-CU_ZeAXL.js} +308 -334
- package/dist/vue-ui-gauge-Wg7of8IL.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-eGnYp7cT.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-rLrn2qwz.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-CSkSZVck.js} +292 -315
- package/dist/vue-ui-hill-B-RveDCB.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-XKtS1nG0.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-DZGkY905.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-C1dfLx3K.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-BFsMnCPM.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-CBwnys-6.js} +337 -386
- package/dist/vue-ui-nested-donuts-Cg_ZhOrZ.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-D-lr5E52.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-DSdUdqZS.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-27bzpBv7.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-C1pTZxWF.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-DK0BHh36.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-BTr7AVxq.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-CNxY7quH.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-Zo7VL6uV.js} +407 -432
- package/dist/vue-ui-scatter-UE5Fk5GN.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DQuSjWKe.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-BW37w8he.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-CvzmZ_NG.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-gYY4yLsx.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-CIaudPsS.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-BNtMARjh.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-j_FzHNpg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-Dwwq7eyk.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-COpvIV2e.js} +570 -595
- package/dist/vue-ui-strip-plot-DbAC2j_E.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-B5tDjnRf.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-D_xQdBDw.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-CEdPDVN6.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DSLwqD-s.js} +2 -2
- package/dist/vue-ui-tiremarks-BoAllKL8.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-CLeRO5Mn.js} +498 -524
- package/dist/vue-ui-waffle-B1V1NjL-.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DB6T5nFC.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-DzNJBiRP.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-CJRyhi5-.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CLkDo4Wy.js} +1600 -1562
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DG5WDIAj.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { Bt as t, M as n, q as r, t as i, z as ee } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as te, t as ne } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as re } from "./useConfig-
|
|
4
|
+
import { t as re } from "./useConfig-DlNpz6P8.js";
|
|
5
5
|
import { t as ie } from "./useNestedProp-vPNvh7rV.js";
|
|
6
6
|
import { t as a } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
7
|
import { t as ae } from "./DefGrad-DVBqDjhO.js";
|
|
8
|
-
import { n as o } from "./PackageVersion-
|
|
8
|
+
import { n as o } from "./PackageVersion-1OKZ1W6H.js";
|
|
9
9
|
import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createStaticVNode as f, createVNode as p, normalizeClass as oe, normalizeStyle as m, openBlock as h, ref as g, renderList as _, unref as v } from "vue";
|
|
10
10
|
//#region src/components/vue-ui-skeleton.vue
|
|
11
11
|
var y = /* @__PURE__ */ e({ default: () => K }), se = ["id"], ce = ["xmlns"], le = { transform: "translate(300, 300)" }, b = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { Vt as t, X as n, i as r, jt as i, t as a, tt as o } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as s, t as c } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as l } from "./useConfig-
|
|
4
|
+
import { t as l } from "./useConfig-DlNpz6P8.js";
|
|
5
5
|
import { t as u } from "./useNestedProp-vPNvh7rV.js";
|
|
6
6
|
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
7
|
import { t as f } from "./DefGrad-DVBqDjhO.js";
|
|
@@ -188,43 +188,42 @@ var N = ["xmlns", "stroke"], P = ["stroke"], F = [
|
|
|
188
188
|
},
|
|
189
189
|
emits: ["rate"],
|
|
190
190
|
setup(e, { expose: t, emit: a }) {
|
|
191
|
-
let { vue_ui_smiley: d } = l(), f = e, b = k(), E = a, O = w(null);
|
|
191
|
+
let { vue_ui_smiley: d } = l(), f = e, b = k(), E = a, O = w(null), M = w(I()), N = m(() => M.value.debug);
|
|
192
192
|
S(() => {
|
|
193
|
-
b["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
|
|
193
|
+
b["chart-background"] && N.value && console.warn("VueUiSmiley does not support the #chart-background slot.");
|
|
194
194
|
});
|
|
195
|
-
function
|
|
195
|
+
function P() {
|
|
196
196
|
(!Object.hasOwn(f.dataset, "rating") || i(f.dataset)) && o({
|
|
197
197
|
componentName: "VueUiSmiley",
|
|
198
198
|
type: "datasetAttribute",
|
|
199
|
-
property: "rating"
|
|
199
|
+
property: "rating",
|
|
200
|
+
debug: N.value
|
|
200
201
|
});
|
|
201
202
|
}
|
|
202
|
-
S(
|
|
203
|
-
|
|
204
|
-
s({
|
|
205
|
-
config: () => N.value,
|
|
203
|
+
S(P), s({
|
|
204
|
+
config: () => M.value,
|
|
206
205
|
dataset: () => [],
|
|
207
206
|
component: "VueUiSmiley",
|
|
208
207
|
rules: [c.noHint]
|
|
209
208
|
});
|
|
210
|
-
let
|
|
211
|
-
function
|
|
209
|
+
let F = m(() => M.value.useCursorPointer);
|
|
210
|
+
function I() {
|
|
212
211
|
return u({
|
|
213
212
|
userConfig: f.config,
|
|
214
213
|
defaultConfig: d
|
|
215
214
|
});
|
|
216
215
|
}
|
|
217
216
|
A(() => f.config, (e) => {
|
|
218
|
-
|
|
217
|
+
M.value = I(), K.value = M.value.readonly, P();
|
|
219
218
|
}, { deep: !0 });
|
|
220
|
-
let
|
|
219
|
+
let R = m(() => {
|
|
221
220
|
let e = f.dataset.rating;
|
|
222
|
-
return e && typeof e == "object" && !Array.isArray(e) ?
|
|
223
|
-
}),
|
|
224
|
-
A(
|
|
225
|
-
|
|
221
|
+
return e && typeof e == "object" && !Array.isArray(e) ? J(e) : e ?? null;
|
|
222
|
+
}), W = m(() => typeof f.dataset.rating == "object" && !Array.isArray(f.dataset.rating)), G = w(R.value);
|
|
223
|
+
A(R, (e) => {
|
|
224
|
+
G.value = e;
|
|
226
225
|
});
|
|
227
|
-
let
|
|
226
|
+
let K = w(M.value.readonly), q = [
|
|
228
227
|
{
|
|
229
228
|
key: "smiley_0",
|
|
230
229
|
pathIconFilled: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
|
|
@@ -261,7 +260,7 @@ var N = ["xmlns", "stroke"], P = ["stroke"], F = [
|
|
|
261
260
|
pathIconReadonly: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 9l.01 0 M15 9l.01 0 M8 13a4 4 0 1 0 8 0h-8"
|
|
262
261
|
}
|
|
263
262
|
];
|
|
264
|
-
function
|
|
263
|
+
function J(e) {
|
|
265
264
|
if (e == null) return null;
|
|
266
265
|
let t = 0, n = 0;
|
|
267
266
|
for (let r in e) {
|
|
@@ -270,83 +269,83 @@ var N = ["xmlns", "stroke"], P = ["stroke"], F = [
|
|
|
270
269
|
}
|
|
271
270
|
return n === 0 ? 0 : t / n;
|
|
272
271
|
}
|
|
273
|
-
function
|
|
274
|
-
let t =
|
|
272
|
+
function Y(e) {
|
|
273
|
+
let t = G.value - e;
|
|
275
274
|
switch (!0) {
|
|
276
275
|
case t < 0: return 0;
|
|
277
276
|
case t > 1: return 24;
|
|
278
277
|
default: return t * 24;
|
|
279
278
|
}
|
|
280
279
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
function X(e) {
|
|
281
|
+
return M.value.readonly ? M.value.style.colors.inactive[e] : G.value === e + 1 || O.value !== null && O.value === e ? M.value.style.icons.useGradient && M.value.style.icons.filled ? `url(#vueUiSmiley${e})` : M.value.style.colors.active[e] : M.value.style.colors.inactive[e];
|
|
283
282
|
}
|
|
284
|
-
let
|
|
283
|
+
let Z = m(() => ({ value: e, tooltip: t = !1 }) => r(t ? M.value.style.tooltip.formatter : M.value.style.rating.formatter, e, n({
|
|
285
284
|
v: e,
|
|
286
|
-
r: t ?
|
|
287
|
-
}),
|
|
288
|
-
function
|
|
289
|
-
|
|
285
|
+
r: t ? M.value.style.tooltip.roundingValue : M.value.style.rating.roundingValue
|
|
286
|
+
}), M.value));
|
|
287
|
+
function Q(e) {
|
|
288
|
+
K.value || (G.value = e, E("rate", e));
|
|
290
289
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
290
|
+
function $() {
|
|
291
|
+
return G.value;
|
|
293
292
|
}
|
|
294
|
-
function
|
|
295
|
-
|
|
293
|
+
function ee(e = !0) {
|
|
294
|
+
K.value = e;
|
|
296
295
|
}
|
|
297
296
|
return t({
|
|
298
|
-
getData:
|
|
299
|
-
toggleReadonly:
|
|
297
|
+
getData: $,
|
|
298
|
+
toggleReadonly: ee
|
|
300
299
|
}), (e, t) => (C(), g("div", {
|
|
301
300
|
class: "vue-data-ui-component vue-ui-smiley",
|
|
302
|
-
style: x(`background:${
|
|
301
|
+
style: x(`background:${M.value.style.backgroundColor};font-family:${M.value.style.fontFamily};width:100%;`),
|
|
303
302
|
onMouseleave: t[1] ||= (e) => O.value = void 0
|
|
304
303
|
}, [
|
|
305
|
-
|
|
304
|
+
M.value.style.title.text ? (C(), g("div", z, [_("div", { style: x(`color:${M.value.style.title.color};font-weight:${M.value.style.title.bold ? "bold" : "normal"};text-align:${M.value.style.title.textAlign};margin-bottom:${M.value.style.title.offsetY}px;font-size:${M.value.style.title.fontSize}px`) }, D(M.value.style.title.text), 5), M.value.style.title.subtitle.text ? (C(), g("div", {
|
|
306
305
|
key: 0,
|
|
307
|
-
style: x(`color:${
|
|
308
|
-
}, D(
|
|
309
|
-
|
|
306
|
+
style: x(`color:${M.value.style.title.subtitle.color};font-size:${M.value.style.title.subtitle.fontSize}px;text-align:${M.value.style.title.textAlign};margin-bottom:${M.value.style.title.subtitle.offsetY}px;font-weight:${M.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
307
|
+
}, D(M.value.style.title.subtitle.text), 5)) : h("", !0)])) : h("", !0),
|
|
308
|
+
M.value.style.rating.show && M.value.style.rating.position === "top" ? (C(), g("div", {
|
|
310
309
|
key: 1,
|
|
311
|
-
style: x(`width:100%;text-align:center;margin-bottom:${
|
|
312
|
-
}, D(
|
|
310
|
+
style: x(`width:100%;text-align:center;margin-bottom:${M.value.style.rating.offsetY}px;font-size:${M.value.style.rating.fontSize}px;font-weight:${M.value.style.rating.bold ? "bold" : "normal"};margin-left:${M.value.style.rating.offsetX}px`)
|
|
311
|
+
}, D(Z.value({ value: G.value })), 5)) : h("", !0),
|
|
313
312
|
_("div", {
|
|
314
313
|
class: "vue-ui-smiley-wrapper",
|
|
315
|
-
style: x(`overflow:visible;height:${
|
|
314
|
+
style: x(`overflow:visible;height:${M.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)
|
|
316
315
|
}, [
|
|
317
|
-
|
|
316
|
+
M.value.style.rating.show && M.value.style.rating.position === "left" ? (C(), g("div", {
|
|
318
317
|
key: 0,
|
|
319
|
-
style: x(`width:fit-content;text-align:center;margin-bottom:${
|
|
320
|
-
}, D(
|
|
321
|
-
(C(), g(p, null, T(
|
|
318
|
+
style: x(`width:fit-content;text-align:center;margin-bottom:${M.value.style.rating.offsetY}px;font-size:${M.value.style.rating.fontSize}px;font-weight:${M.value.style.rating.bold ? "bold" : "normal"};padding-right:${M.value.style.rating.offsetX}px`)
|
|
319
|
+
}, D(Z.value({ value: G.value })), 5)) : h("", !0),
|
|
320
|
+
(C(), g(p, null, T(q, (e, n) => y(L, {
|
|
322
321
|
key: e.key,
|
|
323
|
-
config:
|
|
322
|
+
config: M.value,
|
|
324
323
|
unit: n + 1,
|
|
325
|
-
currentRating:
|
|
326
|
-
isReadonly:
|
|
327
|
-
hasBreakdown:
|
|
324
|
+
currentRating: G.value,
|
|
325
|
+
isReadonly: K.value,
|
|
326
|
+
hasBreakdown: W.value,
|
|
328
327
|
hoveredValue: O.value,
|
|
329
|
-
getActiveColor:
|
|
330
|
-
calcShapeFill:
|
|
331
|
-
isCursorPointer:
|
|
328
|
+
getActiveColor: X,
|
|
329
|
+
calcShapeFill: Y,
|
|
330
|
+
isCursorPointer: F.value,
|
|
332
331
|
onMouseenter: (e) => O.value = n,
|
|
333
332
|
onMouseleave: t[0] ||= (e) => O.value = null,
|
|
334
|
-
onRate: (e) =>
|
|
333
|
+
onRate: (e) => Q(n + 1)
|
|
335
334
|
}, {
|
|
336
|
-
rating: j(() => [v(D(
|
|
335
|
+
rating: j(() => [v(D(Z.value({
|
|
337
336
|
value: f.dataset.rating[String(n + 1)],
|
|
338
337
|
tooltip: !0
|
|
339
338
|
})), 1)]),
|
|
340
339
|
"path-icon-filled": j(() => [_("path", {
|
|
341
340
|
d: e.pathIconFilled,
|
|
342
341
|
"stroke-width": "0",
|
|
343
|
-
fill:
|
|
342
|
+
fill: X(n)
|
|
344
343
|
}, null, 8, B)]),
|
|
345
344
|
"path-icon": j(() => [_("path", { d: e.pathIcon }, null, 8, V)]),
|
|
346
345
|
"path-icon-filled-readonly": j(() => [_("path", {
|
|
347
346
|
d: e.pathIconFilledReadonly,
|
|
348
347
|
"stroke-width": "0",
|
|
349
|
-
fill:
|
|
348
|
+
fill: M.value.style.icons.useGradient ? `url(#vueUiSmiley${n})` : M.value.style.colors.activeReadonly[n]
|
|
350
349
|
}, null, 8, H)]),
|
|
351
350
|
"path-icon-readonly": j(() => [_("path", { d: e.pathIconReadonly }, null, 8, U)]),
|
|
352
351
|
_: 2
|
|
@@ -361,15 +360,15 @@ var N = ["xmlns", "stroke"], P = ["stroke"], F = [
|
|
|
361
360
|
"onMouseenter",
|
|
362
361
|
"onRate"
|
|
363
362
|
])), 64)),
|
|
364
|
-
|
|
363
|
+
M.value.style.rating.show && M.value.style.rating.position === "right" ? (C(), g("div", {
|
|
365
364
|
key: 1,
|
|
366
|
-
style: x(`width:fit-content;text-align:center;margin-bottom:${
|
|
367
|
-
}, D(
|
|
365
|
+
style: x(`width:fit-content;text-align:center;margin-bottom:${M.value.style.rating.offsetY}px;font-size:${M.value.style.rating.fontSize}px;font-weight:${M.value.style.rating.bold ? "bold" : "normal"};padding-left:${M.value.style.rating.offsetX}px`)
|
|
366
|
+
}, D(Z.value({ value: G.value })), 5)) : h("", !0)
|
|
368
367
|
], 4),
|
|
369
|
-
|
|
368
|
+
M.value.style.rating.show && M.value.style.rating.position === "bottom" ? (C(), g("div", {
|
|
370
369
|
key: 2,
|
|
371
|
-
style: x(`width:100%;text-align:center;margin-top:${
|
|
372
|
-
}, D(
|
|
370
|
+
style: x(`width:100%;text-align:center;margin-top:${M.value.style.rating.offsetY}px;font-size:${M.value.style.rating.fontSize}px;font-weight:${M.value.style.rating.bold ? "bold" : "normal"};margin-left:${M.value.style.rating.offsetX}px`)
|
|
371
|
+
}, D(Z.value({ value: G.value })), 5)) : h("", !0)
|
|
373
372
|
], 36));
|
|
374
373
|
}
|
|
375
374
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { Bt as t, Et as n, Jt as r, P as i, X as a, b as o, g as ee, i as s, jt as c, q as te, t as ne, tt as re } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as oe } from "./useConfig-
|
|
4
|
+
import { t as oe } from "./useConfig-DlNpz6P8.js";
|
|
5
5
|
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as l } from "./useNestedProp-vPNvh7rV.js";
|
|
7
7
|
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
@@ -64,7 +64,7 @@ var S = /* @__PURE__ */ e({ default: () => C }), Se = ["id", "aria-describedby"]
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
setup(e) {
|
|
67
|
-
let u = ve(() => import("./PackageVersion-
|
|
67
|
+
let u = ve(() => import("./PackageVersion-1OKZ1W6H.js").then((e) => e.t)), { vue_ui_spark_trend: S } = oe(), { isThemeValid: C, warnInvalidTheme: Le } = le(), w = pe(), T = e, E = _(null), Re = _(null), ze = _(null), D = _(null), O = _(null), k = _(!1), A = _(null), j = _(te()), M = _(I());
|
|
68
68
|
ie({
|
|
69
69
|
config: () => M.value,
|
|
70
70
|
dataset: () => T.dataset,
|