vue-data-ui 2.6.47 → 2.6.48
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/{Arrow-Dvz6Z2gU.js → Arrow-DeHvznlG.js} +1 -1
- package/dist/{Arrow-CRrMt_zT.cjs → Arrow-jh252AWJ.cjs} +1 -1
- package/dist/{BaseIcon-CEgQPz8O.js → BaseIcon-CZ5jKnR9.js} +8 -3
- package/dist/{BaseIcon-DoqpR480.cjs → BaseIcon-DWuVl2GU.cjs} +1 -1
- package/dist/{ColorPicker-DwezDvSV.js → ColorPicker-BRTL96G8.js} +3 -3
- package/dist/{ColorPicker-Bp_7FV2c.cjs → ColorPicker-yVPblb7p.cjs} +1 -1
- package/dist/{DataTable-751-cN2c.js → DataTable-BgfkOnBv.js} +2 -2
- package/dist/{DataTable-D_Guh5Hf.cjs → DataTable-zudSEeN9.cjs} +1 -1
- package/dist/{Legend-CepYsC9r.cjs → Legend-B0HXtacF.cjs} +1 -1
- package/dist/{Legend-BG9fLat9.js → Legend-cMLffIlh.js} +2 -2
- package/dist/{PackageVersion-D8T0gm3t.cjs → PackageVersion-C6rcQig3.cjs} +1 -1
- package/dist/{PackageVersion-SrpgZayt.js → PackageVersion-D4qZn7kl.js} +1 -1
- package/dist/{PenAndPaper-jnD991LP.js → PenAndPaper-BAQpQDGa.js} +3 -3
- package/dist/{PenAndPaper-BJ6gGBM2.cjs → PenAndPaper-DrtaW-dp.cjs} +1 -1
- package/dist/{Shape-BaijOBYT.js → Shape-CsDyTgir.js} +1 -1
- package/dist/{Shape-og7-ULyN.cjs → Shape-DllpVFvn.cjs} +1 -1
- package/dist/{Slicer-B4ZDkwnQ.cjs → Slicer-BlR2F0u2.cjs} +1 -1
- package/dist/{Slicer-COHzItjq.js → Slicer-msNNVisO.js} +2 -2
- package/dist/{Title-BUnn57ZR.cjs → Title-BMptuaY_.cjs} +1 -1
- package/dist/{Title-DMhhB9yN.js → Title-CzrNFvru.js} +1 -1
- package/dist/{Tooltip-DJtOxx2P.cjs → Tooltip-3cVqgTfY.cjs} +1 -1
- package/dist/{Tooltip-BaPecnnV.js → Tooltip-BjCE_Xgz.js} +1 -1
- package/dist/{index-DEbhC0cM.cjs → index-BkXUnRSw.cjs} +1 -1
- package/dist/{index-KdQpiTkm.js → index-CFFS5fou.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +38 -1
- package/dist/types/vue-data-ui.d.ts +38 -1
- package/dist/{useNestedProp-COYn8tA0.cjs → useNestedProp-BeNFEsBg.cjs} +1 -1
- package/dist/{useNestedProp-CO8Pe266.js → useNestedProp-WmGLMI7a.js} +1 -1
- package/dist/{usePrinter-BuiF8wZK.js → usePrinter-V42TEKtB.js} +1 -1
- package/dist/{usePrinter-DRmOwFc2.cjs → usePrinter-pQdLIFcU.cjs} +1 -1
- package/dist/{vue-data-ui-3jkYjNO_.js → vue-data-ui-BHqGQu50.js} +61 -61
- package/dist/{vue-data-ui-BbpJaKj_.cjs → vue-data-ui-CSvoco2Z.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +22 -20
- package/dist/{vue-ui-3d-bar-Bda7eCM_.js → vue-ui-3d-bar-3HSZgDqW.js} +9 -9
- package/dist/{vue-ui-3d-bar-D7_7INdZ.cjs → vue-ui-3d-bar-enGIMYF-.cjs} +1 -1
- package/dist/{vue-ui-accordion-CDTJiQu0.js → vue-ui-accordion-68aNqLIG.js} +3 -3
- package/dist/{vue-ui-accordion-ChxVn9CH.cjs → vue-ui-accordion-C0Xh8ENO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C-5yJnWs.cjs → vue-ui-age-pyramid-0ARpZkDU.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C4FUVgL1.js → vue-ui-age-pyramid-DqO9Yf9E.js} +10 -10
- package/dist/{vue-ui-annotator-yLvZcOQb.cjs → vue-ui-annotator-DO9HUbCU.cjs} +1 -1
- package/dist/{vue-ui-annotator-pYtolxGn.js → vue-ui-annotator-ONpVjIMZ.js} +1 -1
- package/dist/{vue-ui-bullet-oEZK6DxU.js → vue-ui-bullet-8GyHi1kK.js} +8 -8
- package/dist/{vue-ui-bullet-BVmbUAYh.cjs → vue-ui-bullet-DHH7hqHz.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CVM-Yvvm.cjs → vue-ui-candlestick-BumYsF-O.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Cm0ipv0t.js → vue-ui-candlestick-C77dJq5O.js} +11 -11
- package/dist/{vue-ui-carousel-table-PcE7YCyE.js → vue-ui-carousel-table-BgdM7pov.js} +4 -4
- package/dist/{vue-ui-carousel-table-BGPWwg3x.cjs → vue-ui-carousel-table-BxFiQRr9.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Ob9Rt-3r.js → vue-ui-chestnut-COPZicvP.js} +8 -8
- package/dist/{vue-ui-chestnut-CeYVXtyW.cjs → vue-ui-chestnut-CQkrFvJa.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-BF0PBuDU.js → vue-ui-circle-pack-DFr3W9PK.js} +9 -9
- package/dist/{vue-ui-circle-pack-pbnF0Jb7.cjs → vue-ui-circle-pack-orK3sDBb.cjs} +1 -1
- package/dist/{vue-ui-cursor-Drnazkqg.js → vue-ui-cursor-CqT_0xhF.js} +2 -2
- package/dist/{vue-ui-cursor-DE4hlTca.cjs → vue-ui-cursor-Dd01d8dq.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D3-z2poA.cjs → vue-ui-dashboard-BIY1p9ii.cjs} +1 -1
- package/dist/{vue-ui-dashboard-j5IuBHiv.js → vue-ui-dashboard-CwlJ0U8Z.js} +2 -2
- package/dist/{vue-ui-digits-BRMuUzSA.js → vue-ui-digits-DWbFzx6q.js} +2 -2
- package/dist/{vue-ui-digits-CD5-WopZ.cjs → vue-ui-digits-ejZtkmOF.cjs} +1 -1
- package/dist/{vue-ui-donut-CdVSree_.js → vue-ui-donut-IqhIH5Hs.js} +12 -12
- package/dist/{vue-ui-donut-Dq1F2vBg.cjs → vue-ui-donut-ZjQOuqdK.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DzrJwccW.js → vue-ui-donut-evolution-DK4Ry8OG.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BQ7-rOnh.cjs → vue-ui-donut-evolution-DzBOXBNU.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DuCdZc41.js → vue-ui-dumbbell-CxDinKeH.js} +10 -10
- package/dist/{vue-ui-dumbbell-DSdwbWLI.cjs → vue-ui-dumbbell-DoERaO7T.cjs} +1 -1
- package/dist/{vue-ui-flow-CYpiRQ_u.js → vue-ui-flow-BnE9cqZL.js} +9 -9
- package/dist/{vue-ui-flow-D_UgsB9t.cjs → vue-ui-flow-BuaBA2J_.cjs} +1 -1
- package/dist/{vue-ui-funnel-6q79enxr.js → vue-ui-funnel-CYtp-5QK.js} +9 -9
- package/dist/{vue-ui-funnel-Dr4ssgIM.cjs → vue-ui-funnel-mn1BtOGd.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Bg-3xnWe.js → vue-ui-galaxy-Cb6K-pE8.js} +11 -11
- package/dist/{vue-ui-galaxy-BGxIGzn8.cjs → vue-ui-galaxy-D4bzB7id.cjs} +1 -1
- package/dist/{vue-ui-gauge-DGt25KK7.cjs → vue-ui-gauge-Cs0dyaGc.cjs} +1 -1
- package/dist/{vue-ui-gauge-Cwhlraja.js → vue-ui-gauge-CwefloBc.js} +7 -7
- package/dist/{vue-ui-gizmo-C0024J7B.cjs → vue-ui-gizmo-Breb8hRA.cjs} +1 -1
- package/dist/{vue-ui-gizmo-VRONxCxp.js → vue-ui-gizmo-CRp_vQxS.js} +3 -3
- package/dist/{vue-ui-heatmap-CTwazjkR.cjs → vue-ui-heatmap-BMn83Iw6.cjs} +1 -1
- package/dist/{vue-ui-heatmap-ay3NAawN.js → vue-ui-heatmap-C_64kZde.js} +10 -10
- package/dist/{vue-ui-history-plot-B_IHuJff.cjs → vue-ui-history-plot-D_0c6-QM.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BQ_2NZVm.js → vue-ui-history-plot-DvIN9tLu.js} +11 -11
- package/dist/{vue-ui-kpi-BGSgE7Ck.js → vue-ui-kpi-D6w1Z0ut.js} +3 -3
- package/dist/{vue-ui-kpi-BtHmGmj6.cjs → vue-ui-kpi-DFXNg3nw.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DyRqUv0j.js → vue-ui-mini-loader-B7tT5tbh.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bwe3_hqy.cjs → vue-ui-mini-loader-cO3I00Pq.cjs} +1 -1
- package/dist/{vue-ui-molecule-gJVbPM60.js → vue-ui-molecule-BsrAlvIA.js} +10 -10
- package/dist/{vue-ui-molecule-Cy_P0hK2.cjs → vue-ui-molecule-Cgn3O9Zb.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BxFd74g3.cjs → vue-ui-mood-radar-ByDpmuxU.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DAYJLwXw.js → vue-ui-mood-radar-Cx_8YqzF.js} +11 -11
- package/dist/{vue-ui-nested-donuts-r67jsUHC.js → vue-ui-nested-donuts-DHWlR3jy.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DP_cQ0OI.cjs → vue-ui-nested-donuts-aI-ze2j2.cjs} +1 -1
- package/dist/{vue-ui-onion-C-d1e3w2.js → vue-ui-onion-B6zylASt.js} +11 -11
- package/dist/{vue-ui-onion-CR4UoiPQ.cjs → vue-ui-onion-Dynyp18f.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-FRhJ4mby.js → vue-ui-parallel-coordinate-plot-CiLB1BKE.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-DVltec37.cjs → vue-ui-parallel-coordinate-plot-GWh7DX3Y.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BKWD8HER.js → vue-ui-quadrant-D7SEY4Nj.js} +12 -12
- package/dist/{vue-ui-quadrant-D-vSAn7m.cjs → vue-ui-quadrant-DxaQZoLd.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Bbcex3jc.cjs → vue-ui-quick-chart-BxHBJWtp.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Cy3FCnd-.js → vue-ui-quick-chart-D1NfrJg3.js} +9 -9
- package/dist/{vue-ui-radar-BX_7Ngn_.js → vue-ui-radar-B9DxtK3T.js} +12 -12
- package/dist/{vue-ui-radar-BHCghGVU.cjs → vue-ui-radar-CoZBZklY.cjs} +1 -1
- package/dist/{vue-ui-rating-CM6YiPW3.js → vue-ui-rating-DDCXKsJS.js} +2 -2
- package/dist/{vue-ui-rating-JhzvmHjC.cjs → vue-ui-rating-k2SeZNIl.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BPhcc_fN.cjs → vue-ui-relation-circle-B11wnErY.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-JTWFex69.js → vue-ui-relation-circle-Be4MpIZt.js} +7 -7
- package/dist/{vue-ui-rings-NBAca-G8.js → vue-ui-rings-B2IabkNN.js} +12 -12
- package/dist/{vue-ui-rings-CzXIKikH.cjs → vue-ui-rings-CnhnlHk4.cjs} +1 -1
- package/dist/{vue-ui-scatter-DCunyG-E.cjs → vue-ui-scatter-tU7Sls6T.cjs} +1 -1
- package/dist/{vue-ui-scatter-5SJ4F605.js → vue-ui-scatter-uyOOlflr.js} +12 -12
- package/dist/{vue-ui-screenshot-q3DSJ00h.cjs → vue-ui-screenshot-CQUUa4js.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DPm6Bpiq.js → vue-ui-screenshot-Y8ZFxWOK.js} +1 -1
- package/dist/{vue-ui-skeleton-D7S6OsSN.cjs → vue-ui-skeleton-BQSnhKj4.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BhHXiz99.js → vue-ui-skeleton-CE6Rhdwq.js} +3 -3
- package/dist/{vue-ui-smiley-CQE1dvvV.cjs → vue-ui-smiley-C9qaB_MO.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cb8d713r.js → vue-ui-smiley-CwnOcaDD.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVNEGhp9.js → vue-ui-spark-trend-ZMvBWU7T.js} +5 -5
- package/dist/{vue-ui-spark-trend-7Bo9O1fQ.cjs → vue-ui-spark-trend-xU3yJI0s.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BbOu_w63.js → vue-ui-sparkbar-CyhZr6ox.js} +4 -4
- package/dist/{vue-ui-sparkbar-qAaHy4or.cjs → vue-ui-sparkbar-DMJyaiJL.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ddRVuzSQ.cjs → vue-ui-sparkgauge-BAGFZVWH.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BwNM15jl.js → vue-ui-sparkgauge-C59o5PLo.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DhJ72P8O.js → vue-ui-sparkhistogram-Br2lTOWq.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C8E73uuw.cjs → vue-ui-sparkhistogram-hR2cA_1P.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C6wkmXa0.cjs → vue-ui-sparkline-Cj9Shaxo.cjs} +1 -1
- package/dist/{vue-ui-sparkline-m3nNPKwo.js → vue-ui-sparkline-XjVDZSJW.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-B71Vue4E.js → vue-ui-sparkstackbar-D1k-uOj4.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CJyCwn7x.cjs → vue-ui-sparkstackbar-hPuv4RZq.cjs} +1 -1
- package/dist/{vue-ui-stackbar-6W0SjyLd.cjs → vue-ui-stackbar-B3y0c9T0.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CL7KXBrn.js → vue-ui-stackbar-DCW5UenP.js} +13 -13
- package/dist/{vue-ui-strip-plot-T99zioSX.js → vue-ui-strip-plot-Ctlsvtbq.js} +11 -11
- package/dist/{vue-ui-strip-plot-D10qNzJu.cjs → vue-ui-strip-plot-DNrU2G2r.cjs} +1 -1
- package/dist/{vue-ui-table-Cva4CGRJ.cjs → vue-ui-table-CAK_tKR0.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-GOsIhgPo.cjs → vue-ui-table-heatmap-BR07D_Jk.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CQbPKFW_.js → vue-ui-table-heatmap-BqXr-8TN.js} +4 -4
- package/dist/{vue-ui-table-sparkline-AIunqOTn.cjs → vue-ui-table-sparkline-B7B3c3Kb.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CHtZhhn6.js → vue-ui-table-sparkline-D_URlvKj.js} +5 -5
- package/dist/{vue-ui-table-CCrE_Qnd.js → vue-ui-table-xBKNheLy.js} +1 -1
- package/dist/{vue-ui-thermometer-CGAA0bAU.cjs → vue-ui-thermometer-BR9SzHOJ.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CCVPdXye.js → vue-ui-thermometer-C6PZ9mvq.js} +7 -7
- package/dist/{vue-ui-timer-Djxb8XuU.js → vue-ui-timer-Bg-ffBSP.js} +5 -5
- package/dist/{vue-ui-timer-C3detaHT.cjs → vue-ui-timer-Qv1fF4Rq.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-D-xQKhur.cjs → vue-ui-tiremarks-BfQsDoMb.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DExuaGwV.js → vue-ui-tiremarks-CjYT3G69.js} +7 -7
- package/dist/{vue-ui-treemap-BXWbdL3o.cjs → vue-ui-treemap-BxdErYLZ.cjs} +1 -1
- package/dist/{vue-ui-treemap-Dnn29Qdu.js → vue-ui-treemap-DYmCTmlo.js} +12 -12
- package/dist/{vue-ui-vertical-bar-B9-cwCz2.js → vue-ui-vertical-bar-BbSaoHnx.js} +12 -12
- package/dist/{vue-ui-vertical-bar-3V-J4-Qp.cjs → vue-ui-vertical-bar-D6020yMP.cjs} +1 -1
- package/dist/{vue-ui-waffle-BH4NkBmK.js → vue-ui-waffle-BYHvDjBd.js} +12 -12
- package/dist/{vue-ui-waffle-by6o3KnD.cjs → vue-ui-waffle-DCa7TbcY.cjs} +1 -1
- package/dist/{vue-ui-wheel-D2BqDvNB.js → vue-ui-wheel-CXcHXSmc.js} +7 -7
- package/dist/{vue-ui-wheel-DWNHihoO.cjs → vue-ui-wheel-Dfpw-TGn.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DvXgJCIv.cjs → vue-ui-word-cloud-BS68DlmA.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Bpyn_t-K.js → vue-ui-word-cloud-BaXm2uvH.js} +10 -10
- package/dist/{vue-ui-xy-CuLfvdAU.js → vue-ui-xy-C_ZIwWl7.js} +14 -14
- package/dist/{vue-ui-xy-luOYkYWO.cjs → vue-ui-xy-DOT-R_9J.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BK3C3PqR.js → vue-ui-xy-canvas-CW7oyZMn.js} +12 -12
- package/dist/{vue-ui-xy-canvas-bysKB96p.cjs → vue-ui-xy-canvas-C_LTt1hr.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1155,7 +1155,12 @@ declare module "vue-data-ui" {
|
|
|
1155
1155
|
| "home"
|
|
1156
1156
|
| "homeFilled"
|
|
1157
1157
|
| "icons"
|
|
1158
|
-
| "robot"
|
|
1158
|
+
| "robot"
|
|
1159
|
+
| "hourglass"
|
|
1160
|
+
| "computer"
|
|
1161
|
+
| "htmlTag"
|
|
1162
|
+
| "curlyBrackets"
|
|
1163
|
+
| "curlySpread";
|
|
1159
1164
|
|
|
1160
1165
|
export const VueUiIcon: DefineComponent<{
|
|
1161
1166
|
name: VueUiIconName;
|
|
@@ -6878,6 +6883,38 @@ declare module "vue-data-ui" {
|
|
|
6878
6883
|
| ((word: string) => string)
|
|
6879
6884
|
| null;
|
|
6880
6885
|
|
|
6886
|
+
|
|
6887
|
+
export type Point = {
|
|
6888
|
+
[key: string]: any
|
|
6889
|
+
x: number
|
|
6890
|
+
y: number
|
|
6891
|
+
}
|
|
6892
|
+
|
|
6893
|
+
/**
|
|
6894
|
+
* Vue Data UI utility
|
|
6895
|
+
* ---
|
|
6896
|
+
* Generate a straight line path to include in the d attribute of a svg path element
|
|
6897
|
+
* ___
|
|
6898
|
+
* @example
|
|
6899
|
+
* const path = createStraightPath([{x: 1, y: 1}, { x: 2, y: 1.2}])
|
|
6900
|
+
*
|
|
6901
|
+
* @param points - An array of point objects
|
|
6902
|
+
*/
|
|
6903
|
+
export const createStraightPath: (points: Point[]) => string
|
|
6904
|
+
|
|
6905
|
+
/**
|
|
6906
|
+
* Vue Data UI utility
|
|
6907
|
+
* ---
|
|
6908
|
+
* Generate a spline path to include in the d attribute of a svg path element
|
|
6909
|
+
* ___
|
|
6910
|
+
* @example
|
|
6911
|
+
* const path = createSmoothPath([{x: 1, y: 1}, { x: 2, y: 1.2}, { x: 3, y: 0.2 }])
|
|
6912
|
+
*
|
|
6913
|
+
* @param points - An array of point objects
|
|
6914
|
+
*/
|
|
6915
|
+
export const createSmoothPath: (points: Point[]) => string
|
|
6916
|
+
|
|
6917
|
+
|
|
6881
6918
|
/**
|
|
6882
6919
|
* Vue Data UI utility
|
|
6883
6920
|
* ---
|
|
@@ -1155,7 +1155,12 @@ declare module "vue-data-ui" {
|
|
|
1155
1155
|
| "home"
|
|
1156
1156
|
| "homeFilled"
|
|
1157
1157
|
| "icons"
|
|
1158
|
-
| "robot"
|
|
1158
|
+
| "robot"
|
|
1159
|
+
| "hourglass"
|
|
1160
|
+
| "computer"
|
|
1161
|
+
| "htmlTag"
|
|
1162
|
+
| "curlyBrackets"
|
|
1163
|
+
| "curlySpread";
|
|
1159
1164
|
|
|
1160
1165
|
export const VueUiIcon: DefineComponent<{
|
|
1161
1166
|
name: VueUiIconName;
|
|
@@ -6878,6 +6883,38 @@ declare module "vue-data-ui" {
|
|
|
6878
6883
|
| ((word: string) => string)
|
|
6879
6884
|
| null;
|
|
6880
6885
|
|
|
6886
|
+
|
|
6887
|
+
export type Point = {
|
|
6888
|
+
[key: string]: any
|
|
6889
|
+
x: number
|
|
6890
|
+
y: number
|
|
6891
|
+
}
|
|
6892
|
+
|
|
6893
|
+
/**
|
|
6894
|
+
* Vue Data UI utility
|
|
6895
|
+
* ---
|
|
6896
|
+
* Generate a straight line path to include in the d attribute of a svg path element
|
|
6897
|
+
* ___
|
|
6898
|
+
* @example
|
|
6899
|
+
* const path = createStraightPath([{x: 1, y: 1}, { x: 2, y: 1.2}])
|
|
6900
|
+
*
|
|
6901
|
+
* @param points - An array of point objects
|
|
6902
|
+
*/
|
|
6903
|
+
export const createStraightPath: (points: Point[]) => string
|
|
6904
|
+
|
|
6905
|
+
/**
|
|
6906
|
+
* Vue Data UI utility
|
|
6907
|
+
* ---
|
|
6908
|
+
* Generate a spline path to include in the d attribute of a svg path element
|
|
6909
|
+
* ___
|
|
6910
|
+
* @example
|
|
6911
|
+
* const path = createSmoothPath([{x: 1, y: 1}, { x: 2, y: 1.2}, { x: 3, y: 0.2 }])
|
|
6912
|
+
*
|
|
6913
|
+
* @param points - An array of point objects
|
|
6914
|
+
*/
|
|
6915
|
+
export const createSmoothPath: (points: Point[]) => string
|
|
6916
|
+
|
|
6917
|
+
|
|
6881
6918
|
/**
|
|
6882
6919
|
* Vue Data UI utility
|
|
6883
6920
|
* ---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-BkXUnRSw.cjs");function o({defaultConfig:e,userConfig:t}){if(!Object.keys(t||{}).length)return e;const n=r.treeShake({defaultConfig:e,userConfig:t});return r.convertConfigColors(n)}exports.useNestedProp=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as b, computed as G, onMounted as J, onBeforeUnmount as Q, withDirectives as Y, createElementBlock as i, openBlock as t, normalizeStyle as d, createElementVNode as V, withKeys as Z, withModifiers as p, renderSlot as c, normalizeProps as E, guardReactiveProps as _, createVNode as ee, normalizeClass as y, createCommentVNode as u, Fragment as h, createBlock as f, toDisplayString as $, mergeProps as P, unref as te } from "vue";
|
|
2
|
-
import a from "./BaseIcon-
|
|
2
|
+
import a from "./BaseIcon-CZ5jKnR9.js";
|
|
3
3
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const ne = {
|
|
5
5
|
beforeMount(e, C) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./BaseIcon-DoqpR480.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A={beforeMount(t,k){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||k.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},L=["title"],w=["data-open"],X={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:"right"},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation","toggleAnnotator"],setup(t,{emit:k}){const s=t,r=k;function d(){r("generatePdf")}function m(){r("generateCsv")}function v(){r("generateImage")}const g=e.ref(!1);function B(){g.value=!g.value,r("toggleTable")}const u=e.ref(!1),M=e.ref(!0);function h(){c.value=window.innerWidth>600,u.value=!u.value,u.value&&(M.value=!1)}function T(){s.isPrinting||s.isImaging||(u.value=!1)}function F(){u.value&&T()}const C=e.ref(s.isLabelActive);function I(){C.value=!C.value,r("toggleLabels")}const b=e.ref(s.isAnimation);function E(){b.value=!b.value,r("toggleAnimation")}const y=e.computed({get:()=>s.isAnnotation,set:l=>l});function z(){y.value=!y.value,r("toggleAnnotator")}function P(){r("toggleSort")}const $=e.ref(s.isStacked);function p(){$.value=!$.value,r("toggleStack")}const S=e.ref(s.isTooltip);function O(){S.value=!S.value,r("toggleTooltip")}const f=e.ref(!1);function N(l){s.chartElement&&(l==="in"?(f.value=!0,s.chartElement.requestFullscreen(),r("toggleFullscreen",!0)):(f.value=!1,document&&document.exitFullscreen(),r("toggleFullscreen",!1)))}function V(l){document.fullscreenElement?f.value=!0:f.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",V)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",V)});const c=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${f.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${f.value?"12px":"0"}`:`left:${f.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:u.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.offsetX?t.offsetX:t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:e.withModifiers(h,["stop"]),onKeypress:e.withKeys(h,["enter"])},[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u.value,color:t.color})),()=>[e.createVNode(a.default,{name:u.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],!0)],44,L),e.createElementVNode("div",{"data-open":u.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.offsetX?t.offsetX:t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:O,onMouseenter:o[0]||(o[0]=i=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[S.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-left-visible":t.position==="left"&&n.value.tooltip,"button-info-right-visible":t.position==="right"&&n.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[2]||(o[2]=i=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.pdf,"button-info-left-visible":t.position==="left"&&n.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:m,onMouseenter:o[4]||(o[4]=i=>n.value.csv=!0),onMouseout:o[5]||(o[5]=i=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.csv,"button-info-left-visible":t.position==="left"&&n.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[6]||(o[6]=i=>n.value.img=!0),onMouseout:o[7]||(o[7]=i=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.img,"button-info-left-visible":t.position==="left"&&n.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:B,onMouseenter:o[8]||(o[8]=i=>n.value.table=!0),onMouseout:o[9]||(o[9]=i=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.table,"button-info-left-visible":t.position==="left"&&n.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:I,onMouseenter:o[10]||(o[10]=i=>n.value.labels=!0),onMouseout:o[11]||(o[11]=i=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:C.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.labels,"button-info-left-visible":t.position==="left"&&n.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[12]||(o[12]=i=>n.value.sort=!0),onMouseout:o[13]||(o[13]=i=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.sort,"button-info-left-visible":t.position==="left"&&n.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:p,onMouseenter:o[14]||(o[14]=i=>n.value.stack=!0),onMouseout:o[15]||(o[15]=i=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.stack,"button-info-left-visible":t.position==="left"&&n.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=i=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>N(f.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:N,isFullscreen:f.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.fullscreen,"button-info-left-visible":t.position==="left"&&n.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=i=>n.value.animation=!0),onMouseout:o[20]||(o[20]=i=>n.value.animation=!1),onClick:E},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:E,isAnimated:b.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.animation,"button-info-left-visible":t.position==="left"&&n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnnotator?(e.openBlock(),e.createElementBlock("button",{key:10,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[21]||(o[21]=i=>n.value.annotator=!0),onMouseout:o[22]||(o[22]=i=>n.value.annotator=!1),onClick:z},[l.$slots.optionAnnotator?e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.mergeProps({key:0},{toggleAnnotator:z,isAnnotator:y.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"annotatorDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"annotator",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.annotator&&!l.$slots.optionAnnotator?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.annotator,"button-info-left-visible":t.position==="left"&&n.value.annotator}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.annotator),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,w)],4)),[[e.unref(A),F]])}},q=D._export_sfc(X,[["__scopeId","data-v-0926bd71"]]);function U({elementId:t,fileName:k,canPrint:s=!0,options:r}){const d=e.ref(!1),m=e.ref(!1),v=e.ref(null);async function g(){!s||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./pdf-BpXLKlRx.cjs"));await u({domElement:document.getElementById(t),fileName:k,options:r})}catch(u){console.error("Error generating PDF:",u)}finally{d.value=!1}},100))}async function B(){!s||m.value||(m.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./img-D6uvziU0.cjs"));await u({domElement:document.getElementById(t),fileName:k,format:"png",options:r})}catch(u){console.error("Error generating image:",u)}finally{m.value=!1}},100))}return{generatePdf:g,generateImage:B,isPrinting:d,isImaging:m}}exports.UserOptions=q;exports.usePrinter=U;exports.vClickOutside=A;
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./BaseIcon-DWuVl2GU.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A={beforeMount(t,k){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||k.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},L=["title"],w=["data-open"],X={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:"right"},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation","toggleAnnotator"],setup(t,{emit:k}){const s=t,r=k;function d(){r("generatePdf")}function m(){r("generateCsv")}function v(){r("generateImage")}const g=e.ref(!1);function B(){g.value=!g.value,r("toggleTable")}const u=e.ref(!1),M=e.ref(!0);function h(){c.value=window.innerWidth>600,u.value=!u.value,u.value&&(M.value=!1)}function T(){s.isPrinting||s.isImaging||(u.value=!1)}function F(){u.value&&T()}const C=e.ref(s.isLabelActive);function I(){C.value=!C.value,r("toggleLabels")}const b=e.ref(s.isAnimation);function E(){b.value=!b.value,r("toggleAnimation")}const y=e.computed({get:()=>s.isAnnotation,set:l=>l});function z(){y.value=!y.value,r("toggleAnnotator")}function P(){r("toggleSort")}const $=e.ref(s.isStacked);function p(){$.value=!$.value,r("toggleStack")}const S=e.ref(s.isTooltip);function O(){S.value=!S.value,r("toggleTooltip")}const f=e.ref(!1);function N(l){s.chartElement&&(l==="in"?(f.value=!0,s.chartElement.requestFullscreen(),r("toggleFullscreen",!0)):(f.value=!1,document&&document.exitFullscreen(),r("toggleFullscreen",!1)))}function V(l){document.fullscreenElement?f.value=!0:f.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",V)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",V)});const c=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${f.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${f.value?"12px":"0"}`:`left:${f.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:u.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.offsetX?t.offsetX:t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:e.withModifiers(h,["stop"]),onKeypress:e.withKeys(h,["enter"])},[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u.value,color:t.color})),()=>[e.createVNode(a.default,{name:u.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],!0)],44,L),e.createElementVNode("div",{"data-open":u.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.offsetX?t.offsetX:t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:O,onMouseenter:o[0]||(o[0]=i=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[S.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-left-visible":t.position==="left"&&n.value.tooltip,"button-info-right-visible":t.position==="right"&&n.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[2]||(o[2]=i=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.pdf,"button-info-left-visible":t.position==="left"&&n.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:m,onMouseenter:o[4]||(o[4]=i=>n.value.csv=!0),onMouseout:o[5]||(o[5]=i=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.csv,"button-info-left-visible":t.position==="left"&&n.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[6]||(o[6]=i=>n.value.img=!0),onMouseout:o[7]||(o[7]=i=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.img,"button-info-left-visible":t.position==="left"&&n.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:B,onMouseenter:o[8]||(o[8]=i=>n.value.table=!0),onMouseout:o[9]||(o[9]=i=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.table,"button-info-left-visible":t.position==="left"&&n.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:I,onMouseenter:o[10]||(o[10]=i=>n.value.labels=!0),onMouseout:o[11]||(o[11]=i=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:C.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.labels,"button-info-left-visible":t.position==="left"&&n.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[12]||(o[12]=i=>n.value.sort=!0),onMouseout:o[13]||(o[13]=i=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.sort,"button-info-left-visible":t.position==="left"&&n.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:p,onMouseenter:o[14]||(o[14]=i=>n.value.stack=!0),onMouseout:o[15]||(o[15]=i=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.stack,"button-info-left-visible":t.position==="left"&&n.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=i=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>N(f.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:N,isFullscreen:f.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.fullscreen,"button-info-left-visible":t.position==="left"&&n.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=i=>n.value.animation=!0),onMouseout:o[20]||(o[20]=i=>n.value.animation=!1),onClick:E},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:E,isAnimated:b.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.animation,"button-info-left-visible":t.position==="left"&&n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnnotator?(e.openBlock(),e.createElementBlock("button",{key:10,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[21]||(o[21]=i=>n.value.annotator=!0),onMouseout:o[22]||(o[22]=i=>n.value.annotator=!1),onClick:z},[l.$slots.optionAnnotator?e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.mergeProps({key:0},{toggleAnnotator:z,isAnnotator:y.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"annotatorDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"annotator",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.annotator&&!l.$slots.optionAnnotator?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.annotator,"button-info-left-visible":t.position==="left"&&n.value.annotator}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.annotator),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,w)],4)),[[e.unref(A),F]])}},q=D._export_sfc(X,[["__scopeId","data-v-0926bd71"]]);function U({elementId:t,fileName:k,canPrint:s=!0,options:r}){const d=e.ref(!1),m=e.ref(!1),v=e.ref(null);async function g(){!s||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./pdf-BpXLKlRx.cjs"));await u({domElement:document.getElementById(t),fileName:k,options:r})}catch(u){console.error("Error generating PDF:",u)}finally{d.value=!1}},100))}async function B(){!s||m.value||(m.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./img-D6uvziU0.cjs"));await u({domElement:document.getElementById(t),fileName:k,format:"png",options:r})}catch(u){console.error("Error generating image:",u)}finally{m.value=!1}},100))}return{generatePdf:g,generateImage:B,isPrinting:d,isImaging:m}}exports.UserOptions=q;exports.usePrinter=U;exports.vClickOutside=A;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as tt, defineAsyncComponent as e, computed as s, ref as o, onMounted as et, watch as M, shallowReactive as ot, createElementBlock as it, createBlock as m, openBlock as c, normalizeStyle as at, createElementVNode as nt, createTextVNode as rt, createCommentVNode as $, toDisplayString as lt, resolveDynamicComponent as ut, mergeProps as st, toHandlers as ct, createSlots as gt, renderList as pt, withCtx as mt, renderSlot as dt, normalizeProps as Vt, guardReactiveProps as Ut } from "vue";
|
|
2
|
-
import W from "./BaseIcon-
|
|
2
|
+
import W from "./BaseIcon-CZ5jKnR9.js";
|
|
3
3
|
const ft = { style: { width: "36px" } }, ht = {
|
|
4
4
|
__name: "vue-data-ui",
|
|
5
5
|
props: {
|
|
@@ -34,66 +34,66 @@ const ft = { style: { width: "36px" } }, ht = {
|
|
|
34
34
|
],
|
|
35
35
|
setup(X, { expose: Q, emit: j }) {
|
|
36
36
|
const n = X, { component: vt, dataset: z, config: K } = tt(n), g = {
|
|
37
|
-
VueUi3dBar: e(() => import("./vue-ui-3d-bar-
|
|
38
|
-
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-
|
|
39
|
-
VueUiAnnotator: e(() => import("./vue-ui-annotator-
|
|
40
|
-
VueUiCandlestick: e(() => import("./vue-ui-candlestick-
|
|
41
|
-
VueUiChestnut: e(() => import("./vue-ui-chestnut-
|
|
42
|
-
VueUiDashboard: e(() => import("./vue-ui-dashboard-
|
|
43
|
-
VueUiDigits: e(() => import("./vue-ui-digits-
|
|
44
|
-
VueUiDonut: e(() => import("./vue-ui-donut-
|
|
45
|
-
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-
|
|
46
|
-
VueUiGalaxy: e(() => import("./vue-ui-galaxy-
|
|
47
|
-
VueUiGauge: e(() => import("./vue-ui-gauge-
|
|
48
|
-
VueUiHeatmap: e(() => import("./vue-ui-heatmap-
|
|
49
|
-
VueUiKpi: e(() => import("./vue-ui-kpi-
|
|
50
|
-
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-
|
|
51
|
-
VueUiMolecule: e(() => import("./vue-ui-molecule-
|
|
52
|
-
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-
|
|
53
|
-
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-
|
|
54
|
-
VueUiOnion: e(() => import("./vue-ui-onion-
|
|
55
|
-
VueUiQuadrant: e(() => import("./vue-ui-quadrant-
|
|
56
|
-
VueUiRadar: e(() => import("./vue-ui-radar-
|
|
57
|
-
VueUiRating: e(() => import("./vue-ui-rating-
|
|
58
|
-
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-
|
|
59
|
-
VueUiRings: e(() => import("./vue-ui-rings-
|
|
60
|
-
VueUiScatter: e(() => import("./vue-ui-scatter-
|
|
61
|
-
VueUiScreenshot: e(() => import("./vue-ui-screenshot-
|
|
62
|
-
VueUiSkeleton: e(() => import("./vue-ui-skeleton-
|
|
63
|
-
VueUiSmiley: e(() => import("./vue-ui-smiley-
|
|
64
|
-
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-
|
|
65
|
-
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-
|
|
66
|
-
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-
|
|
67
|
-
VueUiSparkline: e(() => import("./vue-ui-sparkline-
|
|
68
|
-
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-
|
|
69
|
-
VueUiTable: e(() => import("./vue-ui-table-
|
|
70
|
-
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-
|
|
71
|
-
VueUiThermometer: e(() => import("./vue-ui-thermometer-
|
|
72
|
-
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-
|
|
73
|
-
VueUiTreemap: e(() => import("./vue-ui-treemap-
|
|
74
|
-
VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-
|
|
75
|
-
VueUiWaffle: e(() => import("./vue-ui-waffle-
|
|
76
|
-
VueUiWheel: e(() => import("./vue-ui-wheel-
|
|
77
|
-
VueUiXy: e(() => import("./vue-ui-xy-
|
|
78
|
-
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-
|
|
79
|
-
VueUiAccordion: e(() => import("./vue-ui-accordion-
|
|
80
|
-
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-
|
|
81
|
-
VueUiCursor: e(() => import("./vue-ui-cursor-
|
|
82
|
-
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-
|
|
83
|
-
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-
|
|
84
|
-
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-
|
|
85
|
-
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-
|
|
86
|
-
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-
|
|
87
|
-
VueUiFlow: e(() => import("./vue-ui-flow-
|
|
88
|
-
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-
|
|
89
|
-
VueUiTimer: e(() => import("./vue-ui-timer-
|
|
90
|
-
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-
|
|
91
|
-
VueUiGizmo: e(() => import("./vue-ui-gizmo-
|
|
92
|
-
VueUiStackbar: e(() => import("./vue-ui-stackbar-
|
|
93
|
-
VueUiBullet: e(() => import("./vue-ui-bullet-
|
|
94
|
-
VueUiFunnel: e(() => import("./vue-ui-funnel-
|
|
95
|
-
VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-
|
|
96
|
-
VueUiCirclePack: e(() => import("./vue-ui-circle-pack-
|
|
37
|
+
VueUi3dBar: e(() => import("./vue-ui-3d-bar-3HSZgDqW.js")),
|
|
38
|
+
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-DqO9Yf9E.js")),
|
|
39
|
+
VueUiAnnotator: e(() => import("./vue-ui-annotator-ONpVjIMZ.js")),
|
|
40
|
+
VueUiCandlestick: e(() => import("./vue-ui-candlestick-C77dJq5O.js")),
|
|
41
|
+
VueUiChestnut: e(() => import("./vue-ui-chestnut-COPZicvP.js")),
|
|
42
|
+
VueUiDashboard: e(() => import("./vue-ui-dashboard-CwlJ0U8Z.js")),
|
|
43
|
+
VueUiDigits: e(() => import("./vue-ui-digits-DWbFzx6q.js")),
|
|
44
|
+
VueUiDonut: e(() => import("./vue-ui-donut-IqhIH5Hs.js")),
|
|
45
|
+
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-DK4Ry8OG.js")),
|
|
46
|
+
VueUiGalaxy: e(() => import("./vue-ui-galaxy-Cb6K-pE8.js")),
|
|
47
|
+
VueUiGauge: e(() => import("./vue-ui-gauge-CwefloBc.js")),
|
|
48
|
+
VueUiHeatmap: e(() => import("./vue-ui-heatmap-C_64kZde.js")),
|
|
49
|
+
VueUiKpi: e(() => import("./vue-ui-kpi-D6w1Z0ut.js")),
|
|
50
|
+
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-B7tT5tbh.js")),
|
|
51
|
+
VueUiMolecule: e(() => import("./vue-ui-molecule-BsrAlvIA.js")),
|
|
52
|
+
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-Cx_8YqzF.js")),
|
|
53
|
+
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-DHWlR3jy.js")),
|
|
54
|
+
VueUiOnion: e(() => import("./vue-ui-onion-B6zylASt.js")),
|
|
55
|
+
VueUiQuadrant: e(() => import("./vue-ui-quadrant-D7SEY4Nj.js")),
|
|
56
|
+
VueUiRadar: e(() => import("./vue-ui-radar-B9DxtK3T.js")),
|
|
57
|
+
VueUiRating: e(() => import("./vue-ui-rating-DDCXKsJS.js")),
|
|
58
|
+
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-Be4MpIZt.js")),
|
|
59
|
+
VueUiRings: e(() => import("./vue-ui-rings-B2IabkNN.js")),
|
|
60
|
+
VueUiScatter: e(() => import("./vue-ui-scatter-uyOOlflr.js")),
|
|
61
|
+
VueUiScreenshot: e(() => import("./vue-ui-screenshot-Y8ZFxWOK.js")),
|
|
62
|
+
VueUiSkeleton: e(() => import("./vue-ui-skeleton-CE6Rhdwq.js")),
|
|
63
|
+
VueUiSmiley: e(() => import("./vue-ui-smiley-CwnOcaDD.js")),
|
|
64
|
+
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-CyhZr6ox.js")),
|
|
65
|
+
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-C59o5PLo.js")),
|
|
66
|
+
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-Br2lTOWq.js")),
|
|
67
|
+
VueUiSparkline: e(() => import("./vue-ui-sparkline-XjVDZSJW.js")),
|
|
68
|
+
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-D1k-uOj4.js")),
|
|
69
|
+
VueUiTable: e(() => import("./vue-ui-table-xBKNheLy.js")),
|
|
70
|
+
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-D_URlvKj.js")),
|
|
71
|
+
VueUiThermometer: e(() => import("./vue-ui-thermometer-C6PZ9mvq.js")),
|
|
72
|
+
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-CjYT3G69.js")),
|
|
73
|
+
VueUiTreemap: e(() => import("./vue-ui-treemap-DYmCTmlo.js")),
|
|
74
|
+
VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-BbSaoHnx.js")),
|
|
75
|
+
VueUiWaffle: e(() => import("./vue-ui-waffle-BYHvDjBd.js")),
|
|
76
|
+
VueUiWheel: e(() => import("./vue-ui-wheel-CXcHXSmc.js")),
|
|
77
|
+
VueUiXy: e(() => import("./vue-ui-xy-C_ZIwWl7.js")),
|
|
78
|
+
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-BqXr-8TN.js")),
|
|
79
|
+
VueUiAccordion: e(() => import("./vue-ui-accordion-68aNqLIG.js")),
|
|
80
|
+
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-D1NfrJg3.js")),
|
|
81
|
+
VueUiCursor: e(() => import("./vue-ui-cursor-CqT_0xhF.js")),
|
|
82
|
+
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-ZMvBWU7T.js")),
|
|
83
|
+
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-Ctlsvtbq.js")),
|
|
84
|
+
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-CxDinKeH.js")),
|
|
85
|
+
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-BaXm2uvH.js")),
|
|
86
|
+
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-CW7oyZMn.js")),
|
|
87
|
+
VueUiFlow: e(() => import("./vue-ui-flow-BnE9cqZL.js")),
|
|
88
|
+
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-CiLB1BKE.js")),
|
|
89
|
+
VueUiTimer: e(() => import("./vue-ui-timer-Bg-ffBSP.js")),
|
|
90
|
+
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-BgdM7pov.js")),
|
|
91
|
+
VueUiGizmo: e(() => import("./vue-ui-gizmo-CRp_vQxS.js")),
|
|
92
|
+
VueUiStackbar: e(() => import("./vue-ui-stackbar-DCW5UenP.js")),
|
|
93
|
+
VueUiBullet: e(() => import("./vue-ui-bullet-8GyHi1kK.js")),
|
|
94
|
+
VueUiFunnel: e(() => import("./vue-ui-funnel-CYtp-5QK.js")),
|
|
95
|
+
VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-DvIN9tLu.js")),
|
|
96
|
+
VueUiCirclePack: e(() => import("./vue-ui-circle-pack-DFr3W9PK.js"))
|
|
97
97
|
}, q = {
|
|
98
98
|
VueUi3dBar: ["config", "dataset"],
|
|
99
99
|
VueUiAgePyramid: ["config", "dataset"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./BaseIcon-DoqpR480.cjs"),K={style:{width:"36px"}},Y={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap","toggleAnnotator"],setup(E,{expose:O,emit:_}){const i=E,{component:J,dataset:M,config:G}=e.toRefs(i),l={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-D7_7INdZ.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-C-5yJnWs.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-yLvZcOQb.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-CVM-Yvvm.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-CeYVXtyW.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-D3-z2poA.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-CD5-WopZ.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-Dq1F2vBg.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-BQ7-rOnh.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-BGxIGzn8.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-DGt25KK7.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-CTwazjkR.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-BtHmGmj6.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-Bwe3_hqy.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-Cy_P0hK2.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-BxFd74g3.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-DP_cQ0OI.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-CR4UoiPQ.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-D-vSAn7m.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-BHCghGVU.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-JhzvmHjC.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-BPhcc_fN.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-CzXIKikH.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-DCunyG-E.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-q3DSJ00h.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-D7S6OsSN.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-CQE1dvvV.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-qAaHy4or.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-ddRVuzSQ.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-C8E73uuw.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-C6wkmXa0.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-CJyCwn7x.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-Cva4CGRJ.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-AIunqOTn.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-CGAA0bAU.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-D-xQKhur.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-BXWbdL3o.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-3V-J4-Qp.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-by6o3KnD.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-DWNHihoO.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-luOYkYWO.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-GOsIhgPo.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-ChxVn9CH.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-Bbcex3jc.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-DE4hlTca.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-7Bo9O1fQ.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-D10qNzJu.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-DSdwbWLI.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-DvXgJCIv.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-bysKB96p.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-D_UgsB9t.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-DVltec37.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-C3detaHT.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-BGPWwg3x.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-C0024J7B.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-6W0SjyLd.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-BVmbUAYh.cjs"))),VueUiFunnel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-Dr4ssgIM.cjs"))),VueUiHistoryPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-B_IHuJff.cjs"))),VueUiCirclePack:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-pbnF0Jb7.cjs")))},$={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"],VueUiBullet:["config","dataset"],VueUiFunnel:["config","dataset"],VueUiHistoryPlot:["config","dataset"],VueUiCirclePack:["config","dataset"]},W=_,c=e.computed(()=>!l[i.component]),X=e.computed(()=>l[i.component]||null),o=e.ref(null),j=e.computed(()=>{const t=$[i.component]||[],n={};return t.includes("config")&&(n.config=G.value),t.includes("dataset")&&(n.dataset=M.value),n}),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),k=e.ref(()=>null),S=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),B=e.ref(()=>null),I=e.ref(()=>null),N=e.ref(()=>null),x=e.ref(()=>null),F=e.ref(()=>null),H=e.ref(()=>null);e.onMounted(()=>{c.value&&console.error(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./BaseIcon-DWuVl2GU.cjs"),K={style:{width:"36px"}},Y={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap","toggleAnnotator"],setup(E,{expose:O,emit:_}){const i=E,{component:J,dataset:M,config:G}=e.toRefs(i),l={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-enGIMYF-.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-0ARpZkDU.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-DO9HUbCU.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-BumYsF-O.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-CQkrFvJa.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-BIY1p9ii.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-ejZtkmOF.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-ZjQOuqdK.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-DzBOXBNU.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-D4bzB7id.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-Cs0dyaGc.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-BMn83Iw6.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-DFXNg3nw.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-cO3I00Pq.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-Cgn3O9Zb.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-ByDpmuxU.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-aI-ze2j2.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-Dynyp18f.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-DxaQZoLd.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-CoZBZklY.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-k2SeZNIl.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-B11wnErY.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-CnhnlHk4.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-tU7Sls6T.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-CQUUa4js.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-BQSnhKj4.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-C9qaB_MO.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-DMJyaiJL.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-BAGFZVWH.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-hR2cA_1P.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-Cj9Shaxo.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-hPuv4RZq.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-CAK_tKR0.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-B7B3c3Kb.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-BR9SzHOJ.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-BfQsDoMb.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-BxdErYLZ.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-D6020yMP.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-DCa7TbcY.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-Dfpw-TGn.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-DOT-R_9J.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-BR07D_Jk.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-C0Xh8ENO.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-BxHBJWtp.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-Dd01d8dq.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-xU3yJI0s.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-DNrU2G2r.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-DoERaO7T.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-BS68DlmA.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-C_LTt1hr.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-BuaBA2J_.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-GWh7DX3Y.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-Qv1fF4Rq.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-BxFiQRr9.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-Breb8hRA.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-B3y0c9T0.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-DHH7hqHz.cjs"))),VueUiFunnel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-mn1BtOGd.cjs"))),VueUiHistoryPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-D_0c6-QM.cjs"))),VueUiCirclePack:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-orK3sDBb.cjs")))},$={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"],VueUiBullet:["config","dataset"],VueUiFunnel:["config","dataset"],VueUiHistoryPlot:["config","dataset"],VueUiCirclePack:["config","dataset"]},W=_,c=e.computed(()=>!l[i.component]),X=e.computed(()=>l[i.component]||null),o=e.ref(null),j=e.computed(()=>{const t=$[i.component]||[],n={};return t.includes("config")&&(n.config=G.value),t.includes("dataset")&&(n.dataset=M.value),n}),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),k=e.ref(()=>null),S=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),B=e.ref(()=>null),I=e.ref(()=>null),N=e.ref(()=>null),x=e.ref(()=>null),F=e.ref(()=>null),H=e.ref(()=>null);e.onMounted(()=>{c.value&&console.error(`
|
|
2
2
|
|
|
3
3
|
Vue Data UI exception:
|
|
4
4
|
The provided component "${i.component}" does not exist. Check the spelling.
|
package/dist/vue-data-ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-BkXUnRSw.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiBullet=e.VueUiBullet;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCirclePack=e.VueUiCirclePack;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiFunnel=e.VueUiFunnel;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiHistoryPlot=e.VueUiHistoryPlot;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiPattern=e.VueUiPattern;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiScreenshot=e.VueUiScreenshot;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.abbreviate=e.abbreviate;exports.createSmoothPath=e.createSmoothPath;exports.createStraightPath=e.createStraightPath;exports.createTSpans=e.createTSpans;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.darkenColor=e.darkenColor;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;exports.lightenColor=e.lightenColor;exports.shiftColorHue=e.shiftColorHue;
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { ae as s, af as u, ag as V, ah as U, ai as r, aj as t, b9 as o, ak as l, b6 as n, al as b, bd as
|
|
2
|
+
import { ae as s, af as u, ag as V, ah as U, ai as r, aj as t, b9 as o, ak as l, b6 as n, al as b, bd as c, am as d, an as S, ao as m, ap as g, aq as C, ar as k, as as p, ba as h, at as T, au as P, b7 as D, av as f, bb as y, aw as H, ax as R, ay as A, az as W, aA as v, aB as x, aC as B, aD as F, bc as G, aE as M, aF as w, aG as L, aH as Q, aI as X, aJ as j, aK as z, aL as E, aM as I, aN as K, aO as N, aP as O, aQ as q, aR as J, aS as Y, aT as Z, b8 as _, aU as $, aV as aa, aW as ea, aX as ia, aY as sa, aZ as ua, a_ as Va, a$ as Ua, b0 as ra, b1 as ta, b2 as oa, b3 as la, b4 as na, b5 as ba, L as ca, T as da, S as Sa, a9 as ma, a6 as ga, be as Ca, bf as ka, bg as pa, bh as ha, bi as Ta, bj as Pa } from "./index-CFFS5fou.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Arrow,
|
|
5
5
|
u as VueDataUi,
|
|
@@ -11,18 +11,18 @@ export {
|
|
|
11
11
|
l as VueUiCandlestick,
|
|
12
12
|
n as VueUiCarouselTable,
|
|
13
13
|
b as VueUiChestnut,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
c as VueUiCirclePack,
|
|
15
|
+
d as VueUiCursor,
|
|
16
|
+
S as VueUiDashboard,
|
|
17
|
+
m as VueUiDigits,
|
|
18
18
|
g as VueUiDonut,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
C as VueUiDonutEvolution,
|
|
20
|
+
k as VueUiDumbbell,
|
|
21
|
+
p as VueUiFlow,
|
|
22
|
+
h as VueUiFunnel,
|
|
23
|
+
T as VueUiGalaxy,
|
|
24
|
+
P as VueUiGauge,
|
|
25
|
+
D as VueUiGizmo,
|
|
26
26
|
f as VueUiHeatmap,
|
|
27
27
|
y as VueUiHistoryPlot,
|
|
28
28
|
H as VueUiIcon,
|
|
@@ -65,13 +65,15 @@ export {
|
|
|
65
65
|
la as VueUiWordCloud,
|
|
66
66
|
na as VueUiXy,
|
|
67
67
|
ba as VueUiXyCanvas,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
ca as abbreviate,
|
|
69
|
+
da as createSmoothPath,
|
|
70
|
+
Sa as createStraightPath,
|
|
71
|
+
ma as createTSpans,
|
|
72
|
+
ga as createWordCloudDatasetFromPlainText,
|
|
71
73
|
Ca as darkenColor,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
ka as getPalette,
|
|
75
|
+
pa as getThemeConfig,
|
|
76
|
+
ha as getVueDataUiConfig,
|
|
77
|
+
Ta as lightenColor,
|
|
78
|
+
Pa as shiftColorHue
|
|
77
79
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as S, ref as T, watch as He, onMounted as Re, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as D, normalizeClass as Me, createBlock as G, createCommentVNode as y, createSlots as Ze, withCtx as O, renderSlot as j, normalizeProps as Y, guardReactiveProps as J, createVNode as qe, createElementVNode as u, Fragment as _, renderList as m, toDisplayString as P, mergeProps as Pe, createTextVNode as Xe, nextTick as Ye } from "vue";
|
|
2
|
-
import { u as Je, c as je, t as Ke, p as K, a as Qe, b as et, d as tt, o as lt, e as Q, g as re, l as U, m as Te, f as z, X as ot, s as g, h as ee, i as te, j as Se, k as le, n as A, q as st, r as at } from "./index-
|
|
3
|
-
import { _ as nt } from "./Title-
|
|
4
|
-
import { u as rt, U as ut } from "./usePrinter-
|
|
5
|
-
import it from "./vue-ui-skeleton-
|
|
6
|
-
import { D as dt } from "./DataTable-
|
|
7
|
-
import ct from "./vue-ui-accordion-
|
|
8
|
-
import { u as Oe } from "./useNestedProp-
|
|
9
|
-
import { _ as ht } from "./PackageVersion-
|
|
10
|
-
import { P as vt } from "./PenAndPaper-
|
|
2
|
+
import { u as Je, c as je, t as Ke, p as K, a as Qe, b as et, d as tt, o as lt, e as Q, g as re, l as U, m as Te, f as z, X as ot, s as g, h as ee, i as te, j as Se, k as le, n as A, q as st, r as at } from "./index-CFFS5fou.js";
|
|
3
|
+
import { _ as nt } from "./Title-CzrNFvru.js";
|
|
4
|
+
import { u as rt, U as ut } from "./usePrinter-V42TEKtB.js";
|
|
5
|
+
import it from "./vue-ui-skeleton-CE6Rhdwq.js";
|
|
6
|
+
import { D as dt } from "./DataTable-BgfkOnBv.js";
|
|
7
|
+
import ct from "./vue-ui-accordion-68aNqLIG.js";
|
|
8
|
+
import { u as Oe } from "./useNestedProp-WmGLMI7a.js";
|
|
9
|
+
import { _ as ht } from "./PackageVersion-D4qZn7kl.js";
|
|
10
|
+
import { P as vt } from "./PenAndPaper-BAQpQDGa.js";
|
|
11
11
|
import { u as ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { u as pt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
13
|
import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BkXUnRSw.cjs"),me=require("./Title-BMptuaY_.cjs"),oe=require("./usePrinter-pQdLIFcU.cjs"),ye=require("./vue-ui-skeleton-BQSnhKj4.cjs"),ge=require("./DataTable-zudSEeN9.cjs"),$e=require("./vue-ui-accordion-C0Xh8ENO.cjs"),ne=require("./useNestedProp-BeNFEsBg.cjs"),_e=require("./PackageVersion-C6rcQig3.cjs"),be=require("./PenAndPaper-DrtaW-dp.cjs"),Be=require("./useUserOptionState-BgepsfED.cjs"),xe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],we={key:1,style:"width:100%;background:transparent"},Ne=["xmlns","viewBox"],Ve=["width","height"],Fe=["id"],Se=["stop-color"],Me=["stop-color"],Pe=["id"],Oe=["stop-color"],Le=["stop-color"],De=["id"],Te=["stop-color"],ze=["stop-color"],je=["id"],Ae=["stop-color"],Ie=["stop-color"],We=["stop-color"],Ge={key:1},He=["id"],qe=["stop-color"],Ue=["stop-color"],Re=["id"],Xe=["stop-color"],Ze=["stop-color"],Ye=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["id"],et=["x","y","font-size","font-weight","fill"],tt=["x","y"],lt=["d","stroke"],ot=["d","stroke"],nt={key:4},rt={key:0},at=["stroke-dasharray","d","stroke","stroke-width"],st=["stroke-dasharray","d","stroke","stroke-width"],ut=["stroke-dasharray","d","stroke","stroke-width"],it=["stroke-dasharray","d","stroke","stroke-width"],ct={key:1},dt=["d","stroke","stroke-width","fill"],ht=["d","stroke","stroke-width","fill"],vt=["d","stroke","stroke-width","fill"],pt={key:2},ft=["d","fill","onMouseenter","onClick"],kt=["d","fill","onMouseenter","onClick"],mt=["d","fill","onMouseenter","onClick"],yt=["d","onMouseenter","onClick"],gt=["d"],$t=["d","stroke"],_t=["onClick"],bt=["stroke","d"],Bt=["cx","cy","fill","stroke"],xt=["x","y","width","height"],Ct={key:1},Et=["d","stroke"],wt=["d","fill","stroke"],Nt=["id"],Vt=["stop-color"],Ft=["stop-color"],St=["cx","cy","fill"],Mt=["cx","cy","fill"],Pt={key:0},Ot=["text-anchor","x","y","fill","font-size"],Lt=["text-anchor","x","y","fill","font-size"],Dt={key:2},Tt=["d","fill","stroke"],zt={key:5},jt={key:0},At=["stroke-dasharray","d","stroke","stroke-width"],It=["stroke-dasharray","d","stroke","stroke-width"],Wt=["stroke-dasharray","d","stroke","stroke-width"],Gt=["stroke-dasharray","d","stroke","stroke-width"],Ht=["d","stroke","stroke-width","fill"],qt=["d","stroke","stroke-width","fill"],Ut={key:1},Rt=["onClick"],Xt=["id"],Zt=["stop-color"],Yt=["stop-color"],Jt=["id"],Kt=["stop-color"],Qt=["stop-color"],el=["stop-color"],tl=["stop-color"],ll=["stop-color"],ol=["onMouseenter","onClick","d","fill"],nl=["onMouseenter","onClick","d"],rl=["onMouseenter","onClick","d","fill"],al=["onClick"],sl=["stroke","d"],ul=["cx","cy","fill","stroke"],il=["x","y","width","height"],cl={key:1},dl=["d","stroke"],hl=["d","fill","stroke"],vl=["id"],pl=["stop-color"],fl=["stop-color"],kl=["cx","cy","fill"],ml=["cx","cy","fill"],yl={key:0},gl=["text-anchor","x","y","fill","font-size"],$l=["text-anchor","x","y","fill","font-size"],_l={key:2},bl=["d","fill","stroke"],Bl={key:4,class:"vue-data-ui-watermark"},xl={key:6,ref:"source",dir:"auto"},Cl=["innerHTML"],El={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(re,{expose:ae,emit:se}){const{vue_ui_3d_bar:ue}=s.useConfig(),f=re,F=se,S=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(s.createUid()),ie=e.ref(null),z=e.ref(null),x=e.ref(!1),j=e.ref(0),A=e.ref(0),l=e.computed({get:()=>H(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:I,keepUserOptionState:W}=Be.useUserOptionState({config:l.value}),{svgRef:G}=xe.useChartAccessibility({config:l.value.style.chart.title});function H(){const a=ne.useNestedProp({userConfig:f.config,defaultConfig:ue});return a.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_3d_bar[a.theme]||f.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>f.config,a=>{l.value=H(),O.value=!l.value.userOptions.showOnChartHover,Z(),j.value+=1,A.value+=1,N.value.showTable=l.value.table.show},{deep:!0});const{isPrinting:q,isImaging:U,generatePdf:R,generateImage:X}=oe.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar",options:l.value.userOptions.print}),ce=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),N=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),n=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const a=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),r=f.dataset.series.map((o,u)=>({...o,id:s.createUid(),proportion:(o.value||0)/a,color:s.convertColorToHex(o.color)||ce.value[u]||s.palette[u]||s.palette[u%s.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<r.length;o+=1)t.push({...r[o],fill:de(c,r[o].proportion,r[o].breakdown,r[o].color)}),c+=r[o].proportion;return t}return null}),b=e.computed(()=>({right:`M${n.value.width/2},${n.value.top} ${n.value.width-n.value.right}, ${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,left:`M${n.value.width/2},${n.value.top} ${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,side:`M${n.value.width/2},${n.value.height-n.value.bottom} ${n.value.width/2},${n.value.top+n.value.perspective*2}`,topSides:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.width/2},${n.value.top+n.value.perspective*2} ${n.value.width-n.value.right},${n.value.top+n.value.perspective}`,tubeTop:`M${n.value.left},${n.value.top+n.value.perspective} C ${n.value.left},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top+n.value.perspective} C ${n.value.width-n.value.right},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective}`,tubeLeft:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`,tubeRight:`M${n.value.width-n.value.right},${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective}`,tubeBottom:`M${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} C ${n.value.width-n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{Z();let a=0,r=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=r+a,a+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function Z(){s.objectIsEmpty(f.dataset)?s.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((a,r)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(t=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:r})}),a.breakdown&&a.breakdown.forEach((t,c)=>{s.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${r} - ${c}`})})})}):s.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(a=>{s.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:a})})}function de(a,r,t,c){const o=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=n.value,d=p+o*a,T=i-d-v-o*r/2,pe=T>n.value.height/2?"top":"bottom",Q=64,fe=!!t;let ee=null,te=null;return fe&&(t=t.map((le,ke)=>({...le,value:le.value||0,color:s.lightenHexColor(c,ke/t.length)})),ee=s.makeDonut({series:t},u+n.value.absoluteWidth/4-14,pe==="top"?T-Q:T+Q,28,28,1.99999,2,1,360,105.25,14),te=s.makeDonut({series:t},u-y+20,i-d-v-o*r/2,6,6,1.99999,2,1,360,105.25,6)),{donut:ee,miniDonut:te,sidePointer:{x:u-y,y:i-d-v-o*r/2,topY:i-d-v-o*r,height:o*r},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*r,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${h}, ${i-d-v-o*r} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*r} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r}`,liningTopShade:`M${h},${i-d-v-o*r-.5} ${u/2},${i-d-o*r-.5} ${u-y},${i-d-v-o*r-.5}`,top:`M${u/2},${i-d-o*r} ${h},${i-d-v-o*r} ${u/2},${i-d-v*2-o*r} ${u-y},${i-d-v-o*r} Z`,tubeTop:`M${h},${i-d-o*r-v} C ${h},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v} C ${u-y},${i-d-o*r+v/2} ${h},${i-d-o*r+v/2} ${h},${i-d-o*r-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
|
|
2
2
|
${h},${i-d-o*r-v}
|
|
3
3
|
C ${h},${i-d-o*r+v/2}
|
|
4
4
|
${u-y},${i-d-o*r+v/2}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, createElementBlock as v, openBlock as u, createElementVNode as n, normalizeClass as $, normalizeStyle as p, createCommentVNode as O, renderSlot as c, createBlock as D, normalizeProps as i, mergeProps as N, guardReactiveProps as m } from "vue";
|
|
2
|
-
import w from "./BaseIcon-
|
|
3
|
-
import { u as x } from "./useNestedProp-
|
|
4
|
-
import { u as B, c as I } from "./index-
|
|
2
|
+
import w from "./BaseIcon-CZ5jKnR9.js";
|
|
3
|
+
import { u as x } from "./useNestedProp-WmGLMI7a.js";
|
|
4
|
+
import { u as B, c as I } from "./index-CFFS5fou.js";
|
|
5
5
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const F = ["id"], P = {
|
|
7
7
|
key: 0,
|