mixdashboards 1.0.47 → 1.0.49

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 (277) hide show
  1. package/dist/{EChartComponentBase-CQYZ0922.js → EChartComponentBase-CafVdj74.js} +1 -1
  2. package/dist/{EChartComponentBase-DRY0bLOI.cjs → EChartComponentBase-Dz5E-lyI.cjs} +1 -1
  3. package/dist/{UniverSheet-CJP8jNCA.cjs → UniverSheet-BqLvs6V6.cjs} +1 -1
  4. package/dist/{UniverSheet-BWB0aXry.js → UniverSheet-CH1YywcZ.js} +2 -2
  5. package/dist/{accelerationChart-CiK-Qd4o.cjs → accelerationChart-BWRlw5-L.cjs} +1 -1
  6. package/dist/{accelerationChart-BE04sofp.js → accelerationChart-V4UmpPse.js} +3 -3
  7. package/dist/{actionItem-7rT4wvbt.js → actionItem-CBwfWvTO.js} +3 -3
  8. package/dist/{actionItem-BNzvi8fB.cjs → actionItem-Dsg6qYSp.cjs} +1 -1
  9. package/dist/{alarmLevelChart-DbIf9kQc.js → alarmLevelChart-CnKEZZZv.js} +2 -2
  10. package/dist/{alarmLevelChart-JTbC7581.cjs → alarmLevelChart-DN8hyTdg.cjs} +1 -1
  11. package/dist/{alertTable-CW-9nTxG.js → alertTable-BluC1smp.js} +2 -2
  12. package/dist/{alertTable-3Fq9oPQa.cjs → alertTable-CdkiAZIu.cjs} +1 -1
  13. package/dist/{annualRainfallChart-BFadflcO.cjs → annualRainfallChart-BeenDSmW.cjs} +1 -1
  14. package/dist/{annualRainfallChart-Cg2tZJFq.js → annualRainfallChart-COeieHTg.js} +2 -2
  15. package/dist/{api-DAUw_RyI.js → api-Cyx2Fha0.js} +3 -3
  16. package/dist/{api-CsM841lz.cjs → api-nw_9niqv.cjs} +1 -1
  17. package/dist/{aqi-CSNzCt6A.cjs → aqi-BXtF-SsB.cjs} +1 -1
  18. package/dist/{aqi-DMhNfLSS.js → aqi-naf_yg1B.js} +3 -3
  19. package/dist/{aqiIndass-LhWIw1L-.js → aqiIndass-CiHVV6y-.js} +2 -2
  20. package/dist/{aqiIndass-CbnX8jy1.cjs → aqiIndass-YO0txxEM.cjs} +1 -1
  21. package/dist/{arrayCard-Fl5xZbvQ.js → arrayCard-CPtHFB--.js} +2 -2
  22. package/dist/{arrayCard-D6Yzq7nX.cjs → arrayCard-USJyzspe.cjs} +1 -1
  23. package/dist/{audio-PoEUMLRp.js → audio-7HMku35Z.js} +4 -4
  24. package/dist/{audio-R7LCUpjr.cjs → audio-Uz_XIJyA.cjs} +1 -1
  25. package/dist/{bar-CJv74yw7.js → bar-Bq_RDVaa.js} +4 -4
  26. package/dist/{bar-CIWKC7cd.cjs → bar-CSideFNS.cjs} +1 -1
  27. package/dist/{bmp-B5d3cPx5.js → bmp-BF-OdMoW.js} +3 -3
  28. package/dist/{bmp-DVNypten.cjs → bmp-DZ9_aKMT.cjs} +1 -1
  29. package/dist/{box--lry72SE.cjs → box-C1n5r8hT.cjs} +1 -1
  30. package/dist/{box-Da5gDSqP.js → box-DfqNW1B6.js} +2 -2
  31. package/dist/{chartConfigPanel-BvbDCHoU.js → chartConfigPanel-8wROQoL0.js} +1 -1
  32. package/dist/{chartConfigPanel-B8FYxnZb.cjs → chartConfigPanel-C62JqDqE.cjs} +1 -1
  33. package/dist/{circleBar-2Si4M0J8.js → circleBar-C54UQvaf.js} +3 -3
  34. package/dist/{circleBar-B-e8HYux.cjs → circleBar-UrV2_yVK.cjs} +1 -1
  35. package/dist/{clock-DGtbfiIm.js → clock-CbebZdlU.js} +2 -2
  36. package/dist/{clock-CF9OvH6i.cjs → clock-DgkEPumE.cjs} +1 -1
  37. package/dist/{clt-BD_Q3tyx.js → clt-B32D8bK9.js} +3 -3
  38. package/dist/{clt-CXcGotkx.cjs → clt-DWBynZO1.cjs} +1 -1
  39. package/dist/{cmc-Bt7H4Q8b.cjs → cmc-BVrFcoih.cjs} +1 -1
  40. package/dist/{cmc-C_UjLQvo.js → cmc-CC-6njzU.js} +3 -3
  41. package/dist/{cmp-DWI9Y7Oz.js → cmp-BCvtkNwO.js} +3 -3
  42. package/dist/{cmp-CdfaXTm_.cjs → cmp-D6aHhSC6.cjs} +1 -1
  43. package/dist/{composite-Dc4QkCcc.js → composite-CWYjAAsg.js} +3 -3
  44. package/dist/{composite-C7BE3mkS.cjs → composite-kODICk08.cjs} +1 -1
  45. package/dist/{controlList-DQWfqJLF.cjs → controlList-BXvCyR2L.cjs} +1 -1
  46. package/dist/{controlList-B8dEMDkH.js → controlList-zYX8DbNE.js} +3 -3
  47. package/dist/{controlRecordList-CLfY8XsN.js → controlRecordList-Bc2M0iyo.js} +3 -3
  48. package/dist/{controlRecordList-B8xmY2wh.cjs → controlRecordList-Dly5aorA.cjs} +1 -1
  49. package/dist/{crd-dBlZavms.cjs → crd--3Oj3Y1t.cjs} +1 -1
  50. package/dist/{crd-BE7bxQCV.js → crd-CoB00gS6.js} +2 -2
  51. package/dist/{ctrBtn-CtS30Duz.cjs → ctrBtn-BusKAhHv.cjs} +1 -1
  52. package/dist/{ctrBtn-NbVm0_9a.js → ctrBtn-CUADz_pu.js} +4 -4
  53. package/dist/{ctrSet-BNVppkzh.js → ctrSet-BKVsejze.js} +4 -4
  54. package/dist/{ctrSet-AYfzoAjr.cjs → ctrSet-C0R2aIby.cjs} +1 -1
  55. package/dist/{ctrSwitch-SvqyuNMs.js → ctrSwitch-BqRBh40z.js} +4 -4
  56. package/dist/{ctrSwitch-DvgqH5Zq.cjs → ctrSwitch-uIqQRKaq.cjs} +1 -1
  57. package/dist/{dataManagement-DDAGR2Zs.cjs → dataManagement-BdP1iSeC.cjs} +1 -1
  58. package/dist/{dataManagement-D4yFedxJ.js → dataManagement-C6jHI7-1.js} +2 -2
  59. package/dist/{dataReport-DN0yZtS2.js → dataReport-C2XWn_Xv.js} +2 -2
  60. package/dist/{dataReport-lflcAgwv.cjs → dataReport-DNPD3MZl.cjs} +1 -1
  61. package/dist/{dataTable--ZzYF0m4.js → dataTable-5bUrqBWz.js} +1 -1
  62. package/dist/{dataTable-C1AeOvHe.cjs → dataTable-BvlEs83r.cjs} +1 -1
  63. package/dist/{datetime-B4lktfti.cjs → datetime-CE5wsyi7.cjs} +1 -1
  64. package/dist/{datetime-CRxM48pG.js → datetime-Dp8mPzSO.js} +2 -2
  65. package/dist/{deepClusterSlipSurface-CsXZnbol.cjs → deepClusterSlipSurface-BinAmtCz.cjs} +1 -1
  66. package/dist/{deepClusterSlipSurface-jbVue8lK.js → deepClusterSlipSurface-D_7LRpHz.js} +3 -3
  67. package/dist/{deepDataMatrix-D08J4nfA.js → deepDataMatrix-BXTJm6UD.js} +2 -2
  68. package/dist/{deepDataMatrix-CdbDYkh1.cjs → deepDataMatrix-t6axw0An.cjs} +1 -1
  69. package/dist/{deepDisplacement3D-DTVDR3Em.cjs → deepDisplacement3D-BRutQ6Ut.cjs} +1 -1
  70. package/dist/{deepDisplacement3D-Dqh03kLT.js → deepDisplacement3D-Cy-FIGAq.js} +3 -3
  71. package/dist/{deepDisplacementChart-B72y4A4Q.js → deepDisplacementChart---DgDx8L.js} +2 -2
  72. package/dist/{deepDisplacementChart-CnAJ3arx.js → deepDisplacementChart-BWVcNgaX.js} +4 -4
  73. package/dist/{deepDisplacementChart-ccBRKTeg.cjs → deepDisplacementChart-DboPezyJ.cjs} +1 -1
  74. package/dist/{deepDisplacementChart-Be6UqmJN.cjs → deepDisplacementChart-eD2GOxML.cjs} +1 -1
  75. package/dist/{deepDisplacementView-DoJclaK2.cjs → deepDisplacementView-BNVTS7Ar.cjs} +1 -1
  76. package/dist/{deepDisplacementView-BRnskO-S.js → deepDisplacementView-CHFgG2wy.js} +1 -1
  77. package/dist/{deepNodeTemperatureChart-Cmvs1LI7.cjs → deepNodeTemperatureChart-CpJI7axl.cjs} +1 -1
  78. package/dist/{deepNodeTemperatureChart-CtPE4BFq.js → deepNodeTemperatureChart-N1z-KMmu.js} +3 -3
  79. package/dist/{deepTangentAngleChart-Dkh9kDJY.js → deepTangentAngleChart-ClnxPvUM.js} +3 -3
  80. package/dist/{deepTangentAngleChart-BqZzc_RS.cjs → deepTangentAngleChart-DxB4EaWm.cjs} +1 -1
  81. package/dist/{deepTemperatureField-Cm18SLto.js → deepTemperatureField-DT7iyND9.js} +3 -3
  82. package/dist/{deepTemperatureField-BByMhon_.cjs → deepTemperatureField-DWO8Dcjh.cjs} +1 -1
  83. package/dist/{deepTrendChart-BoDcH88s.js → deepTrendChart-C7_BfEiR.js} +3 -3
  84. package/dist/{deepTrendChart-FoMxS9EI.cjs → deepTrendChart-D9uQKgck.cjs} +1 -1
  85. package/dist/{deviceOnlineStatus-DsKQeLmt.cjs → deviceOnlineStatus-BA7D5fbt.cjs} +1 -1
  86. package/dist/{deviceOnlineStatus-DYQkhQsg.js → deviceOnlineStatus-DlrB6EXN.js} +2 -2
  87. package/dist/{deviceStatus-BCOou44x.js → deviceStatus-aPf8MflS.js} +2 -2
  88. package/dist/{deviceStatus-BWQtb9Mi.cjs → deviceStatus-mDl8zF_Z.cjs} +1 -1
  89. package/dist/{displacementDataTable-B85PTW_G.cjs → displacementDataTable-Co4In07D.cjs} +1 -1
  90. package/dist/{displacementDataTable-R8nTN3L8.js → displacementDataTable-Da1xkiXG.js} +2 -2
  91. package/dist/{displacementTrajectoryChart-BSEi-hRr.js → displacementTrajectoryChart-B85ad8vc.js} +3 -3
  92. package/dist/{displacementTrajectoryChart-lycYTQxe.cjs → displacementTrajectoryChart-FPrvrbUa.cjs} +1 -1
  93. package/dist/{displacementTrendChart-D8IuzbRv.js → displacementTrendChart-BRxIsjeK.js} +2 -2
  94. package/dist/{displacementTrendChart-BQO8Eznx.cjs → displacementTrendChart-DcBu8-_Z.cjs} +1 -1
  95. package/dist/{dxf-5s9RTKqm.cjs → dxf-EDkdonhJ.cjs} +1 -1
  96. package/dist/{dxf-BV__k04Q.js → dxf-FrPSVW4C.js} +4 -4
  97. package/dist/{dzc-BGPhJ-St.cjs → dzc-BBijV6-m.cjs} +1 -1
  98. package/dist/{dzc-D6aciipN.js → dzc-BOaL7miE.js} +3 -3
  99. package/dist/{element-resize-detector-B-0BgVLy.js → element-resize-detector-BCRzpPES.js} +4 -4
  100. package/dist/{element-resize-detector-BvkAwVg8.cjs → element-resize-detector-DYs3pJPp.cjs} +1 -1
  101. package/dist/{evn-COCxFd08.cjs → evn-CAWNNpK2.cjs} +1 -1
  102. package/dist/{evn-Dr19A1zo.js → evn-T-0VLXht.js} +2 -2
  103. package/dist/{evolutionChart-C9r2yUYj.cjs → evolutionChart-B8vzbfrk.cjs} +1 -1
  104. package/dist/{evolutionChart-pMtNKqkK.js → evolutionChart-DYf3V-rl.js} +3 -3
  105. package/dist/{fileViewer-BgkyDwyJ.js → fileViewer-BRVwWDA3.js} +4 -4
  106. package/dist/{fileViewer-DtOwluP2.cjs → fileViewer-D6rC0YFY.cjs} +1 -1
  107. package/dist/{filterBar-CDBwgkGb.cjs → filterBar-B3Ka4jw8.cjs} +1 -1
  108. package/dist/{filterBar-DMzt6Mud.js → filterBar-hfIbyNh_.js} +2 -2
  109. package/dist/{fireCombustionCurve-D5gRdu46.js → fireCombustionCurve-D1wKpm4i.js} +2 -2
  110. package/dist/{fireCombustionCurve-cvFl1WHh.cjs → fireCombustionCurve-DKQJzKh2.cjs} +1 -1
  111. package/dist/{fireFilterBar-CNMAFXr5.js → fireFilterBar-Bl0iCn48.js} +2 -2
  112. package/dist/{fireFilterBar-DPismk7o.cjs → fireFilterBar-D8TTM4KM.cjs} +1 -1
  113. package/dist/{gag-Axg1ovwC.js → gag-Vt7-rYYR.js} +2 -2
  114. package/dist/{gag-C34ZOxdk.cjs → gag-dKpxHBTV.cjs} +1 -1
  115. package/dist/{gasStationList-Bz9w4T9z.js → gasStationList-BDRHTLvR.js} +416 -357
  116. package/dist/gasStationList-g4AUNuxi.cjs +1 -0
  117. package/dist/{glbModel-CfO76ZcK.cjs → glbModel-BCgQzSz1.cjs} +1 -1
  118. package/dist/{glbModel-BzKQ2kUi.js → glbModel-BpnMbHQe.js} +2 -2
  119. package/dist/{gnssFilterBar-CGvbDUCu.cjs → gnssFilterBar-BgS-JH3k.cjs} +1 -1
  120. package/dist/{gnssFilterBar-GDvX4_p8.js → gnssFilterBar-CaGGhgEk.js} +2 -2
  121. package/dist/{gnssHistoryTable-DKFJnMPu.cjs → gnssHistoryTable-Bkt4Zvxa.cjs} +1 -1
  122. package/dist/{gnssHistoryTable-DTN1gZMt.js → gnssHistoryTable-CGY1ROb6.js} +3 -3
  123. package/dist/{gnssMapView-CT-XahN-.js → gnssMapView-C4-pk-1_.js} +2 -2
  124. package/dist/{gnssMapView-YpBcjDJ9.cjs → gnssMapView-DuNotJym.cjs} +1 -1
  125. package/dist/{gnssTimeSeriesChart-iZPRyPen.js → gnssTimeSeriesChart-MZbERhu9.js} +4 -4
  126. package/dist/{gnssTimeSeriesChart-BU5wQTYd.cjs → gnssTimeSeriesChart-y7L6j_y5.cjs} +1 -1
  127. package/dist/{gnssXYTrajectory-C-WzUbAW.js → gnssXYTrajectory-DL8WWe1C.js} +3 -3
  128. package/dist/{gnssXYTrajectory-R_i0mY-j.cjs → gnssXYTrajectory-DZFjqFPv.cjs} +1 -1
  129. package/dist/{grd-CGigUZ7q.js → grd-BgaxrUfI.js} +3 -3
  130. package/dist/{grd-BPXiohye.cjs → grd-DNJ1rlwR.cjs} +1 -1
  131. package/dist/{grdIndass-D800xVzH.js → grdIndass-Bxf2L3J5.js} +3 -3
  132. package/dist/{grdIndass-DKD_3XkD.cjs → grdIndass-DlwlkKKH.cjs} +1 -1
  133. package/dist/{grg-CNou8dMo.js → grg-78Sh9Nr7.js} +2 -2
  134. package/dist/{grg-BGSppQcI.cjs → grg-CmxBlYJ6.cjs} +1 -1
  135. package/dist/{gridview-B5B7gPOT.js → gridview-BWe_qLy-.js} +2 -2
  136. package/dist/{gridview-BhtVLKUD.cjs → gridview-FFx-3wNz.cjs} +1 -1
  137. package/dist/{groupCard-yQmb7VH_.js → groupCard-B2ORsgUN.js} +2 -2
  138. package/dist/{groupCard-BBmOnpyI.cjs → groupCard-BOqERSM4.cjs} +1 -1
  139. package/dist/{headerBar-CWGye11m.js → headerBar-DPlPX8uD.js} +3 -3
  140. package/dist/{headerBar-BNfQmsFC.cjs → headerBar-o2J2Dqkd.cjs} +1 -1
  141. package/dist/{history-BlHYyu1s.cjs → history-5W6pGCPq.cjs} +1 -1
  142. package/dist/{history-oKCbbOLM.js → history-DH68UK_U.js} +3 -3
  143. package/dist/{index-C8teBAQd.js → index-LgTfdmT4.js} +1795 -1754
  144. package/dist/{index-BSzyUGIT.cjs → index-ZwyqrmaH.cjs} +7 -7
  145. package/dist/{insarDeformChart-DE67w_u4.js → insarDeformChart-9Qss0VGu.js} +2 -2
  146. package/dist/{insarDeformChart-DSrGvm7x.cjs → insarDeformChart-BTwU5ktS.cjs} +1 -1
  147. package/dist/{insarImageViewer-Ctp0wqIt.cjs → insarImageViewer-B-ExpEa8.cjs} +1 -1
  148. package/dist/{insarImageViewer-B4-PsYRV.js → insarImageViewer-C7aTZp-m.js} +2 -2
  149. package/dist/{kds-Enim5bJp.cjs → kds-8n-a2GhL.cjs} +1 -1
  150. package/dist/{kds-Dx_GiIEm.js → kds-CS7G3BaQ.js} +2 -2
  151. package/dist/{layerTabs-D3YRlheV.cjs → layerTabs-1lOAiEhu.cjs} +1 -1
  152. package/dist/{layerTabs-BFiu4lIL.js → layerTabs-pJJzTbu9.js} +2 -2
  153. package/dist/{lin-uY94Ojnz.js → lin-Bk49Db_G.js} +3 -3
  154. package/dist/{lin-CkjPgG_B.cjs → lin-IHxWU55I.cjs} +1 -1
  155. package/dist/{linIndass-qABT3VEJ.cjs → linIndass-Cpf8pnLn.cjs} +1 -1
  156. package/dist/{linIndass-C8gREDKn.js → linIndass-Drxnj7KQ.js} +2 -2
  157. package/dist/{lst-D5g7DrtQ.js → lst-CL6bmgJ2.js} +2 -2
  158. package/dist/{lst-BFKnMtL5.cjs → lst-CPd37vza.cjs} +1 -1
  159. package/dist/{manualEntry-Bck0F-yh.cjs → manualEntry-CcCE4O6Q.cjs} +1 -1
  160. package/dist/{manualEntry-DVz9oTYB.js → manualEntry-D_doLqqH.js} +2 -2
  161. package/dist/{mapBackground-BFU29YnH.js → mapBackground-CvLXKuJx.js} +2 -2
  162. package/dist/{mapBackground-CiPISf2B.cjs → mapBackground-DEBggmVp.cjs} +1 -1
  163. package/dist/{mappingList-Bkx4vu-u.js → mappingList-BZODl4t5.js} +3 -3
  164. package/dist/{mappingList--PVo2aUQ.cjs → mappingList-qKR-0uhY.cjs} +1 -1
  165. package/dist/{markdownViewer-COnk_pk4.js → markdownViewer-CtN6ailN.js} +4 -4
  166. package/dist/{markdownViewer-RG3j8l1L.cjs → markdownViewer-DZ8gvoHk.cjs} +1 -1
  167. package/dist/{mix-control-modal-B2cEQKI8.js → mix-control-modal-BlWtiePl.js} +3 -3
  168. package/dist/{mix-control-modal-B1UN2Cjo.cjs → mix-control-modal-zbr85DkZ.cjs} +1 -1
  169. package/dist/{mixDataPermission-t4r0S4Or.js → mixDataPermission-C-Cu3_y0.js} +1 -1
  170. package/dist/{mixDataPermission-BG1BmNQe.cjs → mixDataPermission-Gcl_4czp.cjs} +1 -1
  171. package/dist/{mixGrid-CUvQlc4n.js → mixGrid-DJQ2jXcg.js} +3 -3
  172. package/dist/{mixGrid-_dbNIf6t.cjs → mixGrid-Dh9y_kW0.cjs} +1 -1
  173. package/dist/{mixMap-D6z1_hNV.js → mixMap-2REwmqmi.js} +3 -3
  174. package/dist/{mixMap-DCvXa0ab.cjs → mixMap-BRnDOkNF.cjs} +1 -1
  175. package/dist/{mixModel-BRW3rJIV.cjs → mixModel-C1CKMCLi.cjs} +1 -1
  176. package/dist/{mixModel-CulQbgWh.js → mixModel-CHtF97xc.js} +3 -3
  177. package/dist/{mixPie-DjHVr74J.js → mixPie-DwDffWz5.js} +3 -3
  178. package/dist/{mixPie-BcYeLQ0o.cjs → mixPie-sD-AjwaC.cjs} +1 -1
  179. package/dist/mixdashboards.cjs +1 -1
  180. package/dist/mixdashboards.css +1 -1
  181. package/dist/mixdashboards.js +1 -1
  182. package/dist/{mjpegCamera-DlAcVOoi.js → mjpegCamera-Dbfd7eUC.js} +2 -2
  183. package/dist/{mjpegCamera-B7mjuPXA.cjs → mjpegCamera-RMS_dnv0.cjs} +1 -1
  184. package/dist/{monitorAlert-zPmD55Rs.cjs → monitorAlert-CjIQQ6fQ.cjs} +1 -1
  185. package/dist/{monitorAlert-B0KID2eA.js → monitorAlert-DagV3vuc.js} +2 -2
  186. package/dist/{monitorData-BidsO_6J.js → monitorData-CTkeA21g.js} +3 -3
  187. package/dist/{monitorData-CHMrdKJf.cjs → monitorData-DUansNO5.cjs} +1 -1
  188. package/dist/{monitorSpeedChart-DLZh-mSE.js → monitorSpeedChart-BFnREZYZ.js} +1 -1
  189. package/dist/{monitorSpeedChart-4D-maRjp.cjs → monitorSpeedChart-CjfFqWon.cjs} +1 -1
  190. package/dist/{mxa-DmZnrbe4.js → mxa-B6ezKf-C.js} +3 -3
  191. package/dist/{mxa-D4qd0Plz.cjs → mxa-CN6zXgZA.cjs} +1 -1
  192. package/dist/{myValue-B6YZ6dY0.cjs → myValue-BG_jI_HT.cjs} +1 -1
  193. package/dist/{myValue-BWMSYYbJ.js → myValue-C08vYRJC.js} +2 -2
  194. package/dist/{myValueList-DvjaY4Fk.js → myValueList-BKVL_kPb.js} +2 -2
  195. package/dist/{myValueList-DaNcKyP9.cjs → myValueList-Bwg3XCPF.cjs} +1 -1
  196. package/dist/{objectList-V3GkI15k.cjs → objectList-FArM7oEM.cjs} +1 -1
  197. package/dist/{objectList-B-DwKe6G.js → objectList-emtQyLbD.js} +4 -4
  198. package/dist/{photo-CMsOPCDi.cjs → photo-B9Veb_Am.cjs} +1 -1
  199. package/dist/{photo-BXxSVVs-.js → photo-DXbQg_FJ.js} +4 -4
  200. package/dist/{pie-Cq5U2vj8.js → pie-DZzf2lL7.js} +3 -3
  201. package/dist/{pie-DEAPOjlU.cjs → pie-U9hOnFzz.cjs} +1 -1
  202. package/dist/{pressBtn-CCxhhl94.cjs → pressBtn-BNr1R0gW.cjs} +1 -1
  203. package/dist/{pressBtn-C2Iq30mu.js → pressBtn-R5Wsj-Jw.js} +4 -4
  204. package/dist/{progressBar-7yCF8b0A.cjs → progressBar-CUSoF6f0.cjs} +1 -1
  205. package/dist/{progressBar-yWKY_v4S.js → progressBar-sLfJICdr.js} +2 -2
  206. package/dist/{progressCircle-D8JyF73W.cjs → progressCircle-B6P8B-t_.cjs} +1 -1
  207. package/dist/{progressCircle--w8mHGf0.js → progressCircle-BZgPxs_q.js} +2 -2
  208. package/dist/{qrcode-B2Ue7vYR.js → qrcode-C96PznAO.js} +2 -2
  209. package/dist/{qrcode-CXmICWJP.cjs → qrcode-DMrNxgq5.cjs} +1 -1
  210. package/dist/{raceBar-Bs0i8Afj.cjs → raceBar-BTExTEsZ.cjs} +1 -1
  211. package/dist/{raceBar-BjWSPr8P.js → raceBar-Dryx8Onl.js} +3 -3
  212. package/dist/{rad-xDBdI8mF.cjs → rad-DpkIOKs_.cjs} +1 -1
  213. package/dist/{rad-vI2aKcPX.js → rad-vw4O2ByZ.js} +2 -2
  214. package/dist/{rainfallFilterBar-0HQ-tE3G.js → rainfallFilterBar-BjAWqKtM.js} +2 -2
  215. package/dist/{rainfallFilterBar-CN0nk3fJ.cjs → rainfallFilterBar-CH3abw6C.cjs} +1 -1
  216. package/dist/{rainfallTimeCurve-vaLAn45Q.js → rainfallTimeCurve-BPDZGrlQ.js} +3 -3
  217. package/dist/{rainfallTimeCurve-ORf8Vjfg.cjs → rainfallTimeCurve-oJUJ2mt7.cjs} +1 -1
  218. package/dist/{rangeLin-BsFq4g_r.js → rangeLin-BFFy57TT.js} +2 -2
  219. package/dist/{rangeLin-DpeEuqHq.cjs → rangeLin-CBqKAU0P.cjs} +1 -1
  220. package/dist/{request-CipSkL_e.cjs → request-BcQP_dWt.cjs} +1 -1
  221. package/dist/{request-BKxONB4_.js → request-jIo7FwQD.js} +1 -1
  222. package/dist/{retainer1-fHIyhuCd.cjs → retainer1-CfcwA39J.cjs} +1 -1
  223. package/dist/{retainer1-Dff5PtOO.js → retainer1-goSPppQ-.js} +3 -3
  224. package/dist/{retainer2-CiQBrt5K.js → retainer2-BHdnsKrO.js} +3 -3
  225. package/dist/{retainer2-DVzzy6cB.cjs → retainer2-DwQmFU10.cjs} +1 -1
  226. package/dist/{riskRegionTable-C7wPe9Wi.js → riskRegionTable-B8-f5xx-.js} +2 -2
  227. package/dist/{riskRegionTable-S52o0BGS.cjs → riskRegionTable-CSJpPxPB.cjs} +1 -1
  228. package/dist/{sankey-CnfyQhE9.js → sankey-C0gaE3HM.js} +3 -3
  229. package/dist/{sankey-CaIBIfyD.cjs → sankey-DXCBHb16.cjs} +1 -1
  230. package/dist/{scd-DlNUR6eL.cjs → scd-CkEHu7nZ.cjs} +1 -1
  231. package/dist/{scd-DIMdDXIq.js → scd-Cwyft2g6.js} +2 -2
  232. package/dist/{sideMenu-zU_aIvID.js → sideMenu-BtVCCKw9.js} +2 -2
  233. package/dist/{sideMenu-Bkbku5u7.cjs → sideMenu-DUdDDJ9K.cjs} +1 -1
  234. package/dist/{slopeStability-DbSAX15K.cjs → slopeStability-Byb6AKti.cjs} +1 -1
  235. package/dist/{slopeStability-gOE7dn2Q.js → slopeStability-DwxDXTQG.js} +3 -3
  236. package/dist/{speedCurve-CSvi3dD_.js → speedCurve-BuNsy-ev.js} +3 -3
  237. package/dist/{speedCurve-U4Q4lhNV.cjs → speedCurve-DArreweP.cjs} +1 -1
  238. package/dist/{staticLine-DLQxHc40.cjs → staticLine-C50p0CZs.cjs} +1 -1
  239. package/dist/{staticLine-B9bZ_t-z.js → staticLine-DfkpF6ZW.js} +3 -3
  240. package/dist/{store-DEUtRQFz.cjs → store-ByTYoqyI.cjs} +1 -1
  241. package/dist/{store-CS3njfh9.js → store-D_TrU3nw.js} +2 -2
  242. package/dist/{swiper-7lbXP2Xv.js → swiper-CQiRByJd.js} +2 -2
  243. package/dist/{swiper-BWo-bX2U.cjs → swiper-L0Oo2dYD.cjs} +1 -1
  244. package/dist/{terminalConfigList-DSF7VA9Q.js → terminalConfigList-BhmfFm4f.js} +3 -3
  245. package/dist/{terminalConfigList-D_OHlni0.cjs → terminalConfigList-ChC43Bwq.cjs} +1 -1
  246. package/dist/{terminalList-BwF47jlu.cjs → terminalList-BQModRyk.cjs} +1 -1
  247. package/dist/{terminalList-DxSUKAey.js → terminalList-C6tswBt1.js} +3 -3
  248. package/dist/{textbox-DgjHYbNl.cjs → textbox-CSuiDl8k.cjs} +1 -1
  249. package/dist/{textbox-ANFqNmpB.js → textbox-CgOhFsYo.js} +3 -3
  250. package/dist/{timeQueryBar-DygP7vFr.cjs → timeQueryBar-BtCXHgrg.cjs} +1 -1
  251. package/dist/{timeQueryBar-CtVF9zsa.js → timeQueryBar-QEg1Flg9.js} +1 -1
  252. package/dist/{timeSeries-uWbV8gXH.js → timeSeries-B7NgbHfJ.js} +4 -4
  253. package/dist/{timeSeries-DpBC38Dd.cjs → timeSeries-DMINp9Fr.cjs} +1 -1
  254. package/dist/{timeSeriesCurve-CjS9xNfa.js → timeSeriesCurve-DEY5KQvu.js} +3 -3
  255. package/dist/{timeSeriesCurve-BSEfLBDp.cjs → timeSeriesCurve-wC9wHGI4.cjs} +1 -1
  256. package/dist/{toggleBtn-DSq8CzjF.js → toggleBtn-Brtfu0-e.js} +3 -3
  257. package/dist/{toggleBtn-Bk89Ssp4.cjs → toggleBtn-DO953U-q.cjs} +1 -1
  258. package/dist/{trajectoryConfigPanel-DmPGuqtg.js → trajectoryConfigPanel-BDdP3SdV.js} +1 -1
  259. package/dist/{trajectoryConfigPanel-CF1pM2pP.cjs → trajectoryConfigPanel-Bl_o9h2e.cjs} +1 -1
  260. package/dist/{trajectoryScatter-ChdtZPYx.js → trajectoryScatter-7-lJ5SMe.js} +3 -3
  261. package/dist/{trajectoryScatter-D9v1KK6I.cjs → trajectoryScatter-DVm5ljvY.cjs} +1 -1
  262. package/dist/{universalConfigPanel-D5EdU-OC.cjs → universalConfigPanel-Cm4TfqAK.cjs} +1 -1
  263. package/dist/{universalConfigPanel-DOr_O_6t.js → universalConfigPanel-DTLFrGXs.js} +1 -1
  264. package/dist/{universalTable-DlsTht70.cjs → universalTable-Bl9x3wEx.cjs} +1 -1
  265. package/dist/{universalTable-BAN6hSY_.js → universalTable-CCFr-GKz.js} +2 -2
  266. package/dist/{video-Pt7TPShk.cjs → video-DObKrYkw.cjs} +1 -1
  267. package/dist/{video-DNziJElR.js → video-gqqvz5Ge.js} +4 -4
  268. package/dist/{videoMonitor-Dt77p1d2.cjs → videoMonitor-B_Ur25fz.cjs} +1 -1
  269. package/dist/{videoMonitor-PFD2iawe.js → videoMonitor-CGMHzNdh.js} +2 -2
  270. package/dist/{vlu-BElCZvHd.js → vlu-6DSf0haZ.js} +2 -2
  271. package/dist/{vlu-4ykgONXu.cjs → vlu-Dbj9euY_.cjs} +1 -1
  272. package/dist/{weather-YG9UpLx7.cjs → weather-BsIBTn7G.cjs} +1 -1
  273. package/dist/{weather-Csspb97-.js → weather-CQBxQBld.js} +2 -2
  274. package/dist/{windLin-DPeoy6Jq.js → windLin-KIVk9hOD.js} +2 -2
  275. package/dist/{windLin-C0wheGq6.cjs → windLin-jVF-rhIx.cjs} +1 -1
  276. package/package.json +1 -1
  277. package/dist/gasStationList-sODxF5vW.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-BvkAwVg8.cjs"),R=require("./index-BSzyUGIT.cjs"),t3=require("./EChartComponentBase-DRY0bLOI.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;
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-DYs3pJPp.cjs"),R=require("./index-ZwyqrmaH.cjs"),t3=require("./EChartComponentBase-Dz5E-lyI.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;
@@ -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-BSzyUGIT.cjs"),$=require("./EChartComponentBase-DRY0bLOI.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-ZwyqrmaH.cjs"),$=require("./EChartComponentBase-Dz5E-lyI.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;
@@ -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-C8teBAQd.js";
16
- import { E as Q } from "./EChartComponentBase-CQYZ0922.js";
15
+ import { _ as K } from "./index-LgTfdmT4.js";
16
+ import { E as Q } from "./EChartComponentBase-CafVdj74.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: "标题" },
@@ -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-B-0BgVLy.js";
15
+ import { B as J, i as K, j as Q } from "./element-resize-detector-BCRzpPES.js";
16
16
  import { A as W, D as X } from "./ele-gag-icon-CB5dJeYF.js";
17
- import { _ as Y } from "./index-C8teBAQd.js";
17
+ import { _ as Y } from "./index-LgTfdmT4.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"
@@ -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-BvkAwVg8.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),T=require("./index-BSzyUGIT.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-DYs3pJPp.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),T=require("./index-ZwyqrmaH.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 +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-BvkAwVg8.cjs"),E=require("./index-BSzyUGIT.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-DYs3pJPp.cjs"),E=require("./index-ZwyqrmaH.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;
@@ -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-B-0BgVLy.js";
40
- import { u as _e, e as be, _ as ve } from "./index-C8teBAQd.js";
39
+ import { B as me, i as ge, j as he } from "./element-resize-detector-BCRzpPES.js";
40
+ import { u as _e, e as be, _ as ve } from "./index-LgTfdmT4.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,
@@ -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-B-0BgVLy.js";
22
- import { u as Et, e as w, _ as At } from "./index-C8teBAQd.js";
23
- import { E as Mt } from "./EChartComponentBase-CQYZ0922.js";
21
+ import { i as It, j as Tt, d as Ot } from "./element-resize-detector-BCRzpPES.js";
22
+ import { u as Et, e as w, _ as At } from "./index-LgTfdmT4.js";
23
+ import { E as Mt } from "./EChartComponentBase-CafVdj74.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 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-BvkAwVg8.cjs"),x=require("./index-BSzyUGIT.cjs"),re=require("./EChartComponentBase-DRY0bLOI.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-DYs3pJPp.cjs"),x=require("./index-ZwyqrmaH.cjs"),re=require("./EChartComponentBase-Dz5E-lyI.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>
@@ -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-B-0BgVLy.js";
32
- import { u as Se, _ as Ee } from "./index-C8teBAQd.js";
31
+ import { B as Ce, i as De, j as Te } from "./element-resize-detector-BCRzpPES.js";
32
+ import { u as Se, _ as Ee } from "./index-LgTfdmT4.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";
@@ -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-BvkAwVg8.cjs"),J=require("./index-BSzyUGIT.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-DYs3pJPp.cjs"),J=require("./index-ZwyqrmaH.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>