vue-data-ui 3.22.13 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
- package/dist/components/arrow.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 +2 -0
- 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-icon.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/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
2
|
+
import { Vt as t, X as n, i as r, jt as i, t as a, tt as o } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as s, t as c } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as l } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as u } from "./useNestedProp--NSEmhOH.js";
|
|
6
|
+
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
+
import { t as f } from "./DefGrad-DVBqDjhO.js";
|
|
8
|
+
import { Fragment as p, computed as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, normalizeClass as b, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useSlots as k, watch as A, withCtx as j, withKeys as M } from "vue";
|
|
8
9
|
//#region src/atoms/BaseSmilingUnit.vue
|
|
9
|
-
var
|
|
10
|
+
var N = ["xmlns", "stroke"], P = ["stroke"], F = [
|
|
10
11
|
"xmlns",
|
|
11
12
|
"viewBox",
|
|
12
13
|
"stroke"
|
|
13
|
-
],
|
|
14
|
+
], I = ["viewBox", "stroke"], L = /*#__PURE__*/ d({
|
|
14
15
|
__name: "BaseSmilingUnit",
|
|
15
16
|
props: {
|
|
16
17
|
config: { type: Object },
|
|
@@ -28,26 +29,26 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
28
29
|
"mouseenter",
|
|
29
30
|
"mouseleave"
|
|
30
31
|
],
|
|
31
|
-
setup(e, { emit:
|
|
32
|
-
let r = e, i =
|
|
33
|
-
return (
|
|
32
|
+
setup(e, { emit: n }) {
|
|
33
|
+
let r = e, i = n;
|
|
34
|
+
return (n, o) => (C(), g("div", {
|
|
34
35
|
tabindex: "0",
|
|
35
|
-
class:
|
|
36
|
-
style:
|
|
36
|
+
class: b({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
|
|
37
|
+
style: x({
|
|
37
38
|
cursor: e.config.readonly ? "default" : r.isCursorPointer ? "pointer" : "default",
|
|
38
39
|
height: e.config.style.itemSize + "px",
|
|
39
40
|
aspectRatio: "1/1",
|
|
40
41
|
position: "relative"
|
|
41
42
|
}),
|
|
42
|
-
onMouseenter:
|
|
43
|
-
onMouseleave:
|
|
44
|
-
onClick:
|
|
45
|
-
onKeyup:
|
|
43
|
+
onMouseenter: o[0] ||= (e) => i("mouseenter"),
|
|
44
|
+
onMouseleave: o[1] ||= (e) => i("mouseleave"),
|
|
45
|
+
onClick: o[2] ||= (t) => i("rate", e.unit),
|
|
46
|
+
onKeyup: o[3] ||= M((t) => i("rate", e.unit), ["enter"])
|
|
46
47
|
}, [
|
|
47
|
-
e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (
|
|
48
|
+
e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (C(), g("div", {
|
|
48
49
|
key: 0,
|
|
49
50
|
class: "vue-ui-rating-tooltip",
|
|
50
|
-
style:
|
|
51
|
+
style: x({
|
|
51
52
|
border: `1px solid ${e.config.style.tooltip.borderColor}`,
|
|
52
53
|
position: "absolute",
|
|
53
54
|
top: `${e.config.style.tooltip.offsetY - 48}px`,
|
|
@@ -61,7 +62,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
61
62
|
borderRadius: e.config.style.tooltip.borderRadius + "px",
|
|
62
63
|
boxShadow: e.config.style.tooltip.boxShadow
|
|
63
64
|
})
|
|
64
|
-
}, [
|
|
65
|
+
}, [_("div", { style: x({
|
|
65
66
|
width: "100%",
|
|
66
67
|
display: "flex",
|
|
67
68
|
flexDirection: "row",
|
|
@@ -70,13 +71,13 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
70
71
|
textAlign: "center",
|
|
71
72
|
color: e.config.style.tooltip.color
|
|
72
73
|
}) }, [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
], 4)], 4)) :
|
|
77
|
-
e.config.style.icons.filled ? (
|
|
74
|
+
_("span", { style: x(`font-size:${e.config.style.tooltip.fontSize}px`) }, D(e.unit) + ":", 5),
|
|
75
|
+
_("span", { style: x(`font-weight:${e.config.style.tooltip.bold ? "bold" : "normal"};font-size:${e.config.style.tooltip.fontSize}px`) }, [E(n.$slots, "rating", {}, void 0, !0)], 4),
|
|
76
|
+
_("div", { style: x(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`) }, " ▼ ", 4)
|
|
77
|
+
], 4)], 4)) : h("", !0),
|
|
78
|
+
e.config.style.icons.filled ? (C(), g("svg", {
|
|
78
79
|
key: 1,
|
|
79
|
-
xmlns:
|
|
80
|
+
xmlns: O(a),
|
|
80
81
|
style: {
|
|
81
82
|
transition: "all 0.1s ease-in-out",
|
|
82
83
|
position: "absolute",
|
|
@@ -90,19 +91,19 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
90
91
|
fill: "none",
|
|
91
92
|
"stroke-linecap": "round",
|
|
92
93
|
"stroke-linejoin": "round"
|
|
93
|
-
}, [
|
|
94
|
+
}, [_("defs", null, [y(f, {
|
|
94
95
|
t: "radial",
|
|
95
96
|
id: `vueUiSmiley${e.unit - 1}`,
|
|
96
97
|
stops: [[
|
|
97
98
|
"0%",
|
|
98
|
-
|
|
99
|
+
O(t)(e.config.style.colors.active[e.unit - 1], .05),
|
|
99
100
|
1
|
|
100
101
|
], [
|
|
101
102
|
"100%",
|
|
102
103
|
e.config.style.colors.active[e.unit - 1],
|
|
103
104
|
1
|
|
104
105
|
]]
|
|
105
|
-
}, null, 8, ["id", "stops"])]),
|
|
106
|
+
}, null, 8, ["id", "stops"])]), E(n.$slots, "path-icon-filled", {}, void 0, !0)], 8, N)) : (C(), g("svg", {
|
|
106
107
|
key: 2,
|
|
107
108
|
style: {
|
|
108
109
|
position: "absolute",
|
|
@@ -117,10 +118,10 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
117
118
|
fill: "none",
|
|
118
119
|
"stroke-linecap": "round",
|
|
119
120
|
"stroke-linejoin": "round"
|
|
120
|
-
}, [
|
|
121
|
-
e.config.style.icons.filled && e.isReadonly ? (
|
|
121
|
+
}, [E(n.$slots, "path-icon", {}, void 0, !0)], 8, P)),
|
|
122
|
+
e.config.style.icons.filled && e.isReadonly ? (C(), g("svg", {
|
|
122
123
|
key: 3,
|
|
123
|
-
xmlns:
|
|
124
|
+
xmlns: O(a),
|
|
124
125
|
style: {
|
|
125
126
|
transition: "all 0.1s ease-in-out",
|
|
126
127
|
position: "absolute",
|
|
@@ -134,20 +135,20 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
134
135
|
fill: "none",
|
|
135
136
|
"stroke-linecap": "round",
|
|
136
137
|
"stroke-linejoin": "round"
|
|
137
|
-
}, [
|
|
138
|
+
}, [_("defs", null, [y(f, {
|
|
138
139
|
t: "radial",
|
|
139
140
|
id: `vueUiSmiley${e.unit - 1}`,
|
|
140
141
|
stops: [[
|
|
141
142
|
"0%",
|
|
142
|
-
|
|
143
|
+
O(t)(e.config.style.colors.activeReadonly[e.unit - 1], .05),
|
|
143
144
|
1
|
|
144
145
|
], [
|
|
145
146
|
"100%",
|
|
146
147
|
e.config.style.colors.activeReadonly[e.unit - 1],
|
|
147
148
|
1
|
|
148
149
|
]]
|
|
149
|
-
}, null, 8, ["id", "stops"])]),
|
|
150
|
-
!e.config.style.icons.filled && e.isReadonly ? (
|
|
150
|
+
}, null, 8, ["id", "stops"])]), E(n.$slots, "path-icon-filled-readonly", {}, void 0, !0)], 8, F)) : h("", !0),
|
|
151
|
+
!e.config.style.icons.filled && e.isReadonly ? (C(), g("svg", {
|
|
151
152
|
key: 4,
|
|
152
153
|
style: {
|
|
153
154
|
position: "absolute",
|
|
@@ -162,14 +163,14 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
162
163
|
fill: "none",
|
|
163
164
|
"stroke-linecap": "round",
|
|
164
165
|
"stroke-linejoin": "round"
|
|
165
|
-
}, [
|
|
166
|
+
}, [E(n.$slots, "path-icon-readonly", {}, void 0, !0)], 8, I)) : h("", !0)
|
|
166
167
|
], 38));
|
|
167
168
|
}
|
|
168
|
-
}, [["__scopeId", "data-v-9734e83c"]]),
|
|
169
|
+
}, [["__scopeId", "data-v-9734e83c"]]), R = /* @__PURE__ */ e({ default: () => W }), z = {
|
|
169
170
|
key: 0,
|
|
170
171
|
class: "vue-ui-rating-title",
|
|
171
172
|
style: { width: "100%" }
|
|
172
|
-
},
|
|
173
|
+
}, B = ["d", "fill"], V = ["d"], H = ["d", "fill"], U = ["d"], W = {
|
|
173
174
|
__name: "vue-ui-smiley",
|
|
174
175
|
props: {
|
|
175
176
|
config: {
|
|
@@ -186,37 +187,44 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
186
187
|
}
|
|
187
188
|
},
|
|
188
189
|
emits: ["rate"],
|
|
189
|
-
setup(e, { expose:
|
|
190
|
-
let { vue_ui_smiley:
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
setup(e, { expose: t, emit: a }) {
|
|
191
|
+
let { vue_ui_smiley: d } = l(), f = e, b = k(), E = a, O = w(null);
|
|
192
|
+
S(() => {
|
|
193
|
+
b["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
|
|
193
194
|
});
|
|
194
|
-
function
|
|
195
|
-
(!Object.hasOwn(
|
|
195
|
+
function M() {
|
|
196
|
+
(!Object.hasOwn(f.dataset, "rating") || i(f.dataset)) && o({
|
|
196
197
|
componentName: "VueUiSmiley",
|
|
197
198
|
type: "datasetAttribute",
|
|
198
199
|
property: "rating"
|
|
199
200
|
});
|
|
200
201
|
}
|
|
201
|
-
|
|
202
|
-
let
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
S(M);
|
|
203
|
+
let N = w(F());
|
|
204
|
+
s({
|
|
205
|
+
config: () => N.value,
|
|
206
|
+
dataset: () => [],
|
|
207
|
+
component: "VueUiSmiley",
|
|
208
|
+
rules: [c.noHint]
|
|
209
|
+
});
|
|
210
|
+
let P = m(() => N.value.useCursorPointer);
|
|
211
|
+
function F() {
|
|
212
|
+
return u({
|
|
213
|
+
userConfig: f.config,
|
|
214
|
+
defaultConfig: d
|
|
207
215
|
});
|
|
208
216
|
}
|
|
209
|
-
|
|
210
|
-
|
|
217
|
+
A(() => f.config, (e) => {
|
|
218
|
+
N.value = F(), G.value = N.value.readonly, M();
|
|
211
219
|
}, { deep: !0 });
|
|
212
|
-
let
|
|
213
|
-
let e =
|
|
214
|
-
return e && typeof e == "object" && !Array.isArray(e) ?
|
|
215
|
-
}),
|
|
216
|
-
|
|
217
|
-
|
|
220
|
+
let I = m(() => {
|
|
221
|
+
let e = f.dataset.rating;
|
|
222
|
+
return e && typeof e == "object" && !Array.isArray(e) ? q(e) : e ?? null;
|
|
223
|
+
}), R = m(() => typeof f.dataset.rating == "object" && !Array.isArray(f.dataset.rating)), W = w(I.value);
|
|
224
|
+
A(I, (e) => {
|
|
225
|
+
W.value = e;
|
|
218
226
|
});
|
|
219
|
-
let
|
|
227
|
+
let G = w(N.value.readonly), K = [
|
|
220
228
|
{
|
|
221
229
|
key: "smiley_0",
|
|
222
230
|
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",
|
|
@@ -253,7 +261,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
253
261
|
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"
|
|
254
262
|
}
|
|
255
263
|
];
|
|
256
|
-
function
|
|
264
|
+
function q(e) {
|
|
257
265
|
if (e == null) return null;
|
|
258
266
|
let t = 0, n = 0;
|
|
259
267
|
for (let r in e) {
|
|
@@ -262,85 +270,85 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
262
270
|
}
|
|
263
271
|
return n === 0 ? 0 : t / n;
|
|
264
272
|
}
|
|
265
|
-
function
|
|
266
|
-
let t =
|
|
273
|
+
function J(e) {
|
|
274
|
+
let t = W.value - e;
|
|
267
275
|
switch (!0) {
|
|
268
276
|
case t < 0: return 0;
|
|
269
277
|
case t > 1: return 24;
|
|
270
278
|
default: return t * 24;
|
|
271
279
|
}
|
|
272
280
|
}
|
|
273
|
-
function
|
|
274
|
-
return
|
|
281
|
+
function Y(e) {
|
|
282
|
+
return N.value.readonly ? N.value.style.colors.inactive[e] : W.value === e + 1 || O.value !== null && O.value === e ? N.value.style.icons.useGradient && N.value.style.icons.filled ? `url(#vueUiSmiley${e})` : N.value.style.colors.active[e] : N.value.style.colors.inactive[e];
|
|
275
283
|
}
|
|
276
|
-
let
|
|
284
|
+
let X = m(() => ({ value: e, tooltip: t = !1 }) => r(t ? N.value.style.tooltip.formatter : N.value.style.rating.formatter, e, n({
|
|
277
285
|
v: e,
|
|
278
|
-
r: t ?
|
|
279
|
-
}),
|
|
280
|
-
function
|
|
281
|
-
|
|
286
|
+
r: t ? N.value.style.tooltip.roundingValue : N.value.style.rating.roundingValue
|
|
287
|
+
}), N.value));
|
|
288
|
+
function Z(e) {
|
|
289
|
+
G.value || (W.value = e, E("rate", e));
|
|
282
290
|
}
|
|
283
|
-
function
|
|
284
|
-
return
|
|
291
|
+
function Q() {
|
|
292
|
+
return W.value;
|
|
285
293
|
}
|
|
286
|
-
function
|
|
287
|
-
|
|
294
|
+
function $(e = !0) {
|
|
295
|
+
G.value = e;
|
|
288
296
|
}
|
|
289
|
-
return
|
|
290
|
-
getData:
|
|
291
|
-
toggleReadonly:
|
|
292
|
-
}), (e, t) => (
|
|
297
|
+
return t({
|
|
298
|
+
getData: Q,
|
|
299
|
+
toggleReadonly: $
|
|
300
|
+
}), (e, t) => (C(), g("div", {
|
|
293
301
|
class: "vue-data-ui-component vue-ui-smiley",
|
|
294
|
-
style:
|
|
295
|
-
onMouseleave: t[1] ||= (e) =>
|
|
302
|
+
style: x(`background:${N.value.style.backgroundColor};font-family:${N.value.style.fontFamily};width:100%;`),
|
|
303
|
+
onMouseleave: t[1] ||= (e) => O.value = void 0
|
|
296
304
|
}, [
|
|
297
|
-
|
|
305
|
+
N.value.style.title.text ? (C(), g("div", z, [_("div", { style: x(`color:${N.value.style.title.color};font-weight:${N.value.style.title.bold ? "bold" : "normal"};text-align:${N.value.style.title.textAlign};margin-bottom:${N.value.style.title.offsetY}px;font-size:${N.value.style.title.fontSize}px`) }, D(N.value.style.title.text), 5), N.value.style.title.subtitle.text ? (C(), g("div", {
|
|
298
306
|
key: 0,
|
|
299
|
-
style:
|
|
300
|
-
},
|
|
301
|
-
|
|
307
|
+
style: x(`color:${N.value.style.title.subtitle.color};font-size:${N.value.style.title.subtitle.fontSize}px;text-align:${N.value.style.title.textAlign};margin-bottom:${N.value.style.title.subtitle.offsetY}px;font-weight:${N.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
308
|
+
}, D(N.value.style.title.subtitle.text), 5)) : h("", !0)])) : h("", !0),
|
|
309
|
+
N.value.style.rating.show && N.value.style.rating.position === "top" ? (C(), g("div", {
|
|
302
310
|
key: 1,
|
|
303
|
-
style:
|
|
304
|
-
},
|
|
305
|
-
|
|
311
|
+
style: x(`width:100%;text-align:center;margin-bottom:${N.value.style.rating.offsetY}px;font-size:${N.value.style.rating.fontSize}px;font-weight:${N.value.style.rating.bold ? "bold" : "normal"};margin-left:${N.value.style.rating.offsetX}px`)
|
|
312
|
+
}, D(X.value({ value: W.value })), 5)) : h("", !0),
|
|
313
|
+
_("div", {
|
|
306
314
|
class: "vue-ui-smiley-wrapper",
|
|
307
|
-
style:
|
|
315
|
+
style: x(`overflow:visible;height:${N.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)
|
|
308
316
|
}, [
|
|
309
|
-
|
|
317
|
+
N.value.style.rating.show && N.value.style.rating.position === "left" ? (C(), g("div", {
|
|
310
318
|
key: 0,
|
|
311
|
-
style:
|
|
312
|
-
},
|
|
313
|
-
(
|
|
319
|
+
style: x(`width:fit-content;text-align:center;margin-bottom:${N.value.style.rating.offsetY}px;font-size:${N.value.style.rating.fontSize}px;font-weight:${N.value.style.rating.bold ? "bold" : "normal"};padding-right:${N.value.style.rating.offsetX}px`)
|
|
320
|
+
}, D(X.value({ value: W.value })), 5)) : h("", !0),
|
|
321
|
+
(C(), g(p, null, T(K, (e, n) => y(L, {
|
|
314
322
|
key: e.key,
|
|
315
|
-
config:
|
|
323
|
+
config: N.value,
|
|
316
324
|
unit: n + 1,
|
|
317
|
-
currentRating:
|
|
318
|
-
isReadonly:
|
|
319
|
-
hasBreakdown:
|
|
320
|
-
hoveredValue:
|
|
321
|
-
getActiveColor:
|
|
322
|
-
calcShapeFill:
|
|
323
|
-
isCursorPointer:
|
|
324
|
-
onMouseenter: (e) =>
|
|
325
|
-
onMouseleave: t[0] ||= (e) =>
|
|
326
|
-
onRate: (e) =>
|
|
325
|
+
currentRating: W.value,
|
|
326
|
+
isReadonly: G.value,
|
|
327
|
+
hasBreakdown: R.value,
|
|
328
|
+
hoveredValue: O.value,
|
|
329
|
+
getActiveColor: Y,
|
|
330
|
+
calcShapeFill: J,
|
|
331
|
+
isCursorPointer: P.value,
|
|
332
|
+
onMouseenter: (e) => O.value = n,
|
|
333
|
+
onMouseleave: t[0] ||= (e) => O.value = null,
|
|
334
|
+
onRate: (e) => Z(n + 1)
|
|
327
335
|
}, {
|
|
328
|
-
rating:
|
|
329
|
-
value:
|
|
336
|
+
rating: j(() => [v(D(X.value({
|
|
337
|
+
value: f.dataset.rating[String(n + 1)],
|
|
330
338
|
tooltip: !0
|
|
331
339
|
})), 1)]),
|
|
332
|
-
"path-icon-filled":
|
|
340
|
+
"path-icon-filled": j(() => [_("path", {
|
|
333
341
|
d: e.pathIconFilled,
|
|
334
342
|
"stroke-width": "0",
|
|
335
|
-
fill:
|
|
336
|
-
}, null, 8,
|
|
337
|
-
"path-icon":
|
|
338
|
-
"path-icon-filled-readonly":
|
|
343
|
+
fill: Y(n)
|
|
344
|
+
}, null, 8, B)]),
|
|
345
|
+
"path-icon": j(() => [_("path", { d: e.pathIcon }, null, 8, V)]),
|
|
346
|
+
"path-icon-filled-readonly": j(() => [_("path", {
|
|
339
347
|
d: e.pathIconFilledReadonly,
|
|
340
348
|
"stroke-width": "0",
|
|
341
|
-
fill:
|
|
342
|
-
}, null, 8,
|
|
343
|
-
"path-icon-readonly":
|
|
349
|
+
fill: N.value.style.icons.useGradient ? `url(#vueUiSmiley${n})` : N.value.style.colors.activeReadonly[n]
|
|
350
|
+
}, null, 8, H)]),
|
|
351
|
+
"path-icon-readonly": j(() => [_("path", { d: e.pathIconReadonly }, null, 8, U)]),
|
|
344
352
|
_: 2
|
|
345
353
|
}, 1032, [
|
|
346
354
|
"config",
|
|
@@ -353,17 +361,17 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
|
353
361
|
"onMouseenter",
|
|
354
362
|
"onRate"
|
|
355
363
|
])), 64)),
|
|
356
|
-
|
|
364
|
+
N.value.style.rating.show && N.value.style.rating.position === "right" ? (C(), g("div", {
|
|
357
365
|
key: 1,
|
|
358
|
-
style:
|
|
359
|
-
},
|
|
366
|
+
style: x(`width:fit-content;text-align:center;margin-bottom:${N.value.style.rating.offsetY}px;font-size:${N.value.style.rating.fontSize}px;font-weight:${N.value.style.rating.bold ? "bold" : "normal"};padding-left:${N.value.style.rating.offsetX}px`)
|
|
367
|
+
}, D(X.value({ value: W.value })), 5)) : h("", !0)
|
|
360
368
|
], 4),
|
|
361
|
-
|
|
369
|
+
N.value.style.rating.show && N.value.style.rating.position === "bottom" ? (C(), g("div", {
|
|
362
370
|
key: 2,
|
|
363
|
-
style:
|
|
364
|
-
},
|
|
371
|
+
style: x(`width:100%;text-align:center;margin-top:${N.value.style.rating.offsetY}px;font-size:${N.value.style.rating.fontSize}px;font-weight:${N.value.style.rating.bold ? "bold" : "normal"};margin-left:${N.value.style.rating.offsetX}px`)
|
|
372
|
+
}, D(X.value({ value: W.value })), 5)) : h("", !0)
|
|
365
373
|
], 36));
|
|
366
374
|
}
|
|
367
375
|
};
|
|
368
376
|
//#endregion
|
|
369
|
-
export {
|
|
377
|
+
export { R as n, W as t };
|