vue-data-ui 3.20.1 → 3.20.2
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/A11yDataTable-BCbtxMU6.js +45 -0
- package/dist/Arrow-D6j6ocXm.js +116 -0
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
- package/dist/BaseIcon-DfLoHNUj.js +502 -0
- package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
- package/dist/BaseScanner-Dr2a1Msy.js +27 -0
- package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
- package/dist/ColorPicker-Bjwxnvfh.js +255 -0
- package/dist/DataTable-B--IN22e.js +150 -0
- package/dist/Legend-Cz2uQ5gs.js +114 -0
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
- package/dist/PackageVersion-f0MuYk3R.js +11 -0
- package/dist/PenAndPaper-DqrClVfb.js +461 -0
- package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
- package/dist/RecursiveLabels-D9rfID6q.js +56 -0
- package/dist/RecursiveLinks-BygcpDiT.js +78 -0
- package/dist/Shape-BPCJfphn.js +141 -0
- package/dist/Slicer-SHBj0VaV.js +1144 -0
- package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
- package/dist/SparkTooltip-CfE6yCad.js +93 -0
- package/dist/Title-NWp4qB4K.js +87 -0
- package/dist/Tooltip-BENq327o.js +312 -0
- package/dist/UserOptions-C1NgoGu6.js +1411 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/canvas-lib-BOP_HS11.js +79 -0
- package/dist/components/arrow.js +2 -0
- package/dist/components/vue-ui-3d-bar.js +2 -0
- package/dist/components/vue-ui-accordion.js +2 -0
- package/dist/components/vue-ui-age-pyramid.js +2 -0
- package/dist/components/vue-ui-annotator.js +2 -0
- package/dist/components/vue-ui-bullet.js +2 -0
- package/dist/components/vue-ui-bump.js +2 -0
- package/dist/components/vue-ui-candlestick.js +2 -0
- package/dist/components/vue-ui-carousel-table.js +2 -0
- package/dist/components/vue-ui-chestnut.js +2 -0
- package/dist/components/vue-ui-chord.js +2 -0
- package/dist/components/vue-ui-circle-pack.js +2 -0
- package/dist/components/vue-ui-cursor.js +2 -0
- package/dist/components/vue-ui-dag.js +2 -0
- package/dist/components/vue-ui-dashboard.js +2 -0
- package/dist/components/vue-ui-digits.js +2 -0
- package/dist/components/vue-ui-donut-evolution.js +2 -0
- package/dist/components/vue-ui-donut.js +2 -0
- package/dist/components/vue-ui-dumbbell.js +2 -0
- package/dist/components/vue-ui-flow.js +2 -0
- package/dist/components/vue-ui-funnel.js +2 -0
- package/dist/components/vue-ui-galaxy.js +2 -0
- package/dist/components/vue-ui-gauge.js +2 -0
- package/dist/components/vue-ui-geo.js +2 -0
- package/dist/components/vue-ui-gizmo.js +2 -0
- package/dist/components/vue-ui-heatmap.js +2 -0
- package/dist/components/vue-ui-history-plot.js +2 -0
- package/dist/components/vue-ui-horizontal-bar.js +2 -0
- package/dist/components/vue-ui-icon.js +2 -0
- package/dist/components/vue-ui-kpi.js +2 -0
- package/dist/components/vue-ui-mini-loader.js +2 -0
- package/dist/components/vue-ui-molecule.js +2 -0
- package/dist/components/vue-ui-mood-radar.js +2 -0
- package/dist/components/vue-ui-nested-donuts.js +2 -0
- package/dist/components/vue-ui-onion.js +2 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
- package/dist/components/vue-ui-pattern-seed.js +2 -0
- package/dist/components/vue-ui-pattern.js +2 -0
- package/dist/components/vue-ui-quadrant.js +2 -0
- package/dist/components/vue-ui-quick-chart.js +2 -0
- package/dist/components/vue-ui-radar.js +2 -0
- package/dist/components/vue-ui-rating.js +2 -0
- package/dist/components/vue-ui-relation-circle.js +2 -0
- package/dist/components/vue-ui-ridgeline.js +2 -0
- package/dist/components/vue-ui-rings.js +2 -0
- package/dist/components/vue-ui-scatter.js +2 -0
- package/dist/components/vue-ui-skeleton.js +2 -0
- package/dist/components/vue-ui-smiley.js +2 -0
- package/dist/components/vue-ui-spark-trend.js +2 -0
- package/dist/components/vue-ui-sparkbar.js +2 -0
- package/dist/components/vue-ui-sparkgauge.js +2 -0
- package/dist/components/vue-ui-sparkhistogram.js +2 -0
- package/dist/components/vue-ui-sparkline.js +2 -0
- package/dist/components/vue-ui-sparkstackbar.js +2 -0
- package/dist/components/vue-ui-stackbar.js +2 -0
- package/dist/components/vue-ui-stackline.js +2 -0
- package/dist/components/vue-ui-strip-plot.js +2 -0
- package/dist/components/vue-ui-table-heatmap.js +2 -0
- package/dist/components/vue-ui-table-sparkline.js +2 -0
- package/dist/components/vue-ui-table.js +2 -0
- package/dist/components/vue-ui-thermometer.js +2 -0
- package/dist/components/vue-ui-timer.js +2 -0
- package/dist/components/vue-ui-tiremarks.js +2 -0
- package/dist/components/vue-ui-treemap.js +2 -0
- package/dist/components/vue-ui-vertical-bar.js +2 -0
- package/dist/components/vue-ui-waffle.js +2 -0
- package/dist/components/vue-ui-wheel.js +2 -0
- package/dist/components/vue-ui-word-cloud.js +2 -0
- package/dist/components/vue-ui-world.js +2 -0
- package/dist/components/vue-ui-xy-canvas.js +2 -0
- package/dist/components/vue-ui-xy.js +2 -0
- package/dist/dom-to-png-BYtB4BF3.js +237 -0
- package/dist/exposedLib-CI8ji8G-.js +19 -0
- package/dist/geoProjections-Czak6Jn1.js +145 -0
- package/dist/img-1cKsci8e.js +74 -0
- package/dist/labelUtils-CUctkYoA.js +19 -0
- package/dist/lib-DUeYQsS0.js +1882 -0
- package/dist/llms.txt +232 -0
- package/dist/patternUtils-CS7hn6at.js +258 -0
- package/dist/pdf-D0eZ99cP.js +90 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/style.css +2 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/utils.d.ts +551 -0
- package/dist/types/vue-data-ui.d.ts +17190 -0
- package/dist/types/vue-ui-3d-bar.d.ts +93 -0
- package/dist/types/vue-ui-accordion.d.ts +11 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
- package/dist/types/vue-ui-annotator.d.ts +34 -0
- package/dist/types/vue-ui-bullet.d.ts +85 -0
- package/dist/types/vue-ui-bump.d.ts +92 -0
- package/dist/types/vue-ui-candlestick.d.ts +106 -0
- package/dist/types/vue-ui-carousel-table.d.ts +59 -0
- package/dist/types/vue-ui-chestnut.d.ts +98 -0
- package/dist/types/vue-ui-chord.d.ts +110 -0
- package/dist/types/vue-ui-circle-pack.d.ts +126 -0
- package/dist/types/vue-ui-cursor.d.ts +9 -0
- package/dist/types/vue-ui-dag.d.ts +125 -0
- package/dist/types/vue-ui-dashboard.d.ts +68 -0
- package/dist/types/vue-ui-digits.d.ts +12 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +96 -0
- package/dist/types/vue-ui-donut.d.ts +123 -0
- package/dist/types/vue-ui-dumbbell.d.ts +94 -0
- package/dist/types/vue-ui-flow.d.ts +106 -0
- package/dist/types/vue-ui-funnel.d.ts +79 -0
- package/dist/types/vue-ui-galaxy.d.ts +114 -0
- package/dist/types/vue-ui-gauge.d.ts +89 -0
- package/dist/types/vue-ui-geo.d.ts +94 -0
- package/dist/types/vue-ui-gizmo.d.ts +22 -0
- package/dist/types/vue-ui-heatmap.d.ts +101 -0
- package/dist/types/vue-ui-history-plot.d.ts +114 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
- package/dist/types/vue-ui-icon.d.ts +15 -0
- package/dist/types/vue-ui-kpi.d.ts +25 -0
- package/dist/types/vue-ui-mini-loader.d.ts +15 -0
- package/dist/types/vue-ui-molecule.d.ts +112 -0
- package/dist/types/vue-ui-mood-radar.d.ts +92 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
- package/dist/types/vue-ui-onion.d.ts +106 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +15 -0
- package/dist/types/vue-ui-quadrant.d.ts +125 -0
- package/dist/types/vue-ui-quick-chart.d.ts +108 -0
- package/dist/types/vue-ui-radar.d.ts +116 -0
- package/dist/types/vue-ui-rating.d.ts +42 -0
- package/dist/types/vue-ui-relation-circle.d.ts +92 -0
- package/dist/types/vue-ui-ridgeline.d.ts +106 -0
- package/dist/types/vue-ui-rings.d.ts +98 -0
- package/dist/types/vue-ui-scatter.d.ts +97 -0
- package/dist/types/vue-ui-skeleton.d.ts +11 -0
- package/dist/types/vue-ui-smiley.d.ts +28 -0
- package/dist/types/vue-ui-spark-trend.d.ts +19 -0
- package/dist/types/vue-ui-sparkbar.d.ts +49 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
- package/dist/types/vue-ui-sparkline.d.ts +59 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
- package/dist/types/vue-ui-stackbar.d.ts +118 -0
- package/dist/types/vue-ui-stackline.d.ts +114 -0
- package/dist/types/vue-ui-strip-plot.d.ts +96 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
- package/dist/types/vue-ui-table.d.ts +38 -0
- package/dist/types/vue-ui-thermometer.d.ts +70 -0
- package/dist/types/vue-ui-timer.d.ts +49 -0
- package/dist/types/vue-ui-tiremarks.d.ts +70 -0
- package/dist/types/vue-ui-treemap.d.ts +104 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
- package/dist/types/vue-ui-waffle.d.ts +101 -0
- package/dist/types/vue-ui-wheel.d.ts +70 -0
- package/dist/types/vue-ui-word-cloud.d.ts +97 -0
- package/dist/types/vue-ui-world.d.ts +98 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
- package/dist/types/vue-ui-xy.d.ts +146 -0
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
- package/dist/useChartAccessibility-DYqac8yF.js +12 -0
- package/dist/useConfig-DAyQk86L.js +7479 -0
- package/dist/useFitSvgText-CT3nmlaS.js +63 -0
- package/dist/useNestedProp-CNcoy38D.js +10 -0
- package/dist/useObjectBindings-BI7hP-BC.js +189 -0
- package/dist/usePanZoom-CYU3B4T3.js +157 -0
- package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
- package/dist/usePrinter-C1Gqt_Sp.js +49 -0
- package/dist/useResponsive-BfnK0KxU.js +19 -0
- package/dist/useStableElementSize-C7KADDKj.js +77 -0
- package/dist/useSvgExport-SVIsDot8.js +755 -0
- package/dist/useTableResponsive-B24Uwt2E.js +24 -0
- package/dist/useThemeCheck-C43Tcqmk.js +24 -0
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
- package/dist/useTimeLabels-BmBRv27Y.js +272 -0
- package/dist/useUserOptionState-DK-_1ddE.js +15 -0
- package/dist/utils.js +28 -0
- package/dist/vClickOutside-DUrZWttG.js +13 -0
- package/dist/vue-data-ui-C3m9eNp0.js +274 -0
- package/dist/vue-data-ui.js +76 -0
- package/dist/vue-ui-3d-bar-Bfcitq55.js +1757 -0
- package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
- package/dist/vue-ui-age-pyramid-Dgzd45Ol.js +1238 -0
- package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
- package/dist/vue-ui-bullet-DAeyHSHC.js +710 -0
- package/dist/vue-ui-bump-DsiXfIFL.js +1249 -0
- package/dist/vue-ui-candlestick-BadEBUcF.js +1826 -0
- package/dist/vue-ui-carousel-table-_LCF7RFm.js +455 -0
- package/dist/vue-ui-chestnut-BTuAvc7L.js +2010 -0
- package/dist/vue-ui-chord-CAyRIJlh.js +1391 -0
- package/dist/vue-ui-circle-pack-BWzwg8Qb.js +1608 -0
- package/dist/vue-ui-cursor-C6t7nAT4.js +283 -0
- package/dist/vue-ui-dag-8Puv77-a.js +2909 -0
- package/dist/vue-ui-dashboard-CXDvRu27.js +513 -0
- package/dist/vue-ui-digits-BlHqILF0.js +209 -0
- package/dist/vue-ui-donut-CclzduCs.js +2410 -0
- package/dist/vue-ui-donut-evolution-DEfY2Zvy.js +1510 -0
- package/dist/vue-ui-dumbbell-BG5C4Hdg.js +1530 -0
- package/dist/vue-ui-flow-B73dHBrL.js +1235 -0
- package/dist/vue-ui-funnel-Bn3c5lWX.js +777 -0
- package/dist/vue-ui-galaxy-eBY55Fue.js +1077 -0
- package/dist/vue-ui-gauge-s8pl305B.js +920 -0
- package/dist/vue-ui-geo-Ca2ZPVhH.js +1516 -0
- package/dist/vue-ui-gizmo-CBNDeAzT.js +225 -0
- package/dist/vue-ui-heatmap-V79kNqUi.js +1568 -0
- package/dist/vue-ui-history-plot-jiJh8oaM.js +1554 -0
- package/dist/vue-ui-horizontal-bar-60b88qqU.js +1681 -0
- package/dist/vue-ui-kpi-DnfazUeY.js +96 -0
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
- package/dist/vue-ui-molecule-BeIVS2yp.js +925 -0
- package/dist/vue-ui-mood-radar-DHY1ry9I.js +1148 -0
- package/dist/vue-ui-nested-donuts-GNR6O-Z_.js +1487 -0
- package/dist/vue-ui-onion-DghkeKRu.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DqfRRSnD.js +1416 -0
- package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
- package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
- package/dist/vue-ui-quadrant-BBucQ_8r.js +1978 -0
- package/dist/vue-ui-quick-chart-DxxGq-5d.js +2469 -0
- package/dist/vue-ui-radar-B0gW_Iur.js +1229 -0
- package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
- package/dist/vue-ui-relation-circle-C-fNOxJM.js +924 -0
- package/dist/vue-ui-ridgeline-CzDR20s3.js +1622 -0
- package/dist/vue-ui-rings-DNRdTVqV.js +1246 -0
- package/dist/vue-ui-scatter-CRgFebuE.js +2413 -0
- package/dist/vue-ui-skeleton-iNzRGgRn.js +2556 -0
- package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
- package/dist/vue-ui-spark-trend-CPgTOFNY.js +438 -0
- package/dist/vue-ui-sparkbar-B4C_YxU-.js +393 -0
- package/dist/vue-ui-sparkgauge-DDkSKiba.js +255 -0
- package/dist/vue-ui-sparkhistogram-qtb6-Th8.js +560 -0
- package/dist/vue-ui-sparkline-TTSEEs7R.js +1507 -0
- package/dist/vue-ui-sparkstackbar-DXEnV79Y.js +662 -0
- package/dist/vue-ui-stackbar-CwFVpEgH.js +2270 -0
- package/dist/vue-ui-stackline-Bph0kD43.js +2398 -0
- package/dist/vue-ui-strip-plot-D2_WSwTF.js +1340 -0
- package/dist/vue-ui-table-BzmQMHxi.js +1338 -0
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
- package/dist/vue-ui-table-sparkline-CXNxbqIw.js +707 -0
- package/dist/vue-ui-thermometer-Cqw2_Jpi.js +763 -0
- package/dist/vue-ui-timer-BHP_5wgz.js +439 -0
- package/dist/vue-ui-tiremarks-D8wFTxXl.js +552 -0
- package/dist/vue-ui-treemap-DbSebes7.js +1587 -0
- package/dist/vue-ui-waffle-CAIBpbY0.js +1362 -0
- package/dist/vue-ui-wheel-B5Cyopnp.js +885 -0
- package/dist/vue-ui-word-cloud-BaGDKrKL.js +1656 -0
- package/dist/vue-ui-world-DLcVBwLg.js +14264 -0
- package/dist/vue-ui-xy-CyP5FAo8.js +4578 -0
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
- package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
- package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
- package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
- package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
- package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
- package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
- package/dist/vue_ui_donut-BDGqG07h.js +358 -0
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
- package/dist/vue_ui_flow-BewZjjKG.js +238 -0
- package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
- package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
- package/dist/vue_ui_geo-B8TODs-G.js +248 -0
- package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
- package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
- package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
- package/dist/vue_ui_onion-1FTFFS46.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
- package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
- package/dist/vue_ui_radar-jafTED5j.js +306 -0
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
- package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
- package/dist/vue_ui_scatter-I0POnicu.js +479 -0
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
- package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
- package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
- package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
- package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
- package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
- package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
- package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
- package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
- package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
- package/package.json +120 -120
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Ct as t, G as n, H as r, Nt as i, P as a, X as o, i as s, t as c } from "./lib-DUeYQsS0.js";
|
|
3
|
+
import { t as l } from "./useConfig-DAyQk86L.js";
|
|
4
|
+
import { t as u } from "./useNestedProp-CNcoy38D.js";
|
|
5
|
+
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
+
import { Fragment as f, computed as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, mergeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as ee, renderSlot as S, toDisplayString as C, unref as w, useSlots as te, watch as ne, withKeys as re } from "vue";
|
|
7
|
+
//#region src/components/vue-ui-rating.vue
|
|
8
|
+
var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "vue-ui-rating-title",
|
|
11
|
+
style: { width: "100%" }
|
|
12
|
+
}, E = {
|
|
13
|
+
key: 0,
|
|
14
|
+
style: { position: "relative" }
|
|
15
|
+
}, D = {
|
|
16
|
+
key: 0,
|
|
17
|
+
style: {
|
|
18
|
+
position: "absolute",
|
|
19
|
+
top: "0",
|
|
20
|
+
left: "0",
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: "100%"
|
|
23
|
+
}
|
|
24
|
+
}, O = {
|
|
25
|
+
key: 1,
|
|
26
|
+
style: {
|
|
27
|
+
position: "absolute",
|
|
28
|
+
top: "0",
|
|
29
|
+
left: "0",
|
|
30
|
+
width: "100%",
|
|
31
|
+
height: "100%"
|
|
32
|
+
}
|
|
33
|
+
}, ae = [
|
|
34
|
+
"src",
|
|
35
|
+
"height",
|
|
36
|
+
"width"
|
|
37
|
+
], oe = [
|
|
38
|
+
"xmlns",
|
|
39
|
+
"height",
|
|
40
|
+
"width"
|
|
41
|
+
], se = ["id"], ce = ["stop-color"], le = ["stop-color"], ue = [
|
|
42
|
+
"points",
|
|
43
|
+
"fill",
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width"
|
|
46
|
+
], de = [
|
|
47
|
+
"src",
|
|
48
|
+
"alt",
|
|
49
|
+
"height",
|
|
50
|
+
"width",
|
|
51
|
+
"id"
|
|
52
|
+
], k = [
|
|
53
|
+
"xmlns",
|
|
54
|
+
"viewBox",
|
|
55
|
+
"height",
|
|
56
|
+
"id"
|
|
57
|
+
], A = ["id"], j = ["stop-color"], M = ["stop-color"], N = [
|
|
58
|
+
"points",
|
|
59
|
+
"fill",
|
|
60
|
+
"stroke"
|
|
61
|
+
], P = ["xmlns", "height"], F = [
|
|
62
|
+
"onClick",
|
|
63
|
+
"onMouseenter",
|
|
64
|
+
"onFocus",
|
|
65
|
+
"onKeyup"
|
|
66
|
+
], I = ["onMouseenter", "onFocus"], L = /* @__PURE__ */ d({
|
|
67
|
+
__name: "vue-ui-rating",
|
|
68
|
+
props: {
|
|
69
|
+
config: {
|
|
70
|
+
type: Object,
|
|
71
|
+
default() {
|
|
72
|
+
return {};
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
dataset: {
|
|
76
|
+
type: Object,
|
|
77
|
+
default() {
|
|
78
|
+
return {};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
emits: ["rate"],
|
|
83
|
+
setup(e, { expose: d, emit: T }) {
|
|
84
|
+
let { vue_ui_rating: L } = l(), R = e, z = x(r()), B = x(!1), V = x(void 0), H = x(void 0), U = x([]), W = te();
|
|
85
|
+
y(() => {
|
|
86
|
+
W["chart-background"] && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
87
|
+
});
|
|
88
|
+
let fe = T, G = p({
|
|
89
|
+
get: () => K(),
|
|
90
|
+
set: (e) => e
|
|
91
|
+
}), pe = p(() => G.value.useCursorPointer);
|
|
92
|
+
function K() {
|
|
93
|
+
return u({
|
|
94
|
+
userConfig: R.config,
|
|
95
|
+
defaultConfig: L
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
ne(() => R.config, (e) => {
|
|
99
|
+
G.value = K(), X();
|
|
100
|
+
}, { deep: !0 });
|
|
101
|
+
let me = p(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating) ? ge(R.dataset.rating) : R.dataset.rating), he = p(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating)), q = x(me.value), J = p(() => G.value.type === "image"), Y = p(() => G.value.readonly);
|
|
102
|
+
function ge(e) {
|
|
103
|
+
let t = 0, n = 0;
|
|
104
|
+
for (let r in e) {
|
|
105
|
+
let i = parseInt(r), a = e[r];
|
|
106
|
+
t += i * a, n += a;
|
|
107
|
+
}
|
|
108
|
+
if (n === 0) return 0;
|
|
109
|
+
let r = t / n;
|
|
110
|
+
return Math.min(G.value.to, Math.max(G.value.from, r));
|
|
111
|
+
}
|
|
112
|
+
y(() => {
|
|
113
|
+
X();
|
|
114
|
+
});
|
|
115
|
+
function X() {
|
|
116
|
+
(!Object.hasOwn(R.dataset, "rating") || t(R.dataset)) && o({
|
|
117
|
+
componentName: "VueUiRating",
|
|
118
|
+
type: "datasetAttribute",
|
|
119
|
+
property: "rating"
|
|
120
|
+
}), U.value = [];
|
|
121
|
+
for (let e = G.value.from; e <= G.value.to; e += 1) U.value.push(e);
|
|
122
|
+
}
|
|
123
|
+
function Z(e, t = !1) {
|
|
124
|
+
return e > V.value || Y.value ? t ? G.value.style.image.inactiveOpacity : G.value.style.star.inactiveColor : t ? 1 : G.value.style.star.useGradient ? `url(#star_gradient_under_${z.value})` : G.value.style.star.activeColor;
|
|
125
|
+
}
|
|
126
|
+
function Q(e, t = !1) {
|
|
127
|
+
let n = q.value - e, r = t ? 1 : 100;
|
|
128
|
+
switch (!0) {
|
|
129
|
+
case n <= 0: return .001;
|
|
130
|
+
case n > 1: return 1 * r;
|
|
131
|
+
default: return n * r;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
function $(e) {
|
|
135
|
+
Y.value || (q.value = e, fe("rate", e));
|
|
136
|
+
}
|
|
137
|
+
function _e() {
|
|
138
|
+
return q.value;
|
|
139
|
+
}
|
|
140
|
+
function ve(e = !0) {
|
|
141
|
+
Y.value = e;
|
|
142
|
+
}
|
|
143
|
+
return d({
|
|
144
|
+
getData: _e,
|
|
145
|
+
toggleReadonly: ve
|
|
146
|
+
}), (e, t) => (b(), h("div", {
|
|
147
|
+
style: v(`background:${G.value.style.backgroundColor};font-family:${G.value.style.fontFamily};width:100%`),
|
|
148
|
+
class: "vue-data-ui-component vue-ui-rating",
|
|
149
|
+
onMouseover: t[4] ||= (e) => B.value = !0,
|
|
150
|
+
onMouseleave: t[5] ||= (e) => {
|
|
151
|
+
B.value = !1, V.value = void 0;
|
|
152
|
+
}
|
|
153
|
+
}, [
|
|
154
|
+
G.value.style.title.text ? (b(), h("div", ie, [g("div", { style: v(`color:${G.value.style.title.color};font-weight:${G.value.style.title.bold ? "bold" : "normal"};text-align:${G.value.style.title.textAlign};margin-bottom:${G.value.style.title.offsetY}px;font-size:${G.value.style.title.fontSize}px`) }, C(G.value.style.title.text), 5), G.value.style.title.subtitle.text ? (b(), h("div", {
|
|
155
|
+
key: 0,
|
|
156
|
+
style: v(`color:${G.value.style.title.subtitle.color};font-size:${G.value.style.title.subtitle.fontSize}px;text-align:${G.value.style.title.textAlign};margin-bottom:${G.value.style.title.subtitle.offsetY}px;font-weight:${G.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
157
|
+
}, C(G.value.style.title.subtitle.text), 5)) : m("", !0)])) : m("", !0),
|
|
158
|
+
G.value.style.rating.show && G.value.style.rating.position === "top" ? (b(), h("div", {
|
|
159
|
+
key: 1,
|
|
160
|
+
style: v(`width:100%;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};margin-left:${G.value.style.rating.offsetX}px`)
|
|
161
|
+
}, C(w(s)(G.value.style.rating.formatter, q.value, w(n)({
|
|
162
|
+
v: q.value,
|
|
163
|
+
r: G.value.style.rating.roundingValue
|
|
164
|
+
}), G.value)), 5)) : m("", !0),
|
|
165
|
+
g("div", {
|
|
166
|
+
class: "vue-ui-rating-wrapper",
|
|
167
|
+
style: v(`height:${G.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
|
|
168
|
+
}, [
|
|
169
|
+
G.value.style.rating.show && G.value.style.rating.position === "left" ? (b(), h("div", {
|
|
170
|
+
key: 0,
|
|
171
|
+
style: v(`width:fit-content;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};padding-right:${G.value.style.rating.offsetX}px`)
|
|
172
|
+
}, C(w(s)(G.value.style.rating.formatter, q.value, w(n)({
|
|
173
|
+
v: q.value,
|
|
174
|
+
r: G.value.style.rating.roundingValue
|
|
175
|
+
}), G.value)), 5)) : m("", !0),
|
|
176
|
+
(b(!0), h(f, null, ee(U.value, (r, o) => (b(), h("div", {
|
|
177
|
+
class: "vue-ui-rating-unit-container",
|
|
178
|
+
style: v(`position:relative;height:${G.value.style.itemSize}px;width:${G.value.style.itemSize}px`)
|
|
179
|
+
}, [
|
|
180
|
+
e.$slots["layer-under"] || e.$slots["layer-above"] ? (b(), h("div", E, [e.$slots["layer-under"] ? (b(), h("div", D, [S(e.$slots, "layer-under", _({ ref_for: !0 }, {
|
|
181
|
+
value: r,
|
|
182
|
+
size: G.value.style.itemSize,
|
|
183
|
+
hoveredValue: V.value,
|
|
184
|
+
focusedValue: H.value
|
|
185
|
+
}), void 0, !0)])) : m("", !0), e.$slots["layer-above"] ? (b(), h("div", O, [S(e.$slots, "layer-above", _({ ref_for: !0 }, {
|
|
186
|
+
value: r,
|
|
187
|
+
size: G.value.style.itemSize,
|
|
188
|
+
hoveredValue: V.value,
|
|
189
|
+
focusedValue: H.value
|
|
190
|
+
}), void 0, !0)])) : m("", !0)])) : (b(), h(f, { key: 1 }, [J.value ? (b(), h("img", {
|
|
191
|
+
key: 0,
|
|
192
|
+
src: G.value.style.image.src,
|
|
193
|
+
height: G.value.style.itemSize,
|
|
194
|
+
width: G.value.style.itemSize,
|
|
195
|
+
class: "vue-ui-rating-unit",
|
|
196
|
+
style: v(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? G.value.style.image.inactiveOpacity : Z(r, !0)}`)
|
|
197
|
+
}, null, 12, ae)) : (b(), h("svg", {
|
|
198
|
+
key: 1,
|
|
199
|
+
xmlns: w(c),
|
|
200
|
+
viewBox: "0 0 100 100",
|
|
201
|
+
height: G.value.style.itemSize,
|
|
202
|
+
width: G.value.style.itemSize,
|
|
203
|
+
class: "vue-ui-rating-unit"
|
|
204
|
+
}, [g("defs", null, [g("radialGradient", {
|
|
205
|
+
cx: "50%",
|
|
206
|
+
cy: "50%",
|
|
207
|
+
r: "50%",
|
|
208
|
+
fx: "50%",
|
|
209
|
+
fy: "50%",
|
|
210
|
+
id: `star_gradient_under_${z.value}`
|
|
211
|
+
}, [g("stop", {
|
|
212
|
+
offset: "0%",
|
|
213
|
+
"stop-color": `${w(i)(G.value.style.star.activeColor, .05)}`
|
|
214
|
+
}, null, 8, ce), g("stop", {
|
|
215
|
+
offset: "100%",
|
|
216
|
+
"stop-color": G.value.style.star.activeColor
|
|
217
|
+
}, null, 8, le)], 8, se)]), g("polygon", {
|
|
218
|
+
points: w(a)({
|
|
219
|
+
plot: {
|
|
220
|
+
x: 50,
|
|
221
|
+
y: 50
|
|
222
|
+
},
|
|
223
|
+
radius: 30,
|
|
224
|
+
apexes: G.value.style.star.apexes
|
|
225
|
+
}),
|
|
226
|
+
fill: isNaN(V.value) ? G.value.style.star.inactiveColor : Z(r),
|
|
227
|
+
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : V.value ? Z(r) : G.value.style.star.inactiveColor,
|
|
228
|
+
"stroke-width": G.value.style.star.borderWidth,
|
|
229
|
+
"stroke-linecap": "round",
|
|
230
|
+
"stroke-linejoin": "round"
|
|
231
|
+
}, null, 8, ue)], 8, oe)), J.value ? (b(), h("img", {
|
|
232
|
+
key: 2,
|
|
233
|
+
src: G.value.style.image.src,
|
|
234
|
+
alt: `${G.value.style.image.alt} ${r}`,
|
|
235
|
+
height: G.value.style.itemSize,
|
|
236
|
+
width: G.value.style.itemSize,
|
|
237
|
+
id: `active_${z.value}_${r}`,
|
|
238
|
+
class: "vue-ui-rating-unit",
|
|
239
|
+
style: v(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * G.value.style.itemSize}px,${G.value.style.itemSize}px,0px`)
|
|
240
|
+
}, null, 12, de)) : (b(), h("svg", {
|
|
241
|
+
key: 3,
|
|
242
|
+
xmlns: w(c),
|
|
243
|
+
viewBox: `0 0 ${Q(o)} 100`,
|
|
244
|
+
height: G.value.style.itemSize,
|
|
245
|
+
class: "vue-ui-rating-unit",
|
|
246
|
+
id: `active_${z.value}_${r}`,
|
|
247
|
+
style: {
|
|
248
|
+
position: "absolute",
|
|
249
|
+
top: "0",
|
|
250
|
+
left: "0"
|
|
251
|
+
}
|
|
252
|
+
}, [g("defs", null, [g("radialGradient", {
|
|
253
|
+
cx: "50%",
|
|
254
|
+
cy: "50%",
|
|
255
|
+
r: "50%",
|
|
256
|
+
fx: "50%",
|
|
257
|
+
fy: "50%",
|
|
258
|
+
id: `star_gradient_over_${z.value}`
|
|
259
|
+
}, [g("stop", {
|
|
260
|
+
offset: "0%",
|
|
261
|
+
"stop-color": `${w(i)(G.value.style.star.activeColor, .05)}`
|
|
262
|
+
}, null, 8, j), g("stop", {
|
|
263
|
+
offset: "100%",
|
|
264
|
+
"stop-color": G.value.style.star.activeColor
|
|
265
|
+
}, null, 8, M)], 8, A)]), g("polygon", {
|
|
266
|
+
points: w(a)({
|
|
267
|
+
plot: {
|
|
268
|
+
x: 50,
|
|
269
|
+
y: 50
|
|
270
|
+
},
|
|
271
|
+
radius: 30,
|
|
272
|
+
apexes: G.value.style.star.apexes
|
|
273
|
+
}),
|
|
274
|
+
fill: G.value.style.star.useGradient ? `url(#star_gradient_over_${z.value})` : G.value.style.star.activeColor,
|
|
275
|
+
stroke: G.value.style.star.activeColor
|
|
276
|
+
}, null, 8, N)], 8, k))], 64)),
|
|
277
|
+
(b(), h("svg", {
|
|
278
|
+
xmlns: w(c),
|
|
279
|
+
viewBox: "0 0 100 100",
|
|
280
|
+
height: G.value.style.itemSize,
|
|
281
|
+
class: "vue-ui-rating-unit",
|
|
282
|
+
style: v(`position:absolute;top:0;left:0;${Y.value ? "" : pe.value ? "cursor:pointer" : ""}`)
|
|
283
|
+
}, [Y.value ? m("", !0) : (b(), h("rect", {
|
|
284
|
+
key: 0,
|
|
285
|
+
class: "vue-ui-rating-mouse-trap",
|
|
286
|
+
x: 0,
|
|
287
|
+
y: 0,
|
|
288
|
+
width: 100,
|
|
289
|
+
height: 100,
|
|
290
|
+
fill: "transparent",
|
|
291
|
+
onClick: (e) => $(r),
|
|
292
|
+
onMouseenter: (e) => V.value = r,
|
|
293
|
+
onMouseleave: t[0] ||= (e) => V.value = void 0,
|
|
294
|
+
onFocus: (e) => H.value = r,
|
|
295
|
+
onBlur: t[1] ||= (e) => H.value = void 0,
|
|
296
|
+
tabindex: "0",
|
|
297
|
+
onKeyup: re((e) => $(r), ["enter"])
|
|
298
|
+
}, null, 40, F)), Y.value ? (b(), h("rect", {
|
|
299
|
+
key: 1,
|
|
300
|
+
class: "vue-ui-rating-mouse-trap",
|
|
301
|
+
x: 0,
|
|
302
|
+
y: 0,
|
|
303
|
+
width: 100,
|
|
304
|
+
height: 100,
|
|
305
|
+
fill: "transparent",
|
|
306
|
+
onMouseenter: (e) => V.value = r,
|
|
307
|
+
onMouseleave: t[2] ||= (e) => V.value = void 0,
|
|
308
|
+
onFocus: (e) => H.value = r,
|
|
309
|
+
onBlur: t[3] ||= (e) => H.value = void 0
|
|
310
|
+
}, null, 40, I)) : m("", !0)], 12, P)),
|
|
311
|
+
G.value.style.tooltip.show && he.value && Y.value ? (b(), h("div", {
|
|
312
|
+
key: 2,
|
|
313
|
+
class: "vue-ui-rating-tooltip",
|
|
314
|
+
style: v(`border:1px solid ${G.value.style.tooltip.borderColor};position:absolute;top:${-48 + G.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.style.tooltip.backgroundColor};display:${V.value === r ? "block" : "none"};padding:2px 12px;border-radius:${G.value.style.tooltip.borderRadius}px;box-shadow:${G.value.style.tooltip.boxShadow}`)
|
|
315
|
+
}, [g("div", { style: v(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.style.tooltip.color}`) }, [
|
|
316
|
+
g("span", { style: v(`font-size:${G.value.style.tooltip.fontSize}px`) }, C(r) + ":", 5),
|
|
317
|
+
g("span", { style: v(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, C(w(s)(G.value.style.tooltip.formatter, R.dataset.rating[r], w(n)({
|
|
318
|
+
v: R.dataset.rating[r],
|
|
319
|
+
r: G.value.style.tooltip.roundingValue
|
|
320
|
+
}), G.value)), 5),
|
|
321
|
+
g("div", { style: v(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${G.value.style.tooltip.borderColor}`) }, " ▼ ", 4)
|
|
322
|
+
], 4)], 4)) : m("", !0)
|
|
323
|
+
], 4))), 256)),
|
|
324
|
+
G.value.style.rating.show && G.value.style.rating.position === "right" ? (b(), h("div", {
|
|
325
|
+
key: 1,
|
|
326
|
+
style: v(`width:fit-content;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};padding-left:${G.value.style.rating.offsetX}px`)
|
|
327
|
+
}, C(w(s)(G.value.style.rating.formatter, q.value, w(n)({
|
|
328
|
+
v: q.value,
|
|
329
|
+
r: G.value.style.rating.roundingValue
|
|
330
|
+
}), G.value)), 5)) : m("", !0)
|
|
331
|
+
], 4),
|
|
332
|
+
G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (b(), h("div", {
|
|
333
|
+
key: 2,
|
|
334
|
+
style: v(`width:100%;text-align:center;margin-top:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};margin-left:${G.value.style.rating.offsetX}px`)
|
|
335
|
+
}, C(w(s)(G.value.style.rating.formatter, q.value, w(n)({
|
|
336
|
+
v: q.value,
|
|
337
|
+
r: G.value.style.rating.roundingValue
|
|
338
|
+
}), G.value)), 5)) : m("", !0)
|
|
339
|
+
], 36));
|
|
340
|
+
}
|
|
341
|
+
}, [["__scopeId", "data-v-75c80ffe"]]);
|
|
342
|
+
//#endregion
|
|
343
|
+
export { T as n, L as t };
|