mixdashboards 1.0.87 → 1.0.89

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 (335) hide show
  1. package/dist/{BaseComponent-qzL33ZSL.js → BaseComponent-D82kw5vB.js} +14 -14
  2. package/dist/{BaseComponent-BHUHnLj-.cjs → BaseComponent-DoQ1oLoA.cjs} +1 -1
  3. package/dist/{EChartComponentBase-BtAW2Yko.js → EChartComponentBase-DUyyaXgA.js} +5 -5
  4. package/dist/{EChartComponentBase-C4s5HSfS.cjs → EChartComponentBase-ejDV5NEw.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-CqvHGqqx.js → EmergencyPlanPanel-Bm-fqxYR.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-C8ieiZvC.cjs → EmergencyPlanPanel-BnVlQ-f6.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CUSKabw0.js → HistoryPlanDialog-BMzhidd2.js} +1 -1
  8. package/dist/{HistoryPlanDialog-D6VMuzat.cjs → HistoryPlanDialog-QBBxCX7D.cjs} +1 -1
  9. package/dist/{MixiotAppDetailPage-CFISQwpc.js → MixiotAppDetailPage-Dr5R35qW.js} +1 -1
  10. package/dist/{MixiotAppDetailPage-Bd9WrADz.cjs → MixiotAppDetailPage-FfC4ZxrA.cjs} +1 -1
  11. package/dist/{MonitoringMap-CV7YYixH.js → MonitoringMap-CpdWX4fF.js} +2 -2
  12. package/dist/{MonitoringMap-DjvavXD5.cjs → MonitoringMap-eVOQwtGG.cjs} +1 -1
  13. package/dist/{UniverSheet-C7QQQUHI.js → UniverSheet-02jn_UjA.js} +2 -2
  14. package/dist/{UniverSheet-BY4vwAeQ.cjs → UniverSheet-Ded-R47O.cjs} +1 -1
  15. package/dist/{accelerationChart-Dd7s6CA0.js → accelerationChart-B5n1Fc12.js} +21 -21
  16. package/dist/{accelerationChart-CnbCpT4d.cjs → accelerationChart-BKIZV5eU.cjs} +1 -1
  17. package/dist/{actionItem-DNgoQB08.cjs → actionItem-CLwRbg4y.cjs} +1 -1
  18. package/dist/{actionItem-CjNacj0F.js → actionItem-DsZ4M1qS.js} +2 -2
  19. package/dist/{alarmLevelChart-DDFP_ADG.js → alarmLevelChart-9ZdAuQvY.js} +2 -2
  20. package/dist/{alarmLevelChart-CRL45xkr.cjs → alarmLevelChart-CyCmhAZl.cjs} +1 -1
  21. package/dist/{alertTable-DrUs1wUN.js → alertTable-BbsFIJQc.js} +2 -2
  22. package/dist/{alertTable-UvxQNZ2Y.cjs → alertTable-Bj90t5vD.cjs} +1 -1
  23. package/dist/{aliasObjectSelectorDemo-BGgcbyT-.cjs → aliasObjectSelectorDemo-DOtzALw2.cjs} +1 -1
  24. package/dist/{aliasObjectSelectorDemo-Bep18FrL.js → aliasObjectSelectorDemo-fW-a4DCV.js} +7 -7
  25. package/dist/{annualRainfallChart-BMuH6tsO.js → annualRainfallChart-BzzrCCJe.js} +2 -2
  26. package/dist/{annualRainfallChart-DDnaZZp0.cjs → annualRainfallChart-Dzx4SJpe.cjs} +1 -1
  27. package/dist/{aqi-CbyrPtO4.js → aqi-006rTnsK.js} +2 -2
  28. package/dist/{aqi-DjkOgiun.cjs → aqi-DJrhDnm8.cjs} +1 -1
  29. package/dist/{aqiIndass-C-DEsmZ4.js → aqiIndass-DLN5CDbq.js} +21 -21
  30. package/dist/{aqiIndass-C3mPUZP6.cjs → aqiIndass-DokEaddv.cjs} +1 -1
  31. package/dist/{areaDeformCurve-B-bUeLI-.cjs → areaDeformCurve-CAV4T1p6.cjs} +1 -1
  32. package/dist/{areaDeformCurve-D6in1BnQ.js → areaDeformCurve-Eb4dsvjI.js} +2 -2
  33. package/dist/{arrayCard-CAoU7DHK.cjs → arrayCard-BeHFZmCq.cjs} +1 -1
  34. package/dist/{arrayCard-CpzPkgA9.js → arrayCard-DujWUhYK.js} +2 -2
  35. package/dist/{audio-TkisK5FD.js → audio-CrY3aLMX.js} +2 -2
  36. package/dist/{audio-BrTfWQmo.cjs → audio-lDtmX9bz.cjs} +1 -1
  37. package/dist/{bar-CT6sCNW4.js → bar-CVPXbvtH.js} +10 -10
  38. package/dist/{bar-BZBOTnN4.cjs → bar-WVNHLoJ3.cjs} +1 -1
  39. package/dist/{bmp-DgcyTiV5.cjs → bmp-BUgmrbhZ.cjs} +1 -1
  40. package/dist/{bmp-Xsdyi9gr.js → bmp-Bw1KLZox.js} +2 -2
  41. package/dist/{box-DNKXXXYx.js → box-D3M4txCW.js} +23 -23
  42. package/dist/{box-DED4JT5G.cjs → box-cqCoRDny.cjs} +1 -1
  43. package/dist/{chartConfigPanel-CF-q-XUN.js → chartConfigPanel-BS-4fGEs.js} +1 -1
  44. package/dist/{chartConfigPanel-D1M21nDO.cjs → chartConfigPanel-CVjBfsPG.cjs} +1 -1
  45. package/dist/{circleBar-CaC8ntp-.js → circleBar-C2-5NbKx.js} +2 -2
  46. package/dist/{circleBar-m6J_QvzN.cjs → circleBar-DHFREWDZ.cjs} +1 -1
  47. package/dist/{clock-tPcek90B.js → clock-CbPolNJf.js} +2 -2
  48. package/dist/{clock-CnV36tpq.cjs → clock-DCLrJzaN.cjs} +1 -1
  49. package/dist/{clt-DoDENEcJ.cjs → clt-CpnBLyYn.cjs} +1 -1
  50. package/dist/{clt-DwoBhD_P.js → clt-EjSvDr2u.js} +15 -15
  51. package/dist/{cmc-Dld5UOW9.cjs → cmc-3E3UvBFP.cjs} +1 -1
  52. package/dist/{cmc-ObS3fWlL.js → cmc-BDDdRH_H.js} +25 -25
  53. package/dist/{cmp-Bp9FqBZV.cjs → cmp-DAzG9LwZ.cjs} +1 -1
  54. package/dist/{cmp-DEH1jzrG.js → cmp-_zlwmg1E.js} +2 -2
  55. package/dist/{conclusionCard-DXiFAJmo.cjs → conclusionCard-9zD6W6AF.cjs} +1 -1
  56. package/dist/{conclusionCard-CHFJIt7G.js → conclusionCard-b_f9juIB.js} +2 -2
  57. package/dist/{controlList-hWCbafkY.js → controlList-DFX97otG.js} +2 -2
  58. package/dist/{controlList-B2tV397i.cjs → controlList-DHG2jD51.cjs} +1 -1
  59. package/dist/{controlRecordList-DnhHr7kU.js → controlRecordList-B0oTZp28.js} +2 -2
  60. package/dist/{controlRecordList-uAmuCKjf.cjs → controlRecordList-kGbanAXa.cjs} +1 -1
  61. package/dist/{controlRecordListAPP-BpZmCMM-.js → controlRecordListAPP-BOukSyHq.js} +2 -2
  62. package/dist/{controlRecordListAPP-BpfPZW3b.cjs → controlRecordListAPP-gXYEcRA_.cjs} +1 -1
  63. package/dist/{crd-BQ7AFV1c.cjs → crd-BATQ1KFa.cjs} +1 -1
  64. package/dist/{crd-ChpWMXAm.js → crd-C_z8MNM0.js} +2 -2
  65. package/dist/{ctrBtn-PTITC7R8.cjs → ctrBtn-BnwZlZ5c.cjs} +1 -1
  66. package/dist/{ctrBtn-CmdQ3s7z.js → ctrBtn-DTyOVAVy.js} +11 -11
  67. package/dist/{ctrSet-Dv5i5ne5.js → ctrSet-BTnbgdd3.js} +7 -7
  68. package/dist/{ctrSet-CYqeDilm.cjs → ctrSet-BWr9dDIX.cjs} +1 -1
  69. package/dist/{ctrSwitch-C3NZcUxa.js → ctrSwitch-BH76ZhOi.js} +8 -8
  70. package/dist/{ctrSwitch-Byt4qKjt.cjs → ctrSwitch-CCdNwgtf.cjs} +1 -1
  71. package/dist/{dataManagement-BFIS0e4d.cjs → dataManagement-DEe2X-oe.cjs} +1 -1
  72. package/dist/{dataManagement-enhqxRgF.js → dataManagement-ju5aByQS.js} +2 -2
  73. package/dist/{dataReport-DLdB1ARI.js → dataReport-B5tUeLYL.js} +2 -2
  74. package/dist/{dataReport-vfCe0q9d.cjs → dataReport-DGdNGqNg.cjs} +1 -1
  75. package/dist/{dataTable-DFZrMHnF.js → dataTable-ByiR5jdH.js} +1 -1
  76. package/dist/{dataTable-DE3yOae0.cjs → dataTable-ChBv_YlP.cjs} +1 -1
  77. package/dist/{datetime-BK4xGaTM.js → datetime-CThnusEe.js} +2 -2
  78. package/dist/{datetime-DXTcE56I.cjs → datetime-DG6uMSUr.cjs} +1 -1
  79. package/dist/{deepClusterSlipSurface-BKFavDI5.cjs → deepClusterSlipSurface-8hEjAzBW.cjs} +1 -1
  80. package/dist/{deepClusterSlipSurface-D_PbxUdd.js → deepClusterSlipSurface-CLxfYGxD.js} +29 -29
  81. package/dist/{deepDataMatrix-avI-0mLw.js → deepDataMatrix-6Ny4cIe7.js} +21 -21
  82. package/dist/{deepDataMatrix-DzzK55Mc.cjs → deepDataMatrix-D5B1nu2J.cjs} +1 -1
  83. package/dist/{deepDisplacement3D-CbyatHpJ.js → deepDisplacement3D-BVjkYHfy.js} +2 -2
  84. package/dist/{deepDisplacement3D-DW0CW2ut.cjs → deepDisplacement3D-DCJ00L5m.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-DY0lNJOz.js → deepDisplacementChart-Blzrj3dF.js} +40 -40
  86. package/dist/{deepDisplacementChart-Dm71dHpY.cjs → deepDisplacementChart-DdiaOR7t.cjs} +1 -1
  87. package/dist/{deepDisplacementChart-B7GDsSm7.js → deepDisplacementChart-Dvn76ypl.js} +22 -22
  88. package/dist/{deepDisplacementChart-DauJXxkW.cjs → deepDisplacementChart-pktiGXQI.cjs} +1 -1
  89. package/dist/{deepDisplacementView-RywcwybM.js → deepDisplacementView-DIwTwh_K.js} +1 -1
  90. package/dist/{deepDisplacementView-BJAAMyTP.cjs → deepDisplacementView-ZLKNGoIQ.cjs} +1 -1
  91. package/dist/{deepNodeTemperatureChart-Et7GEspn.js → deepNodeTemperatureChart-115sZmrU.js} +36 -36
  92. package/dist/{deepNodeTemperatureChart-FN14qWXP.cjs → deepNodeTemperatureChart-gDvvGuyq.cjs} +1 -1
  93. package/dist/{deepTangentAngleChart-m3r_mJg0.cjs → deepTangentAngleChart-DVSVhg5b.cjs} +1 -1
  94. package/dist/{deepTangentAngleChart-CEsc85Mi.js → deepTangentAngleChart-DmC2LGTU.js} +22 -22
  95. package/dist/{deepTemperatureField-jfV1EahT.cjs → deepTemperatureField-ClJsxAvt.cjs} +1 -1
  96. package/dist/{deepTemperatureField-Cr3c_t1T.js → deepTemperatureField-D6G_kQeJ.js} +32 -32
  97. package/dist/{deepTrendChart-D7IDGKBC.js → deepTrendChart-C53TU6F2.js} +34 -34
  98. package/dist/{deepTrendChart-DIyUa5qe.cjs → deepTrendChart-Drys7qZg.cjs} +1 -1
  99. package/dist/{deviceOnlineStatus--G66OLv8.cjs → deviceOnlineStatus-BnoXmtDj.cjs} +1 -1
  100. package/dist/{deviceOnlineStatus-DDo0caCc.js → deviceOnlineStatus-cZu_IljM.js} +2 -2
  101. package/dist/{deviceStatus-B0sBzHx9.cjs → deviceStatus-Bxqii2_U.cjs} +1 -1
  102. package/dist/{deviceStatus-cmxKruD-.js → deviceStatus-DcjQXNtS.js} +19 -19
  103. package/dist/{displacementDataTable-Bxs-LIOW.cjs → displacementDataTable-C3W_0L7c.cjs} +1 -1
  104. package/dist/{displacementDataTable-BwhylBbX.js → displacementDataTable-DlwZHsnk.js} +17 -17
  105. package/dist/{displacementTrajectoryChart-JJEGEVMc.cjs → displacementTrajectoryChart-C54ljhYo.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart-D3VcZ1qM.js → displacementTrajectoryChart-DCFPd8I8.js} +34 -34
  107. package/dist/{displacementTrendChart-BlIqd2IK.js → displacementTrendChart-Bwi9pIKg.js} +32 -32
  108. package/dist/{displacementTrendChart-GmxA4M6n.cjs → displacementTrendChart-C2UFFHy3.cjs} +1 -1
  109. package/dist/{dxf-JH5I0L5F.cjs → dxf-BXat6zT0.cjs} +1 -1
  110. package/dist/{dxf-r-iy1MWn.js → dxf-CvvsXRab.js} +2 -2
  111. package/dist/{dzc-KbkTkgzk.cjs → dzc-611sFAMA.cjs} +1 -1
  112. package/dist/{dzc-CMhN9l76.js → dzc-xIM9tlfM.js} +8 -8
  113. package/dist/{emergencyPlan-CR8HkDi4.js → emergencyPlan-BLfRn6UD.js} +3 -3
  114. package/dist/{emergencyPlan-FSdy0Ik5.cjs → emergencyPlan-DYckkWIF.cjs} +1 -1
  115. package/dist/{evn-D8kcAx_T.cjs → evn-BVP-ihLU.cjs} +1 -1
  116. package/dist/{evn-DGxcYjRA.js → evn-C5g9HTlT.js} +2 -2
  117. package/dist/{evolutionChart-K7H8KKIG.js → evolutionChart-CqCoGysK.js} +3 -3
  118. package/dist/{evolutionChart-CI2hDs5C.cjs → evolutionChart-DFOIeAnj.cjs} +1 -1
  119. package/dist/{fileViewer-Df0AU_z9.js → fileViewer-BGBuea6P.js} +2 -2
  120. package/dist/{fileViewer-DtIGy-zH.cjs → fileViewer-CdCgk5vi.cjs} +1 -1
  121. package/dist/{filterBar-DEfkfl04.cjs → filterBar-1LBu8CWi.cjs} +1 -1
  122. package/dist/{filterBar-BRDe-GgC.js → filterBar-CG1pnrgf.js} +2 -2
  123. package/dist/{fireCombustionCurve-DJXeynXa.js → fireCombustionCurve-DBLZItFG.js} +3 -3
  124. package/dist/{fireCombustionCurve-C8UGnEPC.cjs → fireCombustionCurve-DFGlWVK-.cjs} +1 -1
  125. package/dist/{fireFilterBar-CXiN-Jkv.js → fireFilterBar-55way8Kq.js} +2 -2
  126. package/dist/{fireFilterBar-iqgVdbgH.cjs → fireFilterBar-DmXRJrBH.cjs} +1 -1
  127. package/dist/{fireHistoryTable-CTIdqGk3.js → fireHistoryTable-6lMO644G.js} +2 -2
  128. package/dist/{fireHistoryTable-Dl4A1pRv.cjs → fireHistoryTable-CrOZPx1P.cjs} +1 -1
  129. package/dist/{gag-BVPZK4hG.js → gag-BRtB5Zyd.js} +2 -2
  130. package/dist/{gag-DQa6TEDv.cjs → gag-C8Q8kIfD.cjs} +1 -1
  131. package/dist/{gasStationList-BkzLZp4-.cjs → gasStationList-CuMupuAF.cjs} +1 -1
  132. package/dist/{gasStationList-NFyxin-H.js → gasStationList-Dh0HOgcE.js} +2 -2
  133. package/dist/{geo3dViewer-VRenmVKs.cjs → geo3dViewer-CxUsz_Fa.cjs} +1 -1
  134. package/dist/{geo3dViewer-BJpae_MX.js → geo3dViewer-ph_PeQy-.js} +3 -3
  135. package/dist/{glbModel-C96hRxP0.js → glbModel-HkdGjDju.js} +2 -2
  136. package/dist/{glbModel-i2X1L8LC.cjs → glbModel-keR5BhQS.cjs} +1 -1
  137. package/dist/{globalObjectSelector-DhbeX3bm.cjs → globalObjectSelector-BbyN1tdM.cjs} +1 -1
  138. package/dist/{globalObjectSelector-D09a0A2t.js → globalObjectSelector-C181O9oo.js} +43 -43
  139. package/dist/{gnssFilterBar-BX3mEKiT.cjs → gnssFilterBar-CLrEX2db.cjs} +1 -1
  140. package/dist/{gnssFilterBar-BHqE79Ri.js → gnssFilterBar-vcfVn7a6.js} +2 -2
  141. package/dist/{gnssHistoryTable-ZBfzhnlx.cjs → gnssHistoryTable-BpFJjWcy.cjs} +1 -1
  142. package/dist/{gnssHistoryTable-D9tglOkP.js → gnssHistoryTable-D0VkG9vT.js} +2 -2
  143. package/dist/{gnssMapView-B2rSxPml.cjs → gnssMapView-ChrUruFB.cjs} +2 -2
  144. package/dist/{gnssMapView-Bicnnr6P.js → gnssMapView-a4luVEYa.js} +4 -4
  145. package/dist/{gnssSectionProfile-BKnvQBHa.cjs → gnssSectionProfile-CoP2v7aY.cjs} +1 -1
  146. package/dist/{gnssSectionProfile-BfkjiI0i.js → gnssSectionProfile-DnHfVuhk.js} +2 -2
  147. package/dist/{gnssTimeSeriesChart-BTK4Qize.js → gnssTimeSeriesChart-B1NJ4cn0.js} +2 -2
  148. package/dist/{gnssTimeSeriesChart-Cj-151Zs.cjs → gnssTimeSeriesChart-DVAjY9eo.cjs} +1 -1
  149. package/dist/{gnssXYTrajectory-BgwA-1Fx.cjs → gnssXYTrajectory-CiFR9qoL.cjs} +1 -1
  150. package/dist/{gnssXYTrajectory-DZiGIgf5.js → gnssXYTrajectory-D_pCZ7Hd.js} +2 -2
  151. package/dist/{grd-DW4ve5k2.js → grd-2THwmH-B.js} +17 -17
  152. package/dist/{grd-DrRka55C.cjs → grd-CZT36wMZ.cjs} +1 -1
  153. package/dist/{grdIndass-CofZtTJe.cjs → grdIndass-CO9sMJwo.cjs} +1 -1
  154. package/dist/{grdIndass-CRZ9agT-.js → grdIndass-CjQCGgum.js} +10 -10
  155. package/dist/{grg-zv4YAkAu.js → grg-CDte_thi.js} +10 -10
  156. package/dist/{grg-Cugg5crY.cjs → grg-Cs7-r62k.cjs} +1 -1
  157. package/dist/{gridview-BjOw8zBf.cjs → gridview-BYOPPFAQ.cjs} +1 -1
  158. package/dist/{gridview-DRB1rG1L.js → gridview-DoFkoRJG.js} +2 -2
  159. package/dist/{groundwaterFilterBar-DyCL0fs9.js → groundwaterFilterBar-BPSFA1Lw.js} +2 -2
  160. package/dist/{groundwaterFilterBar-D4appJuv.cjs → groundwaterFilterBar-FCQgVbxJ.cjs} +1 -1
  161. package/dist/{groundwaterProfileChart-CDByowkP.cjs → groundwaterProfileChart-CZM2Ijqj.cjs} +2 -2
  162. package/dist/{groundwaterProfileChart-Bo_XCqyF.js → groundwaterProfileChart-CrKLzRsw.js} +3 -3
  163. package/dist/{groundwaterTimeCurve-Cj5qSKTI.cjs → groundwaterTimeCurve-BU92AmmI.cjs} +1 -1
  164. package/dist/{groundwaterTimeCurve-C0WRGZNY.js → groundwaterTimeCurve-Dy5QHMnD.js} +3 -3
  165. package/dist/{groupCard-JeKQg4FL.js → groupCard-ByiU2e9a.js} +2 -2
  166. package/dist/{groupCard-B7XW81Xq.cjs → groupCard-Bz4dzhtP.cjs} +1 -1
  167. package/dist/{headerBar-D5FXDHNR.js → headerBar-Bmugs0fE.js} +2 -2
  168. package/dist/{headerBar-BXNzoDYA.cjs → headerBar-DGQqoZZH.cjs} +1 -1
  169. package/dist/{history-D_NO9ojb.cjs → history-BNN6YYlw.cjs} +1 -1
  170. package/dist/{history-BDIdK3AY.js → history-CIAU9_hA.js} +12 -12
  171. package/dist/{index-D7PZNHF4.cjs → index-BdWR_FTA.cjs} +10 -10
  172. package/dist/{index-BHBE19E2.js → index-CCWU_se2.js} +2248 -2208
  173. package/dist/{insarDeformChart-wTnTF5NC.cjs → insarDeformChart-B6ad_kTg.cjs} +1 -1
  174. package/dist/{insarDeformChart-DuBYscAT.js → insarDeformChart-CpMWLFgM.js} +2 -2
  175. package/dist/{insarImageViewer-DGkic1Rj.cjs → insarImageViewer-CXkitdwR.cjs} +1 -1
  176. package/dist/{insarImageViewer-tPyDE815.js → insarImageViewer-Dwvau4-d.js} +2 -2
  177. package/dist/{kds-Bto_xGCo.cjs → kds-Bjks3GFb.cjs} +1 -1
  178. package/dist/{kds-Joeeniwr.js → kds-DrlduN0N.js} +21 -21
  179. package/dist/{kpiCard-D_8YToN_.cjs → kpiCard-CEPgU6Td.cjs} +1 -1
  180. package/dist/{kpiCard-B2MTndw-.js → kpiCard-CvTeFbgJ.js} +2 -2
  181. package/dist/{landslideMap-BSImmP3T.js → landslideMap-B5ecUy9T.js} +30 -30
  182. package/dist/{landslideMap-DbvJ2h3R.cjs → landslideMap-BBMdZRMN.cjs} +1 -1
  183. package/dist/{landslideWarning-DjgODoEd.js → landslideWarning-CMEvyHhr.js} +11 -11
  184. package/dist/{landslideWarning-CVvZS5-l.cjs → landslideWarning-CYLG3Oxj.cjs} +1 -1
  185. package/dist/{layerTabs-CT14C_oL.cjs → layerTabs-DstdlkUM.cjs} +1 -1
  186. package/dist/{layerTabs-C2qdit8f.js → layerTabs-K7SxTlw4.js} +2 -2
  187. package/dist/{leaflet-src-CsuGTXZi.js → leaflet-src-ClP2DPnn.js} +1 -1
  188. package/dist/{leaflet-src-BuDfd_hT.cjs → leaflet-src-DhrxkAwA.cjs} +1 -1
  189. package/dist/{lerc-5_flDPwM.js → lerc-CmVR8_Da.js} +2 -2
  190. package/dist/{lerc-BVRAhrgg.cjs → lerc-DA9nzmCS.cjs} +1 -1
  191. package/dist/{lin-Djc6HZCi.js → lin-Dm_oqUd8.js} +11 -11
  192. package/dist/{lin--Wc9Mzoq.cjs → lin-Dn6V4e5I.cjs} +1 -1
  193. package/dist/{linIndass-Bxs7wFnh.cjs → linIndass-BldY-1UZ.cjs} +1 -1
  194. package/dist/{linIndass-CQ2BZiY0.js → linIndass-CowqLuzl.js} +10 -10
  195. package/dist/{lst-CxLOKAzL.js → lst-Bu9POh4U.js} +2 -2
  196. package/dist/{lst-C-yxmy1r.cjs → lst-CPzaL4pE.cjs} +1 -1
  197. package/dist/{manualEntry-Dd9swkaL.cjs → manualEntry-D6HxT0e1.cjs} +1 -1
  198. package/dist/{manualEntry-DLL43b_K.js → manualEntry-DFPCiPZm.js} +2 -2
  199. package/dist/{mapBackground-CDGjjy8-.js → mapBackground-DNs_5l_N.js} +3 -3
  200. package/dist/{mapBackground-DNQRoaFb.cjs → mapBackground-DdNuu0qi.cjs} +1 -1
  201. package/dist/{mappingList-C9HUo2y9.cjs → mappingList-B2euTZM6.cjs} +1 -1
  202. package/dist/{mappingList-DrhZfKtH.js → mappingList-D9Ax3W4e.js} +2 -2
  203. package/dist/{markdownViewer-DIb7t2bx.js → markdownViewer-BCz-nS97.js} +2 -2
  204. package/dist/{markdownViewer-Bea8zl8q.cjs → markdownViewer-BlmkSj2F.cjs} +1 -1
  205. package/dist/{mix-control-modal-CaAkqkzX.js → mix-control-modal-DTiG49Lj.js} +7 -7
  206. package/dist/{mix-control-modal-Dh-NZ50w.cjs → mix-control-modal-DaSRoqVn.cjs} +1 -1
  207. package/dist/{mixGrid-DPdzqHke.js → mixGrid-BuBmT7GK.js} +2 -2
  208. package/dist/{mixGrid-DFuBeOy6.cjs → mixGrid-CM-obY4q.cjs} +1 -1
  209. package/dist/mixdashboards.cjs +1 -1
  210. package/dist/mixdashboards.css +1 -1
  211. package/dist/mixdashboards.js +1 -1
  212. package/dist/mixiotObjectListApi-434Mto0m.cjs +1 -0
  213. package/dist/{mixiotObjectListApi-CJsYvcG_.js → mixiotObjectListApi-ZWtORc3c.js} +37 -35
  214. package/dist/{mjpegCamera-BvlKwwDL.cjs → mjpegCamera-D3JM1GzZ.cjs} +1 -1
  215. package/dist/{mjpegCamera-C9PNl-r4.js → mjpegCamera-ye25efWW.js} +2 -2
  216. package/dist/{monitorAlert-LeeMIRjf.cjs → monitorAlert-CJ_pAHXP.cjs} +1 -1
  217. package/dist/{monitorAlert-vVcYtohz.js → monitorAlert-Clr3_BqZ.js} +14 -14
  218. package/dist/{monitorData-BtF_j2kd.cjs → monitorData-Biwb0h-A.cjs} +1 -1
  219. package/dist/{monitorData-CHhLhD4y.js → monitorData-nXGeoFVW.js} +9 -9
  220. package/dist/{monitorSpeedChart-BH_rITMD.cjs → monitorSpeedChart-B7FhH0Kk.cjs} +1 -1
  221. package/dist/{monitorSpeedChart-Dhchpe2h.js → monitorSpeedChart-CiS6TSfI.js} +1 -1
  222. package/dist/{mxa-CU0OUOdG.cjs → mxa-D5zEytKD.cjs} +1 -1
  223. package/dist/{mxa-B3DlA-Xs.js → mxa-Nv228pmQ.js} +20 -20
  224. package/dist/{myValue-AeGxHeE2.cjs → myValue-BmHQ_lRL.cjs} +1 -1
  225. package/dist/{myValue-DEbeO9Cb.js → myValue-CBsVyhrq.js} +2 -2
  226. package/dist/{myValueList-qDBbrqDv.js → myValueList-CNGkPgE3.js} +2 -2
  227. package/dist/{myValueList-EkbSpjf0.cjs → myValueList-F2JXq_cs.cjs} +1 -1
  228. package/dist/{objectList-B1Q5MJPW.cjs → objectList-B2AqFaoX.cjs} +1 -1
  229. package/dist/{objectList-DTHwnvxc.js → objectList-CacWdl7-.js} +3 -3
  230. package/dist/{objectListAPP-njF3tJUP.js → objectListAPP-B8ryIqee.js} +4 -4
  231. package/dist/{objectListAPP-CgPjYGiu.cjs → objectListAPP-oI7xgnNz.cjs} +1 -1
  232. package/dist/{percentBar-Dil8Vm3q.cjs → percentBar-BamhAckr.cjs} +1 -1
  233. package/dist/{percentBar-BAwdbKH8.js → percentBar-By4ErDLm.js} +15 -15
  234. package/dist/{photo-Bn0lWnis.js → photo-5bKR5PWJ.js} +2 -2
  235. package/dist/{photo-BlZ5X_9p.cjs → photo-Db9B9k7E.cjs} +1 -1
  236. package/dist/{pie-CG2cvCTM.js → pie-B8IcWNmh.js} +2 -2
  237. package/dist/{pie-CbOvGe0n.cjs → pie-Bo5fBYnv.cjs} +1 -1
  238. package/dist/{placeholder-jPC58i_u.cjs → placeholder-Ba-1pW5q.cjs} +1 -1
  239. package/dist/{placeholder-Bdop1bDv.js → placeholder-cEZ1VojS.js} +1 -1
  240. package/dist/{pressBtn-Cwp0-Mju.js → pressBtn-B90A4FTO.js} +7 -7
  241. package/dist/{pressBtn-C6mEzpGm.cjs → pressBtn-Bg9z2xjW.cjs} +1 -1
  242. package/dist/{processTable--PnPJzep.js → processTable-Dmf9PtKT.js} +2 -2
  243. package/dist/{processTable-CUrw-_tx.cjs → processTable-KmBhdxq9.cjs} +1 -1
  244. package/dist/{progressBar-CLBQrVhg.js → progressBar-CBvxzYpz.js} +2 -2
  245. package/dist/{progressBar-Dg1WRKUU.cjs → progressBar-CuR-TjJy.cjs} +1 -1
  246. package/dist/{progressCircle-DBXHBoZS.cjs → progressCircle-B7uJFhbg.cjs} +1 -1
  247. package/dist/{progressCircle-Dft4lI8s.js → progressCircle-CxF0elMR.js} +2 -2
  248. package/dist/{qrcode-BH8f2Hfp.cjs → qrcode-B5ohsZSk.cjs} +1 -1
  249. package/dist/{qrcode-B7VNzAkt.js → qrcode-Bj1iBOqf.js} +40 -31
  250. package/dist/{raceBar-Ck_RLw_X.js → raceBar-BM7aKngn.js} +2 -2
  251. package/dist/{raceBar-DZCr0eC-.cjs → raceBar-cbIKXdrY.cjs} +1 -1
  252. package/dist/{rad-C7ostpqi.js → rad-BxLSGBt5.js} +2 -2
  253. package/dist/{rad-C3kidKBD.cjs → rad-XuUgEqvp.cjs} +1 -1
  254. package/dist/{radarMapViewer-B8g9WmmH.cjs → radarMapViewer-CE3iOzHQ.cjs} +1 -1
  255. package/dist/{radarMapViewer-BxHWMhxf.js → radarMapViewer-Y2d-z-Xi.js} +2 -2
  256. package/dist/{rainfallFilterBar-G_3cep1I.cjs → rainfallFilterBar-5B9nOZMQ.cjs} +1 -1
  257. package/dist/{rainfallFilterBar-C6amyMsu.js → rainfallFilterBar-BQQ6cWWT.js} +2 -2
  258. package/dist/{rainfallTimeCurve-dOfq4IKr.js → rainfallTimeCurve-D7UHAW7B.js} +3 -3
  259. package/dist/{rainfallTimeCurve-Ce8eRvv6.cjs → rainfallTimeCurve-VUFDrlaJ.cjs} +1 -1
  260. package/dist/{rangeLin-GOVFLiyl.cjs → rangeLin-BCy_aU2O.cjs} +1 -1
  261. package/dist/{rangeLin-CXrCb7e3.js → rangeLin-CWkY4AVF.js} +21 -21
  262. package/dist/{realtimeEvolutionMap-VApbSWKk.cjs → realtimeEvolutionMap-CpOZ-K90.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-CLhVGzzZ.js → realtimeEvolutionMap-midbOpQ_.js} +2 -2
  264. package/dist/{regionBar-DOkzOqR4.cjs → regionBar-BO8d6Gfr.cjs} +1 -1
  265. package/dist/{regionBar-CgCQBHYm.js → regionBar-ClY6Vcp0.js} +2 -2
  266. package/dist/{request-CsLYkQ1F.js → request-DHoyVWU-.js} +13 -13
  267. package/dist/{request-DBDym05o.cjs → request-Wvyc5KfO.cjs} +1 -1
  268. package/dist/{retainer1-D2ORoyPc.js → retainer1-C074kiSG.js} +3 -3
  269. package/dist/{retainer1-BihlkLkk.cjs → retainer1-fPoh6UWL.cjs} +1 -1
  270. package/dist/{retainer2-89gF8O00.js → retainer2-D26SOrnE.js} +3 -3
  271. package/dist/{retainer2-5-qgDYHt.cjs → retainer2-DQffbiOL.cjs} +1 -1
  272. package/dist/{retainerRecordList-ZukSm42U.cjs → retainerRecordList-17lNzhYY.cjs} +1 -1
  273. package/dist/{retainerRecordList-B7oZOPiz.js → retainerRecordList-CMrtXtg0.js} +2 -2
  274. package/dist/{retainerRecordListAPP-CJifqoYV.js → retainerRecordListAPP-BVdG5XNP.js} +3 -3
  275. package/dist/{retainerRecordListAPP-C3ghAm55.cjs → retainerRecordListAPP-Dv07T1sM.cjs} +1 -1
  276. package/dist/{ringTopN-DEWE8OKA.js → ringTopN-D8fLY5hp.js} +2 -2
  277. package/dist/{ringTopN-BKFTI8w3.cjs → ringTopN-DfEl45ch.cjs} +1 -1
  278. package/dist/{riskRegionTable-Dg-ZfEl1.cjs → riskRegionTable-DFj8c8Hv.cjs} +1 -1
  279. package/dist/{riskRegionTable-DDWPmzK4.js → riskRegionTable-YottkGcg.js} +13 -13
  280. package/dist/{sankey-CjCzdx5A.js → sankey-D-C9WSeH.js} +8 -8
  281. package/dist/{sankey-CVIFo2TP.cjs → sankey-D-fUhpIU.cjs} +1 -1
  282. package/dist/{scd-ExZtelyF.js → scd-CasvRFjo.js} +2 -2
  283. package/dist/{scd-D7vwm2So.cjs → scd-DNoPBk6l.cjs} +1 -1
  284. package/dist/{sideMenu-9YGvznYC.js → sideMenu-C0wdN7VA.js} +2 -2
  285. package/dist/{sideMenu-LL4XLBcW.cjs → sideMenu-CVxLfq_Q.cjs} +1 -1
  286. package/dist/{slopeStability-BeoNqhaA.cjs → slopeStability-B-YjvDTE.cjs} +1 -1
  287. package/dist/{slopeStability-BRVBekjo.js → slopeStability-B5mssi6B.js} +20 -20
  288. package/dist/{speedCurve-DJUY_EGs.js → speedCurve-BDW6iwb5.js} +2 -2
  289. package/dist/{speedCurve-DLuFWpeb.cjs → speedCurve-D_ZbiTc0.cjs} +1 -1
  290. package/dist/{stackedBar-W-rgbty6.cjs → stackedBar-CW8BzUQc.cjs} +1 -1
  291. package/dist/{stackedBar-DkjXvEyH.js → stackedBar-UfQPMmu_.js} +9 -9
  292. package/dist/{stressFilterBar-FmqkdIl5.js → stressFilterBar-B4qAx5bg.js} +2 -2
  293. package/dist/{stressFilterBar-D02NjLM9.cjs → stressFilterBar-Du1vnYaq.cjs} +1 -1
  294. package/dist/{stressTimeCurve-Ck194Rx4.js → stressTimeCurve-AlnfIJP8.js} +3 -3
  295. package/dist/{stressTimeCurve-CEU3JrfW.cjs → stressTimeCurve-D_Js7Slh.cjs} +1 -1
  296. package/dist/{swiper-CM54onRz.cjs → swiper-CkkB3IUt.cjs} +1 -1
  297. package/dist/{swiper-DGAjlGUa.js → swiper-Q7RLo5sT.js} +49 -51
  298. package/dist/{terminalConfigList-DmIncQe8.js → terminalConfigList-D_Ey_hOB.js} +2 -2
  299. package/dist/{terminalConfigList-hy2uUsJe.cjs → terminalConfigList-lG7Guswq.cjs} +1 -1
  300. package/dist/{terminalList-9qcAM4LG.js → terminalList-BiS8IqVU.js} +2 -2
  301. package/dist/{terminalList-C6DxUrb2.cjs → terminalList-DsQfZkLH.cjs} +1 -1
  302. package/dist/{terminalListAPP-Dl5MpCjB.js → terminalListAPP-C_oAW2DY.js} +3 -3
  303. package/dist/{terminalListAPP-RYLAuqiK.cjs → terminalListAPP-Die7Iis9.cjs} +1 -1
  304. package/dist/{textbox-GG4d1QIy.cjs → textbox-DtwW5kQK.cjs} +1 -1
  305. package/dist/{textbox-CHkPlSAX.js → textbox-M7oHdxop.js} +2 -2
  306. package/dist/{timeQueryBar-B_sNNLNx.cjs → timeQueryBar-BST1N_pA.cjs} +1 -1
  307. package/dist/{timeQueryBar-4KSmgROW.js → timeQueryBar-D72U8KfL.js} +1 -1
  308. package/dist/{timeSeries-C6jp_8BG.cjs → timeSeries-DdrD6BXI.cjs} +1 -1
  309. package/dist/{timeSeries-CgJ0SIKo.js → timeSeries-kOLJD8jS.js} +3 -3
  310. package/dist/{timeSeriesCurve-TMqcdmQk.js → timeSeriesCurve-B7jHBbab.js} +3 -3
  311. package/dist/{timeSeriesCurve-CH12QzSV.cjs → timeSeriesCurve-CemFc-kT.cjs} +1 -1
  312. package/dist/{toggleBtn-DQd4gNtX.cjs → toggleBtn-BVJD8hdP.cjs} +1 -1
  313. package/dist/{toggleBtn-4pgNSMG6.js → toggleBtn-l0gcVWhL.js} +2 -2
  314. package/dist/{trajectoryConfigPanel-BG3SSwn9.js → trajectoryConfigPanel-BvjQNU8d.js} +1 -1
  315. package/dist/{trajectoryConfigPanel-Bw1VrV-D.cjs → trajectoryConfigPanel-p9RwKXye.cjs} +1 -1
  316. package/dist/{trajectoryScatter-CEN_a_hP.js → trajectoryScatter-D0X0MuO_.js} +24 -24
  317. package/dist/{trajectoryScatter-YyQc-_lS.cjs → trajectoryScatter-DUF9rbQZ.cjs} +1 -1
  318. package/dist/{universalConfigPanel-DXs2cr1a.cjs → universalConfigPanel-Cuy_d2Fi.cjs} +1 -1
  319. package/dist/{universalConfigPanel-DM-AnPb9.js → universalConfigPanel-G_SwTzLS.js} +1 -1
  320. package/dist/{universalTable-zF3jltzT.cjs → universalTable-C6TQyu10.cjs} +1 -1
  321. package/dist/{universalTable-BqhsfcZp.js → universalTable-CLytqIJ-.js} +2 -2
  322. package/dist/{video-Dq1cVS0l.cjs → video-BuCsJa2J.cjs} +1 -1
  323. package/dist/{video-D1iN2V0C.js → video-CLp-qmhh.js} +2 -2
  324. package/dist/{videoMonitor-hkuvSmn4.js → videoMonitor-BHFy7nV7.js} +10 -10
  325. package/dist/{videoMonitor-B_1M-KcU.cjs → videoMonitor-DtASZV-Y.cjs} +1 -1
  326. package/dist/{vlu-0SrsCMT-.cjs → vlu-aDDyx47b.cjs} +1 -1
  327. package/dist/{vlu-K66RvuKO.js → vlu-dvnZmwrq.js} +2 -2
  328. package/dist/{warningOverview-BRKnU2qJ.js → warningOverview-BWNvhGEr.js} +3 -3
  329. package/dist/{warningOverview-DE4mZJtA.cjs → warningOverview-G5uze01-.cjs} +1 -1
  330. package/dist/{weather-DXSwe2wL.js → weather-B7dkVE6k.js} +2 -2
  331. package/dist/{weather-Cc-DzSlJ.cjs → weather-DOAZCxta.cjs} +1 -1
  332. package/dist/{windLin-BpJaU1Or.js → windLin-DbHtg5K4.js} +2 -2
  333. package/dist/{windLin-BWa_lMdL.cjs → windLin-k8OA6Yul.cjs} +1 -1
  334. package/package.json +1 -1
  335. package/dist/mixiotObjectListApi-DVYddjqi.cjs +0 -1
@@ -30,26 +30,26 @@ import { ElButton as xt, ElIcon as Tt } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/button/style/css";
32
32
  import "element-plus/es/components/icon/style/css";
33
- import { defineComponent as Nt, ref as M, computed as F, watch as P, watchEffect as At, onMounted as kt, openBlock as W, createElementBlock as it, normalizeStyle as st, unref as E, toDisplayString as _t, createCommentVNode as ot, createElementVNode as Y, createVNode as q, withCtx as G, createTextVNode as at, createBlock as wt, renderSlot as Mt, nextTick as rt } from "vue";
33
+ import { defineComponent as Nt, ref as M, computed as F, watch as P, watchEffect as At, onMounted as kt, openBlock as Q, createElementBlock as it, normalizeStyle as st, unref as E, toDisplayString as _t, createCommentVNode as ot, createElementVNode as W, createVNode as Y, withCtx as q, createTextVNode as at, createBlock as wt, renderSlot as Mt, nextTick as rt } from "vue";
34
34
  import { Download as Et } from "@element-plus/icons-vue";
35
- import { l as Rt, P as lt, O as Vt, d as ct, _ as $t } from "./index-BHBE19E2.js";
35
+ import { o as Rt, R as lt, Q as Vt, d as ct, _ as $t } from "./index-CCWU_se2.js";
36
36
  import "element-plus";
37
- import { E as Lt } from "./EChartComponentBase-BtAW2Yko.js";
37
+ import { E as Lt } from "./EChartComponentBase-DUyyaXgA.js";
38
38
  import { g as Ft } from "./titleStyle-BT5GlpAb.js";
39
- import It from "./history-BDIdK3AY.js";
39
+ import It from "./history-CIAU9_hA.js";
40
40
  import { A as zt, D as Ht } from "./ele-lin-icon-Dax-ZiWV.js";
41
41
  import { i as jt } from "./install-DNDCMXB3.js";
42
42
  import { u as Bt, i as Ut, a as Pt } from "./installCanvasRenderer-oDYkyVFy.js";
43
- import { i as Wt } from "./install-DbAuuRVv.js";
44
- import { i as Yt } from "./install-By9bYCXw.js";
45
- const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
43
+ import { i as Qt } from "./install-DbAuuRVv.js";
44
+ import { i as Wt } from "./install-By9bYCXw.js";
45
+ const Yt = { class: "mix-body" }, qt = { class: "toolbar" }, Gt = ["id"], Jt = {
46
46
  DEFAULT_ICON: Ht,
47
47
  ACTIVE_ICON: zt,
48
48
  NAME_CN: "深部温度场",
49
49
  NAME_EN: "DeepTemperatureField",
50
50
  ORDER: 16,
51
51
  PLATFORM: ["pc", "screen"]
52
- }, Qt = {
52
+ }, Kt = {
53
53
  titleColor: "#111",
54
54
  textColor: "#111",
55
55
  bgColor: "#fff",
@@ -87,7 +87,7 @@ const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
87
87
  }, ut = [
88
88
  { name: "温度场", fv: "temp_130", depth: -130, color: "#5470c6", object_id: "" },
89
89
  { name: "温度场", fv: "temp_140", depth: -140, color: "#5470c6", object_id: "" }
90
- ], Xt = ["name", "fv", "depth", "color", "object_id"], Zt = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], te = { useAlias: !1, multiObject: !0, source: "mosaic" }, ee = { DEFAULT: Kt, OPTIONS: Qt, DATA: ut, PARAMS: Xt, SOURCE: Zt, COMMON: te }, ne = /* @__PURE__ */ Nt(I(w({}, ee), {
90
+ ], Xt = ["name", "fv", "depth", "color", "object_id"], Zt = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], te = { useAlias: !1, multiObject: !0, source: "mosaic" }, ee = { DEFAULT: Jt, OPTIONS: Kt, DATA: ut, PARAMS: Xt, SOURCE: Zt, COMMON: te }, ne = /* @__PURE__ */ Nt(I(w({}, ee), {
91
91
  __name: "deepTemperatureField",
92
92
  props: {
93
93
  conf: { type: Object, default: () => ({ data: [] }) },
@@ -96,7 +96,7 @@ const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
96
96
  theme: { type: String, default: "light" }
97
97
  },
98
98
  setup(h) {
99
- Bt([Wt, Ut, Yt, Pt, jt]);
99
+ Bt([Qt, Ut, Wt, Pt, jt]);
100
100
  const a = h, p = Rt(), z = new It(), R = M(!1), N = M("");
101
101
  M([]);
102
102
  const H = (e) => {
@@ -141,13 +141,13 @@ const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
141
141
  this.Style.value = this.extractStyles(), this.applyTheme(), (t = this.props.conf.data) != null && t.length || (this.props.conf.data = ut), rt(() => this.initChart());
142
142
  }
143
143
  setHistoryData(t) {
144
- Q(t);
144
+ K(t);
145
145
  }
146
146
  setSocketData(t) {
147
- t && Q(t);
147
+ t && K(t);
148
148
  }
149
149
  onLinkEvent(t) {
150
- K(t);
150
+ J(t);
151
151
  }
152
152
  getChartOption() {
153
153
  var i, o, s, l, u, f, c, b;
@@ -244,14 +244,14 @@ const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
244
244
  n.href = t, n.download = `temperature-field-${Date.now()}.png`, n.click();
245
245
  }, ht = () => {
246
246
  L.value = null, _(), T();
247
- }, J = () => {
247
+ }, G = () => {
248
248
  var i, o, s;
249
249
  const e = ((i = a.conf) == null ? void 0 : i.options) || {}, t = ((o = e == null ? void 0 : e.linkChannel) == null ? void 0 : o.value) || $.value.linkChannel || "deepDisplacement", n = ((s = e == null ? void 0 : e.customChannel) == null ? void 0 : s.value) || "";
250
250
  return t === "custom" && n ? n : t;
251
- }, K = (e) => {
251
+ }, J = (e) => {
252
252
  var f, c, b, m;
253
253
  if (a.mode === "edit" || !e || !e.payload) return;
254
- const t = J();
254
+ const t = G();
255
255
  if ((f = e.topic) != null && f.channel && t && e.topic.channel !== t || !p.shouldHandle(e, "deepTemperatureField")) return;
256
256
  const n = e.payload, i = a.conf, o = (i == null ? void 0 : i.data) || [], s = (i == null ? void 0 : i.common) || {};
257
257
  if (n.type === "filter") {
@@ -323,7 +323,7 @@ const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
323
323
  return;
324
324
  }
325
325
  S.value = e;
326
- }, Q = (e) => {
326
+ }, K = (e) => {
327
327
  var u, f, c, b;
328
328
  const t = a.conf, n = (t == null ? void 0 : t.data) || [], i = (t == null ? void 0 : t.common) || {}, o = (i == null ? void 0 : i.source) || "mosaic";
329
329
  let s = e;
@@ -350,9 +350,9 @@ const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
350
350
  l.length && (_(), T());
351
351
  };
352
352
  P(
353
- () => p.channels[J()],
353
+ () => p.channels[G()],
354
354
  (e) => {
355
- e && K(e);
355
+ e && J(e);
356
356
  },
357
357
  { deep: !0 }
358
358
  ), At(() => {
@@ -418,26 +418,26 @@ const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
418
418
  X(), T();
419
419
  }), (e, t) => {
420
420
  const n = Tt, i = xt;
421
- return W(), it("div", {
421
+ return Q(), it("div", {
422
422
  class: "mix-component",
423
423
  style: st({ background: E($).bgColor, borderRadius: `${E($).radiusSize}px` })
424
424
  }, [
425
- E($).isHideTitle ? ot("", !0) : (W(), it("div", {
425
+ E($).isHideTitle ? ot("", !0) : (Q(), it("div", {
426
426
  key: 0,
427
427
  class: "mix-title",
428
428
  style: st(dt.value)
429
429
  }, _t(h.conf.caption || h.conf.name), 5)),
430
- Y("div", qt, [
431
- Y("div", Gt, [
432
- q(i, {
430
+ W("div", Yt, [
431
+ W("div", qt, [
432
+ Y(i, {
433
433
  size: "small",
434
434
  class: "export-btn",
435
435
  onClick: ft
436
436
  }, {
437
- default: G(() => [
438
- q(n, null, {
439
- default: G(() => [
440
- q(E(Et))
437
+ default: q(() => [
438
+ Y(n, null, {
439
+ default: q(() => [
440
+ Y(E(Et))
441
441
  ]),
442
442
  _: 1
443
443
  }),
@@ -445,22 +445,22 @@ const qt = { class: "mix-body" }, Gt = { class: "toolbar" }, Jt = ["id"], Kt = {
445
445
  ]),
446
446
  _: 1
447
447
  }),
448
- E($).showDebugClear ? (W(), wt(i, {
448
+ E($).showDebugClear ? (Q(), wt(i, {
449
449
  key: 0,
450
450
  size: "small",
451
451
  class: "clear-btn",
452
452
  onClick: ht
453
453
  }, {
454
- default: G(() => [...t[1] || (t[1] = [
454
+ default: q(() => [...t[1] || (t[1] = [
455
455
  at(" 清空过滤 ", -1)
456
456
  ])]),
457
457
  _: 1
458
458
  })) : ot("", !0)
459
459
  ]),
460
- Y("div", {
460
+ W("div", {
461
461
  class: "echart-container",
462
462
  id: E(mt)
463
- }, null, 8, Jt)
463
+ }, null, 8, Gt)
464
464
  ]),
465
465
  Mt(e.$slots, "default", {}, void 0, !0)
466
466
  ], 4);
@@ -10,17 +10,17 @@ var xt = (N, a, C) => a in N ? Ut(N, a, { enumerable: !0, configurable: !0, writ
10
10
  Gt.call(a, C) && xt(N, C, a[C]);
11
11
  return N;
12
12
  }, ot = (N, a) => Yt(N, Rt(a));
13
- import { ElSelect as Kt, ElOption as Wt, ElButton as Xt, ElIcon as qt } from "element-plus/es";
13
+ import { ElSelect as Kt, ElOption as Wt, ElButton as Qt, ElIcon as Xt } from "element-plus/es";
14
14
  import "element-plus/es/components/base/style/css";
15
15
  import "element-plus/es/components/button/style/css";
16
16
  import "element-plus/es/components/icon/style/css";
17
17
  import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
- import { defineComponent as Jt, ref as w, computed as F, watch as at, watchEffect as Qt, onMounted as te, openBlock as X, createElementBlock as rt, normalizeStyle as _t, unref as H, toDisplayString as ee, createCommentVNode as ne, createElementVNode as ct, createVNode as q, withCtx as ut, Fragment as ie, renderList as se, createBlock as le, createTextVNode as oe, renderSlot as ae, nextTick as Dt } from "vue";
19
+ import { defineComponent as qt, ref as w, computed as F, watch as at, watchEffect as Jt, onMounted as te, openBlock as Q, createElementBlock as rt, normalizeStyle as _t, unref as H, toDisplayString as ee, createCommentVNode as ne, createElementVNode as ct, createVNode as X, withCtx as ut, Fragment as ie, renderList as se, createBlock as le, createTextVNode as oe, renderSlot as ae, nextTick as Dt } from "vue";
20
20
  import { Download as re } from "@element-plus/icons-vue";
21
- import { l as ce, P as Ot, O as ue, _ as me } from "./index-BHBE19E2.js";
21
+ import { o as ce, R as kt, Q as ue, _ as me } from "./index-CCWU_se2.js";
22
22
  import "element-plus";
23
- import { E as de } from "./EChartComponentBase-BtAW2Yko.js";
23
+ import { E as de } from "./EChartComponentBase-DUyyaXgA.js";
24
24
  import { g as fe } from "./titleStyle-BT5GlpAb.js";
25
25
  import { u as pe, i as he, a as ve } from "./installCanvasRenderer-oDYkyVFy.js";
26
26
  import { i as ge } from "./install-DbAuuRVv.js";
@@ -66,10 +66,10 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
66
66
  label: "component.customChannel",
67
67
  showWhen: { linkChannel: "custom" }
68
68
  }
69
- }, kt = [
69
+ }, Ot = [
70
70
  { name: "累计位移", fv: "disp_130", depth: -130, color: "#5470c6", object_id: "" },
71
71
  { name: "累计位移", fv: "disp_140", depth: -140, color: "#5470c6", object_id: "" }
72
- ], Oe = ["name", "fv", "depth", "color", "object_id"], ke = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Te = { useAlias: !1, multiObject: !0, source: "mosaic" }, Ie = { DEFAULT: _e, OPTIONS: De, DATA: kt, PARAMS: Oe, SOURCE: ke, COMMON: Te }, we = /* @__PURE__ */ Jt(ot(lt({}, Ie), {
72
+ ], ke = ["name", "fv", "depth", "color", "object_id"], Oe = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Te = { useAlias: !1, multiObject: !0, source: "mosaic" }, Ie = { DEFAULT: _e, OPTIONS: De, DATA: Ot, PARAMS: ke, SOURCE: Oe, COMMON: Te }, we = /* @__PURE__ */ qt(ot(lt({}, Ie), {
73
73
  __name: "deepTrendChart",
74
74
  props: {
75
75
  conf: { type: Object, default: () => ({ data: [] }) },
@@ -79,7 +79,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
79
79
  },
80
80
  setup(N) {
81
81
  pe([ge, he, Le, ve, Ce]);
82
- const a = N, C = ce(), O = w([]), m = w([]), S = w(""), E = w([]), U = w("s"), mt = w(null), Y = w("hour");
82
+ const a = N, C = ce(), k = w([]), m = w([]), S = w(""), E = w([]), U = w("s"), mt = w(null), Y = w("hour");
83
83
  class Tt extends de {
84
84
  constructor() {
85
85
  super(...arguments), this.panelConfig = {};
@@ -104,7 +104,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
104
104
  }
105
105
  init() {
106
106
  var e;
107
- this.Style.value = this.extractStyles(), this.applyTheme(), (e = this.props.conf.data) != null && e.length || (this.props.conf.data = kt), Dt(() => this.initChart());
107
+ this.Style.value = this.extractStyles(), this.applyTheme(), (e = this.props.conf.data) != null && e.length || (this.props.conf.data = Ot), Dt(() => this.initChart());
108
108
  }
109
109
  setHistoryData(e) {
110
110
  St(e);
@@ -230,7 +230,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
230
230
  }, M = F(() => Y.value === "day" ? wt(m.value) : m.value), Et = F(
231
231
  () => pt.value.map((t) => ({
232
232
  value: t.time,
233
- label: Y.value === "day" ? j(t.time) : J(t.time)
233
+ label: Y.value === "day" ? j(t.time) : q(t.time)
234
234
  }))
235
235
  ), $ = F(() => {
236
236
  const t = S.value, e = M.value;
@@ -239,7 +239,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
239
239
  const n = String(t || "").trim(), i = String(e || "").trim();
240
240
  if (!n || !i) return !1;
241
241
  if (n === i) return !0;
242
- const l = J(n), s = J(i);
242
+ const l = q(n), s = q(i);
243
243
  return l && s && l === s ? !0 : Y.value !== "day" ? !1 : j(n) === j(i);
244
244
  }, Vt = (t, e) => {
245
245
  if (!(e != null && e.startDate) && !(e != null && e.endDate)) return !0;
@@ -278,7 +278,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
278
278
  return e.length <= 10 ? n * 1e3 : n;
279
279
  }
280
280
  return new Date(e).getTime();
281
- }, J = (t) => {
281
+ }, q = (t) => {
282
282
  if (t == null) return "";
283
283
  const e = typeof t == "string" ? t : String(t), n = vt(t), i = Number.isNaN(n) ? null : new Date(n);
284
284
  if (!i || Number.isNaN(i.getTime())) return e;
@@ -294,12 +294,12 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
294
294
  if (!t) return;
295
295
  const e = t.getDataURL({ type: "png", pixelRatio: 2, backgroundColor: "#fff" }), n = document.createElement("a");
296
296
  n.href = e, n.download = `deep-trend-${S.value || Date.now()}.png`, n.click();
297
- }, Q = () => {
297
+ }, J = () => {
298
298
  var i, l, s;
299
299
  const t = ((i = a.conf) == null ? void 0 : i.options) || {}, e = ((l = t == null ? void 0 : t.linkChannel) == null ? void 0 : l.value) || R.value.linkChannel || "deepDisplacement", n = ((s = t == null ? void 0 : t.customChannel) == null ? void 0 : s.value) || "";
300
300
  return e === "custom" && n ? n : e;
301
301
  }, G = () => {
302
- const t = Q();
302
+ const t = J();
303
303
  if (!t) return;
304
304
  const e = M.value.map((n) => n.time);
305
305
  C.publish(t, "deepTrendChart", {
@@ -358,7 +358,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
358
358
  }, Ct = (t) => {
359
359
  var d, h, f, u, p, L, I, y, V, K, B, P, Z;
360
360
  if (!t || !t.payload) return;
361
- const e = Q();
361
+ const e = J();
362
362
  if ((d = t.topic) != null && d.channel && e && t.topic.channel !== e || !C.shouldHandle(t, "deepTrendChart"))
363
363
  return;
364
364
  const n = t.payload;
@@ -390,9 +390,9 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
390
390
  if (!x || typeof x != "object" || Array.isArray(x)) return !1;
391
391
  const T = String(b || "").toLowerCase();
392
392
  return T.includes("time") && T.includes("range") || !!x.startDate && !!x.endDate;
393
- }), k = (nt == null ? void 0 : nt[1]) || g.timeRange || g.range || null;
394
- mt.value = k && (k.startDate || k.endDate) ? { startDate: k.startDate, endDate: k.endDate } : null;
395
- const it = String((k == null ? void 0 : k.granularity) || (g == null ? void 0 : g.granularity) || "").toLowerCase();
393
+ }), O = (nt == null ? void 0 : nt[1]) || g.timeRange || g.range || null;
394
+ mt.value = O && (O.startDate || O.endDate) ? { startDate: O.startDate, endDate: O.endDate } : null;
395
+ const it = String((O == null ? void 0 : O.granularity) || (g == null ? void 0 : g.granularity) || "").toLowerCase();
396
396
  (it === "day" || it === "hour") && (Y.value = it);
397
397
  const st = Object.entries(g || {}).find(([b, x]) => {
398
398
  if (!Array.isArray(x)) return !1;
@@ -412,15 +412,15 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
412
412
  }
413
413
  const i = a.conf, l = (i == null ? void 0 : i.data) || [], s = (i == null ? void 0 : i.common) || {};
414
414
  if (l.length > 0 && !(s != null && s.multiObject)) {
415
- const g = Ot(s, s == null ? void 0 : s.useAlias, a.uid) || ((V = l[0]) == null ? void 0 : V.object_id), A = (n == null ? void 0 : n.objectId) || (n == null ? void 0 : n.object_id);
415
+ const g = kt(s, s == null ? void 0 : s.useAlias, a.uid) || ((V = l[0]) == null ? void 0 : V.object_id), A = (n == null ? void 0 : n.objectId) || (n == null ? void 0 : n.object_id);
416
416
  if (g && A && String(g) !== String(A)) return;
417
417
  }
418
418
  if (Array.isArray(n == null ? void 0 : n.history)) {
419
- O.value = Lt(n.history), m.value = [...O.value], m.value.length && (S.value = m.value[m.value.length - 1].time), G(), D();
419
+ k.value = Lt(n.history), m.value = [...k.value], m.value.length && (S.value = m.value[m.value.length - 1].time), G(), D();
420
420
  return;
421
421
  }
422
422
  const r = (l[0] || {}).points_fv || "points", c = String((Z = (P = (K = n == null ? void 0 : n.time) != null ? K : n == null ? void 0 : n.datetime) != null ? P : (B = t.topic) == null ? void 0 : B.time) != null ? Z : Date.now()), v = tt(n, l, r);
423
- v.length && (O.value = [...O.value.slice(-199), { time: c, points: v }], m.value = [...O.value], S.value = c, G(), D());
423
+ v.length && (k.value = [...k.value.slice(-199), { time: c, points: v }], m.value = [...k.value], S.value = c, G(), D());
424
424
  }, St = (t) => {
425
425
  var f, u, p, L, I, y;
426
426
  const e = a.conf, n = (e == null ? void 0 : e.data) || [], i = (e == null ? void 0 : e.common) || {}, l = (i == null ? void 0 : i.source) || "mosaic";
@@ -429,16 +429,16 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
429
429
  m.value = Lt(s.history), m.value.length && (S.value = m.value[m.value.length - 1].time), G(), D();
430
430
  return;
431
431
  }
432
- const o = i != null && i.multiObject ? "" : Ot(i, i == null ? void 0 : i.useAlias, a.uid), r = o && ((p = (u = s == null ? void 0 : s[o]) == null ? void 0 : u[l]) == null ? void 0 : p.data) || ((L = s == null ? void 0 : s[l]) == null ? void 0 : L.data) || (s == null ? void 0 : s.data) || s, v = (n[0] || {}).points_fv || "points", d = String((y = (I = r == null ? void 0 : r.time) != null ? I : r == null ? void 0 : r.datetime) != null ? y : Date.now()), h = tt(r, n, v);
433
- h.length && (O.value = [...O.value.slice(-199), { time: d, points: h }], m.value = [...O.value], S.value = d, G(), D());
432
+ const o = i != null && i.multiObject ? "" : kt(i, i == null ? void 0 : i.useAlias, a.uid), r = o && ((p = (u = s == null ? void 0 : s[o]) == null ? void 0 : u[l]) == null ? void 0 : p.data) || ((L = s == null ? void 0 : s[l]) == null ? void 0 : L.data) || (s == null ? void 0 : s.data) || s, v = (n[0] || {}).points_fv || "points", d = String((y = (I = r == null ? void 0 : r.time) != null ? I : r == null ? void 0 : r.datetime) != null ? y : Date.now()), h = tt(r, n, v);
433
+ h.length && (k.value = [...k.value.slice(-199), { time: d, points: h }], m.value = [...k.value], S.value = d, G(), D());
434
434
  };
435
435
  return at(
436
- () => C.channels[Q()],
436
+ () => C.channels[J()],
437
437
  (t) => {
438
438
  t && Ct(t);
439
439
  },
440
440
  { deep: !0 }
441
- ), Qt(() => {
441
+ ), Jt(() => {
442
442
  a.conf.socketData && _.setSocketData(a.conf.socketData);
443
443
  }), at(
444
444
  () => {
@@ -465,19 +465,19 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
465
465
  }
466
466
  !S.value && m.value.length && (S.value = m.value[m.value.length - 1].time), D();
467
467
  }), (t, e) => {
468
- const n = Wt, i = Kt, l = qt, s = Xt;
469
- return X(), rt("div", {
468
+ const n = Wt, i = Kt, l = Xt, s = Qt;
469
+ return Q(), rt("div", {
470
470
  class: "mix-component",
471
471
  style: _t({ background: H(R).bgColor, borderRadius: `${H(R).radiusSize}px` })
472
472
  }, [
473
- H(R).isHideTitle ? ne("", !0) : (X(), rt("div", {
473
+ H(R).isHideTitle ? ne("", !0) : (Q(), rt("div", {
474
474
  key: 0,
475
475
  class: "mix-title",
476
476
  style: _t(It.value)
477
477
  }, ee(N.conf.caption || N.conf.name), 5)),
478
478
  ct("div", Ne, [
479
479
  ct("div", be, [
480
- q(i, {
480
+ X(i, {
481
481
  modelValue: S.value,
482
482
  "onUpdate:modelValue": e[0] || (e[0] = (o) => S.value = o),
483
483
  placeholder: "选择时间",
@@ -486,7 +486,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
486
486
  onChange: At
487
487
  }, {
488
488
  default: ut(() => [
489
- (X(!0), rt(ie, null, se(Et.value, (o) => (X(), le(n, {
489
+ (Q(!0), rt(ie, null, se(Et.value, (o) => (Q(), le(n, {
490
490
  key: o.value,
491
491
  label: o.label,
492
492
  value: o.value
@@ -494,15 +494,15 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
494
494
  ]),
495
495
  _: 1
496
496
  }, 8, ["modelValue"]),
497
- q(s, {
497
+ X(s, {
498
498
  size: "small",
499
499
  class: "export-btn",
500
500
  onClick: Ft
501
501
  }, {
502
502
  default: ut(() => [
503
- q(l, null, {
503
+ X(l, null, {
504
504
  default: ut(() => [
505
- q(H(re))
505
+ X(H(re))
506
506
  ]),
507
507
  _: 1
508
508
  }),
@@ -520,7 +520,7 @@ const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
520
520
  ], 4);
521
521
  };
522
522
  }
523
- })), qe = /* @__PURE__ */ me(we, [["__scopeId", "data-v-b061424b"]]);
523
+ })), Xe = /* @__PURE__ */ me(we, [["__scopeId", "data-v-b061424b"]]);
524
524
  export {
525
- qe as default
525
+ Xe as default
526
526
  };
@@ -1 +1 @@
1
- "use strict";var Fe=Object.defineProperty,Me=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var Ce=(b,a,S)=>a in b?Fe(b,a,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[a]=S,ie=(b,a)=>{for(var S in a||(a={}))ze.call(a,S)&&Ce(b,S,a[S]);if(Le)for(var S of Le(a))Be.call(a,S)&&Ce(b,S,a[S]);return b},le=(b,a)=>Me(b,$e(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=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 o=require("vue"),qe=require("@element-plus/icons-vue"),P=require("./index-D7PZNHF4.cjs");require("element-plus");const Pe=require("./EChartComponentBase-C4s5HSfS.cjs"),Ze=require("./titleStyle-NSnz6cUg.cjs"),se=require("./installCanvasRenderer-CyhM1Qpl.cjs"),He=require("./install-C8buXQPI.cjs"),Ue=require("./install-CltTFs4e.cjs"),Ye=require("./install-CYwVETsi.cjs"),je="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",Re="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",Ge={class:"mix-body"},Ke={class:"toolbar"},We=["id"],Xe={DEFAULT_ICON:je,ACTIVE_ICON:Re,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21,PLATFORM:["pc","screen"]},Je={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"}}},Se=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],Qe=["name","fv","depth","color","object_id"],et=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],tt={useAlias:!1,multiObject:!0,source:"mosaic"},nt={DEFAULT:Xe,OPTIONS:Je,DATA:Se,PARAMS:Qe,SOURCE:et,COMMON:tt},it=o.defineComponent(le(ie({},nt),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){se.use([He.install,se.install,Ue.install,se.install$1,Ye.install]);const a=b,S=P.useLinkStore(),O=o.ref([]),m=o.ref([]),y=o.ref(""),V=o.ref([]),Z=o.ref("s"),oe=o.ref(null),H=o.ref("hour");class ye extends Pe.EChartComponentBase{constructor(){super(...arguments),this.panelConfig={}}extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;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:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=Se),o.nextTick(()=>this.initChart())}setHistoryData(t){pe(t)}setSocketData(t){t&&pe(t)}onLinkEvent(t){he(t)}setPanelConfig(t){this.panelConfig=t||{}}getChartOption(){var g;M.value;const t=((g=a.conf)==null?void 0:g.data)||[],n=this.panelConfig||{},i=n.range__xAxis||n.range__x||n.range||null,s=n.range__yAxis||null,l=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,r=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null,c=Number.isFinite(s==null?void 0:s.min)?Number(s==null?void 0:s.min):null,u=Number.isFinite(s==null?void 0:s.max)?Number(s==null?void 0:s.max):null;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:f=>{var v,h,d,p;return`位移量: ${(h=(v=f==null?void 0:f.value)==null?void 0:v[0])!=null?h:"-"}<br/>高程: ${(p=(d=f==null?void 0:f.value)==null?void 0:d[1])!=null?p:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,position:"bottom",min:l!==null?l:null,max:r!==null?r:null,axisLine:{onZero:!1},axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,min:c!==null?c:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:(()=>{const f=ue.value.length?ue.value:M.value?[M.value]:[];if(!f.length)return[];const v=new Map;t.forEach((d,p)=>{const C=(d==null?void 0:d.name)||`序列${p+1}`;v.has(C)||v.set(C,{name:C,color:d==null?void 0:d.color,items:[]}),v.get(C).items.push(d)});const h=[];return f.forEach(d=>{const p=((d==null?void 0:d.points)||[])[0]||{};Array.from(v.values()).forEach(C=>{const E=C.items.map(N=>{var q,L;const w=N==null?void 0:N.fv,R=me(p,w,Z.value),z=Number(R),B=Number((L=(q=N==null?void 0:N.depth)!=null?q:p==null?void 0:p.depth)!=null?L:p==null?void 0:p.elevation);return!Number.isFinite(z)||!Number.isFinite(B)?null:[z,B]}).filter(Boolean).sort((N,w)=>N[1]-w[1]);h.push({name:C.name,type:"line",data:E,showSymbol:!0,symbolSize:6,lineStyle:{color:C.color||"#5470c6",width:2},itemStyle:{color:C.color||"#5470c6"}})})}),h})()}}}const k=new ye(a,"deepTrendChart"),re=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(a.conf.options)),Y=e=>{const t=String(e||"");if(!t)return"";const n=de(t);if(Number.isNaN(n))return t.slice(0,10);const i=new Date(n),s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${r}`},be=e=>{var s;const t=((s=a.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const r=Y(l.time);n.has(r)||n.set(r,[]),n.get(r).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,r])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(r.forEach(h=>{const d=((h==null?void 0:h.points)||[])[0]||{},p=Number(me(d,g,Z.value));Number.isFinite(p)&&(f+=p,v+=1)}),v>0){const h=Number((f/v).toFixed(6)),d=$(g,Z.value);c[g]=h,c[d]=h}}),Object.keys(c).length>0&&i.push({time:l,points:[c]})}),i.sort((l,r)=>String(l.time).localeCompare(String(r.time)))},F=o.computed(()=>H.value==="day"?be(m.value):m.value),xe=o.computed(()=>ce.value.map(e=>({value:e.time,label:H.value==="day"?Y(e.time):W(e.time)}))),M=o.computed(()=>{const e=y.value,t=F.value;return t.find(n=>n.time===e)||t[t.length-1]||null}),ae=(e,t)=>{const n=String(e||"").trim(),i=String(t||"").trim();if(!n||!i)return!1;if(n===i)return!0;const s=W(n),l=W(i);return s&&l&&s===l?!0:H.value!=="day"?!1:Y(n)===Y(i)},_e=(e,t)=>{if(!(t!=null&&t.startDate)&&!(t!=null&&t.endDate))return!0;const n=new Date(e).getTime();if(Number.isNaN(n))return!0;const i=t.startDate?new Date(t.startDate).getTime():Number.NEGATIVE_INFINITY,s=t.endDate?new Date(t.endDate).getTime():Number.POSITIVE_INFINITY;if(Number.isNaN(i)&&Number.isNaN(s))return!0;const l=Number.isNaN(i)?Number.NEGATIVE_INFINITY:i,r=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=r},ce=o.computed(()=>{if(!F.value.length)return[];const e=oe.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?F.value:F.value.filter(t=>_e(t.time,e))}),ue=o.computed(()=>{const e=ce.value;if(V.value.length>0)return e.filter(t=>V.value.some(n=>ae(t.time,n)));if(e.length>0){const t=e.find(n=>n.time===y.value);return t?[t]:[e[e.length-1]]}return M.value?[M.value]:[]});o.watch(()=>m.value.length,()=>{!V.value.length&&m.value.length&&(y.value=m.value[m.value.length-1].time)});const de=e=>{if(e==null)return Number.NaN;const t=typeof e=="string"?e.trim():String(e);if(!t)return Number.NaN;if(/^\d+$/.test(t)){const n=Number(t);return t.length<=10?n*1e3:n}return new Date(t).getTime()},W=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),n=de(e),i=Number.isNaN(n)?null:new Date(n);if(!i||Number.isNaN(i.getTime()))return t;const s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),c=String(i.getHours()).padStart(2,"0"),u=String(i.getMinutes()).padStart(2,"0"),g=String(i.getSeconds()).padStart(2,"0");return`${s}-${l}-${r} ${c}:${u}:${g}`},D=()=>{o.nextTick(()=>{const e=k.getChartInstance();e&&e.setOption(k.getChartOption(),!0)})},ke=()=>D(),De=()=>{const e=k.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`deep-trend-${y.value||Date.now()}.png`,n.click()},X=()=>{var i,s,l;const e=((i=a.conf)==null?void 0:i.options)||{},t=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||U.value.linkChannel||"deepDisplacement",n=((l=e==null?void 0:e.customChannel)==null?void 0:l.value)||"";return t==="custom"&&n?n:t},j=()=>{const e=X();if(!e)return;const t=F.value.map(n=>n.time);S.publish(e,"deepTrendChart",{objectId:a.uid||"",type:"timeList",timeList:t})},J=(e,t,n="points")=>{const i=e==null?void 0:e[n];if(Array.isArray(i)&&i.length)return i;const s={};let l=!1;return t.forEach(r=>{var g;const c=r==null?void 0:r.fv;if(!c)return;Oe(s,e,c),(s[c]!==void 0||s[$(c,"s")]!==void 0||s[$(c,"x")]!==void 0||s[$(c,"y")]!==void 0)&&(l=!0);const u=(g=e==null?void 0:e.elevation)!=null?g:e==null?void 0:e.depth;u!=null&&(s.elevation=u,s.depth=u)}),l?[s]:[]},$=(e,t)=>{if(!e)return e;const n=e.match(/_(\d+)$/);return n?`${t}_${n[1]}`:e},me=(e,t,n)=>{if(!e||!t)return;const s=[$(t,n),`${t}_${n}`,`${n}_${t}`].filter(Boolean);for(const l of s){const r=e==null?void 0:e[l];if(r!=null)return r}if(n==="s"){const l=e==null?void 0:e[t];if(l!=null)return l}},Oe=(e,t,n)=>{var l;if(!e||!t||!n)return;const i=(l=n.match(/_(\d+)$/))==null?void 0:l[1],s=t==null?void 0:t[n];s!=null&&(e[n]=s),i&&["s","x","y"].forEach(r=>{const c=`${r}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=a.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((r,c)=>{var v,h;const u=(r==null?void 0:r[0])||r||{},g=String((h=(v=u==null?void 0:u.time)!=null?v:u==null?void 0:u.datetime)!=null?h:c),f=J(u,t,i);f.length&&s.push({time:g,points:f})}),s},he=e=>{var f,v,h,d,p,C,E,N,w,R,z,B,q;if(!e||!e.payload)return;const t=X();if((f=e.topic)!=null&&f.channel&&t&&e.topic.channel!==t||!S.shouldHandle(e,"deepTrendChart"))return;const n=e.payload;if((n==null?void 0:n.type)==="filter"){const L=n.filter||n,A=Object.entries(L||{}).find(([x,_])=>{if(typeof _!="string")return!1;if(String(x||"").toLowerCase().includes("direction"))return!0;const Ae=String(_).toLowerCase();return["s","x","y"].includes(Ae)}),Te=L.direction||L.displacementDirection||(A==null?void 0:A[1])||"",Q={s:"s",x:"x",y:"y"}[String(Te).toLowerCase()],G=String((n==null?void 0:n.objectId)||(n==null?void 0:n.object_id)||"").trim(),Ie=((v=a.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[a.uid,re,(d=a.conf)==null?void 0:d.id,(p=a.conf)==null?void 0:p.uid,(C=a.conf)==null?void 0:C.name,(E=a.conf)==null?void 0:E.caption,(N=a.conf)==null?void 0:N.type,Ee,"deepTrendChart","DeepTrendChart","深部趋势图"].map(x=>String(x||"").trim()).filter(Boolean),Ve=new Set(ve),we=new Set(ve.map(x=>x.toLowerCase()));if(!(!G||Ve.has(G)||we.has(G.toLowerCase())||G.startsWith("deepTrendChart_")))return;const ee=Object.entries(L||{}).find(([x,_])=>{if(!_||typeof _!="object"||Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")&&I.includes("range")||!!_.startDate&&!!_.endDate}),T=(ee==null?void 0:ee[1])||L.timeRange||L.range||null;oe.value=T&&(T.startDate||T.endDate)?{startDate:T.startDate,endDate:T.endDate}:null;const te=String((T==null?void 0:T.granularity)||(L==null?void 0:L.granularity)||"").toLowerCase();(te==="day"||te==="hour")&&(H.value=te);const ne=Object.entries(L||{}).find(([x,_])=>{if(!Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")||I.includes("date")}),ge=L.timeList||L.selectedTimes||(ne==null?void 0:ne[1]);if(k.setPanelConfig(L),Array.isArray(ge)&&(V.value=ge.map(x=>String(x)),V.value.length>0)){const x=V.value[0],_=m.value.find(I=>ae(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=a.conf,s=(i==null?void 0:i.data)||[],l=(i==null?void 0:i.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const L=P.getObjectId(l,l==null?void 0:l.useAlias,a.uid)||((w=s[0])==null?void 0:w.object_id),A=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(L&&A&&String(L)!==String(A))return}if(Array.isArray(n==null?void 0:n.history)){O.value=fe(n.history),m.value=[...O.value],m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const c=(s[0]||{}).points_fv||"points",u=String((q=(B=(R=n==null?void 0:n.time)!=null?R:n==null?void 0:n.datetime)!=null?B:(z=e.topic)==null?void 0:z.time)!=null?q:Date.now()),g=J(n,s,c);g.length&&(O.value=[...O.value.slice(-199),{time:u,points:g}],m.value=[...O.value],y.value=u,j(),D())},pe=e=>{var h,d,p,C,E,N;const t=a.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},s=(i==null?void 0:i.source)||"mosaic";let l=e;if(["statistics","calculate"].includes(s)&&(l=P.formatStatisticsResult(l,n)),(h=l==null?void 0:l.history)!=null&&h.length){m.value=fe(l.history),m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const r=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,a.uid),c=r&&((p=(d=l==null?void 0:l[r])==null?void 0:d[s])==null?void 0:p.data)||((C=l==null?void 0:l[s])==null?void 0:C.data)||(l==null?void 0:l.data)||l,g=(n[0]||{}).points_fv||"points",f=String((N=(E=c==null?void 0:c.time)!=null?E:c==null?void 0:c.datetime)!=null?N:Date.now()),v=J(c,n,g);v.length&&(O.value=[...O.value.slice(-199),{time:f,points:v}],m.value=[...O.value],y.value=f,j(),D())};return o.watch(()=>S.channels[X()],e=>{e&&he(e)},{deep:!0}),o.watchEffect(()=>{a.conf.socketData&&k.setSocketData(a.conf.socketData)}),o.watch(()=>{var e;return(e=a.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(a.mode==="edit"&&!m.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}];m.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(t=>le(ie({},t),{disp:t.disp+1}))}],y.value=m.value[0].time}!y.value&&m.value.length&&(y.value=m.value[m.value.length-1].time),D()}),(e,t)=>{const n=K.ElOption,i=K.ElSelect,s=K.ElIcon,l=K.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(U).bgColor,borderRadius:`${o.unref(U).radiusSize}px`})},[o.unref(U).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Ne.value)},o.toDisplayString(b.conf.caption||b.conf.name),5)),o.createElementVNode("div",Ge,[o.createElementVNode("div",Ke,[o.createVNode(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=r=>y.value=r),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,r=>(o.openBlock(),o.createBlock(n,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(l,{size:"small",class:"export-btn",onClick:De},{default:o.withCtx(()=>[o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(o.unref(qe.Download))]),_:1}),t[1]||(t[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(re)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b061424b"]]);exports.default=lt;
1
+ "use strict";var Fe=Object.defineProperty,Me=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var Ce=(b,a,S)=>a in b?Fe(b,a,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[a]=S,ie=(b,a)=>{for(var S in a||(a={}))ze.call(a,S)&&Ce(b,S,a[S]);if(Le)for(var S of Le(a))Be.call(a,S)&&Ce(b,S,a[S]);return b},le=(b,a)=>Me(b,$e(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=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 o=require("vue"),qe=require("@element-plus/icons-vue"),P=require("./index-BdWR_FTA.cjs");require("element-plus");const Pe=require("./EChartComponentBase-ejDV5NEw.cjs"),Ze=require("./titleStyle-NSnz6cUg.cjs"),se=require("./installCanvasRenderer-CyhM1Qpl.cjs"),He=require("./install-C8buXQPI.cjs"),Ue=require("./install-CltTFs4e.cjs"),Ye=require("./install-CYwVETsi.cjs"),je="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",Re="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",Ge={class:"mix-body"},Ke={class:"toolbar"},We=["id"],Xe={DEFAULT_ICON:je,ACTIVE_ICON:Re,NAME_CN:"深部趋势图",NAME_EN:"DeepTrendChart",ORDER:21,PLATFORM:["pc","screen"]},Je={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"}}},Se=[{name:"累计位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"累计位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],Qe=["name","fv","depth","color","object_id"],et=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],tt={useAlias:!1,multiObject:!0,source:"mosaic"},nt={DEFAULT:Xe,OPTIONS:Je,DATA:Se,PARAMS:Qe,SOURCE:et,COMMON:tt},it=o.defineComponent(le(ie({},nt),{__name:"deepTrendChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){se.use([He.install,se.install,Ue.install,se.install$1,Ye.install]);const a=b,S=P.useLinkStore(),O=o.ref([]),m=o.ref([]),y=o.ref(""),V=o.ref([]),Z=o.ref("s"),oe=o.ref(null),H=o.ref("hour");class ye extends Pe.EChartComponentBase{constructor(){super(...arguments),this.panelConfig={}}extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;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:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=Se),o.nextTick(()=>this.initChart())}setHistoryData(t){pe(t)}setSocketData(t){t&&pe(t)}onLinkEvent(t){he(t)}setPanelConfig(t){this.panelConfig=t||{}}getChartOption(){var g;M.value;const t=((g=a.conf)==null?void 0:g.data)||[],n=this.panelConfig||{},i=n.range__xAxis||n.range__x||n.range||null,s=n.range__yAxis||null,l=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,r=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null,c=Number.isFinite(s==null?void 0:s.min)?Number(s==null?void 0:s.min):null,u=Number.isFinite(s==null?void 0:s.max)?Number(s==null?void 0:s.max):null;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:f=>{var v,h,d,p;return`位移量: ${(h=(v=f==null?void 0:f.value)==null?void 0:v[0])!=null?h:"-"}<br/>高程: ${(p=(d=f==null?void 0:f.value)==null?void 0:d[1])!=null?p:"-"}m`}},xAxis:{type:"value",name:this.Style.value.xName,nameLocation:"middle",nameGap:28,position:"bottom",min:l!==null?l:null,max:r!==null?r:null,axisLine:{onZero:!1},axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},yAxis:{type:"value",name:this.Style.value.yName,min:c!==null?c:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:(()=>{const f=ue.value.length?ue.value:M.value?[M.value]:[];if(!f.length)return[];const v=new Map;t.forEach((d,p)=>{const C=(d==null?void 0:d.name)||`序列${p+1}`;v.has(C)||v.set(C,{name:C,color:d==null?void 0:d.color,items:[]}),v.get(C).items.push(d)});const h=[];return f.forEach(d=>{const p=((d==null?void 0:d.points)||[])[0]||{};Array.from(v.values()).forEach(C=>{const E=C.items.map(N=>{var q,L;const w=N==null?void 0:N.fv,R=me(p,w,Z.value),z=Number(R),B=Number((L=(q=N==null?void 0:N.depth)!=null?q:p==null?void 0:p.depth)!=null?L:p==null?void 0:p.elevation);return!Number.isFinite(z)||!Number.isFinite(B)?null:[z,B]}).filter(Boolean).sort((N,w)=>N[1]-w[1]);h.push({name:C.name,type:"line",data:E,showSymbol:!0,symbolSize:6,lineStyle:{color:C.color||"#5470c6",width:2},itemStyle:{color:C.color||"#5470c6"}})})}),h})()}}}const k=new ye(a,"deepTrendChart"),re=k.getEchartId();k.setupLifecycle();const U=k.getStyle(),Ne=o.computed(()=>Ze.generateTitleStyle(a.conf.options)),Y=e=>{const t=String(e||"");if(!t)return"";const n=de(t);if(Number.isNaN(n))return t.slice(0,10);const i=new Date(n),s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0");return`${s}-${l}-${r}`},be=e=>{var s;const t=((s=a.conf)==null?void 0:s.data)||[];if(!e.length||!t.length)return e;const n=new Map;e.forEach(l=>{const r=Y(l.time);n.has(r)||n.set(r,[]),n.get(r).push(l)});const i=[];return Array.from(n.entries()).forEach(([l,r])=>{const c={};t.forEach(u=>{const g=u==null?void 0:u.fv;if(!g)return;let f=0,v=0;if(r.forEach(h=>{const d=((h==null?void 0:h.points)||[])[0]||{},p=Number(me(d,g,Z.value));Number.isFinite(p)&&(f+=p,v+=1)}),v>0){const h=Number((f/v).toFixed(6)),d=$(g,Z.value);c[g]=h,c[d]=h}}),Object.keys(c).length>0&&i.push({time:l,points:[c]})}),i.sort((l,r)=>String(l.time).localeCompare(String(r.time)))},F=o.computed(()=>H.value==="day"?be(m.value):m.value),xe=o.computed(()=>ce.value.map(e=>({value:e.time,label:H.value==="day"?Y(e.time):W(e.time)}))),M=o.computed(()=>{const e=y.value,t=F.value;return t.find(n=>n.time===e)||t[t.length-1]||null}),ae=(e,t)=>{const n=String(e||"").trim(),i=String(t||"").trim();if(!n||!i)return!1;if(n===i)return!0;const s=W(n),l=W(i);return s&&l&&s===l?!0:H.value!=="day"?!1:Y(n)===Y(i)},_e=(e,t)=>{if(!(t!=null&&t.startDate)&&!(t!=null&&t.endDate))return!0;const n=new Date(e).getTime();if(Number.isNaN(n))return!0;const i=t.startDate?new Date(t.startDate).getTime():Number.NEGATIVE_INFINITY,s=t.endDate?new Date(t.endDate).getTime():Number.POSITIVE_INFINITY;if(Number.isNaN(i)&&Number.isNaN(s))return!0;const l=Number.isNaN(i)?Number.NEGATIVE_INFINITY:i,r=Number.isNaN(s)?Number.POSITIVE_INFINITY:s;return n>=l&&n<=r},ce=o.computed(()=>{if(!F.value.length)return[];const e=oe.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?F.value:F.value.filter(t=>_e(t.time,e))}),ue=o.computed(()=>{const e=ce.value;if(V.value.length>0)return e.filter(t=>V.value.some(n=>ae(t.time,n)));if(e.length>0){const t=e.find(n=>n.time===y.value);return t?[t]:[e[e.length-1]]}return M.value?[M.value]:[]});o.watch(()=>m.value.length,()=>{!V.value.length&&m.value.length&&(y.value=m.value[m.value.length-1].time)});const de=e=>{if(e==null)return Number.NaN;const t=typeof e=="string"?e.trim():String(e);if(!t)return Number.NaN;if(/^\d+$/.test(t)){const n=Number(t);return t.length<=10?n*1e3:n}return new Date(t).getTime()},W=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),n=de(e),i=Number.isNaN(n)?null:new Date(n);if(!i||Number.isNaN(i.getTime()))return t;const s=i.getFullYear(),l=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0"),c=String(i.getHours()).padStart(2,"0"),u=String(i.getMinutes()).padStart(2,"0"),g=String(i.getSeconds()).padStart(2,"0");return`${s}-${l}-${r} ${c}:${u}:${g}`},D=()=>{o.nextTick(()=>{const e=k.getChartInstance();e&&e.setOption(k.getChartOption(),!0)})},ke=()=>D(),De=()=>{const e=k.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`deep-trend-${y.value||Date.now()}.png`,n.click()},X=()=>{var i,s,l;const e=((i=a.conf)==null?void 0:i.options)||{},t=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||U.value.linkChannel||"deepDisplacement",n=((l=e==null?void 0:e.customChannel)==null?void 0:l.value)||"";return t==="custom"&&n?n:t},j=()=>{const e=X();if(!e)return;const t=F.value.map(n=>n.time);S.publish(e,"deepTrendChart",{objectId:a.uid||"",type:"timeList",timeList:t})},J=(e,t,n="points")=>{const i=e==null?void 0:e[n];if(Array.isArray(i)&&i.length)return i;const s={};let l=!1;return t.forEach(r=>{var g;const c=r==null?void 0:r.fv;if(!c)return;Oe(s,e,c),(s[c]!==void 0||s[$(c,"s")]!==void 0||s[$(c,"x")]!==void 0||s[$(c,"y")]!==void 0)&&(l=!0);const u=(g=e==null?void 0:e.elevation)!=null?g:e==null?void 0:e.depth;u!=null&&(s.elevation=u,s.depth=u)}),l?[s]:[]},$=(e,t)=>{if(!e)return e;const n=e.match(/_(\d+)$/);return n?`${t}_${n[1]}`:e},me=(e,t,n)=>{if(!e||!t)return;const s=[$(t,n),`${t}_${n}`,`${n}_${t}`].filter(Boolean);for(const l of s){const r=e==null?void 0:e[l];if(r!=null)return r}if(n==="s"){const l=e==null?void 0:e[t];if(l!=null)return l}},Oe=(e,t,n)=>{var l;if(!e||!t||!n)return;const i=(l=n.match(/_(\d+)$/))==null?void 0:l[1],s=t==null?void 0:t[n];s!=null&&(e[n]=s),i&&["s","x","y"].forEach(r=>{const c=`${r}_${i}`,u=t==null?void 0:t[c];u!=null&&(e[c]=u)})},fe=e=>{var l;const t=((l=a.conf)==null?void 0:l.data)||[],i=(t[0]||{}).points_fv||"points",s=[];return e.forEach((r,c)=>{var v,h;const u=(r==null?void 0:r[0])||r||{},g=String((h=(v=u==null?void 0:u.time)!=null?v:u==null?void 0:u.datetime)!=null?h:c),f=J(u,t,i);f.length&&s.push({time:g,points:f})}),s},he=e=>{var f,v,h,d,p,C,E,N,w,R,z,B,q;if(!e||!e.payload)return;const t=X();if((f=e.topic)!=null&&f.channel&&t&&e.topic.channel!==t||!S.shouldHandle(e,"deepTrendChart"))return;const n=e.payload;if((n==null?void 0:n.type)==="filter"){const L=n.filter||n,A=Object.entries(L||{}).find(([x,_])=>{if(typeof _!="string")return!1;if(String(x||"").toLowerCase().includes("direction"))return!0;const Ae=String(_).toLowerCase();return["s","x","y"].includes(Ae)}),Te=L.direction||L.displacementDirection||(A==null?void 0:A[1])||"",Q={s:"s",x:"x",y:"y"}[String(Te).toLowerCase()],G=String((n==null?void 0:n.objectId)||(n==null?void 0:n.object_id)||"").trim(),Ie=((v=a.conf)==null?void 0:v.data)||[],Ee=String(((h=Ie[0])==null?void 0:h.configPanelId)||"").trim(),ve=[a.uid,re,(d=a.conf)==null?void 0:d.id,(p=a.conf)==null?void 0:p.uid,(C=a.conf)==null?void 0:C.name,(E=a.conf)==null?void 0:E.caption,(N=a.conf)==null?void 0:N.type,Ee,"deepTrendChart","DeepTrendChart","深部趋势图"].map(x=>String(x||"").trim()).filter(Boolean),Ve=new Set(ve),we=new Set(ve.map(x=>x.toLowerCase()));if(!(!G||Ve.has(G)||we.has(G.toLowerCase())||G.startsWith("deepTrendChart_")))return;const ee=Object.entries(L||{}).find(([x,_])=>{if(!_||typeof _!="object"||Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")&&I.includes("range")||!!_.startDate&&!!_.endDate}),T=(ee==null?void 0:ee[1])||L.timeRange||L.range||null;oe.value=T&&(T.startDate||T.endDate)?{startDate:T.startDate,endDate:T.endDate}:null;const te=String((T==null?void 0:T.granularity)||(L==null?void 0:L.granularity)||"").toLowerCase();(te==="day"||te==="hour")&&(H.value=te);const ne=Object.entries(L||{}).find(([x,_])=>{if(!Array.isArray(_))return!1;const I=String(x||"").toLowerCase();return I.includes("time")||I.includes("date")}),ge=L.timeList||L.selectedTimes||(ne==null?void 0:ne[1]);if(k.setPanelConfig(L),Array.isArray(ge)&&(V.value=ge.map(x=>String(x)),V.value.length>0)){const x=V.value[0],_=m.value.find(I=>ae(I.time,x));_&&(y.value=_.time)}if(Q&&["s","x","y"].includes(Q)){Z.value=Q,D();return}D();return}const i=a.conf,s=(i==null?void 0:i.data)||[],l=(i==null?void 0:i.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const L=P.getObjectId(l,l==null?void 0:l.useAlias,a.uid)||((w=s[0])==null?void 0:w.object_id),A=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(L&&A&&String(L)!==String(A))return}if(Array.isArray(n==null?void 0:n.history)){O.value=fe(n.history),m.value=[...O.value],m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const c=(s[0]||{}).points_fv||"points",u=String((q=(B=(R=n==null?void 0:n.time)!=null?R:n==null?void 0:n.datetime)!=null?B:(z=e.topic)==null?void 0:z.time)!=null?q:Date.now()),g=J(n,s,c);g.length&&(O.value=[...O.value.slice(-199),{time:u,points:g}],m.value=[...O.value],y.value=u,j(),D())},pe=e=>{var h,d,p,C,E,N;const t=a.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},s=(i==null?void 0:i.source)||"mosaic";let l=e;if(["statistics","calculate"].includes(s)&&(l=P.formatStatisticsResult(l,n)),(h=l==null?void 0:l.history)!=null&&h.length){m.value=fe(l.history),m.value.length&&(y.value=m.value[m.value.length-1].time),j(),D();return}const r=i!=null&&i.multiObject?"":P.getObjectId(i,i==null?void 0:i.useAlias,a.uid),c=r&&((p=(d=l==null?void 0:l[r])==null?void 0:d[s])==null?void 0:p.data)||((C=l==null?void 0:l[s])==null?void 0:C.data)||(l==null?void 0:l.data)||l,g=(n[0]||{}).points_fv||"points",f=String((N=(E=c==null?void 0:c.time)!=null?E:c==null?void 0:c.datetime)!=null?N:Date.now()),v=J(c,n,g);v.length&&(O.value=[...O.value.slice(-199),{time:f,points:v}],m.value=[...O.value],y.value=f,j(),D())};return o.watch(()=>S.channels[X()],e=>{e&&he(e)},{deep:!0}),o.watchEffect(()=>{a.conf.socketData&&k.setSocketData(a.conf.socketData)}),o.watch(()=>{var e;return(e=a.conf)==null?void 0:e.options},()=>{k.getStyle().value=k.extractStyles(),D()},{deep:!0}),o.onMounted(()=>{if(a.mode==="edit"&&!m.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}];m.value=[{time:"2026-01-20 15:29:59",points:e},{time:"2026-01-20 16:29:59",points:e.map(t=>le(ie({},t),{disp:t.disp+1}))}],y.value=m.value[0].time}!y.value&&m.value.length&&(y.value=m.value[m.value.length-1].time),D()}),(e,t)=>{const n=K.ElOption,i=K.ElSelect,s=K.ElIcon,l=K.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(U).bgColor,borderRadius:`${o.unref(U).radiusSize}px`})},[o.unref(U).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Ne.value)},o.toDisplayString(b.conf.caption||b.conf.name),5)),o.createElementVNode("div",Ge,[o.createElementVNode("div",Ke,[o.createVNode(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=r=>y.value=r),placeholder:"选择时间",size:"small",class:"time-select",onChange:ke},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(xe.value,r=>(o.openBlock(),o.createBlock(n,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(l,{size:"small",class:"export-btn",onClick:De},{default:o.withCtx(()=>[o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(o.unref(qe.Download))]),_:1}),t[1]||(t[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(re)},null,8,We)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),lt=P._export_sfc(it,[["__scopeId","data-v-b061424b"]]);exports.default=lt;
@@ -1,2 +1,2 @@
1
- "use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(c,n,a)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,x=(c,n)=>{for(var a in n||(n={}))w.call(n,a)&&I(c,a,n[a]);if(A)for(var a of A(n))B.call(n,a)&&I(c,a,n[a]);return c},N=(c,n)=>T(c,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-D7PZNHF4.cjs");require("element-plus");const q=require("./EChartComponentBase-C4s5HSfS.cjs"),z=require("./ele-lin-icon-Dke_1AmT.cjs"),R={class:"panel-header"},$=["id"],H={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11,PLATFORM:["pc","screen"]},P={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"}}},U=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],W=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:H,OPTIONS:P,DATA:U,PARAMS:W,SOURCE:G,COMMON:J,ITEMS:K},X=t.defineComponent(N(x({},Q),{__name:"deviceOnlineStatus",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c,a=new Map;class k extends q.EChartComponentBase{extractStyles(){var o,u,s,d,f,h,C,y,g,O,_,E;const e=(o=this.props.conf)==null?void 0:o.options,r=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||"gnss",i=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return{title:((d=e==null?void 0:e.title)==null?void 0:d.value)||"设备在线状态",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#f5f7fa",panelBgColor:((h=e==null?void 0:e.panelBgColor)==null?void 0:h.value)||"#ffffff",textColor:((C=e==null?void 0:e.textColor)==null?void 0:C.value)||"#333333",titleFontSize:((y=e==null?void 0:e.titleFontSize)==null?void 0:y.value)||16,onlineColor:((g=e==null?void 0:e.onlineColor)==null?void 0:g.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"&&i?i:r}}getChartOption(){return m(this.Style.value)}setHistoryData(e){var i;if(!e||!this.chartObj)return;const r=((i=this.props.conf)==null?void 0:i.data)||[];!Array.isArray(r)||!r.length||(r.forEach((o,u)=>{if(!o.fv)return;const s=Array.isArray(e)?e[u]:null,d=Array.isArray(s)&&s.length?s[0]:null;if(!d)return;const f=d[o.fv];if(f==null)return;const h=f===1||f===!0||f==="online"||f==="1"||f==="true",C=o.object_id||o.name||"";C&&a.set(C,h)}),this.chartObj.setOption(m(this.Style.value),!0))}setSocketData(e){var i;if(!e)return;(((i=this.props.conf)==null?void 0:i.data)||[]).forEach(o=>{if(!o.fv)return;const u=o.object_id||o.name||"";if(!u)return;const s=this.extractDataValue(e,o.fv);if(s!=null){const d=s===1||s===!0||s==="online"||s==="1"||s==="true";a.set(u,d)}}),this.chartObj&&this.chartObj.setOption(m(this.Style.value),!0)}onLinkEvent(e){}}const v=new k(n,"deviceOnlineStatus");v.setupLifecycle();const p=v.getStyle(),D=v.getEchartId(),b=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),F=t.computed(()=>{if(b.value.length===0&&n.mode==="edit")return{online:23,offline:3,total:26};let e=0,r=0;return b.value.forEach(i=>{const o=i.object_id||i.name||"";a.get(o)===!1?r++:e++}),{online:e,offline:r,total:e+r}}),j=t.computed(()=>({backgroundColor:p.value.bgColor})),m=l=>{const{online:e,offline:r,total:i}=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:o=>`${o} ${o==="在线"?e:r}`},series:[{type:"pie",radius:["50%","72%"],center:["50%","45%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${i}}
1
+ "use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var I=(c,n,a)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,x=(c,n)=>{for(var a in n||(n={}))w.call(n,a)&&I(c,a,n[a]);if(A)for(var a of A(n))B.call(n,a)&&I(c,a,n[a]);return c},N=(c,n)=>T(c,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const V=require("./index-BdWR_FTA.cjs");require("element-plus");const q=require("./EChartComponentBase-ejDV5NEw.cjs"),z=require("./ele-lin-icon-Dke_1AmT.cjs"),R={class:"panel-header"},$=["id"],H={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"设备在线状态",NAME_EN:"Device Online Status",ORDER:11,PLATFORM:["pc","screen"]},P={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"}}},U=[{name:"设备1",fv:"online_status",fvDeviceName:"",object_id:""}],W=["object_id","name","fv","fvDeviceName"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=200,Q={DEFAULT:H,OPTIONS:P,DATA:U,PARAMS:W,SOURCE:G,COMMON:J,ITEMS:K},X=t.defineComponent(N(x({},Q),{__name:"deviceOnlineStatus",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c,a=new Map;class k extends q.EChartComponentBase{extractStyles(){var o,u,s,d,f,h,C,y,g,O,_,E;const e=(o=this.props.conf)==null?void 0:o.options,r=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||"gnss",i=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return{title:((d=e==null?void 0:e.title)==null?void 0:d.value)||"设备在线状态",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#f5f7fa",panelBgColor:((h=e==null?void 0:e.panelBgColor)==null?void 0:h.value)||"#ffffff",textColor:((C=e==null?void 0:e.textColor)==null?void 0:C.value)||"#333333",titleFontSize:((y=e==null?void 0:e.titleFontSize)==null?void 0:y.value)||16,onlineColor:((g=e==null?void 0:e.onlineColor)==null?void 0:g.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"&&i?i:r}}getChartOption(){return m(this.Style.value)}setHistoryData(e){var i;if(!e||!this.chartObj)return;const r=((i=this.props.conf)==null?void 0:i.data)||[];!Array.isArray(r)||!r.length||(r.forEach((o,u)=>{if(!o.fv)return;const s=Array.isArray(e)?e[u]:null,d=Array.isArray(s)&&s.length?s[0]:null;if(!d)return;const f=d[o.fv];if(f==null)return;const h=f===1||f===!0||f==="online"||f==="1"||f==="true",C=o.object_id||o.name||"";C&&a.set(C,h)}),this.chartObj.setOption(m(this.Style.value),!0))}setSocketData(e){var i;if(!e)return;(((i=this.props.conf)==null?void 0:i.data)||[]).forEach(o=>{if(!o.fv)return;const u=o.object_id||o.name||"";if(!u)return;const s=this.extractDataValue(e,o.fv);if(s!=null){const d=s===1||s===!0||s==="online"||s==="1"||s==="true";a.set(u,d)}}),this.chartObj&&this.chartObj.setOption(m(this.Style.value),!0)}onLinkEvent(e){}}const v=new k(n,"deviceOnlineStatus");v.setupLifecycle();const p=v.getStyle(),D=v.getEchartId(),b=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),F=t.computed(()=>{if(b.value.length===0&&n.mode==="edit")return{online:23,offline:3,total:26};let e=0,r=0;return b.value.forEach(i=>{const o=i.object_id||i.name||"";a.get(o)===!1?r++:e++}),{online:e,offline:r,total:e+r}}),j=t.computed(()=>({backgroundColor:p.value.bgColor})),m=l=>{const{online:e,offline:r,total:i}=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:o=>`${o} ${o==="在线"?e:r}`},series:[{type:"pie",radius:["50%","72%"],center:["50%","45%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${i}}
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}}]}]}},S=()=>{for(let e=0;e<23;e++)a.set(`dev-${e}`,!0);for(let e=23;e<26;e++)a.set(`dev-${e}`,!1);const l=v.getChartInstance();l&&l.setOption(m(p.value),!0)};return t.onMounted(()=>{n.mode==="edit"&&S(),setTimeout(()=>{var l;return(l=v.getChartInstance())==null?void 0:l.resize()},200)}),t.watch(()=>n.conf,()=>{n.mode==="edit"&&S()},{deep:!0}),(l,e)=>(t.openBlock(),t.createElementBlock("div",{class:"device-online-status",style:t.normalizeStyle(j.value)},[t.createElementVNode("div",R,[e[0]||(e[0]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",{class:"panel-title",style:t.normalizeStyle({color:t.unref(p).textColor,fontSize:t.unref(p).titleFontSize+"px"})},t.toDisplayString(t.unref(p).title),5)]),t.createElementVNode("div",{id:t.unref(D),class:"chart-container"},null,8,$),t.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),Y=V._export_sfc(X,[["__scopeId","data-v-5a3fb2e8"]]);exports.default=Y;
@@ -12,9 +12,9 @@ var k = (s, t, n) => t in s ? w(s, t, { enumerable: !0, configurable: !0, writab
12
12
  }, I = (s, t) => L(s, B(t));
13
13
  import { defineComponent as H, computed as S, onMounted as W, watch as P, openBlock as U, createElementBlock as V, normalizeStyle as F, createElementVNode as h, unref as b, toDisplayString as G, renderSlot as q } from "vue";
14
14
  import "html2canvas";
15
- import { _ as J } from "./index-BHBE19E2.js";
15
+ import { _ as J } from "./index-CCWU_se2.js";
16
16
  import "element-plus";
17
- import { E as K } from "./EChartComponentBase-BtAW2Yko.js";
17
+ import { E as K } from "./EChartComponentBase-DUyyaXgA.js";
18
18
  import { A as Q, D as X } from "./ele-lin-icon-Dax-ZiWV.js";
19
19
  const Y = { class: "panel-header" }, Z = ["id"], ee = {
20
20
  DEFAULT_ICON: X,
@@ -1 +1 @@
1
- "use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=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={}))M.call(a,s)&&S(u,s,a[s]);if(h)for(var s of h(a))R.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 T=require("./BaseComponent-BHUHnLj-.cjs"),y=require("./index-D7PZNHF4.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),L={class:"device-status-wrapper"},I={class:"panel-header"},F={class:"header-left"},z={class:"header-title"},H={class:"status-cards"},P=["onClick"],U={class:"status-label"},q={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,PLATFORM:["pc","screen"]},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=>({v2279d942:e.unref(c).bgColor,v282717bb:e.unref(c).borderColor,v0266b85a:e.unref(c).textColor,v919cec46:e.unref(c).accentColor,v09e5435a:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v114e47f4:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}`:"none"}));const a=u;class s extends T.BaseComponent{extractStyles(){var o,i,n,r,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:((n=t==null?void 0:t.borderColor)==null?void 0:n.value)||"#2a4a6a",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.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 r=i.source||"mosaic";["statistics","calculate"].includes(r)&&(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(n=>n.object_id&&n.fv)&&o.forEach(n=>{if(!n.object_id||!n.fv)return;const r=this.extractDataValue(t,n.fv);r!=null&&(n.value=r)})}}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 n;const l=((n=a.conf)==null?void 0:n.data)||[],t=l.filter(r=>r.status===0).length,o=l.filter(r=>r.status===1).length,i=l.filter(r=>r.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}]}),b=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("实时更新"),B=l=>{p.value=p.value===l?null:l},w=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",L,[e.createElementVNode("div",I,[e.createElementVNode("div",F,[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",z,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:n=>B(i)},[e.createElementVNode("div",{class:"status-count",style:e.normalizeStyle({color:o.color})},e.toDisplayString(o.count),5),e.createElementVNode("div",U,e.toDisplayString(o.name),1)],12,P))),128))]),e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.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:w(o.status)})},e.toDisplayString(j(o.status)),5)])]))),128)),b.value.length===0?(e.openBlock(),e.createElementBlock("div",X," 暂无设备数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(l.$slots,"default",{},void 0,!0)]))}})),ne=y._export_sfc(ce,[["__scopeId","data-v-d3c9d7b3"]]);exports.default=ne;
1
+ "use strict";var x=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=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={}))M.call(a,s)&&S(u,s,a[s]);if(h)for(var s of h(a))R.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 T=require("./BaseComponent-DoQ1oLoA.cjs"),y=require("./index-BdWR_FTA.cjs"),V=require("./ele-gag-icon-Ce1hl9NI.cjs"),L={class:"device-status-wrapper"},I={class:"panel-header"},F={class:"header-left"},z={class:"header-title"},H={class:"status-cards"},P=["onClick"],U={class:"status-label"},q={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,PLATFORM:["pc","screen"]},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=>({v2279d942:e.unref(c).bgColor,v282717bb:e.unref(c).borderColor,v0266b85a:e.unref(c).textColor,v919cec46:e.unref(c).accentColor,v09e5435a:e.unref(c).glowEffect?`drop-shadow(0 0 6px ${e.unref(c).accentColor})`:"none",v114e47f4:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}`:"none"}));const a=u;class s extends T.BaseComponent{extractStyles(){var o,i,n,r,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:((n=t==null?void 0:t.borderColor)==null?void 0:n.value)||"#2a4a6a",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.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 r=i.source||"mosaic";["statistics","calculate"].includes(r)&&(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(n=>n.object_id&&n.fv)&&o.forEach(n=>{if(!n.object_id||!n.fv)return;const r=this.extractDataValue(t,n.fv);r!=null&&(n.value=r)})}}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 n;const l=((n=a.conf)==null?void 0:n.data)||[],t=l.filter(r=>r.status===0).length,o=l.filter(r=>r.status===1).length,i=l.filter(r=>r.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}]}),b=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("实时更新"),B=l=>{p.value=p.value===l?null:l},w=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",L,[e.createElementVNode("div",I,[e.createElementVNode("div",F,[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",z,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:n=>B(i)},[e.createElementVNode("div",{class:"status-count",style:e.normalizeStyle({color:o.color})},e.toDisplayString(o.count),5),e.createElementVNode("div",U,e.toDisplayString(o.name),1)],12,P))),128))]),e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.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:w(o.status)})},e.toDisplayString(j(o.status)),5)])]))),128)),b.value.length===0?(e.openBlock(),e.createElementBlock("div",X," 暂无设备数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(l.$slots,"default",{},void 0,!0)]))}})),ne=y._export_sfc(ce,[["__scopeId","data-v-d3c9d7b3"]]);exports.default=ne;