vue-data-ui 2.4.84 → 2.4.85

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.
Files changed (168) hide show
  1. package/dist/{Arrow-DCfmf5dA.cjs → Arrow-Ajt3NMEa.cjs} +1 -1
  2. package/dist/{Arrow-CExa0Dz7.js → Arrow-Qayb_B0s.js} +1 -1
  3. package/dist/{BaseIcon-I6DfuN0D.js → BaseIcon-B8U62FEj.js} +1 -1
  4. package/dist/{BaseIcon-64qWZUaJ.cjs → BaseIcon-BVrsMbvi.cjs} +1 -1
  5. package/dist/{DataTable-C_6KWwfC.cjs → DataTable-1PQD-SFb.cjs} +1 -1
  6. package/dist/{DataTable-DYhXzoFM.js → DataTable-C0tCPQ9i.js} +2 -2
  7. package/dist/{Legend-BkolTSZc.cjs → Legend-BJ2Wbqut.cjs} +1 -1
  8. package/dist/{Legend-D8VMKZ6f.js → Legend-BTpe6qQB.js} +2 -2
  9. package/dist/{PackageVersion-BV362f3w.cjs → PackageVersion-BjfedMsH.cjs} +1 -1
  10. package/dist/{PackageVersion-CO2IMTO9.js → PackageVersion-CENy3Lm2.js} +1 -1
  11. package/dist/{PenAndPaper-CnW2eqXw.js → PenAndPaper-Dr7ndoP_.js} +3 -3
  12. package/dist/{PenAndPaper-DvN8ocWC.cjs → PenAndPaper-nqRtAh6J.cjs} +1 -1
  13. package/dist/{Shape-VkiqMBJb.cjs → Shape-Boa32JEn.cjs} +1 -1
  14. package/dist/{Shape-Bit--n_P.js → Shape-zFv85Gc2.js} +1 -1
  15. package/dist/{Slicer-BIRZ38gw.js → Slicer-BUYuk07t.js} +2 -2
  16. package/dist/{Slicer-D8EYKe1g.cjs → Slicer-D6QLMg5N.cjs} +1 -1
  17. package/dist/{Title-C_gOJvlv.js → Title-CaET2xuF.js} +1 -1
  18. package/dist/{Title-BVwrrnjn.cjs → Title-DJUxOiaO.cjs} +1 -1
  19. package/dist/{Tooltip-Czv48jTt.js → Tooltip-Bkc4233T.js} +1 -1
  20. package/dist/{Tooltip-CfsfUzgu.cjs → Tooltip-C5QuW94e.cjs} +1 -1
  21. package/dist/{index-CFW17vb1.js → index-B7nCQFK0.js} +1 -1
  22. package/dist/{index-DtU3BvTq.cjs → index-COIn1phv.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-HPB1YHuD.js → useNestedProp-C9rlBRTT.js} +1 -1
  25. package/dist/{useNestedProp-Bwqm-3kz.cjs → useNestedProp-CbMuGGl3.cjs} +1 -1
  26. package/dist/{usePrinter-19frcFuH.js → usePrinter-CQMn1b4E.js} +1 -1
  27. package/dist/{usePrinter-CdEwyYTo.cjs → usePrinter-CXXfgFFN.cjs} +1 -1
  28. package/dist/{vue-data-ui-Cwa_3CUx.js → vue-data-ui-BnsKGbqb.js} +60 -60
  29. package/dist/{vue-data-ui-Do7J2TPn.cjs → vue-data-ui-Bu_VIHgr.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-BHQnk6JC.cjs → vue-ui-3d-bar-D39F2dKF.cjs} +1 -1
  33. package/dist/{vue-ui-3d-bar-DFyAJ8Js.js → vue-ui-3d-bar-V5FBS9MA.js} +9 -9
  34. package/dist/{vue-ui-accordion-B8vShfXi.js → vue-ui-accordion-B8ptB5BQ.js} +3 -3
  35. package/dist/{vue-ui-accordion-DP9u_TW0.cjs → vue-ui-accordion-CGlnNTr8.cjs} +1 -1
  36. package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-Dmve7QfH.js → vue-ui-age-pyramid-Bjp1R8Ku.js} +14 -12
  38. package/dist/{vue-ui-annotator-D9EQpzhs.cjs → vue-ui-annotator-BoWZZRPg.cjs} +1 -1
  39. package/dist/{vue-ui-annotator-BlXk3QBH.js → vue-ui-annotator-V9m5fTGG.js} +1 -1
  40. package/dist/{vue-ui-bullet-C_689DzY.js → vue-ui-bullet-Bqvb5PV-.js} +8 -8
  41. package/dist/{vue-ui-bullet-HVCVCTLU.cjs → vue-ui-bullet-DLIxlhFF.cjs} +1 -1
  42. package/dist/{vue-ui-candlestick-jaQCvTyL.cjs → vue-ui-candlestick-D4BD8LyJ.cjs} +2 -2
  43. package/dist/{vue-ui-candlestick-BeoPugFC.js → vue-ui-candlestick-DHCtmsh3.js} +72 -70
  44. package/dist/{vue-ui-carousel-table-DSJth2mn.js → vue-ui-carousel-table-Cn2RJkSb.js} +4 -4
  45. package/dist/{vue-ui-carousel-table-C6TjkSgb.cjs → vue-ui-carousel-table-VIuoh2QI.cjs} +1 -1
  46. package/dist/{vue-ui-chestnut-DYFaL9sS.js → vue-ui-chestnut-C5qUO1uK.js} +8 -8
  47. package/dist/{vue-ui-chestnut-B2ufyy3m.cjs → vue-ui-chestnut-ClG9HZoC.cjs} +1 -1
  48. package/dist/{vue-ui-cursor-B8ne66iS.cjs → vue-ui-cursor-Bo8et-dD.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-0SZiJ6tf.js → vue-ui-cursor-eJau3iyr.js} +2 -2
  50. package/dist/{vue-ui-dashboard-9JNDS8H_.js → vue-ui-dashboard-DnaH9bCw.js} +2 -2
  51. package/dist/{vue-ui-dashboard-Cc6YeOue.cjs → vue-ui-dashboard-WJqGQ8iR.cjs} +1 -1
  52. package/dist/{vue-ui-digits-DNyhJL4P.js → vue-ui-digits-Cqjts2eq.js} +2 -2
  53. package/dist/{vue-ui-digits-lJ7p7zK0.cjs → vue-ui-digits-qIckO4-r.cjs} +1 -1
  54. package/dist/vue-ui-donut-BP7yj2DU.cjs +1 -0
  55. package/dist/{vue-ui-donut-evolution-CNUN-Ibl.cjs → vue-ui-donut-evolution-Cz8uFJp8.cjs} +1 -1
  56. package/dist/{vue-ui-donut-evolution-BZgaPkPQ.js → vue-ui-donut-evolution-EzYvP11F.js} +11 -11
  57. package/dist/{vue-ui-donut-rUTpcnu6.js → vue-ui-donut-pprcnbIw.js} +17 -15
  58. package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-Dt0y6iAc.js → vue-ui-dumbbell-DaxcxmnU.js} +48 -46
  60. package/dist/{vue-ui-flow-CNJvuCPl.js → vue-ui-flow-DbRgaKBu.js} +9 -9
  61. package/dist/{vue-ui-flow-DoDnRTz2.cjs → vue-ui-flow-HeRCplGL.cjs} +1 -1
  62. package/dist/{vue-ui-funnel-CzxjqsPW.js → vue-ui-funnel-B2del8KB.js} +37 -35
  63. package/dist/vue-ui-funnel-DxniWNkD.cjs +1 -0
  64. package/dist/{vue-ui-galaxy-Bd3A40CM.cjs → vue-ui-galaxy-BDA64dud.cjs} +1 -1
  65. package/dist/{vue-ui-galaxy-4lQvAV3d.js → vue-ui-galaxy-pUYeASJf.js} +11 -11
  66. package/dist/vue-ui-gauge-BOXoAgWk.cjs +1 -0
  67. package/dist/{vue-ui-gauge-C-VzxGad.js → vue-ui-gauge-DpsXpEaW.js} +28 -26
  68. package/dist/{vue-ui-gizmo-CE_RL3QC.js → vue-ui-gizmo-BpYrhkon.js} +3 -3
  69. package/dist/{vue-ui-gizmo-C_H8YGW3.cjs → vue-ui-gizmo-Bq9uAmqd.cjs} +1 -1
  70. package/dist/{vue-ui-heatmap-9F3jF9Ph.cjs → vue-ui-heatmap-CbKgGLtN.cjs} +1 -1
  71. package/dist/{vue-ui-heatmap-GRSinjd8.js → vue-ui-heatmap-Cz6_9Veh.js} +10 -10
  72. package/dist/vue-ui-history-plot-BoMdvItE.cjs +1 -0
  73. package/dist/{vue-ui-history-plot-DmGaPsqO.js → vue-ui-history-plot-DAotUjSF.js} +56 -54
  74. package/dist/{vue-ui-kpi-BeGj6WIY.js → vue-ui-kpi-Ch2p7m-i.js} +3 -3
  75. package/dist/{vue-ui-kpi-Ce45VFCW.cjs → vue-ui-kpi-D6mp6EQ2.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-D3edtEz_.cjs → vue-ui-mini-loader-CO-KGVlC.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-DE8S92Sq.js → vue-ui-mini-loader-E13lmwfO.js} +2 -2
  78. package/dist/{vue-ui-molecule-B3DvbGKk.js → vue-ui-molecule-C69K6EPO.js} +11 -11
  79. package/dist/{vue-ui-molecule-CBXx1n83.cjs → vue-ui-molecule-CeoDnPXB.cjs} +1 -1
  80. package/dist/{vue-ui-mood-radar-LiiA0Dc-.cjs → vue-ui-mood-radar-BwOqQUuT.cjs} +1 -1
  81. package/dist/{vue-ui-mood-radar-D86fg_ce.js → vue-ui-mood-radar-DDtky572.js} +11 -11
  82. package/dist/{vue-ui-nested-donuts-jk4b-l4R.js → vue-ui-nested-donuts-AYPYIRrE.js} +16 -14
  83. package/dist/{vue-ui-nested-donuts-BXKM6dJG.cjs → vue-ui-nested-donuts-DMCd6DqT.cjs} +2 -2
  84. package/dist/{vue-ui-onion-DMDU5CNx.cjs → vue-ui-onion-BedLvfFe.cjs} +2 -2
  85. package/dist/{vue-ui-onion-0OpNltFd.js → vue-ui-onion-Bsa88sKK.js} +31 -29
  86. package/dist/{vue-ui-parallel-coordinate-plot-C6z7ZrZv.cjs → vue-ui-parallel-coordinate-plot-CSOMIABF.cjs} +2 -2
  87. package/dist/{vue-ui-parallel-coordinate-plot-CK1Npqa-.js → vue-ui-parallel-coordinate-plot-KCEb4iRs.js} +62 -60
  88. package/dist/vue-ui-quadrant-BXQVOvpY.cjs +1 -0
  89. package/dist/{vue-ui-quadrant-BTXxbgGe.js → vue-ui-quadrant-Bd_88Eht.js} +16 -14
  90. package/dist/{vue-ui-quick-chart-DxTYh43Q.js → vue-ui-quick-chart-CXAYKYHa.js} +55 -53
  91. package/dist/{vue-ui-quick-chart-C648x_Ta.cjs → vue-ui-quick-chart-dLItYwM_.cjs} +2 -2
  92. package/dist/vue-ui-radar-BuNtocmn.cjs +1 -0
  93. package/dist/{vue-ui-radar-ogrYz2LM.js → vue-ui-radar-De397oTB.js} +100 -98
  94. package/dist/{vue-ui-rating-BA3qzlLU.cjs → vue-ui-rating-BjiMVoyX.cjs} +1 -1
  95. package/dist/{vue-ui-rating-BDOw91i1.js → vue-ui-rating-wK3_ZWE5.js} +2 -2
  96. package/dist/vue-ui-relation-circle-BEGyr1h-.cjs +1 -0
  97. package/dist/{vue-ui-relation-circle-DzIUtPsI.js → vue-ui-relation-circle-BxlK8MVs.js} +56 -54
  98. package/dist/{vue-ui-rings-ZT5FspBJ.js → vue-ui-rings-BXrtMSML.js} +39 -37
  99. package/dist/{vue-ui-rings-CC2lRhXV.cjs → vue-ui-rings-BcNMBXxq.cjs} +2 -2
  100. package/dist/{vue-ui-scatter-DWrEQi8R.js → vue-ui-scatter-BWZfLJ9P.js} +52 -50
  101. package/dist/vue-ui-scatter-DTy3yPVu.cjs +1 -0
  102. package/dist/{vue-ui-screenshot-C5qnoqpN.cjs → vue-ui-screenshot-BJgOwFMW.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-Cu9IDDlN.js → vue-ui-screenshot-hw4PC9Uu.js} +1 -1
  104. package/dist/{vue-ui-skeleton-BJjc2poJ.cjs → vue-ui-skeleton-BIqMxXV7.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-RRyod9qq.js → vue-ui-skeleton-D66ZIUln.js} +3 -3
  106. package/dist/{vue-ui-smiley-Ph-v2-Ai.js → vue-ui-smiley-DWPYdcDB.js} +2 -2
  107. package/dist/{vue-ui-smiley-y9nTUBhA.cjs → vue-ui-smiley-Duy5Xo-j.cjs} +1 -1
  108. package/dist/{vue-ui-spark-trend-Bny5SJnu.js → vue-ui-spark-trend-Ce4IaqPz.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-CLToG1xM.cjs → vue-ui-spark-trend-DP5foaNi.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-XuIl0I-2.cjs → vue-ui-sparkbar-Bbns4V16.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-Cte6J2j-.js → vue-ui-sparkbar-Fa-Kc9Fr.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-85UuRRgo.cjs → vue-ui-sparkgauge-BrLrvNLH.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-NGpDEiOA.js → vue-ui-sparkgauge-DUWcJ7cM.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-g9PwZ66_.cjs → vue-ui-sparkhistogram-B0rhs_UN.cjs} +1 -1
  115. package/dist/{vue-ui-sparkhistogram-DC6GQfGG.js → vue-ui-sparkhistogram-PgC-c-5a.js} +5 -5
  116. package/dist/{vue-ui-sparkline-Cv0OStNn.js → vue-ui-sparkline-BqNlrKjb.js} +37 -35
  117. package/dist/vue-ui-sparkline-c5Awoj8J.cjs +1 -0
  118. package/dist/{vue-ui-sparkstackbar-Dvi0gC4_.cjs → vue-ui-sparkstackbar-BmYIcpVZ.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-lUSVcaQd.js → vue-ui-sparkstackbar-DyJIUulr.js} +5 -5
  120. package/dist/{vue-ui-stackbar-CqbbJfYt.js → vue-ui-stackbar-BebRtOYL.js} +55 -53
  121. package/dist/{vue-ui-stackbar-DjJtIsdz.cjs → vue-ui-stackbar-DJ9NH_l1.cjs} +2 -2
  122. package/dist/{vue-ui-strip-plot-BCg5ReEr.js → vue-ui-strip-plot-BGHj1BHd.js} +77 -75
  123. package/dist/vue-ui-strip-plot-f7vejZht.cjs +1 -0
  124. package/dist/{vue-ui-table-BLtxfmhY.cjs → vue-ui-table-BFdGppRF.cjs} +1 -1
  125. package/dist/{vue-ui-table-C0gtq240.js → vue-ui-table-ClPMKcMn.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-Df4MQoU-.cjs → vue-ui-table-heatmap-B7wTjM-H.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-QuqCtJWs.js → vue-ui-table-heatmap-DVQtPt-M.js} +4 -4
  128. package/dist/{vue-ui-table-sparkline-CUD-P2XB.cjs → vue-ui-table-sparkline-DaKODjfM.cjs} +1 -1
  129. package/dist/{vue-ui-table-sparkline-Cgt7aEwb.js → vue-ui-table-sparkline-DjxKXWQm.js} +5 -5
  130. package/dist/{vue-ui-thermometer-Dmba_BQM.js → vue-ui-thermometer-CV_9k37V.js} +7 -7
  131. package/dist/{vue-ui-thermometer-DwFIhO9V.cjs → vue-ui-thermometer-DE9r0emf.cjs} +1 -1
  132. package/dist/{vue-ui-timer-C7B7kC_T.js → vue-ui-timer-2w5Ayq7G.js} +35 -33
  133. package/dist/vue-ui-timer-Ct-KYWSX.cjs +64 -0
  134. package/dist/{vue-ui-tiremarks-D5xKuhfo.js → vue-ui-tiremarks-BJnh0GBj.js} +7 -7
  135. package/dist/{vue-ui-tiremarks-Cbu6E711.cjs → vue-ui-tiremarks-Cf04zARl.cjs} +1 -1
  136. package/dist/{vue-ui-treemap-4MV0XnQk.js → vue-ui-treemap-BD546LBi.js} +37 -35
  137. package/dist/vue-ui-treemap-D0vi4bv4.cjs +1 -0
  138. package/dist/{vue-ui-vertical-bar-CoReGxcB.cjs → vue-ui-vertical-bar-D3QKHHnS.cjs} +2 -2
  139. package/dist/{vue-ui-vertical-bar-CXyj54xk.js → vue-ui-vertical-bar-E5CTb1Bd.js} +53 -51
  140. package/dist/{vue-ui-waffle-DEs7x_2T.js → vue-ui-waffle-BAJIMbZK.js} +50 -48
  141. package/dist/vue-ui-waffle-BL0e3Yeq.cjs +1 -0
  142. package/dist/{vue-ui-wheel-g8X99gKX.js → vue-ui-wheel-CPPLUSFq.js} +22 -20
  143. package/dist/vue-ui-wheel-Dy_B7BTG.cjs +1 -0
  144. package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-CVa0GWD2.js → vue-ui-word-cloud-BVZcDY7m.js} +47 -45
  146. package/dist/vue-ui-xy-D4hRtHAi.cjs +3 -0
  147. package/dist/{vue-ui-xy-canvas-B8lWHhig.cjs → vue-ui-xy-canvas-BSZTrqci.cjs} +2 -2
  148. package/dist/{vue-ui-xy-canvas-C5WvLq7x.js → vue-ui-xy-canvas-DFUfTZwz.js} +36 -34
  149. package/dist/{vue-ui-xy-BGlQK1KX.js → vue-ui-xy-tB-6IP2y.js} +18 -16
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-DZM35V2u.cjs +0 -1
  152. package/dist/vue-ui-donut-B1pUA9f9.cjs +0 -1
  153. package/dist/vue-ui-dumbbell-Cvsoh0T7.cjs +0 -9
  154. package/dist/vue-ui-funnel-BuMkpJAC.cjs +0 -1
  155. package/dist/vue-ui-gauge-BE_j4sWG.cjs +0 -1
  156. package/dist/vue-ui-history-plot-CCRPcG-q.cjs +0 -1
  157. package/dist/vue-ui-quadrant-BseIxY55.cjs +0 -1
  158. package/dist/vue-ui-radar-BRL3W3Na.cjs +0 -1
  159. package/dist/vue-ui-relation-circle-lh7NE0h5.cjs +0 -1
  160. package/dist/vue-ui-scatter-ebuihNvY.cjs +0 -1
  161. package/dist/vue-ui-sparkline-BiqTIIb1.cjs +0 -1
  162. package/dist/vue-ui-strip-plot-y7iID0n4.cjs +0 -1
  163. package/dist/vue-ui-timer-mYvuMMWA.cjs +0 -64
  164. package/dist/vue-ui-treemap-CE67vTLK.cjs +0 -1
  165. package/dist/vue-ui-waffle-8nA0-Wb6.cjs +0 -1
  166. package/dist/vue-ui-wheel-CJr7fA0P.cjs +0 -1
  167. package/dist/vue-ui-word-cloud-B6swJJCN.cjs +0 -1
  168. package/dist/vue-ui-xy-lkMHpHRs.cjs +0 -3
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-DtU3BvTq.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-COIn1phv.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
2
2
  <defs>
3
3
  <marker
4
4
  id="${e.id}"
@@ -1,6 +1,6 @@
1
1
  import p from "./html2canvas.esm-d2sM-0Wm.js";
2
2
  import { E as _ } from "./jspdf.es.min-C660YX78.js";
3
- import { z as v, u as w, A, B as M } from "./index-CFW17vb1.js";
3
+ import { z as v, u as w, A, B as M } from "./index-B7nCQFK0.js";
4
4
  import { openBlock as d, createElementBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, normalizeClass as y, createCommentVNode as a, withDirectives as f, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G, createStaticVNode as N, pushScopeId as m, popScopeId as T } from "vue";
5
5
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const D = {
@@ -1,12 +1,12 @@
1
1
  import { ref as d, computed as g, onMounted as de, watch as J, onBeforeUnmount as ge, openBlock as r, createElementBlock as o, normalizeClass as K, normalizeStyle as I, unref as u, createBlock as k, createCommentVNode as i, createSlots as fe, withCtx as w, renderSlot as f, normalizeProps as H, guardReactiveProps as M, createVNode as me, Fragment as T, renderList as U, createElementVNode as x, toDisplayString as L } from "vue";
2
- import { u as ye, o as pe, e as Q, g as be, c as ke, l as we, D as xe, d as _e, i as $, f as B, X as Ce, t as Le } from "./index-CFW17vb1.js";
3
- import { u as Z } from "./useNestedProp-HPB1YHuD.js";
4
- import { _ as $e } from "./Title-C_gOJvlv.js";
5
- import { L as Be } from "./Legend-D8VMKZ6f.js";
6
- import { u as Oe, U as Ae } from "./usePrinter-19frcFuH.js";
7
- import { _ as Pe } from "./PackageVersion-CO2IMTO9.js";
8
- import { P as Fe } from "./PenAndPaper-CnW2eqXw.js";
9
- import Se from "./vue-ui-skeleton-RRyod9qq.js";
2
+ import { u as ye, o as pe, e as Q, g as be, c as ke, l as we, D as xe, d as _e, i as $, f as B, X as Ce, t as Le } from "./index-B7nCQFK0.js";
3
+ import { u as Z } from "./useNestedProp-C9rlBRTT.js";
4
+ import { _ as $e } from "./Title-CaET2xuF.js";
5
+ import { L as Be } from "./Legend-BTpe6qQB.js";
6
+ import { u as Oe, U as Ae } from "./usePrinter-CQMn1b4E.js";
7
+ import { _ as Pe } from "./PackageVersion-CENy3Lm2.js";
8
+ import { P as Fe } from "./PenAndPaper-Dr7ndoP_.js";
9
+ import Se from "./vue-ui-skeleton-D66ZIUln.js";
10
10
  import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
11
11
  import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const Me = ["id"], Te = {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DtU3BvTq.cjs"),A=require("./useNestedProp-Bwqm-3kz.cjs"),Y=require("./Title-BVwrrnjn.cjs"),J=require("./Legend-BkolTSZc.cjs"),F=require("./usePrinter-CdEwyYTo.cjs"),K=require("./PackageVersion-BV362f3w.cjs"),Q=require("./PenAndPaper-DvN8ocWC.cjs"),Z=require("./vue-ui-skeleton-BJjc2poJ.cjs"),ee=require("./useUserOptionState-BgepsfED.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],le={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},re=["xmlns","viewBox"],oe=["width","height"],se={key:1},ne=["x","y","height","width","fill","stroke"],ue=["x","y","height","width","rx","fill","stroke","stroke-width"],ie=["x","y","height","width","fill","stroke","stroke-width"],ce=["x","y","font-size","font-weight","fill"],de=["x","y","height","width","rx","fill","stroke","stroke-width"],he={key:3},ve=["x","y","fill","font-size","font-weight"],me={key:4},ge=["x1","x2","y1","y2","stroke"],fe={key:5,class:"vue-data-ui-watermark"},ye={class:"vue-ui-bullet-legend-item",dir:"auto"},pe={style:{"margin-right":"2px"}},ke={key:7,ref:"source",dir:"auto"},be={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:I}){const n=z,{vue_ui_bullet:H}=s.useConfig(),y=e.ref(null),T=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),d=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-COIn1phv.cjs"),A=require("./useNestedProp-CbMuGGl3.cjs"),Y=require("./Title-DJUxOiaO.cjs"),J=require("./Legend-BJ2Wbqut.cjs"),F=require("./usePrinter-CXXfgFFN.cjs"),K=require("./PackageVersion-BjfedMsH.cjs"),Q=require("./PenAndPaper-nqRtAh6J.cjs"),Z=require("./vue-ui-skeleton-BIqMxXV7.cjs"),ee=require("./useUserOptionState-BgepsfED.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],le={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},re=["xmlns","viewBox"],oe=["width","height"],se={key:1},ne=["x","y","height","width","fill","stroke"],ue=["x","y","height","width","rx","fill","stroke","stroke-width"],ie=["x","y","height","width","fill","stroke","stroke-width"],ce=["x","y","font-size","font-weight","fill"],de=["x","y","height","width","rx","fill","stroke","stroke-width"],he={key:3},ve=["x","y","fill","font-size","font-weight"],me={key:4},ge=["x1","x2","y1","y2","stroke"],fe={key:5,class:"vue-data-ui-watermark"},ye={class:"vue-ui-bullet-legend-item",dir:"auto"},pe={style:{"margin-right":"2px"}},ke={key:7,ref:"source",dir:"auto"},be={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:I}){const n=z,{vue_ui_bullet:H}=s.useConfig(),y=e.ref(null),T=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),d=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
2
2
 
3
3
  segments: [
4
4
  {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DtU3BvTq.cjs"),ie=require("./useResponsive-BJ7DTGpm.cjs"),_e=require("./Title-BVwrrnjn.cjs"),de=require("./usePrinter-CdEwyYTo.cjs"),ze=require("./Tooltip-CfsfUzgu.cjs"),Ve=require("./DataTable-C_6KWwfC.cjs"),Ee=require("./vue-ui-skeleton-BJjc2poJ.cjs"),Te=require("./Slicer-D8EYKe1g.cjs"),Ae=require("./vue-ui-accordion-DP9u_TW0.cjs"),ce=require("./useNestedProp-Bwqm-3kz.cjs"),Fe=require("./PackageVersion-BV362f3w.cjs"),Ie=require("./PenAndPaper-DvN8ocWC.cjs"),Pe=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=["id"],Oe=["xmlns","viewBox"],Ue=["x","y","width","height"],De={key:1},Me=["id"],qe=["stop-color"],He=["stop-color"],We=["stop-color"],Ge=["id"],je=["stop-color"],Xe=["stop-color"],Ye=["stop-color"],Je={key:0},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["x1","x2","y1","y2","stroke","stroke-width"],Ze={key:1},et=["x1","x2","y1","y2","stroke","stroke-width"],tt=["x","y","font-size","fill","font-weight"],lt={key:2},ot=["transform","text-anchor","font-size","fill","font-weight"],at=["x1","x2","y1","y2","stroke","stroke-width"],nt={key:0},ut=["cx","cy","r","fill"],st=["cx","cy","r","fill"],rt={key:1},it=["x1","x2","y1","y2","stroke","stroke-width"],dt=["x1","x2","y1","y2","stroke","stroke-width"],ct=["x","y","height","width","fill","rx"],vt=["x","y","height","width","fill","rx","stroke","stroke-width"],yt=["x","y","height","width","fill","onMouseover"],ht={key:5,class:"vue-data-ui-watermark"},pt=["innerHTML"],ft={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(f,{expose:ve}){const d=f,{vue_ui_candlestick:ye}=u.useConfig(),b=e.computed(()=>!!d.dataset&&d.dataset.length),h=e.ref(u.createUid()),he=e.ref(null),V=e.ref(!1),E=e.ref(""),T=e.ref(void 0),L=e.ref(0),g=e.ref(null),R=e.ref(null),O=e.ref(null),U=e.ref(null),D=e.ref(null),M=e.ref(null),C=e.ref(0),q=e.ref(0),H=e.ref(0),t=e.computed({get:()=>j(),set:l=>l}),{userOptionsVisible:A,setUserOptionsVisibility:W,keepUserOptionState:G}=Pe.useUserOptionState({config:t.value});function j(){const l=ce.useNestedProp({userConfig:d.config,defaultConfig:ye});let a={};return l.theme?a={...ce.useNestedProp({userConfig:u.themes.vue_ui_candlestick[l.theme]||d.config,defaultConfig:l})}:a=l,d.config&&u.hasDeepProperty(d.config,"style.zoom.startIndex")?a.style.zoom.startIndex=d.config.style.zoom.startIndex:a.style.zoom.startIndex=null,d.config&&u.hasDeepProperty(d.config,"style.zoom.endIndex")?a.style.zoom.endIndex=d.config.style.zoom.endIndex:a.style.zoom.endIndex=null,a}e.watch(()=>d.config,l=>{t.value=j(),A.value=!t.value.showOnChartHover,X(),C.value+=1,H.value+=1,q.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{c.value.start=0,c.value.end=l.length,C.value+=1},{deep:!0});const i=e.ref({height:t.value.style.height,width:t.value.style.width,xAxisFontSize:t.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:t.value.style.layout.grid.yAxis.dataLabels.fontSize}),N=e.ref(null);e.onMounted(()=>{X()});function X(){if(u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiCandlestick",type:"dataset"}),t.value.responsive){const l=ie.throttle(()=>{const{width:a,height:o}=ie.useResponsive({chart:g.value,title:t.value.style.title.text?R.value:null,slicer:U.value,legend:O.value,source:D.value,noTitle:M.value});i.value.width=a,i.value.height=o,i.value.xAxisFontSize=u.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),i.value.yAxisFontSize=u.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})});N.value=new ResizeObserver(l),N.value.observe(g.value.parentNode)}te()}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=de.usePrinter({elementId:`vue-ui-candlestick_${h.value}`,fileName:t.value.style.title.text||"vue-ui-candlestick"}),pe=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),s=e.computed(()=>{const{top:l,right:a,bottom:o,left:n}=t.value.style.layout.padding;return{top:l,right:i.value.width-a,left:n,bottom:i.value.height-o,width:i.value.width-n-a,height:i.value.height-l-o}}),w=e.computed(()=>d.dataset.length),c=e.ref({start:0,end:w.value}),Z=e.computed(()=>d.dataset.slice(c.value.start,c.value.end)),F=e.computed(()=>(d.dataset.forEach((l,a)=>{[null,void 0].includes(l[0])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:a}),[null,void 0].includes(l[1])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:a}),[null,void 0].includes(l[2])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:a}),[null,void 0].includes(l[3])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:a}),[null,void 0].includes(l[4])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:a}),[null,void 0].includes(l[5])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:a})}),Z.value.map(l=>({period:l[0],open:l[1],high:l[2],low:l[3],last:l[4],volume:l[5]})))),r=e.computed(()=>s.value.width/Z.value.length),ee=e.computed(()=>({max:Math.max(...F.value.map(l=>l.high)),min:0})),m=e.computed(()=>u.calculateNiceScale(ee.value.min,ee.value.max,t.value.style.layout.grid.yAxis.dataLabels.steps));function $(l,a){return{...l,x:u.checkNaN(s.value.left+a*r.value+r.value/2),y:u.checkNaN(s.value.top+(1-l/m.value.max)*s.value.height),value:u.checkNaN(l)}}const v=e.computed(()=>F.value.map((l,a)=>{const o=$(l.open,a),n=$(l.high,a),y=$(l.low,a),_=$(l.last,a),z=l.last>l.open;return{period:l.period,open:o,high:n,low:y,last:_,volume:l.volume,isBullish:z}}));function fe(l){return u.checkNaN(l/m.value.max)}const me=e.computed(()=>m.value.ticks.map(l=>({y:s.value.bottom-s.value.height*fe(l),value:u.checkNaN(l)}))),ge=e.computed(()=>F.value.map(l=>l.period)),I=e.ref(null);function ke(l,a){T.value=l,I.value={datapoint:a,seriesIndex:l,series:v.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:v.value,config:t.value})))E.value=o({seriesIndex:l,datapoint:a,series:v.value,config:t.value});else if(t.value.style.tooltip.show){let n="";const{period:y,open:_,high:z,low:ne,last:ue,volume:se,isBullish:re}=v.value[l],{period:gt,open:Ce,high:Ne,low:$e,last:Se,volume:Be}=t.value.translations;n+=`<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${t.value.style.layout.candle.borderRadius*3}" stroke="${t.value.style.layout.candle.stroke}" stroke-width="${t.value.style.layout.candle.strokeWidth}"
2
- fill="${t.value.style.layout.candle.gradient.show?re?`url(#bullish_gradient_${h.value})`:`url(#bearish_gradient_${h.value})`:re?t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.colors.bearish}"/></svg>${y}</div>`,n+=`${Be} : <b>${isNaN(se)?"-":Number(se.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()}</b>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,n+=`<div>${Ce}: <b>${t.value.style.tooltip.prefix} ${isNaN(_.value)?"-":Number(_.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${Ne}: <b>${t.value.style.tooltip.prefix} ${isNaN(z.value)?"-":Number(z.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${$e}: <b>${t.value.style.tooltip.prefix} ${isNaN(ne.value)?"-":Number(ne.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${Se}: <b>${t.value.style.tooltip.prefix} ${isNaN(ue.value)?"-":Number(ue.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+="</div>",E.value=`<div style="text-align:right">${n}</div>`}V.value=!0}function xe(){te()}const k=e.ref(null);async function te(){(t.value.style.zoom.startIndex!==null||t.value.style.zoom.endIndex!==null)&&k.value?(t.value.style.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),k.value&&k.value.setStartValue(t.value.style.zoom.startIndex)),t.value.style.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),k.value&&k.value.setEndValue(be(t.value.style.zoom.endIndex+1)))):(c.value={start:0,end:w.value},C.value+=1)}function be(l){const a=w.value;return l>a?a:l<0||t.value.style.zoom.startIndex!==null&&l<t.value.style.zoom.startIndex?t.value.style.zoom.startIndex!==null?t.value.style.zoom.startIndex+1:1:l}function le(){e.nextTick(()=>{const l=[t.value.translations.period,t.value.translations.open,t.value.translations.high,t.value.translations.low,t.value.translations.last,t.value.translations.volume],a=v.value.map(y=>[y.period,y.open.value,y.high.value,y.low.value,y.last.value,y.volume]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(a),n=u.createCsvContent(o);u.downloadCsv({csvContent:n,title:t.value.style.title.text||"vue-ui-candlestick"})})}const S=e.computed(()=>{const l=v.value.map(n=>[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${t.value.style.layout.candle.borderRadius*3}" fill="${t.value.style.layout.candle.gradient.show?n.isBullish?`url(#bullish_gradient_${h.value}`:`url(#bearish_gradient_${h.value})`:n.isBullish?t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.colors.bearish}"/></svg> ${n.period}`,`${t.value.table.td.prefix} ${isNaN(n.open.value)?"-":Number(n.open.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.high.value)?"-":Number(n.high.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.low.value)?"-":Number(n.low.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.last.value)?"-":Number(n.last.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${isNaN(n.volume)?"-":n.volume.toLocaleString()}`]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},o=[t.value.translations.period,t.value.translations.open,t.value.translations.high,t.value.translations.low,t.value.translations.last,t.value.translations.volume];return{head:o,body:l,config:a,colNames:o}}),x=e.ref(!1);function we(l){x.value=l,L.value+=1}function oe(){p.value.showTable=!p.value.showTable}function ae(){p.value.showTooltip=!p.value.showTooltip}const B=e.ref(!1);function P(){B.value=!B.value}return ve({generatePdf:K,generateCsv:le,generateImage:Q,toggleTable:oe,toggleTooltip:ae,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"candlestickChart",ref:g,class:e.normalizeClass(`vue-ui-candlestick ${x.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`position:relative;font-family:${t.value.style.fontFamily}; text-align:center;background:${t.value.style.backgroundColor}; ${t.value.responsive?"height: 100%":""}`),id:`vue-ui-candlestick_${h.value}`,onMouseenter:a[4]||(a[4]=()=>e.unref(W)(!0)),onMouseleave:a[5]||(a[5]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:B.value,onClose:P},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),pe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:R,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(_e._sfc_main,{key:`title_${H.value}`,config:{title:{cy:"candlestick-div-title",...t.value.style.title},subtitle:{cy:"candlestick-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(G)||e.unref(A))?(e.openBlock(),e.createBlock(de.UserOptions,{ref_key:"details",ref:he,key:`user_options_${L.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(J),isPrinting:e.unref(Y),uid:h.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:x.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:we,onGeneratePdf:e.unref(K),onGenerateCsv:le,onGenerateImage:e.unref(Q),onToggleTable:oe,onToggleTooltip:ae,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(G)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${i.value.width<=0?10:i.value.width} ${i.value.height<=0?10:i.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Fe._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.value.left,y:s.value.top,width:s.value.width,height:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ue)):e.createCommentVNode("",!0),v.value.length>0?(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`bearish_gradient_${h.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.candle.colors.bearish},null,8,qe),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bearish,.02)}DE`},null,8,He),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bearish,.05)}66`},null,8,We)],8,Me),e.createElementVNode("linearGradient",{id:`bullish_gradient_${h.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.candle.colors.bullish},null,8,je),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bullish,.02)}DE`},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bullish,.05)}66`},null,8,Ye)],8,Ge)]),t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Je,[e.createElementVNode("line",{x1:s.value.left,x2:s.value.left,y1:s.value.top,y2:s.value.bottom,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:s.value.left,x2:s.value.right,y1:s.value.bottom,y2:s.value.bottom,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Qe)])):e.createCommentVNode("",!0),t.value.style.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value>=m.value.min&&o.value<=m.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value.left,x2:s.value.left-5,y1:o.y,y2:o.y,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,et)):e.createCommentVNode("",!0),o.value>=m.value.min&&o.value<=m.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.value.left-8+t.value.style.layout.grid.yAxis.dataLabels.offsetX,y:o.y+i.value.yAxisFontSize/3,"font-size":i.value.yAxisFontSize,"text-anchor":"end",fill:t.value.style.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.grid.yAxis.dataLabels.prefix)+" "+e.toDisplayString(e.unref(u.canShowValue)(o.value)?o.value.toFixed(t.value.style.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+e.toDisplayString(t.value.style.layout.grid.yAxis.dataLabels.suffix),9,tt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.value.style.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ge.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{transform:`translate(${s.value.left+r.value*n+r.value/2}, ${s.value.bottom+i.value.xAxisFontSize*2+t.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${t.value.style.layout.grid.xAxis.dataLabels.rotation})`,"text-anchor":t.value.style.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":i.value.xAxisFontSize,fill:t.value.style.layout.grid.xAxis.dataLabels.color,"font-weight":t.value.style.layout.grid.xAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(o),9,ot)]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:o.open.x,x2:o.open.x,y1:o.high.y,y2:o.low.y,stroke:t.value.style.layout.wick.stroke,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,at),t.value.style.layout.wick.extremity.shape==="circle"?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("circle",{cx:o.high.x,cy:o.high.y,r:t.value.style.layout.wick.extremity.size==="auto"?r.value/20:t.value.style.layout.wick.extremity.size,fill:t.value.style.layout.wick.extremity.color},null,8,ut),e.createElementVNode("circle",{cx:o.low.x,cy:o.low.y,r:t.value.style.layout.wick.extremity.size==="auto"?r.value/20:t.value.style.layout.wick.extremity.size,fill:t.value.style.layout.wick.extremity.color},null,8,st)])):e.createCommentVNode("",!0),t.value.style.layout.wick.extremity.shape==="line"?(e.openBlock(),e.createElementBlock("g",rt,[e.createElementVNode("line",{x1:o.high.x-(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,x2:o.high.x+(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,y1:o.high.y,y2:o.high.y,stroke:t.value.style.layout.wick.extremity.color,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,it),e.createElementVNode("line",{x1:o.low.x-(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,x2:o.low.x+(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,y1:o.low.y,y2:o.low.y,stroke:t.value.style.layout.wick.extremity.color,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,dt)])):e.createCommentVNode("",!0)]))),256))]),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:o.open.x-r.value/2+r.value*(1-t.value.style.layout.candle.widthRatio)/2,y:o.isBullish?o.last.y:o.open.y,height:Math.abs(o.last.y-o.open.y)<=0?1e-4:Math.abs(o.last.y-o.open.y),width:r.value*t.value.style.layout.candle.widthRatio<=0?1e-4:r.value*t.value.style.layout.candle.widthRatio,fill:t.value.style.layout.candle.gradient.underlayer,rx:t.value.style.layout.candle.borderRadius,stroke:"none"},null,8,ct))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:o.open.x-r.value/2+r.value*(1-t.value.style.layout.candle.widthRatio)/2,y:o.isBullish?o.last.y:o.open.y,height:Math.abs(o.last.y-o.open.y)<=0?1e-4:Math.abs(o.last.y-o.open.y),width:r.value*t.value.style.layout.candle.widthRatio<=0?1e-4:r.value*t.value.style.layout.candle.widthRatio,fill:o.isBullish?t.value.style.layout.candle.gradient.show?`url(#bullish_gradient_${h.value})`:t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.gradient.show?`url(#bearish_gradient_${h.value})`:t.value.style.layout.candle.colors.bearish,rx:t.value.style.layout.candle.borderRadius,stroke:t.value.style.layout.candle.stroke,"stroke-width":t.value.style.layout.candle.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,vt))),256))]),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value.left+n*r.value,y:s.value.top,height:s.value.height<=0?1e-4:s.value.height,width:r.value<=0?1e-4:r.value,fill:T.value===n?e.unref(u.setOpacity)(t.value.style.layout.selector.color,t.value.style.layout.selector.opacity):"transparent",onMouseover:y=>ke(n,o),onMouseleave:a[0]||(a[0]=y=>{T.value=void 0,V.value=!1})},null,40,yt))),256))])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:i.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ht,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ee.default,{key:6,config:{type:"candlesticks",style:{backgroundColor:t.value.style.backgroundColor,candlesticks:{axis:{color:"#CCCCCC"},candle:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.zoom.show&&b.value?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"chartSlicer",ref:U},[(e.openBlock(),e.createBlock(Te.Slicer,{ref_key:"slicerComponent",ref:k,key:`slicer_${C.value}`,background:t.value.style.zoom.color,borderColor:t.value.style.backgroundColor,fontSize:t.value.style.zoom.fontSize,useResetSlot:t.value.style.zoom.useResetSlot,labelLeft:f.dataset[c.value.start]?f.dataset[c.value.start][0]:f.dataset[0][0],labelRight:f.dataset[c.value.end-1]?f.dataset[c.value.end-1][0]:f.dataset.at(-1)[0],textColor:t.value.style.color,inputColor:t.value.style.zoom.color,selectColor:t.value.style.zoom.highlightColor,max:w.value,min:0,valueStart:c.value.start,valueEnd:c.value.end,start:c.value.start,"onUpdate:start":a[1]||(a[1]=o=>c.value.start=o),end:c.value.end,"onUpdate:end":a[2]||(a[2]=o=>c.value.end=o),refreshStartPoint:t.value.style.zoom.startIndex!==null?t.value.style.zoom.startIndex:0,refreshEndPoint:t.value.style.zoom.endIndex!==null?t.value.style.zoom.endIndex+1:w.value,enableRangeHandles:t.value.style.zoom.enableRangeHandles,enableSelectionDrag:t.value.style.zoom.enableSelectionDrag,onReset:xe},{"reset-action":e.withCtx(({reset:o})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:o})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"]))],512)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[e.renderSlot(l.$slots,"legend",{legend:v.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:D,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:p.value.showTooltip&&V.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:g.value,content:E.value,isFullscreen:x.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),b.value?(e.openBlock(),e.createBlock(Ae.default,{key:9,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ve.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:a[3]||(a[3]=o=>p.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createElementVNode("div",{innerHTML:o},null,8,pt)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Re))}},mt=Le._export_sfc(ft,[["__scopeId","data-v-744b9b91"]]);exports.default=mt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-COIn1phv.cjs"),ie=require("./useResponsive-BJ7DTGpm.cjs"),_e=require("./Title-DJUxOiaO.cjs"),de=require("./usePrinter-CXXfgFFN.cjs"),ze=require("./Tooltip-C5QuW94e.cjs"),Ve=require("./DataTable-1PQD-SFb.cjs"),Ee=require("./vue-ui-skeleton-BIqMxXV7.cjs"),Te=require("./Slicer-D6QLMg5N.cjs"),Ae=require("./vue-ui-accordion-CGlnNTr8.cjs"),ce=require("./useNestedProp-CbMuGGl3.cjs"),Fe=require("./PackageVersion-BjfedMsH.cjs"),Ie=require("./PenAndPaper-nqRtAh6J.cjs"),Pe=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=["id"],Oe=["xmlns","viewBox"],Ue=["x","y","width","height"],De={key:1},Me=["id"],qe=["stop-color"],He=["stop-color"],We=["stop-color"],Ge=["id"],je=["stop-color"],Xe=["stop-color"],Ye=["stop-color"],Je={key:0},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["x1","x2","y1","y2","stroke","stroke-width"],Ze={key:1},et=["x1","x2","y1","y2","stroke","stroke-width"],tt=["x","y","font-size","fill","font-weight"],lt={key:2},ot=["transform","text-anchor","font-size","fill","font-weight"],at=["x1","x2","y1","y2","stroke","stroke-width"],nt={key:0},ut=["cx","cy","r","fill"],st=["cx","cy","r","fill"],rt={key:1},it=["x1","x2","y1","y2","stroke","stroke-width"],dt=["x1","x2","y1","y2","stroke","stroke-width"],ct=["x","y","height","width","fill","rx"],vt=["x","y","height","width","fill","rx","stroke","stroke-width"],yt=["x","y","height","width","fill","onMouseover"],ht={key:5,class:"vue-data-ui-watermark"},pt=["innerHTML"],ft={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(f,{expose:ve}){const d=f,{vue_ui_candlestick:ye}=u.useConfig(),b=e.computed(()=>!!d.dataset&&d.dataset.length),h=e.ref(u.createUid()),he=e.ref(null),V=e.ref(!1),E=e.ref(""),T=e.ref(void 0),L=e.ref(0),g=e.ref(null),R=e.ref(null),O=e.ref(null),U=e.ref(null),D=e.ref(null),M=e.ref(null),C=e.ref(0),q=e.ref(0),H=e.ref(0),t=e.computed({get:()=>j(),set:l=>l}),{userOptionsVisible:A,setUserOptionsVisibility:W,keepUserOptionState:G}=Pe.useUserOptionState({config:t.value});function j(){const l=ce.useNestedProp({userConfig:d.config,defaultConfig:ye});let a={};return l.theme?a={...ce.useNestedProp({userConfig:u.themes.vue_ui_candlestick[l.theme]||d.config,defaultConfig:l})}:a=l,d.config&&u.hasDeepProperty(d.config,"style.zoom.startIndex")?a.style.zoom.startIndex=d.config.style.zoom.startIndex:a.style.zoom.startIndex=null,d.config&&u.hasDeepProperty(d.config,"style.zoom.endIndex")?a.style.zoom.endIndex=d.config.style.zoom.endIndex:a.style.zoom.endIndex=null,a}e.watch(()=>d.config,l=>{t.value=j(),A.value=!t.value.showOnChartHover,X(),C.value+=1,H.value+=1,q.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{c.value.start=0,c.value.end=l.length,C.value+=1},{deep:!0});const i=e.ref({height:t.value.style.height,width:t.value.style.width,xAxisFontSize:t.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:t.value.style.layout.grid.yAxis.dataLabels.fontSize}),N=e.ref(null);e.onMounted(()=>{X()});function X(){if(u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiCandlestick",type:"dataset"}),t.value.responsive){const l=ie.throttle(()=>{const{width:a,height:o}=ie.useResponsive({chart:g.value,title:t.value.style.title.text?R.value:null,slicer:U.value,legend:O.value,source:D.value,noTitle:M.value});requestAnimationFrame(()=>{i.value.width=a,i.value.height=o,i.value.xAxisFontSize=u.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),i.value.yAxisFontSize=u.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})})});N.value=new ResizeObserver(l),N.value.observe(g.value.parentNode)}te()}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=de.usePrinter({elementId:`vue-ui-candlestick_${h.value}`,fileName:t.value.style.title.text||"vue-ui-candlestick"}),pe=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),s=e.computed(()=>{const{top:l,right:a,bottom:o,left:n}=t.value.style.layout.padding;return{top:l,right:i.value.width-a,left:n,bottom:i.value.height-o,width:i.value.width-n-a,height:i.value.height-l-o}}),w=e.computed(()=>d.dataset.length),c=e.ref({start:0,end:w.value}),Z=e.computed(()=>d.dataset.slice(c.value.start,c.value.end)),F=e.computed(()=>(d.dataset.forEach((l,a)=>{[null,void 0].includes(l[0])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:a}),[null,void 0].includes(l[1])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:a}),[null,void 0].includes(l[2])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:a}),[null,void 0].includes(l[3])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:a}),[null,void 0].includes(l[4])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:a}),[null,void 0].includes(l[5])&&u.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:a})}),Z.value.map(l=>({period:l[0],open:l[1],high:l[2],low:l[3],last:l[4],volume:l[5]})))),r=e.computed(()=>s.value.width/Z.value.length),ee=e.computed(()=>({max:Math.max(...F.value.map(l=>l.high)),min:0})),m=e.computed(()=>u.calculateNiceScale(ee.value.min,ee.value.max,t.value.style.layout.grid.yAxis.dataLabels.steps));function $(l,a){return{...l,x:u.checkNaN(s.value.left+a*r.value+r.value/2),y:u.checkNaN(s.value.top+(1-l/m.value.max)*s.value.height),value:u.checkNaN(l)}}const v=e.computed(()=>F.value.map((l,a)=>{const o=$(l.open,a),n=$(l.high,a),y=$(l.low,a),_=$(l.last,a),z=l.last>l.open;return{period:l.period,open:o,high:n,low:y,last:_,volume:l.volume,isBullish:z}}));function fe(l){return u.checkNaN(l/m.value.max)}const me=e.computed(()=>m.value.ticks.map(l=>({y:s.value.bottom-s.value.height*fe(l),value:u.checkNaN(l)}))),ge=e.computed(()=>F.value.map(l=>l.period)),I=e.ref(null);function ke(l,a){T.value=l,I.value={datapoint:a,seriesIndex:l,series:v.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:v.value,config:t.value})))E.value=o({seriesIndex:l,datapoint:a,series:v.value,config:t.value});else if(t.value.style.tooltip.show){let n="";const{period:y,open:_,high:z,low:ne,last:ue,volume:se,isBullish:re}=v.value[l],{period:gt,open:Ce,high:Ne,low:$e,last:Se,volume:Be}=t.value.translations;n+=`<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${t.value.style.layout.candle.borderRadius*3}" stroke="${t.value.style.layout.candle.stroke}" stroke-width="${t.value.style.layout.candle.strokeWidth}"
2
+ fill="${t.value.style.layout.candle.gradient.show?re?`url(#bullish_gradient_${h.value})`:`url(#bearish_gradient_${h.value})`:re?t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.colors.bearish}"/></svg>${y}</div>`,n+=`${Be} : <b>${isNaN(se)?"-":Number(se.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()}</b>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,n+=`<div>${Ce}: <b>${t.value.style.tooltip.prefix} ${isNaN(_.value)?"-":Number(_.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${Ne}: <b>${t.value.style.tooltip.prefix} ${isNaN(z.value)?"-":Number(z.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${$e}: <b>${t.value.style.tooltip.prefix} ${isNaN(ne.value)?"-":Number(ne.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${Se}: <b>${t.value.style.tooltip.prefix} ${isNaN(ue.value)?"-":Number(ue.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+="</div>",E.value=`<div style="text-align:right">${n}</div>`}V.value=!0}function xe(){te()}const k=e.ref(null);async function te(){(t.value.style.zoom.startIndex!==null||t.value.style.zoom.endIndex!==null)&&k.value?(t.value.style.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),k.value&&k.value.setStartValue(t.value.style.zoom.startIndex)),t.value.style.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),k.value&&k.value.setEndValue(be(t.value.style.zoom.endIndex+1)))):(c.value={start:0,end:w.value},C.value+=1)}function be(l){const a=w.value;return l>a?a:l<0||t.value.style.zoom.startIndex!==null&&l<t.value.style.zoom.startIndex?t.value.style.zoom.startIndex!==null?t.value.style.zoom.startIndex+1:1:l}function le(){e.nextTick(()=>{const l=[t.value.translations.period,t.value.translations.open,t.value.translations.high,t.value.translations.low,t.value.translations.last,t.value.translations.volume],a=v.value.map(y=>[y.period,y.open.value,y.high.value,y.low.value,y.last.value,y.volume]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(a),n=u.createCsvContent(o);u.downloadCsv({csvContent:n,title:t.value.style.title.text||"vue-ui-candlestick"})})}const S=e.computed(()=>{const l=v.value.map(n=>[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${t.value.style.layout.candle.borderRadius*3}" fill="${t.value.style.layout.candle.gradient.show?n.isBullish?`url(#bullish_gradient_${h.value}`:`url(#bearish_gradient_${h.value})`:n.isBullish?t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.colors.bearish}"/></svg> ${n.period}`,`${t.value.table.td.prefix} ${isNaN(n.open.value)?"-":Number(n.open.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.high.value)?"-":Number(n.high.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.low.value)?"-":Number(n.low.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.last.value)?"-":Number(n.last.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${isNaN(n.volume)?"-":n.volume.toLocaleString()}`]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},o=[t.value.translations.period,t.value.translations.open,t.value.translations.high,t.value.translations.low,t.value.translations.last,t.value.translations.volume];return{head:o,body:l,config:a,colNames:o}}),x=e.ref(!1);function we(l){x.value=l,L.value+=1}function oe(){p.value.showTable=!p.value.showTable}function ae(){p.value.showTooltip=!p.value.showTooltip}const B=e.ref(!1);function P(){B.value=!B.value}return ve({generatePdf:K,generateCsv:le,generateImage:Q,toggleTable:oe,toggleTooltip:ae,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"candlestickChart",ref:g,class:e.normalizeClass(`vue-ui-candlestick ${x.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`position:relative;font-family:${t.value.style.fontFamily}; text-align:center;background:${t.value.style.backgroundColor}; ${t.value.responsive?"height: 100%":""}`),id:`vue-ui-candlestick_${h.value}`,onMouseenter:a[4]||(a[4]=()=>e.unref(W)(!0)),onMouseleave:a[5]||(a[5]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:B.value,onClose:P},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),pe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:R,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(_e._sfc_main,{key:`title_${H.value}`,config:{title:{cy:"candlestick-div-title",...t.value.style.title},subtitle:{cy:"candlestick-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(G)||e.unref(A))?(e.openBlock(),e.createBlock(de.UserOptions,{ref_key:"details",ref:he,key:`user_options_${L.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(J),isPrinting:e.unref(Y),uid:h.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:x.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:we,onGeneratePdf:e.unref(K),onGenerateCsv:le,onGenerateImage:e.unref(Q),onToggleTable:oe,onToggleTooltip:ae,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(G)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${i.value.width<=0?10:i.value.width} ${i.value.height<=0?10:i.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Fe._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.value.left,y:s.value.top,width:s.value.width,height:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ue)):e.createCommentVNode("",!0),v.value.length>0?(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`bearish_gradient_${h.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.candle.colors.bearish},null,8,qe),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bearish,.02)}DE`},null,8,He),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bearish,.05)}66`},null,8,We)],8,Me),e.createElementVNode("linearGradient",{id:`bullish_gradient_${h.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.candle.colors.bullish},null,8,je),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bullish,.02)}DE`},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(u.shiftHue)(t.value.style.layout.candle.colors.bullish,.05)}66`},null,8,Ye)],8,Ge)]),t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Je,[e.createElementVNode("line",{x1:s.value.left,x2:s.value.left,y1:s.value.top,y2:s.value.bottom,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:s.value.left,x2:s.value.right,y1:s.value.bottom,y2:s.value.bottom,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Qe)])):e.createCommentVNode("",!0),t.value.style.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value>=m.value.min&&o.value<=m.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value.left,x2:s.value.left-5,y1:o.y,y2:o.y,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,et)):e.createCommentVNode("",!0),o.value>=m.value.min&&o.value<=m.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.value.left-8+t.value.style.layout.grid.yAxis.dataLabels.offsetX,y:o.y+i.value.yAxisFontSize/3,"font-size":i.value.yAxisFontSize,"text-anchor":"end",fill:t.value.style.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.grid.yAxis.dataLabels.prefix)+" "+e.toDisplayString(e.unref(u.canShowValue)(o.value)?o.value.toFixed(t.value.style.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+e.toDisplayString(t.value.style.layout.grid.yAxis.dataLabels.suffix),9,tt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.value.style.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ge.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{transform:`translate(${s.value.left+r.value*n+r.value/2}, ${s.value.bottom+i.value.xAxisFontSize*2+t.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${t.value.style.layout.grid.xAxis.dataLabels.rotation})`,"text-anchor":t.value.style.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":i.value.xAxisFontSize,fill:t.value.style.layout.grid.xAxis.dataLabels.color,"font-weight":t.value.style.layout.grid.xAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(o),9,ot)]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:o.open.x,x2:o.open.x,y1:o.high.y,y2:o.low.y,stroke:t.value.style.layout.wick.stroke,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,at),t.value.style.layout.wick.extremity.shape==="circle"?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("circle",{cx:o.high.x,cy:o.high.y,r:t.value.style.layout.wick.extremity.size==="auto"?r.value/20:t.value.style.layout.wick.extremity.size,fill:t.value.style.layout.wick.extremity.color},null,8,ut),e.createElementVNode("circle",{cx:o.low.x,cy:o.low.y,r:t.value.style.layout.wick.extremity.size==="auto"?r.value/20:t.value.style.layout.wick.extremity.size,fill:t.value.style.layout.wick.extremity.color},null,8,st)])):e.createCommentVNode("",!0),t.value.style.layout.wick.extremity.shape==="line"?(e.openBlock(),e.createElementBlock("g",rt,[e.createElementVNode("line",{x1:o.high.x-(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,x2:o.high.x+(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,y1:o.high.y,y2:o.high.y,stroke:t.value.style.layout.wick.extremity.color,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,it),e.createElementVNode("line",{x1:o.low.x-(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,x2:o.low.x+(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,y1:o.low.y,y2:o.low.y,stroke:t.value.style.layout.wick.extremity.color,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,dt)])):e.createCommentVNode("",!0)]))),256))]),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:o.open.x-r.value/2+r.value*(1-t.value.style.layout.candle.widthRatio)/2,y:o.isBullish?o.last.y:o.open.y,height:Math.abs(o.last.y-o.open.y)<=0?1e-4:Math.abs(o.last.y-o.open.y),width:r.value*t.value.style.layout.candle.widthRatio<=0?1e-4:r.value*t.value.style.layout.candle.widthRatio,fill:t.value.style.layout.candle.gradient.underlayer,rx:t.value.style.layout.candle.borderRadius,stroke:"none"},null,8,ct))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:o.open.x-r.value/2+r.value*(1-t.value.style.layout.candle.widthRatio)/2,y:o.isBullish?o.last.y:o.open.y,height:Math.abs(o.last.y-o.open.y)<=0?1e-4:Math.abs(o.last.y-o.open.y),width:r.value*t.value.style.layout.candle.widthRatio<=0?1e-4:r.value*t.value.style.layout.candle.widthRatio,fill:o.isBullish?t.value.style.layout.candle.gradient.show?`url(#bullish_gradient_${h.value})`:t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.gradient.show?`url(#bearish_gradient_${h.value})`:t.value.style.layout.candle.colors.bearish,rx:t.value.style.layout.candle.borderRadius,stroke:t.value.style.layout.candle.stroke,"stroke-width":t.value.style.layout.candle.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,vt))),256))]),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value.left+n*r.value,y:s.value.top,height:s.value.height<=0?1e-4:s.value.height,width:r.value<=0?1e-4:r.value,fill:T.value===n?e.unref(u.setOpacity)(t.value.style.layout.selector.color,t.value.style.layout.selector.opacity):"transparent",onMouseover:y=>ke(n,o),onMouseleave:a[0]||(a[0]=y=>{T.value=void 0,V.value=!1})},null,40,yt))),256))])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:i.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ht,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ee.default,{key:6,config:{type:"candlesticks",style:{backgroundColor:t.value.style.backgroundColor,candlesticks:{axis:{color:"#CCCCCC"},candle:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.zoom.show&&b.value?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"chartSlicer",ref:U},[(e.openBlock(),e.createBlock(Te.Slicer,{ref_key:"slicerComponent",ref:k,key:`slicer_${C.value}`,background:t.value.style.zoom.color,borderColor:t.value.style.backgroundColor,fontSize:t.value.style.zoom.fontSize,useResetSlot:t.value.style.zoom.useResetSlot,labelLeft:f.dataset[c.value.start]?f.dataset[c.value.start][0]:f.dataset[0][0],labelRight:f.dataset[c.value.end-1]?f.dataset[c.value.end-1][0]:f.dataset.at(-1)[0],textColor:t.value.style.color,inputColor:t.value.style.zoom.color,selectColor:t.value.style.zoom.highlightColor,max:w.value,min:0,valueStart:c.value.start,valueEnd:c.value.end,start:c.value.start,"onUpdate:start":a[1]||(a[1]=o=>c.value.start=o),end:c.value.end,"onUpdate:end":a[2]||(a[2]=o=>c.value.end=o),refreshStartPoint:t.value.style.zoom.startIndex!==null?t.value.style.zoom.startIndex:0,refreshEndPoint:t.value.style.zoom.endIndex!==null?t.value.style.zoom.endIndex+1:w.value,enableRangeHandles:t.value.style.zoom.enableRangeHandles,enableSelectionDrag:t.value.style.zoom.enableSelectionDrag,onReset:xe},{"reset-action":e.withCtx(({reset:o})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:o})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"]))],512)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[e.renderSlot(l.$slots,"legend",{legend:v.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:D,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:p.value.showTooltip&&V.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:g.value,content:E.value,isFullscreen:x.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),b.value?(e.openBlock(),e.createBlock(Ae.default,{key:9,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ve.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:a[3]||(a[3]=o=>p.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createElementVNode("div",{innerHTML:o},null,8,pt)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Re))}},mt=Le._export_sfc(ft,[["__scopeId","data-v-f595f5e5"]]);exports.default=mt;
@@ -1,19 +1,19 @@
1
- import { computed as g, ref as n, watch as Se, onMounted as qe, onBeforeUnmount as Je, nextTick as V, openBlock as s, createElementBlock as u, normalizeClass as Ne, normalizeStyle as ee, unref as v, createBlock as _, createCommentVNode as y, createSlots as Ke, withCtx as m, renderSlot as f, normalizeProps as T, guardReactiveProps as I, createVNode as Ae, createElementVNode as r, Fragment as F, renderList as L, toDisplayString as P, createTextVNode as Qe } from "vue";
2
- import { u as Ze, c as et, t as tt, C as Te, o as lt, e as z, D as ot, v as U, X as at, w as j, E as st, s as ut, x as it, y as nt, q as rt, r as dt, F as Ie } from "./index-CFW17vb1.js";
1
+ import { computed as g, ref as n, watch as Se, onMounted as qe, onBeforeUnmount as Je, nextTick as V, openBlock as s, createElementBlock as u, normalizeClass as Ne, normalizeStyle as ee, unref as v, createBlock as _, createCommentVNode as y, createSlots as Ke, withCtx as m, renderSlot as p, normalizeProps as T, guardReactiveProps as F, createVNode as Ae, createElementVNode as r, Fragment as I, renderList as L, toDisplayString as P, createTextVNode as Qe } from "vue";
2
+ import { u as Ze, c as et, t as tt, C as Te, o as lt, e as z, D as ot, v as U, X as at, w as j, E as st, s as ut, x as it, y as nt, q as rt, r as dt, F as Fe } from "./index-B7nCQFK0.js";
3
3
  import { t as vt, u as yt } from "./useResponsive-CoxXLe23.js";
4
- import { _ as ct } from "./Title-C_gOJvlv.js";
5
- import { u as ht, U as pt } from "./usePrinter-19frcFuH.js";
6
- import { _ as ft } from "./Tooltip-Czv48jTt.js";
7
- import { D as gt } from "./DataTable-DYhXzoFM.js";
8
- import mt from "./vue-ui-skeleton-RRyod9qq.js";
9
- import { S as bt } from "./Slicer-BIRZ38gw.js";
10
- import xt from "./vue-ui-accordion-B8vShfXi.js";
11
- import { u as Fe } from "./useNestedProp-HPB1YHuD.js";
12
- import { _ as kt } from "./PackageVersion-CO2IMTO9.js";
13
- import { P as wt } from "./PenAndPaper-CnW2eqXw.js";
4
+ import { _ as ct } from "./Title-CaET2xuF.js";
5
+ import { u as ht, U as ft } from "./usePrinter-CQMn1b4E.js";
6
+ import { _ as pt } from "./Tooltip-Bkc4233T.js";
7
+ import { D as gt } from "./DataTable-C0tCPQ9i.js";
8
+ import mt from "./vue-ui-skeleton-D66ZIUln.js";
9
+ import { S as bt } from "./Slicer-BUYuk07t.js";
10
+ import xt from "./vue-ui-accordion-B8ptB5BQ.js";
11
+ import { u as Ie } from "./useNestedProp-C9rlBRTT.js";
12
+ import { _ as kt } from "./PackageVersion-CENy3Lm2.js";
13
+ import { P as wt } from "./PenAndPaper-Dr7ndoP_.js";
14
14
  import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], Nt = { key: 1 }, At = ["id"], Tt = ["stop-color"], It = ["stop-color"], Ft = ["stop-color"], Lt = ["id"], Rt = ["stop-color"], Ot = ["stop-color"], Vt = ["stop-color"], Pt = { key: 0 }, Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 1 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x", "y", "font-size", "fill", "font-weight"], Wt = { key: 2 }, Gt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 0 }, Xt = ["cx", "cy", "r", "fill"], Yt = ["cx", "cy", "r", "fill"], qt = { key: 1 }, Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x", "y", "height", "width", "fill", "rx"], Zt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], el = ["x", "y", "height", "width", "fill", "onMouseover"], tl = {
16
+ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], Nt = { key: 1 }, At = ["id"], Tt = ["stop-color"], Ft = ["stop-color"], It = ["stop-color"], Lt = ["id"], Rt = ["stop-color"], Ot = ["stop-color"], Vt = ["stop-color"], Pt = { key: 0 }, Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 1 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x", "y", "font-size", "fill", "font-weight"], Wt = { key: 2 }, Gt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 0 }, Xt = ["cx", "cy", "r", "fill"], Yt = ["cx", "cy", "r", "fill"], qt = { key: 1 }, Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x", "y", "height", "width", "fill", "rx"], Zt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], el = ["x", "y", "height", "width", "fill", "onMouseover"], tl = {
17
17
  key: 5,
18
18
  class: "vue-data-ui-watermark"
19
19
  }, ll = ["innerHTML"], ol = {
@@ -38,13 +38,13 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
38
38
  set: (t) => t
39
39
  }), { userOptionsVisible: J, setUserOptionsVisibility: re, keepUserOptionState: de } = $t({ config: e.value });
40
40
  function ve() {
41
- const t = Fe({
41
+ const t = Ie({
42
42
  userConfig: h.config,
43
43
  defaultConfig: Re
44
44
  });
45
45
  let o = {};
46
46
  return t.theme ? o = {
47
- ...Fe({
47
+ ...Ie({
48
48
  userConfig: tt.vue_ui_candlestick[t.theme] || h.config,
49
49
  defaultConfig: t
50
50
  })
@@ -53,7 +53,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
53
53
  Se(() => h.config, (t) => {
54
54
  e.value = ve(), J.value = !e.value.showOnChartHover, ye(), B.value += 1, ne.value += 1, ie.value += 1;
55
55
  }, { deep: !0 }), Se(() => h.dataset, (t) => {
56
- p.value.start = 0, p.value.end = t.length, B.value += 1;
56
+ f.value.start = 0, f.value.end = t.length, B.value += 1;
57
57
  }, { deep: !0 });
58
58
  const c = n({
59
59
  height: e.value.style.height,
@@ -78,18 +78,20 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
78
78
  source: se.value,
79
79
  noTitle: ue.value
80
80
  });
81
- c.value.width = o, c.value.height = l, c.value.xAxisFontSize = Ie({
82
- relator: Math.min(o, l),
83
- adjuster: e.value.style.width,
84
- source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
85
- threshold: 6,
86
- fallback: 6
87
- }), c.value.yAxisFontSize = Ie({
88
- relator: Math.min(o, l),
89
- adjuster: e.value.style.width,
90
- source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
91
- threshold: 6,
92
- fallback: 6
81
+ requestAnimationFrame(() => {
82
+ c.value.width = o, c.value.height = l, c.value.xAxisFontSize = Fe({
83
+ relator: Math.min(o, l),
84
+ adjuster: e.value.style.width,
85
+ source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
86
+ threshold: 6,
87
+ fallback: 6
88
+ }), c.value.yAxisFontSize = Fe({
89
+ relator: Math.min(o, l),
90
+ adjuster: e.value.style.width,
91
+ source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
92
+ threshold: 6,
93
+ fallback: 6
94
+ });
93
95
  });
94
96
  });
95
97
  E.value = new ResizeObserver(t), E.value.observe(S.value.parentNode);
@@ -99,7 +101,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
99
101
  Je(() => {
100
102
  E.value && E.value.disconnect();
101
103
  });
102
- const { isPrinting: ce, isImaging: he, generatePdf: pe, generateImage: fe } = ht({
104
+ const { isPrinting: ce, isImaging: he, generatePdf: fe, generateImage: pe } = ht({
103
105
  elementId: `vue-ui-candlestick_${k.value}`,
104
106
  fileName: e.value.style.title.text || "vue-ui-candlestick"
105
107
  }), Ve = g(() => e.value.userOptions.show && !e.value.style.title.text), w = n({
@@ -115,10 +117,10 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
115
117
  width: c.value.width - a - o,
116
118
  height: c.value.height - t - l
117
119
  };
118
- }), O = g(() => h.dataset.length), p = n({
120
+ }), O = g(() => h.dataset.length), f = n({
119
121
  start: 0,
120
122
  end: O.value
121
- }), ge = g(() => h.dataset.slice(p.value.start, p.value.end)), K = g(() => (h.dataset.forEach((t, o) => {
123
+ }), ge = g(() => h.dataset.slice(f.value.start, f.value.end)), K = g(() => (h.dataset.forEach((t, o) => {
122
124
  [null, void 0].includes(t[0]) && z({
123
125
  componentName: "VueUiCandlestick",
124
126
  type: "datasetAttribute",
@@ -221,7 +223,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
221
223
  }
222
224
  const N = n(null);
223
225
  async function be() {
224
- (e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && N.value ? (e.value.style.zoom.startIndex !== null && (await V(), await V(), N.value && N.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await V(), await V(), N.value && N.value.setEndValue(De(e.value.style.zoom.endIndex + 1)))) : (p.value = {
226
+ (e.value.style.zoom.startIndex !== null || e.value.style.zoom.endIndex !== null) && N.value ? (e.value.style.zoom.startIndex !== null && (await V(), await V(), N.value && N.value.setStartValue(e.value.style.zoom.startIndex)), e.value.style.zoom.endIndex !== null && (await V(), await V(), N.value && N.value.setEndValue(De(e.value.style.zoom.endIndex + 1)))) : (f.value = {
225
227
  start: 0,
226
228
  end: O.value
227
229
  }, B.value += 1);
@@ -287,9 +289,9 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
287
289
  W.value = !W.value;
288
290
  }
289
291
  return Le({
290
- generatePdf: pe,
292
+ generatePdf: fe,
291
293
  generateCsv: xe,
292
- generateImage: fe,
294
+ generateImage: pe,
293
295
  toggleTable: ke,
294
296
  toggleTooltip: we,
295
297
  toggleAnnotator: Z
@@ -337,7 +339,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
337
339
  }
338
340
  }, null, 8, ["config"]))
339
341
  ], 512)) : y("", !0),
340
- e.value.userOptions.show && R.value && (v(de) || v(J)) ? (s(), _(pt, {
342
+ e.value.userOptions.show && R.value && (v(de) || v(J)) ? (s(), _(ft, {
341
343
  ref_key: "details",
342
344
  ref: Oe,
343
345
  key: `user_options_${te.value}`,
@@ -360,9 +362,9 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
360
362
  hasAnnotator: e.value.userOptions.buttons.annotator,
361
363
  isAnnotation: W.value,
362
364
  onToggleFullscreen: We,
363
- onGeneratePdf: v(pe),
365
+ onGeneratePdf: v(fe),
364
366
  onGenerateCsv: xe,
365
- onGenerateImage: v(fe),
367
+ onGenerateImage: v(pe),
366
368
  onToggleTable: ke,
367
369
  onToggleTooltip: we,
368
370
  onToggleAnnotator: Z,
@@ -373,49 +375,49 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
373
375
  t.$slots.optionTooltip ? {
374
376
  name: "optionTooltip",
375
377
  fn: m(() => [
376
- f(t.$slots, "optionTooltip", {}, void 0, !0)
378
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
377
379
  ]),
378
380
  key: "0"
379
381
  } : void 0,
380
382
  t.$slots.optionPdf ? {
381
383
  name: "optionPdf",
382
384
  fn: m(() => [
383
- f(t.$slots, "optionPdf", {}, void 0, !0)
385
+ p(t.$slots, "optionPdf", {}, void 0, !0)
384
386
  ]),
385
387
  key: "1"
386
388
  } : void 0,
387
389
  t.$slots.optionCsv ? {
388
390
  name: "optionCsv",
389
391
  fn: m(() => [
390
- f(t.$slots, "optionCsv", {}, void 0, !0)
392
+ p(t.$slots, "optionCsv", {}, void 0, !0)
391
393
  ]),
392
394
  key: "2"
393
395
  } : void 0,
394
396
  t.$slots.optionImg ? {
395
397
  name: "optionImg",
396
398
  fn: m(() => [
397
- f(t.$slots, "optionImg", {}, void 0, !0)
399
+ p(t.$slots, "optionImg", {}, void 0, !0)
398
400
  ]),
399
401
  key: "3"
400
402
  } : void 0,
401
403
  t.$slots.optionTable ? {
402
404
  name: "optionTable",
403
405
  fn: m(() => [
404
- f(t.$slots, "optionTable", {}, void 0, !0)
406
+ p(t.$slots, "optionTable", {}, void 0, !0)
405
407
  ]),
406
408
  key: "4"
407
409
  } : void 0,
408
410
  t.$slots.optionFullscreen ? {
409
411
  name: "optionFullscreen",
410
412
  fn: m(({ toggleFullscreen: l, isFullscreen: a }) => [
411
- f(t.$slots, "optionFullscreen", T(I({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
413
+ p(t.$slots, "optionFullscreen", T(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
412
414
  ]),
413
415
  key: "5"
414
416
  } : void 0,
415
417
  t.$slots.optionAnnotator ? {
416
418
  name: "optionAnnotator",
417
419
  fn: m(({ toggleAnnotator: l, isAnnotator: a }) => [
418
- f(t.$slots, "optionAnnotator", T(I({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
420
+ p(t.$slots, "optionAnnotator", T(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
419
421
  ]),
420
422
  key: "6"
421
423
  } : void 0
@@ -438,7 +440,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
438
440
  pointerEvents: "none"
439
441
  }
440
442
  }, [
441
- f(t.$slots, "chart-background", {}, void 0, !0)
443
+ p(t.$slots, "chart-background", {}, void 0, !0)
442
444
  ], 8, St)) : y("", !0),
443
445
  b.value.length > 0 ? (s(), u("g", Nt, [
444
446
  r("defs", null, [
@@ -454,11 +456,11 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
454
456
  r("stop", {
455
457
  offset: "50%",
456
458
  "stop-color": `${v(j)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
457
- }, null, 8, It),
459
+ }, null, 8, Ft),
458
460
  r("stop", {
459
461
  offset: "100%",
460
462
  "stop-color": `${v(j)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
461
- }, null, 8, Ft)
463
+ }, null, 8, It)
462
464
  ], 8, At),
463
465
  r("linearGradient", {
464
466
  id: `bullish_gradient_${k.value}`,
@@ -500,7 +502,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
500
502
  }, null, 8, Bt)
501
503
  ])) : y("", !0),
502
504
  e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Et, [
503
- (s(!0), u(F, null, L(Ue.value, (l, a) => (s(), u("g", null, [
505
+ (s(!0), u(I, null, L(Ue.value, (l, a) => (s(), u("g", null, [
504
506
  l.value >= C.value.min && l.value <= C.value.max ? (s(), u("line", {
505
507
  key: 0,
506
508
  x1: i.value.left,
@@ -523,7 +525,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
523
525
  ]))), 256))
524
526
  ])) : y("", !0),
525
527
  e.value.style.layout.grid.xAxis.dataLabels.show ? (s(), u("g", Wt, [
526
- (s(!0), u(F, null, L(Be.value, (l, a) => (s(), u("g", null, [
528
+ (s(!0), u(I, null, L(Be.value, (l, a) => (s(), u("g", null, [
527
529
  r("text", {
528
530
  transform: `translate(${i.value.left + d.value * a + d.value / 2}, ${i.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
529
531
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
@@ -534,7 +536,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
534
536
  ]))), 256))
535
537
  ])) : y("", !0),
536
538
  r("g", null, [
537
- (s(!0), u(F, null, L(b.value, (l, a) => (s(), u("g", null, [
539
+ (s(!0), u(I, null, L(b.value, (l, a) => (s(), u("g", null, [
538
540
  r("line", {
539
541
  x1: l.open.x,
540
542
  x2: l.open.x,
@@ -581,7 +583,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
581
583
  ]))), 256))
582
584
  ]),
583
585
  r("g", null, [
584
- (s(!0), u(F, null, L(b.value, (l, a) => (s(), u("rect", {
586
+ (s(!0), u(I, null, L(b.value, (l, a) => (s(), u("rect", {
585
587
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
586
588
  y: l.isBullish ? l.last.y : l.open.y,
587
589
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -590,7 +592,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
590
592
  rx: e.value.style.layout.candle.borderRadius,
591
593
  stroke: "none"
592
594
  }, null, 8, Qt))), 256)),
593
- (s(!0), u(F, null, L(b.value, (l, a) => (s(), u("rect", {
595
+ (s(!0), u(I, null, L(b.value, (l, a) => (s(), u("rect", {
594
596
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
595
597
  y: l.isBullish ? l.last.y : l.open.y,
596
598
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -604,7 +606,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
604
606
  }, null, 8, Zt))), 256))
605
607
  ]),
606
608
  r("g", null, [
607
- (s(!0), u(F, null, L(b.value, (l, a) => (s(), u("rect", {
609
+ (s(!0), u(I, null, L(b.value, (l, a) => (s(), u("rect", {
608
610
  x: i.value.left + a * d.value,
609
611
  y: i.value.top,
610
612
  height: i.value.height <= 0 ? 1e-4 : i.value.height,
@@ -617,10 +619,10 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
617
619
  }, null, 40, el))), 256))
618
620
  ])
619
621
  ])) : y("", !0),
620
- f(t.$slots, "svg", { svg: c.value }, void 0, !0)
622
+ p(t.$slots, "svg", { svg: c.value }, void 0, !0)
621
623
  ], 14, zt)) : y("", !0),
622
624
  t.$slots.watermark ? (s(), u("div", tl, [
623
- f(t.$slots, "watermark", T(I({ isPrinting: v(ce) || v(he) })), void 0, !0)
625
+ p(t.$slots, "watermark", T(F({ isPrinting: v(ce) || v(he) })), void 0, !0)
624
626
  ])) : y("", !0),
625
627
  R.value ? y("", !0) : (s(), _(mt, {
626
628
  key: 6,
@@ -652,19 +654,19 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
652
654
  borderColor: e.value.style.backgroundColor,
653
655
  fontSize: e.value.style.zoom.fontSize,
654
656
  useResetSlot: e.value.style.zoom.useResetSlot,
655
- labelLeft: $.dataset[p.value.start] ? $.dataset[p.value.start][0] : $.dataset[0][0],
656
- labelRight: $.dataset[p.value.end - 1] ? $.dataset[p.value.end - 1][0] : $.dataset.at(-1)[0],
657
+ labelLeft: $.dataset[f.value.start] ? $.dataset[f.value.start][0] : $.dataset[0][0],
658
+ labelRight: $.dataset[f.value.end - 1] ? $.dataset[f.value.end - 1][0] : $.dataset.at(-1)[0],
657
659
  textColor: e.value.style.color,
658
660
  inputColor: e.value.style.zoom.color,
659
661
  selectColor: e.value.style.zoom.highlightColor,
660
662
  max: O.value,
661
663
  min: 0,
662
- valueStart: p.value.start,
663
- valueEnd: p.value.end,
664
- start: p.value.start,
665
- "onUpdate:start": o[1] || (o[1] = (l) => p.value.start = l),
666
- end: p.value.end,
667
- "onUpdate:end": o[2] || (o[2] = (l) => p.value.end = l),
664
+ valueStart: f.value.start,
665
+ valueEnd: f.value.end,
666
+ start: f.value.start,
667
+ "onUpdate:start": o[1] || (o[1] = (l) => f.value.start = l),
668
+ end: f.value.end,
669
+ "onUpdate:end": o[2] || (o[2] = (l) => f.value.end = l),
668
670
  refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
669
671
  refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : O.value,
670
672
  enableRangeHandles: e.value.style.zoom.enableRangeHandles,
@@ -672,7 +674,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
672
674
  onReset: Me
673
675
  }, {
674
676
  "reset-action": m(({ reset: l }) => [
675
- f(t.$slots, "reset-action", T(I({ reset: l })), void 0, !0)
677
+ p(t.$slots, "reset-action", T(F({ reset: l })), void 0, !0)
676
678
  ]),
677
679
  _: 3
678
680
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
@@ -681,7 +683,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
681
683
  ref_key: "chartLegend",
682
684
  ref: oe
683
685
  }, [
684
- f(t.$slots, "legend", { legend: b.value }, void 0, !0)
686
+ p(t.$slots, "legend", { legend: b.value }, void 0, !0)
685
687
  ], 512),
686
688
  t.$slots.source ? (s(), u("div", {
687
689
  key: 8,
@@ -689,9 +691,9 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
689
691
  ref: se,
690
692
  dir: "auto"
691
693
  }, [
692
- f(t.$slots, "source", {}, void 0, !0)
694
+ p(t.$slots, "source", {}, void 0, !0)
693
695
  ], 512)) : y("", !0),
694
- Ae(ft, {
696
+ Ae(pt, {
695
697
  show: w.value.showTooltip && X.value,
696
698
  backgroundColor: e.value.style.tooltip.backgroundColor,
697
699
  color: e.value.style.tooltip.color,
@@ -708,10 +710,10 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
708
710
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
709
711
  }, {
710
712
  "tooltip-before": m(() => [
711
- f(t.$slots, "tooltip-before", T(I({ ...Q.value })), void 0, !0)
713
+ p(t.$slots, "tooltip-before", T(F({ ...Q.value })), void 0, !0)
712
714
  ]),
713
715
  "tooltip-after": m(() => [
714
- f(t.$slots, "tooltip-after", T(I({ ...Q.value })), void 0, !0)
716
+ p(t.$slots, "tooltip-after", T(F({ ...Q.value })), void 0, !0)
715
717
  ]),
716
718
  _: 3
717
719
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -754,7 +756,7 @@ const _t = ["id"], zt = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
754
756
  }, 8, ["config"])) : y("", !0)
755
757
  ], 46, _t));
756
758
  }
757
- }, xl = /* @__PURE__ */ Ct(ol, [["__scopeId", "data-v-744b9b91"]]);
759
+ }, xl = /* @__PURE__ */ Ct(ol, [["__scopeId", "data-v-f595f5e5"]]);
758
760
  export {
759
761
  xl as default
760
762
  };