vue-data-ui 3.22.14 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
- package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/HillActions-BD9j_sOU.js +187 -0
- package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
- package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
- package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
- package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
- package/dist/Title-BE3qg9xl.js +87 -0
- package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.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/composables.js +1 -1
- package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/exposedLib-C0DPCgFj.js +28 -0
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
- package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.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 +496 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
- package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
- package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
- package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
- package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
- package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
- package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
- package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
- package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
- package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
- package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
- package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
- package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
- package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
- package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
- package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
- package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
- package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
- package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
- package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
- package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
- package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
- package/dist/vue-ui-gauge-ByE_txav.js +953 -0
- package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
- package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
- package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
- package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
- package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
- package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
- package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
- package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
- package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
- package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
- package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
- package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
- package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
- package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
- package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
- package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
- package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
- package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
- package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
- package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
- package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
- package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
- package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
- package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
- package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
- package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
- package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
- package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
- package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
- package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
- package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
- package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
- package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +4 -4
- package/dist/Slicer-JdCzBeYM.js +0 -1149
- package/dist/Title-Thf71-8D.js +0 -87
- package/dist/exposedLib-CfZhN94x.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
- package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
- package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
- package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
- package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
- package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
- package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
- package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
- package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
- package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
- package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
- package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
- package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
- package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
- package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
- package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
- package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
- package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
- package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
- package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
- package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
- package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
- package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
- package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
- package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
- package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
- package/dist/vue-ui-table-DEhy61ln.js +0 -1339
- package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
- package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
- package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
- package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
- package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
|
@@ -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-Bttd6u5E.js";
|
|
3
|
+
import { n as s, t as c } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as l } from "./useConfig-D3scuR88.js";
|
|
5
|
+
import { t as u } from "./useNestedProp-vPNvh7rV.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 };
|