mixdashboards 1.0.71 → 1.0.73

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 (470) hide show
  1. package/dist/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
  2. package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
  3. package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
  4. package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
  9. package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
  10. package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
  11. package/dist/UniverSheet-CM-vvc23.cjs +1 -0
  12. package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
  13. package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
  14. package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
  15. package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
  16. package/dist/actionItem-Bx4mW0jP.cjs +1 -0
  17. package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
  18. package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
  19. package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
  20. package/dist/alertTable-hH6HA9pY.cjs +1 -0
  21. package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
  22. package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
  23. package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
  24. package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
  25. package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
  26. package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
  27. package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
  28. package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
  29. package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
  30. package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
  31. package/dist/arrayCard-NqoQKcE9.cjs +1 -0
  32. package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
  33. package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
  34. package/dist/audio-Bw-GaYe1.cjs +1 -0
  35. package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
  36. package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
  37. package/dist/bmp-BXaEkkpa.cjs +1 -0
  38. package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
  39. package/dist/box-CKuGsh2k.cjs +1 -0
  40. package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
  41. package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
  42. package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
  43. package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
  44. package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
  45. package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
  46. package/dist/clock-DmWyBpo-.cjs +1 -0
  47. package/dist/clt-CmPPtp9c.cjs +1 -0
  48. package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
  49. package/dist/cmc-8jH3DGv9.cjs +1 -0
  50. package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
  51. package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
  52. package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
  53. package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
  54. package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
  55. package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
  56. package/dist/conclusionCard-C-TT6znN.cjs +1 -0
  57. package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
  58. package/dist/controlList-CIwzKylK.cjs +1 -0
  59. package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
  60. package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
  61. package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
  62. package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
  63. package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
  64. package/dist/crd-Dfl2XKAx.cjs +1 -0
  65. package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
  66. package/dist/ctrBtn-OOgL9esv.cjs +1 -0
  67. package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
  68. package/dist/ctrSet-CifyJt05.cjs +1 -0
  69. package/dist/ctrSwitch-6nMHbIE7.js +206 -0
  70. package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
  71. package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
  72. package/dist/dataManagement-sQpuBaDz.cjs +1 -0
  73. package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
  74. package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
  75. package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
  76. package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
  77. package/dist/datetime-B66VgJL1.cjs +1 -0
  78. package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
  79. package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
  80. package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
  81. package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
  82. package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
  83. package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
  84. package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
  85. package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
  86. package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
  87. package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
  88. package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
  89. package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
  90. package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
  91. package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
  92. package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
  93. package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
  94. package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
  95. package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
  96. package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
  97. package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
  98. package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
  99. package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
  100. package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
  101. package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
  102. package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
  103. package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
  104. package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
  105. package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
  106. package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
  107. package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
  108. package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
  109. package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
  110. package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
  111. package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
  112. package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
  113. package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
  114. package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
  115. package/dist/evn-BcSenXF3.cjs +1 -0
  116. package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
  117. package/dist/evolutionChart-CrwR8i40.cjs +1 -0
  118. package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
  119. package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
  120. package/dist/fileViewer-BUuST3Rp.cjs +1 -0
  121. package/dist/filterBar-BJzjPFFg.cjs +1 -0
  122. package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
  123. package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
  124. package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
  125. package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
  126. package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
  127. package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
  128. package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
  129. package/dist/gag-1bvAZ5m6.cjs +1 -0
  130. package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
  131. package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
  132. package/dist/gasStationList-DjJtXnqL.cjs +1 -0
  133. package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
  134. package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
  135. package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
  136. package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
  137. package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
  138. package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
  139. package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
  140. package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
  141. package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
  142. package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
  143. package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
  144. package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
  145. package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
  146. package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
  147. package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
  148. package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
  149. package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
  150. package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
  151. package/dist/grd-C4hCrpvH.cjs +1 -0
  152. package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
  153. package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
  154. package/dist/grdIndass-CyuRKD5H.cjs +1 -0
  155. package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
  156. package/dist/grg-Cuxa17d6.cjs +1 -0
  157. package/dist/gridview-CKjBuTRq.cjs +1 -0
  158. package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
  159. package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
  160. package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
  161. package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
  162. package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
  163. package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
  164. package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
  165. package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
  166. package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
  167. package/dist/headerBar-iFe0YQKE.cjs +1 -0
  168. package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
  169. package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
  170. package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
  171. package/dist/index-DVqMfQVc.cjs +612 -0
  172. package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
  173. package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
  174. package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
  175. package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
  176. package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
  177. package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
  178. package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
  179. package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
  180. package/dist/kpiCard-OLJgA48-.cjs +2 -0
  181. package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
  182. package/dist/landslideMap-JTdoQjW-.cjs +1 -0
  183. package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
  184. package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
  185. package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
  186. package/dist/layerTabs-CdhowHB1.cjs +1 -0
  187. package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
  188. package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
  189. package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
  190. package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
  191. package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
  192. package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
  193. package/dist/linIndass-CIrObeZT.cjs +2 -0
  194. package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
  195. package/dist/lst-BRsEe-Hq.cjs +1 -0
  196. package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
  197. package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
  198. package/dist/manualEntry-C3_WtYz8.cjs +1 -0
  199. package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
  200. package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
  201. package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
  202. package/dist/mappingList-C5OZ8oUx.cjs +1 -0
  203. package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
  204. package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
  205. package/dist/materialFileUrl-CubtnHeq.js +108 -0
  206. package/dist/materialFileUrl-DfPNm265.cjs +1 -0
  207. package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
  208. package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
  209. package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
  210. package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
  211. package/dist/mixMap-CJzmC0IR.cjs +1 -0
  212. package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
  213. package/dist/mixModel-BMRxhvWn.cjs +3 -0
  214. package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
  215. package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
  216. package/dist/mixPie-MAKXeYVp.cjs +2 -0
  217. package/dist/mixdashboards.cjs +1 -1
  218. package/dist/mixdashboards.css +1 -1
  219. package/dist/mixdashboards.js +1 -1
  220. package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
  221. package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
  222. package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
  223. package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
  224. package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
  225. package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
  226. package/dist/monitorData-AkPbhJ9q.cjs +1 -0
  227. package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
  228. package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
  229. package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
  230. package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
  231. package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
  232. package/dist/myValue-BCeycpdO.cjs +1 -0
  233. package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
  234. package/dist/myValueList-CAPOW8TK.cjs +1 -0
  235. package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
  236. package/dist/objectList-4rYQk5uq.cjs +1 -0
  237. package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
  238. package/dist/objectListAPP-DCwTyqFp.js +1864 -0
  239. package/dist/objectListAPP-Db5beOAM.cjs +1 -0
  240. package/dist/photo-BV6rkbWO.js +811 -0
  241. package/dist/photo-D67wLRkY.cjs +1 -0
  242. package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
  243. package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
  244. package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
  245. package/dist/placeholder-zByzfWaH.cjs +1 -0
  246. package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
  247. package/dist/pressBtn-BjqYIPC-.cjs +1 -0
  248. package/dist/processTable-ByPlSKRJ.cjs +3 -0
  249. package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
  250. package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
  251. package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
  252. package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
  253. package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
  254. package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
  255. package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
  256. package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
  257. package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
  258. package/dist/rad-BerkC70H.cjs +1 -0
  259. package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
  260. package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
  261. package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
  262. package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
  263. package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
  264. package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
  265. package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
  266. package/dist/rangeLin-BQeWFL_E.cjs +3 -0
  267. package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
  268. package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
  269. package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
  270. package/dist/regionBar-mMaN5NEc.cjs +3 -0
  271. package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
  272. package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
  273. package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
  274. package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
  275. package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
  276. package/dist/retainer2-BQVUhgcH.cjs +1 -0
  277. package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
  278. package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
  279. package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
  280. package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
  281. package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
  282. package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
  283. package/dist/ringTopN-CsouIsk1.cjs +1 -0
  284. package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
  285. package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
  286. package/dist/sankey-CAuBQaYh.cjs +1 -0
  287. package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
  288. package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
  289. package/dist/scd-qaap6hGW.cjs +1 -0
  290. package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
  291. package/dist/sideMenu-D-73DoYb.cjs +1 -0
  292. package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
  293. package/dist/slopeStability-CTN6Kpva.cjs +1 -0
  294. package/dist/speedCurve-C5NoQCjK.cjs +1 -0
  295. package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
  296. package/dist/staticLine-BC-zj5yZ.cjs +1 -0
  297. package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
  298. package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
  299. package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
  300. package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
  301. package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
  302. package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
  303. package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
  304. package/dist/terminalConfigList-B39cEptG.cjs +1 -0
  305. package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
  306. package/dist/terminalList-Vf-Dbybr.cjs +1 -0
  307. package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
  308. package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
  309. package/dist/terminalListAPP-DWArp2D4.js +1366 -0
  310. package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
  311. package/dist/textbox-DPoyxB4u.cjs +1 -0
  312. package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
  313. package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
  314. package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
  315. package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
  316. package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
  317. package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
  318. package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
  319. package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
  320. package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
  321. package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
  322. package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
  323. package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
  324. package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
  325. package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
  326. package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
  327. package/dist/universalTable-D8w7FQbl.cjs +2 -0
  328. package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
  329. package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
  330. package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
  331. package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
  332. package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
  333. package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
  334. package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
  335. package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
  336. package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
  337. package/dist/vlu-DEo_h1qN.cjs +1 -0
  338. package/dist/warningOverview-A5AA_vCc.cjs +1 -0
  339. package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
  340. package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
  341. package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
  342. package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
  343. package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
  344. package/package.json +120 -120
  345. package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
  346. package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
  347. package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
  348. package/dist/actionItem-CFxzHf4E.cjs +0 -1
  349. package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
  350. package/dist/alertTable-BREZBeS5.cjs +0 -1
  351. package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
  352. package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
  353. package/dist/aqiIndass-B441j8CT.cjs +0 -3
  354. package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
  355. package/dist/arrayCard-B7zb1dFi.cjs +0 -1
  356. package/dist/audio-BfsYRWbm.cjs +0 -1
  357. package/dist/bmp-DIkLqzRN.cjs +0 -1
  358. package/dist/box-kXjrgG2u.cjs +0 -1
  359. package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
  360. package/dist/clock-EbmFBRb-.cjs +0 -1
  361. package/dist/clt-C-9xGiKs.cjs +0 -1
  362. package/dist/cmc-CFa8Q3tu.cjs +0 -1
  363. package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
  364. package/dist/controlList-C1vhlonT.cjs +0 -1
  365. package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
  366. package/dist/crd-CgxqxwKV.cjs +0 -1
  367. package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
  368. package/dist/ctrSet-B9M4yI53.cjs +0 -1
  369. package/dist/ctrSwitch-C6dUn_qm.js +0 -206
  370. package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
  371. package/dist/dataManagement-CNrEa_zB.cjs +0 -1
  372. package/dist/datetime-CAyDWKE8.cjs +0 -1
  373. package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
  374. package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
  375. package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
  376. package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
  377. package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
  378. package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
  379. package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
  380. package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
  381. package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
  382. package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
  383. package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
  384. package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
  385. package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
  386. package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
  387. package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
  388. package/dist/evn-B05d7LtF.cjs +0 -1
  389. package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
  390. package/dist/fileViewer-Dy2fdABW.cjs +0 -1
  391. package/dist/filterBar-CcrUdD-O.cjs +0 -1
  392. package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
  393. package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
  394. package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
  395. package/dist/gag-CDX99Ta4.cjs +0 -1
  396. package/dist/gasStationList-Dl9qawf_.cjs +0 -1
  397. package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
  398. package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
  399. package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
  400. package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
  401. package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
  402. package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
  403. package/dist/grd-DtDoJOOa.cjs +0 -1
  404. package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
  405. package/dist/grg-C2qVuXYE.cjs +0 -1
  406. package/dist/gridview-BLAlr5uj.cjs +0 -1
  407. package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
  408. package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
  409. package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
  410. package/dist/headerBar-OwCxpc4o.cjs +0 -1
  411. package/dist/index-D8dh_6Qd.cjs +0 -612
  412. package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
  413. package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
  414. package/dist/kpiCard-oLpk5d4m.cjs +0 -2
  415. package/dist/landslideMap-CO8o7T8J.cjs +0 -1
  416. package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
  417. package/dist/layerTabs-BxRAsklw.cjs +0 -1
  418. package/dist/linIndass-Bb7UA-zk.cjs +0 -2
  419. package/dist/lst-Dri1MTDI.cjs +0 -1
  420. package/dist/manualEntry-D74dgZv8.cjs +0 -1
  421. package/dist/mappingList-CBN7ArkQ.cjs +0 -1
  422. package/dist/mixGrid-DTj2pmFW.cjs +0 -1
  423. package/dist/mixMap-B4T4R6kA.cjs +0 -1
  424. package/dist/mixModel-BzilRtjf.cjs +0 -3
  425. package/dist/mixPie-DtQm-LGp.cjs +0 -2
  426. package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
  427. package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
  428. package/dist/monitorData-D_tMbx_Y.cjs +0 -1
  429. package/dist/myValue-FZPOucSS.cjs +0 -1
  430. package/dist/myValueList-XIDK3ove.cjs +0 -1
  431. package/dist/objectList-BtbxHtJj.cjs +0 -1
  432. package/dist/photo-BITvEhKG.cjs +0 -1
  433. package/dist/photo-CjulDHTM.js +0 -873
  434. package/dist/placeholder-3kajeeeb.cjs +0 -1
  435. package/dist/pressBtn-pUcQtd5n.cjs +0 -1
  436. package/dist/processTable-CDulvQlu.cjs +0 -3
  437. package/dist/rad-Dk4PrnyI.cjs +0 -1
  438. package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
  439. package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
  440. package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
  441. package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
  442. package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
  443. package/dist/regionBar-DsxqfirI.cjs +0 -3
  444. package/dist/retainer1-CSqjvY4k.cjs +0 -1
  445. package/dist/retainer2-Bqlwvr53.cjs +0 -1
  446. package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
  447. package/dist/ringTopN-Bp0er_zV.cjs +0 -1
  448. package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
  449. package/dist/sankey-B4BJ4xIo.cjs +0 -1
  450. package/dist/scd-Dgd3KDpk.cjs +0 -1
  451. package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
  452. package/dist/slopeStability-D96aiykf.cjs +0 -1
  453. package/dist/speedCurve-5nWqVAzz.cjs +0 -1
  454. package/dist/staticLine-DUCg-0tI.cjs +0 -1
  455. package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
  456. package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
  457. package/dist/terminalConfigList-O881ke5o.cjs +0 -1
  458. package/dist/terminalList-C9TB2cJH.cjs +0 -1
  459. package/dist/textbox-BMWnbPvz.cjs +0 -1
  460. package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
  461. package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
  462. package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
  463. package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
  464. package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
  465. package/dist/universalTable-QAb6UKCq.cjs +0 -2
  466. package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
  467. package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
  468. package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
  469. package/dist/vlu-C0XLDKKk.cjs +0 -1
  470. package/dist/warningOverview--n7crFnZ.cjs +0 -1
@@ -1,13 +1,13 @@
1
1
  var W = Object.defineProperty, Z = Object.defineProperties;
2
2
  var G = Object.getOwnPropertyDescriptors;
3
- var R = Object.getOwnPropertySymbols;
3
+ var N = Object.getOwnPropertySymbols;
4
4
  var K = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
5
- var I = (s, n, o) => n in s ? W(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, F = (s, n) => {
5
+ var F = (s, n, o) => n in s ? W(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, I = (s, n) => {
6
6
  for (var o in n || (n = {}))
7
- K.call(n, o) && I(s, o, n[o]);
8
- if (R)
9
- for (var o of R(n))
10
- J.call(n, o) && I(s, o, n[o]);
7
+ K.call(n, o) && F(s, o, n[o]);
8
+ if (N)
9
+ for (var o of N(n))
10
+ J.call(n, o) && F(s, o, n[o]);
11
11
  return s;
12
12
  }, P = (s, n) => Z(s, G(n));
13
13
  var B = (s, n, o) => new Promise((b, w) => {
@@ -26,9 +26,9 @@ var B = (s, n, o) => new Promise((b, w) => {
26
26
  }, p = (i) => i.done ? b(i.value) : Promise.resolve(i.value).then(v, r);
27
27
  p((o = o.apply(s, n)).next());
28
28
  });
29
- import { defineComponent as Q, ref as C, getCurrentInstance as X, computed as Y, onMounted as ee, onBeforeUnmount as te, openBlock as u, createElementBlock as d, normalizeStyle as oe, unref as S, createElementVNode as l, normalizeClass as ae, toDisplayString as x, createCommentVNode as m, withDirectives as le, withKeys as se, vModelText as ne, renderSlot as ie } from "vue";
30
- import { B as re } from "./BaseComponent-D5tlYehc.js";
31
- import { u as ue, h as de, i as ce, a as pe, F as me, _ as fe } from "./index-Bdq33405.js";
29
+ import { defineComponent as Q, ref as C, getCurrentInstance as X, computed as Y, onMounted as ee, onBeforeUnmount as te, openBlock as u, createElementBlock as d, normalizeStyle as oe, unref as S, createElementVNode as l, normalizeClass as ae, toDisplayString as O, createCommentVNode as m, withDirectives as le, withKeys as se, vModelText as ne, renderSlot as ie } from "vue";
30
+ import { B as re } from "./BaseComponent-CBagahPU.js";
31
+ import { u as ue, h as de, i as ce, a as pe, F as me, _ as fe } from "./index-DwPJu6XM.js";
32
32
  import { ElMessage as g } from "element-plus";
33
33
  import { A as ve, D as ye } from "./ele-vdo-icon-DcWebTR5.js";
34
34
  const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class: "upload-title" }, Ce = {
@@ -52,22 +52,23 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
52
52
  }, Ve = ["disabled"], be = {
53
53
  key: 1,
54
54
  class: "stream-hint"
55
- }, Ee = {
55
+ }, Te = {
56
56
  key: 2,
57
57
  class: "stream-hint"
58
- }, Te = {
58
+ }, Ee = {
59
59
  key: 2,
60
60
  class: "player-container"
61
- }, xe = {
61
+ }, Oe = {
62
62
  key: 0,
63
63
  class: "audio-controls"
64
- }, Oe = { class: "file-info" }, ke = { class: "file-name" }, De = { class: "audio-container" }, Me = ["src", "controls", "autoplay", "loop", "muted"], Ne = {
64
+ }, xe = { class: "file-info" }, ke = { class: "file-name" }, Me = { class: "audio-container" }, Re = ["src", "controls", "autoplay", "loop", "muted"], De = {
65
65
  DEFAULT_ICON: ye,
66
66
  ACTIVE_ICON: ve,
67
67
  NAME_CN: "音频播放器",
68
68
  NAME_EN: "Audio Player",
69
- ORDER: 2
70
- }, Re = {
69
+ ORDER: 2,
70
+ PLATFORM: ["pc", "screen", "mobile"]
71
+ }, Ne = {
71
72
  sourceType: {
72
73
  value: "upload",
73
74
  type: "select",
@@ -84,7 +85,7 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
84
85
  fileUrl: { value: "", type: "string", label: "component.audio.fileUrl", placeholder: "component.audio.uploadPlaceholder" },
85
86
  fileName: { value: "", type: "string", label: "component.audio.fileName", placeholder: "component.audio.uploadPlaceholder" },
86
87
  streamUrl: { value: "", type: "string", label: "component.audio.streamUrl", placeholder: "component.audio.streamPlaceholder" }
87
- }, Ie = [], Fe = [], Pe = [], Be = null, $e = { DEFAULT: Ne, OPTIONS: Re, DATA: Ie, PARAMS: Fe, SOURCE: Pe, COMMON: Be }, He = /* @__PURE__ */ Q(P(F({}, $e), {
88
+ }, Fe = [], Ie = [], Pe = [], Be = null, $e = { DEFAULT: De, OPTIONS: Ne, DATA: Fe, PARAMS: Ie, SOURCE: Pe, COMMON: Be }, He = /* @__PURE__ */ Q(P(I({}, $e), {
88
89
  __name: "audio",
89
90
  props: {
90
91
  conf: { type: Object, required: !0 },
@@ -110,12 +111,12 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
110
111
  }
111
112
  const w = new b(o, "audio");
112
113
  w.setupLifecycle();
113
- const v = w.getStyle(), r = C(""), p = C(""), i = C(null), _ = C(null), O = C(!1), y = C(""), A = X(), L = Y(() => {
114
+ const v = w.getStyle(), r = C(""), p = C(""), i = C(null), _ = C(null), x = C(!1), y = C(""), A = X(), L = Y(() => {
114
115
  var t, e, a;
115
116
  return ((a = (e = (t = o.conf) == null ? void 0 : t.options) == null ? void 0 : e.sourceType) == null ? void 0 : a.value) || "upload";
116
117
  }), $ = () => {
117
118
  var t, e, a, c, f, h, V;
118
- L.value === "upload" && ((a = (e = (t = o.conf) == null ? void 0 : t.options) == null ? void 0 : e.fileUrl) != null && a.value) && (r.value = o.conf.options.fileUrl.value, p.value = ((c = o.conf.options.fileName) == null ? void 0 : c.value) || ""), L.value === "stream" && ((V = (h = (f = o.conf) == null ? void 0 : f.options) == null ? void 0 : h.streamUrl) != null && V.value) && (y.value = o.conf.options.streamUrl.value, E());
119
+ L.value === "upload" && ((a = (e = (t = o.conf) == null ? void 0 : t.options) == null ? void 0 : e.fileUrl) != null && a.value) && (r.value = o.conf.options.fileUrl.value, p.value = ((c = o.conf.options.fileName) == null ? void 0 : c.value) || ""), L.value === "stream" && ((V = (h = (f = o.conf) == null ? void 0 : f.options) == null ? void 0 : h.streamUrl) != null && V.value) && (y.value = o.conf.options.streamUrl.value, T());
119
120
  }, H = () => {
120
121
  var t;
121
122
  (t = i.value) == null || t.click();
@@ -130,7 +131,7 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
130
131
  const a = URL.createObjectURL(e);
131
132
  r.value = a, p.value = e.name;
132
133
  try {
133
- O.value = !0;
134
+ x.value = !0;
134
135
  const h = yield de(e), V = ce(e.name), U = yield pe.post("upload", {
135
136
  dashboard_uid: n.pageData.id,
136
137
  file_data: h,
@@ -138,28 +139,28 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
138
139
  user_id: ((c = n.session.userInfo) == null ? void 0 : c.id) || ""
139
140
  }, !0);
140
141
  if (U.code === 200 && ((f = U.result) != null && f.relative_path)) {
141
- const N = me + U.result.relative_path;
142
- URL.revokeObjectURL(a), r.value = N, T("fileUrl", N), T("fileName", U.result.file_name || e.name), g.success("音频上传成功");
142
+ const D = me + U.result.relative_path;
143
+ URL.revokeObjectURL(a), r.value = D, E("fileUrl", D), E("fileName", U.result.file_name || e.name), g.success("音频上传成功");
143
144
  } else
144
145
  throw new Error(U.msg || "上传失败");
145
146
  } catch (h) {
146
147
  console.error("音频上传失败:", h), g.error("音频上传失败: " + (h.message || "未知错误"));
147
148
  } finally {
148
- O.value = !1, i.value && (i.value.value = "");
149
+ x.value = !1, i.value && (i.value.value = "");
149
150
  }
150
- }), E = () => {
151
+ }), T = () => {
151
152
  if (!y.value.trim()) {
152
153
  g.warning("请输入音频流地址");
153
154
  return;
154
155
  }
155
156
  const t = y.value.trim();
156
- T("streamUrl", t), r.value = t, p.value = "音频流", g.success("音频流连接成功");
157
- }, T = (t, e) => {
157
+ E("streamUrl", t), r.value = t, p.value = "音频流", g.success("音频流连接成功");
158
+ }, E = (t, e) => {
158
159
  var a;
159
160
  (a = o.conf) != null && a.options && (o.conf.options[t] || (o.conf.options[t] = { value: "", type: "string", label: "" }), o.conf.options[t].value = e);
160
- }, D = (t) => {
161
- t.preventDefault(), t.stopPropagation();
162
161
  }, M = (t) => {
162
+ t.preventDefault(), t.stopPropagation();
163
+ }, R = (t) => {
163
164
  var a;
164
165
  t.preventDefault(), t.stopPropagation();
165
166
  const e = (a = t.dataTransfer) == null ? void 0 : a.files;
@@ -182,12 +183,12 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
182
183
  var t, e;
183
184
  if (o.mode !== "preview") {
184
185
  const a = (e = (t = A == null ? void 0 : A.proxy) == null ? void 0 : t.$el) == null ? void 0 : e.querySelector(".upload-area");
185
- a && (a.addEventListener("dragover", D), a.addEventListener("drop", M));
186
+ a && (a.addEventListener("dragover", M), a.addEventListener("drop", R));
186
187
  }
187
188
  }), te(() => {
188
189
  var e, a;
189
190
  const t = (a = (e = A == null ? void 0 : A.proxy) == null ? void 0 : e.$el) == null ? void 0 : a.querySelector(".upload-area");
190
- t && (t.removeEventListener("dragover", D), t.removeEventListener("drop", M));
191
+ t && (t.removeEventListener("dragover", M), t.removeEventListener("drop", R));
191
192
  }), (t, e) => (u(), d("div", {
192
193
  class: "mix-component",
193
194
  style: oe({ borderRadius: `${S(v).radiusSize}px` })
@@ -217,8 +218,8 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
217
218
  l("path", { d: "M12,3V13.55C11.41,13.21 10.73,13 10,13A3,3 0 0,0 7,16A3,3 0 0,0 10,19A3,3 0 0,0 13,16V7H18V5H12V3Z" })
218
219
  ])
219
220
  ], -1)),
220
- l("h3", Ae, x(s.mode === "preview" ? t.$t("component.audio.noFile") : t.$t("component.audio.uploadText")), 1),
221
- s.mode !== "preview" ? (u(), d("p", Ce, x(t.$t("component.audio.uploadHint")), 1)) : m("", !0),
221
+ l("h3", Ae, O(s.mode === "preview" ? t.$t("component.audio.noFile") : t.$t("component.audio.uploadText")), 1),
222
+ s.mode !== "preview" ? (u(), d("p", Ce, O(t.$t("component.audio.uploadHint")), 1)) : m("", !0),
222
223
  s.mode !== "preview" ? (u(), d("div", we, [...e[2] || (e[2] = [
223
224
  l("span", { class: "format-tag" }, "MP3", -1),
224
225
  l("span", { class: "format-tag" }, "WAV", -1),
@@ -239,24 +240,24 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
239
240
  type: "text",
240
241
  class: "stream-url-input",
241
242
  placeholder: "请输入音频流地址,如:http://xxx/radio/stream.mp3",
242
- onKeyup: se(E, ["enter"])
243
+ onKeyup: se(T, ["enter"])
243
244
  }, null, 544), [
244
245
  [ne, y.value]
245
246
  ]),
246
247
  l("button", {
247
248
  class: "connect-btn",
248
- onClick: E,
249
+ onClick: T,
249
250
  disabled: !y.value.trim()
250
251
  }, " 连接 ", 8, Ve)
251
252
  ])) : m("", !0),
252
253
  s.mode !== "preview" ? (u(), d("p", be, "支持格式: HTTP音频流")) : m("", !0),
253
- s.mode === "preview" ? (u(), d("p", Ee, "未配置音频流地址")) : m("", !0)
254
+ s.mode === "preview" ? (u(), d("p", Te, "未配置音频流地址")) : m("", !0)
254
255
  ])
255
256
  ])) : m("", !0),
256
- r.value ? (u(), d("div", Te, [
257
- s.mode !== "preview" ? (u(), d("div", xe, [
258
- l("div", Oe, [
259
- l("span", ke, x(p.value || r.value), 1),
257
+ r.value ? (u(), d("div", Ee, [
258
+ s.mode !== "preview" ? (u(), d("div", Oe, [
259
+ l("div", xe, [
260
+ l("span", ke, O(p.value || r.value), 1),
260
261
  l("button", {
261
262
  class: "change-file-btn",
262
263
  onClick: z,
@@ -273,7 +274,7 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
273
274
  ])])
274
275
  ])
275
276
  ])) : m("", !0),
276
- l("div", De, [
277
+ l("div", Me, [
277
278
  l("audio", {
278
279
  ref_key: "audioRef",
279
280
  ref: _,
@@ -285,14 +286,14 @@ const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class
285
286
  onLoadedmetadata: j,
286
287
  onError: q,
287
288
  class: "audio-element"
288
- }, " 您的浏览器不支持音频播放 ", 40, Me)
289
+ }, " 您的浏览器不支持音频播放 ", 40, Re)
289
290
  ])
290
291
  ])) : m("", !0)
291
292
  ]),
292
293
  ie(t.$slots, "default", {}, void 0, !0)
293
294
  ], 4));
294
295
  }
295
- })), Ke = /* @__PURE__ */ fe(He, [["__scopeId", "data-v-050c7953"]]);
296
+ })), Ke = /* @__PURE__ */ fe(He, [["__scopeId", "data-v-31a1a938"]]);
296
297
  export {
297
298
  Ke as default
298
299
  };
@@ -0,0 +1 @@
1
+ "use strict";var $=Object.defineProperty,H=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var b=(n,r,a)=>r in n?$(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,M=(n,r)=>{for(var a in r||(r={}))j.call(r,a)&&b(n,a,r[a]);if(T)for(var a of T(r))W.call(r,a)&&b(n,a,r[a]);return n},O=(n,r)=>H(n,z(r));var x=(n,r,a)=>new Promise((k,E)=>{var p=s=>{try{d(a.next(s))}catch(h){E(h)}},i=s=>{try{d(a.throw(s))}catch(h){E(h)}},d=s=>s.done?k(s.value):Promise.resolve(s.value).then(p,i);d((a=a.apply(n,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Z=require("./BaseComponent-Chnv4fBT.cjs"),g=require("./index-DVqMfQVc.cjs"),v=require("element-plus"),D=require("./ele-vdo-icon-Bgp9gaT6.cjs"),G={class:"mix-body"},K={class:"upload-content"},J={class:"upload-title"},Q={key:0,class:"upload-hint"},X={key:1,class:"upload-formats"},Y={key:1,class:"stream-input-area"},ee={class:"stream-content"},te={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},oe={key:0,class:"stream-input-container"},ae=["disabled"],le={key:1,class:"stream-hint"},ne={key:2,class:"stream-hint"},re={key:2,class:"player-container"},se={key:0,class:"audio-controls"},ie={class:"file-info"},ce={class:"file-name"},de={class:"audio-container"},ue=["src","controls","autoplay","loop","muted"],pe={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"音频播放器",NAME_EN:"Audio Player",ORDER:2,PLATFORM:["pc","screen","mobile"]},me={sourceType:{value:"upload",type:"select",label:"component.audio.sourceType",options:[{label:"component.audio.uploadFile",value:"upload"},{label:"component.audio.audioStream",value:"stream"}]},autoplay:!1,loop:!1,muted:!1,controls:!0,fileUrl:{value:"",type:"string",label:"component.audio.fileUrl",placeholder:"component.audio.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.audio.fileName",placeholder:"component.audio.uploadPlaceholder"},streamUrl:{value:"",type:"string",label:"component.audio.streamUrl",placeholder:"component.audio.streamPlaceholder"}},fe=[],ve=[],ye=[],ge=null,Ee={DEFAULT:pe,OPTIONS:me,DATA:fe,PARAMS:ve,SOURCE:ye,COMMON:ge},he=e.defineComponent(O(M({},Ee),{__name:"audio",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const r=g.useCounterStore(),a=n;class k extends Z.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),autoplay:this.getOptionValue("autoplay",!1),loop:this.getOptionValue("loop",!1),muted:this.getOptionValue("muted",!1),controls:this.getOptionValue("controls",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),I()}}const E=new k(a,"audio");E.setupLifecycle();const p=E.getStyle(),i=e.ref(""),d=e.ref(""),s=e.ref(null),h=e.ref(null),w=e.ref(!1),m=e.ref(""),y=e.getCurrentInstance(),N=e.computed(()=>{var o,t,l;return((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.sourceType)==null?void 0:l.value)||"upload"}),I=()=>{var o,t,l,c,u,f,C;N.value==="upload"&&((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value)&&(i.value=a.conf.options.fileUrl.value,d.value=((c=a.conf.options.fileName)==null?void 0:c.value)||""),N.value==="stream"&&((C=(f=(u=a.conf)==null?void 0:u.options)==null?void 0:f.streamUrl)!=null&&C.value)&&(m.value=a.conf.options.streamUrl.value,A())},R=()=>{var o;(o=s.value)==null||o.click()},S=o=>x(null,null,function*(){var c,u;const t=o.target.files[0];if(!t)return;if(!t.type.startsWith("audio/")){v.ElMessage.warning("请选择有效的音频文件");return}const l=URL.createObjectURL(t);i.value=l,d.value=t.name;try{w.value=!0;const f=yield g.fileToDataUrl(t),C=g.getFileExtension(t.name),V=yield g.api.post("upload",{dashboard_uid:r.pageData.id,file_data:f,file_type:C,user_id:((c=r.session.userInfo)==null?void 0:c.id)||""},!0);if(V.code===200&&((u=V.result)!=null&&u.relative_path)){const L=g.FILE_URL+V.result.relative_path;URL.revokeObjectURL(l),i.value=L,_("fileUrl",L),_("fileName",V.result.file_name||t.name),v.ElMessage.success("音频上传成功")}else throw new Error(V.msg||"上传失败")}catch(f){console.error("音频上传失败:",f),v.ElMessage.error("音频上传失败: "+(f.message||"未知错误"))}finally{w.value=!1,s.value&&(s.value.value="")}}),A=()=>{if(!m.value.trim()){v.ElMessage.warning("请输入音频流地址");return}const o=m.value.trim();_("streamUrl",o),i.value=o,d.value="音频流",v.ElMessage.success("音频流连接成功")},_=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},B=o=>{o.preventDefault(),o.stopPropagation()},U=o=>{var l;o.preventDefault(),o.stopPropagation();const t=(l=o.dataTransfer)==null?void 0:l.files;if(t&&t.length>0){const c=t[0];if(c!=null&&c.type.startsWith("audio/")){const u=new DataTransfer;u.items.add(c),s.value&&(s.value.files=u.files,S({target:s.value}))}else v.ElMessage.warning("请选择有效的音频文件")}},P=()=>{i.value="",d.value="",m.value=""},F=()=>{console.log("Audio metadata loaded")},q=o=>{console.error("Audio error:",o),v.ElMessage.error("音频加载失败,请检查URL或文件")};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=y==null?void 0:y.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",B),l.addEventListener("drop",U))}}),e.onBeforeUnmount(()=>{var t,l;const o=(l=(t=y==null?void 0:y.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",B),o.removeEventListener("drop",U))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(p).radiusSize}px`})},[e.createElementVNode("div",G,[!i.value&&N.value==="upload"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":n.mode==="preview"}]),onClick:t[0]||(t[0]=l=>n.mode!=="preview"&&R())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:s,type:"file",accept:"audio/*",onChange:S,style:{display:"none"}},null,544),e.createElementVNode("div",K,[t[3]||(t[3]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,3V13.55C11.41,13.21 10.73,13 10,13A3,3 0 0,0 7,16A3,3 0 0,0 10,19A3,3 0 0,0 13,16V7H18V5H12V3Z"})])],-1)),e.createElementVNode("h3",J,e.toDisplayString(n.mode==="preview"?o.$t("component.audio.noFile"):o.$t("component.audio.uploadText")),1),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",Q,e.toDisplayString(o.$t("component.audio.uploadHint")),1)):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",X,[...t[2]||(t[2]=[e.createElementVNode("span",{class:"format-tag"},"MP3",-1),e.createElementVNode("span",{class:"format-tag"},"WAV",-1),e.createElementVNode("span",{class:"format-tag"},"OGG",-1),e.createElementVNode("span",{class:"format-tag"},"AAC",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),!i.value&&N.value==="stream"?(e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",ee,[(e.openBlock(),e.createElementBlock("svg",te,[...t[4]||(t[4]=[e.createElementVNode("path",{d:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},null,-1)])])),t[5]||(t[5]=e.createElementVNode("p",{class:"stream-text"},"音频流播放",-1)),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",oe,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>m.value=l),type:"text",class:"stream-url-input",placeholder:"请输入音频流地址,如:http://xxx/radio/stream.mp3",onKeyup:e.withKeys(A,["enter"])},null,544),[[e.vModelText,m.value]]),e.createElementVNode("button",{class:"connect-btn",onClick:A,disabled:!m.value.trim()}," 连接 ",8,ae)])):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",le,"支持格式: HTTP音频流")):e.createCommentVNode("",!0),n.mode==="preview"?(e.openBlock(),e.createElementBlock("p",ne,"未配置音频流地址")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",re,[n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",ie,[e.createElementVNode("span",ce,e.toDisplayString(d.value||i.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:P,title:"更换文件"},[...t[6]||(t[6]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",de,[e.createElementVNode("audio",{ref_key:"audioRef",ref:h,src:i.value,controls:e.unref(p).controls,autoplay:e.unref(p).autoplay,loop:e.unref(p).loop,muted:e.unref(p).muted,onLoadedmetadata:F,onError:q,class:"audio-element"}," 您的浏览器不支持音频播放 ",40,ue)])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),Ve=g._export_sfc(he,[["__scopeId","data-v-31a1a938"]]);exports.default=Ve;
@@ -1,31 +1,33 @@
1
- var k = Object.defineProperty, I = Object.defineProperties;
2
- var T = Object.getOwnPropertyDescriptors;
1
+ var k = Object.defineProperty, T = Object.defineProperties;
2
+ var I = Object.getOwnPropertyDescriptors;
3
3
  var D = Object.getOwnPropertySymbols;
4
4
  var z = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
- var E = (c, i, l) => i in c ? k(c, i, { enumerable: !0, configurable: !0, writable: !0, value: l }) : c[i] = l, b = (c, i) => {
6
- for (var l in i || (i = {}))
7
- z.call(i, l) && E(c, l, i[l]);
5
+ var E = (c, i, r) => i in c ? k(c, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : c[i] = r, b = (c, i) => {
6
+ for (var r in i || (i = {}))
7
+ z.call(i, r) && E(c, r, i[r]);
8
8
  if (D)
9
- for (var l of D(i))
10
- w.call(i, l) && E(c, l, i[l]);
9
+ for (var r of D(i))
10
+ w.call(i, r) && E(c, r, i[r]);
11
11
  return c;
12
- }, S = (c, i) => I(c, T(i));
13
- import { defineComponent as V, onMounted as $, onUnmounted as j, computed as R, openBlock as B, createElementBlock as M, normalizeStyle as v, unref as x, createElementVNode as y, toDisplayString as W, renderSlot as P } from "vue";
14
- import { D as X, k as F, u as H, l as G, C as K, n as q, o as J, p as Q, _ as Y } from "./index-Bdq33405.js";
15
- import { E as Z } from "./EChartComponentBase-CAabYXSj.js";
12
+ }, S = (c, i) => T(c, I(i));
13
+ import { defineComponent as R, onMounted as V, onUnmounted as $, computed as j, openBlock as M, createElementBlock as B, normalizeStyle as v, unref as x, createElementVNode as y, toDisplayString as P, renderSlot as W } from "vue";
14
+ import { D as F, k as X, u as H, l as G, C as K, n as q, o as J, p as Q, _ as Y } from "./index-DwPJu6XM.js";
15
+ import "element-plus";
16
+ import { E as Z } from "./EChartComponentBase-cFfawl6h.js";
16
17
  import { g as tt } from "./titleStyle-BT5GlpAb.js";
17
18
  import { A as et, D as it } from "./ele-bar-icon-C-GiCs2a.js";
18
19
  import { i as ot } from "./install-CBde4hAM.js";
19
- import { i as at } from "./install-hfre7yvV.js";
20
- import { u as st, i as nt, a as lt } from "./installCanvasRenderer-CLT2hquJ.js";
21
- import { i as rt } from "./install-BBrAry2m.js";
20
+ import { i as st } from "./install-hfre7yvV.js";
21
+ import { u as at, i as nt, a as rt } from "./installCanvasRenderer-CLT2hquJ.js";
22
+ import { i as lt } from "./install-BBrAry2m.js";
22
23
  import { i as ct } from "./install-MS3ZY7fF.js";
23
24
  const dt = { class: "mix-body" }, ut = ["id"], pt = {
24
25
  DEFAULT_ICON: it,
25
26
  ACTIVE_ICON: et,
26
27
  NAME_CN: "基础柱状图",
27
28
  NAME_EN: "Bar Chart",
28
- ORDER: 1
29
+ ORDER: 1,
30
+ PLATFORM: ["pc", "screen", "mobile"]
29
31
  }, ft = {
30
32
  titleColor: "#111",
31
33
  // color
@@ -45,14 +47,14 @@ const dt = { class: "mix-body" }, ut = ["id"], pt = {
45
47
  isHideTitle: !1,
46
48
  // checkbox
47
49
  showLabel: !1
48
- }, ht = [
50
+ }, mt = [
49
51
  { name: "参数一", fv: "", object_id: "", color: "#4162ff", periodUnit: "near-hour", periodValue: 1 }
50
- ], mt = [
52
+ ], ht = [
51
53
  "name",
52
54
  "fv",
53
55
  "object_id",
54
56
  "color",
55
- { key: "periodUnit", label: "setting.timeUnit", type: "select", options: X },
57
+ { key: "periodUnit", label: "setting.timeUnit", type: "select", options: F },
56
58
  { key: "periodValue", label: "setting.timePeriod", type: "number" }
57
59
  ], xt = ["mosaic", "statistics", "calculate"], bt = {
58
60
  source: "mosaic",
@@ -62,11 +64,11 @@ const dt = { class: "mix-body" }, ut = ["id"], pt = {
62
64
  }, gt = {
63
65
  DEFAULT: pt,
64
66
  OPTIONS: ft,
65
- DATA: ht,
66
- PARAMS: mt,
67
+ DATA: mt,
68
+ PARAMS: ht,
67
69
  SOURCE: xt,
68
70
  COMMON: bt
69
- }, St = /* @__PURE__ */ V(S(b({}, gt), {
71
+ }, St = /* @__PURE__ */ R(S(b({}, gt), {
70
72
  __name: "bar",
71
73
  props: {
72
74
  conf: { type: Object, default: () => ({ data: [] }) },
@@ -75,9 +77,9 @@ const dt = { class: "mix-body" }, ut = ["id"], pt = {
75
77
  theme: { type: String, default: "light" }
76
78
  },
77
79
  setup(c) {
78
- st([ot, at, nt, rt, lt, ct]);
79
- const i = c, l = F();
80
- class N extends Z {
80
+ at([ot, st, nt, lt, rt, ct]);
81
+ const i = c, r = X();
82
+ class L extends Z {
81
83
  // 提取样式(扩展父类)
82
84
  extractStyles() {
83
85
  return S(b({}, super.extractStyles()), {
@@ -103,7 +105,7 @@ const dt = { class: "mix-body" }, ut = ["id"], pt = {
103
105
  },
104
106
  legend: {
105
107
  show: !0,
106
- data: o.data.map((a) => a.name),
108
+ data: o.data.map((s) => s.name),
107
109
  right: 20,
108
110
  top: 0,
109
111
  textStyle: { color: t.textColor, fontSize: t.textSize }
@@ -114,9 +116,9 @@ const dt = { class: "mix-body" }, ut = ["id"], pt = {
114
116
  axisTick: { alignWithLabel: !0 },
115
117
  axisLine: { lineStyle: { color: t.textColor } },
116
118
  axisLabel: {
117
- formatter: (a) => {
118
- if (!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(a)) return a;
119
- const [n, e] = a.split(" ");
119
+ formatter: (s) => {
120
+ if (!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(s)) return s;
121
+ const [n, e] = s.split(" ");
120
122
  return `${n}
121
123
  ${e}`;
122
124
  },
@@ -139,18 +141,18 @@ ${e}`;
139
141
  // 获取 X 轴数据
140
142
  getXAxisData() {
141
143
  var n, e;
142
- const { data: t, common: o } = this.props.conf, a = (o == null ? void 0 : o.source) || "mosaic";
143
- return ["statistics", "calculate"].includes(a) && !((e = (n = t[0]) == null ? void 0 : n.periodUnit) != null && e.includes("near")) ? G(t[0].periodUnit) : this.getTimeAxis();
144
+ const { data: t, common: o } = this.props.conf, s = (o == null ? void 0 : o.source) || "mosaic";
145
+ return ["statistics", "calculate"].includes(s) && !((e = (n = t[0]) == null ? void 0 : n.periodUnit) != null && e.includes("near")) ? G(t[0].periodUnit) : this.getTimeAxis();
144
146
  }
145
147
  // 格式化 Series
146
148
  formatSeries() {
147
149
  const t = this.props.conf, o = this.Style.value;
148
- return t.data.map((a, n) => {
149
- const e = a.color || K[n];
150
+ return t.data.map((s, n) => {
151
+ const e = s.color || K[n];
150
152
  return {
151
153
  type: "bar",
152
154
  data: q({ num: o.points, max: 200, min: 0, mode: this.props.mode, hasDataSource: this.hasData() }),
153
- name: a.name,
155
+ name: s.name,
154
156
  itemStyle: { color: e },
155
157
  label: { show: o.showLabel, position: "top", color: e },
156
158
  barWidth: o.barWidth + "%"
@@ -160,85 +162,85 @@ ${e}`;
160
162
  // 设置实时数据
161
163
  setSocketData(t) {
162
164
  if (!this.hasData() || !this.chartObj || !t) return;
163
- const { data: o, common: a } = this.props.conf, n = a.source || "mosaic", e = this.chartObj.getOption();
164
- o.forEach((s, u) => {
165
- let r, p;
166
- if (["statistics", "calculate"].includes(n) && s.periodUnit && !s.periodUnit.includes("near")) {
167
- console.log("[bar] 固定周期模式", { item: s, periodUnit: s.periodUnit }), r = this.extractDataValue(t, s.fv);
168
- const O = s.periodUnit.split("-");
165
+ const { data: o, common: s } = this.props.conf, n = s.source || "mosaic", e = this.chartObj.getOption();
166
+ o.forEach((a, u) => {
167
+ let l, p;
168
+ if (["statistics", "calculate"].includes(n) && a.periodUnit && !a.periodUnit.includes("near")) {
169
+ console.log("[bar] 固定周期模式", { item: a, periodUnit: a.periodUnit }), l = this.extractDataValue(t, a.fv);
170
+ const O = a.periodUnit.split("-");
169
171
  p = J(t.start_time, O[O.length - 1]);
170
172
  const g = e.xAxis[0].data.indexOf(p);
171
- console.log("[bar] 固定周期数据", { value: r, time: p, index: g, xAxisData: e.xAxis[0].data }), g >= 0 && (e.series[u].data[g] = r);
172
- } else ["statistics", "calculate"].includes(n) && s.periodUnit && s.periodUnit.includes("near") ? (console.log("[bar] 最近周期模式"), r = this.extractDataValue(t, s.fv), p = t.start_time, p != null && (u === 0 && e.xAxis[0].data.push(p), e.series[u].data.push(r))) : (r = this.extractDataValue(t, s.fv), p = ["statistics", "calculate"].includes(n) ? t.start_time : t.datetime, p != null && (u === 0 && e.xAxis[0].data.push(p), e.series[u].data.push(r)));
173
+ console.log("[bar] 固定周期数据", { value: l, time: p, index: g, xAxisData: e.xAxis[0].data }), g >= 0 && (e.series[u].data[g] = l);
174
+ } else ["statistics", "calculate"].includes(n) && a.periodUnit && a.periodUnit.includes("near") ? (console.log("[bar] 最近周期模式"), l = this.extractDataValue(t, a.fv), p = t.start_time, p != null && (u === 0 && e.xAxis[0].data.push(p), e.series[u].data.push(l))) : (l = this.extractDataValue(t, a.fv), p = ["statistics", "calculate"].includes(n) ? t.start_time : t.datetime, p != null && (u === 0 && e.xAxis[0].data.push(p), e.series[u].data.push(l)));
173
175
  });
174
176
  const d = Q(
175
177
  e.xAxis[0].data,
176
- e.series.map((s) => s.data)
177
- ), h = Number(this.Style.value.points) || 10;
178
- e.xAxis[0].data = d.times.slice(-h), e.series.forEach((s, u) => {
179
- var r;
180
- s.data = ((r = d.data[u]) == null ? void 0 : r.slice(-h)) || [];
178
+ e.series.map((a) => a.data)
179
+ ), m = Number(this.Style.value.points) || 10;
180
+ e.xAxis[0].data = d.times.slice(-m), e.series.forEach((a, u) => {
181
+ var l;
182
+ a.data = ((l = d.data[u]) == null ? void 0 : l.slice(-m)) || [];
181
183
  }), this.updateChart(e);
182
184
  }
183
185
  setHistoryData(t) {
184
186
  if (!t || !(t != null && t.length)) return;
185
- const o = this.chartObj.getOption(), a = Number(this.Style.value.points) || 10, n = (e) => {
187
+ const o = this.chartObj.getOption(), s = Number(this.Style.value.points) || 10, n = (e) => {
186
188
  if (e == null || e === "" || e === "-") return null;
187
189
  const d = Number(e);
188
190
  return Number.isFinite(d) ? d : null;
189
191
  };
190
- o.xAxis[0].data = t[0].time.slice(-a), t.forEach((e, d) => {
192
+ o.xAxis[0].data = t[0].time.slice(-s), t.forEach((e, d) => {
191
193
  if (!o.series[d]) return;
192
- const h = e.data || [];
193
- o.series[d].data = h.map(n).slice(-a);
194
+ const m = e.data || [];
195
+ o.series[d].data = m.map(n).slice(-s);
194
196
  }), this.updateChart(o);
195
197
  }
196
198
  }
197
- const f = new N(i, "bar");
199
+ const f = new L(i, "bar");
198
200
  f.setupLifecycle();
199
201
  const C = H();
200
- $(() => {
201
- var m;
202
+ V(() => {
203
+ var h;
202
204
  if (C.registerInstance(i.uid, f), i.mode === "preview") {
203
- const t = ((m = f.getChartInstance) == null ? void 0 : m.call(f)) || f.chartObj;
205
+ const t = ((h = f.getChartInstance) == null ? void 0 : h.call(f)) || f.chartObj;
204
206
  t == null || t.off("click"), t == null || t.on("click", (o) => {
205
- var n, e, d, h, s, u;
206
- const a = o == null ? void 0 : o.seriesName;
207
- if (typeof a == "string" && a) {
208
- const r = ((e = (n = i.conf) == null ? void 0 : n.options) == null ? void 0 : e.linkChannel) === "custom" ? (h = (d = i.conf) == null ? void 0 : d.options) == null ? void 0 : h.customChannel : (u = (s = i.conf) == null ? void 0 : s.options) == null ? void 0 : u.linkChannel;
209
- l.publish(r || "bar", "bar", {
207
+ var n, e, d, m, a, u;
208
+ const s = o == null ? void 0 : o.seriesName;
209
+ if (typeof s == "string" && s) {
210
+ const l = ((e = (n = i.conf) == null ? void 0 : n.options) == null ? void 0 : e.linkChannel) === "custom" ? (m = (d = i.conf) == null ? void 0 : d.options) == null ? void 0 : m.customChannel : (u = (a = i.conf) == null ? void 0 : a.options) == null ? void 0 : u.linkChannel;
211
+ r.publish(l || "bar", "bar", {
210
212
  objectId: "",
211
213
  deviceId: "",
212
214
  type: "select",
213
- fieldKey: a,
214
- fv: b({ key: a }, o),
215
+ fieldKey: s,
216
+ fv: b({ key: s }, o),
215
217
  source: "bar"
216
218
  });
217
219
  }
218
220
  });
219
221
  }
220
- }), j(() => {
222
+ }), $(() => {
221
223
  C.unregisterInstance(i.uid);
222
224
  });
223
- const A = f.getStyle(), U = f.getEchartId(), _ = i.conf, L = R(() => tt(i.conf.options));
224
- return (m, t) => (B(), M("div", {
225
+ const A = f.getStyle(), N = f.getEchartId(), _ = i.conf, U = j(() => tt(i.conf.options));
226
+ return (h, t) => (M(), B("div", {
225
227
  class: "mix-component",
226
228
  style: v({ background: x(A).bgColor, borderRadius: `${x(A).radiusSize}px` })
227
229
  }, [
228
230
  y("div", {
229
231
  class: "mix-title",
230
- style: v(L.value)
231
- }, W(x(_).caption || x(_).name), 5),
232
+ style: v(U.value)
233
+ }, P(x(_).caption || x(_).name), 5),
232
234
  y("div", dt, [
233
235
  y("div", {
234
236
  class: "w-full h-full",
235
- id: x(U)
237
+ id: x(N)
236
238
  }, null, 8, ut)
237
239
  ]),
238
- P(m.$slots, "default", {}, void 0, !0)
240
+ W(h.$slots, "default", {}, void 0, !0)
239
241
  ], 4));
240
242
  }
241
- })), kt = /* @__PURE__ */ Y(St, [["__scopeId", "data-v-3716b129"]]);
243
+ })), Tt = /* @__PURE__ */ Y(St, [["__scopeId", "data-v-f8927d1e"]]);
242
244
  export {
243
- kt as default
245
+ Tt as default
244
246
  };
@@ -1,2 +1,2 @@
1
- "use strict";var T=Object.defineProperty,k=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var v=(u,i,r)=>i in u?T(u,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[i]=r,S=(u,i)=>{for(var r in i||(i={}))V.call(i,r)&&v(u,r,i[r]);if(N)for(var r of N(i))w.call(i,r)&&v(u,r,i[r]);return u},y=(u,i)=>k(u,z(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),h=require("./index-D8dh_6Qd.cjs"),$=require("./EChartComponentBase-D4wMej9X.cjs"),j=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-bar-icon-V94clxg_.cjs"),q=require("./install-DV5cEgNV.cjs"),R=require("./install-CltTFs4e.cjs"),C=require("./installCanvasRenderer-CyhM1Qpl.cjs"),B=require("./install-C8buXQPI.cjs"),M=require("./install-Ch5d8i37.cjs"),P={class:"mix-body"},W=["id"],F={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"基础柱状图",NAME_EN:"Bar Chart",ORDER:1},X={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1},H=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1}],G=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:h.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],K=["mosaic","statistics","calculate"],J={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},Q={DEFAULT:F,OPTIONS:X,DATA:H,PARAMS:G,SOURCE:K,COMMON:J},Y=a.defineComponent(y(S({},Q),{__name:"bar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(u){C.use([q.install,R.install,C.install,B.install,C.install$1,M.install]);const i=u,r=h.useLinkStore();class U extends $.EChartComponentBase{extractStyles(){return y(S({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,o=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:o.data.map(s=>s.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:s=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(s))return s;const[l,e]=s.split(" ");return`${l}
2
- ${e}`},color:t.textColor,fontSize:t.textSize}}],yAxis:[{type:"value",nameGap:10,nameTextStyle:{align:"right"},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitNumber:4}],series:this.formatSeries()}}getXAxisData(){var l,e;const{data:t,common:o}=this.props.conf,s=(o==null?void 0:o.source)||"mosaic";return["statistics","calculate"].includes(s)&&!((e=(l=t[0])==null?void 0:l.periodUnit)!=null&&e.includes("near"))?h.getBarXAxis(t[0].periodUnit):this.getTimeAxis()}formatSeries(){const t=this.props.conf,o=this.Style.value;return t.data.map((s,l)=>{const e=s.color||h.COLORS[l];return{type:"bar",data:h.getRandomArr({num:o.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()}),name:s.name,itemStyle:{color:e},label:{show:o.showLabel,position:"top",color:e},barWidth:o.barWidth+"%"}})}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:o,common:s}=this.props.conf,l=s.source||"mosaic",e=this.chartObj.getOption();o.forEach((n,p)=>{let c,f;if(["statistics","calculate"].includes(l)&&n.periodUnit&&!n.periodUnit.includes("near")){console.log("[bar] 固定周期模式",{item:n,periodUnit:n.periodUnit}),c=this.extractDataValue(t,n.fv);const E=n.periodUnit.split("-");f=h.getXAxisNearTime(t.start_time,E[E.length-1]);const g=e.xAxis[0].data.indexOf(f);console.log("[bar] 固定周期数据",{value:c,time:f,index:g,xAxisData:e.xAxis[0].data}),g>=0&&(e.series[p].data[g]=c)}else["statistics","calculate"].includes(l)&&n.periodUnit&&n.periodUnit.includes("near")?(console.log("[bar] 最近周期模式"),c=this.extractDataValue(t,n.fv),f=t.start_time,f!=null&&(p===0&&e.xAxis[0].data.push(f),e.series[p].data.push(c))):(c=this.extractDataValue(t,n.fv),f=["statistics","calculate"].includes(l)?t.start_time:t.datetime,f!=null&&(p===0&&e.xAxis[0].data.push(f),e.series[p].data.push(c)))});const d=h.addRealtimeData(e.xAxis[0].data,e.series.map(n=>n.data)),x=Number(this.Style.value.points)||10;e.xAxis[0].data=d.times.slice(-x),e.series.forEach((n,p)=>{var c;n.data=((c=d.data[p])==null?void 0:c.slice(-x))||[]}),this.updateChart(e)}setHistoryData(t){if(!t||!(t!=null&&t.length))return;const o=this.chartObj.getOption(),s=Number(this.Style.value.points)||10,l=e=>{if(e==null||e===""||e==="-")return null;const d=Number(e);return Number.isFinite(d)?d:null};o.xAxis[0].data=t[0].time.slice(-s),t.forEach((e,d)=>{if(!o.series[d])return;const x=e.data||[];o.series[d].data=x.map(l).slice(-s)}),this.updateChart(o)}}const m=new U(i,"bar");m.setupLifecycle();const A=h.useCounterStore();a.onMounted(()=>{var b;if(A.registerInstance(i.uid,m),i.mode==="preview"){const t=((b=m.getChartInstance)==null?void 0:b.call(m))||m.chartObj;t==null||t.off("click"),t==null||t.on("click",o=>{var l,e,d,x,n,p;const s=o==null?void 0:o.seriesName;if(typeof s=="string"&&s){const c=((e=(l=i.conf)==null?void 0:l.options)==null?void 0:e.linkChannel)==="custom"?(x=(d=i.conf)==null?void 0:d.options)==null?void 0:x.customChannel:(p=(n=i.conf)==null?void 0:n.options)==null?void 0:p.linkChannel;r.publish(c||"bar","bar",{objectId:"",deviceId:"",type:"select",fieldKey:s,fv:S({key:s},o),source:"bar"})}})}}),a.onUnmounted(()=>{A.unregisterInstance(i.uid)});const _=m.getStyle(),I=m.getEchartId(),O=i.conf,L=a.computed(()=>j.generateTitleStyle(i.conf.options));return(b,t)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(_).bgColor,borderRadius:`${a.unref(_).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(L.value)},a.toDisplayString(a.unref(O).caption||a.unref(O).name),5),a.createElementVNode("div",P,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(I)},null,8,W)]),a.renderSlot(b.$slots,"default",{},void 0,!0)],4))}})),Z=h._export_sfc(Y,[["__scopeId","data-v-3716b129"]]);exports.default=Z;
1
+ "use strict";var T=Object.defineProperty,k=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var v=(u,i,r)=>i in u?T(u,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[i]=r,S=(u,i)=>{for(var r in i||(i={}))V.call(i,r)&&v(u,r,i[r]);if(N)for(var r of N(i))q.call(i,r)&&v(u,r,i[r]);return u},y=(u,i)=>k(u,z(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),h=require("./index-DVqMfQVc.cjs");require("element-plus");const w=require("./EChartComponentBase-dLE5F7Tt.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-bar-icon-V94clxg_.cjs"),$=require("./install-DV5cEgNV.cjs"),j=require("./install-CltTFs4e.cjs"),C=require("./installCanvasRenderer-CyhM1Qpl.cjs"),B=require("./install-C8buXQPI.cjs"),M=require("./install-Ch5d8i37.cjs"),P={class:"mix-body"},W=["id"],F={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"基础柱状图",NAME_EN:"Bar Chart",ORDER:1,PLATFORM:["pc","screen","mobile"]},X={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1},H=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1}],G=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:h.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],K=["mosaic","statistics","calculate"],J={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},Q={DEFAULT:F,OPTIONS:X,DATA:H,PARAMS:G,SOURCE:K,COMMON:J},Y=a.defineComponent(y(S({},Q),{__name:"bar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(u){C.use([$.install,j.install,C.install,B.install,C.install$1,M.install]);const i=u,r=h.useLinkStore();class L extends w.EChartComponentBase{extractStyles(){return y(S({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,o=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:o.data.map(s=>s.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:s=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(s))return s;const[l,e]=s.split(" ");return`${l}
2
+ ${e}`},color:t.textColor,fontSize:t.textSize}}],yAxis:[{type:"value",nameGap:10,nameTextStyle:{align:"right"},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitNumber:4}],series:this.formatSeries()}}getXAxisData(){var l,e;const{data:t,common:o}=this.props.conf,s=(o==null?void 0:o.source)||"mosaic";return["statistics","calculate"].includes(s)&&!((e=(l=t[0])==null?void 0:l.periodUnit)!=null&&e.includes("near"))?h.getBarXAxis(t[0].periodUnit):this.getTimeAxis()}formatSeries(){const t=this.props.conf,o=this.Style.value;return t.data.map((s,l)=>{const e=s.color||h.COLORS[l];return{type:"bar",data:h.getRandomArr({num:o.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()}),name:s.name,itemStyle:{color:e},label:{show:o.showLabel,position:"top",color:e},barWidth:o.barWidth+"%"}})}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:o,common:s}=this.props.conf,l=s.source||"mosaic",e=this.chartObj.getOption();o.forEach((n,p)=>{let c,f;if(["statistics","calculate"].includes(l)&&n.periodUnit&&!n.periodUnit.includes("near")){console.log("[bar] 固定周期模式",{item:n,periodUnit:n.periodUnit}),c=this.extractDataValue(t,n.fv);const E=n.periodUnit.split("-");f=h.getXAxisNearTime(t.start_time,E[E.length-1]);const g=e.xAxis[0].data.indexOf(f);console.log("[bar] 固定周期数据",{value:c,time:f,index:g,xAxisData:e.xAxis[0].data}),g>=0&&(e.series[p].data[g]=c)}else["statistics","calculate"].includes(l)&&n.periodUnit&&n.periodUnit.includes("near")?(console.log("[bar] 最近周期模式"),c=this.extractDataValue(t,n.fv),f=t.start_time,f!=null&&(p===0&&e.xAxis[0].data.push(f),e.series[p].data.push(c))):(c=this.extractDataValue(t,n.fv),f=["statistics","calculate"].includes(l)?t.start_time:t.datetime,f!=null&&(p===0&&e.xAxis[0].data.push(f),e.series[p].data.push(c)))});const d=h.addRealtimeData(e.xAxis[0].data,e.series.map(n=>n.data)),x=Number(this.Style.value.points)||10;e.xAxis[0].data=d.times.slice(-x),e.series.forEach((n,p)=>{var c;n.data=((c=d.data[p])==null?void 0:c.slice(-x))||[]}),this.updateChart(e)}setHistoryData(t){if(!t||!(t!=null&&t.length))return;const o=this.chartObj.getOption(),s=Number(this.Style.value.points)||10,l=e=>{if(e==null||e===""||e==="-")return null;const d=Number(e);return Number.isFinite(d)?d:null};o.xAxis[0].data=t[0].time.slice(-s),t.forEach((e,d)=>{if(!o.series[d])return;const x=e.data||[];o.series[d].data=x.map(l).slice(-s)}),this.updateChart(o)}}const m=new L(i,"bar");m.setupLifecycle();const A=h.useCounterStore();a.onMounted(()=>{var b;if(A.registerInstance(i.uid,m),i.mode==="preview"){const t=((b=m.getChartInstance)==null?void 0:b.call(m))||m.chartObj;t==null||t.off("click"),t==null||t.on("click",o=>{var l,e,d,x,n,p;const s=o==null?void 0:o.seriesName;if(typeof s=="string"&&s){const c=((e=(l=i.conf)==null?void 0:l.options)==null?void 0:e.linkChannel)==="custom"?(x=(d=i.conf)==null?void 0:d.options)==null?void 0:x.customChannel:(p=(n=i.conf)==null?void 0:n.options)==null?void 0:p.linkChannel;r.publish(c||"bar","bar",{objectId:"",deviceId:"",type:"select",fieldKey:s,fv:S({key:s},o),source:"bar"})}})}}),a.onUnmounted(()=>{A.unregisterInstance(i.uid)});const O=m.getStyle(),U=m.getEchartId(),_=i.conf,I=a.computed(()=>R.generateTitleStyle(i.conf.options));return(b,t)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(O).bgColor,borderRadius:`${a.unref(O).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(I.value)},a.toDisplayString(a.unref(_).caption||a.unref(_).name),5),a.createElementVNode("div",P,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(U)},null,8,W)]),a.renderSlot(b.$slots,"default",{},void 0,!0)],4))}})),Z=h._export_sfc(Y,[["__scopeId","data-v-f8927d1e"]]);exports.default=Z;
@@ -0,0 +1 @@
1
+ "use strict";var R=Object.defineProperty,F=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var M=(a,l,s)=>l in a?R(a,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[l]=s,w=(a,l)=>{for(var s in l||(l={}))U.call(l,s)&&M(a,s,l[s]);if(O)for(var s of O(l))Z.call(l,s)&&M(a,s,l[s]);return a},z=(a,l)=>F(a,H(l));var I=(a,l,s)=>new Promise((m,p)=>{var y=c=>{try{g(s.next(c))}catch(_){p(_)}},S=c=>{try{g(s.throw(c))}catch(_){p(_)}},g=c=>c.done?m(c.value):Promise.resolve(c.value).then(y,S);g((s=s.apply(a,l)).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/icon/style/css");const e=require("vue"),K=require("./BaseComponent-Chnv4fBT.cjs"),E=require("./index-DVqMfQVc.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),N=require("./no-image-icon-CPA7RKkF.cjs"),J=require("@element-plus/icons-vue"),$=require("./ele-bmp-icon-BBI0-SX7.cjs"),Q={class:"mix-body"},X={key:0},Y={class:"w-[80px] h-[80px]"},ee=["src"],te={class:"bdmap-base-info"},oe={class:"flex"},ne={class:"name"},se={class:"value"},le={class:"flex"},ae={class:"name"},ie={class:"value"},re={class:"flex"},ce={class:"name"},de={class:"value"},ue={key:1,class:"w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"},pe={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"百度地图",NAME_EN:"Baidu Map",ORDER:2,PLATFORM:["pc","screen","mobile"]},me={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,lng:113.933782,lat:22.582649,zoom:10},ge={baiduMapAk:""},fe={DEFAULT:pe,OPTIONS:me,COMMON:ge},ve=e.defineComponent(z(w({},fe),{__name:"bmp",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const{proxy:l}=e.getCurrentInstance(),s="bmp_"+Math.random().toString(16).substring(4,12);let m=null,p=null;const y=a;class S extends K.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),zoom:this.getOptionValue("zoom",10),lng:this.getOptionValue("lng",113.933782),lat:this.getOptionValue("lat",22.582649),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var u;this.Style.value=this.extractStyles(),this.applyTheme(),i.zoom=this.Style.value.zoom,i.center.lat=this.Style.value.lat,i.center.lng=this.Style.value.lng;const t=((u=this.props.conf)==null?void 0:u.common)||{};if(i.ak=t.baiduMapAk||"",p&&m){const n=new p.Point(this.Style.value.lng,this.Style.value.lat);m.centerAndZoom(n,this.Style.value.zoom)}}}const g=new S(y,"bmp");g.setupLifecycle();const c=g.getStyle(),_=e.computed(()=>G.generateTitleStyle(y.conf.options)),i=e.reactive({zoom:10,ak:"",center:{lat:22.582649,lng:113.933782}}),f=e.ref([]),d=e.ref({}),V=e.ref(0),x=e.ref(0),h=e.ref(!1),A=({BMap:o,map:t})=>{m=t,p=o,y.mode==="preview"&&T()},T=()=>I(null,null,function*(){const{result:o}=yield E.api.post("get_object_list"),t=/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/,u=/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;f.value=[];let n=!1;o.data.forEach(r=>{let k="";if(r.gis||r.gis.split(", ").length>1){const v=r.gis.split(", ");if(t.test(v[1])&&u.test(v[0])&&Number(v[1])&&Number(v[0])){const B=N.wgs84tobd09(Number(v[1]),Number(v[0]));k=B[1]+","+B[0]}else k=r.custom_gis}else k=r.custom_gis;const b=k.split(",");b.length>=2&&!n&&(i.center.lng=Number(b[1]),i.center.lat=Number(b[0]),n=!0),k.length>1&&f.value.push({center:{lng:b[1],lat:b[0]},image:r.image,address:r.address||r.province+r.city,name:r.name,uid:r.uid,desc:r.description})}),!n&&f.value[0]&&(i.center=f.value[0].center);const C=new p.Point(i.center.lng,i.center.lat);m.centerAndZoom(C,c.value.zoom)}),D=(o,t)=>{V.value=o.pixel.y+10+"px",x.value=o.pixel.x+10+"px",d.value=t,t.address||j(t),h.value=!0},q=o=>console.log(o),L=e.computed(()=>d.value.image?l.config.file_url+"/"+d.value.image:N.nullImage),j=o=>{const t=`${o.center.lat},${o.center.lng}`,u={ak:i.ak,location:t,coordtype:"bd09ll",output:"json",extensions_poi:1};E.api.getLocation("/bdMapAddress",u).then(n=>{n.status===0&&(d.value.address=n.result.formatted_address_poi||n.result.formatted_address)})},P=o=>{if(o){let t=location.href;t.indexOf("?object_id=")>-1&&(t=t.split("?object_id=")[0]),location.href=t+"?object_id="+o,location.reload()}};return(o,t)=>{const u=W.ElIcon;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(_.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",Q,[i.ak?(e.openBlock(),e.createElementBlock("div",{key:0,class:"map-wrap",id:s},[e.createVNode(e.unref(N.BaiduMap),{class:"bm-view relative",center:i.center,"map-click":!1,zoom:i.zoom,ak:i.ak,v:"3.0",type:"API",onMovestart:t[2]||(t[2]=n=>h.value=!1),onZoomstart:t[3]||(t[3]=n=>h.value=!1),onClick:t[4]||(t[4]=n=>q("close")),"scroll-wheel-zoom":!0,onReady:A},{default:e.withCtx(()=>[f.value.length?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(e.unref(N.MarkerClusterer),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,n=>(e.openBlock(),e.createBlock(e.unref(N.BmMarker),{onClick:C=>D(C,n),key:n.uid,position:n.center},null,8,["onClick","position"]))),128))]),_:1})])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"index-bdmap-equipment",style:e.normalizeStyle({top:V.value,left:x.value}),onClick:t[1]||(t[1]=n=>P(d.value))},[e.createElementVNode("div",Y,[e.createElementVNode("img",{src:L.value,class:"w-[100%] h-[100%]"},null,8,ee)]),e.createElementVNode("div",te,[e.createElementVNode("div",oe,[e.createElementVNode("span",ne,e.toDisplayString(o.$t("component.map.deviceNumber"))+":",1),e.createElementVNode("span",se,e.toDisplayString(d.value.uid),1)]),e.createElementVNode("div",le,[e.createElementVNode("span",ae,e.toDisplayString(o.$t("component.map.deviceName"))+":",1),e.createElementVNode("span",ie,e.toDisplayString(d.value.name),1)]),e.createElementVNode("div",re,[e.createElementVNode("span",ce,e.toDisplayString(o.$t("component.map.address"))+":",1),e.createElementVNode("span",de,e.toDisplayString(d.value.address),1)])]),e.createVNode(u,{class:"close-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(J.Close),{onClick:t[0]||(t[0]=e.withModifiers(n=>h.value=!1,["stop"]))})]),_:1})],4)):e.createCommentVNode("",!0)]),_:1},8,["center","zoom","ak"])])):(e.openBlock(),e.createElementBlock("div",ue,e.toDisplayString(o.$t("component.map.apiKeyRequired")),1))]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),ye=E._export_sfc(ve,[["__scopeId","data-v-d1ccdc00"]]);exports.default=ye;