mixdashboards 1.0.49 → 1.0.50

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 (278) hide show
  1. package/dist/{EChartComponentBase-CafVdj74.js → EChartComponentBase-BjiCJlIa.js} +1 -1
  2. package/dist/{EChartComponentBase-Dz5E-lyI.cjs → EChartComponentBase-CUbabNTX.cjs} +1 -1
  3. package/dist/{UniverSheet-CH1YywcZ.js → UniverSheet-B2ysdSZW.js} +2 -2
  4. package/dist/{UniverSheet-BqLvs6V6.cjs → UniverSheet-C97ENJKg.cjs} +1 -1
  5. package/dist/{accelerationChart-V4UmpPse.js → accelerationChart-BtHLKXou.js} +3 -3
  6. package/dist/{accelerationChart-BWRlw5-L.cjs → accelerationChart-CqZGLCTa.cjs} +1 -1
  7. package/dist/{actionItem-Dsg6qYSp.cjs → actionItem-Ba4CZB9l.cjs} +1 -1
  8. package/dist/{actionItem-CBwfWvTO.js → actionItem-D6ScXj3z.js} +3 -3
  9. package/dist/{alarmLevelChart-CnKEZZZv.js → alarmLevelChart-CAA_fUgy.js} +2 -2
  10. package/dist/{alarmLevelChart-DN8hyTdg.cjs → alarmLevelChart-DyThrs-J.cjs} +1 -1
  11. package/dist/{alertTable-CdkiAZIu.cjs → alertTable-DICnr2gs.cjs} +1 -1
  12. package/dist/{alertTable-BluC1smp.js → alertTable-_z8F5EWM.js} +2 -2
  13. package/dist/{annualRainfallChart-COeieHTg.js → annualRainfallChart-B0TXYlAe.js} +2 -2
  14. package/dist/{annualRainfallChart-BeenDSmW.cjs → annualRainfallChart-CbND_8XT.cjs} +1 -1
  15. package/dist/api-BR57NNEB.cjs +1 -0
  16. package/dist/api-CcAArQi7.js +164 -0
  17. package/dist/{aqi-BXtF-SsB.cjs → aqi-BOEGQCuM.cjs} +1 -1
  18. package/dist/{aqi-naf_yg1B.js → aqi-RDZu5nYt.js} +3 -3
  19. package/dist/{aqiIndass-CiHVV6y-.js → aqiIndass-BPAt5nQk.js} +2 -2
  20. package/dist/{aqiIndass-YO0txxEM.cjs → aqiIndass-CgURee9t.cjs} +1 -1
  21. package/dist/{arrayCard-CPtHFB--.js → arrayCard-BLUoVrsd.js} +2 -2
  22. package/dist/{arrayCard-USJyzspe.cjs → arrayCard-Wnr9xzrq.cjs} +1 -1
  23. package/dist/{audio-7HMku35Z.js → audio-DC_D2YUu.js} +4 -4
  24. package/dist/{audio-Uz_XIJyA.cjs → audio-DuS_h70S.cjs} +1 -1
  25. package/dist/{bar-Bq_RDVaa.js → bar-BeO49AzX.js} +4 -4
  26. package/dist/{bar-CSideFNS.cjs → bar-bZbB0yMx.cjs} +1 -1
  27. package/dist/{bmp-DZ9_aKMT.cjs → bmp-6zTErjQZ.cjs} +1 -1
  28. package/dist/{bmp-BF-OdMoW.js → bmp-CLKbvXOI.js} +3 -3
  29. package/dist/{box-DfqNW1B6.js → box-BxXWmt0X.js} +2 -2
  30. package/dist/{box-C1n5r8hT.cjs → box-eQDyV3hk.cjs} +1 -1
  31. package/dist/{chartConfigPanel-8wROQoL0.js → chartConfigPanel-BvnnoSQ2.js} +1 -1
  32. package/dist/{chartConfigPanel-C62JqDqE.cjs → chartConfigPanel-CE3d4OpP.cjs} +1 -1
  33. package/dist/{circleBar-C54UQvaf.js → circleBar-Cl5i_iPg.js} +3 -3
  34. package/dist/{circleBar-UrV2_yVK.cjs → circleBar-I4Mh4_kk.cjs} +1 -1
  35. package/dist/{clock-CbebZdlU.js → clock-4HEPNmup.js} +2 -2
  36. package/dist/{clock-DgkEPumE.cjs → clock-7KHM_O_j.cjs} +1 -1
  37. package/dist/{clt-B32D8bK9.js → clt-Cicmq_zn.js} +3 -3
  38. package/dist/{clt-DWBynZO1.cjs → clt-z0rh02ts.cjs} +1 -1
  39. package/dist/{cmc-BVrFcoih.cjs → cmc-BFOFyDhF.cjs} +1 -1
  40. package/dist/{cmc-CC-6njzU.js → cmc-DoKSe6kA.js} +3 -3
  41. package/dist/{cmp-BCvtkNwO.js → cmp-88WnAeeC.js} +3 -3
  42. package/dist/{cmp-D6aHhSC6.cjs → cmp-fxk3vvRJ.cjs} +1 -1
  43. package/dist/{composite-CWYjAAsg.js → composite-CJi4KbAS.js} +3 -3
  44. package/dist/{composite-kODICk08.cjs → composite-CpD_yPEG.cjs} +1 -1
  45. package/dist/{controlList-BXvCyR2L.cjs → controlList-DT21uV7S.cjs} +1 -1
  46. package/dist/{controlList-zYX8DbNE.js → controlList-Ds98eQhx.js} +3 -3
  47. package/dist/{controlRecordList-Dly5aorA.cjs → controlRecordList-BEXUdUlk.cjs} +1 -1
  48. package/dist/{controlRecordList-Bc2M0iyo.js → controlRecordList-YlkbvMFI.js} +3 -3
  49. package/dist/{crd--3Oj3Y1t.cjs → crd-C852SplB.cjs} +1 -1
  50. package/dist/{crd-CoB00gS6.js → crd-Cr3HLog9.js} +2 -2
  51. package/dist/{ctrBtn-CUADz_pu.js → ctrBtn-N0CQxGOu.js} +4 -4
  52. package/dist/{ctrBtn-BusKAhHv.cjs → ctrBtn-OUtZpJrN.cjs} +1 -1
  53. package/dist/{ctrSet-C0R2aIby.cjs → ctrSet-BRFaMtA6.cjs} +1 -1
  54. package/dist/{ctrSet-BKVsejze.js → ctrSet-Br9GbDQP.js} +4 -4
  55. package/dist/{ctrSwitch-BqRBh40z.js → ctrSwitch-CZi4Q2qY.js} +4 -4
  56. package/dist/{ctrSwitch-uIqQRKaq.cjs → ctrSwitch-Cbd5L15F.cjs} +1 -1
  57. package/dist/{dataManagement-BdP1iSeC.cjs → dataManagement-Bh9BM8p4.cjs} +1 -1
  58. package/dist/{dataManagement-C6jHI7-1.js → dataManagement-BnQyWMyj.js} +2 -2
  59. package/dist/{dataReport-DNPD3MZl.cjs → dataReport-Dsgpg9HI.cjs} +1 -1
  60. package/dist/{dataReport-C2XWn_Xv.js → dataReport-v01I_59R.js} +2 -2
  61. package/dist/{dataTable-5bUrqBWz.js → dataTable-BM4F69di.js} +1 -1
  62. package/dist/{dataTable-BvlEs83r.cjs → dataTable-DOVR0yGL.cjs} +1 -1
  63. package/dist/{datetime-CE5wsyi7.cjs → datetime-COHpK691.cjs} +1 -1
  64. package/dist/{datetime-Dp8mPzSO.js → datetime-DmYFqkn-.js} +2 -2
  65. package/dist/{deepClusterSlipSurface-BinAmtCz.cjs → deepClusterSlipSurface-02MBgHpP.cjs} +1 -1
  66. package/dist/{deepClusterSlipSurface-D_7LRpHz.js → deepClusterSlipSurface-CdInWoSj.js} +3 -3
  67. package/dist/{deepDataMatrix-t6axw0An.cjs → deepDataMatrix-C6uYc1Ii.cjs} +1 -1
  68. package/dist/{deepDataMatrix-BXTJm6UD.js → deepDataMatrix-Dx6S0Ud4.js} +2 -2
  69. package/dist/{deepDisplacement3D-BRutQ6Ut.cjs → deepDisplacement3D-Cd3SYFTm.cjs} +1 -1
  70. package/dist/{deepDisplacement3D-Cy-FIGAq.js → deepDisplacement3D-e3cZoBIa.js} +3 -3
  71. package/dist/{deepDisplacementChart-BWVcNgaX.js → deepDisplacementChart-BRg-5xLU.js} +4 -4
  72. package/dist/{deepDisplacementChart-eD2GOxML.cjs → deepDisplacementChart-BdnmYVpg.cjs} +1 -1
  73. package/dist/{deepDisplacementChart---DgDx8L.js → deepDisplacementChart-Df_wRTax.js} +2 -2
  74. package/dist/{deepDisplacementChart-DboPezyJ.cjs → deepDisplacementChart-DyZzw3I1.cjs} +1 -1
  75. package/dist/{deepDisplacementView-CHFgG2wy.js → deepDisplacementView-7PEeLnmE.js} +1 -1
  76. package/dist/{deepDisplacementView-BNVTS7Ar.cjs → deepDisplacementView-DDmT4y42.cjs} +1 -1
  77. package/dist/{deepNodeTemperatureChart-CpJI7axl.cjs → deepNodeTemperatureChart-B7HLWtyp.cjs} +1 -1
  78. package/dist/{deepNodeTemperatureChart-N1z-KMmu.js → deepNodeTemperatureChart-DpZK2y_K.js} +3 -3
  79. package/dist/{deepTangentAngleChart-ClnxPvUM.js → deepTangentAngleChart-D2_fQpm1.js} +3 -3
  80. package/dist/{deepTangentAngleChart-DxB4EaWm.cjs → deepTangentAngleChart-jTYFJpUS.cjs} +1 -1
  81. package/dist/{deepTemperatureField-DT7iyND9.js → deepTemperatureField-Bj0tQot1.js} +3 -3
  82. package/dist/{deepTemperatureField-DWO8Dcjh.cjs → deepTemperatureField-C9oKBaWc.cjs} +1 -1
  83. package/dist/{deepTrendChart-C7_BfEiR.js → deepTrendChart-Cox4B6GG.js} +3 -3
  84. package/dist/{deepTrendChart-D9uQKgck.cjs → deepTrendChart-MgsjLjQP.cjs} +1 -1
  85. package/dist/{deviceOnlineStatus-BA7D5fbt.cjs → deviceOnlineStatus-Ckr78uqa.cjs} +1 -1
  86. package/dist/{deviceOnlineStatus-DlrB6EXN.js → deviceOnlineStatus-KoRHRByt.js} +2 -2
  87. package/dist/{deviceStatus-mDl8zF_Z.cjs → deviceStatus-C6zUE1Ch.cjs} +1 -1
  88. package/dist/{deviceStatus-aPf8MflS.js → deviceStatus-CLyOrzWr.js} +2 -2
  89. package/dist/{displacementDataTable-Da1xkiXG.js → displacementDataTable-B__8-EMW.js} +2 -2
  90. package/dist/{displacementDataTable-Co4In07D.cjs → displacementDataTable-CnMmwp_T.cjs} +1 -1
  91. package/dist/{displacementTrajectoryChart-B85ad8vc.js → displacementTrajectoryChart-BD6_q2AN.js} +3 -3
  92. package/dist/{displacementTrajectoryChart-FPrvrbUa.cjs → displacementTrajectoryChart-EjHI5pSK.cjs} +1 -1
  93. package/dist/{displacementTrendChart-BRxIsjeK.js → displacementTrendChart-C2_U9d0k.js} +2 -2
  94. package/dist/{displacementTrendChart-DcBu8-_Z.cjs → displacementTrendChart-C9-Wcthw.cjs} +1 -1
  95. package/dist/{dxf-FrPSVW4C.js → dxf-BTdzQ1WR.js} +4 -4
  96. package/dist/{dxf-EDkdonhJ.cjs → dxf-BnW_56W9.cjs} +1 -1
  97. package/dist/{dzc-BBijV6-m.cjs → dzc-DIgGeG0y.cjs} +1 -1
  98. package/dist/{dzc-BOaL7miE.js → dzc-DWHQjxWE.js} +3 -3
  99. package/dist/{element-resize-detector-DYs3pJPp.cjs → element-resize-detector-Cl7PwC4K.cjs} +1 -1
  100. package/dist/{element-resize-detector-BCRzpPES.js → element-resize-detector-CoRhuer9.js} +4 -4
  101. package/dist/{evn-T-0VLXht.js → evn-CZWFRKvU.js} +2 -2
  102. package/dist/{evn-CAWNNpK2.cjs → evn-D964RzSY.cjs} +1 -1
  103. package/dist/{evolutionChart-B8vzbfrk.cjs → evolutionChart-CAZZ33t-.cjs} +1 -1
  104. package/dist/{evolutionChart-DYf3V-rl.js → evolutionChart-Co5KN4kk.js} +3 -3
  105. package/dist/{fileViewer-D6rC0YFY.cjs → fileViewer-8Tb-6ZXx.cjs} +1 -1
  106. package/dist/{fileViewer-BRVwWDA3.js → fileViewer-CIgKOZJY.js} +4 -4
  107. package/dist/{filterBar-hfIbyNh_.js → filterBar-DN3gl-1y.js} +2 -2
  108. package/dist/{filterBar-B3Ka4jw8.cjs → filterBar-DzSWAegi.cjs} +1 -1
  109. package/dist/{fireCombustionCurve-D1wKpm4i.js → fireCombustionCurve-2gyNx_37.js} +2 -2
  110. package/dist/{fireCombustionCurve-DKQJzKh2.cjs → fireCombustionCurve-BoPafSTF.cjs} +1 -1
  111. package/dist/{fireFilterBar-D8TTM4KM.cjs → fireFilterBar-BRlStM-R.cjs} +1 -1
  112. package/dist/{fireFilterBar-Bl0iCn48.js → fireFilterBar-DmyGJmXo.js} +2 -2
  113. package/dist/{gag-dKpxHBTV.cjs → gag-Bv61Z9xd.cjs} +1 -1
  114. package/dist/{gag-Vt7-rYYR.js → gag-D8OE6QuC.js} +2 -2
  115. package/dist/{gasStationList-g4AUNuxi.cjs → gasStationList-Db7hnhSp.cjs} +1 -1
  116. package/dist/{gasStationList-BDRHTLvR.js → gasStationList-pE2Ix1jL.js} +3 -3
  117. package/dist/{glbModel-BpnMbHQe.js → glbModel-BOccEfV7.js} +2 -2
  118. package/dist/{glbModel-BCgQzSz1.cjs → glbModel-CveO7gRY.cjs} +1 -1
  119. package/dist/{gnssFilterBar-BgS-JH3k.cjs → gnssFilterBar-DbvuQETH.cjs} +1 -1
  120. package/dist/{gnssFilterBar-CaGGhgEk.js → gnssFilterBar-o46kht8b.js} +2 -2
  121. package/dist/{gnssHistoryTable-CGY1ROb6.js → gnssHistoryTable-BR8BagaW.js} +3 -3
  122. package/dist/{gnssHistoryTable-Bkt4Zvxa.cjs → gnssHistoryTable-D4md3vW9.cjs} +1 -1
  123. package/dist/{gnssMapView-DuNotJym.cjs → gnssMapView-BONePEA0.cjs} +1 -1
  124. package/dist/{gnssMapView-C4-pk-1_.js → gnssMapView-CBuI36is.js} +2 -2
  125. package/dist/{gnssTimeSeriesChart-MZbERhu9.js → gnssTimeSeriesChart-BnkwIXD3.js} +4 -4
  126. package/dist/{gnssTimeSeriesChart-y7L6j_y5.cjs → gnssTimeSeriesChart-k759R4Jz.cjs} +1 -1
  127. package/dist/{gnssXYTrajectory-DZFjqFPv.cjs → gnssXYTrajectory-D8lgUVnP.cjs} +1 -1
  128. package/dist/{gnssXYTrajectory-DL8WWe1C.js → gnssXYTrajectory-XRvGqirG.js} +3 -3
  129. package/dist/{grd-BgaxrUfI.js → grd-GmODod_I.js} +3 -3
  130. package/dist/{grd-DNJ1rlwR.cjs → grd-b9meYGso.cjs} +1 -1
  131. package/dist/{grdIndass-Bxf2L3J5.js → grdIndass-CMhE_Am5.js} +3 -3
  132. package/dist/{grdIndass-DlwlkKKH.cjs → grdIndass-DOjsX9Xe.cjs} +1 -1
  133. package/dist/{grg-78Sh9Nr7.js → grg-Bof7f3MI.js} +2 -2
  134. package/dist/{grg-CmxBlYJ6.cjs → grg-BsVjC-sq.cjs} +1 -1
  135. package/dist/{gridview-FFx-3wNz.cjs → gridview-CQreGJwJ.cjs} +1 -1
  136. package/dist/{gridview-BWe_qLy-.js → gridview-CZUzJi9i.js} +2 -2
  137. package/dist/{groupCard-B2ORsgUN.js → groupCard-B7bg93K0.js} +2 -2
  138. package/dist/{groupCard-BOqERSM4.cjs → groupCard-D8CtEB-E.cjs} +1 -1
  139. package/dist/{headerBar-DPlPX8uD.js → headerBar-CvH7Zc7X.js} +3 -3
  140. package/dist/{headerBar-o2J2Dqkd.cjs → headerBar-eKaZGrw3.cjs} +1 -1
  141. package/dist/{history-DH68UK_U.js → history-D-BYETka.js} +52 -48
  142. package/dist/history-dKfXo4HD.cjs +1 -0
  143. package/dist/{index-ZwyqrmaH.cjs → index-CtAaj9XN.cjs} +11 -2
  144. package/dist/{index-LgTfdmT4.js → index-yidMosRJ.js} +11 -2
  145. package/dist/{insarDeformChart-9Qss0VGu.js → insarDeformChart-DkoK7BBR.js} +2 -2
  146. package/dist/{insarDeformChart-BTwU5ktS.cjs → insarDeformChart-z8yO9-05.cjs} +1 -1
  147. package/dist/{insarImageViewer-C7aTZp-m.js → insarImageViewer-D3dKgLZO.js} +2 -2
  148. package/dist/{insarImageViewer-B-ExpEa8.cjs → insarImageViewer-DA8knTHO.cjs} +1 -1
  149. package/dist/{kds-8n-a2GhL.cjs → kds-CEwnUrkv.cjs} +1 -1
  150. package/dist/{kds-CS7G3BaQ.js → kds-CHs9Tu_R.js} +2 -2
  151. package/dist/{layerTabs-pJJzTbu9.js → layerTabs-DatJpr1M.js} +2 -2
  152. package/dist/{layerTabs-1lOAiEhu.cjs → layerTabs-Dd9Jh_Fv.cjs} +1 -1
  153. package/dist/{lin-IHxWU55I.cjs → lin-B7j-nXP9.cjs} +1 -1
  154. package/dist/{lin-Bk49Db_G.js → lin-BE41AMlf.js} +3 -3
  155. package/dist/{linIndass-Drxnj7KQ.js → linIndass-By1yFIUk.js} +2 -2
  156. package/dist/{linIndass-Cpf8pnLn.cjs → linIndass-C1p1Cmnn.cjs} +1 -1
  157. package/dist/{lst-CPd37vza.cjs → lst-C9GGJBSY.cjs} +1 -1
  158. package/dist/{lst-CL6bmgJ2.js → lst-CZ-zfn6U.js} +2 -2
  159. package/dist/{manualEntry-CcCE4O6Q.cjs → manualEntry-BGHJBf0t.cjs} +1 -1
  160. package/dist/{manualEntry-D_doLqqH.js → manualEntry-D9hLFJDz.js} +2 -2
  161. package/dist/{mapBackground-DEBggmVp.cjs → mapBackground-BtWWW32y.cjs} +1 -1
  162. package/dist/{mapBackground-CvLXKuJx.js → mapBackground-xNQTZByG.js} +2 -2
  163. package/dist/{mappingList-BZODl4t5.js → mappingList-CRrWBRN6.js} +3 -3
  164. package/dist/{mappingList-qKR-0uhY.cjs → mappingList-oTl8MueE.cjs} +1 -1
  165. package/dist/{markdownViewer-CtN6ailN.js → markdownViewer-CL61hROd.js} +4 -4
  166. package/dist/{markdownViewer-DZ8gvoHk.cjs → markdownViewer-CX24h3nv.cjs} +1 -1
  167. package/dist/{mix-control-modal-BlWtiePl.js → mix-control-modal-D6EEQCGG.js} +3 -3
  168. package/dist/{mix-control-modal-zbr85DkZ.cjs → mix-control-modal-dT4E6Haz.cjs} +1 -1
  169. package/dist/{mixDataPermission-C-Cu3_y0.js → mixDataPermission-B9cjyL0A.js} +1 -1
  170. package/dist/{mixDataPermission-Gcl_4czp.cjs → mixDataPermission-DCwcPNX3.cjs} +1 -1
  171. package/dist/{mixGrid-DJQ2jXcg.js → mixGrid-GUG7sL3_.js} +3 -3
  172. package/dist/{mixGrid-Dh9y_kW0.cjs → mixGrid-uKQuF0o0.cjs} +1 -1
  173. package/dist/{mixMap-BRnDOkNF.cjs → mixMap-BdG5zgn9.cjs} +1 -1
  174. package/dist/{mixMap-2REwmqmi.js → mixMap-m7d9IzZE.js} +3 -3
  175. package/dist/{mixModel-C1CKMCLi.cjs → mixModel-C8zjwy8B.cjs} +1 -1
  176. package/dist/{mixModel-CHtF97xc.js → mixModel-CC6G9D0O.js} +3 -3
  177. package/dist/{mixPie-sD-AjwaC.cjs → mixPie-2gzUWb-u.cjs} +1 -1
  178. package/dist/{mixPie-DwDffWz5.js → mixPie-Bj81XmbV.js} +3 -3
  179. package/dist/mixdashboards.cjs +1 -1
  180. package/dist/mixdashboards.js +1 -1
  181. package/dist/{mjpegCamera-Dbfd7eUC.js → mjpegCamera-Br5ey7tT.js} +2 -2
  182. package/dist/{mjpegCamera-RMS_dnv0.cjs → mjpegCamera-CILgaHwA.cjs} +1 -1
  183. package/dist/{monitorAlert-CjIQQ6fQ.cjs → monitorAlert-BmzetgZD.cjs} +1 -1
  184. package/dist/{monitorAlert-DagV3vuc.js → monitorAlert-CobYzZGr.js} +2 -2
  185. package/dist/{monitorData-CTkeA21g.js → monitorData-1r6SI7q1.js} +3 -3
  186. package/dist/{monitorData-DUansNO5.cjs → monitorData-DJbzjlS_.cjs} +1 -1
  187. package/dist/{monitorSpeedChart-CjfFqWon.cjs → monitorSpeedChart-DBaNR_i8.cjs} +1 -1
  188. package/dist/{monitorSpeedChart-BFnREZYZ.js → monitorSpeedChart-DkdUR1aJ.js} +1 -1
  189. package/dist/{mxa-B6ezKf-C.js → mxa-D-jbIMK7.js} +3 -3
  190. package/dist/{mxa-CN6zXgZA.cjs → mxa-QPAMK1uo.cjs} +1 -1
  191. package/dist/{myValue-C08vYRJC.js → myValue-BAiot_SS.js} +2 -2
  192. package/dist/{myValue-BG_jI_HT.cjs → myValue-Djvdf93P.cjs} +1 -1
  193. package/dist/{myValueList-BKVL_kPb.js → myValueList-BQAhr_60.js} +2 -2
  194. package/dist/{myValueList-Bwg3XCPF.cjs → myValueList-BVoHmkwi.cjs} +1 -1
  195. package/dist/{objectList-emtQyLbD.js → objectList-DC6ZXVnE.js} +4 -4
  196. package/dist/{objectList-FArM7oEM.cjs → objectList-ZBsMNei9.cjs} +1 -1
  197. package/dist/{photo-B9Veb_Am.cjs → photo-BfbD83cP.cjs} +1 -1
  198. package/dist/{photo-DXbQg_FJ.js → photo-DB7ScxzD.js} +4 -4
  199. package/dist/{pie-U9hOnFzz.cjs → pie-BWZlNdAH.cjs} +1 -1
  200. package/dist/{pie-DZzf2lL7.js → pie-CG9x9JkC.js} +3 -3
  201. package/dist/{pressBtn-BNr1R0gW.cjs → pressBtn-B9R9kSLo.cjs} +1 -1
  202. package/dist/{pressBtn-R5Wsj-Jw.js → pressBtn-Dx47q_TJ.js} +4 -4
  203. package/dist/{progressBar-sLfJICdr.js → progressBar-BiODeN_6.js} +2 -2
  204. package/dist/{progressBar-CUSoF6f0.cjs → progressBar-Cc0NRBqW.cjs} +1 -1
  205. package/dist/{progressCircle-BZgPxs_q.js → progressCircle-CUhyErYl.js} +2 -2
  206. package/dist/{progressCircle-B6P8B-t_.cjs → progressCircle-DafFwMdt.cjs} +1 -1
  207. package/dist/{qrcode-C96PznAO.js → qrcode-BcG6Yp9v.js} +2 -2
  208. package/dist/{qrcode-DMrNxgq5.cjs → qrcode-CpIFW2ZU.cjs} +1 -1
  209. package/dist/{raceBar-Dryx8Onl.js → raceBar-3TwLjyCx.js} +3 -3
  210. package/dist/{raceBar-BTExTEsZ.cjs → raceBar-DcyXXcCw.cjs} +1 -1
  211. package/dist/{rad-vw4O2ByZ.js → rad-B9uXwQSO.js} +2 -2
  212. package/dist/{rad-DpkIOKs_.cjs → rad-tTO9rh8e.cjs} +1 -1
  213. package/dist/{rainfallFilterBar-CH3abw6C.cjs → rainfallFilterBar-B0MHbvVF.cjs} +1 -1
  214. package/dist/{rainfallFilterBar-BjAWqKtM.js → rainfallFilterBar-B5me6wiw.js} +2 -2
  215. package/dist/{rainfallTimeCurve-oJUJ2mt7.cjs → rainfallTimeCurve-C0fnVsZL.cjs} +1 -1
  216. package/dist/{rainfallTimeCurve-BPDZGrlQ.js → rainfallTimeCurve-DhMUUl4b.js} +3 -3
  217. package/dist/{rangeLin-BFFy57TT.js → rangeLin-Bjba28V0.js} +2 -2
  218. package/dist/{rangeLin-CBqKAU0P.cjs → rangeLin-CcAP_o6E.cjs} +1 -1
  219. package/dist/{request-jIo7FwQD.js → request-CQBzobr7.js} +1 -1
  220. package/dist/{request-BcQP_dWt.cjs → request-DWe5EztR.cjs} +1 -1
  221. package/dist/{retainer1-CfcwA39J.cjs → retainer1-D0WcsB4O.cjs} +1 -1
  222. package/dist/{retainer1-goSPppQ-.js → retainer1-DnbR3o0S.js} +3 -3
  223. package/dist/{retainer2-DwQmFU10.cjs → retainer2-BsGq3sf6.cjs} +1 -1
  224. package/dist/{retainer2-BHdnsKrO.js → retainer2-HC4a_Rcx.js} +3 -3
  225. package/dist/{riskRegionTable-B8-f5xx-.js → riskRegionTable-DTArCYea.js} +2 -2
  226. package/dist/{riskRegionTable-CSJpPxPB.cjs → riskRegionTable-FoEiUsM-.cjs} +1 -1
  227. package/dist/{sankey-DXCBHb16.cjs → sankey-C5gmAMhu.cjs} +1 -1
  228. package/dist/{sankey-C0gaE3HM.js → sankey-D3TV79p7.js} +3 -3
  229. package/dist/{scd-Cwyft2g6.js → scd-Bl3rOGmw.js} +2 -2
  230. package/dist/{scd-CkEHu7nZ.cjs → scd-Db6KXaan.cjs} +1 -1
  231. package/dist/{sideMenu-DUdDDJ9K.cjs → sideMenu-BDM1P1cW.cjs} +1 -1
  232. package/dist/{sideMenu-BtVCCKw9.js → sideMenu-BJfA1uhH.js} +2 -2
  233. package/dist/{slopeStability-DwxDXTQG.js → slopeStability-DaP323la.js} +3 -3
  234. package/dist/{slopeStability-Byb6AKti.cjs → slopeStability-Z2V2od39.cjs} +1 -1
  235. package/dist/{speedCurve-BuNsy-ev.js → speedCurve-B_EYlvSe.js} +3 -3
  236. package/dist/{speedCurve-DArreweP.cjs → speedCurve-Dp3uVVyX.cjs} +1 -1
  237. package/dist/{staticLine-DfkpF6ZW.js → staticLine-CHiOuPX8.js} +3 -3
  238. package/dist/{staticLine-C50p0CZs.cjs → staticLine-Cnx32607.cjs} +1 -1
  239. package/dist/{store-D_TrU3nw.js → store-CHqnWEik.js} +2 -2
  240. package/dist/{store-ByTYoqyI.cjs → store-DehrZfaE.cjs} +1 -1
  241. package/dist/{swiper-L0Oo2dYD.cjs → swiper-BR2IFoJz.cjs} +1 -1
  242. package/dist/{swiper-CQiRByJd.js → swiper-C3dOtddc.js} +2 -2
  243. package/dist/{terminalConfigList-ChC43Bwq.cjs → terminalConfigList-DSu4f9n4.cjs} +1 -1
  244. package/dist/{terminalConfigList-BhmfFm4f.js → terminalConfigList-DVWWVeq4.js} +3 -3
  245. package/dist/{terminalList-C6tswBt1.js → terminalList-B8VgdttS.js} +3 -3
  246. package/dist/{terminalList-BQModRyk.cjs → terminalList-CKIaOeIR.cjs} +1 -1
  247. package/dist/{textbox-CgOhFsYo.js → textbox-Dj_XimAG.js} +3 -3
  248. package/dist/{textbox-CSuiDl8k.cjs → textbox-Dzmi2rz_.cjs} +1 -1
  249. package/dist/{timeQueryBar-QEg1Flg9.js → timeQueryBar-C2VHV9c7.js} +1 -1
  250. package/dist/{timeQueryBar-BtCXHgrg.cjs → timeQueryBar-crAWaYhQ.cjs} +1 -1
  251. package/dist/{timeSeries-DMINp9Fr.cjs → timeSeries-BRyc4h11.cjs} +1 -1
  252. package/dist/{timeSeries-B7NgbHfJ.js → timeSeries-CWuU-ogt.js} +4 -4
  253. package/dist/{timeSeriesCurve-wC9wHGI4.cjs → timeSeriesCurve-BMhQZA1X.cjs} +1 -1
  254. package/dist/{timeSeriesCurve-DEY5KQvu.js → timeSeriesCurve-Dk6FzaEp.js} +3 -3
  255. package/dist/{toggleBtn-DO953U-q.cjs → toggleBtn-B89o860W.cjs} +1 -1
  256. package/dist/{toggleBtn-Brtfu0-e.js → toggleBtn-ogVA3WOs.js} +3 -3
  257. package/dist/{trajectoryConfigPanel-BDdP3SdV.js → trajectoryConfigPanel-D01N49lh.js} +1 -1
  258. package/dist/{trajectoryConfigPanel-Bl_o9h2e.cjs → trajectoryConfigPanel-vGNgzSs6.cjs} +1 -1
  259. package/dist/{trajectoryScatter-DVm5ljvY.cjs → trajectoryScatter-CYFXE4dK.cjs} +1 -1
  260. package/dist/{trajectoryScatter-7-lJ5SMe.js → trajectoryScatter-DFhmjKpF.js} +3 -3
  261. package/dist/{universalConfigPanel-Cm4TfqAK.cjs → universalConfigPanel-DZHD2pZU.cjs} +1 -1
  262. package/dist/{universalConfigPanel-DTLFrGXs.js → universalConfigPanel-NB63CQv0.js} +1 -1
  263. package/dist/{universalTable-Bl9x3wEx.cjs → universalTable-BAlYZc6X.cjs} +1 -1
  264. package/dist/{universalTable-CCFr-GKz.js → universalTable-qpOc4526.js} +2 -2
  265. package/dist/{video-DObKrYkw.cjs → video-De2pwq7u.cjs} +1 -1
  266. package/dist/{video-gqqvz5Ge.js → video-rA9ArC4S.js} +4 -4
  267. package/dist/{videoMonitor-CGMHzNdh.js → videoMonitor-BSwBaLTE.js} +2 -2
  268. package/dist/{videoMonitor-B_Ur25fz.cjs → videoMonitor-CtoFDowr.cjs} +1 -1
  269. package/dist/{vlu-6DSf0haZ.js → vlu-B75MzAeW.js} +2 -2
  270. package/dist/{vlu-Dbj9euY_.cjs → vlu-BzBMTMWw.cjs} +1 -1
  271. package/dist/{weather-BsIBTn7G.cjs → weather-BNvwdR4t.cjs} +1 -1
  272. package/dist/{weather-CQBxQBld.js → weather-CJfwwOVu.js} +2 -2
  273. package/dist/{windLin-jVF-rhIx.cjs → windLin-SLR46lyF.cjs} +1 -1
  274. package/dist/{windLin-KIVk9hOD.js → windLin-yLs-b3_q.js} +2 -2
  275. package/package.json +1 -1
  276. package/dist/api-Cyx2Fha0.js +0 -125
  277. package/dist/api-nw_9niqv.cjs +0 -1
  278. package/dist/history-5W6pGCPq.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var g=Object.defineProperty,x=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var u=(o,t,l)=>t in o?g(o,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[t]=l,f=(o,t)=>{for(var l in t||(t={}))h.call(t,l)&&u(o,l,t[l]);if(C)for(var l of C(t))v.call(t,l)&&u(o,l,t[l]);return o},p=(o,t)=>x(o,m(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),S=require("./element-resize-detector-DYs3pJPp.cjs"),b=require("./index-ZwyqrmaH.cjs"),w=require("./titleStyle-NSnz6cUg.cjs"),_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",M="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",O={class:"mix-body flex flex-col"},k={class:"flex-1"},z={DEFAULT_ICON:_,ACTIVE_ICON:M,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2},T={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1},E=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],V=["name","fv","object_id","color","maxType","max"],Z=["mosaic"],B={useAlias:!1,multiObject:!1,source:"mosaic"},N={DEFAULT:z,OPTIONS:T,DATA:E,PARAMS:V,SOURCE:Z,COMMON:B},F=e.defineComponent(p(f({},N),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const t=o;class l extends S.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var a;this.Style.value=this.extractStyles(),this.applyTheme(),(a=this.props.conf.data)!=null&&a.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])}setSocketData(a){if(!a)return;const{data:s}=this.props.conf;s.forEach(r=>{r.value=this.extractDataValue(a,r.fv)||0;const n=r.maxType==="value"?r.max:this.extractDataValue(a,r.max)||0;r.percent=n==0?0:Number((r.value/n*100).toFixed(2))})}}const c=new l(t,"progressBar");c.setupLifecycle();const i=c.getStyle(),L=e.computed(()=>w.generateTitleStyle(t.conf.options));return(d,a)=>{const s=y.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(L.value)},e.toDisplayString(o.conf.caption||o.conf.name),5),e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.conf.data,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(i).textSize+"px",color:e.unref(i).textColor,width:e.unref(i).labelWidth+"px"})},e.toDisplayString(r.name),5),e.createElementVNode("div",k,[e.createVNode(s,{percentage:r.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(i).barColor}),color:r.color,"stroke-width":e.unref(i).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(i).textSize+"px",color:e.unref(i).textColor})},e.toDisplayString(r.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),D=b._export_sfc(F,[["__scopeId","data-v-f97af99d"]]);exports.default=D;
1
+ "use strict";var g=Object.defineProperty,x=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var u=(o,t,l)=>t in o?g(o,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[t]=l,f=(o,t)=>{for(var l in t||(t={}))h.call(t,l)&&u(o,l,t[l]);if(C)for(var l of C(t))v.call(t,l)&&u(o,l,t[l]);return o},p=(o,t)=>x(o,m(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),S=require("./element-resize-detector-Cl7PwC4K.cjs"),b=require("./index-CtAaj9XN.cjs"),w=require("./titleStyle-NSnz6cUg.cjs"),_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",M="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",O={class:"mix-body flex flex-col"},k={class:"flex-1"},z={DEFAULT_ICON:_,ACTIVE_ICON:M,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2},T={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1},E=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],V=["name","fv","object_id","color","maxType","max"],Z=["mosaic"],B={useAlias:!1,multiObject:!1,source:"mosaic"},N={DEFAULT:z,OPTIONS:T,DATA:E,PARAMS:V,SOURCE:Z,COMMON:B},F=e.defineComponent(p(f({},N),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const t=o;class l extends S.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var a;this.Style.value=this.extractStyles(),this.applyTheme(),(a=this.props.conf.data)!=null&&a.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])}setSocketData(a){if(!a)return;const{data:s}=this.props.conf;s.forEach(r=>{r.value=this.extractDataValue(a,r.fv)||0;const n=r.maxType==="value"?r.max:this.extractDataValue(a,r.max)||0;r.percent=n==0?0:Number((r.value/n*100).toFixed(2))})}}const c=new l(t,"progressBar");c.setupLifecycle();const i=c.getStyle(),L=e.computed(()=>w.generateTitleStyle(t.conf.options));return(d,a)=>{const s=y.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(L.value)},e.toDisplayString(o.conf.caption||o.conf.name),5),e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.conf.data,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(i).textSize+"px",color:e.unref(i).textColor,width:e.unref(i).labelWidth+"px"})},e.toDisplayString(r.name),5),e.createElementVNode("div",k,[e.createVNode(s,{percentage:r.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(i).barColor}),color:r.color,"stroke-width":e.unref(i).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(i).textSize+"px",color:e.unref(i).textColor})},e.toDisplayString(r.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),D=b._export_sfc(F,[["__scopeId","data-v-f97af99d"]]);exports.default=D;
@@ -14,8 +14,8 @@ import { ElProgress as E } from "element-plus/es";
14
14
  import "element-plus/es/components/base/style/css";
15
15
  import "element-plus/es/components/progress/style/css";
16
16
  import { defineComponent as F, computed as m, openBlock as p, createElementBlock as u, normalizeStyle as c, unref as i, createElementVNode as d, toDisplayString as g, Fragment as A, renderList as D, createVNode as L, withCtx as Z, createCommentVNode as b, renderSlot as j } from "vue";
17
- import { B } from "./element-resize-detector-BCRzpPES.js";
18
- import { _ as I } from "./index-LgTfdmT4.js";
17
+ import { B } from "./element-resize-detector-CoRhuer9.js";
18
+ import { _ as I } from "./index-yidMosRJ.js";
19
19
  import { g as P } from "./titleStyle-BT5GlpAb.js";
20
20
  const R = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", U = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", W = { class: "mix-body flex flex-wrap" }, H = {
21
21
  DEFAULT_ICON: R,
@@ -1 +1 @@
1
- "use strict";var h=Object.defineProperty,b=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var d=(l,o,a)=>o in l?h(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,C=(l,o)=>{for(var a in o||(o={}))w.call(o,a)&&d(l,a,o[a]);if(p)for(var a of p(o))k.call(o,a)&&d(l,a,o[a]);return l},m=(l,o)=>b(l,S(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),z=require("./element-resize-detector-DYs3pJPp.cjs"),O=require("./index-ZwyqrmaH.cjs"),V=require("./titleStyle-NSnz6cUg.cjs"),_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T={class:"mix-body flex flex-wrap"},B={DEFAULT_ICON:_,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3},M={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],A=["mosaic"],j={useAlias:!1,multiObject:!1,source:"mosaic"},L={DEFAULT:B,OPTIONS:M,DATA:D,PARAMS:F,SOURCE:A,COMMON:j},Z=e.defineComponent(m(C({},L),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l;class a extends z.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(n=>{n.value=this.extractDataValue(t,n.fv)||0;const c=n.maxType==="value"?n.max:this.extractDataValue(t,n.max)||0;n.percent=c==0?0:Number((n.value/c*100).toFixed(2))})}}const u=new a(o,"progressCircle");u.setupLifecycle();const r=u.getStyle(),g=e.computed(()=>{var i;const s=(i=r.value)==null?void 0:i.diameter,t=Number(s);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const s=(i=r.value)==null?void 0:i.barWidth,t=Number(s);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),v=e.computed(()=>V.generateTitleStyle(o.conf.options)),x=(s,t)=>r.value.type==="value"?t==null?void 0:t.value:s+"%";return(s,t)=>{const i=N.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(r).bgColor,borderRadius:`${e.unref(r).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(v.value)},e.toDisplayString(l.conf.caption||l.conf.name),5),e.createElementVNode("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(n,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:n.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(r).barColor}),color:n.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:y})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(r).textSize+"px",color:e.unref(r).textColor})},e.toDisplayString(x(y,n)),5),e.unref(r).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(r).textSize+"px",color:e.unref(r).textColor})},e.toDisplayString(n.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(r).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(r).textSize+"px",color:e.unref(r).textColor})},e.toDisplayString(n.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4)}}})),q=O._export_sfc(Z,[["__scopeId","data-v-793729d1"]]);exports.default=q;
1
+ "use strict";var h=Object.defineProperty,b=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var d=(l,o,a)=>o in l?h(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,C=(l,o)=>{for(var a in o||(o={}))w.call(o,a)&&d(l,a,o[a]);if(p)for(var a of p(o))k.call(o,a)&&d(l,a,o[a]);return l},m=(l,o)=>b(l,S(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),z=require("./element-resize-detector-Cl7PwC4K.cjs"),O=require("./index-CtAaj9XN.cjs"),V=require("./titleStyle-NSnz6cUg.cjs"),_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T={class:"mix-body flex flex-wrap"},B={DEFAULT_ICON:_,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3},M={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],A=["mosaic"],j={useAlias:!1,multiObject:!1,source:"mosaic"},L={DEFAULT:B,OPTIONS:M,DATA:D,PARAMS:F,SOURCE:A,COMMON:j},Z=e.defineComponent(m(C({},L),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l;class a extends z.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(n=>{n.value=this.extractDataValue(t,n.fv)||0;const c=n.maxType==="value"?n.max:this.extractDataValue(t,n.max)||0;n.percent=c==0?0:Number((n.value/c*100).toFixed(2))})}}const u=new a(o,"progressCircle");u.setupLifecycle();const r=u.getStyle(),g=e.computed(()=>{var i;const s=(i=r.value)==null?void 0:i.diameter,t=Number(s);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const s=(i=r.value)==null?void 0:i.barWidth,t=Number(s);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),v=e.computed(()=>V.generateTitleStyle(o.conf.options)),x=(s,t)=>r.value.type==="value"?t==null?void 0:t.value:s+"%";return(s,t)=>{const i=N.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(r).bgColor,borderRadius:`${e.unref(r).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(v.value)},e.toDisplayString(l.conf.caption||l.conf.name),5),e.createElementVNode("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(n,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:n.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(r).barColor}),color:n.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:y})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(r).textSize+"px",color:e.unref(r).textColor})},e.toDisplayString(x(y,n)),5),e.unref(r).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(r).textSize+"px",color:e.unref(r).textColor})},e.toDisplayString(n.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(r).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(r).textSize+"px",color:e.unref(r).textColor})},e.toDisplayString(n.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4)}}})),q=O._export_sfc(Z,[["__scopeId","data-v-793729d1"]]);exports.default=q;
@@ -11,8 +11,8 @@ var K = (n, d, s) => d in n ? ae(n, d, { enumerable: !0, configurable: !0, writa
11
11
  return n;
12
12
  }, U = (n, d) => oe(n, ne(d));
13
13
  import { defineComponent as q, h as E, ref as $, onMounted as ue, watchEffect as se, Fragment as de, computed as A, openBlock as he, createElementBlock as ce, normalizeStyle as H, unref as B, createElementVNode as V, toDisplayString as fe, createVNode as ve, renderSlot as ge } from "vue";
14
- import { B as me } from "./element-resize-detector-BCRzpPES.js";
15
- import { _ as Ce } from "./index-LgTfdmT4.js";
14
+ import { B as me } from "./element-resize-detector-CoRhuer9.js";
15
+ import { _ as Ce } from "./index-yidMosRJ.js";
16
16
  import { g as we } from "./titleStyle-BT5GlpAb.js";
17
17
  var R = function() {
18
18
  return R = Object.assign || function(d) {
@@ -1 +1 @@
1
- "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,D=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},q=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./element-resize-detector-DYs3pJPp.cjs"),ae=require("./index-ZwyqrmaH.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var z;(function(o){var d=(function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=n)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var T=a.getNumDataCodewords(g,t)*8;c(v.length<=T),s(0,Math.min(4,T-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<T;N^=253)s(N,8,v);for(var _=[];_.length*8<v.length;)_.push(0);return v.forEach(function(I,O){return _[O>>>3]|=I<<7-(O&7)}),new a(g,t,_,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var l=i[n],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();o.QrSegment=h})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var B=z,V="L",oe=100,G=0,ie=.1,le=2,W={L:B.QrCode.Ecc.LOW,M:B.QrCode.Ecc.MEDIUM,Q:B.QrCode.Ecc.QUARTILE,H:B.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return B.QrCode.encodeText(o.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,O){I.forEach(function(x,L){x&&v.fillRect(L+u.value,O+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var T=function(I,O,x,L,Q,X){I.beginPath(),I.roundRect?I.roundRect(O,x,L,Q,X):I.rect(O,x,L,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,T(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var _=a.value.borderRadius;_>0?(v.save(),T(v,a.value.x,a.value.y,a.value.width,a.value.height,_),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(n),f.watchEffect(n);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(q(D({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const d=o;class s extends re.BaseComponent{extractStyles(){return q(D({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>ne.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(n,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-8d1e58f4"]]);exports.default=be;
1
+ "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,D=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},q=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./element-resize-detector-Cl7PwC4K.cjs"),ae=require("./index-CtAaj9XN.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var z;(function(o){var d=(function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=n)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var T=a.getNumDataCodewords(g,t)*8;c(v.length<=T),s(0,Math.min(4,T-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<T;N^=253)s(N,8,v);for(var _=[];_.length*8<v.length;)_.push(0);return v.forEach(function(I,O){return _[O>>>3]|=I<<7-(O&7)}),new a(g,t,_,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var l=i[n],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();o.QrSegment=h})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var B=z,V="L",oe=100,G=0,ie=.1,le=2,W={L:B.QrCode.Ecc.LOW,M:B.QrCode.Ecc.MEDIUM,Q:B.QrCode.Ecc.QUARTILE,H:B.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return B.QrCode.encodeText(o.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,O){I.forEach(function(x,L){x&&v.fillRect(L+u.value,O+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var T=function(I,O,x,L,Q,X){I.beginPath(),I.roundRect?I.roundRect(O,x,L,Q,X):I.rect(O,x,L,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,T(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var _=a.value.borderRadius;_>0?(v.save(),T(v,a.value.x,a.value.y,a.value.width,a.value.height,_),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(n),f.watchEffect(n);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(q(D({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const d=o;class s extends re.BaseComponent{extractStyles(){return q(D({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>ne.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(n,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-8d1e58f4"]]);exports.default=be;
@@ -11,9 +11,9 @@ var C = (n, i, a) => i in n ? S(n, i, { enumerable: !0, configurable: !0, writab
11
11
  return n;
12
12
  }, p = (n, i) => b(n, v(i));
13
13
  import { defineComponent as w, computed as _, openBlock as O, createElementBlock as R, normalizeStyle as g, unref as r, createElementVNode as m, toDisplayString as D, renderSlot as E, nextTick as k } from "vue";
14
- import { a as $, C as M } from "./element-resize-detector-BCRzpPES.js";
15
- import { _ as z } from "./index-LgTfdmT4.js";
16
- import { E as H } from "./EChartComponentBase-CafVdj74.js";
14
+ import { a as $, C as M } from "./element-resize-detector-CoRhuer9.js";
15
+ import { _ as z } from "./index-yidMosRJ.js";
16
+ import { E as H } from "./EChartComponentBase-BjiCJlIa.js";
17
17
  import { g as I } from "./titleStyle-BT5GlpAb.js";
18
18
  import { u as B, i as F, a as N } from "./installCanvasRenderer-CLT2hquJ.js";
19
19
  import { i as U } from "./install-CBde4hAM.js";
@@ -1,4 +1,4 @@
1
- "use strict";var S=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var C=(l,o,a)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,d=(l,o)=>{for(var a in o||(o={}))A.call(o,a)&&C(l,a,o[a]);if(f)for(var a of f(o))T.call(o,a)&&C(l,a,o[a]);return l},p=(l,o)=>v(l,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),g=require("./element-resize-detector-DYs3pJPp.cjs"),w=require("./index-ZwyqrmaH.cjs"),O=require("./EChartComponentBase-Dz5E-lyI.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),h=require("./installCanvasRenderer-CyhM1Qpl.cjs"),_=require("./install-DV5cEgNV.cjs"),E=require("./install-CltTFs4e.cjs"),D=require("./install-C8buXQPI.cjs"),k=require("./install-Ch5d8i37.cjs"),M="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",z={class:"mix-body"},H=["id"],I={DEFAULT_ICON:M,ACTIVE_ICON:$,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1},B={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1},N=[{name:"参数一",fv:"",color:"#4162ff"}],q=["name","fv","color"],F=["mosaic"],V={useAlias:!1,multiObject:!1,source:"mosaic"},U={DEFAULT:I,OPTIONS:B,DATA:N,PARAMS:q,SOURCE:F,COMMON:V},Z=i.defineComponent(p(d({},U),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){h.use([_.install,E.install,h.install,D.install,h.install$1,k.install]);const o=l;class a extends O.EChartComponentBase{constructor(){super(...arguments),this.CHART={data:[],items:[],colors:[],times:[]}}extractStyles(){return p(d({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.initChartData(),i.nextTick(()=>this.initChart())}initChartData(){const e=this.props.conf;this.CHART={data:[],items:[],colors:[],times:[]},e.data.forEach((s,n)=>{const t=g.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(s.color||g.COLORS[n]),this.CHART.data.push(s.value||t[0]),this.CHART.items.push(s.name)})}getChartOption(){const e=this.Style.value;this.props.conf;const s=this.CHART;let n={grid:{top:e.top,bottom:e.bottom,left:e.left,right:e.right,containLabel:!1},tooltip:{show:!0,formatter:t=>s.times[t.dataIndex]?`${s.times[t.dataIndex]}
1
+ "use strict";var S=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var C=(l,o,a)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,d=(l,o)=>{for(var a in o||(o={}))A.call(o,a)&&C(l,a,o[a]);if(f)for(var a of f(o))T.call(o,a)&&C(l,a,o[a]);return l},p=(l,o)=>v(l,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),g=require("./element-resize-detector-Cl7PwC4K.cjs"),w=require("./index-CtAaj9XN.cjs"),O=require("./EChartComponentBase-CUbabNTX.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),h=require("./installCanvasRenderer-CyhM1Qpl.cjs"),_=require("./install-DV5cEgNV.cjs"),E=require("./install-CltTFs4e.cjs"),D=require("./install-C8buXQPI.cjs"),k=require("./install-Ch5d8i37.cjs"),M="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",z={class:"mix-body"},H=["id"],I={DEFAULT_ICON:M,ACTIVE_ICON:$,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1},B={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1},N=[{name:"参数一",fv:"",color:"#4162ff"}],q=["name","fv","color"],F=["mosaic"],V={useAlias:!1,multiObject:!1,source:"mosaic"},U={DEFAULT:I,OPTIONS:B,DATA:N,PARAMS:q,SOURCE:F,COMMON:V},Z=i.defineComponent(p(d({},U),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){h.use([_.install,E.install,h.install,D.install,h.install$1,k.install]);const o=l;class a extends O.EChartComponentBase{constructor(){super(...arguments),this.CHART={data:[],items:[],colors:[],times:[]}}extractStyles(){return p(d({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.initChartData(),i.nextTick(()=>this.initChart())}initChartData(){const e=this.props.conf;this.CHART={data:[],items:[],colors:[],times:[]},e.data.forEach((s,n)=>{const t=g.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(s.color||g.COLORS[n]),this.CHART.data.push(s.value||t[0]),this.CHART.items.push(s.name)})}getChartOption(){const e=this.Style.value;this.props.conf;const s=this.CHART;let n={grid:{top:e.top,bottom:e.bottom,left:e.left,right:e.right,containLabel:!1},tooltip:{show:!0,formatter:t=>s.times[t.dataIndex]?`${s.times[t.dataIndex]}
2
2
  ${t.name}:${t.data}`:`${t.name}:${t.data}`},xAxis:{max:"dataMax",axisLine:{show:!0,color:e.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:e.textColor,fontSize:e.textSize,formatter:t=>t.length>4?t.substr(0,4):t}},yAxis:{axisLabel:{formatter:t=>t.length>5?t.substr(0,5)+`
3
3
  `+t.substr(5):t,color:e.textColor,fontSize:e.textSize},axisLine:{lineStyle:{color:e.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[{realtimeSort:e.realSort,type:"bar",barWidth:e.barWidth+"%",data:s.data,label:{show:!0,position:"right",valueAnimation:!0,color:e.textColor,fontSize:e.textSize,formatter:t=>{const c=s.times[t.dataIndex]?`
4
4
  ${s.times[t.dataIndex]}`:"";return`${t.data}${c}`}},itemStyle:{color:t=>s.colors[t.dataIndex]||"#5470c6"}}],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return e.direction==="x"?(n.yAxis.data=s.items,e.realSort&&(n.yAxis.inverse=e.sortType==="desc"),n.series[0].label.position="right",n.xAxis.splitLine.lineStyle.type="dashed"):(n.xAxis.data=s.items,e.realSort&&(n.xAxis.inverse=e.sortType==="asc"),n.series[0].label.position="top",n.yAxis.splitLine.lineStyle.type="dashed",delete n.yAxis.type),n}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:s}=this.props.conf;this.CHART.data=[],this.CHART.times=[],s.forEach(n=>{const t=this.extractDataValue(e,n.fv),c=e.datetime||"";this.CHART.data.push(t!=null?t:"--"),this.CHART.times.push(c)}),this.chartObj.setOption(this.getChartOption(),!0)}}const r=new a(o,"raceBar");r.setupLifecycle();const u=r.getStyle(),L=r.getEchartId(),m=o.conf,y=i.computed(()=>R.generateTitleStyle(o.conf.options));return(x,e)=>(i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({background:i.unref(u).bgColor,borderRadius:`${i.unref(u).radiusSize}px`})},[i.createElementVNode("div",{class:"mix-title",style:i.normalizeStyle(y.value)},i.toDisplayString(i.unref(m).caption||i.unref(m).name),5),i.createElementVNode("div",z,[i.createElementVNode("div",{class:"w-full h-full",id:i.unref(L)},null,8,H)]),i.renderSlot(x.$slots,"default",{},void 0,!0)],4))}})),j=w._export_sfc(Z,[["__scopeId","data-v-e0dcd023"]]);exports.default=j;
@@ -11,8 +11,8 @@ var m = (o, t, e) => t in o ? y(o, t, { enumerable: !0, configurable: !0, writab
11
11
  return o;
12
12
  }, g = (o, t) => _(o, b(t));
13
13
  import { defineComponent as E, computed as Z, openBlock as k, createElementBlock as z, normalizeStyle as h, unref as s, createElementVNode as C, toDisplayString as F, renderSlot as N } from "vue";
14
- import { _ as T } from "./index-LgTfdmT4.js";
15
- import { E as A } from "./EChartComponentBase-CafVdj74.js";
14
+ import { _ as T } from "./index-yidMosRJ.js";
15
+ import { E as A } from "./EChartComponentBase-BjiCJlIa.js";
16
16
  import { g as D } from "./titleStyle-BT5GlpAb.js";
17
17
  import { i as V } from "./install-9_V0b6vf.js";
18
18
  import { u as j, i as I, a as R } from "./installCanvasRenderer-CLT2hquJ.js";
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty,w=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var f=(i,e,o)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o,m=(i,e)=>{for(var o in e||(e={}))_.call(e,o)&&f(i,o,e[o]);if(p)for(var o of p(e))O.call(e,o)&&f(i,o,e[o]);return i},g=(i,e)=>w(i,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-ZwyqrmaH.cjs"),E=require("./EChartComponentBase-Dz5E-lyI.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),Z=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),k=require("./install-DV5cEgNV.cjs"),z=require("./install-CltTFs4e.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V={class:"mix-body"},A=["id"],j={DEFAULT_ICON:T,ACTIVE_ICON:F,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},h=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:j,OPTIONS:D,DATA:h,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(g(m({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){c.use([k.install,z.install,c.install,c.install$1,Z.install]);const e=i,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:a,options:l}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return h}setSocketData(n){if(!n||!this.chartObj)return;const{data:a}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],a.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",V,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,A)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-c6a7a58a"]]);exports.default=U;
1
+ "use strict";var y=Object.defineProperty,w=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var f=(i,e,o)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o,m=(i,e)=>{for(var o in e||(e={}))_.call(e,o)&&f(i,o,e[o]);if(p)for(var o of p(e))O.call(e,o)&&f(i,o,e[o]);return i},g=(i,e)=>w(i,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-CtAaj9XN.cjs"),E=require("./EChartComponentBase-CUbabNTX.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),Z=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),k=require("./install-DV5cEgNV.cjs"),z=require("./install-CltTFs4e.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V={class:"mix-body"},A=["id"],j={DEFAULT_ICON:T,ACTIVE_ICON:F,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},h=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:j,OPTIONS:D,DATA:h,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(g(m({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){c.use([k.install,z.install,c.install,c.install$1,Z.install]);const e=i,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:a,options:l}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return h}setSocketData(n){if(!n||!this.chartObj)return;const{data:a}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],a.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",V,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,A)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-c6a7a58a"]]);exports.default=U;
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,o,r)=>o in i?S(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,E=(i,o)=>{for(var r in o||(o={}))T.call(o,r)&&y(i,r,o[r]);if(C)for(var r of C(o))O.call(o,r)&&y(i,r,o[r]);return i},k=(i,o)=>j(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),H=require("./element-resize-detector-DYs3pJPp.cjs"),g=require("./index-ZwyqrmaH.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),I={class:"filter-bar"},x={class:"filter-item"},F={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},z=["onClick"],U={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const o=i;class r extends H.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,s=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:s==="custom"&&u?u:s}}}const b=new r(o,"rainfallFilterBar");b.setupLifecycle();const R=b.getStyle(),d=e.computed(()=>{var t;const l=(t=o.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(s=>s.name)}),N=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return a.region&&(l=l.filter(t=>t.region===a.region)),l.map(t=>({label:t.name,value:t.name}))}),h=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],a=e.reactive({region:(c==null?void 0:c.region)||"",point:(c==null?void 0:c.name)||"",timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{var t;const l=_.value;a.point=((t=l[0])==null?void 0:t.value)||""},D=l=>{a.timeRange=l;const t=g.dayjs(),s=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");a.dateRange=[s.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},A=()=>{a.timeRange=""},B=()=>{if(o.mode==="edit"||!a.point)return;const l=d.value.find(t=>t.name===a.point);if(!(l!=null&&l.object_id)){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:a.region,point:a.point,objectId:l.object_id,timeRange:a.timeRange,dateRange:[...a.dateRange]})},M=e.computed(()=>({backgroundColor:R.value.bgColor}));return(l,t)=>{const s=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(M.value)},[e.createElementVNode("div",I,[e.createElementVNode("div",x,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:a.region,"onUpdate:modelValue":t[0]||(t[0]=n=>a.region=n),placeholder:"全部区域",size:"small",style:{width:"110px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(s,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,n=>(e.openBlock(),e.createBlock(s,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",F,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:a.point,"onUpdate:modelValue":t[1]||(t[1]=n=>a.point=n),placeholder:"请选择",size:"small",style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(s,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:a.timeRange===n.value}]),onClick:v=>D(n.value)},e.toDisplayString(n.label),11,z)),64))])]),e.createElementVNode("div",U,[e.createVNode(m,{modelValue:a.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>a.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:A},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:B},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-792b14ef"]]);exports.default=ee;
1
+ "use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,o,r)=>o in i?S(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,E=(i,o)=>{for(var r in o||(o={}))T.call(o,r)&&y(i,r,o[r]);if(C)for(var r of C(o))O.call(o,r)&&y(i,r,o[r]);return i},k=(i,o)=>j(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),H=require("./element-resize-detector-Cl7PwC4K.cjs"),g=require("./index-CtAaj9XN.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),I={class:"filter-bar"},x={class:"filter-item"},F={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},z=["onClick"],U={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const o=i;class r extends H.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,s=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:s==="custom"&&u?u:s}}}const b=new r(o,"rainfallFilterBar");b.setupLifecycle();const R=b.getStyle(),d=e.computed(()=>{var t;const l=(t=o.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(s=>s.name)}),N=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return a.region&&(l=l.filter(t=>t.region===a.region)),l.map(t=>({label:t.name,value:t.name}))}),h=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],a=e.reactive({region:(c==null?void 0:c.region)||"",point:(c==null?void 0:c.name)||"",timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{var t;const l=_.value;a.point=((t=l[0])==null?void 0:t.value)||""},D=l=>{a.timeRange=l;const t=g.dayjs(),s=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");a.dateRange=[s.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},A=()=>{a.timeRange=""},B=()=>{if(o.mode==="edit"||!a.point)return;const l=d.value.find(t=>t.name===a.point);if(!(l!=null&&l.object_id)){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:a.region,point:a.point,objectId:l.object_id,timeRange:a.timeRange,dateRange:[...a.dateRange]})},M=e.computed(()=>({backgroundColor:R.value.bgColor}));return(l,t)=>{const s=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(M.value)},[e.createElementVNode("div",I,[e.createElementVNode("div",x,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:a.region,"onUpdate:modelValue":t[0]||(t[0]=n=>a.region=n),placeholder:"全部区域",size:"small",style:{width:"110px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(s,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,n=>(e.openBlock(),e.createBlock(s,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",F,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:a.point,"onUpdate:modelValue":t[1]||(t[1]=n=>a.point=n),placeholder:"请选择",size:"small",style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(s,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:a.timeRange===n.value}]),onClick:v=>D(n.value)},e.toDisplayString(n.label),11,z)),64))])]),e.createElementVNode("div",U,[e.createVNode(m,{modelValue:a.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>a.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:A},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:B},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-792b14ef"]]);exports.default=ee;
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
17
17
  import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as Q, computed as b, reactive as q, openBlock as c, createElementBlock as v, normalizeStyle as G, createElementVNode as s, createVNode as d, withCtx as y, Fragment as R, renderList as Y, createBlock as S, normalizeClass as J, toDisplayString as K, createTextVNode as X, renderSlot as Z } from "vue";
20
- import { B as ee } from "./element-resize-detector-BCRzpPES.js";
21
- import { e as h, _ as te } from "./index-LgTfdmT4.js";
20
+ import { B as ee } from "./element-resize-detector-CoRhuer9.js";
21
+ import { e as h, _ as te } from "./index-yidMosRJ.js";
22
22
  import { A as le, D as ae } from "./ele-vlu-icon-Bg6EHZdJ.js";
23
23
  const ne = { class: "filter-bar" }, oe = { class: "filter-item" }, re = { class: "filter-item" }, ie = { class: "filter-item" }, se = { class: "time-range-btns" }, me = ["onClick"], ce = { class: "filter-item" }, ue = {
24
24
  DEFAULT_ICON: ae,
@@ -1 +1 @@
1
- "use strict";var ie=Object.defineProperty,ue=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?ie(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,P=(m,a)=>{for(var r in a||(a={}))fe.call(a,r)&&$(m,r,a[r]);if(U)for(var r of U(a))me.call(a,r)&&$(m,r,a[r]);return m},W=(m,a)=>ue(m,de(a));var G=(m,a,r)=>new Promise((E,g)=>{var y=b=>{try{k(r.next(b))}catch(f){g(f)}},I=b=>{try{k(r.throw(b))}catch(f){g(f)}},k=b=>b.done?E(b.value):Promise.resolve(b.value).then(y,I);k((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),S=require("./index-ZwyqrmaH.cjs"),pe=require("./EChartComponentBase-Dz5E-lyI.cjs"),Z=require("@element-plus/icons-vue"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"chart-panel"},he={class:"panel-header"},ge={class:"header-right"},be={class:"indicator-selector-panel"},Ce={class:"indicator-select-all"},ye={class:"legend-bar"},_e={class:"legend-items"},xe=["onClick"],Se={class:"legend-text"},Ee={key:0,class:"legend-page-info"},ke=["id"],Ne={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},Ve={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},we=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],De=["name","fv","object_id","color","device"],je=["mosaic","statistics","calculate"],Ae={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Ie=20,Me={DEFAULT:Ne,OPTIONS:Ve,DATA:we,PARAMS:De,SOURCE:je,ITEMS:Ie,COMMON:Ae},Oe=t.defineComponent(W(P({},Me),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){const a=m,r=new Map,E=t.ref(""),g=t.ref(""),y=t.ref(""),I=t.computed(()=>{var o,e,l;return(e=(o=a.conf)==null?void 0:o.common)!=null&&e.object_id||(l=a.conf)!=null&&l.object_id?!0:O.value.some(d=>!!d.object_id)}),k=t.computed(()=>I.value||!!E.value);class b extends pe.EChartComponentBase{extractStyles(){var n,c,i,s,u,p,_;const e=(n=this.props.conf)==null?void 0:n.options,l=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",d=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",gridColor:((_=e==null?void 0:e.gridColor)==null?void 0:_.value)||"#f0f0f0",linkChannel:l==="custom"&&d?d:l}}getChartOption(){return L(this.Style.value)}setSocketData(e){var n;if(!e)return;const l=e.datetime?e.datetime.split(".")[0]:S.dayjs().format("YYYY/MM/DD HH:mm");(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(c=>{if(c.device){const p=this.extractDataValue(e,c.device);p!=null&&(g.value=String(p))}if(!c.fv)return;const i=this.extractDataValue(e,c.fv);if(i==null)return;const s=c.name||c.fv,u=r.get(s);u?(u.times.push(l),u.values.push(parseFloat(i)),u.times.length>200&&(u.times.shift(),u.values.shift())):r.set(s,{times:[l],values:[parseFloat(i)]})}),this.chartObj&&this.chartObj.setOption(L(this.Style.value),!1)}onLinkEvent(e){le(e)}}const f=new b(a,"rainfallTimeCurve");f.setupLifecycle();const M=f.getStyle(),K=f.getEchartId(),O=t.computed(()=>{var o;return((o=a.conf)==null?void 0:o.data)||[]}),h=t.computed(()=>{const o=new Set;return O.value.filter(e=>e.name&&!o.has(e.name)?(o.add(e.name),!0):!1)}),v=t.ref([]);t.watch(h,o=>{o.length>0&&v.value.length===0&&(v.value=o.map(e=>e.fv||e.name))},{immediate:!0});const B=t.computed({get:()=>h.value.length>0&&v.value.length===h.value.length,set:()=>{}}),Q=t.computed(()=>{const o=v.value.length;return o>0&&o<h.value.length}),X=t.computed(()=>{if(v.value.length===0)return"选择监测指标";if(v.value.length===h.value.length)return"全部指标已选";const e=h.value.filter(l=>v.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),ee=o=>{v.value=o?h.value.map(e=>e.fv||e.name):[],N()},C=t.ref(new Set),D=t.computed(()=>h.value.filter(o=>v.value.includes(o.fv||o.name)).map(o=>({name:g.value?`${g.value}-${o.name}`:o.name,color:o.color||"#5470c6",visible:!C.value.has(o.name)}))),te=t.computed(()=>`${D.value.filter(o=>o.visible).length}/${D.value.length}`),oe=o=>{const e=o.name.includes("-")?o.name.split("-").slice(1).join("-"):o.name;C.value.has(e)?C.value.delete(e):C.value.add(e),C.value=new Set(C.value),N()},ne=t.computed(()=>({backgroundColor:M.value.bgColor,color:M.value.textColor})),T=()=>{r.clear();const o=S.dayjs();O.value.forEach((e,l)=>{const d=[],n=[],c=[2800,3200],i=[200,300],s=c[l%2]||3e3,u=i[l%2]||200;for(let p=0;p<100;p++)d.push(o.subtract((100-p)*15,"minute").format("YYYY/MM/DD HH:mm")),n.push(+(s+(Math.random()-.5)*u+Math.sin(p/10)*u*.3).toFixed(2));r.set(e.name,{times:d,values:n})})},L=o=>{if(a.mode!=="edit"){if(!k.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(r.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,n]of r)n.times.length>e.length&&(e=n.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(n,c)=>S.dayjs().subtract((50-c)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},d=h.value.filter(n=>v.value.includes(n.fv||n.name)).map(n=>{const c=g.value?`${g.value}-${n.name}`:n.name;l[c]=!C.value.has(n.name);const i=r.get(n.name);return{name:c,type:"line",smooth:!0,showSymbol:!1,data:(i==null?void 0:i.values)||[],lineStyle:{color:n.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:n.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:15,interval:"auto",formatter:n=>{var c;if(n&&n.length>6){const i=n.split(" ");return(((c=i[0])==null?void 0:c.split("/").slice(1).join("/"))||"")+(i[1]?" "+i[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:d}},N=()=>{const o=f.getChartInstance();o&&o.setOption(L(M.value),!0)},ae=()=>{const o=f.getChartInstance();if(!o)return;const e=document.createElement("a");e.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${S.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},le=o=>{const{payload:e}=o;if(!e)return;if(e.type==="filter"){if(e.point&&(g.value=String(e.point)),e.objectId){const d=y.value;y.value=String(e.objectId),E.value=String(e.objectId),d!==y.value&&q(y.value)}(a.mode==="edit"||!e.objectId)&&(T(),N());return}const l=e.objectId||e.object_id;l&&(E.value=String(l),q(l))},q=o=>G(null,null,function*(){var i,s;if(!o||a.mode!=="preview")return;r.clear();const e=(i=f.session)==null?void 0:i.value;if(!e)return;const l=a.conf.id;e.componentRequests&&e.componentRequests.delete(l);const{data:d,common:n}=a.conf;Array.isArray(d)&&d.forEach(u=>{u.object_id=o}),n.multiObject||(n.object_id=o);try{const u=yield Promise.resolve().then(()=>require("./history-5W6pGCPq.cjs")),_=yield new u.default().getHistoryData(a,"rainfallTimeCurve");_&&Array.isArray(_)&&(((s=a.conf)==null?void 0:s.data)||[]).forEach((j,re)=>{if(!j.fv)return;const se=j.name||j.fv,A=_[re],H=(A==null?void 0:A.data)||A;if(!Array.isArray(H))return;const ce=[...H].sort((x,V)=>new Date(x.time||x.datetime||"").getTime()-new Date(V.time||V.datetime||"").getTime()),Y=[],z=[];ce.forEach(x=>{const V=x.time||x.datetime,F=x[j.fv];if(V&&F!=null){const R=parseFloat(F);isNaN(R)||(Y.push(S.dayjs(V).format("YYYY/MM/DD HH:mm")),z.push(R))}}),Y.length>0&&r.set(se,{times:Y,values:z})}),console.log("[降雨时序曲线] 历史数据加载完成")}catch(u){console.warn("[降雨时序曲线] 历史数据获取失败:",u)}N(),e.registerComponent({id:l,request:null,onUpdate:(u,p)=>{u==="realtime"&&f.setSocketData(p)}});const c=f.getSource();f.subscribeBySource(c,o)});return t.onMounted(()=>{a.mode==="edit"&&T(),setTimeout(()=>{var o;return(o=f.getChartInstance())==null?void 0:o.resize()},200)}),t.onUnmounted(()=>{f.cleanup()}),t.watch(()=>a.conf,()=>{f.init(),a.mode==="edit"&&T()},{deep:!0}),(o,e)=>{const l=w.ElIcon,d=w.ElButton,n=w.ElCheckbox,c=w.ElCheckboxGroup,i=w.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ne.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",he,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",ge,[t.createVNode(i,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(d,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(X.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",be,[t.createElementVNode("div",Ce,[t.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=s=>B.value=s),indeterminate:Q.value,onChange:ee},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=s=>v.value=s),onChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,s=>(t.openBlock(),t.createBlock(n,{key:s.fv,label:s.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(d,{size:"small",onClick:ae},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Z.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",ye,[t.createElementVNode("div",_e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("span",{key:s.name,class:t.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:u=>oe(s)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:s.visible?s.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Se,t.toDisplayString(s.name),1)],10,xe))),128)),D.value.length>8?(t.openBlock(),t.createElementBlock("span",Ee,t.toDisplayString(te.value),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{id:t.unref(K),class:"chart-container"},null,8,ke)]),t.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Te=S._export_sfc(Oe,[["__scopeId","data-v-7b0c5991"]]);exports.default=Te;
1
+ "use strict";var ie=Object.defineProperty,ue=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?ie(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,P=(m,a)=>{for(var r in a||(a={}))fe.call(a,r)&&$(m,r,a[r]);if(U)for(var r of U(a))me.call(a,r)&&$(m,r,a[r]);return m},W=(m,a)=>ue(m,de(a));var G=(m,a,r)=>new Promise((E,g)=>{var y=b=>{try{k(r.next(b))}catch(f){g(f)}},I=b=>{try{k(r.throw(b))}catch(f){g(f)}},k=b=>b.done?E(b.value):Promise.resolve(b.value).then(y,I);k((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),S=require("./index-CtAaj9XN.cjs"),pe=require("./EChartComponentBase-CUbabNTX.cjs"),Z=require("@element-plus/icons-vue"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"chart-panel"},he={class:"panel-header"},ge={class:"header-right"},be={class:"indicator-selector-panel"},Ce={class:"indicator-select-all"},ye={class:"legend-bar"},_e={class:"legend-items"},xe=["onClick"],Se={class:"legend-text"},Ee={key:0,class:"legend-page-info"},ke=["id"],Ne={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},Ve={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},we=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],De=["name","fv","object_id","color","device"],je=["mosaic","statistics","calculate"],Ae={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Ie=20,Me={DEFAULT:Ne,OPTIONS:Ve,DATA:we,PARAMS:De,SOURCE:je,ITEMS:Ie,COMMON:Ae},Oe=t.defineComponent(W(P({},Me),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){const a=m,r=new Map,E=t.ref(""),g=t.ref(""),y=t.ref(""),I=t.computed(()=>{var o,e,l;return(e=(o=a.conf)==null?void 0:o.common)!=null&&e.object_id||(l=a.conf)!=null&&l.object_id?!0:O.value.some(d=>!!d.object_id)}),k=t.computed(()=>I.value||!!E.value);class b extends pe.EChartComponentBase{extractStyles(){var n,c,i,s,u,p,_;const e=(n=this.props.conf)==null?void 0:n.options,l=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",d=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",gridColor:((_=e==null?void 0:e.gridColor)==null?void 0:_.value)||"#f0f0f0",linkChannel:l==="custom"&&d?d:l}}getChartOption(){return L(this.Style.value)}setSocketData(e){var n;if(!e)return;const l=e.datetime?e.datetime.split(".")[0]:S.dayjs().format("YYYY/MM/DD HH:mm");(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(c=>{if(c.device){const p=this.extractDataValue(e,c.device);p!=null&&(g.value=String(p))}if(!c.fv)return;const i=this.extractDataValue(e,c.fv);if(i==null)return;const s=c.name||c.fv,u=r.get(s);u?(u.times.push(l),u.values.push(parseFloat(i)),u.times.length>200&&(u.times.shift(),u.values.shift())):r.set(s,{times:[l],values:[parseFloat(i)]})}),this.chartObj&&this.chartObj.setOption(L(this.Style.value),!1)}onLinkEvent(e){le(e)}}const f=new b(a,"rainfallTimeCurve");f.setupLifecycle();const M=f.getStyle(),K=f.getEchartId(),O=t.computed(()=>{var o;return((o=a.conf)==null?void 0:o.data)||[]}),h=t.computed(()=>{const o=new Set;return O.value.filter(e=>e.name&&!o.has(e.name)?(o.add(e.name),!0):!1)}),v=t.ref([]);t.watch(h,o=>{o.length>0&&v.value.length===0&&(v.value=o.map(e=>e.fv||e.name))},{immediate:!0});const B=t.computed({get:()=>h.value.length>0&&v.value.length===h.value.length,set:()=>{}}),Q=t.computed(()=>{const o=v.value.length;return o>0&&o<h.value.length}),X=t.computed(()=>{if(v.value.length===0)return"选择监测指标";if(v.value.length===h.value.length)return"全部指标已选";const e=h.value.filter(l=>v.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),ee=o=>{v.value=o?h.value.map(e=>e.fv||e.name):[],N()},C=t.ref(new Set),D=t.computed(()=>h.value.filter(o=>v.value.includes(o.fv||o.name)).map(o=>({name:g.value?`${g.value}-${o.name}`:o.name,color:o.color||"#5470c6",visible:!C.value.has(o.name)}))),te=t.computed(()=>`${D.value.filter(o=>o.visible).length}/${D.value.length}`),oe=o=>{const e=o.name.includes("-")?o.name.split("-").slice(1).join("-"):o.name;C.value.has(e)?C.value.delete(e):C.value.add(e),C.value=new Set(C.value),N()},ne=t.computed(()=>({backgroundColor:M.value.bgColor,color:M.value.textColor})),T=()=>{r.clear();const o=S.dayjs();O.value.forEach((e,l)=>{const d=[],n=[],c=[2800,3200],i=[200,300],s=c[l%2]||3e3,u=i[l%2]||200;for(let p=0;p<100;p++)d.push(o.subtract((100-p)*15,"minute").format("YYYY/MM/DD HH:mm")),n.push(+(s+(Math.random()-.5)*u+Math.sin(p/10)*u*.3).toFixed(2));r.set(e.name,{times:d,values:n})})},L=o=>{if(a.mode!=="edit"){if(!k.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(r.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,n]of r)n.times.length>e.length&&(e=n.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(n,c)=>S.dayjs().subtract((50-c)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},d=h.value.filter(n=>v.value.includes(n.fv||n.name)).map(n=>{const c=g.value?`${g.value}-${n.name}`:n.name;l[c]=!C.value.has(n.name);const i=r.get(n.name);return{name:c,type:"line",smooth:!0,showSymbol:!1,data:(i==null?void 0:i.values)||[],lineStyle:{color:n.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:n.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:15,interval:"auto",formatter:n=>{var c;if(n&&n.length>6){const i=n.split(" ");return(((c=i[0])==null?void 0:c.split("/").slice(1).join("/"))||"")+(i[1]?" "+i[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:d}},N=()=>{const o=f.getChartInstance();o&&o.setOption(L(M.value),!0)},ae=()=>{const o=f.getChartInstance();if(!o)return;const e=document.createElement("a");e.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${S.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},le=o=>{const{payload:e}=o;if(!e)return;if(e.type==="filter"){if(e.point&&(g.value=String(e.point)),e.objectId){const d=y.value;y.value=String(e.objectId),E.value=String(e.objectId),d!==y.value&&q(y.value)}(a.mode==="edit"||!e.objectId)&&(T(),N());return}const l=e.objectId||e.object_id;l&&(E.value=String(l),q(l))},q=o=>G(null,null,function*(){var i,s;if(!o||a.mode!=="preview")return;r.clear();const e=(i=f.session)==null?void 0:i.value;if(!e)return;const l=a.conf.id;e.componentRequests&&e.componentRequests.delete(l);const{data:d,common:n}=a.conf;Array.isArray(d)&&d.forEach(u=>{u.object_id=o}),n.multiObject||(n.object_id=o);try{const u=yield Promise.resolve().then(()=>require("./history-dKfXo4HD.cjs")),_=yield new u.default().getHistoryData(a,"rainfallTimeCurve");_&&Array.isArray(_)&&(((s=a.conf)==null?void 0:s.data)||[]).forEach((j,re)=>{if(!j.fv)return;const se=j.name||j.fv,A=_[re],H=(A==null?void 0:A.data)||A;if(!Array.isArray(H))return;const ce=[...H].sort((x,V)=>new Date(x.time||x.datetime||"").getTime()-new Date(V.time||V.datetime||"").getTime()),Y=[],z=[];ce.forEach(x=>{const V=x.time||x.datetime,F=x[j.fv];if(V&&F!=null){const R=parseFloat(F);isNaN(R)||(Y.push(S.dayjs(V).format("YYYY/MM/DD HH:mm")),z.push(R))}}),Y.length>0&&r.set(se,{times:Y,values:z})}),console.log("[降雨时序曲线] 历史数据加载完成")}catch(u){console.warn("[降雨时序曲线] 历史数据获取失败:",u)}N(),e.registerComponent({id:l,request:null,onUpdate:(u,p)=>{u==="realtime"&&f.setSocketData(p)}});const c=f.getSource();f.subscribeBySource(c,o)});return t.onMounted(()=>{a.mode==="edit"&&T(),setTimeout(()=>{var o;return(o=f.getChartInstance())==null?void 0:o.resize()},200)}),t.onUnmounted(()=>{f.cleanup()}),t.watch(()=>a.conf,()=>{f.init(),a.mode==="edit"&&T()},{deep:!0}),(o,e)=>{const l=w.ElIcon,d=w.ElButton,n=w.ElCheckbox,c=w.ElCheckboxGroup,i=w.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ne.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",he,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",ge,[t.createVNode(i,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(d,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(X.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",be,[t.createElementVNode("div",Ce,[t.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=s=>B.value=s),indeterminate:Q.value,onChange:ee},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=s=>v.value=s),onChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,s=>(t.openBlock(),t.createBlock(n,{key:s.fv,label:s.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(d,{size:"small",onClick:ae},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Z.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",ye,[t.createElementVNode("div",_e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("span",{key:s.name,class:t.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:u=>oe(s)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:s.visible?s.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Se,t.toDisplayString(s.name),1)],10,xe))),128)),D.value.length>8?(t.openBlock(),t.createElementBlock("span",Ee,t.toDisplayString(te.value),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{id:t.unref(K),class:"chart-container"},null,8,ke)]),t.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Te=S._export_sfc(Oe,[["__scopeId","data-v-7b0c5991"]]);exports.default=Te;