mixdashboards 1.0.39 → 1.0.40

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 (288) hide show
  1. package/dist/{EChartComponentBase-BaQpBzVC.cjs → EChartComponentBase-BTqBoBn8.cjs} +1 -1
  2. package/dist/{EChartComponentBase-BQOhWkz2.js → EChartComponentBase-GBbKjtlb.js} +1 -1
  3. package/dist/{UniverSheet-KlvmL1Yw.cjs → UniverSheet-B9dCqA-W.cjs} +1 -1
  4. package/dist/{UniverSheet-MSHzUXq0.js → UniverSheet-DIkltx8i.js} +2 -2
  5. package/dist/{accelerationChart-B1HPMmd2.js → accelerationChart-B7grHeml.js} +3 -3
  6. package/dist/{accelerationChart-DZj2V2vD.cjs → accelerationChart-CvNoIyue.cjs} +1 -1
  7. package/dist/{actionItem-BYCPoQK7.cjs → actionItem-BKNfuprM.cjs} +1 -1
  8. package/dist/{actionItem-Bb2xiYlY.js → actionItem-BrTSUE0J.js} +3 -3
  9. package/dist/{alarmLevelChart-CCioESvL.js → alarmLevelChart-CmjyIsWH.js} +2 -2
  10. package/dist/{alarmLevelChart-Bb0mAbwQ.cjs → alarmLevelChart-DBqGvaXQ.cjs} +1 -1
  11. package/dist/{alertTable-CQwr8YYt.js → alertTable-C8beWyfK.js} +2 -2
  12. package/dist/{alertTable-oaX5eJC0.cjs → alertTable-CZ2ufzg9.cjs} +1 -1
  13. package/dist/{annualRainfallChart-C21jEMBe.js → annualRainfallChart-D3Pck4he.js} +2 -2
  14. package/dist/{annualRainfallChart-pO8q6aUJ.cjs → annualRainfallChart-D3YQwScd.cjs} +1 -1
  15. package/dist/{api-P_s372dW.cjs → api-C0okiLNC.cjs} +1 -1
  16. package/dist/{api-C0GhBpqd.js → api-DhQsrEGY.js} +4 -4
  17. package/dist/{aqi-DlY2r7OA.cjs → aqi-91QfhWTq.cjs} +1 -1
  18. package/dist/{aqi-iLwQH4rc.js → aqi-DnrkU6z-.js} +10 -10
  19. package/dist/{aqiIndass-DBeVSBdy.js → aqiIndass-CzA5PVzc.js} +15 -15
  20. package/dist/{aqiIndass-BaIVBfdC.cjs → aqiIndass-D2h-731s.cjs} +1 -1
  21. package/dist/arrayCard-C-V_01r7.cjs +1 -0
  22. package/dist/arrayCard-mprI5bQN.js +94 -0
  23. package/dist/{audio-CThzVIDU.cjs → audio-CdVI14ea.cjs} +1 -1
  24. package/dist/{audio-CAP4D-J2.js → audio-Xj66qRvv.js} +5 -5
  25. package/dist/{bar-BjR566__.cjs → bar-DQ6kQXTC.cjs} +1 -1
  26. package/dist/{bar-D8C06GO4.js → bar-ub8ERs66.js} +4 -4
  27. package/dist/{bmp-Cjizh2x6.js → bmp-bXQBGW16.js} +3 -3
  28. package/dist/{bmp-DsmTzyce.cjs → bmp-xuWyQ9_n.cjs} +1 -1
  29. package/dist/{box-qgu_67OD.cjs → box-C9s5aZjl.cjs} +1 -1
  30. package/dist/{box-DqewT3MF.js → box-Dx6V-j_J.js} +2 -2
  31. package/dist/{chartConfigPanel-DwAUq3pf.js → chartConfigPanel-Bd47rczI.js} +1 -1
  32. package/dist/{chartConfigPanel-BiQArCoQ.cjs → chartConfigPanel-CLbbeZzN.cjs} +1 -1
  33. package/dist/{circleBar-CO89T7kj.cjs → circleBar-BsmKIein.cjs} +1 -1
  34. package/dist/{circleBar-DGHDWQih.js → circleBar-D8I2e0Ov.js} +8 -8
  35. package/dist/{clock-CT8YXEU3.js → clock-7kw9zMJ0.js} +2 -2
  36. package/dist/{clock-32hGccm4.cjs → clock-bnKjuzzp.cjs} +1 -1
  37. package/dist/{clt-5bP_g1O-.cjs → clt-7F8jS0WQ.cjs} +1 -1
  38. package/dist/{clt-FfIEfGtn.js → clt-BGGFfbQ5.js} +3 -3
  39. package/dist/{cmc-dbuLkE8o.cjs → cmc-B2ja2VKe.cjs} +1 -1
  40. package/dist/{cmc-B2nQFZIS.js → cmc-DTiGNWEl.js} +3 -3
  41. package/dist/{cmp-QQlYcnqo.js → cmp-BXx9BxO1.js} +12 -12
  42. package/dist/{cmp-l3U9fIrz.cjs → cmp-D9MzneF0.cjs} +1 -1
  43. package/dist/{composite-DjhrBgG1.js → composite-C6PQB2RS.js} +8 -8
  44. package/dist/{composite-DlY2_x6P.cjs → composite-Dh9pPcWq.cjs} +1 -1
  45. package/dist/config-D3MEjLGn.js +9 -0
  46. package/dist/config-UTUPYJ45.cjs +1 -0
  47. package/dist/{controlList-BdF8xNAi.js → controlList-VioXoP_4.js} +3 -3
  48. package/dist/{controlList-De6PXdOc.cjs → controlList-uLJtFu1P.cjs} +1 -1
  49. package/dist/{controlRecordList-CKpAr1ON.js → controlRecordList-DY7qKQp1.js} +3 -3
  50. package/dist/{controlRecordList-u5a7chIX.cjs → controlRecordList-GtFLhcc9.cjs} +1 -1
  51. package/dist/{crd-BVAf41oX.js → crd-Bf8Rmcf5.js} +2 -2
  52. package/dist/{crd-BoaXQhFQ.cjs → crd-DdsOuCBh.cjs} +1 -1
  53. package/dist/{ctrBtn-ZPRYWE66.js → ctrBtn-BSzyUEkN.js} +4 -4
  54. package/dist/{ctrBtn-C9kQiqY1.cjs → ctrBtn-GKFfJlE2.cjs} +1 -1
  55. package/dist/{ctrSet-C87dxLfQ.js → ctrSet--1TrVZDc.js} +4 -4
  56. package/dist/{ctrSet-CNCrnLSs.cjs → ctrSet-CDr5scQE.cjs} +1 -1
  57. package/dist/{ctrSwitch-CkC_Axtp.js → ctrSwitch-ezGEAkLG.js} +4 -4
  58. package/dist/{ctrSwitch-CVEtbdfb.cjs → ctrSwitch-kHoyJDax.cjs} +1 -1
  59. package/dist/{dataManagement-n711sd1g.cjs → dataManagement-DxTZAlJy.cjs} +1 -1
  60. package/dist/{dataManagement-CjlNfeYq.js → dataManagement-oWoI1QPO.js} +2 -2
  61. package/dist/{dataReport-ByjswEqq.js → dataReport-BATqcXj4.js} +2 -2
  62. package/dist/{dataReport-BsVjW3p7.cjs → dataReport-Dygq1jQV.cjs} +1 -1
  63. package/dist/{dataTable-K7j4fhnq.cjs → dataTable-CotUzlhz.cjs} +1 -1
  64. package/dist/{dataTable-DX500R1i.js → dataTable-DIKwnInT.js} +1 -1
  65. package/dist/{datetime-DVbJtALf.js → datetime-CK042aN0.js} +2 -2
  66. package/dist/{datetime-DYXWKrXI.cjs → datetime-DLASaAKw.cjs} +1 -1
  67. package/dist/{deepClusterSlipSurface-CQUE05cK.js → deepClusterSlipSurface-C52_bDho.js} +6 -6
  68. package/dist/{deepClusterSlipSurface-B7nkEM9A.cjs → deepClusterSlipSurface-D8v4xJGF.cjs} +1 -1
  69. package/dist/{deepDataMatrix-DHZA0IAm.cjs → deepDataMatrix-C-NrtGtk.cjs} +1 -1
  70. package/dist/{deepDataMatrix-ai5rB6ET.js → deepDataMatrix-CdB1ZO5Q.js} +2 -2
  71. package/dist/{deepDisplacement3D-BsUzvbQb.js → deepDisplacement3D-C3Salw1w.js} +3 -3
  72. package/dist/{deepDisplacement3D-BFqKqSYg.cjs → deepDisplacement3D-CzM-wm4q.cjs} +1 -1
  73. package/dist/{deepDisplacementChart-Ba67v6um.cjs → deepDisplacementChart-BqZ4nUgg.cjs} +1 -1
  74. package/dist/{deepDisplacementChart-2JZNrhrw.cjs → deepDisplacementChart-ByIJTYX6.cjs} +1 -1
  75. package/dist/{deepDisplacementChart-igl4rW1K.js → deepDisplacementChart-GcH8IGA4.js} +2 -2
  76. package/dist/{deepDisplacementChart-BCIuCMdK.js → deepDisplacementChart-ndHgH60B.js} +4 -4
  77. package/dist/{deepDisplacementView-BedWJsx7.js → deepDisplacementView-Bo_pmf0R.js} +1 -1
  78. package/dist/{deepDisplacementView-wQxyKzB-.cjs → deepDisplacementView-Bq_G0GlS.cjs} +1 -1
  79. package/dist/{deepNodeTemperatureChart-DLeb9jKp.js → deepNodeTemperatureChart-CXgft_WM.js} +6 -6
  80. package/dist/{deepNodeTemperatureChart-albL8hKa.cjs → deepNodeTemperatureChart-Dsl1Zm8T.cjs} +1 -1
  81. package/dist/{deepTangentAngleChart-C6xOiITk.js → deepTangentAngleChart-D-WoGKz7.js} +7 -7
  82. package/dist/{deepTangentAngleChart-DukevXaM.cjs → deepTangentAngleChart-iLt3bK8f.cjs} +1 -1
  83. package/dist/{deepTemperatureField-B-y94GPV.js → deepTemperatureField-BFB8bQde.js} +7 -7
  84. package/dist/{deepTemperatureField-De4xKoHw.cjs → deepTemperatureField-DnpuZuD8.cjs} +1 -1
  85. package/dist/{deepTrendChart-MmuYSXtu.cjs → deepTrendChart-BghE13XG.cjs} +1 -1
  86. package/dist/{deepTrendChart-DCkV2HNv.js → deepTrendChart-E-mAzsST.js} +6 -6
  87. package/dist/{deviceOnlineStatus-CFuCTx7_.js → deviceOnlineStatus-CkZijkjC.js} +2 -2
  88. package/dist/{deviceOnlineStatus-B5cCjhNA.cjs → deviceOnlineStatus-TQ-Fv8ye.cjs} +1 -1
  89. package/dist/{deviceStatus-DsEtKiGo.cjs → deviceStatus-BkKc9wqU.cjs} +1 -1
  90. package/dist/{deviceStatus-B2ibBDSi.js → deviceStatus-BvJr98D0.js} +2 -2
  91. package/dist/{displacementDataTable-BDqG1IvI.js → displacementDataTable-BJ5S7te1.js} +2 -2
  92. package/dist/{displacementDataTable-oLnUdafv.cjs → displacementDataTable-DJUK3mBu.cjs} +1 -1
  93. package/dist/{displacementTrajectoryChart-CBhPwZhe.cjs → displacementTrajectoryChart-C2estBCm.cjs} +1 -1
  94. package/dist/{displacementTrajectoryChart-Crf55oKi.js → displacementTrajectoryChart-DGS9Mn7o.js} +3 -3
  95. package/dist/{displacementTrendChart-CWihCuIJ.cjs → displacementTrendChart-CgsIcHCK.cjs} +1 -1
  96. package/dist/{displacementTrendChart-10n_lC9j.js → displacementTrendChart-Ddgpsnta.js} +2 -2
  97. package/dist/{dxf-D8zHpz5g.js → dxf-B0EL1hyB.js} +5 -5
  98. package/dist/{dxf-DDh_DcQy.cjs → dxf-DbxtgQWv.cjs} +1 -1
  99. package/dist/{dzc-DLCdTCwW.js → dzc-ACr2bZGl.js} +10 -10
  100. package/dist/{dzc-uNTDJqpi.cjs → dzc-Bdm2nr1F.cjs} +1 -1
  101. package/dist/{arrayCard-DNNUEPvW.js → ele-arrayCard-icon-CAk9ojr4.js} +3 -91
  102. package/dist/ele-arrayCard-icon-QOabvV0y.cjs +1 -0
  103. package/dist/{element-resize-detector-Bo5uDQAu.cjs → element-resize-detector-BlMXyWIR.cjs} +1 -1
  104. package/dist/{element-resize-detector-DJcsrJ8s.js → element-resize-detector-DeMhGbNi.js} +4 -4
  105. package/dist/{evn-YwCALVXj.js → evn-D0llPvjK.js} +2 -2
  106. package/dist/{evn-DuL5oVRl.cjs → evn-Moewbl2h.cjs} +1 -1
  107. package/dist/{evolutionChart-4noZSdLX.js → evolutionChart-Cz_GOcB8.js} +3 -3
  108. package/dist/{evolutionChart-AeL67MAt.cjs → evolutionChart-DBwL00ZJ.cjs} +1 -1
  109. package/dist/{fileViewer-bsrjlJkC.cjs → fileViewer-BtjOAdM9.cjs} +1 -1
  110. package/dist/{fileViewer-DiH3PM0r.js → fileViewer-D-WNR3vF.js} +5 -5
  111. package/dist/{filterBar-Ct1BFhrS.cjs → filterBar-4Q9XSiAY.cjs} +1 -1
  112. package/dist/{filterBar-CWEguwYc.js → filterBar-DLYmU350.js} +2 -2
  113. package/dist/{fireCombustionCurve-DYPC4zKJ.js → fireCombustionCurve-BU3pplHd.js} +2 -2
  114. package/dist/{fireCombustionCurve-DyiQn-WA.cjs → fireCombustionCurve-CWggQsw1.cjs} +1 -1
  115. package/dist/{fireFilterBar-Bdm2ljuO.cjs → fireFilterBar-EKwzMAFp.cjs} +1 -1
  116. package/dist/{fireFilterBar-DGHPNTwF.js → fireFilterBar-ROtoXZex.js} +2 -2
  117. package/dist/{gag-HiNaL81R.cjs → gag-CvMEVCbE.cjs} +1 -1
  118. package/dist/{gag-kvkKzJuO.js → gag-D8mNPZnH.js} +5 -5
  119. package/dist/gasStationList-CWg8IYCo.cjs +1 -0
  120. package/dist/gasStationList-qVKS-fgC.js +984 -0
  121. package/dist/{glbModel-DtBI72ap.cjs → glbModel-CQBEujd2.cjs} +1 -1
  122. package/dist/{glbModel-CUz6CyVF.js → glbModel-U_yKQZWm.js} +2 -2
  123. package/dist/{gnssFilterBar-TBtirXIB.js → gnssFilterBar-o7zpW7jS.js} +2 -2
  124. package/dist/{gnssFilterBar-BQgY5x1W.cjs → gnssFilterBar-pvMsIjFy.cjs} +1 -1
  125. package/dist/{gnssHistoryTable-U8O7nyO7.js → gnssHistoryTable-BYg9jtl5.js} +3 -3
  126. package/dist/{gnssHistoryTable-D1ZLJOgh.cjs → gnssHistoryTable-Ddcw3-NB.cjs} +1 -1
  127. package/dist/{gnssMapView-42zmAd9q.cjs → gnssMapView--c2UXuOb.cjs} +1 -1
  128. package/dist/{gnssMapView-CaBfWeT1.js → gnssMapView-DMcq2u2c.js} +2 -2
  129. package/dist/{gnssTimeSeriesChart-CV2w_Aik.cjs → gnssTimeSeriesChart-984dcBPA.cjs} +1 -1
  130. package/dist/{gnssTimeSeriesChart-BrXYvuh6.js → gnssTimeSeriesChart-BtUSps0z.js} +4 -4
  131. package/dist/{gnssXYTrajectory-BmzSYjQ_.cjs → gnssXYTrajectory-D9JmAqC0.cjs} +1 -1
  132. package/dist/{gnssXYTrajectory-D2DoYnze.js → gnssXYTrajectory-DvIpI-GX.js} +3 -3
  133. package/dist/{grd-DW8cSFVR.cjs → grd-Cb8vd52d.cjs} +1 -1
  134. package/dist/{grd-B0GUjLm9.js → grd-DcxFaMyv.js} +3 -3
  135. package/dist/{grdIndass-DduUKZJm.js → grdIndass-BPLTUWIc.js} +3 -3
  136. package/dist/{grdIndass-BeBXVsos.cjs → grdIndass-FkNJ9pl6.cjs} +1 -1
  137. package/dist/{grg-CeX0pirQ.js → grg-Baot_Pdv.js} +6 -6
  138. package/dist/{grg-fnpcXtju.cjs → grg-CoDiLjcl.cjs} +1 -1
  139. package/dist/{gridview-DpABhCIw.cjs → gridview-BwDeg0tI.cjs} +1 -1
  140. package/dist/{gridview-BPwWXza9.js → gridview-DN8V84hl.js} +2 -2
  141. package/dist/{groupCard-De1E15mW.js → groupCard-D5wLscZo.js} +2 -2
  142. package/dist/{groupCard-WNE6gAAl.cjs → groupCard-DChtdioU.cjs} +1 -1
  143. package/dist/{headerBar-CZ3qcLHo.js → headerBar-DLvSZsMl.js} +3 -3
  144. package/dist/{headerBar-Qi1EXrr6.cjs → headerBar-m57S9WlE.cjs} +1 -1
  145. package/dist/{history-DAmBl4_5.cjs → history-C4gipwnp.cjs} +1 -1
  146. package/dist/{history-BkZhlpdY.js → history-DN0IVkYL.js} +3 -3
  147. package/dist/index-EnNA0nIi.cjs +582 -0
  148. package/dist/{index-kShjySl9.js → index-zPaMBZk-.js} +1047 -1065
  149. package/dist/{insarDeformChart-CnuSL1d9.js → insarDeformChart-DZl03mOe.js} +2 -2
  150. package/dist/{insarDeformChart-BGr2xe7w.cjs → insarDeformChart-DkiLrhem.cjs} +1 -1
  151. package/dist/{insarImageViewer-DRgGdQmN.cjs → insarImageViewer-ZcqHEEZr.cjs} +1 -1
  152. package/dist/{insarImageViewer-EmVThmVQ.js → insarImageViewer-kqYV5A1S.js} +2 -2
  153. package/dist/{kds-DTYWOq4K.cjs → kds-Ba0yzyNm.cjs} +1 -1
  154. package/dist/{kds-CpIQFgeY.js → kds-BbyaSB3L.js} +10 -10
  155. package/dist/{layerTabs-BATcBkTA.cjs → layerTabs-D2M3EVxt.cjs} +1 -1
  156. package/dist/{layerTabs-uze6K91A.js → layerTabs-SRHmamTF.js} +2 -2
  157. package/dist/{lin-Ba6fHkYf.cjs → lin-0U8FQZHZ.cjs} +1 -1
  158. package/dist/{lin-DU_EuPRg.js → lin-DxnORLL5.js} +8 -8
  159. package/dist/{linIndass-urYe5inp.cjs → linIndass-CX9Z02-e.cjs} +1 -1
  160. package/dist/{linIndass-XHKElG7L.js → linIndass-DXtxVxcr.js} +7 -7
  161. package/dist/{lst-C7aee1cU.js → lst-BKALUOuy.js} +2 -2
  162. package/dist/{lst-CpmoEQDY.cjs → lst-Bk2nvLuQ.cjs} +1 -1
  163. package/dist/{manualEntry-D9m_WPw3.js → manualEntry-DHH0Yrr3.js} +2 -2
  164. package/dist/{manualEntry-CJPiO5nh.cjs → manualEntry-DRK0QRnb.cjs} +1 -1
  165. package/dist/{mapBackground-6g_71Fwa.js → mapBackground-BXj8T-bG.js} +2 -2
  166. package/dist/{mapBackground-CF_TqNBy.cjs → mapBackground-DTuXORjO.cjs} +1 -1
  167. package/dist/{mappingList-CR55Tq4t.cjs → mappingList-M9OukdCu.cjs} +1 -1
  168. package/dist/{mappingList-luT5YE0d.js → mappingList-N-lL8mnV.js} +3 -3
  169. package/dist/{markdownViewer-D1hDk2Y7.cjs → markdownViewer-CcLL2hzV.cjs} +1 -1
  170. package/dist/{markdownViewer-CnguoUr8.js → markdownViewer-CgabPFUn.js} +5 -5
  171. package/dist/{mix-control-modal-CHiX3hQs.js → mix-control-modal-DRL4otx8.js} +3 -3
  172. package/dist/{mix-control-modal-BDHAB4Tw.cjs → mix-control-modal-Lhzopftt.cjs} +1 -1
  173. package/dist/{mixDataPermission-BaqV0Z6N.js → mixDataPermission-B5fpqFgm.js} +4 -3
  174. package/dist/{mixDataPermission-BTA1jNd1.cjs → mixDataPermission-CWt9H_Ib.cjs} +1 -1
  175. package/dist/{mixGrid-3BqQCvg8.cjs → mixGrid-DTwH6At3.cjs} +1 -1
  176. package/dist/{mixGrid-C0eEvwPy.js → mixGrid-wE427LB0.js} +3 -3
  177. package/dist/{mixMap-7upgYwWk.js → mixMap-Bo7_Womf.js} +3 -3
  178. package/dist/{mixMap-Bw-We4Cm.cjs → mixMap-DKDtSARk.cjs} +1 -1
  179. package/dist/{mixModel-BqE_Kd4c.js → mixModel-CdMcRi5k.js} +10 -10
  180. package/dist/{mixModel-CgV4XptM.cjs → mixModel-Dufgy8XG.cjs} +1 -1
  181. package/dist/{mixPie-9LfMCTQV.cjs → mixPie-BoUARcVT.cjs} +1 -1
  182. package/dist/{mixPie-B-HeglUn.js → mixPie-Dr9Toi5T.js} +7 -7
  183. package/dist/mixdashboards.cjs +1 -1
  184. package/dist/mixdashboards.css +1 -1
  185. package/dist/mixdashboards.js +1 -1
  186. package/dist/{mjpegCamera-Cfw3rzT5.js → mjpegCamera-BBqBIpmz.js} +2 -2
  187. package/dist/{mjpegCamera-nxKfhobY.cjs → mjpegCamera-C20yRxub.cjs} +1 -1
  188. package/dist/{monitorAlert-Bt0baNh4.cjs → monitorAlert-BgRCm9Vs.cjs} +1 -1
  189. package/dist/{monitorAlert-Bg5vzzyG.js → monitorAlert-DVfJ6uNR.js} +2 -2
  190. package/dist/{monitorData-CzPVIk_4.cjs → monitorData-Dz_cHcBR.cjs} +1 -1
  191. package/dist/{monitorData-BvAMeOrp.js → monitorData-zfcYQmc8.js} +3 -3
  192. package/dist/{monitorSpeedChart-0bDuU3Kj.js → monitorSpeedChart-DYV_S1um.js} +1 -1
  193. package/dist/{monitorSpeedChart-C52QjA5K.cjs → monitorSpeedChart-jAf_Agnm.cjs} +1 -1
  194. package/dist/{mxa-eLAgZPMC.cjs → mxa-DGkX2ysU.cjs} +1 -1
  195. package/dist/{mxa-BW80xKCc.js → mxa-mziDHRQU.js} +7 -7
  196. package/dist/myValue-6J41vLFg.cjs +1 -0
  197. package/dist/myValue-s0IC6eg0.js +149 -0
  198. package/dist/myValueList-Dl-JfGq6.cjs +1 -0
  199. package/dist/myValueList-cOT1nYnO.js +451 -0
  200. package/dist/{objectList-Cf9GMyXN.js → objectList-DGBiB_w6.js} +100 -95
  201. package/dist/objectList-DK5_HGK_.cjs +1 -0
  202. package/dist/photo-CBfgcj6v.cjs +1 -0
  203. package/dist/photo-C_1tDAZa.js +342 -0
  204. package/dist/{pie-DxoBrm0D.cjs → pie-DAEzlPEp.cjs} +1 -1
  205. package/dist/{pie-BDLg-Rls.js → pie-p9CvjJ_m.js} +7 -7
  206. package/dist/{pressBtn-t0g4vk7s.cjs → pressBtn-DMMLEAFZ.cjs} +1 -1
  207. package/dist/{pressBtn-CXG1eSWC.js → pressBtn-DlhDUUdy.js} +4 -4
  208. package/dist/{progressBar-BXaFKSCq.js → progressBar-C3K0DYlI.js} +2 -2
  209. package/dist/{progressBar-CJEWkZ42.cjs → progressBar-ZksfXpzu.cjs} +1 -1
  210. package/dist/{progressCircle-DpOI5D5z.js → progressCircle-BBLr8loP.js} +2 -2
  211. package/dist/{progressCircle-uQ7vaMKM.cjs → progressCircle-eFwDltuC.cjs} +1 -1
  212. package/dist/{qrcode-CX8aymYZ.js → qrcode-DgwPQO8V.js} +297 -298
  213. package/dist/qrcode-F7MtRi3K.cjs +1 -0
  214. package/dist/{raceBar-Cv0-0ogd.cjs → raceBar-Cp-9uqpX.cjs} +1 -1
  215. package/dist/{raceBar-DFaH342G.js → raceBar-CyW79eH-.js} +7 -7
  216. package/dist/{rad-CFswUTwi.cjs → rad-CLvi3eWj.cjs} +1 -1
  217. package/dist/{rad-NS2G_nMg.js → rad-CbFS-xjy.js} +7 -7
  218. package/dist/{rainfallFilterBar-D_Ye_NeB.js → rainfallFilterBar-B0G4jUib.js} +2 -2
  219. package/dist/{rainfallFilterBar-BI45QvJm.cjs → rainfallFilterBar-DldKT-I5.cjs} +1 -1
  220. package/dist/{rainfallTimeCurve-BHWqX47Q.js → rainfallTimeCurve-BlyxLbcV.js} +3 -3
  221. package/dist/{rainfallTimeCurve-Ke1JvSWq.cjs → rainfallTimeCurve-C5r3fOW8.cjs} +1 -1
  222. package/dist/{rangeLin-D6VZ2U3C.cjs → rangeLin-B2vKFJHK.cjs} +1 -1
  223. package/dist/{rangeLin-GMYEgLeP.js → rangeLin-CLAcLUai.js} +7 -7
  224. package/dist/{request-Bn100qAJ.cjs → request-4n94CBXg.cjs} +1 -1
  225. package/dist/{request-BD0x5Hkt.js → request-DT13bnc0.js} +1 -1
  226. package/dist/{retainer1-h-Whr2c9.js → retainer1-Dy2VHVgc.js} +3 -3
  227. package/dist/{retainer1-D2XmjXYH.cjs → retainer1-EFUFSxMm.cjs} +1 -1
  228. package/dist/{retainer2-ByQdiRjq.js → retainer2-3ITxlgwH.js} +3 -3
  229. package/dist/{retainer2-cF-trL2g.cjs → retainer2-BKVJLvBo.cjs} +1 -1
  230. package/dist/{riskRegionTable-CQxAkG7k.js → riskRegionTable-BQ88G7F7.js} +2 -2
  231. package/dist/{riskRegionTable-cKnxra4_.cjs → riskRegionTable-C2GOEi0n.cjs} +1 -1
  232. package/dist/{sankey-Bk1IcVJQ.js → sankey-ehJmtfKp.js} +9 -9
  233. package/dist/{sankey-MRirEgU0.cjs → sankey-utV5RADH.cjs} +1 -1
  234. package/dist/{scd-BDRpzmsa.js → scd-D-Y1EEoF.js} +2 -2
  235. package/dist/{scd-J-mN3eI5.cjs → scd-Nx15OHeb.cjs} +1 -1
  236. package/dist/{sideMenu-l8X2E00H.cjs → sideMenu-Ci3pDMFm.cjs} +1 -1
  237. package/dist/{sideMenu-BgTMtnMq.js → sideMenu-D6MgOAkf.js} +2 -2
  238. package/dist/{slopeStability-BPf7m0fJ.cjs → slopeStability-B9WvyL3-.cjs} +1 -1
  239. package/dist/{slopeStability-C5RqZ1im.js → slopeStability-Bu2a83d7.js} +3 -3
  240. package/dist/{speedCurve-C3pK-zZy.js → speedCurve-BR_xyp4X.js} +3 -3
  241. package/dist/{speedCurve-CluwNAZl.cjs → speedCurve-DrndMOKB.cjs} +1 -1
  242. package/dist/{staticLine-C6tGGXcN.cjs → staticLine-BLUdDtae.cjs} +1 -1
  243. package/dist/{staticLine-DXWOLj15.js → staticLine-DYQUjE_3.js} +7 -7
  244. package/dist/{store-DzDtVfSX.js → store-BpVoYd93.js} +2 -2
  245. package/dist/{store-BJW2NQkK.cjs → store-KXsdwyLp.cjs} +1 -1
  246. package/dist/{swiper-DGqDoUkX.cjs → swiper-53BGkj5I.cjs} +1 -1
  247. package/dist/{swiper-IMlGje3t.js → swiper-S8NYmcYS.js} +3 -3
  248. package/dist/{terminalConfigList-D6xDHsnb.cjs → terminalConfigList-DFDsxg1q.cjs} +1 -1
  249. package/dist/{terminalConfigList-SAyXi-BK.js → terminalConfigList-DaEpZiog.js} +3 -3
  250. package/dist/{terminalList-ml2C18MY.cjs → terminalList-BgNFp3E0.cjs} +1 -1
  251. package/dist/{terminalList-CjSHshiR.js → terminalList-mKVmYqJm.js} +3 -3
  252. package/dist/{textbox-BLV-SY8e.js → textbox-Bazh9LRC.js} +4 -4
  253. package/dist/{textbox-AQtCe25j.cjs → textbox-DAyhC67s.cjs} +1 -1
  254. package/dist/{timeQueryBar-BuKakMy8.cjs → timeQueryBar-2cbPr7zw.cjs} +1 -1
  255. package/dist/{timeQueryBar-BeMu_DYr.js → timeQueryBar-BnVnJk5K.js} +1 -1
  256. package/dist/{timeSeries-DP5iZKVM.js → timeSeries-BF-2qAA7.js} +4 -4
  257. package/dist/{timeSeries-DfGgFWiF.cjs → timeSeries-DEeo2zjY.cjs} +1 -1
  258. package/dist/{timeSeriesCurve-B0Mw6eNK.cjs → timeSeriesCurve-BMhNq3WC.cjs} +1 -1
  259. package/dist/{timeSeriesCurve-BSgtPqYw.js → timeSeriesCurve-CkCeP5mK.js} +3 -3
  260. package/dist/{toggleBtn-O2Y75Uen.js → toggleBtn-BnIia9MT.js} +7 -7
  261. package/dist/{toggleBtn-Dh64vVWo.cjs → toggleBtn-hg6nIH97.cjs} +1 -1
  262. package/dist/{trajectoryConfigPanel--C1h3tK6.js → trajectoryConfigPanel-CfnLHqWP.js} +1 -1
  263. package/dist/{trajectoryConfigPanel-P_Qa4omj.cjs → trajectoryConfigPanel-agVnGJJ6.cjs} +1 -1
  264. package/dist/{trajectoryScatter-VLrmImlq.js → trajectoryScatter-BBL5uJSS.js} +6 -6
  265. package/dist/{trajectoryScatter-BbpbgNb8.cjs → trajectoryScatter-BzFxJkJn.cjs} +1 -1
  266. package/dist/{universalConfigPanel-DBg76b4F.js → universalConfigPanel-BueS1CeL.js} +1 -1
  267. package/dist/{universalConfigPanel-C0lDSzOB.cjs → universalConfigPanel-Db87fd8H.cjs} +1 -1
  268. package/dist/{universalTable-DGK02ywi.js → universalTable-5QpYwmyj.js} +2 -2
  269. package/dist/{universalTable-Bzq9VqzA.cjs → universalTable-BXfm_1je.cjs} +1 -1
  270. package/dist/{video-DCzzaEmV.js → video-C75mXLnF.js} +5 -5
  271. package/dist/{video-CyRoSQf1.cjs → video-QWpkqafn.cjs} +1 -1
  272. package/dist/{videoMonitor-ByaQeIWR.js → videoMonitor-DSOQbTy9.js} +2 -2
  273. package/dist/{videoMonitor-BjD-ZFS0.cjs → videoMonitor-Dlvtlmf3.cjs} +1 -1
  274. package/dist/{vlu-h-9twmCr.js → vlu-BRrxfbLm.js} +2 -2
  275. package/dist/{vlu-CYZjYHaV.cjs → vlu-DqqX7UrQ.cjs} +1 -1
  276. package/dist/{weather-C_aC0XJ1.js → weather-B4twNcEf.js} +3 -3
  277. package/dist/{weather-B7B5E1EJ.cjs → weather-GNGvUFJc.cjs} +1 -1
  278. package/dist/{windLin-DPNzX7JN.cjs → windLin-DPr5J4_t.cjs} +1 -1
  279. package/dist/{windLin-B7V4NUV8.js → windLin-DSh910GU.js} +9 -9
  280. package/package.json +10 -9
  281. package/dist/arrayCard-OlVAAsZq.cjs +0 -1
  282. package/dist/config-BLSroAzs.cjs +0 -1
  283. package/dist/config-Cc2W4vke.js +0 -9
  284. package/dist/index-Mh5Dw2sd.cjs +0 -585
  285. package/dist/objectList-CpqQxG8L.cjs +0 -1
  286. package/dist/photo-BODEtaYh.cjs +0 -1
  287. package/dist/photo-BfLkWAo8.js +0 -256
  288. package/dist/qrcode-DHCRfp0M.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var Y=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var B=(f,r,g)=>r in f?Y(f,r,{enumerable:!0,configurable:!0,writable:!0,value:g}):f[r]=g,N=(f,r)=>{for(var g in r||(r={}))Q.call(r,g)&&B(f,g,r[g]);if(q)for(var g of q(r))j.call(r,g)&&B(f,g,r[g]);return f},E=(f,r)=>J(f,K(r));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/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const l=require("vue"),e3=require("@element-plus/icons-vue"),T=require("./element-resize-detector-Bo5uDQAu.cjs"),R=require("./index-Mh5Dw2sd.cjs"),t3=require("./EChartComponentBase-BaQpBzVC.cjs"),n3=require("./titleStyle-NSnz6cUg.cjs"),l3=require("./install-C8buXQPI.cjs"),D=require("./installCanvasRenderer-CyhM1Qpl.cjs"),i3=require("./install-CltTFs4e.cjs"),o3=require("./install-CYwVETsi.cjs"),s3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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(-299.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",a3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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(-299.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",r3={class:"mix-body"},c3={class:"toolbar"},u3=["id"],d3={DEFAULT_ICON:s3,ACTIVE_ICON:a3,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21},h3={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:56,bottom:52,left:64,right:36,xName:{value:"位移量",type:"string",label:"X轴名称"},yName:{value:"高程(m)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],p3=["name","fv","depth","color","object_id"],m3=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],v3={useAlias:!1,multiObject:!0,source:"mosaic"},f3={DEFAULT:d3,OPTIONS:h3,DATA:$,PARAMS:p3,SOURCE:m3,COMMON:v3},g3=l.defineComponent(E(N({},f3),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(f){D.use([l3.install,D.install,i3.install,D.install$1,o3.install]);const r=f,g=R.useLinkStore(),u=l.ref([]),m=l.ref("");class Z extends t3.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",56),bottom:this.getOptionValue("bottom",52),left:this.getOptionValue("left",64),right:this.getOptionValue("right",36),xName:this.getOptionValue("xName","位移量"),yName:this.getOptionValue("yName","高程(m)"),linkChannel:s}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=$),l.nextTick(()=>this.initChart())}setHistoryData(n){I(n)}setSocketData(n){n&&I(n)}onLinkEvent(n){F(n)}getChartOption(){var s;const n=G.value,t=((s=r.conf)==null?void 0:s.data)||[];return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:4,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"item",formatter:i=>{var o,c,d,a;return`位移量: ${(c=(o=i==null?void 0:i.value)==null?void 0:o[0])!=null?c:"-"}<br/>高程: ${(a=(d=i==null?void 0:i.value)==null?void 0:d[1])!=null?a:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:t.map((i,o)=>{const c=(i==null?void 0:i.fv)||`v${o}`,d=((n==null?void 0:n.points)||[]).map(a=>{var C;const p=Number(a==null?void 0:a[c]),v=Number((C=a==null?void 0:a.elevation)!=null?C:a==null?void 0:a.depth);return!Number.isFinite(p)||!Number.isFinite(v)?null:[p,v]}).filter(Boolean).sort((a,p)=>a[1]-p[1]);return{name:(i==null?void 0:i.name)||`序列${o+1}`,type:"line",data:d,showSymbol:!0,symbolSize:6,lineStyle:{color:(i==null?void 0:i.color)||"#5470c6",width:2},itemStyle:{color:(i==null?void 0:i.color)||"#5470c6"}}})}}}const S=new Z(r,"deepTrendChart"),H=S.getEchartId();S.setupLifecycle();const V=S.getStyle(),U=l.computed(()=>n3.generateTitleStyle(r.conf.options)),P=l.computed(()=>u.value.map(e=>e.time)),G=l.computed(()=>{const e=m.value;return u.value.find(n=>n.time===e)||u.value[u.value.length-1]||null}),L=()=>{l.nextTick(()=>{const e=S.getChartInstance();e&&e.setOption(S.getChartOption(),!0)})},W=()=>L(),X=()=>{const e=S.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`deep-trend-${m.value||Date.now()}.png`,t.click()},A=()=>{var s,i,o;const e=((s=r.conf)==null?void 0:s.options)||{},n=((i=e==null?void 0:e.linkChannel)==null?void 0:i.value)||V.value.linkChannel||"deepDisplacement",t=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"";return n==="custom"&&t?t:n},b=(e,n,t="points")=>{const s=e==null?void 0:e[t];if(Array.isArray(s)&&s.length)return s;const i={};let o=!1;return n.forEach(c=>{var v;const d=c==null?void 0:c.fv;if(!d)return;const a=e==null?void 0:e[d];a!=null&&(i[d]=a,o=!0);const p=(v=e==null?void 0:e.elevation)!=null?v:e==null?void 0:e.depth;p!=null&&(i.elevation=p,i.depth=p)}),o?[i]:[]},z=e=>{var o;const n=((o=r.conf)==null?void 0:o.data)||[],s=(n[0]||{}).points_fv||"points",i=[];return e.forEach((c,d)=>{var C,x;const a=(c==null?void 0:c[0])||c||{},p=String((x=(C=a==null?void 0:a.time)!=null?C:a==null?void 0:a.datetime)!=null?x:d),v=b(a,n,s);v.length&&i.push({time:p,points:v})}),i},F=e=>{var v,C,x,y,k,_,O;if(r.mode==="edit"||!e||!e.payload)return;const n=A();if((v=e.topic)!=null&&v.channel&&n&&e.topic.channel!==n||!g.shouldHandle(e,"deepTrendChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const h=t.timeRange||t.dateRange||t.timeRangeValue;if((C=t.selectedTimes)!=null&&C.length){m.value=String(t.selectedTimes[t.selectedTimes.length-1]),L();return}if(Array.isArray(h)&&h.length){m.value=String(h[h.length-1]),L();return}if(h!=null&&h.endDate||h!=null&&h.end){m.value=String(h.endDate||h.end),L();return}return}const s=r.conf,i=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(i.length>0&&!(o!=null&&o.multiObject)){const h=T.getObjectId(o,o==null?void 0:o.useAlias,r.uid)||((x=i[0])==null?void 0:x.object_id),M=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(h&&M&&String(h)!==String(M))return}if(Array.isArray(t==null?void 0:t.history)){u.value=z(t.history),u.value.length&&(m.value=u.value[u.value.length-1].time),L();return}const d=(i[0]||{}).points_fv||"points",a=String((O=(_=(y=t==null?void 0:t.time)!=null?y:t==null?void 0:t.datetime)!=null?_:(k=e.topic)==null?void 0:k.time)!=null?O:Date.now()),p=b(t,i,d);p.length&&(u.value=[...u.value.slice(-49),{time:a,points:p}],m.value=a,L())},I=e=>{var x,y,k,_,O,h;const n=r.conf,t=(n==null?void 0:n.data)||[],s=(n==null?void 0:n.common)||{},i=(s==null?void 0:s.source)||"mosaic";let o=e;if(["statistics","calculate"].includes(i)&&(o=T.formatStatisticsResult(o,t)),(x=o==null?void 0:o.history)!=null&&x.length){u.value=z(o.history),u.value.length&&(m.value=u.value[u.value.length-1].time),L();return}const c=s!=null&&s.multiObject?"":T.getObjectId(s,s==null?void 0:s.useAlias,r.uid),d=c&&((k=(y=o==null?void 0:o[c])==null?void 0:y[i])==null?void 0:k.data)||((_=o==null?void 0:o[i])==null?void 0:_.data)||(o==null?void 0:o.data)||o,p=(t[0]||{}).points_fv||"points",v=String((h=(O=d==null?void 0:d.time)!=null?O:d==null?void 0:d.datetime)!=null?h:Date.now()),C=b(d,t,p);C.length&&(u.value=[...u.value.slice(-49),{time:v,points:C}],m.value=v,L())};return l.watch(()=>g.channels[A()],e=>{e&&F(e)},{deep:!0}),l.watchEffect(()=>{r.conf.socketData&&S.setSocketData(r.conf.socketData)}),l.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{S.getStyle().value=S.extractStyles(),L()},{deep:!0}),l.onMounted(()=>{if(r.mode==="edit"&&!u.value.length){const e=[{elevation:1024.94,disp:0,relative_disp:-1},{elevation:994.94,disp:3,relative_disp:0},{elevation:964.94,disp:6,relative_disp:1},{elevation:934.94,disp:9,relative_disp:2},{elevation:904.94,disp:12,relative_disp:3}];u.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(n=>E(N({},n),{disp:n.disp+1}))}],m.value=u.value[0].time}!m.value&&u.value.length&&(m.value=u.value[u.value.length-1].time),L()}),(e,n)=>{const t=w.ElOption,s=w.ElSelect,i=w.ElIcon,o=w.ElButton;return l.openBlock(),l.createElementBlock("div",{class:"mix-component",style:l.normalizeStyle({background:l.unref(V).bgColor,borderRadius:`${l.unref(V).radiusSize}px`})},[l.unref(V).isHideTitle?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"mix-title",style:l.normalizeStyle(U.value)},l.toDisplayString(f.conf.caption||f.conf.name),5)),l.createElementVNode("div",r3,[l.createElementVNode("div",c3,[l.createVNode(s,{modelValue:m.value,"onUpdate:modelValue":n[0]||(n[0]=c=>m.value=c),placeholder:"选择时间",size:"small",class:"time-select",onChange:W},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(P.value,c=>(l.openBlock(),l.createBlock(t,{key:c,label:c,value:c},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l.createVNode(o,{size:"small",class:"export-btn",onClick:X},{default:l.withCtx(()=>[l.createVNode(i,null,{default:l.withCtx(()=>[l.createVNode(l.unref(e3.Download))]),_:1}),n[1]||(n[1]=l.createTextVNode(" 导出图 ",-1))]),_:1})]),l.createElementVNode("div",{class:"echart-container",id:l.unref(H)},null,8,u3)]),l.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),C3=R._export_sfc(g3,[["__scopeId","data-v-628a2d7c"]]);exports.default=C3;
1
+ "use strict";var Y=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var B=(f,r,g)=>r in f?Y(f,r,{enumerable:!0,configurable:!0,writable:!0,value:g}):f[r]=g,N=(f,r)=>{for(var g in r||(r={}))Q.call(r,g)&&B(f,g,r[g]);if(q)for(var g of q(r))j.call(r,g)&&B(f,g,r[g]);return f},E=(f,r)=>J(f,K(r));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/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const l=require("vue"),e3=require("@element-plus/icons-vue"),T=require("./element-resize-detector-BlMXyWIR.cjs"),R=require("./index-EnNA0nIi.cjs"),t3=require("./EChartComponentBase-BTqBoBn8.cjs"),n3=require("./titleStyle-NSnz6cUg.cjs"),D=require("./installCanvasRenderer-CyhM1Qpl.cjs"),l3=require("./install-C8buXQPI.cjs"),i3=require("./install-CltTFs4e.cjs"),o3=require("./install-CYwVETsi.cjs"),s3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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(-299.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",a3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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(-299.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",r3={class:"mix-body"},c3={class:"toolbar"},u3=["id"],d3={DEFAULT_ICON:s3,ACTIVE_ICON:a3,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21},h3={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:56,bottom:52,left:64,right:36,xName:{value:"位移量",type:"string",label:"X轴名称"},yName:{value:"高程(m)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],p3=["name","fv","depth","color","object_id"],m3=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],v3={useAlias:!1,multiObject:!0,source:"mosaic"},f3={DEFAULT:d3,OPTIONS:h3,DATA:$,PARAMS:p3,SOURCE:m3,COMMON:v3},g3=l.defineComponent(E(N({},f3),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(f){D.use([l3.install,D.install,i3.install,D.install$1,o3.install]);const r=f,g=R.useLinkStore(),u=l.ref([]),m=l.ref("");class Z extends t3.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",56),bottom:this.getOptionValue("bottom",52),left:this.getOptionValue("left",64),right:this.getOptionValue("right",36),xName:this.getOptionValue("xName","位移量"),yName:this.getOptionValue("yName","高程(m)"),linkChannel:s}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=$),l.nextTick(()=>this.initChart())}setHistoryData(n){I(n)}setSocketData(n){n&&I(n)}onLinkEvent(n){F(n)}getChartOption(){var s;const n=G.value,t=((s=r.conf)==null?void 0:s.data)||[];return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:4,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"item",formatter:i=>{var o,c,d,a;return`位移量: ${(c=(o=i==null?void 0:i.value)==null?void 0:o[0])!=null?c:"-"}<br/>高程: ${(a=(d=i==null?void 0:i.value)==null?void 0:d[1])!=null?a:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:t.map((i,o)=>{const c=(i==null?void 0:i.fv)||`v${o}`,d=((n==null?void 0:n.points)||[]).map(a=>{var C;const p=Number(a==null?void 0:a[c]),v=Number((C=a==null?void 0:a.elevation)!=null?C:a==null?void 0:a.depth);return!Number.isFinite(p)||!Number.isFinite(v)?null:[p,v]}).filter(Boolean).sort((a,p)=>a[1]-p[1]);return{name:(i==null?void 0:i.name)||`序列${o+1}`,type:"line",data:d,showSymbol:!0,symbolSize:6,lineStyle:{color:(i==null?void 0:i.color)||"#5470c6",width:2},itemStyle:{color:(i==null?void 0:i.color)||"#5470c6"}}})}}}const S=new Z(r,"deepTrendChart"),H=S.getEchartId();S.setupLifecycle();const V=S.getStyle(),U=l.computed(()=>n3.generateTitleStyle(r.conf.options)),P=l.computed(()=>u.value.map(e=>e.time)),G=l.computed(()=>{const e=m.value;return u.value.find(n=>n.time===e)||u.value[u.value.length-1]||null}),L=()=>{l.nextTick(()=>{const e=S.getChartInstance();e&&e.setOption(S.getChartOption(),!0)})},W=()=>L(),X=()=>{const e=S.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`deep-trend-${m.value||Date.now()}.png`,t.click()},A=()=>{var s,i,o;const e=((s=r.conf)==null?void 0:s.options)||{},n=((i=e==null?void 0:e.linkChannel)==null?void 0:i.value)||V.value.linkChannel||"deepDisplacement",t=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"";return n==="custom"&&t?t:n},b=(e,n,t="points")=>{const s=e==null?void 0:e[t];if(Array.isArray(s)&&s.length)return s;const i={};let o=!1;return n.forEach(c=>{var v;const d=c==null?void 0:c.fv;if(!d)return;const a=e==null?void 0:e[d];a!=null&&(i[d]=a,o=!0);const p=(v=e==null?void 0:e.elevation)!=null?v:e==null?void 0:e.depth;p!=null&&(i.elevation=p,i.depth=p)}),o?[i]:[]},z=e=>{var o;const n=((o=r.conf)==null?void 0:o.data)||[],s=(n[0]||{}).points_fv||"points",i=[];return e.forEach((c,d)=>{var C,x;const a=(c==null?void 0:c[0])||c||{},p=String((x=(C=a==null?void 0:a.time)!=null?C:a==null?void 0:a.datetime)!=null?x:d),v=b(a,n,s);v.length&&i.push({time:p,points:v})}),i},F=e=>{var v,C,x,y,k,_,O;if(r.mode==="edit"||!e||!e.payload)return;const n=A();if((v=e.topic)!=null&&v.channel&&n&&e.topic.channel!==n||!g.shouldHandle(e,"deepTrendChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const h=t.timeRange||t.dateRange||t.timeRangeValue;if((C=t.selectedTimes)!=null&&C.length){m.value=String(t.selectedTimes[t.selectedTimes.length-1]),L();return}if(Array.isArray(h)&&h.length){m.value=String(h[h.length-1]),L();return}if(h!=null&&h.endDate||h!=null&&h.end){m.value=String(h.endDate||h.end),L();return}return}const s=r.conf,i=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(i.length>0&&!(o!=null&&o.multiObject)){const h=T.getObjectId(o,o==null?void 0:o.useAlias,r.uid)||((x=i[0])==null?void 0:x.object_id),M=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(h&&M&&String(h)!==String(M))return}if(Array.isArray(t==null?void 0:t.history)){u.value=z(t.history),u.value.length&&(m.value=u.value[u.value.length-1].time),L();return}const d=(i[0]||{}).points_fv||"points",a=String((O=(_=(y=t==null?void 0:t.time)!=null?y:t==null?void 0:t.datetime)!=null?_:(k=e.topic)==null?void 0:k.time)!=null?O:Date.now()),p=b(t,i,d);p.length&&(u.value=[...u.value.slice(-49),{time:a,points:p}],m.value=a,L())},I=e=>{var x,y,k,_,O,h;const n=r.conf,t=(n==null?void 0:n.data)||[],s=(n==null?void 0:n.common)||{},i=(s==null?void 0:s.source)||"mosaic";let o=e;if(["statistics","calculate"].includes(i)&&(o=T.formatStatisticsResult(o,t)),(x=o==null?void 0:o.history)!=null&&x.length){u.value=z(o.history),u.value.length&&(m.value=u.value[u.value.length-1].time),L();return}const c=s!=null&&s.multiObject?"":T.getObjectId(s,s==null?void 0:s.useAlias,r.uid),d=c&&((k=(y=o==null?void 0:o[c])==null?void 0:y[i])==null?void 0:k.data)||((_=o==null?void 0:o[i])==null?void 0:_.data)||(o==null?void 0:o.data)||o,p=(t[0]||{}).points_fv||"points",v=String((h=(O=d==null?void 0:d.time)!=null?O:d==null?void 0:d.datetime)!=null?h:Date.now()),C=b(d,t,p);C.length&&(u.value=[...u.value.slice(-49),{time:v,points:C}],m.value=v,L())};return l.watch(()=>g.channels[A()],e=>{e&&F(e)},{deep:!0}),l.watchEffect(()=>{r.conf.socketData&&S.setSocketData(r.conf.socketData)}),l.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{S.getStyle().value=S.extractStyles(),L()},{deep:!0}),l.onMounted(()=>{if(r.mode==="edit"&&!u.value.length){const e=[{elevation:1024.94,disp:0,relative_disp:-1},{elevation:994.94,disp:3,relative_disp:0},{elevation:964.94,disp:6,relative_disp:1},{elevation:934.94,disp:9,relative_disp:2},{elevation:904.94,disp:12,relative_disp:3}];u.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(n=>E(N({},n),{disp:n.disp+1}))}],m.value=u.value[0].time}!m.value&&u.value.length&&(m.value=u.value[u.value.length-1].time),L()}),(e,n)=>{const t=w.ElOption,s=w.ElSelect,i=w.ElIcon,o=w.ElButton;return l.openBlock(),l.createElementBlock("div",{class:"mix-component",style:l.normalizeStyle({background:l.unref(V).bgColor,borderRadius:`${l.unref(V).radiusSize}px`})},[l.unref(V).isHideTitle?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"mix-title",style:l.normalizeStyle(U.value)},l.toDisplayString(f.conf.caption||f.conf.name),5)),l.createElementVNode("div",r3,[l.createElementVNode("div",c3,[l.createVNode(s,{modelValue:m.value,"onUpdate:modelValue":n[0]||(n[0]=c=>m.value=c),placeholder:"选择时间",size:"small",class:"time-select",onChange:W},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(P.value,c=>(l.openBlock(),l.createBlock(t,{key:c,label:c,value:c},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l.createVNode(o,{size:"small",class:"export-btn",onClick:X},{default:l.withCtx(()=>[l.createVNode(i,null,{default:l.withCtx(()=>[l.createVNode(l.unref(e3.Download))]),_:1}),n[1]||(n[1]=l.createTextVNode(" 导出图 ",-1))]),_:1})]),l.createElementVNode("div",{class:"echart-container",id:l.unref(H)},null,8,u3)]),l.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),C3=R._export_sfc(g3,[["__scopeId","data-v-628a2d7c"]]);exports.default=C3;
@@ -18,12 +18,12 @@ import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as d3, ref as U, computed as N, watch as P, watchEffect as p3, onMounted as m3, openBlock as b, createElementBlock as A, normalizeStyle as G, unref as O, toDisplayString as h3, createCommentVNode as f3, createElementVNode as F, createVNode as V, withCtx as z, Fragment as v3, renderList as g3, createBlock as L3, createTextVNode as C3, renderSlot as S3, nextTick as W } from "vue";
20
20
  import { Download as x3 } from "@element-plus/icons-vue";
21
- import { d as X, i as y3 } from "./element-resize-detector-DJcsrJ8s.js";
22
- import { u as _3, _ as k3 } from "./index-kShjySl9.js";
23
- import { E as O3 } from "./EChartComponentBase-BQOhWkz2.js";
21
+ import { d as X, i as y3 } from "./element-resize-detector-DeMhGbNi.js";
22
+ import { u as _3, _ as k3 } from "./index-zPaMBZk-.js";
23
+ import { E as O3 } from "./EChartComponentBase-GBbKjtlb.js";
24
24
  import { g as w3 } from "./titleStyle-BT5GlpAb.js";
25
- import { i as b3 } from "./install-BBrAry2m.js";
26
- import { u as V3, i as T3, a as D3 } from "./installCanvasRenderer-CLT2hquJ.js";
25
+ import { u as b3, i as V3, a as T3 } from "./installCanvasRenderer-CLT2hquJ.js";
26
+ import { i as D3 } from "./install-BBrAry2m.js";
27
27
  import { i as E3 } from "./install-hfre7yvV.js";
28
28
  import { i as N3 } from "./install-8XfFtnlL.js";
29
29
  const A3 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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(-299.000000,%20-723.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", F3 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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(-299.000000,%20-723.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M313.60741,723.132248%20C314.376525,723.132248%20315,723.755729%20315,724.524838%20L315,724.524838%20L315,737.73953%20C315,738.508647%20314.376527,739.13212%20313.60741,739.13212%20L313.60741,739.13212%20L300.392953,739.13212%20C299.623869,739.13212%20299.000384,738.508663%20299.000363,737.739585%20L299.000363,737.739585%20L299,724.524856%20C299,723.755744%20299.623475,723.132248%20300.39259,723.132248%20L300.39259,723.132248%20Z%20M302.67,728.130248%20L300.316,728.132248%20L300.317244,737.739549%20C300.317245,737.770894%20300.336313,737.797797%20300.363485,737.80929%20L300.392953,737.815239%20L302.67,737.814248%20L302.67,728.130248%20Z%20M313.682,728.120248%20L303.987,728.129248%20L303.987,737.814248%20L313.60741,737.815239%20C313.638778,737.815239%20313.665681,737.796179%20313.677171,737.769004%20L313.683119,737.73953%20L313.683,728.944248%20L313.682972,728.929735%20L313.682,728.120248%20Z%20M310.871101,729.12887%20L310.952715,729.198297%20L312.604552,730.850134%20C312.861689,731.107271%20312.861689,731.524172%20312.604552,731.781309%20C312.373129,732.012732%20312.012296,732.035875%20311.754991,731.850736%20L311.673377,731.781309%20L311.145,731.253248%20L311.145752,734.805978%20C311.145752,735.139321%20310.898043,735.414808%20310.576658,735.458408%20L310.487311,735.464419%20L307.124,735.464248%20L307.649042,735.98918%20C307.906179,736.246317%20307.906179,736.663219%20307.649042,736.920356%20C307.417619,737.151779%20307.056787,737.174921%20306.799482,736.989783%20L306.717867,736.920356%20L305.066031,735.268519%20L305.054021,735.255814%20C305.041374,735.242301%20305.029291,735.228255%20305.017807,735.213713%20L305.066031,735.268519%20C305.034539,735.237027%20305.006903,735.203139%20304.983125,735.167441%20C304.9807,735.16179%20304.977592,735.156913%20304.974547,735.151993%20C304.832434,734.927859%20304.840126,734.636431%20304.996604,734.418958%20L305.066031,734.337344%20L306.717867,732.685507%20C306.975004,732.428371%20307.391905,732.428371%20307.649042,732.685507%20C307.880466,732.916931%20307.903608,733.277763%20307.718469,733.535068%20L307.649042,733.616683%20L307.117,734.147248%20L309.828389,734.1469%20L309.828,731.252248%20L309.300879,731.781309%20C309.043742,732.038446%20308.626841,732.038446%20308.369704,731.781309%20C308.13828,731.549886%20308.115138,731.189053%20308.300277,730.931748%20L308.369704,730.850134%20L310.02154,729.198297%20C310.252963,728.966874%20310.613796,728.943732%20310.871101,729.12887%20Z%20M313.60741,724.449129%20L300.39259,724.449129%20C300.350778,724.449129%20300.316881,724.483027%20300.316881,724.524838%20L300.316881,724.524838%20L300.316,726.815248%20L313.682,726.803248%20L313.682972,725.258988%20L313.683,725.246248%20L313.683119,724.524838%20C313.683119,724.493474%20313.664056,724.46657%20313.636882,724.455078%20L313.60741,724.449129%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", z3 = { class: "mix-body" }, I3 = { class: "toolbar" }, M3 = ["id"], $3 = {
@@ -77,7 +77,7 @@ const A3 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
77
77
  theme: { type: String, default: "light" }
78
78
  },
79
79
  setup(f) {
80
- V3([b3, T3, E3, D3, N3]);
80
+ b3([D3, V3, E3, T3, N3]);
81
81
  const a = f, v = _3(), c = U([]), m = U("");
82
82
  class q extends O3 {
83
83
  extractStyles() {
@@ -12,8 +12,8 @@ var A = (a, t, o) => t in a ? T(a, t, { enumerable: !0, configurable: !0, writab
12
12
  }, I = (a, t) => B(a, L(t));
13
13
  import { defineComponent as U, computed as C, onMounted as W, onUnmounted as H, watch as V, openBlock as G, createElementBlock as P, normalizeStyle as N, createElementVNode as d, unref as v, toDisplayString as q, renderSlot as J } from "vue";
14
14
  import "html2canvas";
15
- import { _ as K } from "./index-kShjySl9.js";
16
- import { E as Q } from "./EChartComponentBase-BQOhWkz2.js";
15
+ import { _ as K } from "./index-zPaMBZk-.js";
16
+ import { E as Q } from "./EChartComponentBase-GBbKjtlb.js";
17
17
  import { A as X, D as Y } from "./ele-lin-icon-Dax-ZiWV.js";
18
18
  const Z = { class: "panel-header" }, ee = ["id"], te = { DEFAULT_ICON: Y, ACTIVE_ICON: X, NAME_CN: "设备在线状态", NAME_EN: "Device Online Status", ORDER: 11 }, le = {
19
19
  title: { value: "设备在线状态", type: "string", label: "标题" },
@@ -1,2 +1,2 @@
1
- "use strict";var T=Object.defineProperty,j=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(i,n,o)=>n in i?T(i,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[n]=o,N=(i,n)=>{for(var o in n||(n={}))w.call(n,o)&&I(i,o,n[o]);if(x)for(var o of x(n))B.call(n,o)&&I(i,o,n[o]);return i},z=(i,n)=>j(i,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-Mh5Dw2sd.cjs"),$=require("./EChartComponentBase-BaQpBzVC.cjs"),A=require("./ele-lin-icon-Dke_1AmT.cjs"),q={class:"panel-header"},R=["id"],U={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11},W={title:{value:"设备在线状态",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:16,type:"number",label:"标题字体大小",min:12,max:24},onlineColor:{value:"#67C23A",type:"color",label:"在线颜色"},offlineColor:{value:"#C0C4CC",type:"color",label:"离线颜色"},centerFontSize:{value:32,type:"number",label:"中心数字大小",min:18,max:48},centerColor:{value:"#1a3a6b",type:"color",label:"中心数字颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},H=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],P=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:U,OPTIONS:W,DATA:H,PARAMS:P,SOURCE:G,COMMON:J,ITEMS:K},X=t.defineComponent(z(N({},Q),{__name:"deviceOnlineStatus",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(i){const n=i,o=new Map;class k extends $.EChartComponentBase{extractStyles(){var a,f,c,p,b,S,h,g,y,O,_,E;const e=(a=this.props.conf)==null?void 0:a.options,r=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"gnss",s=((c=e==null?void 0:e.customChannel)==null?void 0:c.value)||"";return{title:((p=e==null?void 0:e.title)==null?void 0:p.value)||"设备在线状态",bgColor:((b=e==null?void 0:e.bgColor)==null?void 0:b.value)||"#f5f7fa",panelBgColor:((S=e==null?void 0:e.panelBgColor)==null?void 0:S.value)||"#ffffff",textColor:((h=e==null?void 0:e.textColor)==null?void 0:h.value)||"#333333",titleFontSize:((g=e==null?void 0:e.titleFontSize)==null?void 0:g.value)||16,onlineColor:((y=e==null?void 0:e.onlineColor)==null?void 0:y.value)||"#67C23A",offlineColor:((O=e==null?void 0:e.offlineColor)==null?void 0:O.value)||"#C0C4CC",centerFontSize:((_=e==null?void 0:e.centerFontSize)==null?void 0:_.value)||32,centerColor:((E=e==null?void 0:e.centerColor)==null?void 0:E.value)||"#1a3a6b",linkChannel:r==="custom"&&s?s:r}}getChartOption(){return v(this.Style.value)}setSocketData(e){var s;if(!e)return;(((s=this.props.conf)==null?void 0:s.data)||[]).forEach(a=>{if(!a.fv)return;const f=a.object_id||a.name||"";if(!f)return;const c=this.extractDataValue(e,a.fv);if(c!=null){const p=c===1||c===!0||c==="online"||c==="1"||c==="true";o.set(f,p)}}),this.chartObj&&this.chartObj.setOption(v(this.Style.value),!0)}onLinkEvent(e){}}const u=new k(n,"deviceOnlineStatus");u.setupLifecycle();const d=u.getStyle(),D=u.getEchartId(),C=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),F=t.computed(()=>{if(C.value.length===0&&n.mode==="edit")return{online:23,offline:3,total:26};let e=0,r=0;return C.value.forEach(s=>{const a=s.object_id||s.name||"";o.get(a)===!1?r++:e++}),{online:e,offline:r,total:e+r}}),M=t.computed(()=>({backgroundColor:d.value.bgColor})),v=l=>{const{online:e,offline:r,total:s}=F.value;return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{bottom:10,itemWidth:10,itemHeight:10,itemGap:20,textStyle:{fontSize:13,color:l.textColor},formatter:a=>`${a} ${a==="在线"?e:r}`},series:[{type:"pie",radius:["50%","72%"],center:["50%","45%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${s}}
1
+ "use strict";var T=Object.defineProperty,j=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(i,n,o)=>n in i?T(i,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[n]=o,N=(i,n)=>{for(var o in n||(n={}))w.call(n,o)&&I(i,o,n[o]);if(x)for(var o of x(n))B.call(n,o)&&I(i,o,n[o]);return i},z=(i,n)=>j(i,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-EnNA0nIi.cjs"),$=require("./EChartComponentBase-BTqBoBn8.cjs"),A=require("./ele-lin-icon-Dke_1AmT.cjs"),q={class:"panel-header"},R=["id"],U={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11},W={title:{value:"设备在线状态",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:16,type:"number",label:"标题字体大小",min:12,max:24},onlineColor:{value:"#67C23A",type:"color",label:"在线颜色"},offlineColor:{value:"#C0C4CC",type:"color",label:"离线颜色"},centerFontSize:{value:32,type:"number",label:"中心数字大小",min:18,max:48},centerColor:{value:"#1a3a6b",type:"color",label:"中心数字颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},H=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],P=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:U,OPTIONS:W,DATA:H,PARAMS:P,SOURCE:G,COMMON:J,ITEMS:K},X=t.defineComponent(z(N({},Q),{__name:"deviceOnlineStatus",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(i){const n=i,o=new Map;class k extends $.EChartComponentBase{extractStyles(){var a,f,c,p,b,S,h,g,y,O,_,E;const e=(a=this.props.conf)==null?void 0:a.options,r=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"gnss",s=((c=e==null?void 0:e.customChannel)==null?void 0:c.value)||"";return{title:((p=e==null?void 0:e.title)==null?void 0:p.value)||"设备在线状态",bgColor:((b=e==null?void 0:e.bgColor)==null?void 0:b.value)||"#f5f7fa",panelBgColor:((S=e==null?void 0:e.panelBgColor)==null?void 0:S.value)||"#ffffff",textColor:((h=e==null?void 0:e.textColor)==null?void 0:h.value)||"#333333",titleFontSize:((g=e==null?void 0:e.titleFontSize)==null?void 0:g.value)||16,onlineColor:((y=e==null?void 0:e.onlineColor)==null?void 0:y.value)||"#67C23A",offlineColor:((O=e==null?void 0:e.offlineColor)==null?void 0:O.value)||"#C0C4CC",centerFontSize:((_=e==null?void 0:e.centerFontSize)==null?void 0:_.value)||32,centerColor:((E=e==null?void 0:e.centerColor)==null?void 0:E.value)||"#1a3a6b",linkChannel:r==="custom"&&s?s:r}}getChartOption(){return v(this.Style.value)}setSocketData(e){var s;if(!e)return;(((s=this.props.conf)==null?void 0:s.data)||[]).forEach(a=>{if(!a.fv)return;const f=a.object_id||a.name||"";if(!f)return;const c=this.extractDataValue(e,a.fv);if(c!=null){const p=c===1||c===!0||c==="online"||c==="1"||c==="true";o.set(f,p)}}),this.chartObj&&this.chartObj.setOption(v(this.Style.value),!0)}onLinkEvent(e){}}const u=new k(n,"deviceOnlineStatus");u.setupLifecycle();const d=u.getStyle(),D=u.getEchartId(),C=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),F=t.computed(()=>{if(C.value.length===0&&n.mode==="edit")return{online:23,offline:3,total:26};let e=0,r=0;return C.value.forEach(s=>{const a=s.object_id||s.name||"";o.get(a)===!1?r++:e++}),{online:e,offline:r,total:e+r}}),M=t.computed(()=>({backgroundColor:d.value.bgColor})),v=l=>{const{online:e,offline:r,total:s}=F.value;return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{bottom:10,itemWidth:10,itemHeight:10,itemGap:20,textStyle:{fontSize:13,color:l.textColor},formatter:a=>`${a} ${a==="在线"?e:r}`},series:[{type:"pie",radius:["50%","72%"],center:["50%","45%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${s}}
2
2
  {txt|设备总数}`,rich:{num:{fontSize:l.centerFontSize,fontWeight:"bold",color:l.centerColor,lineHeight:l.centerFontSize+10},txt:{fontSize:13,color:"#999",lineHeight:22}}},labelLine:{show:!1},itemStyle:{borderRadius:4,borderColor:"#fff",borderWidth:2},data:[{value:e,name:"在线",itemStyle:{color:l.onlineColor}},{value:r,name:"离线",itemStyle:{color:l.offlineColor}}]}]}},m=()=>{for(let e=0;e<23;e++)o.set(`dev-${e}`,!0);for(let e=23;e<26;e++)o.set(`dev-${e}`,!1);const l=u.getChartInstance();l&&l.setOption(v(d.value),!0)};return t.onMounted(()=>{u.init(),n.mode==="edit"&&m(),setTimeout(()=>{var l;return(l=u.getChartInstance())==null?void 0:l.resize()},200)}),t.onUnmounted(()=>{u.cleanup()}),t.watch(()=>n.conf,()=>{u.init(),n.mode==="edit"&&m()},{deep:!0}),(l,e)=>(t.openBlock(),t.createElementBlock("div",{class:"device-online-status",style:t.normalizeStyle(M.value)},[t.createElementVNode("div",q,[e[0]||(e[0]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",{class:"panel-title",style:t.normalizeStyle({color:t.unref(d).textColor,fontSize:t.unref(d).titleFontSize+"px"})},t.toDisplayString(t.unref(d).title),5)]),t.createElementVNode("div",{id:t.unref(D),class:"chart-container"},null,8,R),t.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),Y=V._export_sfc(X,[["__scopeId","data-v-bcc8f44d"]]);exports.default=Y;
@@ -1 +1 @@
1
- "use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var S=(u,a,s)=>a in u?x(u,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[a]=s,E=(u,a)=>{for(var s in a||(a={}))R.call(a,s)&&S(u,s,a[s]);if(b)for(var s of b(a))M.call(a,s)&&S(u,s,a[s]);return u},N=(u,a)=>A(u,O(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const y=require("./element-resize-detector-Bo5uDQAu.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),T=require("./index-Mh5Dw2sd.cjs"),I={class:"device-status-wrapper"},L={class:"panel-header"},z={class:"header-left"},F={class:"header-title"},H={class:"status-cards"},U=["onClick"],q={class:"status-label"},P={class:"device-list"},$={class:"device-icon"},G={class:"device-info"},J={class:"device-name"},K={class:"device-type"},Q={class:"device-value"},W={class:"value-text"},X={key:0,class:"no-data"},Y={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"设备运行状态",NAME_EN:"Device Status",ORDER:8},Z={title:{value:"监测设备运行状态",type:"string",label:"component.deviceStatus.title"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.deviceStatus.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.deviceStatus.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.deviceStatus.glowEffect"},normalColor:{value:"#2ecc71",type:"color",label:"component.deviceStatus.normalColor"},warnColor:{value:"#f39c12",type:"color",label:"component.deviceStatus.warnColor"},errorColor:{value:"#e74c3c",type:"color",label:"component.deviceStatus.errorColor"}},ee=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"temperature",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"pressure",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"displacement",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"vibration",object_id:"",unit:"Hz",value:.1,status:0}],te=["name","type","icon","fv","object_id","unit","status"],oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ae={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:ee,PARAMS:te,SOURCE:oe,COMMON:ae},ce=e.defineComponent(N(E({},le),{__name:"deviceStatus",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(l=>({d75d9a62:e.unref(c).bgColor,v77263a70:e.unref(c).borderColor,v5bcde2a7:e.unref(c).textColor,v537754ea:e.unref(c).accentColor,cd65bab2:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v16f8f25a:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}`:"none"}));const a=u;class s extends y.BaseComponent{extractStyles(){var o,i,r,n,C,d,_,f,m,v;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"监测设备运行状态",bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#1a2a3a",borderColor:((r=t==null?void 0:t.borderColor)==null?void 0:r.value)||"#2a4a6a",textColor:((n=t==null?void 0:t.textColor)==null?void 0:n.value)||"#ffffff",accentColor:((C=t==null?void 0:t.accentColor)==null?void 0:C.value)||"#00d4ff",glowEffect:(_=(d=t==null?void 0:t.glowEffect)==null?void 0:d.value)!=null?_:!0,normalColor:((f=t==null?void 0:t.normalColor)==null?void 0:f.value)||"#2ecc71",warnColor:((m=t==null?void 0:t.warnColor)==null?void 0:m.value)||"#f39c12",errorColor:((v=t==null?void 0:t.errorColor)==null?void 0:v.value)||"#e74c3c"}}setHistoryData(t){const{data:o,common:i}=this.props.conf;if(!o.some(d=>d.object_id&&d.fv))return;const n=i.source||"mosaic";["statistics","calculate"].includes(n)&&(t=y.formatStatisticsResult(t,o));let C=y.handleNullData(t,this.props,"history");o.forEach((d,_)=>{var f,m;if(!(!d.object_id||!d.fv))try{const v=(m=(f=C.history[_])==null?void 0:f[0])==null?void 0:m[d.fv];v!=null&&(d.value=v)}catch(v){}})}setSocketData(t){if(!t)return;const{data:o}=this.props.conf;o.some(r=>r.object_id&&r.fv)&&o.forEach(r=>{if(!r.object_id||!r.fv)return;const n=this.extractDataValue(t,r.fv);n!=null&&(r.value=n)})}}const g=new s(a,"deviceStatus");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"",object_id:"",unit:"Hz",value:.1,status:0}]),g.setupLifecycle();const c=g.getStyle(),p=e.ref(null),D=e.computed(()=>{var r;const l=((r=a.conf)==null?void 0:r.data)||[],t=l.filter(n=>n.status===0).length,o=l.filter(n=>n.status===1).length,i=l.filter(n=>n.status===2).length;return[{name:"正常",count:t,color:c.value.normalColor},{name:"警告",count:o,color:c.value.warnColor},{name:"异常",count:i,color:c.value.errorColor}]}),h=e.computed(()=>{var t;const l=((t=a.conf)==null?void 0:t.data)||[];return p.value===null?l:l.filter(o=>o.status===p.value)}),k=()=>console.log("实时更新"),w=l=>{p.value=p.value===l?null:l},B=l=>{const t=[c.value.normalColor,c.value.warnColor,c.value.errorColor];return t[l]||t[0]},j=l=>{const t=["正常","警告","异常"];return t[l]||t[0]};return(l,t)=>(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",L,[e.createElementVNode("div",z,[t[0]||(t[0]=e.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),e.createElementVNode("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),e.createElementVNode("span",F,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("button",{class:"realtime-btn",onClick:k}," 实时更新 ")]),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"status-card",style:e.normalizeStyle({borderTopColor:o.color}),onClick:r=>w(i)},[e.createElementVNode("div",{class:"status-count",style:e.normalizeStyle({color:o.color})},e.toDisplayString(o.count),5),e.createElementVNode("div",q,e.toDisplayString(o.name),1)],12,U))),128))]),e.createElementVNode("div",P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"device-item"},[e.createElementVNode("div",$,e.toDisplayString(o.icon),1),e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(o.name),1),e.createElementVNode("div",K,e.toDisplayString(o.type),1)]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,e.toDisplayString(o.value)+" "+e.toDisplayString(o.unit),1),e.createElementVNode("div",{class:"status-tag",style:e.normalizeStyle({background:B(o.status)})},e.toDisplayString(j(o.status)),5)])]))),128)),h.value.length===0?(e.openBlock(),e.createElementBlock("div",X," 暂无设备数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(l.$slots,"default",{},void 0,!0)]))}})),re=T._export_sfc(ce,[["__scopeId","data-v-732244ee"]]);exports.default=re;
1
+ "use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var S=(u,a,s)=>a in u?x(u,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[a]=s,E=(u,a)=>{for(var s in a||(a={}))R.call(a,s)&&S(u,s,a[s]);if(b)for(var s of b(a))M.call(a,s)&&S(u,s,a[s]);return u},N=(u,a)=>A(u,O(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const y=require("./element-resize-detector-BlMXyWIR.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),T=require("./index-EnNA0nIi.cjs"),I={class:"device-status-wrapper"},L={class:"panel-header"},z={class:"header-left"},F={class:"header-title"},H={class:"status-cards"},U=["onClick"],q={class:"status-label"},P={class:"device-list"},$={class:"device-icon"},G={class:"device-info"},J={class:"device-name"},K={class:"device-type"},Q={class:"device-value"},W={class:"value-text"},X={key:0,class:"no-data"},Y={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"设备运行状态",NAME_EN:"Device Status",ORDER:8},Z={title:{value:"监测设备运行状态",type:"string",label:"component.deviceStatus.title"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.deviceStatus.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.deviceStatus.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.deviceStatus.glowEffect"},normalColor:{value:"#2ecc71",type:"color",label:"component.deviceStatus.normalColor"},warnColor:{value:"#f39c12",type:"color",label:"component.deviceStatus.warnColor"},errorColor:{value:"#e74c3c",type:"color",label:"component.deviceStatus.errorColor"}},ee=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"temperature",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"pressure",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"displacement",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"vibration",object_id:"",unit:"Hz",value:.1,status:0}],te=["name","type","icon","fv","object_id","unit","status"],oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ae={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:ee,PARAMS:te,SOURCE:oe,COMMON:ae},ce=e.defineComponent(N(E({},le),{__name:"deviceStatus",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(l=>({d75d9a62:e.unref(c).bgColor,v77263a70:e.unref(c).borderColor,v5bcde2a7:e.unref(c).textColor,v537754ea:e.unref(c).accentColor,cd65bab2:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v16f8f25a:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}`:"none"}));const a=u;class s extends y.BaseComponent{extractStyles(){var o,i,r,n,C,d,_,f,m,v;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"监测设备运行状态",bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#1a2a3a",borderColor:((r=t==null?void 0:t.borderColor)==null?void 0:r.value)||"#2a4a6a",textColor:((n=t==null?void 0:t.textColor)==null?void 0:n.value)||"#ffffff",accentColor:((C=t==null?void 0:t.accentColor)==null?void 0:C.value)||"#00d4ff",glowEffect:(_=(d=t==null?void 0:t.glowEffect)==null?void 0:d.value)!=null?_:!0,normalColor:((f=t==null?void 0:t.normalColor)==null?void 0:f.value)||"#2ecc71",warnColor:((m=t==null?void 0:t.warnColor)==null?void 0:m.value)||"#f39c12",errorColor:((v=t==null?void 0:t.errorColor)==null?void 0:v.value)||"#e74c3c"}}setHistoryData(t){const{data:o,common:i}=this.props.conf;if(!o.some(d=>d.object_id&&d.fv))return;const n=i.source||"mosaic";["statistics","calculate"].includes(n)&&(t=y.formatStatisticsResult(t,o));let C=y.handleNullData(t,this.props,"history");o.forEach((d,_)=>{var f,m;if(!(!d.object_id||!d.fv))try{const v=(m=(f=C.history[_])==null?void 0:f[0])==null?void 0:m[d.fv];v!=null&&(d.value=v)}catch(v){}})}setSocketData(t){if(!t)return;const{data:o}=this.props.conf;o.some(r=>r.object_id&&r.fv)&&o.forEach(r=>{if(!r.object_id||!r.fv)return;const n=this.extractDataValue(t,r.fv);n!=null&&(r.value=n)})}}const g=new s(a,"deviceStatus");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=[{name:"温度传感器-01",type:"温度传感器",icon:"🌡",fv:"",object_id:"",unit:"°C",value:25.1,status:0},{name:"压力传感器-01",type:"压力传感器",icon:"⏱",fv:"",object_id:"",unit:"MPa",value:1.3,status:0},{name:"位移传感器-01",type:"位移传感器",icon:"↔",fv:"",object_id:"",unit:"mm",value:2.1,status:1},{name:"振动传感器-01",type:"振动传感器",icon:"〰",fv:"",object_id:"",unit:"Hz",value:.1,status:0}]),g.setupLifecycle();const c=g.getStyle(),p=e.ref(null),D=e.computed(()=>{var r;const l=((r=a.conf)==null?void 0:r.data)||[],t=l.filter(n=>n.status===0).length,o=l.filter(n=>n.status===1).length,i=l.filter(n=>n.status===2).length;return[{name:"正常",count:t,color:c.value.normalColor},{name:"警告",count:o,color:c.value.warnColor},{name:"异常",count:i,color:c.value.errorColor}]}),h=e.computed(()=>{var t;const l=((t=a.conf)==null?void 0:t.data)||[];return p.value===null?l:l.filter(o=>o.status===p.value)}),k=()=>console.log("实时更新"),w=l=>{p.value=p.value===l?null:l},B=l=>{const t=[c.value.normalColor,c.value.warnColor,c.value.errorColor];return t[l]||t[0]},j=l=>{const t=["正常","警告","异常"];return t[l]||t[0]};return(l,t)=>(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",L,[e.createElementVNode("div",z,[t[0]||(t[0]=e.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),e.createElementVNode("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),e.createElementVNode("span",F,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("button",{class:"realtime-btn",onClick:k}," 实时更新 ")]),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"status-card",style:e.normalizeStyle({borderTopColor:o.color}),onClick:r=>w(i)},[e.createElementVNode("div",{class:"status-count",style:e.normalizeStyle({color:o.color})},e.toDisplayString(o.count),5),e.createElementVNode("div",q,e.toDisplayString(o.name),1)],12,U))),128))]),e.createElementVNode("div",P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"device-item"},[e.createElementVNode("div",$,e.toDisplayString(o.icon),1),e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(o.name),1),e.createElementVNode("div",K,e.toDisplayString(o.type),1)]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,e.toDisplayString(o.value)+" "+e.toDisplayString(o.unit),1),e.createElementVNode("div",{class:"status-tag",style:e.normalizeStyle({background:B(o.status)})},e.toDisplayString(j(o.status)),5)])]))),128)),h.value.length===0?(e.openBlock(),e.createElementBlock("div",X," 暂无设备数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(l.$slots,"default",{},void 0,!0)]))}})),re=T._export_sfc(ce,[["__scopeId","data-v-732244ee"]]);exports.default=re;
@@ -12,9 +12,9 @@ var j = (u, a, n) => a in u ? L(u, a, { enumerable: !0, configurable: !0, writab
12
12
  }, k = (u, a) => T(u, U(a));
13
13
  import { defineComponent as I, useCssVars as P, unref as v, ref as $, computed as A, openBlock as C, createElementBlock as _, createElementVNode as o, toDisplayString as f, Fragment as N, renderList as O, normalizeStyle as S, createCommentVNode as q, renderSlot as G } from "vue";
14
14
  import "html2canvas";
15
- import { B as J, i as K, j as Q } from "./element-resize-detector-DJcsrJ8s.js";
15
+ import { B as J, i as K, j as Q } from "./element-resize-detector-DeMhGbNi.js";
16
16
  import { A as W, D as X } from "./ele-gag-icon-CB5dJeYF.js";
17
- import { _ as Y } from "./index-kShjySl9.js";
17
+ import { _ as Y } from "./index-zPaMBZk-.js";
18
18
  const Z = { class: "device-status-wrapper" }, tt = { class: "panel-header" }, et = { class: "header-left" }, at = { class: "header-title" }, ot = { class: "status-cards" }, lt = ["onClick"], ct = { class: "status-label" }, st = { class: "device-list" }, rt = { class: "device-icon" }, nt = { class: "device-info" }, it = { class: "device-name" }, ut = { class: "device-type" }, dt = { class: "device-value" }, vt = { class: "value-text" }, ft = {
19
19
  key: 0,
20
20
  class: "no-data"
@@ -36,8 +36,8 @@ import "element-plus/es/components/icon/style/css";
36
36
  import { defineComponent as se, useCssVars as ce, unref as C, ref as _, onMounted as re, computed as y, watch as w, openBlock as P, createElementBlock as B, createElementVNode as v, toDisplayString as S, createVNode as b, withCtx as E, createTextVNode as U, Fragment as ie, renderList as pe, createBlock as ue, renderSlot as de } from "vue";
37
37
  import { Upload as fe } from "@element-plus/icons-vue";
38
38
  import "html2canvas";
39
- import { B as me, i as ge, j as he } from "./element-resize-detector-DJcsrJ8s.js";
40
- import { u as _e, d as be, _ as ve } from "./index-kShjySl9.js";
39
+ import { B as me, i as ge, j as he } from "./element-resize-detector-DeMhGbNi.js";
40
+ import { u as _e, d as be, _ as ve } from "./index-zPaMBZk-.js";
41
41
  import { A as De, D as Ce } from "./ele-lst-icon-CKpeRKmk.js";
42
42
  const ye = { class: "displacement-data-table" }, Se = { class: "table-toolbar" }, Ee = { class: "toolbar-title" }, xe = { class: "toolbar-right" }, Te = { class: "search-info" }, Me = { class: "table-container" }, Pe = {
43
43
  DEFAULT_ICON: Ce,
@@ -1 +1 @@
1
- "use strict";var R=Object.defineProperty,$=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,H=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,X=Reflect.get;var T=(r,l,a)=>l in r?R(r,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[l]=a,V=(r,l)=>{for(var a in l||(l={}))Y.call(l,a)&&T(r,a,l[a]);if(x)for(var a of x(l))K.call(l,a)&&T(r,a,l[a]);return r},I=(r,l)=>$(r,F(l));var M=(r,l,a)=>X(H(r),a,l);var P=(r,l,a)=>new Promise((g,p)=>{var D=d=>{try{f(a.next(d))}catch(m){p(m)}},C=d=>{try{f(a.throw(d))}catch(m){p(m)}},f=d=>d.done?g(d.value):Promise.resolve(d.value).then(D,C);f((a=a.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Z=require("@element-plus/icons-vue");require("html2canvas");const S=require("./element-resize-detector-Bo5uDQAu.cjs"),E=require("./index-Mh5Dw2sd.cjs"),k=require("./ele-lst-icon-CrxnHZ-A.cjs"),W={class:"displacement-data-table"},G={class:"table-toolbar"},J={class:"toolbar-title"},Q={class:"toolbar-right"},ee={class:"search-info"},te={class:"table-container"},ae={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"位移数据表",NAME_EN:"Displacement Data Table",ORDER:16},oe={title:{value:"深部位移数据表",type:"string",label:"component.deepDisplacement.title"},pageSize:{value:10,type:"number",label:"component.options.itemsPerPage",min:5,max:100},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},headerColor:{value:"#f5f7fa",type:"color",label:"component.deepDisplacement.headerColor"}},ne=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}],le=["configPanelId","name","object_id","points_fv","fv","depth_fv"],se=["mosaic","statistics","calculate"],re={useAlias:!1,multiObject:!1,source:"mosaic"},ce={DEFAULT:ae,OPTIONS:oe,DATA:ne,PARAMS:le,SOURCE:se,COMMON:re},ie=e.defineComponent(I(V({},ce),{__name:"displacementDataTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){e.useCssVars(o=>({v5e516c27:e.unref(v).bgColor,b2b5b402:e.unref(v).textColor}));const l=E.useLinkStore(),a=r,g=e.ref(1),p=e.ref(10),D=e.ref("0.039"),C=e.ref(400),f=e.ref([]),d=e.ref([]);class m extends S.BaseComponent{extractStyles(){var n,s,i,u,_;const{options:t}=this.props.conf;return{title:((n=t==null?void 0:t.title)==null?void 0:n.value)||"深部位移数据表",pageSize:((s=t==null?void 0:t.pageSize)==null?void 0:s.value)||10,bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((u=t==null?void 0:t.textColor)==null?void 0:u.value)||"#333333",headerColor:((_=t==null?void 0:t.headerColor)==null?void 0:_.value)||"#f5f7fa"}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}]}getMockData(){var i;const t=((i=this.props.conf)==null?void 0:i.data)||this.getDefaultData(),n=[-152,-151,-150,-149,-148,-147,-146,-145,-144,-143,-142];d.value=n;const s=[];for(let u=0;u<50;u++){const c={time:E.dayjs().subtract(u,"hour").format("YYYY-MM-DD HH:mm:ss")};t.forEach(y=>{n.forEach(L=>{const U=Math.random()*5;c[`${y.name}_${Math.abs(L)}`]=U+Math.random()})}),s.push(c)}return s}onPreview(){return P(this,null,function*(){const{data:t}=this.props.conf;t.some(s=>s.object_id&&s.fv)?(console.log("[DisplacementDataTable] 检测到数据绑定,订阅真实数据"),yield M(m.prototype,this,"onPreview").call(this)):(console.log("[DisplacementDataTable] 未配置数据源,使用模拟数据"),f.value=this.getMockData())})}setHistoryData(t){const{data:n,common:s}=this.props.conf;if(!n||n.length===0||!n.some(c=>c.object_id&&c.fv))return;const u=(s==null?void 0:s.source)||"mosaic";["statistics","calculate"].includes(u)&&(t=S.formatStatisticsResult(t,n)),S.handleNullData(t,this.props,"history")}setSocketData(t){console.log("[DisplacementDataTable] 收到实时数据")}}const h=new m(a,"displacementDataTable");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=h.getDefaultData()),h.setupLifecycle();const v=h.getStyle();e.onMounted(()=>{p.value=v.value.pageSize,f.value=h.getMockData()});const z=e.computed(()=>{var t,n;return((n=(((t=a.conf)==null?void 0:t.data)||[])[0])==null?void 0:n.configPanelId)||""});e.watch(()=>l.channels.deepDisplacement,o=>{if(!o||o.topic.source==="displacementDataTable")return;const t=z.value;if(!t)return;const{payload:n}=o;n.objectId===t&&n.type==="config"&&console.log("[DataTable] 收到配置:",n.fv)},{deep:!0});const w=e.computed(()=>{var n;const o=((n=a.conf)==null?void 0:n.data)||h.getDefaultData(),t=[];return o.forEach(s=>{d.value.forEach(i=>{t.push({prop:`${s.name}_${Math.abs(i)}`,label:`${s.name} (${i}m)`})})}),t}),O=e.computed(()=>{const o=(g.value-1)*p.value,t=o+p.value;return f.value.slice(o,t)}),N=e.computed(()=>f.value.length),q=o=>o==null?"-":typeof o=="number"?o.toFixed(3):o,A=o=>{g.value=o},B=o=>{p.value=o,g.value=1},j=()=>{console.log("导出表格")};return e.watch(()=>{var o;return(o=a.conf)==null?void 0:o.data},()=>{f.value=h.getMockData()},{deep:!0}),(o,t)=>{const n=b.ElIcon,s=b.ElButton,i=b.ElPagination,u=b.ElTableColumn,_=b.ElTable;return e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(e.unref(v).title),1),e.createVNode(s,{size:"small",onClick:j},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Z.Upload))]),_:1}),t[2]||(t[2]=e.createTextVNode(" 导出表 ",-1))]),_:1}),e.createElementVNode("div",Q,[e.createElementVNode("span",ee,"搜索耗时 "+e.toDisplayString(D.value)+"秒 总共 "+e.toDisplayString(N.value)+" 条数据",1),e.createVNode(i,{"current-page":g.value,"onUpdate:currentPage":t[0]||(t[0]=c=>g.value=c),"page-size":p.value,"onUpdate:pageSize":t[1]||(t[1]=c=>p.value=c),"page-sizes":[10,20,50,100],total:N.value,layout:"prev, pager, next, sizes",small:"",onSizeChange:B,onCurrentChange:A},null,8,["current-page","page-size","total"])])]),e.createElementVNode("div",te,[e.createVNode(_,{data:O.value,height:C.value,border:"",stripe:"",size:"small","header-cell-style":{background:"#f5f7fa",color:"#333",fontWeight:600}},{default:e.withCtx(()=>[e.createVNode(u,{prop:"time",label:"采集时间",width:"160",fixed:"left"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,c=>(e.openBlock(),e.createBlock(u,{key:c.prop,prop:c.prop,label:c.label,width:"100",align:"right"},{default:e.withCtx(({row:y})=>[e.createTextVNode(e.toDisplayString(q(y[c.prop])),1)]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data","height"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)])}}})),ue=E._export_sfc(ie,[["__scopeId","data-v-71109cab"]]);exports.default=ue;
1
+ "use strict";var R=Object.defineProperty,$=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,H=Object.getPrototypeOf,Y=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,X=Reflect.get;var T=(r,l,a)=>l in r?R(r,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[l]=a,V=(r,l)=>{for(var a in l||(l={}))Y.call(l,a)&&T(r,a,l[a]);if(x)for(var a of x(l))K.call(l,a)&&T(r,a,l[a]);return r},I=(r,l)=>$(r,F(l));var M=(r,l,a)=>X(H(r),a,l);var P=(r,l,a)=>new Promise((g,p)=>{var D=d=>{try{f(a.next(d))}catch(m){p(m)}},C=d=>{try{f(a.throw(d))}catch(m){p(m)}},f=d=>d.done?g(d.value):Promise.resolve(d.value).then(D,C);f((a=a.apply(r,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Z=require("@element-plus/icons-vue");require("html2canvas");const S=require("./element-resize-detector-BlMXyWIR.cjs"),E=require("./index-EnNA0nIi.cjs"),k=require("./ele-lst-icon-CrxnHZ-A.cjs"),W={class:"displacement-data-table"},G={class:"table-toolbar"},J={class:"toolbar-title"},Q={class:"toolbar-right"},ee={class:"search-info"},te={class:"table-container"},ae={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"位移数据表",NAME_EN:"Displacement Data Table",ORDER:16},oe={title:{value:"深部位移数据表",type:"string",label:"component.deepDisplacement.title"},pageSize:{value:10,type:"number",label:"component.options.itemsPerPage",min:5,max:100},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},headerColor:{value:"#f5f7fa",type:"color",label:"component.deepDisplacement.headerColor"}},ne=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}],le=["configPanelId","name","object_id","points_fv","fv","depth_fv"],se=["mosaic","statistics","calculate"],re={useAlias:!1,multiObject:!1,source:"mosaic"},ce={DEFAULT:ae,OPTIONS:oe,DATA:ne,PARAMS:le,SOURCE:se,COMMON:re},ie=e.defineComponent(I(V({},ce),{__name:"displacementDataTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){e.useCssVars(o=>({v5e516c27:e.unref(v).bgColor,b2b5b402:e.unref(v).textColor}));const l=E.useLinkStore(),a=r,g=e.ref(1),p=e.ref(10),D=e.ref("0.039"),C=e.ref(400),f=e.ref([]),d=e.ref([]);class m extends S.BaseComponent{extractStyles(){var n,s,i,u,_;const{options:t}=this.props.conf;return{title:((n=t==null?void 0:t.title)==null?void 0:n.value)||"深部位移数据表",pageSize:((s=t==null?void 0:t.pageSize)==null?void 0:s.value)||10,bgColor:((i=t==null?void 0:t.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((u=t==null?void 0:t.textColor)==null?void 0:u.value)||"#333333",headerColor:((_=t==null?void 0:t.headerColor)==null?void 0:_.value)||"#f5f7fa"}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth"}]}getMockData(){var i;const t=((i=this.props.conf)==null?void 0:i.data)||this.getDefaultData(),n=[-152,-151,-150,-149,-148,-147,-146,-145,-144,-143,-142];d.value=n;const s=[];for(let u=0;u<50;u++){const c={time:E.dayjs().subtract(u,"hour").format("YYYY-MM-DD HH:mm:ss")};t.forEach(y=>{n.forEach(L=>{const U=Math.random()*5;c[`${y.name}_${Math.abs(L)}`]=U+Math.random()})}),s.push(c)}return s}onPreview(){return P(this,null,function*(){const{data:t}=this.props.conf;t.some(s=>s.object_id&&s.fv)?(console.log("[DisplacementDataTable] 检测到数据绑定,订阅真实数据"),yield M(m.prototype,this,"onPreview").call(this)):(console.log("[DisplacementDataTable] 未配置数据源,使用模拟数据"),f.value=this.getMockData())})}setHistoryData(t){const{data:n,common:s}=this.props.conf;if(!n||n.length===0||!n.some(c=>c.object_id&&c.fv))return;const u=(s==null?void 0:s.source)||"mosaic";["statistics","calculate"].includes(u)&&(t=S.formatStatisticsResult(t,n)),S.handleNullData(t,this.props,"history")}setSocketData(t){console.log("[DisplacementDataTable] 收到实时数据")}}const h=new m(a,"displacementDataTable");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=h.getDefaultData()),h.setupLifecycle();const v=h.getStyle();e.onMounted(()=>{p.value=v.value.pageSize,f.value=h.getMockData()});const z=e.computed(()=>{var t,n;return((n=(((t=a.conf)==null?void 0:t.data)||[])[0])==null?void 0:n.configPanelId)||""});e.watch(()=>l.channels.deepDisplacement,o=>{if(!o||o.topic.source==="displacementDataTable")return;const t=z.value;if(!t)return;const{payload:n}=o;n.objectId===t&&n.type==="config"&&console.log("[DataTable] 收到配置:",n.fv)},{deep:!0});const w=e.computed(()=>{var n;const o=((n=a.conf)==null?void 0:n.data)||h.getDefaultData(),t=[];return o.forEach(s=>{d.value.forEach(i=>{t.push({prop:`${s.name}_${Math.abs(i)}`,label:`${s.name} (${i}m)`})})}),t}),O=e.computed(()=>{const o=(g.value-1)*p.value,t=o+p.value;return f.value.slice(o,t)}),N=e.computed(()=>f.value.length),q=o=>o==null?"-":typeof o=="number"?o.toFixed(3):o,A=o=>{g.value=o},B=o=>{p.value=o,g.value=1},j=()=>{console.log("导出表格")};return e.watch(()=>{var o;return(o=a.conf)==null?void 0:o.data},()=>{f.value=h.getMockData()},{deep:!0}),(o,t)=>{const n=b.ElIcon,s=b.ElButton,i=b.ElPagination,u=b.ElTableColumn,_=b.ElTable;return e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",G,[e.createElementVNode("div",J,e.toDisplayString(e.unref(v).title),1),e.createVNode(s,{size:"small",onClick:j},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Z.Upload))]),_:1}),t[2]||(t[2]=e.createTextVNode(" 导出表 ",-1))]),_:1}),e.createElementVNode("div",Q,[e.createElementVNode("span",ee,"搜索耗时 "+e.toDisplayString(D.value)+"秒 总共 "+e.toDisplayString(N.value)+" 条数据",1),e.createVNode(i,{"current-page":g.value,"onUpdate:currentPage":t[0]||(t[0]=c=>g.value=c),"page-size":p.value,"onUpdate:pageSize":t[1]||(t[1]=c=>p.value=c),"page-sizes":[10,20,50,100],total:N.value,layout:"prev, pager, next, sizes",small:"",onSizeChange:B,onCurrentChange:A},null,8,["current-page","page-size","total"])])]),e.createElementVNode("div",te,[e.createVNode(_,{data:O.value,height:C.value,border:"",stripe:"",size:"small","header-cell-style":{background:"#f5f7fa",color:"#333",fontWeight:600}},{default:e.withCtx(()=>[e.createVNode(u,{prop:"time",label:"采集时间",width:"160",fixed:"left"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,c=>(e.openBlock(),e.createBlock(u,{key:c.prop,prop:c.prop,label:c.label,width:"100",align:"right"},{default:e.withCtx(({row:y})=>[e.createTextVNode(e.toDisplayString(q(y[c.prop])),1)]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data","height"])]),e.renderSlot(o.$slots,"default",{},void 0,!0)])}}})),ue=E._export_sfc(ie,[["__scopeId","data-v-71109cab"]]);exports.default=ue;
@@ -1,4 +1,4 @@
1
- "use strict";var te=Object.defineProperty,ae=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var L=(g,u,p)=>u in g?te(g,u,{enumerable:!0,configurable:!0,writable:!0,value:p}):g[u]=p,B=(g,u)=>{for(var p in u||(u={}))oe.call(u,p)&&L(g,p,u[p]);if(z)for(var p of z(u))ie.call(u,p)&&L(g,p,u[p]);return g},q=(g,u)=>ae(g,ne(u));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=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/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const i=require("vue"),le=require("@element-plus/icons-vue"),M=require("./element-resize-detector-Bo5uDQAu.cjs"),x=require("./index-Mh5Dw2sd.cjs"),re=require("./EChartComponentBase-BaQpBzVC.cjs"),se=require("./titleStyle-NSnz6cUg.cjs"),F=require("./ele-lin-icon-Dke_1AmT.cjs"),ce={class:"mix-body"},de={class:"toolbar"},ue=["id"],me={DEFAULT_ICON:F.DEFAULT_ICON,ACTIVE_ICON:F.ACTIVE_ICON,NAME_CN:"地层运移轨迹图",NAME_EN:"Displacement Trajectory Chart",ORDER:2},he={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,startPointRadius:{value:0,type:"number",label:"开始点半径(mm)"},startPointAngle:{value:0,type:"number",label:"开始点角度(°)"},showStartPoint:{value:!0,type:"boolean",label:"显示开始点"},endPointRadius:{value:0,type:"number",label:"结束点半径(mm)"},endPointAngle:{value:0,type:"number",label:"结束点角度(°)"},showEndPoint:{value:!0,type:"boolean",label:"显示结束点"},showTrajectory:{value:!0,type:"boolean",label:"显示轨迹线"},showDirection:{value:!1,type:"boolean",label:"显示方向箭头"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},fe=[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}],pe=["configPanelId","name","fv_radius","fv_angle","depth","object_id","color"],ye=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ve={useAlias:!1,multiObject:!0,source:"mosaic"},ge={DEFAULT:me,OPTIONS:he,DATA:fe,PARAMS:pe,SOURCE:ye,COMMON:ve},be=i.defineComponent(q(B({},ge),{__name:"displacementTrajectoryChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(g){const u=g,p=i.ref(""),S=i.ref([]),H=a=>{if(a==null||a==="")return null;if(typeof a=="number"||typeof a=="string"&&a.trim()!==""&&!Number.isNaN(Number(a))){let l=Number(a);return l<1e12&&(l*=1e3),x.dayjs(l)}const t=x.dayjs(a);return t.isValid()?t:null},P=a=>{const e=H(a);return e?{label:e.format("YYYY-MM-DD HH:mm:ss"),date:e.format("YYYY-MM-DD"),value:e.valueOf()}:{label:a?String(a):"",date:"",value:0}};class U extends re.EChartComponentBase{constructor(){super(...arguments),this.trajectoryData=[],this.panelConfig={}}addTrajectoryPoint(e,t,l,n){const r=P(t),s=e.depth,h=Number(n)*Math.PI/180,m=Number(l)*Math.cos(h),y=Number(l)*Math.sin(h);this.trajectoryData.push({seriesName:e.name||`${s}m`,color:e.color||"#5470c6",timeLabel:r.label||String(t!=null?t:""),timeValue:r.value,date:r.date,depth:s,dispX:m,dispY:y,radius:Number(l),angle:h})}extractStyles(){var t,l,n,r,s,h,m,y,d,f,D,c,o,b;const{options:e}=this.props.conf;return{bgColor:((t=e==null?void 0:e.bgColor)==null?void 0:t.value)||"#fff",titleColor:((l=e==null?void 0:e.titleColor)==null?void 0:l.value)||"#111",textColor:((n=e==null?void 0:e.textColor)==null?void 0:n.value)||"#111",radiusSize:((r=e==null?void 0:e.radiusSize)==null?void 0:r.value)||8,textSize:((s=e==null?void 0:e.textSize)==null?void 0:s.value)||12,isHideTitle:((h=e==null?void 0:e.isHideTitle)==null?void 0:h.value)||!1,startPointRadius:((m=e==null?void 0:e.startPointRadius)==null?void 0:m.value)||0,startPointAngle:((y=e==null?void 0:e.startPointAngle)==null?void 0:y.value)||0,showStartPoint:((d=e==null?void 0:e.showStartPoint)==null?void 0:d.value)!==!1,endPointRadius:((f=e==null?void 0:e.endPointRadius)==null?void 0:f.value)||0,endPointAngle:((D=e==null?void 0:e.endPointAngle)==null?void 0:D.value)||0,showEndPoint:((c=e==null?void 0:e.showEndPoint)==null?void 0:c.value)!==!1,showTrajectory:((o=e==null?void 0:e.showTrajectory)==null?void 0:o.value)!==!1,showDirection:((b=e==null?void 0:e.showDirection)==null?void 0:b.value)||!1}}getDefaultData(){return[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}]}setPanelConfig(e){console.log("[TrajectoryChart] 应用控制面板配置:",e),this.panelConfig=e||{},this.updateChart()}setHistoryData(e){const{data:t,common:l}=this.props.conf;if(!t||t.length===0)return;const n=(l==null?void 0:l.source)||"mosaic";["statistics","calculate"].includes(n)&&(e=M.formatStatisticsResult(e,t));const r=M.handleNullData(e,this.props,"history");if(r)try{if(this.trajectoryData=[],!r.history||r.history.length===0)return;const s=r.history.length>0&&Array.isArray(r.history[0]),h=[...new Set(t.map(m=>m.object_id).filter(Boolean))];if(s){const m=r.history[0]||[];if(m.length===0)return;const y=[...new Set(m.map(c=>P(c.time||c.timestamp).date).filter(Boolean))];S.value=y.sort((c,o)=>new Date(o).getTime()-new Date(c).getTime());const{selectedTimes:d,startDate:f,endDate:D}=this.panelConfig;m.forEach((c,o)=>{const v=P(c.time||c.timestamp).date;if(d&&d.length>0){if(!d.includes(v))return}else if(f&&D&&(v<f||v>D))return;t.forEach(j=>{const E=j.fv_radius,_=j.fv_angle,w=j.object_id,k=h.indexOf(w);if(k===-1||!r.history[k])return;const V=r.history[k];if(!V[o])return;const $=V[o],N=this.extractDataValue($,E),A=this.extractDataValue($,_);N==null||A===void 0||A===null||this.addTrajectoryPoint(j,c.time||c.timestamp,N,A)})})}else{const m=r.history;if(m.length===0)return;const y=[...new Set(m.map(c=>P(c.time||c.timestamp).date).filter(Boolean))];S.value=y.sort((c,o)=>new Date(o).getTime()-new Date(c).getTime());const{selectedTimes:d,startDate:f,endDate:D}=this.panelConfig;m.forEach(c=>{const b=P(c.time||c.timestamp).date;if(d&&d.length>0){if(!d.includes(b))return}else if(f&&D&&(b<f||b>D))return;t.forEach(v=>{const j=v.fv_radius,E=v.fv_angle,_=this.extractDataValue(c,j),w=this.extractDataValue(c,E);_==null||w===void 0||w===null||this.addTrajectoryPoint(v,c.time||c.timestamp,_,w)})})}this.trajectoryData.sort((m,y)=>m.timeValue-y.timeValue)}catch(s){console.error("[TrajectoryChart] 解析历史数据失败:",s)}}setSocketData(e){var n,r,s;if(!e)return;const{data:t}=this.props.conf;if(!t||t.length===0)return;const l=(s=(r=(n=e.time)!=null?n:e.timestamp)!=null?r:e.datetime)!=null?s:x.dayjs().format("YYYY-MM-DD HH:mm:ss");t.forEach(h=>{const m=h.fv_radius,y=h.fv_angle,d=this.extractDataValue(e,m),f=this.extractDataValue(e,y);d==null||f===void 0||f===null||this.addTrajectoryPoint(h,l,d,f)}),this.trajectoryData.length>500&&this.trajectoryData.shift(),this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)}getChartOption(){const e=this.extractStyles(),t=this.trajectoryData;let l=e.showStartPoint,n=e.showEndPoint,r=e.showTrajectory;e.showDirection;let s=e.startPointRadius,h=e.startPointAngle,m=e.endPointRadius,y=e.endPointAngle;if(this.panelConfig.displayOptions){const o=this.panelConfig.displayOptions;o.showStartPoint!==void 0&&(l=o.showStartPoint),o.showEndPoint!==void 0&&(n=o.showEndPoint),o.showTrajectory!==void 0&&(r=o.showTrajectory),o.showDirection!==void 0&&o.showDirection}const d=[...t].sort((o,b)=>new Date(o.time).getTime()-new Date(b.time).getTime());let f=Math.max(...d.map(o=>o.radius),50);f=Math.max(f,s,m);const D=Math.ceil(f/10)*10+10,c=[];if(d.length>0&&c.push({name:"轨迹点",type:"scatter",coordinateSystem:"polar",data:d.map(o=>[o.angle,o.radius]),symbol:"circle",symbolSize:8,itemStyle:{color:"#ff9800",borderColor:"#fff",borderWidth:1}}),l){const o=h*Math.PI/180;c.push({name:"开始点",type:"scatter",coordinateSystem:"polar",data:[[o,s]],symbol:"circle",symbolSize:12,itemStyle:{color:"#67c23a",borderColor:"#fff",borderWidth:2},z:10})}if(n){const o=y*Math.PI/180;c.push({name:"结束点",type:"scatter",coordinateSystem:"polar",data:[[o,m]],symbol:"circle",symbolSize:12,itemStyle:{color:"#f56c6c",borderColor:"#fff",borderWidth:2},z:10})}return r&&d.length>1&&c.push({name:"轨迹线",type:"line",coordinateSystem:"polar",data:d.map(o=>[o.angle,o.radius]),lineStyle:{color:"#ff9800",width:1,opacity:.3},symbol:"none",z:1}),{backgroundColor:"transparent",polar:{center:["50%","50%"],radius:"70%"},angleAxis:{type:"value",startAngle:90,min:0,max:360,interval:30,clockwise:!1,axisLine:{show:!0,lineStyle:{color:"#ddd"}},axisLabel:{color:e.textColor,fontSize:11,formatter:o=>o===0||o===360?"东":o===90?"北":o===180?"西":o===270?"南":o.toString()},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}}},radiusAxis:{type:"value",min:0,max:D,axisLabel:{color:e.textColor,fontSize:11,formatter:o=>`${o}mm`},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}},axisLine:{show:!0,lineStyle:{color:"#ddd"}}},series:c,tooltip:{trigger:"item",formatter:o=>{if(o.seriesName==="开始点")return`<div style="padding: 8px;">
1
+ "use strict";var te=Object.defineProperty,ae=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var L=(g,u,p)=>u in g?te(g,u,{enumerable:!0,configurable:!0,writable:!0,value:p}):g[u]=p,B=(g,u)=>{for(var p in u||(u={}))oe.call(u,p)&&L(g,p,u[p]);if(z)for(var p of z(u))ie.call(u,p)&&L(g,p,u[p]);return g},q=(g,u)=>ae(g,ne(u));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=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/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const i=require("vue"),le=require("@element-plus/icons-vue"),M=require("./element-resize-detector-BlMXyWIR.cjs"),x=require("./index-EnNA0nIi.cjs"),re=require("./EChartComponentBase-BTqBoBn8.cjs"),se=require("./titleStyle-NSnz6cUg.cjs"),F=require("./ele-lin-icon-Dke_1AmT.cjs"),ce={class:"mix-body"},de={class:"toolbar"},ue=["id"],me={DEFAULT_ICON:F.DEFAULT_ICON,ACTIVE_ICON:F.ACTIVE_ICON,NAME_CN:"地层运移轨迹图",NAME_EN:"Displacement Trajectory Chart",ORDER:2},he={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,startPointRadius:{value:0,type:"number",label:"开始点半径(mm)"},startPointAngle:{value:0,type:"number",label:"开始点角度(°)"},showStartPoint:{value:!0,type:"boolean",label:"显示开始点"},endPointRadius:{value:0,type:"number",label:"结束点半径(mm)"},endPointAngle:{value:0,type:"number",label:"结束点角度(°)"},showEndPoint:{value:!0,type:"boolean",label:"显示结束点"},showTrajectory:{value:!0,type:"boolean",label:"显示轨迹线"},showDirection:{value:!1,type:"boolean",label:"显示方向箭头"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},fe=[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}],pe=["configPanelId","name","fv_radius","fv_angle","depth","object_id","color"],ye=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ve={useAlias:!1,multiObject:!0,source:"mosaic"},ge={DEFAULT:me,OPTIONS:he,DATA:fe,PARAMS:pe,SOURCE:ye,COMMON:ve},be=i.defineComponent(q(B({},ge),{__name:"displacementTrajectoryChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(g){const u=g,p=i.ref(""),S=i.ref([]),H=a=>{if(a==null||a==="")return null;if(typeof a=="number"||typeof a=="string"&&a.trim()!==""&&!Number.isNaN(Number(a))){let l=Number(a);return l<1e12&&(l*=1e3),x.dayjs(l)}const t=x.dayjs(a);return t.isValid()?t:null},P=a=>{const e=H(a);return e?{label:e.format("YYYY-MM-DD HH:mm:ss"),date:e.format("YYYY-MM-DD"),value:e.valueOf()}:{label:a?String(a):"",date:"",value:0}};class U extends re.EChartComponentBase{constructor(){super(...arguments),this.trajectoryData=[],this.panelConfig={}}addTrajectoryPoint(e,t,l,n){const r=P(t),s=e.depth,h=Number(n)*Math.PI/180,m=Number(l)*Math.cos(h),y=Number(l)*Math.sin(h);this.trajectoryData.push({seriesName:e.name||`${s}m`,color:e.color||"#5470c6",timeLabel:r.label||String(t!=null?t:""),timeValue:r.value,date:r.date,depth:s,dispX:m,dispY:y,radius:Number(l),angle:h})}extractStyles(){var t,l,n,r,s,h,m,y,d,f,D,c,o,b;const{options:e}=this.props.conf;return{bgColor:((t=e==null?void 0:e.bgColor)==null?void 0:t.value)||"#fff",titleColor:((l=e==null?void 0:e.titleColor)==null?void 0:l.value)||"#111",textColor:((n=e==null?void 0:e.textColor)==null?void 0:n.value)||"#111",radiusSize:((r=e==null?void 0:e.radiusSize)==null?void 0:r.value)||8,textSize:((s=e==null?void 0:e.textSize)==null?void 0:s.value)||12,isHideTitle:((h=e==null?void 0:e.isHideTitle)==null?void 0:h.value)||!1,startPointRadius:((m=e==null?void 0:e.startPointRadius)==null?void 0:m.value)||0,startPointAngle:((y=e==null?void 0:e.startPointAngle)==null?void 0:y.value)||0,showStartPoint:((d=e==null?void 0:e.showStartPoint)==null?void 0:d.value)!==!1,endPointRadius:((f=e==null?void 0:e.endPointRadius)==null?void 0:f.value)||0,endPointAngle:((D=e==null?void 0:e.endPointAngle)==null?void 0:D.value)||0,showEndPoint:((c=e==null?void 0:e.showEndPoint)==null?void 0:c.value)!==!1,showTrajectory:((o=e==null?void 0:e.showTrajectory)==null?void 0:o.value)!==!1,showDirection:((b=e==null?void 0:e.showDirection)==null?void 0:b.value)||!1}}getDefaultData(){return[{configPanelId:"",name:"-123米",fv_radius:"合结果",fv_angle:"距移方向",depth:-123,object_id:"",color:"#5470c6"},{configPanelId:"",name:"-124米",fv_radius:"合结果",fv_angle:"距移方向",depth:-124,object_id:"",color:"#91cc75"}]}setPanelConfig(e){console.log("[TrajectoryChart] 应用控制面板配置:",e),this.panelConfig=e||{},this.updateChart()}setHistoryData(e){const{data:t,common:l}=this.props.conf;if(!t||t.length===0)return;const n=(l==null?void 0:l.source)||"mosaic";["statistics","calculate"].includes(n)&&(e=M.formatStatisticsResult(e,t));const r=M.handleNullData(e,this.props,"history");if(r)try{if(this.trajectoryData=[],!r.history||r.history.length===0)return;const s=r.history.length>0&&Array.isArray(r.history[0]),h=[...new Set(t.map(m=>m.object_id).filter(Boolean))];if(s){const m=r.history[0]||[];if(m.length===0)return;const y=[...new Set(m.map(c=>P(c.time||c.timestamp).date).filter(Boolean))];S.value=y.sort((c,o)=>new Date(o).getTime()-new Date(c).getTime());const{selectedTimes:d,startDate:f,endDate:D}=this.panelConfig;m.forEach((c,o)=>{const v=P(c.time||c.timestamp).date;if(d&&d.length>0){if(!d.includes(v))return}else if(f&&D&&(v<f||v>D))return;t.forEach(j=>{const E=j.fv_radius,_=j.fv_angle,w=j.object_id,k=h.indexOf(w);if(k===-1||!r.history[k])return;const V=r.history[k];if(!V[o])return;const $=V[o],N=this.extractDataValue($,E),A=this.extractDataValue($,_);N==null||A===void 0||A===null||this.addTrajectoryPoint(j,c.time||c.timestamp,N,A)})})}else{const m=r.history;if(m.length===0)return;const y=[...new Set(m.map(c=>P(c.time||c.timestamp).date).filter(Boolean))];S.value=y.sort((c,o)=>new Date(o).getTime()-new Date(c).getTime());const{selectedTimes:d,startDate:f,endDate:D}=this.panelConfig;m.forEach(c=>{const b=P(c.time||c.timestamp).date;if(d&&d.length>0){if(!d.includes(b))return}else if(f&&D&&(b<f||b>D))return;t.forEach(v=>{const j=v.fv_radius,E=v.fv_angle,_=this.extractDataValue(c,j),w=this.extractDataValue(c,E);_==null||w===void 0||w===null||this.addTrajectoryPoint(v,c.time||c.timestamp,_,w)})})}this.trajectoryData.sort((m,y)=>m.timeValue-y.timeValue)}catch(s){console.error("[TrajectoryChart] 解析历史数据失败:",s)}}setSocketData(e){var n,r,s;if(!e)return;const{data:t}=this.props.conf;if(!t||t.length===0)return;const l=(s=(r=(n=e.time)!=null?n:e.timestamp)!=null?r:e.datetime)!=null?s:x.dayjs().format("YYYY-MM-DD HH:mm:ss");t.forEach(h=>{const m=h.fv_radius,y=h.fv_angle,d=this.extractDataValue(e,m),f=this.extractDataValue(e,y);d==null||f===void 0||f===null||this.addTrajectoryPoint(h,l,d,f)}),this.trajectoryData.length>500&&this.trajectoryData.shift(),this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)}getChartOption(){const e=this.extractStyles(),t=this.trajectoryData;let l=e.showStartPoint,n=e.showEndPoint,r=e.showTrajectory;e.showDirection;let s=e.startPointRadius,h=e.startPointAngle,m=e.endPointRadius,y=e.endPointAngle;if(this.panelConfig.displayOptions){const o=this.panelConfig.displayOptions;o.showStartPoint!==void 0&&(l=o.showStartPoint),o.showEndPoint!==void 0&&(n=o.showEndPoint),o.showTrajectory!==void 0&&(r=o.showTrajectory),o.showDirection!==void 0&&o.showDirection}const d=[...t].sort((o,b)=>new Date(o.time).getTime()-new Date(b.time).getTime());let f=Math.max(...d.map(o=>o.radius),50);f=Math.max(f,s,m);const D=Math.ceil(f/10)*10+10,c=[];if(d.length>0&&c.push({name:"轨迹点",type:"scatter",coordinateSystem:"polar",data:d.map(o=>[o.angle,o.radius]),symbol:"circle",symbolSize:8,itemStyle:{color:"#ff9800",borderColor:"#fff",borderWidth:1}}),l){const o=h*Math.PI/180;c.push({name:"开始点",type:"scatter",coordinateSystem:"polar",data:[[o,s]],symbol:"circle",symbolSize:12,itemStyle:{color:"#67c23a",borderColor:"#fff",borderWidth:2},z:10})}if(n){const o=y*Math.PI/180;c.push({name:"结束点",type:"scatter",coordinateSystem:"polar",data:[[o,m]],symbol:"circle",symbolSize:12,itemStyle:{color:"#f56c6c",borderColor:"#fff",borderWidth:2},z:10})}return r&&d.length>1&&c.push({name:"轨迹线",type:"line",coordinateSystem:"polar",data:d.map(o=>[o.angle,o.radius]),lineStyle:{color:"#ff9800",width:1,opacity:.3},symbol:"none",z:1}),{backgroundColor:"transparent",polar:{center:["50%","50%"],radius:"70%"},angleAxis:{type:"value",startAngle:90,min:0,max:360,interval:30,clockwise:!1,axisLine:{show:!0,lineStyle:{color:"#ddd"}},axisLabel:{color:e.textColor,fontSize:11,formatter:o=>o===0||o===360?"东":o===90?"北":o===180?"西":o===270?"南":o.toString()},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}}},radiusAxis:{type:"value",min:0,max:D,axisLabel:{color:e.textColor,fontSize:11,formatter:o=>`${o}mm`},splitLine:{show:!0,lineStyle:{color:"#e0e0e0",type:"dashed"}},axisLine:{show:!0,lineStyle:{color:"#ddd"}}},series:c,tooltip:{trigger:"item",formatter:o=>{if(o.seriesName==="开始点")return`<div style="padding: 8px;">
2
2
  <div style="font-weight: 600; margin-bottom: 6px;">开始点(参考)</div>
3
3
  <div style="color: #666; line-height: 1.8;">
4
4
  <div>半径: ${s.toFixed(2)}mm</div>
@@ -18,9 +18,9 @@ import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as vt, ref as Y, computed as I, watch as G, nextTick as J, onMounted as gt, onUnmounted as bt, openBlock as T, createElementBlock as $, normalizeStyle as K, unref as _, toDisplayString as Ct, createCommentVNode as Dt, createElementVNode as z, createVNode as O, withCtx as L, Fragment as jt, renderList as xt, createBlock as St, createTextVNode as Pt, renderSlot as _t } from "vue";
20
20
  import { Download as wt } from "@element-plus/icons-vue";
21
- import { i as It, j as Tt, d as Ot } from "./element-resize-detector-DJcsrJ8s.js";
22
- import { u as Et, d as w, _ as At } from "./index-kShjySl9.js";
23
- import { E as Mt } from "./EChartComponentBase-BQOhWkz2.js";
21
+ import { i as It, j as Tt, d as Ot } from "./element-resize-detector-DeMhGbNi.js";
22
+ import { u as Et, d as w, _ as At } from "./index-zPaMBZk-.js";
23
+ import { E as Mt } from "./EChartComponentBase-GBbKjtlb.js";
24
24
  import { g as Rt } from "./titleStyle-BT5GlpAb.js";
25
25
  import { A as kt, D as Nt } from "./ele-lin-icon-Dax-ZiWV.js";
26
26
  const Yt = { class: "mix-body" }, $t = { class: "toolbar" }, zt = ["id"], Lt = {
@@ -1,4 +1,4 @@
1
- "use strict";var ae=Object.defineProperty,oe=Object.defineProperties;var se=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols,ie=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,re=Reflect.get;var K=(p,l,s)=>l in p?ae(p,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):p[l]=s,G=(p,l)=>{for(var s in l||(l={}))le.call(l,s)&&K(p,s,l[s]);if(U)for(var s of U(l))ce.call(l,s)&&K(p,s,l[s]);return p},Z=(p,l)=>oe(p,se(l));var H=(p,l,s)=>re(ie(p),s,l);var X=(p,l,s)=>new Promise((k,y)=>{var P=C=>{try{I(s.next(C))}catch(O){y(O)}},f=C=>{try{I(s.throw(C))}catch(O){y(O)}},I=C=>C.done?k(C.value):Promise.resolve(C.value).then(P,f);I((s=s.apply(p,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("html2canvas");const B=require("./element-resize-detector-Bo5uDQAu.cjs"),J=require("./index-Mh5Dw2sd.cjs");require("./index-mAPVa0s4.cjs");const W=require("./ele-dzc-icon-h5wOUHF0.cjs"),de=require("./echarts-BB8O2KSA.cjs"),pe={class:"displacement-trend-chart"},fe={class:"chart-header"},ue={class:"chart-title"},he={class:"chart-subtitle"},me={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"位移趋势图",NAME_EN:"Displacement Trend Chart",ORDER:15},ve={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},title:{value:"ZK10-深部位移01",type:"string",label:"component.deepDisplacement.title"},depth:{value:152,type:"number",label:"component.deepDisplacement.depth",min:1,max:500},dispType:{value:"cumulative",type:"select",label:"component.deepDisplacement.dispType",options:[{label:"累计位移",value:"cumulative"},{label:"相对位移",value:"relative"}]},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},points:{value:30,type:"number",label:"component.options.points",min:5,max:100}},ye=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}],ge=["configPanelId","name","object_id","points_fv","fv","depth_fv","color"],be=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],xe={useAlias:!1,multiObject:!1,source:"mosaic"},_e={DEFAULT:me,OPTIONS:ve,DATA:ye,PARAMS:ge,SOURCE:be,COMMON:xe},Ce=n.defineComponent(Z(G({},_e),{__name:"displacementTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){n.useCssVars(a=>({af895d9e:n.unref(A).bgColor,v1da9f089:n.unref(A).textColor}));const l=J.useLinkStore(),s=p,k=n.ref({selectedTimes:[],startDate:"",endDate:""}),y=n.ref(new Map),P=`trendChart_${Date.now()}_${Math.random().toString(36).slice(2,8)}`;let f=null,I=null;const C=["#4a90d9","#67c23a","#e6a23c","#f56c6c","#909399","#00bcd4","#9c27b0","#ff9800","#795548","#607d8b"];class O extends B.BaseComponent{extractStyles(){var c,h,D,T,d,i,u;const{options:e}=this.props.conf,o=((c=e==null?void 0:e.dispType)==null?void 0:c.value)||"cumulative",t=((h=e==null?void 0:e.title)==null?void 0:h.value)||"ZK10-深部位移01",g=o==="relative"?"相对趋势图":"累计趋势图";return{bindId:((D=e==null?void 0:e.bindId)==null?void 0:D.value)||"",title:t,fullTitle:`${t}-${g}`,depth:((T=e==null?void 0:e.depth)==null?void 0:T.value)||152,dispType:o,bgColor:((d=e==null?void 0:e.bgColor)==null?void 0:d.value)||"#ffffff",textColor:((i=e==null?void 0:e.textColor)==null?void 0:i.value)||"#333333",points:((u=e==null?void 0:e.points)==null?void 0:u.value)||30}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}]}getActualFv(e){if(this.extractStyles().dispType==="relative"){if(e==="disp_x")return"relative_disp_x";if(e==="disp_y")return"relative_disp_y";if(e==="disp")return"relative_disp"}return e}getMockData(){var c;const e=((c=this.props.conf)==null?void 0:c.data)||this.getDefaultData(),o=["2026-01-15","2026-01-14","2026-01-13","2026-01-12","2026-01-11"],t=new Map,g=this.extractStyles().dispType;return e.forEach((h,D)=>{const T=new Map;o.forEach((d,i)=>{const u=[],b=(o.length-1-i)*5;for(let m=0;m<=30;m++){const r=-122-m;let x;g==="relative"?x=(Math.random()-.3)*5+Math.sin(m*.3)*3:x=(10+b+D*3)*(1+m*.03),u.push({depth:r,value:x+Math.sin(m*.2+D)*2})}T.set(d,u)}),t.set(h.name,T)}),t}onPreview(){return X(this,null,function*(){const{data:e}=this.props.conf;e.some(t=>t.object_id&&t.fv)?(console.log("[DisplacementTrendChart] 检测到数据绑定,订阅真实数据"),yield H(O.prototype,this,"onPreview").call(this)):(console.log("[DisplacementTrendChart] 未配置数据源,使用模拟数据"),this.getMockData().forEach((g,c)=>y.value.set(c,g)),j())})}setHistoryData(e){var D,T;const{data:o,common:t}=this.props.conf;if(!o||o.length===0||!o.some(d=>d.object_id&&d.fv))return;const c=(t==null?void 0:t.source)||"mosaic";["statistics","calculate"].includes(c)&&(e=B.formatStatisticsResult(e,o));const h=B.handleNullData(e,this.props,"history");if(h){try{y.value.clear();const d=o.find(r=>r.object_id);if(!d)return;const i=o.indexOf(d),u=((D=h.history)==null?void 0:D[i])||[],b=d.points_fv||"points";u.length>0&&Array.isArray((T=u[0])==null?void 0:T[b])?o.forEach(r=>{if(!r.object_id||!r.fv)return;const x=new Map,L=this.getActualFv(r.fv),S=new Map;u.forEach(_=>{const w=(_.time||_.datetime||"").split(" ")[0];S.has(w)||S.set(w,[]),(_[b]||[]).forEach(v=>{var E,R,z;S.get(w).push({depth:(R=(E=v[r.depth_fv])!=null?E:v.depth)!=null?R:0,value:(z=v[L])!=null?z:0})})}),S.forEach((_,$)=>{const w=new Map;_.forEach(v=>w.set(v.depth,v.value));const M=Array.from(w.entries()).map(([v,E])=>({depth:v,value:E})).sort((v,E)=>E.depth-v.depth);x.set($,M)}),y.value.set(r.name,x)}):o.forEach((r,x)=>{var w;if(!r.object_id||!r.fv)return;const L=((w=h.history)==null?void 0:w[x])||[],S=new Map,_=this.getActualFv(r.fv),$=new Map;L.forEach(M=>{var R,z;const E=(M.time||M.datetime||"").split(" ")[0];$.has(E)||$.set(E,[]),$.get(E).push({depth:(R=M[r.depth_fv])!=null?R:0,value:(z=M[_])!=null?z:0})}),$.forEach((M,v)=>{S.set(v,M)}),y.value.set(r.name,S)})}catch(d){console.error("[TrendChart] 解析历史数据失败:",d)}j()}}setSocketData(e){e&&console.log("[DisplacementTrendChart] 收到实时数据:",e)}}const N=new O(s,"displacementTrendChart");(!s.conf.data||s.conf.data.length===0)&&(s.conf.data=N.getDefaultData()),N.setupLifecycle();const A=N.getStyle(),Q=n.computed(()=>{const a=A.value.title,e=A.value.depth,t=V()==="relative"?"相对趋势图":"累计趋势图";return`${a}(深度${e}米)-${t}`}),Y=n.computed(()=>{const a=k.value.selectedTimes||k.value.trendSelectedTimes||[];if(a.length===0)return"";const e=[...a].sort(),o=e[0],t=e[e.length-1];return`${o} ~ ${t} [${a.length}天]`}),V=()=>A.value.dispType,q=()=>{var d;const a=A.value,e=k.value,o=((d=s.conf)==null?void 0:d.data)||N.getDefaultData();V();let t=e.selectedTimes||e.trendSelectedTimes||[];if(y.value.size===0&&N.getMockData().forEach((u,b)=>y.value.set(b,u)),t.length===0&&y.value.size>0){const i=y.value.values().next().value;i&&(t=Array.from(i.keys()))}t=[...t].sort().reverse();const g=[];let c=[],h=0;o.forEach(i=>{const u=y.value.get(i.name);if(!u)return;const b=i.color||C[h%C.length];h++,t.forEach((m,r)=>{const x=u.get(m)||[];if(x.length===0)return;x.forEach(_=>c.push(_.depth));const L=1-r*.15,S=b;g.push({name:`${i.name} (${m})`,type:"line",data:x.map(_=>[_.value,_.depth]),smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:S,width:2,opacity:L},itemStyle:{color:S,opacity:L}})})}),c.length===0&&(c=[-122,-152]);const D=Math.min(...c),T=Math.max(...c);return{grid:{left:60,right:140,top:30,bottom:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:i=>{if(!i||i.length===0)return"";let b=`<div style="padding:8px;max-width:280px;">
1
+ "use strict";var ae=Object.defineProperty,oe=Object.defineProperties;var se=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols,ie=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,re=Reflect.get;var K=(p,l,s)=>l in p?ae(p,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):p[l]=s,G=(p,l)=>{for(var s in l||(l={}))le.call(l,s)&&K(p,s,l[s]);if(U)for(var s of U(l))ce.call(l,s)&&K(p,s,l[s]);return p},Z=(p,l)=>oe(p,se(l));var H=(p,l,s)=>re(ie(p),s,l);var X=(p,l,s)=>new Promise((k,y)=>{var P=C=>{try{I(s.next(C))}catch(O){y(O)}},f=C=>{try{I(s.throw(C))}catch(O){y(O)}},I=C=>C.done?k(C.value):Promise.resolve(C.value).then(P,f);I((s=s.apply(p,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("html2canvas");const B=require("./element-resize-detector-BlMXyWIR.cjs"),J=require("./index-EnNA0nIi.cjs");require("./index-mAPVa0s4.cjs");const W=require("./ele-dzc-icon-h5wOUHF0.cjs"),de=require("./echarts-BB8O2KSA.cjs"),pe={class:"displacement-trend-chart"},fe={class:"chart-header"},ue={class:"chart-title"},he={class:"chart-subtitle"},me={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"位移趋势图",NAME_EN:"Displacement Trend Chart",ORDER:15},ve={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},title:{value:"ZK10-深部位移01",type:"string",label:"component.deepDisplacement.title"},depth:{value:152,type:"number",label:"component.deepDisplacement.depth",min:1,max:500},dispType:{value:"cumulative",type:"select",label:"component.deepDisplacement.dispType",options:[{label:"累计位移",value:"cumulative"},{label:"相对位移",value:"relative"}]},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},points:{value:30,type:"number",label:"component.options.points",min:5,max:100}},ye=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}],ge=["configPanelId","name","object_id","points_fv","fv","depth_fv","color"],be=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],xe={useAlias:!1,multiObject:!1,source:"mosaic"},_e={DEFAULT:me,OPTIONS:ve,DATA:ye,PARAMS:ge,SOURCE:be,COMMON:xe},Ce=n.defineComponent(Z(G({},_e),{__name:"displacementTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){n.useCssVars(a=>({af895d9e:n.unref(A).bgColor,v1da9f089:n.unref(A).textColor}));const l=J.useLinkStore(),s=p,k=n.ref({selectedTimes:[],startDate:"",endDate:""}),y=n.ref(new Map),P=`trendChart_${Date.now()}_${Math.random().toString(36).slice(2,8)}`;let f=null,I=null;const C=["#4a90d9","#67c23a","#e6a23c","#f56c6c","#909399","#00bcd4","#9c27b0","#ff9800","#795548","#607d8b"];class O extends B.BaseComponent{extractStyles(){var c,h,D,T,d,i,u;const{options:e}=this.props.conf,o=((c=e==null?void 0:e.dispType)==null?void 0:c.value)||"cumulative",t=((h=e==null?void 0:e.title)==null?void 0:h.value)||"ZK10-深部位移01",g=o==="relative"?"相对趋势图":"累计趋势图";return{bindId:((D=e==null?void 0:e.bindId)==null?void 0:D.value)||"",title:t,fullTitle:`${t}-${g}`,depth:((T=e==null?void 0:e.depth)==null?void 0:T.value)||152,dispType:o,bgColor:((d=e==null?void 0:e.bgColor)==null?void 0:d.value)||"#ffffff",textColor:((i=e==null?void 0:e.textColor)==null?void 0:i.value)||"#333333",points:((u=e==null?void 0:e.points)==null?void 0:u.value)||30}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}]}getActualFv(e){if(this.extractStyles().dispType==="relative"){if(e==="disp_x")return"relative_disp_x";if(e==="disp_y")return"relative_disp_y";if(e==="disp")return"relative_disp"}return e}getMockData(){var c;const e=((c=this.props.conf)==null?void 0:c.data)||this.getDefaultData(),o=["2026-01-15","2026-01-14","2026-01-13","2026-01-12","2026-01-11"],t=new Map,g=this.extractStyles().dispType;return e.forEach((h,D)=>{const T=new Map;o.forEach((d,i)=>{const u=[],b=(o.length-1-i)*5;for(let m=0;m<=30;m++){const r=-122-m;let x;g==="relative"?x=(Math.random()-.3)*5+Math.sin(m*.3)*3:x=(10+b+D*3)*(1+m*.03),u.push({depth:r,value:x+Math.sin(m*.2+D)*2})}T.set(d,u)}),t.set(h.name,T)}),t}onPreview(){return X(this,null,function*(){const{data:e}=this.props.conf;e.some(t=>t.object_id&&t.fv)?(console.log("[DisplacementTrendChart] 检测到数据绑定,订阅真实数据"),yield H(O.prototype,this,"onPreview").call(this)):(console.log("[DisplacementTrendChart] 未配置数据源,使用模拟数据"),this.getMockData().forEach((g,c)=>y.value.set(c,g)),j())})}setHistoryData(e){var D,T;const{data:o,common:t}=this.props.conf;if(!o||o.length===0||!o.some(d=>d.object_id&&d.fv))return;const c=(t==null?void 0:t.source)||"mosaic";["statistics","calculate"].includes(c)&&(e=B.formatStatisticsResult(e,o));const h=B.handleNullData(e,this.props,"history");if(h){try{y.value.clear();const d=o.find(r=>r.object_id);if(!d)return;const i=o.indexOf(d),u=((D=h.history)==null?void 0:D[i])||[],b=d.points_fv||"points";u.length>0&&Array.isArray((T=u[0])==null?void 0:T[b])?o.forEach(r=>{if(!r.object_id||!r.fv)return;const x=new Map,L=this.getActualFv(r.fv),S=new Map;u.forEach(_=>{const w=(_.time||_.datetime||"").split(" ")[0];S.has(w)||S.set(w,[]),(_[b]||[]).forEach(v=>{var E,R,z;S.get(w).push({depth:(R=(E=v[r.depth_fv])!=null?E:v.depth)!=null?R:0,value:(z=v[L])!=null?z:0})})}),S.forEach((_,$)=>{const w=new Map;_.forEach(v=>w.set(v.depth,v.value));const M=Array.from(w.entries()).map(([v,E])=>({depth:v,value:E})).sort((v,E)=>E.depth-v.depth);x.set($,M)}),y.value.set(r.name,x)}):o.forEach((r,x)=>{var w;if(!r.object_id||!r.fv)return;const L=((w=h.history)==null?void 0:w[x])||[],S=new Map,_=this.getActualFv(r.fv),$=new Map;L.forEach(M=>{var R,z;const E=(M.time||M.datetime||"").split(" ")[0];$.has(E)||$.set(E,[]),$.get(E).push({depth:(R=M[r.depth_fv])!=null?R:0,value:(z=M[_])!=null?z:0})}),$.forEach((M,v)=>{S.set(v,M)}),y.value.set(r.name,S)})}catch(d){console.error("[TrendChart] 解析历史数据失败:",d)}j()}}setSocketData(e){e&&console.log("[DisplacementTrendChart] 收到实时数据:",e)}}const N=new O(s,"displacementTrendChart");(!s.conf.data||s.conf.data.length===0)&&(s.conf.data=N.getDefaultData()),N.setupLifecycle();const A=N.getStyle(),Q=n.computed(()=>{const a=A.value.title,e=A.value.depth,t=V()==="relative"?"相对趋势图":"累计趋势图";return`${a}(深度${e}米)-${t}`}),Y=n.computed(()=>{const a=k.value.selectedTimes||k.value.trendSelectedTimes||[];if(a.length===0)return"";const e=[...a].sort(),o=e[0],t=e[e.length-1];return`${o} ~ ${t} [${a.length}天]`}),V=()=>A.value.dispType,q=()=>{var d;const a=A.value,e=k.value,o=((d=s.conf)==null?void 0:d.data)||N.getDefaultData();V();let t=e.selectedTimes||e.trendSelectedTimes||[];if(y.value.size===0&&N.getMockData().forEach((u,b)=>y.value.set(b,u)),t.length===0&&y.value.size>0){const i=y.value.values().next().value;i&&(t=Array.from(i.keys()))}t=[...t].sort().reverse();const g=[];let c=[],h=0;o.forEach(i=>{const u=y.value.get(i.name);if(!u)return;const b=i.color||C[h%C.length];h++,t.forEach((m,r)=>{const x=u.get(m)||[];if(x.length===0)return;x.forEach(_=>c.push(_.depth));const L=1-r*.15,S=b;g.push({name:`${i.name} (${m})`,type:"line",data:x.map(_=>[_.value,_.depth]),smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:S,width:2,opacity:L},itemStyle:{color:S,opacity:L}})})}),c.length===0&&(c=[-122,-152]);const D=Math.min(...c),T=Math.max(...c);return{grid:{left:60,right:140,top:30,bottom:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:i=>{if(!i||i.length===0)return"";let b=`<div style="padding:8px;max-width:280px;">
2
2
  <div style="font-weight:600;margin-bottom:6px;">深度: ${i[0].data[1]}m</div>`;return i.forEach(m=>{b+=`<div style="display:flex;align-items:center;margin:2px 0;">
3
3
  <span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${m.color};margin-right:6px;"></span>
4
4
  <span style="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">${m.seriesName}: ${m.data[0].toFixed(3)} mm</span>
@@ -28,8 +28,8 @@ var J = (d, i, n) => new Promise((A, v) => {
28
28
  });
29
29
  import { defineComponent as ue, useCssVars as he, unref as Q, ref as K, computed as P, watch as Y, nextTick as z, onMounted as me, onBeforeUnmount as ve, withDirectives as ye, openBlock as ge, createElementBlock as be, createElementVNode as F, toDisplayString as ee, renderSlot as xe, vShow as _e } from "vue";
30
30
  import "html2canvas";
31
- import { B as Ce, i as De, j as Te } from "./element-resize-detector-DJcsrJ8s.js";
32
- import { u as Se, _ as Ee } from "./index-kShjySl9.js";
31
+ import { B as Ce, i as De, j as Te } from "./element-resize-detector-DeMhGbNi.js";
32
+ import { u as Se, _ as Ee } from "./index-zPaMBZk-.js";
33
33
  import "./index-ButoLLAe.js";
34
34
  import { A as Ie, D as we } from "./ele-dzc-icon-D6eVpaHp.js";
35
35
  import { i as Me } from "./echarts-BVht3HHb.js";
@@ -27,13 +27,13 @@ var Ee = (s, a, e) => new Promise((t, x) => {
27
27
  n((e = e.apply(s, a)).next());
28
28
  });
29
29
  import { defineComponent as ue, openBlock as I, createElementBlock as M, renderSlot as le, computed as se, createElementVNode as g, normalizeClass as ne, createTextVNode as et, toDisplayString as Z, createCommentVNode as X, ref as K, watch as ce, onMounted as $e, onBeforeUnmount as Be, unref as ae, normalizeStyle as Ue, Fragment as tt, renderList as at, createVNode as nt } from "vue";
30
- import { _ as de, b as ot, f as st, g as lt } from "./index-kShjySl9.js";
30
+ import { _ as de, b as ot, f as st, g as lt } from "./index-zPaMBZk-.js";
31
31
  import { S as it, C as _e, O as rt, W as ct, G as q, L as ut, V as H, B as j, a as fe, b as J, E as be, c as Te, d as dt, P as ft, e as vt, f as pt, M as Se, D as Ve, g as Ie, h as ht, i as bt, j as gt } from "./three.module-DcOQNgKS.js";
32
- import { B as wt } from "./element-resize-detector-DJcsrJ8s.js";
33
- import { a as xt } from "./api-C0GhBpqd.js";
34
- import { F as kt } from "./config-Cc2W4vke.js";
32
+ import { B as wt } from "./element-resize-detector-DeMhGbNi.js";
33
+ import { a as xt } from "./api-DhQsrEGY.js";
34
+ import { F as kt } from "./config-D3MEjLGn.js";
35
35
  import { ElMessage as ve } from "element-plus";
36
- import { u as mt } from "./store-DzDtVfSX.js";
36
+ import { u as mt } from "./store-BpVoYd93.js";
37
37
  const yt = /* @__PURE__ */ ue({
38
38
  __name: "Button",
39
39
  emits: ["click"],