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
@@ -1,4 +1,4 @@
1
- "use strict";var ee=Object.defineProperty,te=Object.defineProperties;var se=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols,ae=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ie=Reflect.get;var F=(C,h,y)=>h in C?ee(C,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):C[h]=y,M=(C,h)=>{for(var y in h||(h={}))ne.call(h,y)&&F(C,y,h[y]);if(P)for(var y of P(h))oe.call(h,y)&&F(C,y,h[y]);return C},T=(C,h)=>te(C,se(h));var U=(C,h,y)=>ie(ae(C),y,h);var H=(C,h,y)=>new Promise((v,x)=>{var q=S=>{try{N(y.next(S))}catch(O){x(O)}},V=S=>{try{N(y.throw(S))}catch(O){x(O)}},N=S=>S.done?v(S.value):Promise.resolve(S.value).then(q,V);N((y=y.apply(C,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=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 s=require("vue");require("html2canvas");const G=require("./index-D7PZNHF4.cjs");require("element-plus");const le=require("./EChartComponentBase-C4s5HSfS.cjs"),re=require("./request-DBDym05o.cjs"),W=require("./ele-glbModel-icon-ByACDCrv.cjs"),ce=require("@element-plus/icons-vue"),ue={class:"panel-header"},de={class:"header-left"},he={class:"header-title"},fe={key:0,class:"time-range-text"},me={class:"header-right"},pe={class:"chart-area"},ve=["id"],ge={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"指标时序演变曲线",NAME_EN:"Time Series Evolution Curve",ORDER:12,PLATFORM:["pc","screen"]},ye={title:{value:"指标时序演变曲线",type:"string",label:"component.timeSeries.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},seriesStyles:{value:"",type:"textarea",label:"component.timeSeries.seriesStyles",placeholder:'JSON格式,例如:{"widthDaily": {"color": "#4a90d9", "lineStyle": "solid"}}'},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"}},showTimeRange:{value:!0,type:"checkbox",label:"component.timeSeries.showTimeRange"}},be=[{name:"指标1",fv:"indicator1",unit:"mm",color:"#4a90d9",lineStyle:"solid",fvDeviceName:"deviceId",object_id:""},{name:"指标2",fv:"indicator2",unit:"°",color:"#52c41a",lineStyle:"dashed",fvDeviceName:"deviceId",object_id:""}],Ce=["name","fv","unit","color","lineStyle","fvDeviceName","object_id"],Se=["mosaic","statistics","statisticsRealtime"],De={useAlias:!1,multiObject:!1,source:"mosaic"},_e={DEFAULT:ge,OPTIONS:ye,DATA:be,PARAMS:Ce,SOURCE:Se,COMMON:De},ke=s.defineComponent(T(M({},_e),{__name:"timeSeries",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const h=C;class y extends le.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData={times:[],series:{}},this.historyCache=new Map,this.selectedSeriesIndex=[],this.selectionInitialized=!1}extractStyles(){var d,t,l,c,g,D,b,k;const{options:e}=this.props.conf,a=((d=e==null?void 0:e.linkChannel)==null?void 0:d.value)||"deepDisplacement",f=((t=e==null?void 0:e.customChannel)==null?void 0:t.value)||"",u=a==="custom"&&f?f:a,m=((l=this.props.conf)==null?void 0:l.data)||[],n=["#4a90d9","#52c41a","#ff7875","#ffc069","#b37feb","#36cfc9","#fadb14","#ff85c0"],r=["solid","dashed","solid","dashed","solid","dashed","solid","dashed"];let p={};try{const _=((c=e==null?void 0:e.seriesStyles)==null?void 0:c.value)||"";_&&_.trim()&&(p=JSON.parse(_))}catch(_){console.warn("[timeSeries] 解析系列样式配置失败:",_)}const o={};return m.forEach((_,E)=>{const j=_.fv||`series_${E}`,w=p[j]||{};o[j]={color:w.color||_.color||n[E%n.length],lineStyle:w.lineStyle||_.lineStyle||r[E%r.length]}}),{title:((g=e==null?void 0:e.title)==null?void 0:g.value)||"指标时序演变曲线",bgColor:((D=e==null?void 0:e.bgColor)==null?void 0:D.value)||"#ffffff",textColor:((b=e==null?void 0:e.textColor)==null?void 0:b.value)||"#333333",seriesConfig:o,showTimeRange:((k=e==null?void 0:e.showTimeRange)==null?void 0:k.value)!==!1,linkChannel:u}}getMockData(){var n;const e=((n=this.props.conf)==null?void 0:n.data)||[],a=[],f={};e.forEach(r=>{const p=r.fv||"series";f[p]=[]});const u=new Date,m={};e.forEach((r,p)=>{const o=r.fv||"series";m[o]=(p+1)*5+Math.random()*10});for(let r=23;r>=0;r--){const p=new Date(u.getTime()-r*60*60*1e3),o=p.toISOString().slice(0,19).replace("T"," ");a.push(o),e.forEach((d,t)=>{const l=d.fv||"series",c=p.getHours();let g=0;const D=t%3;if(D===0){const b=Math.sin((c/12+t*.5)*Math.PI)*10+(Math.random()-.5)*5;m[l]+=Math.max(0,b*.1),g=m[l]}else if(D===1){const b=t*2;(c+b)%24>=2&&(c+b)%24<=6?g=Math.random()*.8+t*.5:(c+b)%24>=14&&(c+b)%24<=18?g=Math.random()*.6+t*.3:Math.random()>.85&&(g=Math.random()*.3)}else{const b=t*Math.PI/3;g=m[l]+Math.sin((c/12+b)*Math.PI)*3+(Math.random()-.5)*2}f[l].push(Number(g.toFixed(2)))})}return{times:a,series:f}}getChartOption(){var p;const e=this.Style.value,a=((p=this.props.conf)==null?void 0:p.data)||[],u=this.chartData.times.length>0?this.chartData:this.getMockData(),m=[],n=[];a.forEach((o,d)=>{var E,j,w,z;if(!(this.selectionInitialized?this.selectedSeriesIndex.includes(d):!0))return;const l=o.fv||`series_${d}`,c=o.name||`指标${d+1}`,g=o.unit||"",D=g?`${c}(${g})`:c,b=((j=(E=e.seriesConfig)==null?void 0:E[l])==null?void 0:j.color)||"#4a90d9",k=((z=(w=e.seriesConfig)==null?void 0:w[l])==null?void 0:z.lineStyle)||"solid";m.push(D);const _=u.series[l]||[];n.push({name:D,type:"line",data:_,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:b,width:2,type:k},itemStyle:{color:b,borderColor:"#fff",borderWidth:1}})});const r={grid:{top:60,right:20,bottom:e.showTimeRange?70:50,left:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#ddd",borderWidth:1,textStyle:{color:e.textColor},formatter:o=>{if(!o||o.length===0)return"";let t=`<div style="margin-bottom: 4px;"><strong>${o[0].axisValue}</strong></div>`;return o.forEach(l=>{const c=l.value!==null&&l.value!==void 0?Number(l.value).toFixed(2):"--";t+=`<div style="margin: 2px 0;">
1
+ "use strict";var ee=Object.defineProperty,te=Object.defineProperties;var se=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols,ae=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ie=Reflect.get;var F=(C,h,y)=>h in C?ee(C,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):C[h]=y,M=(C,h)=>{for(var y in h||(h={}))ne.call(h,y)&&F(C,y,h[y]);if(P)for(var y of P(h))oe.call(h,y)&&F(C,y,h[y]);return C},T=(C,h)=>te(C,se(h));var U=(C,h,y)=>ie(ae(C),y,h);var H=(C,h,y)=>new Promise((v,x)=>{var q=S=>{try{N(y.next(S))}catch(O){x(O)}},V=S=>{try{N(y.throw(S))}catch(O){x(O)}},N=S=>S.done?v(S.value):Promise.resolve(S.value).then(q,V);N((y=y.apply(C,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=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 s=require("vue");require("html2canvas");const G=require("./index-BdWR_FTA.cjs");require("element-plus");const le=require("./EChartComponentBase-ejDV5NEw.cjs"),re=require("./request-Wvyc5KfO.cjs"),W=require("./ele-glbModel-icon-ByACDCrv.cjs"),ce=require("@element-plus/icons-vue"),ue={class:"panel-header"},de={class:"header-left"},he={class:"header-title"},fe={key:0,class:"time-range-text"},me={class:"header-right"},pe={class:"chart-area"},ve=["id"],ge={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"指标时序演变曲线",NAME_EN:"Time Series Evolution Curve",ORDER:12,PLATFORM:["pc","screen"]},ye={title:{value:"指标时序演变曲线",type:"string",label:"component.timeSeries.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},seriesStyles:{value:"",type:"textarea",label:"component.timeSeries.seriesStyles",placeholder:'JSON格式,例如:{"widthDaily": {"color": "#4a90d9", "lineStyle": "solid"}}'},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"}},showTimeRange:{value:!0,type:"checkbox",label:"component.timeSeries.showTimeRange"}},be=[{name:"指标1",fv:"indicator1",unit:"mm",color:"#4a90d9",lineStyle:"solid",fvDeviceName:"deviceId",object_id:""},{name:"指标2",fv:"indicator2",unit:"°",color:"#52c41a",lineStyle:"dashed",fvDeviceName:"deviceId",object_id:""}],Ce=["name","fv","unit","color","lineStyle","fvDeviceName","object_id"],Se=["mosaic","statistics","statisticsRealtime"],De={useAlias:!1,multiObject:!1,source:"mosaic"},_e={DEFAULT:ge,OPTIONS:ye,DATA:be,PARAMS:Ce,SOURCE:Se,COMMON:De},ke=s.defineComponent(T(M({},_e),{__name:"timeSeries",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const h=C;class y extends le.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData={times:[],series:{}},this.historyCache=new Map,this.selectedSeriesIndex=[],this.selectionInitialized=!1}extractStyles(){var d,t,l,c,g,D,b,k;const{options:e}=this.props.conf,a=((d=e==null?void 0:e.linkChannel)==null?void 0:d.value)||"deepDisplacement",f=((t=e==null?void 0:e.customChannel)==null?void 0:t.value)||"",u=a==="custom"&&f?f:a,m=((l=this.props.conf)==null?void 0:l.data)||[],n=["#4a90d9","#52c41a","#ff7875","#ffc069","#b37feb","#36cfc9","#fadb14","#ff85c0"],r=["solid","dashed","solid","dashed","solid","dashed","solid","dashed"];let p={};try{const _=((c=e==null?void 0:e.seriesStyles)==null?void 0:c.value)||"";_&&_.trim()&&(p=JSON.parse(_))}catch(_){console.warn("[timeSeries] 解析系列样式配置失败:",_)}const o={};return m.forEach((_,E)=>{const j=_.fv||`series_${E}`,w=p[j]||{};o[j]={color:w.color||_.color||n[E%n.length],lineStyle:w.lineStyle||_.lineStyle||r[E%r.length]}}),{title:((g=e==null?void 0:e.title)==null?void 0:g.value)||"指标时序演变曲线",bgColor:((D=e==null?void 0:e.bgColor)==null?void 0:D.value)||"#ffffff",textColor:((b=e==null?void 0:e.textColor)==null?void 0:b.value)||"#333333",seriesConfig:o,showTimeRange:((k=e==null?void 0:e.showTimeRange)==null?void 0:k.value)!==!1,linkChannel:u}}getMockData(){var n;const e=((n=this.props.conf)==null?void 0:n.data)||[],a=[],f={};e.forEach(r=>{const p=r.fv||"series";f[p]=[]});const u=new Date,m={};e.forEach((r,p)=>{const o=r.fv||"series";m[o]=(p+1)*5+Math.random()*10});for(let r=23;r>=0;r--){const p=new Date(u.getTime()-r*60*60*1e3),o=p.toISOString().slice(0,19).replace("T"," ");a.push(o),e.forEach((d,t)=>{const l=d.fv||"series",c=p.getHours();let g=0;const D=t%3;if(D===0){const b=Math.sin((c/12+t*.5)*Math.PI)*10+(Math.random()-.5)*5;m[l]+=Math.max(0,b*.1),g=m[l]}else if(D===1){const b=t*2;(c+b)%24>=2&&(c+b)%24<=6?g=Math.random()*.8+t*.5:(c+b)%24>=14&&(c+b)%24<=18?g=Math.random()*.6+t*.3:Math.random()>.85&&(g=Math.random()*.3)}else{const b=t*Math.PI/3;g=m[l]+Math.sin((c/12+b)*Math.PI)*3+(Math.random()-.5)*2}f[l].push(Number(g.toFixed(2)))})}return{times:a,series:f}}getChartOption(){var p;const e=this.Style.value,a=((p=this.props.conf)==null?void 0:p.data)||[],u=this.chartData.times.length>0?this.chartData:this.getMockData(),m=[],n=[];a.forEach((o,d)=>{var E,j,w,z;if(!(this.selectionInitialized?this.selectedSeriesIndex.includes(d):!0))return;const l=o.fv||`series_${d}`,c=o.name||`指标${d+1}`,g=o.unit||"",D=g?`${c}(${g})`:c,b=((j=(E=e.seriesConfig)==null?void 0:E[l])==null?void 0:j.color)||"#4a90d9",k=((z=(w=e.seriesConfig)==null?void 0:w[l])==null?void 0:z.lineStyle)||"solid";m.push(D);const _=u.series[l]||[];n.push({name:D,type:"line",data:_,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:b,width:2,type:k},itemStyle:{color:b,borderColor:"#fff",borderWidth:1}})});const r={grid:{top:60,right:20,bottom:e.showTimeRange?70:50,left:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#ddd",borderWidth:1,textStyle:{color:e.textColor},formatter:o=>{if(!o||o.length===0)return"";let t=`<div style="margin-bottom: 4px;"><strong>${o[0].axisValue}</strong></div>`;return o.forEach(l=>{const c=l.value!==null&&l.value!==void 0?Number(l.value).toFixed(2):"--";t+=`<div style="margin: 2px 0;">
2
2
  <span style="display: inline-block; width: 10px; height: 10px; background: ${l.color}; border-radius: 50%; margin-right: 6px;"></span>
3
3
  ${l.seriesName}: <strong>${c}</strong>
4
4
  </div>`}),t}},legend:{show:!0,top:10,left:"center",data:m,textStyle:{color:e.textColor,fontSize:12},itemGap:30},xAxis:{type:"category",boundaryGap:!1,data:u.times,axisLine:{lineStyle:{color:"#e0e0e0"}},axisLabel:{color:e.textColor,fontSize:12,formatter:o=>{if(o&&o.includes(" ")){const[d,t]=o.split(" "),[l,c,g]=d.split("-"),[D,b]=t.split(":");return`${c}-${g} ${D}:${b}`}return o}},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{type:"value",name:"",nameTextStyle:{color:e.textColor,fontSize:12},axisLine:{show:!1},axisLabel:{color:e.textColor,fontSize:12},splitLine:{lineStyle:{color:"#f0f0f0",type:"dashed"}}},series:n};return e.showTimeRange&&(r.dataZoom=[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",xAxisIndex:0,bottom:10,height:18,filterMode:"none",borderColor:"#e5e7eb",backgroundColor:"#f3f4f6",fillerColor:"rgba(59, 130, 246, 0.18)",handleSize:14,handleStyle:{color:"#ffffff",borderColor:"#93c5fd",borderWidth:1,shadowBlur:2,shadowColor:"rgba(0,0,0,0.15)"},moveHandleSize:0,showDetail:!1,showDataShadow:!1}]),r}setSelectedSeriesIndex(e){this.selectionInitialized=!0,this.selectedSeriesIndex=Array.isArray(e)?[...e]:[]}isSelectionInitialized(){return this.selectionInitialized}setHistoryData(e){var d;if(!this.chartObj)return;const a=((d=this.props.conf)==null?void 0:d.data)||[];if(!Array.isArray(e==null?void 0:e.history)||!e.history.length)return;const f=t=>{var l,c,g;return String((g=(c=(l=t==null?void 0:t.time)!=null?l:t==null?void 0:t.datetime)!=null?c:t==null?void 0:t.start_time)!=null?g:"")},u=(t,l)=>{const c=t==null?void 0:t[l];return c==null||c===""?0:Number(c)};a[0];const m=Array.isArray(e.history[0])?e.history[0]:[],n=[],r={};a.forEach(t=>{const l=(t==null?void 0:t.fv)||"series";r[l]=[]});const p=t=>{const l=[];return t.forEach(c=>{const g=f(c);g&&l.push(g)}),l};let o=p(m);if(!o.length)for(let t=0;t<a.length;t++){const l=Array.isArray(e.history[t])?e.history[t]:[],c=p(l);if(c.length){o=c;break}}if(o.length&&(n.push(...o),a.forEach((t,l)=>{const c=(t==null?void 0:t.fv)||"series",g=Array.isArray(e.history[l])?e.history[l]:[],D=new Map;g.forEach(b=>{const k=f(b);k&&D.set(k,u(b,c))}),r[c]=o.map(b=>{var k;return(k=D.get(b))!=null?k:0})}),n.length>0)){this.chartData={times:n,series:r};const t=n[n.length-1];this.historyCache.set(t,{times:n,series:r}),S.value=[...new Set([...S.value,t])].slice(-200),O.value||(O.value=t),this.updateChart()}}setSocketData(e){var r;if(!this.chartObj||!e)return;const a=((r=this.props.conf)==null?void 0:r.data)||[],u=this.getSource()==="mosaic"?e.datetime:e.start_time;if(!u)return;let m=!1;const n={};if(a.forEach(p=>{const o=p.fv||"series",d=this.extractDataValue(e,o);d!=null&&(m=!0,n[o]=d)}),m){this.chartData.series||(this.chartData.series={}),this.chartData.times.push(u),a.forEach(d=>{const t=d.fv||"series";this.chartData.series[t]||(this.chartData.series[t]=[]),this.chartData.series[t].push(n[t]||0)}),this.chartData.times.length>100&&(this.chartData.times.shift(),Object.keys(this.chartData.series).forEach(d=>{this.chartData.series[d].length>0&&this.chartData.series[d].shift()}));const o=String(u);this.historyCache.set(o,{times:[...this.chartData.times],series:Object.fromEntries(Object.entries(this.chartData.series).map(([d,t])=>[d,[...t]]))}),S.value=[...new Set([...S.value,o])].slice(-200),O.value=o,this.updateChart()}}updateChart(e){if(!this.chartObj)return;const a=e||this.getChartOption();this.chartObj.setOption(a,!0)}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}init(){return H(this,null,function*(){yield U(y.prototype,this,"init").call(this),this.props.mode==="edit"&&this.chartData.times.length===0&&(this.chartData=this.getMockData())})}onLinkEvent(e){Y(e)}}const v=new y(h,"timeSeries");v.setupLifecycle();const x=v.getStyle(),q=v.getEchartId(),V=s.inject("session",null),N=s.computed(()=>{var e;return(((e=h.conf)==null?void 0:e.data)||[]).map((a,f)=>{const u=a.unit||"",m=a.name||`指标${f+1}`;return{label:u?`${m}(${u})`:m,value:f}})}),S=s.ref([]),O=s.ref(""),I=s.ref([]);s.watch(()=>{var i;return(i=h.conf)==null?void 0:i.data},i=>{if(i&&Array.isArray(i))if(!v.isSelectionInitialized())I.value=i.map((e,a)=>a),v.setSelectedSeriesIndex(I.value);else{const e=i.length;I.value=I.value.filter(a=>a>=0&&a<e),v.setSelectedSeriesIndex(I.value)}},{immediate:!0});const J=s.computed(()=>({backgroundColor:x.value.bgColor,color:x.value.textColor})),R=s.computed(()=>x.value.showTimeRange),B=s.computed(()=>{var u;if(!R.value)return"";const i=((u=v.chartData)==null?void 0:u.times)||[];if(!i.length)return"";const e=[...i].sort(),a=e[0],f=e[e.length-1];return`${a} ~ ${f}`}),K=i=>{v.getChartInstance()&&(v.setSelectedSeriesIndex(i),v.updateChart())},Z=i=>{var a;if(!i)return;const e=(a=v.historyCache)==null?void 0:a.get(i);e&&(v.chartData=e,v.updateChart())},Q=()=>{const i=v.getChartInstance();if(!i)return;const e=i.getDataURL({type:"png",pixelRatio:2,backgroundColor:x.value.bgColor}),a=document.createElement("a");a.download=`指标时序演变曲线_${new Date().getTime()}.png`,a.href=e,a.click()},A=s.ref(null);s.computed(()=>{var a,f;if(!A.value)return null;const e=((f=(((a=h.conf)==null?void 0:a.data)||[])[0])==null?void 0:f.fvDeviceName)||"deviceId";return A.value[e]||A.value.deviceId||A.value.name||"未知设备"});const X=i=>{var m;if(!V||!i||h.mode!=="preview")return;const e=v.getCurrentObjectId();if(e===i)return;console.log(`[timeSeries] 切换订阅: ${e} → ${i}`),v.setCurrentObjectId(i);const a=((m=h.conf)==null?void 0:m.data)||[],f=T(M({},h.conf),{data:a.map(n=>T(M({},n),{object_id:i}))}),u=re.formatRequest(f,h.uid,"timeSeries");V.registerComponent({id:h.conf.id,request:u,onUpdate:(n,r)=>{n==="realtime"?v.setSocketData(r):n==="history"&&v.setHistoryData(r)}})},Y=i=>{var d;if(!i||!i.topic||!i.payload){console.warn("[timeSeries] 收到格式错误的事件:",i);return}const{topic:e,payload:a}=i,f=x.value.linkChannel;if(e.channel!==f){console.warn(`[timeSeries] 频道不匹配: 期望 ${f}, 收到 ${e.channel}`);return}const{objectId:u,deviceId:m}=a,n=h.conf,r=(n==null?void 0:n.data)||[],p=(n==null?void 0:n.common)||{};if(r.length>0&&!(p!=null&&p.multiObject)){const t=G.getObjectId(p,p==null?void 0:p.useAlias,h.uid)||((d=r[0])==null?void 0:d.object_id),l=u||(a==null?void 0:a.object_id);if(t&&l&&String(t)!==String(l))return}console.log("[timeSeries] 收到联动事件:",{topic:{channel:e.channel,source:e.source,time:e.time,uniqueId:e.uniqueId},payload:a}),A.value=T(M({},a),{_topic:e});let o=null;u&&(o=r.find(t=>String(t.object_id)===String(u))),!o&&m&&(o=r.find(t=>t.deviceId===m||t.name===m)),o&&a?(console.log(`[timeSeries] 匹配 object_id=${u}`),L(a)):a&&L(a),u&&X(u)},L=i=>{var m,n,r;const e=v.getChartInstance();if(!e)return;const a=((m=h.conf)==null?void 0:m.data)||[],f=((n=a[0])==null?void 0:n.fv)||"cumulativePrecipitation",u=((r=a[1])==null?void 0:r.fv)||"realtimePrecipitation";if(i.data&&Array.isArray(i.data)){const p=[],o=[],d=[];i.data.forEach(t=>{t.time&&(p.push(t.time),o.push(t[f]||0),d.push(t[u]||0))}),e.setOption({xAxis:[{data:p}],series:[{data:o},{data:d}]})}};return s.watch(()=>h.conf,()=>{v.init()},{deep:!0}),s.onMounted(()=>{v.init()}),s.onUnmounted(()=>{v.cleanup()}),(i,e)=>{const a=$.ElOption,f=$.ElSelect,u=$.ElIcon,m=$.ElButton;return s.openBlock(),s.createElementBlock("div",{class:"time-series-wrapper",style:s.normalizeStyle(J.value)},[s.createElementVNode("div",ue,[s.createElementVNode("div",de,[s.createElementVNode("span",he,s.toDisplayString(s.unref(x).title),1),R.value&&B.value?(s.openBlock(),s.createElementBlock("span",fe,s.toDisplayString(B.value),1)):s.createCommentVNode("",!0),S.value.length?(s.openBlock(),s.createBlock(f,{key:1,modelValue:O.value,"onUpdate:modelValue":e[0]||(e[0]=n=>O.value=n),placeholder:"选择时间",size:"small",class:"time-select",onChange:Z},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(S.value,n=>(s.openBlock(),s.createBlock(a,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):s.createCommentVNode("",!0)]),s.createElementVNode("div",me,[s.createVNode(f,{modelValue:I.value,"onUpdate:modelValue":e[1]||(e[1]=n=>I.value=n),placeholder:"选择指标",size:"small",multiple:"","collapse-tags":"",class:"indicator-select",onChange:K},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(N.value,n=>(s.openBlock(),s.createBlock(a,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s.createVNode(m,{size:"small",onClick:Q,class:"export-btn"},{default:s.withCtx(()=>[s.createVNode(u,null,{default:s.withCtx(()=>[s.createVNode(s.unref(ce.Download))]),_:1}),e[2]||(e[2]=s.createTextVNode(" 导出图像 ",-1))]),_:1})])]),s.createElementVNode("div",pe,[s.createElementVNode("div",{id:s.unref(q),class:"chart-container"},null,8,ve)]),s.renderSlot(i.$slots,"default",{},void 0,!0)],4)}}})),xe=G._export_sfc(ke,[["__scopeId","data-v-2a38951d"]]);exports.default=xe;
@@ -34,10 +34,10 @@ import "element-plus/es/components/select/style/css";
34
34
  import "element-plus/es/components/option/style/css";
35
35
  import { defineComponent as Ce, inject as De, computed as R, ref as z, watch as Y, onMounted as _e, onUnmounted as xe, openBlock as k, createElementBlock as L, normalizeStyle as Oe, createElementVNode as A, toDisplayString as ee, unref as B, createCommentVNode as te, createBlock as q, withCtx as P, Fragment as se, renderList as ae, createVNode as F, createTextVNode as Ie, renderSlot as ke } from "vue";
36
36
  import "html2canvas";
37
- import { P as Ee, _ as Ae } from "./index-BHBE19E2.js";
37
+ import { R as Ee, _ as Ae } from "./index-CCWU_se2.js";
38
38
  import "element-plus";
39
- import { E as je } from "./EChartComponentBase-BtAW2Yko.js";
40
- import { formatRequest as Me } from "./request-CsLYkQ1F.js";
39
+ import { E as je } from "./EChartComponentBase-DUyyaXgA.js";
40
+ import { formatRequest as Me } from "./request-DHoyVWU-.js";
41
41
  import { A as Te, D as we } from "./ele-glbModel-icon-l_SMi3ik.js";
42
42
  import { Download as Ne } from "@element-plus/icons-vue";
43
43
  const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { class: "header-title" }, ze = {
@@ -34,9 +34,9 @@ import "element-plus/es/components/input/style/css";
34
34
  import "element-plus/es/components/icon/style/css";
35
35
  import { defineComponent as Ne, ref as A, computed as M, onMounted as Re, onBeforeUnmount as Le, watch as Ve, openBlock as V, createElementBlock as W, normalizeStyle as re, createElementVNode as _, toDisplayString as F, createVNode as T, withCtx as Z, normalizeClass as $e, unref as ce, createBlock as He, Teleport as Be, withDirectives as ze, withModifiers as ue, Fragment as Pe, renderList as We, vShow as Fe, createTextVNode as Ze, renderSlot as Ue } from "vue";
36
36
  import { ArrowDown as Ye } from "@element-plus/icons-vue";
37
- import { d as R, _ as qe } from "./index-BHBE19E2.js";
37
+ import { d as R, _ as qe } from "./index-CCWU_se2.js";
38
38
  import "element-plus";
39
- import { E as Ke } from "./EChartComponentBase-BtAW2Yko.js";
39
+ import { E as Ke } from "./EChartComponentBase-DUyyaXgA.js";
40
40
  import { u as Ge } from "./safeI18n-CXZgGKWp.js";
41
41
  import { A as Je, D as Qe } from "./ele-vlu-icon-Bg6EHZdJ.js";
42
42
  const Xe = { class: "chart-header" }, et = { class: "chart-title" }, tt = { class: "chart-actions" }, ot = ["onClick"], nt = { class: "item-label" }, st = ["id"], at = {
@@ -301,7 +301,7 @@ const Xe = { class: "chart-header" }, et = { class: "chart-title" }, tt = { clas
301
301
  y.object_id = d;
302
302
  }), m.multiObject || (m.object_id = d);
303
303
  try {
304
- const y = yield import("./history-BDIdK3AY.js"), C = yield new y.default().getHistoryData(n, "timeSeriesCurve");
304
+ const y = yield import("./history-CIAU9_hA.js"), C = yield new y.default().getHistoryData(n, "timeSeriesCurve");
305
305
  if (S !== e) {
306
306
  x = !1;
307
307
  return;
@@ -1 +1 @@
1
- "use strict";var ge=Object.defineProperty,ye=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var te=(y,h,s)=>h in y?ge(y,h,{enumerable:!0,configurable:!0,writable:!0,value:s}):y[h]=s,L=(y,h)=>{for(var s in h||(h={}))Ce.call(h,s)&&te(y,s,h[s]);if(ee)for(var s of ee(h))_e.call(h,s)&&te(y,s,h[s]);return y},q=(y,h)=>ye(y,be(h));var B=(y,h,s)=>new Promise((d,b)=>{var w=i=>{try{O(s.next(i))}catch(I){b(I)}},S=i=>{try{O(s.throw(i))}catch(I){b(I)}},O=i=>i.done?d(i.value):Promise.resolve(i.value).then(w,S);O((s=s.apply(y,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=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/checkbox/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),we=require("@element-plus/icons-vue"),N=require("./index-D7PZNHF4.cjs");require("element-plus");const Se=require("./EChartComponentBase-C4s5HSfS.cjs"),De=require("./safeI18n-DR20q_h1.cjs"),oe=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),je={class:"chart-header"},Me={class:"chart-title"},xe={class:"chart-actions"},Ie=["onClick"],ke={class:"item-label"},Ne=["id"],Oe={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"指标时序演变曲线",NAME_EN:"TimeSeriesCurve",ORDER:1,PLATFORM:["pc","screen"]},Ee={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleSize:{value:14,type:"number",label:"component.options.titleSize"},showLegend:{value:!0,type:"switch",label:"component.options.showLegend"},showDataZoom:{value:!0,type:"switch",label:"component.crack.showDataZoom"},lineWidth:{value:2.5,type:"number",label:"component.options.lineWidth"},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"深部位移",value:"deepDisplacement"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Te=[{name:"宽度累计变化量",fv:"",object_id:"",device:"",color:"#5470c6"},{name:"宽度日变化量",fv:"",object_id:"",device:"",color:"#91cc75"},{name:"x方向加速度",fv:"",object_id:"",device:"",color:"#fac858"},{name:"y方向加速度",fv:"",object_id:"",device:"",color:"#ee6666"},{name:"z方向加速度",fv:"",object_id:"",device:"",color:"#73c0de"},{name:"x方向倾角",fv:"",object_id:"",device:"",color:"#3ba272"},{name:"y方向倾角",fv:"",object_id:"",device:"",color:"#fc8452"},{name:"z方向倾角",fv:"",object_id:"",device:"",color:"#9a60b4"}],Ve=["name","fv","object_id","device","color"],Ae=["mosaic","statistics","calculate"],Re={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Le=50,qe={DEFAULT:Oe,OPTIONS:Ee,DATA:Te,PARAMS:Ve,SOURCE:Ae,ITEMS:Le,COMMON:Re},Be=t.defineComponent(q(L({},qe),{__name:"timeSeriesCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(y){var Y,K;const{t:h}=De.useSafeI18n({"component.crack.timeSeriesCurve":"指标时序演变曲线"}),s=y,d=t.ref([]),b=t.computed(()=>s.conf.data||[]),w=t.ref([]);let S=0;class O extends Se.EChartComponentBase{constructor(){super(...arguments),this.deviceColors=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4"],this.realTimeData=new Map,this.deviceNameMap=new Map,this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(e){this.currentObjectId=e}extractStyles(){return q(L({},super.extractStyles()),{showLegend:this.getOptionValue("showLegend",!0),showDataZoom:this.getOptionValue("showDataZoom",!0),lineWidth:this.getOptionValue("lineWidth",2.5),linkChannel:this.getOptionValue("linkChannel","crack")})}needsHistoryData(){return!1}onPreview(){return B(this,null,function*(){const{common:e,data:o}=this.props.conf,l=[];if(e.multiObject&&Array.isArray(o)){const c=new Set;for(const p of o){const a=yield this.resolveObjectId(p);!a||c.has(a)||(c.add(a),l.push(a))}}else{const c=yield this.resolveObjectId();c&&(this.currentObjectId=c,l.push(c))}l.length>0&&(w.value=l,yield $(l))})}onLinkEvent(e){se(e)}getChartOption(){const{data:e}=this.props.conf,o=this.Style.value,l=w.value,c=l.length>1,p=d.value.length===0?[]:e.filter(r=>d.value.includes(r.name));let a=[];if(this.props.mode==="edit")a=this.generateTimeLabels();else for(const[,r]of this.realTimeData)r.times.length>a.length&&(a=r.times);const u=[];let v=0;if(c&&this.props.mode!=="edit")for(const r of l){const g=this.deviceNameMap.get(r)||r.slice(-6);for(const m of p){if(!m.fv)continue;const f=`${r}:${m.name}`,C=`${g}-${m.name}`,M=m.color||this.deviceColors[v%this.deviceColors.length],_=this.realTimeData.get(f);u.push({name:C,type:"line",smooth:!0,showSymbol:!1,lineStyle:{color:M,type:"solid",width:o.lineWidth},itemStyle:{color:M},data:_?_.values:[]}),v++}}else p.filter(r=>r.fv||this.props.mode==="edit").forEach((r,g)=>{const m=r.device&&this.deviceNameMap.get(r.device)||"",f=m?`${m}-${r.name}`:r.name,C=r.color||this.deviceColors[g%this.deviceColors.length];let M;if(this.props.mode!=="edit"){const _=this.realTimeData.get(r.name);M=_?_.values:[]}else M=this.generateSeriesData(r,a);u.push({name:f,type:"line",smooth:!0,showSymbol:!1,lineStyle:{color:C,type:"solid",width:o.lineWidth},itemStyle:{color:C},data:M})});return{tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:{show:o.showLegend,type:"scroll",top:10,textStyle:{color:o.textColor}},grid:{top:60,left:60,right:40,bottom:o.showDataZoom?80:40},xAxis:{type:"category",data:a,axisLabel:{interval:"auto",rotate:15,fontSize:10,color:o.textColor}},yAxis:{type:"value",name:"值",nameTextStyle:{color:o.textColor},axisLabel:{color:o.textColor},splitLine:{lineStyle:{type:"dashed",opacity:.5}}},dataZoom:o.showDataZoom?[{type:"inside"},{type:"slider",bottom:10,height:15}]:[],series:u}}generateTimeLabels(){const e=[];for(let o=24;o>=0;o--){const l=N.dayjs().subtract(o,"hour");e.push(l.format("MM-DD HH:mm"))}return e}generateSeriesData(e,o){const l=e.name,c=this.realTimeData.get(l);if(c&&c.times.length>0){const p=new Map;return c.times.forEach((a,u)=>p.set(a,c.values[u])),o.map(a=>{var u;return(u=p.get(a))!=null?u:null})}if(this.props.mode==="edit"){const p=Math.random()*10+5;return Array.from({length:o.length},(a,u)=>{const v=Math.sin(u*.5)*.3;return parseFloat((p*(.8+v)).toFixed(2))})}return new Array(o.length).fill(null)}setSocketData(e){if(!e)return;const{data:o}=this.props.conf;if(!o||!Array.isArray(o))return;const l=e.object_id||e.objectId||"";if(l&&w.value.length>0&&!w.value.includes(l))return;const c=e.datetime?e.datetime.split(".")[0]:N.dayjs().format("MM-DD HH:mm:ss"),p=N.dayjs(c).format("MM-DD HH:mm:ss"),a=w.value.length>1;o.forEach(v=>{if(!v.fv)return;if(v.device){const g=this.extractDataValue(e,v.device);g!=null&&(a&&l?this.deviceNameMap.set(l,String(g)):this.deviceNameMap.set(v.device,String(g)))}const r=this.extractDataValue(e,v.fv);if(r!=null){const g=parseFloat(r);if(!isNaN(g)){const m=a&&l?`${l}:${v.name}`:v.name;let f=this.realTimeData.get(m);f||(f={times:[],values:[]},this.realTimeData.set(m,f)),f.times.push(p),f.values.push(g),f.times.length>200&&(f.times.shift(),f.values.shift()),v.value=g}}});const u=this.getChartInstance();u&&u.setOption(this.getChartOption())}}const i=new O(s,"timeSeriesCurve");i.setupLifecycle();const I=i.getStyle(),ne=i.getEchartId();let A=null,j=!1;const se=n=>{const{payload:e}=n;if(!e)return;e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(A={start_time:e.dateRange[0],end_time:e.dateRange[1]});const o=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId||e.object_id?[e.objectId||e.object_id]:[];o.length>0&&(w.value=o,$(o))},$=n=>B(null,null,function*(){var g;if(!n.length||s.mode!=="preview")return;j=!0;const e=++S;i.setCurrentObjectId([...n].sort().join(",")),i.realTimeData.clear(),i.deviceNameMap.clear();const o=(g=i.session)==null?void 0:g.value;if(!o){j=!1;return}const l=s.conf.id;o.componentRequests&&o.componentRequests.delete(l),typeof o.unsubscribeComponent=="function"&&o.unsubscribeComponent(l);const{data:c,common:p}=s.conf,a=n.length>1;A&&(p.historyTimeRange=A),s.conf.options||(s.conf.options={});const u=s.conf.options.points,v=Object.prototype.hasOwnProperty.call(s.conf.options,"points");(!u||Number(u)<24)&&(s.conf.options.points=24);for(const m of n){if(S!==e){j=!1;return}Array.isArray(c)&&c.forEach(C=>{C.object_id=m}),p.multiObject||(p.object_id=m);try{const C=yield Promise.resolve().then(()=>require("./history-D_NO9ojb.cjs")),_=yield new C.default().getHistoryData(s,"timeSeriesCurve");if(S!==e){j=!1;return}_&&_.history&&Array.isArray(_.history)&&c.forEach((x,he)=>{if(!x.fv)return;const G=_.history[he];if(!Array.isArray(G))return;const fe=[...G].sort((D,E)=>new Date(D.time||D.datetime||"").getTime()-new Date(E.time||E.datetime||"").getTime()),ve=a?`${m}:${x.name}`:x.name,R=[],J=[];fe.forEach(D=>{const E=D.time||D.datetime,Q=D[x.fv];if(E&&Q!=null){const X=parseFloat(Q);isNaN(X)||(R.push(N.dayjs(E).format("MM-DD HH:mm:ss")),J.push(X))}a&&x.device&&D[x.device]&&i.deviceNameMap.set(m,String(D[x.device]))}),R.length>0&&i.realTimeData.set(ve,{times:R,values:J})})}catch(C){console.warn("[指标时序演变曲线] 历史数据获取失败:",C)}if(S!==e){j=!1;return}const f=i.getSource();i.subscribeBySource(f,m)}if(v?s.conf.options.points=u:delete s.conf.options.points,j=!1,S!==e)return;const r=i.getChartInstance();r&&r.setOption(i.getChartOption(),!0),o.registerComponent({id:l,request:null,onUpdate:(m,f)=>{S===e&&m==="realtime"&&i.setSocketData(f)}})}),ae=t.computed(()=>({background:I.value.bgColor,color:I.value.textColor})),ie=t.computed(()=>"指标时序演变曲线"),le=t.computed(()=>"导出图像"),re=t.computed(()=>"选择监测指标");s.mode==="edit"&&b.value.length>0&&(d.value=[(Y=b.value[0])==null?void 0:Y.name,(K=b.value[1])==null?void 0:K.name].filter(Boolean));const k=t.ref(!1),T=t.ref(null),H=t.ref(null),P=t.ref({}),ce=t.computed(()=>d.value.length===0?"":d.value.length===b.value.length?"全部":d.value.join("、")),z=t.computed(()=>{const n=b.value;return n.length>0&&n.every(e=>d.value.includes(e.name))}),ue=t.computed(()=>{const n=b.value,e=n.filter(o=>d.value.includes(o.name)).length;return e>0&&e<n.length}),de=()=>{k.value=!k.value,k.value&&me()};function me(){if(!T.value)return;const n=T.value.getBoundingClientRect();P.value={position:"fixed",top:`${n.bottom+4}px`,left:`${n.left}px`,zIndex:"9999"}}const W=n=>{const e=T.value,o=H.value;e&&!e.contains(n.target)&&o&&!o.contains(n.target)&&(k.value=!1)};t.onMounted(()=>{document.addEventListener("click",W)}),t.onBeforeUnmount(()=>{document.removeEventListener("click",W)});const F=()=>{z.value?d.value=[]:d.value=b.value.map(n=>n.name),Z()},U=n=>{const e=d.value.indexOf(n.name);e>-1?d.value.splice(e,1):d.value.push(n.name),Z()},Z=()=>{const n=i.getChartInstance();n&&n.setOption(i.getChartOption(),!0)};t.watch(()=>s.conf.data,n=>{var e,o;j||n&&n.length>0&&d.value.length===0&&(d.value=[(e=n[0])==null?void 0:e.name,(o=n[1])==null?void 0:o.name].filter(Boolean))},{immediate:!0});const pe=()=>{const n=i.getChartInstance();if(!n)return;const e=document.createElement("a");e.href=n.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`${h("component.crack.timeSeriesCurve")}_${N.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()};return(n,e)=>{const o=V.ElIcon,l=V.ElInput,c=V.ElCheckbox,p=V.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"mix-component crack-time-series",style:t.normalizeStyle(ae.value)},[t.createElementVNode("div",je,[t.createElementVNode("span",Me,"📉 "+t.toDisplayString(ie.value),1),t.createElementVNode("div",xe,[t.createElementVNode("div",{class:"metrics-select-wrapper",ref_key:"metricsWrapperRef",ref:T},[t.createVNode(l,{"model-value":ce.value,placeholder:re.value,size:"small",style:{width:"220px"},readonly:"",onClick:de},{suffix:t.withCtx(()=>[t.createVNode(o,{class:t.normalizeClass(["metrics-arrow",{"is-open":k.value}])},{default:t.withCtx(()=>[t.createVNode(t.unref(we.ArrowDown))]),_:1},8,["class"])]),_:1},8,["model-value","placeholder"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.withDirectives(t.createElementVNode("div",{class:"metrics-dropdown",style:t.normalizeStyle(P.value),ref_key:"metricsDropdownRef",ref:H},[t.createElementVNode("div",{class:"metrics-dropdown-item",onClick:t.withModifiers(F,["stop"])},[t.createVNode(c,{"model-value":z.value,indeterminate:ue.value,onChange:F},null,8,["model-value","indeterminate"]),e[0]||(e[0]=t.createElementVNode("span",{class:"item-label",style:{"font-weight":"bold"}},"全部",-1))]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,a=>(t.openBlock(),t.createElementBlock("div",{key:a.name,class:"metrics-dropdown-item",onClick:t.withModifiers(u=>U(a),["stop"])},[t.createVNode(c,{"model-value":d.value.includes(a.name),onChange:u=>U(a)},null,8,["model-value","onChange"]),t.createElementVNode("span",ke,t.toDisplayString(a.name),1)],8,Ie))),128))],4),[[t.vShow,k.value]])]))],512),t.createVNode(p,{size:"small",onClick:pe},{default:t.withCtx(()=>[t.createTextVNode("💾 "+t.toDisplayString(le.value),1)]),_:1})])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Ne),t.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),$e=N._export_sfc(Be,[["__scopeId","data-v-6b410ecb"]]);exports.default=$e;
1
+ "use strict";var ge=Object.defineProperty,ye=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var te=(y,h,s)=>h in y?ge(y,h,{enumerable:!0,configurable:!0,writable:!0,value:s}):y[h]=s,L=(y,h)=>{for(var s in h||(h={}))Ce.call(h,s)&&te(y,s,h[s]);if(ee)for(var s of ee(h))_e.call(h,s)&&te(y,s,h[s]);return y},q=(y,h)=>ye(y,be(h));var B=(y,h,s)=>new Promise((d,b)=>{var w=i=>{try{O(s.next(i))}catch(I){b(I)}},S=i=>{try{O(s.throw(i))}catch(I){b(I)}},O=i=>i.done?d(i.value):Promise.resolve(i.value).then(w,S);O((s=s.apply(y,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=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/checkbox/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),we=require("@element-plus/icons-vue"),N=require("./index-BdWR_FTA.cjs");require("element-plus");const Se=require("./EChartComponentBase-ejDV5NEw.cjs"),De=require("./safeI18n-DR20q_h1.cjs"),oe=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),je={class:"chart-header"},Me={class:"chart-title"},xe={class:"chart-actions"},Ie=["onClick"],ke={class:"item-label"},Ne=["id"],Oe={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"指标时序演变曲线",NAME_EN:"TimeSeriesCurve",ORDER:1,PLATFORM:["pc","screen"]},Ee={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleSize:{value:14,type:"number",label:"component.options.titleSize"},showLegend:{value:!0,type:"switch",label:"component.options.showLegend"},showDataZoom:{value:!0,type:"switch",label:"component.crack.showDataZoom"},lineWidth:{value:2.5,type:"number",label:"component.options.lineWidth"},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"深部位移",value:"deepDisplacement"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Te=[{name:"宽度累计变化量",fv:"",object_id:"",device:"",color:"#5470c6"},{name:"宽度日变化量",fv:"",object_id:"",device:"",color:"#91cc75"},{name:"x方向加速度",fv:"",object_id:"",device:"",color:"#fac858"},{name:"y方向加速度",fv:"",object_id:"",device:"",color:"#ee6666"},{name:"z方向加速度",fv:"",object_id:"",device:"",color:"#73c0de"},{name:"x方向倾角",fv:"",object_id:"",device:"",color:"#3ba272"},{name:"y方向倾角",fv:"",object_id:"",device:"",color:"#fc8452"},{name:"z方向倾角",fv:"",object_id:"",device:"",color:"#9a60b4"}],Ve=["name","fv","object_id","device","color"],Ae=["mosaic","statistics","calculate"],Re={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Le=50,qe={DEFAULT:Oe,OPTIONS:Ee,DATA:Te,PARAMS:Ve,SOURCE:Ae,ITEMS:Le,COMMON:Re},Be=t.defineComponent(q(L({},qe),{__name:"timeSeriesCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(y){var Y,K;const{t:h}=De.useSafeI18n({"component.crack.timeSeriesCurve":"指标时序演变曲线"}),s=y,d=t.ref([]),b=t.computed(()=>s.conf.data||[]),w=t.ref([]);let S=0;class O extends Se.EChartComponentBase{constructor(){super(...arguments),this.deviceColors=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4"],this.realTimeData=new Map,this.deviceNameMap=new Map,this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(e){this.currentObjectId=e}extractStyles(){return q(L({},super.extractStyles()),{showLegend:this.getOptionValue("showLegend",!0),showDataZoom:this.getOptionValue("showDataZoom",!0),lineWidth:this.getOptionValue("lineWidth",2.5),linkChannel:this.getOptionValue("linkChannel","crack")})}needsHistoryData(){return!1}onPreview(){return B(this,null,function*(){const{common:e,data:o}=this.props.conf,l=[];if(e.multiObject&&Array.isArray(o)){const c=new Set;for(const p of o){const a=yield this.resolveObjectId(p);!a||c.has(a)||(c.add(a),l.push(a))}}else{const c=yield this.resolveObjectId();c&&(this.currentObjectId=c,l.push(c))}l.length>0&&(w.value=l,yield $(l))})}onLinkEvent(e){se(e)}getChartOption(){const{data:e}=this.props.conf,o=this.Style.value,l=w.value,c=l.length>1,p=d.value.length===0?[]:e.filter(r=>d.value.includes(r.name));let a=[];if(this.props.mode==="edit")a=this.generateTimeLabels();else for(const[,r]of this.realTimeData)r.times.length>a.length&&(a=r.times);const u=[];let v=0;if(c&&this.props.mode!=="edit")for(const r of l){const g=this.deviceNameMap.get(r)||r.slice(-6);for(const m of p){if(!m.fv)continue;const f=`${r}:${m.name}`,C=`${g}-${m.name}`,M=m.color||this.deviceColors[v%this.deviceColors.length],_=this.realTimeData.get(f);u.push({name:C,type:"line",smooth:!0,showSymbol:!1,lineStyle:{color:M,type:"solid",width:o.lineWidth},itemStyle:{color:M},data:_?_.values:[]}),v++}}else p.filter(r=>r.fv||this.props.mode==="edit").forEach((r,g)=>{const m=r.device&&this.deviceNameMap.get(r.device)||"",f=m?`${m}-${r.name}`:r.name,C=r.color||this.deviceColors[g%this.deviceColors.length];let M;if(this.props.mode!=="edit"){const _=this.realTimeData.get(r.name);M=_?_.values:[]}else M=this.generateSeriesData(r,a);u.push({name:f,type:"line",smooth:!0,showSymbol:!1,lineStyle:{color:C,type:"solid",width:o.lineWidth},itemStyle:{color:C},data:M})});return{tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:{show:o.showLegend,type:"scroll",top:10,textStyle:{color:o.textColor}},grid:{top:60,left:60,right:40,bottom:o.showDataZoom?80:40},xAxis:{type:"category",data:a,axisLabel:{interval:"auto",rotate:15,fontSize:10,color:o.textColor}},yAxis:{type:"value",name:"值",nameTextStyle:{color:o.textColor},axisLabel:{color:o.textColor},splitLine:{lineStyle:{type:"dashed",opacity:.5}}},dataZoom:o.showDataZoom?[{type:"inside"},{type:"slider",bottom:10,height:15}]:[],series:u}}generateTimeLabels(){const e=[];for(let o=24;o>=0;o--){const l=N.dayjs().subtract(o,"hour");e.push(l.format("MM-DD HH:mm"))}return e}generateSeriesData(e,o){const l=e.name,c=this.realTimeData.get(l);if(c&&c.times.length>0){const p=new Map;return c.times.forEach((a,u)=>p.set(a,c.values[u])),o.map(a=>{var u;return(u=p.get(a))!=null?u:null})}if(this.props.mode==="edit"){const p=Math.random()*10+5;return Array.from({length:o.length},(a,u)=>{const v=Math.sin(u*.5)*.3;return parseFloat((p*(.8+v)).toFixed(2))})}return new Array(o.length).fill(null)}setSocketData(e){if(!e)return;const{data:o}=this.props.conf;if(!o||!Array.isArray(o))return;const l=e.object_id||e.objectId||"";if(l&&w.value.length>0&&!w.value.includes(l))return;const c=e.datetime?e.datetime.split(".")[0]:N.dayjs().format("MM-DD HH:mm:ss"),p=N.dayjs(c).format("MM-DD HH:mm:ss"),a=w.value.length>1;o.forEach(v=>{if(!v.fv)return;if(v.device){const g=this.extractDataValue(e,v.device);g!=null&&(a&&l?this.deviceNameMap.set(l,String(g)):this.deviceNameMap.set(v.device,String(g)))}const r=this.extractDataValue(e,v.fv);if(r!=null){const g=parseFloat(r);if(!isNaN(g)){const m=a&&l?`${l}:${v.name}`:v.name;let f=this.realTimeData.get(m);f||(f={times:[],values:[]},this.realTimeData.set(m,f)),f.times.push(p),f.values.push(g),f.times.length>200&&(f.times.shift(),f.values.shift()),v.value=g}}});const u=this.getChartInstance();u&&u.setOption(this.getChartOption())}}const i=new O(s,"timeSeriesCurve");i.setupLifecycle();const I=i.getStyle(),ne=i.getEchartId();let A=null,j=!1;const se=n=>{const{payload:e}=n;if(!e)return;e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(A={start_time:e.dateRange[0],end_time:e.dateRange[1]});const o=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId||e.object_id?[e.objectId||e.object_id]:[];o.length>0&&(w.value=o,$(o))},$=n=>B(null,null,function*(){var g;if(!n.length||s.mode!=="preview")return;j=!0;const e=++S;i.setCurrentObjectId([...n].sort().join(",")),i.realTimeData.clear(),i.deviceNameMap.clear();const o=(g=i.session)==null?void 0:g.value;if(!o){j=!1;return}const l=s.conf.id;o.componentRequests&&o.componentRequests.delete(l),typeof o.unsubscribeComponent=="function"&&o.unsubscribeComponent(l);const{data:c,common:p}=s.conf,a=n.length>1;A&&(p.historyTimeRange=A),s.conf.options||(s.conf.options={});const u=s.conf.options.points,v=Object.prototype.hasOwnProperty.call(s.conf.options,"points");(!u||Number(u)<24)&&(s.conf.options.points=24);for(const m of n){if(S!==e){j=!1;return}Array.isArray(c)&&c.forEach(C=>{C.object_id=m}),p.multiObject||(p.object_id=m);try{const C=yield Promise.resolve().then(()=>require("./history-BNN6YYlw.cjs")),_=yield new C.default().getHistoryData(s,"timeSeriesCurve");if(S!==e){j=!1;return}_&&_.history&&Array.isArray(_.history)&&c.forEach((x,he)=>{if(!x.fv)return;const G=_.history[he];if(!Array.isArray(G))return;const fe=[...G].sort((D,E)=>new Date(D.time||D.datetime||"").getTime()-new Date(E.time||E.datetime||"").getTime()),ve=a?`${m}:${x.name}`:x.name,R=[],J=[];fe.forEach(D=>{const E=D.time||D.datetime,Q=D[x.fv];if(E&&Q!=null){const X=parseFloat(Q);isNaN(X)||(R.push(N.dayjs(E).format("MM-DD HH:mm:ss")),J.push(X))}a&&x.device&&D[x.device]&&i.deviceNameMap.set(m,String(D[x.device]))}),R.length>0&&i.realTimeData.set(ve,{times:R,values:J})})}catch(C){console.warn("[指标时序演变曲线] 历史数据获取失败:",C)}if(S!==e){j=!1;return}const f=i.getSource();i.subscribeBySource(f,m)}if(v?s.conf.options.points=u:delete s.conf.options.points,j=!1,S!==e)return;const r=i.getChartInstance();r&&r.setOption(i.getChartOption(),!0),o.registerComponent({id:l,request:null,onUpdate:(m,f)=>{S===e&&m==="realtime"&&i.setSocketData(f)}})}),ae=t.computed(()=>({background:I.value.bgColor,color:I.value.textColor})),ie=t.computed(()=>"指标时序演变曲线"),le=t.computed(()=>"导出图像"),re=t.computed(()=>"选择监测指标");s.mode==="edit"&&b.value.length>0&&(d.value=[(Y=b.value[0])==null?void 0:Y.name,(K=b.value[1])==null?void 0:K.name].filter(Boolean));const k=t.ref(!1),T=t.ref(null),H=t.ref(null),P=t.ref({}),ce=t.computed(()=>d.value.length===0?"":d.value.length===b.value.length?"全部":d.value.join("、")),z=t.computed(()=>{const n=b.value;return n.length>0&&n.every(e=>d.value.includes(e.name))}),ue=t.computed(()=>{const n=b.value,e=n.filter(o=>d.value.includes(o.name)).length;return e>0&&e<n.length}),de=()=>{k.value=!k.value,k.value&&me()};function me(){if(!T.value)return;const n=T.value.getBoundingClientRect();P.value={position:"fixed",top:`${n.bottom+4}px`,left:`${n.left}px`,zIndex:"9999"}}const W=n=>{const e=T.value,o=H.value;e&&!e.contains(n.target)&&o&&!o.contains(n.target)&&(k.value=!1)};t.onMounted(()=>{document.addEventListener("click",W)}),t.onBeforeUnmount(()=>{document.removeEventListener("click",W)});const F=()=>{z.value?d.value=[]:d.value=b.value.map(n=>n.name),Z()},U=n=>{const e=d.value.indexOf(n.name);e>-1?d.value.splice(e,1):d.value.push(n.name),Z()},Z=()=>{const n=i.getChartInstance();n&&n.setOption(i.getChartOption(),!0)};t.watch(()=>s.conf.data,n=>{var e,o;j||n&&n.length>0&&d.value.length===0&&(d.value=[(e=n[0])==null?void 0:e.name,(o=n[1])==null?void 0:o.name].filter(Boolean))},{immediate:!0});const pe=()=>{const n=i.getChartInstance();if(!n)return;const e=document.createElement("a");e.href=n.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`${h("component.crack.timeSeriesCurve")}_${N.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()};return(n,e)=>{const o=V.ElIcon,l=V.ElInput,c=V.ElCheckbox,p=V.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"mix-component crack-time-series",style:t.normalizeStyle(ae.value)},[t.createElementVNode("div",je,[t.createElementVNode("span",Me,"📉 "+t.toDisplayString(ie.value),1),t.createElementVNode("div",xe,[t.createElementVNode("div",{class:"metrics-select-wrapper",ref_key:"metricsWrapperRef",ref:T},[t.createVNode(l,{"model-value":ce.value,placeholder:re.value,size:"small",style:{width:"220px"},readonly:"",onClick:de},{suffix:t.withCtx(()=>[t.createVNode(o,{class:t.normalizeClass(["metrics-arrow",{"is-open":k.value}])},{default:t.withCtx(()=>[t.createVNode(t.unref(we.ArrowDown))]),_:1},8,["class"])]),_:1},8,["model-value","placeholder"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.withDirectives(t.createElementVNode("div",{class:"metrics-dropdown",style:t.normalizeStyle(P.value),ref_key:"metricsDropdownRef",ref:H},[t.createElementVNode("div",{class:"metrics-dropdown-item",onClick:t.withModifiers(F,["stop"])},[t.createVNode(c,{"model-value":z.value,indeterminate:ue.value,onChange:F},null,8,["model-value","indeterminate"]),e[0]||(e[0]=t.createElementVNode("span",{class:"item-label",style:{"font-weight":"bold"}},"全部",-1))]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,a=>(t.openBlock(),t.createElementBlock("div",{key:a.name,class:"metrics-dropdown-item",onClick:t.withModifiers(u=>U(a),["stop"])},[t.createVNode(c,{"model-value":d.value.includes(a.name),onChange:u=>U(a)},null,8,["model-value","onChange"]),t.createElementVNode("span",ke,t.toDisplayString(a.name),1)],8,Ie))),128))],4),[[t.vShow,k.value]])]))],512),t.createVNode(p,{size:"small",onClick:pe},{default:t.withCtx(()=>[t.createTextVNode("💾 "+t.toDisplayString(le.value),1)]),_:1})])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Ne),t.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),$e=N._export_sfc(Be,[["__scopeId","data-v-6b410ecb"]]);exports.default=$e;
@@ -1 +1 @@
1
- "use strict";var B=Object.defineProperty,V=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,T=Reflect.get;var z=(s,n,r)=>n in s?B(s,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[n]=r,w=(s,n)=>{for(var r in n||(n={}))N.call(n,r)&&z(s,r,n[r]);if(x)for(var r of x(n))M.call(n,r)&&z(s,r,n[r]);return s},O=(s,n)=>V(s,A(n));var _=(s,n,r)=>T(F(s),r,n);var k=(s,n,r)=>new Promise((d,u)=>{var h=p=>{try{a(r.next(p))}catch(f){u(f)}},v=p=>{try{a(r.throw(p))}catch(f){u(f)}},a=p=>p.done?d(p.value):Promise.resolve(p.value).then(h,v);a((r=r.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./index-D7PZNHF4.cjs");require("element-plus");const R=require("./EChartComponentBase-C4s5HSfS.cjs"),S=require("./installCanvasRenderer-CyhM1Qpl.cjs"),$=require("./install-DV5cEgNV.cjs"),j=require("./install-CltTFs4e.cjs"),D=require("./install-C8buXQPI.cjs"),q=require("./install-B1IEhhn3.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%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(-986.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M998.978161,99.5%20C999.333655,99.5%20999.621839,99.7881845%20999.621839,100.143678%20L999.621839,100.143678%20L999.621,100.971%20L1002.65632,100.971264%20C1002.9795,100.971264%201003.24705,101.209433%201003.29302,101.519824%20L1003.3,101.614943%20L1003.3,113.385057%20C1003.3,113.740551%201003.01182,114.028736%201002.65632,114.028736%20L1002.65632,114.028736%20L999.621,114.028%20L999.621839,114.856322%20C999.621839,115.179498%20999.38367,115.447047%20999.073279,115.493021%20L998.978161,115.5%20L991.621839,115.5%20C991.266345,115.5%20990.978161,115.211815%20990.978161,114.856322%20L990.978161,114.856322%20L990.978,114.028%20L987.943678,114.028736%20C987.620502,114.028736%20987.352953,113.790567%20987.306979,113.480176%20L987.3,113.385057%20L987.3,101.614943%20C987.3,101.259449%20987.588185,100.971264%20987.943678,100.971264%20L987.943678,100.971264%20L990.978,100.971%20L990.978161,100.143678%20C990.978161,99.8205021%20991.21633,99.5529535%20991.526721,99.5069791%20L991.621839,99.5%20Z%20M998.334483,100.786788%20L992.265517,100.786788%20L992.265517,114.212076%20L998.334483,114.212076%20L998.334483,100.786788%20Z%20M1002.01264,102.258053%20L999.621839,102.258053%20L999.621839,112.740811%20L1002.01264,112.740811%20L1002.01264,102.258053%20Z%20M990.978161,102.258053%20L988.587356,102.258053%20L988.587356,112.740811%20L990.978161,112.740811%20L990.978161,102.258053%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%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='数据大屏备份-2'%20transform='translate(-986.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M998.978161,99.5%20C999.333655,99.5%20999.621839,99.7881845%20999.621839,100.143678%20L999.621839,100.143678%20L999.621,100.971%20L1002.65632,100.971264%20C1002.9795,100.971264%201003.24705,101.209433%201003.29302,101.519824%20L1003.3,101.614943%20L1003.3,113.385057%20C1003.3,113.740551%201003.01182,114.028736%201002.65632,114.028736%20L1002.65632,114.028736%20L999.621,114.028%20L999.621839,114.856322%20C999.621839,115.179498%20999.38367,115.447047%20999.073279,115.493021%20L998.978161,115.5%20L991.621839,115.5%20C991.266345,115.5%20990.978161,115.211815%20990.978161,114.856322%20L990.978161,114.856322%20L990.978,114.028%20L987.943678,114.028736%20C987.620502,114.028736%20987.352953,113.790567%20987.306979,113.480176%20L987.3,113.385057%20L987.3,101.614943%20C987.3,101.259449%20987.588185,100.971264%20987.943678,100.971264%20L987.943678,100.971264%20L990.978,100.971%20L990.978161,100.143678%20C990.978161,99.8205021%20991.21633,99.5529535%20991.526721,99.5069791%20L991.621839,99.5%20Z%20M998.334483,100.786788%20L992.265517,100.786788%20L992.265517,114.212076%20L998.334483,114.212076%20L998.334483,100.786788%20Z%20M1002.01264,102.258053%20L999.621839,102.258053%20L999.621839,112.740811%20L1002.01264,112.740811%20L1002.01264,102.258053%20Z%20M990.978161,102.258053%20L988.587356,102.258053%20L988.587356,112.740811%20L990.978161,112.740811%20L990.978161,102.258053%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",H=["onClick"],U=["id"],P={class:"progress-wrap"},G=["title"],J={DEFAULT_ICON:Z,ACTIVE_ICON:I,NAME_CN:"切换",NAME_EN:"Toggle Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={titleSize:14,tabFontSize:{value:14,type:"number",label:"component.radar.tabFontSize",min:10,max:32},textSize:12,barHeight:8,textColor:"#a8b4d9",bgColor:"#0a1635",barColor:"#1e3a5f",tabColor:"#1e3a5f",activeBgColor:"#6b7fd9",borderColor:"#1e3a5f",activeBorder:"#6b7fd9",radiusSize:8,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},tags:{value:[{label:"TAB1",flag:["S01","S02","S03"]},{label:"TAB2",flag:["S02","S03","S04"]}],type:"tags",label:"component.radar.tagsSetting"}},Q=[{name:"参数一",color:"#4162ff",fv:"S01",object_id:"",value:1},{name:"参数二",color:"#3bbc6a",fv:"S02",object_id:"",value:2},{name:"参数三",color:"#e24359",fv:"S03",object_id:"",value:3},{name:"参数四",color:"#ff8b41",fv:"S04",object_id:"",value:4}],W=["name","fv","object_id","color","value"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},ee={DEFAULT:J,OPTIONS:K,DATA:Q,PARAMS:W,SOURCE:X,COMMON:Y},te=e.defineComponent(O(w({},ee),{__name:"toggleBtn",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){S.use([$.install,j.install,S.install,D.install,S.install$1,q.install]);const n=s,r=e.ref(0),d=e.reactive({indicator:[],series:[]}),u=e.ref(0);class h extends R.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),tabFontSize:this.getOptionValue("tabFontSize",14),barHeight:this.getOptionValue("barHeight",8),textColor:this.getOptionValue("textColor","#111"),tabColor:this.getOptionValue("tabColor","#f5f5f5"),activeBgColor:this.getOptionValue("activeBgColor","#4162ff"),borderColor:this.getOptionValue("borderColor","#e5e5e5"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),type:this.getOptionValue("type","none"),tags:this.getOptionValue("tags",[])}}getChartOption(){var t;const l=this.Style.value,{name:o}=this.props.conf;return{radar:{shape:l.type,axisNameGap:10,indicator:d.indicator,center:["50%","55%"],radius:70,axisLine:{lineStyle:{type:"dashed",color:l.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor}},splitArea:{show:!0,areaStyle:{color:["transparent"]}},axisName:{fontSize:l.textSize,color:l.textColor}},series:[{name:o!=null?o:"",type:"radar",data:(t=d.series)!=null?t:[],areaStyle:{},itemStyle:{color:l.activeBgColor}}]}}init(){return k(this,null,function*(){yield _(h.prototype,this,"init").call(this),e.nextTick(()=>{this.applyChartOption(!0),f(u.value)})})}setHistoryData(l){if(!l)return;const{data:o}=this.props.conf;Array.isArray(l.history)&&Array.isArray(o)&&o.length?o.forEach((t,c)=>{var L,m,y;if(!t)return;const i=(m=(L=l.history)==null?void 0:L[c])==null?void 0:m[0];if(!i||typeof i!="object")return;const g=(y=t==null?void 0:t.fv)!=null?y:t==null?void 0:t.item_fv;if(g){const C=i==null?void 0:i[g];C!=null&&(t.value=C)}}):Array.isArray(l)&&l.forEach((t,c)=>{var i,g;o[c]&&(o[c].value=(g=(i=t.data)==null?void 0:i[0])!=null?g:0)}),f(u.value)}setSocketData(l){if(!l)return;const{data:o}=this.props.conf;o.forEach(t=>{const c=this.extractDataValue(l,t.fv);t.value=c!=null?c:0}),f(u.value)}refreshChart(){var o;const l=this.getChartOption();(o=this.chartObj)==null||o.setOption(l,!0)}}const v=new h(n,"toggleBtn");v.setupLifecycle();const a=v.getStyle(),p=v.getEchartId(),f=b=>{const l=a.value,{data:o,name:t}=n.conf;u.value=Number(b),d.indicator=[],d.series=[];const c={name:t,value:[]};r.value=Math.max(...o.map(i=>i.value||0)),o.forEach(i=>{var g,L;(L=(g=l.tags[u.value])==null?void 0:g.flag)!=null&&L.includes(i.fv)&&(d.indicator.push({idx:b,name:i.name,max:r.value,value:i.value,min:0,color:i.color}),c.value.push(i.value))}),d.series.push(c),v.refreshChart()};return(b,l)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(a).bgColor,borderRadius:`${e.unref(a).radiusSize}px`})},[e.createElementVNode("div",{class:"toggle-wrap",style:e.normalizeStyle({borderTopLeftRadius:`${e.unref(a).radiusSize}px`,borderTopRightRadius:`${e.unref(a).radiusSize}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).tags,(o,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["btn-item",{active:u.value===t}]),style:e.normalizeStyle({backgroundColor:u.value===t?e.unref(a).activeBgColor:e.unref(a).tabColor,color:u.value===t?"#fff":e.unref(a).textColor,fontSize:`${e.unref(a).tabFontSize}px`,borderTopLeftRadius:t===0?`${e.unref(a).radiusSize}px`:"0",borderTopRightRadius:t===e.unref(a).tags.length-1?`${e.unref(a).radiusSize}px`:"0"}),onClick:c=>f(t)},e.toDisplayString(o.label),15,H))),128))],4),e.createElementVNode("div",{class:"radar-wrap",style:e.normalizeStyle({color:e.unref(a).textColor,fontSize:`${e.unref(a).textSize}px`})},[e.createElementVNode("div",{id:e.unref(p),class:"radar-chart"},null,8,U),e.createElementVNode("div",P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.indicator,(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"bar-item-crosswise",key:t},[e.createElementVNode("div",{class:"bar-title",title:o.name,style:e.normalizeStyle({color:e.unref(a).textColor})},e.toDisplayString(o.name),13,G),e.createElementVNode("div",{class:"bar",style:e.normalizeStyle({backgroundColor:e.unref(a).barColor,height:`${e.unref(a).barHeight}px`})},[e.createElementVNode("div",{class:"progress",style:e.normalizeStyle({backgroundColor:o.color||e.unref(E.COLORS)[t],width:(o.value/r.value*100).toFixed(2)+"%"})},null,4)],4),e.createElementVNode("div",{class:"bar-value",style:e.normalizeStyle({color:e.unref(a).textColor})},e.toDisplayString(o.value||0),5)]))),128))])],4),e.renderSlot(b.$slots,"default",{},void 0,!0)],4))}})),oe=E._export_sfc(te,[["__scopeId","data-v-f375cb2d"]]);exports.default=oe;
1
+ "use strict";var B=Object.defineProperty,V=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,T=Reflect.get;var z=(s,n,r)=>n in s?B(s,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[n]=r,w=(s,n)=>{for(var r in n||(n={}))N.call(n,r)&&z(s,r,n[r]);if(x)for(var r of x(n))M.call(n,r)&&z(s,r,n[r]);return s},O=(s,n)=>V(s,A(n));var _=(s,n,r)=>T(F(s),r,n);var k=(s,n,r)=>new Promise((d,u)=>{var h=p=>{try{a(r.next(p))}catch(f){u(f)}},v=p=>{try{a(r.throw(p))}catch(f){u(f)}},a=p=>p.done?d(p.value):Promise.resolve(p.value).then(h,v);a((r=r.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./index-BdWR_FTA.cjs");require("element-plus");const R=require("./EChartComponentBase-ejDV5NEw.cjs"),S=require("./installCanvasRenderer-CyhM1Qpl.cjs"),$=require("./install-DV5cEgNV.cjs"),j=require("./install-CltTFs4e.cjs"),D=require("./install-C8buXQPI.cjs"),q=require("./install-B1IEhhn3.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%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(-986.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M998.978161,99.5%20C999.333655,99.5%20999.621839,99.7881845%20999.621839,100.143678%20L999.621839,100.143678%20L999.621,100.971%20L1002.65632,100.971264%20C1002.9795,100.971264%201003.24705,101.209433%201003.29302,101.519824%20L1003.3,101.614943%20L1003.3,113.385057%20C1003.3,113.740551%201003.01182,114.028736%201002.65632,114.028736%20L1002.65632,114.028736%20L999.621,114.028%20L999.621839,114.856322%20C999.621839,115.179498%20999.38367,115.447047%20999.073279,115.493021%20L998.978161,115.5%20L991.621839,115.5%20C991.266345,115.5%20990.978161,115.211815%20990.978161,114.856322%20L990.978161,114.856322%20L990.978,114.028%20L987.943678,114.028736%20C987.620502,114.028736%20987.352953,113.790567%20987.306979,113.480176%20L987.3,113.385057%20L987.3,101.614943%20C987.3,101.259449%20987.588185,100.971264%20987.943678,100.971264%20L987.943678,100.971264%20L990.978,100.971%20L990.978161,100.143678%20C990.978161,99.8205021%20991.21633,99.5529535%20991.526721,99.5069791%20L991.621839,99.5%20Z%20M998.334483,100.786788%20L992.265517,100.786788%20L992.265517,114.212076%20L998.334483,114.212076%20L998.334483,100.786788%20Z%20M1002.01264,102.258053%20L999.621839,102.258053%20L999.621839,112.740811%20L1002.01264,112.740811%20L1002.01264,102.258053%20Z%20M990.978161,102.258053%20L988.587356,102.258053%20L988.587356,112.740811%20L990.978161,112.740811%20L990.978161,102.258053%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%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='数据大屏备份-2'%20transform='translate(-986.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M998.978161,99.5%20C999.333655,99.5%20999.621839,99.7881845%20999.621839,100.143678%20L999.621839,100.143678%20L999.621,100.971%20L1002.65632,100.971264%20C1002.9795,100.971264%201003.24705,101.209433%201003.29302,101.519824%20L1003.3,101.614943%20L1003.3,113.385057%20C1003.3,113.740551%201003.01182,114.028736%201002.65632,114.028736%20L1002.65632,114.028736%20L999.621,114.028%20L999.621839,114.856322%20C999.621839,115.179498%20999.38367,115.447047%20999.073279,115.493021%20L998.978161,115.5%20L991.621839,115.5%20C991.266345,115.5%20990.978161,115.211815%20990.978161,114.856322%20L990.978161,114.856322%20L990.978,114.028%20L987.943678,114.028736%20C987.620502,114.028736%20987.352953,113.790567%20987.306979,113.480176%20L987.3,113.385057%20L987.3,101.614943%20C987.3,101.259449%20987.588185,100.971264%20987.943678,100.971264%20L987.943678,100.971264%20L990.978,100.971%20L990.978161,100.143678%20C990.978161,99.8205021%20991.21633,99.5529535%20991.526721,99.5069791%20L991.621839,99.5%20Z%20M998.334483,100.786788%20L992.265517,100.786788%20L992.265517,114.212076%20L998.334483,114.212076%20L998.334483,100.786788%20Z%20M1002.01264,102.258053%20L999.621839,102.258053%20L999.621839,112.740811%20L1002.01264,112.740811%20L1002.01264,102.258053%20Z%20M990.978161,102.258053%20L988.587356,102.258053%20L988.587356,112.740811%20L990.978161,112.740811%20L990.978161,102.258053%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",H=["onClick"],U=["id"],P={class:"progress-wrap"},G=["title"],J={DEFAULT_ICON:Z,ACTIVE_ICON:I,NAME_CN:"切换",NAME_EN:"Toggle Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={titleSize:14,tabFontSize:{value:14,type:"number",label:"component.radar.tabFontSize",min:10,max:32},textSize:12,barHeight:8,textColor:"#a8b4d9",bgColor:"#0a1635",barColor:"#1e3a5f",tabColor:"#1e3a5f",activeBgColor:"#6b7fd9",borderColor:"#1e3a5f",activeBorder:"#6b7fd9",radiusSize:8,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},tags:{value:[{label:"TAB1",flag:["S01","S02","S03"]},{label:"TAB2",flag:["S02","S03","S04"]}],type:"tags",label:"component.radar.tagsSetting"}},Q=[{name:"参数一",color:"#4162ff",fv:"S01",object_id:"",value:1},{name:"参数二",color:"#3bbc6a",fv:"S02",object_id:"",value:2},{name:"参数三",color:"#e24359",fv:"S03",object_id:"",value:3},{name:"参数四",color:"#ff8b41",fv:"S04",object_id:"",value:4}],W=["name","fv","object_id","color","value"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},ee={DEFAULT:J,OPTIONS:K,DATA:Q,PARAMS:W,SOURCE:X,COMMON:Y},te=e.defineComponent(O(w({},ee),{__name:"toggleBtn",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){S.use([$.install,j.install,S.install,D.install,S.install$1,q.install]);const n=s,r=e.ref(0),d=e.reactive({indicator:[],series:[]}),u=e.ref(0);class h extends R.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),tabFontSize:this.getOptionValue("tabFontSize",14),barHeight:this.getOptionValue("barHeight",8),textColor:this.getOptionValue("textColor","#111"),tabColor:this.getOptionValue("tabColor","#f5f5f5"),activeBgColor:this.getOptionValue("activeBgColor","#4162ff"),borderColor:this.getOptionValue("borderColor","#e5e5e5"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),type:this.getOptionValue("type","none"),tags:this.getOptionValue("tags",[])}}getChartOption(){var t;const l=this.Style.value,{name:o}=this.props.conf;return{radar:{shape:l.type,axisNameGap:10,indicator:d.indicator,center:["50%","55%"],radius:70,axisLine:{lineStyle:{type:"dashed",color:l.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor}},splitArea:{show:!0,areaStyle:{color:["transparent"]}},axisName:{fontSize:l.textSize,color:l.textColor}},series:[{name:o!=null?o:"",type:"radar",data:(t=d.series)!=null?t:[],areaStyle:{},itemStyle:{color:l.activeBgColor}}]}}init(){return k(this,null,function*(){yield _(h.prototype,this,"init").call(this),e.nextTick(()=>{this.applyChartOption(!0),f(u.value)})})}setHistoryData(l){if(!l)return;const{data:o}=this.props.conf;Array.isArray(l.history)&&Array.isArray(o)&&o.length?o.forEach((t,c)=>{var L,m,y;if(!t)return;const i=(m=(L=l.history)==null?void 0:L[c])==null?void 0:m[0];if(!i||typeof i!="object")return;const g=(y=t==null?void 0:t.fv)!=null?y:t==null?void 0:t.item_fv;if(g){const C=i==null?void 0:i[g];C!=null&&(t.value=C)}}):Array.isArray(l)&&l.forEach((t,c)=>{var i,g;o[c]&&(o[c].value=(g=(i=t.data)==null?void 0:i[0])!=null?g:0)}),f(u.value)}setSocketData(l){if(!l)return;const{data:o}=this.props.conf;o.forEach(t=>{const c=this.extractDataValue(l,t.fv);t.value=c!=null?c:0}),f(u.value)}refreshChart(){var o;const l=this.getChartOption();(o=this.chartObj)==null||o.setOption(l,!0)}}const v=new h(n,"toggleBtn");v.setupLifecycle();const a=v.getStyle(),p=v.getEchartId(),f=b=>{const l=a.value,{data:o,name:t}=n.conf;u.value=Number(b),d.indicator=[],d.series=[];const c={name:t,value:[]};r.value=Math.max(...o.map(i=>i.value||0)),o.forEach(i=>{var g,L;(L=(g=l.tags[u.value])==null?void 0:g.flag)!=null&&L.includes(i.fv)&&(d.indicator.push({idx:b,name:i.name,max:r.value,value:i.value,min:0,color:i.color}),c.value.push(i.value))}),d.series.push(c),v.refreshChart()};return(b,l)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(a).bgColor,borderRadius:`${e.unref(a).radiusSize}px`})},[e.createElementVNode("div",{class:"toggle-wrap",style:e.normalizeStyle({borderTopLeftRadius:`${e.unref(a).radiusSize}px`,borderTopRightRadius:`${e.unref(a).radiusSize}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).tags,(o,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["btn-item",{active:u.value===t}]),style:e.normalizeStyle({backgroundColor:u.value===t?e.unref(a).activeBgColor:e.unref(a).tabColor,color:u.value===t?"#fff":e.unref(a).textColor,fontSize:`${e.unref(a).tabFontSize}px`,borderTopLeftRadius:t===0?`${e.unref(a).radiusSize}px`:"0",borderTopRightRadius:t===e.unref(a).tags.length-1?`${e.unref(a).radiusSize}px`:"0"}),onClick:c=>f(t)},e.toDisplayString(o.label),15,H))),128))],4),e.createElementVNode("div",{class:"radar-wrap",style:e.normalizeStyle({color:e.unref(a).textColor,fontSize:`${e.unref(a).textSize}px`})},[e.createElementVNode("div",{id:e.unref(p),class:"radar-chart"},null,8,U),e.createElementVNode("div",P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.indicator,(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"bar-item-crosswise",key:t},[e.createElementVNode("div",{class:"bar-title",title:o.name,style:e.normalizeStyle({color:e.unref(a).textColor})},e.toDisplayString(o.name),13,G),e.createElementVNode("div",{class:"bar",style:e.normalizeStyle({backgroundColor:e.unref(a).barColor,height:`${e.unref(a).barHeight}px`})},[e.createElementVNode("div",{class:"progress",style:e.normalizeStyle({backgroundColor:o.color||e.unref(E.COLORS)[t],width:(o.value/r.value*100).toFixed(2)+"%"})},null,4)],4),e.createElementVNode("div",{class:"bar-value",style:e.normalizeStyle({color:e.unref(a).textColor})},e.toDisplayString(o.value||0),5)]))),128))])],4),e.renderSlot(b.$slots,"default",{},void 0,!0)],4))}})),oe=E._export_sfc(te,[["__scopeId","data-v-f375cb2d"]]);exports.default=oe;
@@ -27,9 +27,9 @@ var E = (n, i, a) => new Promise((u, d) => {
27
27
  o((a = a.apply(n, i)).next());
28
28
  });
29
29
  import { defineComponent as H, ref as M, reactive as U, openBlock as m, createElementBlock as S, normalizeStyle as v, unref as l, createElementVNode as h, Fragment as T, renderList as V, normalizeClass as P, toDisplayString as w, renderSlot as G, nextTick as q } from "vue";
30
- import { C as J, _ as K } from "./index-BHBE19E2.js";
30
+ import { C as J, _ as K } from "./index-CCWU_se2.js";
31
31
  import "element-plus";
32
- import { E as Q } from "./EChartComponentBase-BtAW2Yko.js";
32
+ import { E as Q } from "./EChartComponentBase-DUyyaXgA.js";
33
33
  import { u as W, i as X, a as Y } from "./installCanvasRenderer-oDYkyVFy.js";
34
34
  import { i as e0 } from "./install-DdM8j5Ll.js";
35
35
  import { i as t0 } from "./install-CEl1AYgZ.js";
@@ -20,7 +20,7 @@ import "element-plus/es/components/icon/style/css";
20
20
  import "element-plus/es/components/checkbox/style/css";
21
21
  import "element-plus/es/components/date-picker/style/css";
22
22
  import { defineComponent as Ne, useCssVars as Ee, ref as ie, computed as j, watch as W, onMounted as Ue, onUnmounted as je, openBlock as p, createElementBlock as g, normalizeStyle as Ge, normalizeClass as Y, Fragment as R, renderList as w, createElementVNode as k, toDisplayString as S, createCommentVNode as P, createVNode as A, withCtx as M, createTextVNode as G, unref as qe, createBlock as $, renderSlot as ze } from "vue";
23
- import { l as He, d as I, _ as Qe } from "./index-BHBE19E2.js";
23
+ import { o as He, d as I, _ as Qe } from "./index-CCWU_se2.js";
24
24
  import { Delete as Be } from "@element-plus/icons-vue";
25
25
  import { A as Fe, D as Ke } from "./ele-ctrSet-icon-BtKGrCid.js";
26
26
  const We = { class: "section-header" }, Xe = { class: "section-title" }, Je = { class: "time-range-body" }, Ze = {
@@ -1 +1 @@
1
- "use strict";var me=Object.defineProperty,ge=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ve=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable;var x=(_,v,f)=>v in _?me(_,v,{enumerable:!0,configurable:!0,writable:!0,value:f}):_[v]=f,Y=(_,v)=>{for(var f in v||(v={}))ve.call(v,f)&&x(_,f,v[f]);if(Q)for(var f of Q(v))fe.call(v,f)&&x(_,f,v[f]);return _},K=(_,v)=>ge(_,ye(v));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),B=require("./index-D7PZNHF4.cjs"),he=require("@element-plus/icons-vue"),W=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),ke={class:"section-header"},Ce={class:"section-title"},be={class:"time-range-body"},Ve={key:0,class:"quick-range"},_e=["onClick"],De={key:1,class:"granularity-tabs"},Be=["onClick"],Ee={key:2,class:"date-inputs"},Se={class:"section-header"},Ne={class:"section-title"},Te={key:0,class:"time-list-actions"},Oe={class:"selected-count"},Pe={key:1,class:"time-list-select"},we={class:"section-header"},Le={class:"section-title"},Ye={key:0,class:"select-list"},Re={class:"section-header"},Ae={class:"section-title"},Ie={key:0,class:"direction-tabs"},Me=["onClick"],qe={class:"section-header"},ze={class:"section-title"},je={key:0,class:"range-inputs"},Ue={key:0,class:"range-unit"},Ge={class:"section-header"},Fe={class:"section-title"},He={key:0,class:"display-options"},$e={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"露天矿控制面板",NAME_EN:"Openpit Control Panel",ORDER:15,PLATFORM:["pc","screen"]},Qe={layout:{value:"auto",type:"select",label:"布局模式",options:[{label:"自适应",value:"auto"},{label:"竖排",value:"vertical"},{label:"横排",value:"horizontal"}]},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},hideSectionTitle:{value:!1,type:"switch",label:"隐藏分组标题"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},xe=[{type:"timeRange",label:"时间段",key:"timeRange",targetId:"",rangeAxis:"xAxis",showQuickRange:!0,dateType:"date",dateFormat:"YYYY-MM-DD",quickRangeOptions:[{label:"今天",value:"today"},{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],defaultQuickRange:"week",granularityOptions:[{label:"小时",value:"hour"},{label:"日均",value:"day"}],defaultGranularity:"day",multiple:!1,options:[{label:"选项1",value:1}],minPlaceholder:"",maxPlaceholder:"",unit:""}],Ke=[{key:"type",label:"component.openpitConfigPanel.type",type:"select",options:[{label:"component.openpitConfigPanel.typeOptions.timeRange",value:"timeRange"},{label:"component.openpitConfigPanel.typeOptions.timeList",value:"timeList"},{label:"component.openpitConfigPanel.typeOptions.selectList",value:"selectList"},{label:"component.openpitConfigPanel.typeOptions.direction",value:"direction"},{label:"component.openpitConfigPanel.typeOptions.range",value:"range"},{label:"component.openpitConfigPanel.typeOptions.switch",value:"switch"}]},{key:"label",label:"component.openpitConfigPanel.label",type:"string"},{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"targetId",label:"component.openpitConfigPanel.targetId",type:"string"},{key:"rangeAxis",label:"component.openpitConfigPanel.rangeAxis",type:"select",options:[{label:"component.openpitConfigPanel.rangeAxisOptions.xAxis",value:"xAxis"},{label:"component.openpitConfigPanel.rangeAxisOptions.yAxis",value:"yAxis"},{label:"component.openpitConfigPanel.rangeAxisOptions.radius",value:"radius"}],dependent:"type",dependentValue:"range"},{key:"showQuickRange",label:"component.openpitConfigPanel.showQuickRange",type:"switch",dependent:"type",dependentValue:"timeRange"},{key:"defaultGranularity",label:"component.openpitConfigPanel.defaultGranularity",type:"select",options:[{label:"component.openpitConfigPanel.granularityOptionLabels.hour",value:"hour"},{label:"component.openpitConfigPanel.granularityOptionLabels.day",value:"day"}],dependent:"type",dependentValue:"timeRange"},{key:"timeList",label:"component.openpitConfigPanel.timeList",type:"string",dependent:"type",dependentValue:"timeList"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch",dependent:"type",dependentValue:["selectList"]},{key:"options",label:"component.openpitConfigPanel.options",type:"table",columns:[{key:"label",label:"label",type:"string"},{key:"value",label:"value",type:"string"},{key:"remark",label:"remark",type:"string"}],dependent:"type",dependentValue:["selectList","direction","switch"]},{key:"minPlaceholder",label:"component.openpitConfigPanel.minPlaceholder",type:"string",dependent:"type",dependentValue:"range"},{key:"maxPlaceholder",label:"component.openpitConfigPanel.maxPlaceholder",type:"string",dependent:"type",dependentValue:"range"},{key:"unit",label:"component.openpitConfigPanel.unit",type:"string",dependent:"type",dependentValue:"range"}],We=[],Xe={useAlias:!1,multiObject:!1,source:""},Je={DEFAULT:$e,OPTIONS:Qe,DATA:xe,PARAMS:Ke,SOURCE:We,COMMON:Xe},Ze=e.defineComponent(K(Y({},Je),{__name:"trajectoryConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(_){e.useCssVars(t=>({v15a941b4:A.value.backgroundColor,v6c388130:A.value.borderColor,v1e47c9b2:k.value.textColor,v4ecefb48:k.value.borderColor,v444d252c:k.value.accentColor}));const v=B.useLinkStore(),f=_,N=e.ref(null);let M=0,E=null;const k=e.computed(()=>{var s,p,d,m,c,o,y,V;const{options:t}=f.conf||{},l=((s=t==null?void 0:t.linkChannel)==null?void 0:s.value)||"deepDisplacement",n=((p=t==null?void 0:t.customChannel)==null?void 0:p.value)||"",u=l==="custom"&&n?n:l,i=((d=t==null?void 0:t.layout)==null?void 0:d.value)||"auto";return{bgColor:((m=t==null?void 0:t.bgColor)==null?void 0:m.value)||"#ffffff",textColor:((c=t==null?void 0:t.textColor)==null?void 0:c.value)||"#333333",accentColor:((o=t==null?void 0:t.accentColor)==null?void 0:o.value)||"#409eff",borderColor:((y=t==null?void 0:t.borderColor)==null?void 0:y.value)||"#e5e5e5",hideSectionTitle:((V=t==null?void 0:t.hideSectionTitle)==null?void 0:V.value)===!0,layout:i,linkChannel:u}}),X=e.computed(()=>{const t=String(k.value.layout||"auto");return t==="horizontal"?"layout-horizontal":t==="vertical"?"layout-vertical":"layout-auto"}),J=e.computed(()=>{const t=f.uid;if(!t){const l=`trajectoryConfigPanel_${Date.now()}`;return console.warn("[TrajectoryConfigPanel] 缺少 uid,自动生成:",l),l}return t}),C=e.computed(()=>{var t;return((t=f.conf)==null?void 0:t.data)||[]}),a=e.ref({}),q=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],Z=(t,l)=>((l==null?void 0:l.granularity)||(t==null?void 0:t.defaultGranularity))==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",ee=(t,l)=>((l==null?void 0:l.granularity)||(t==null?void 0:t.defaultGranularity))==="hour"?"datetime":"date",P=(t,l)=>Z(l,a.value[t]),z=(t,l)=>ee(l,a.value[t]),R=(t,l,n)=>{const u=n.includes("HH"),i=u?l.endOf("day").format(n):l.format(n);let s=l.subtract(7,"day").format(n);return t==="today"?s=l.startOf("day").format(n):t==="week"?s=l.subtract(6,"day").startOf("day").format(n):t==="month"?s=l.subtract(29,"day").startOf("day").format(n):t==="quarter"?s=l.subtract(89,"day").startOf("day").format(n):t==="year"&&(s=l.subtract(364,"day").startOf("day").format(n)),{startDate:s,endDate:i}},te=t=>{var u,i;const l=C.value[t];if((l==null?void 0:l.type)==="timeRange")return((u=a.value[t])==null?void 0:u.granularity)||(l==null?void 0:l.defaultGranularity)||"day";const n=C.value.findIndex(s=>s.type==="timeRange");if(n>=0){const s=C.value[n];return((i=a.value[n])==null?void 0:i.granularity)||(s==null?void 0:s.defaultGranularity)||"day"}return"day"},le=t=>{if(!t)return null;if(/^\d+$/.test(t)){const n=Number(t),u=t.length<=10?n*1e3:n,i=new Date(u);return Number.isNaN(i.getTime())?null:i}const l=new Date(t);return Number.isNaN(l.getTime())?null:l},ae=(t,l)=>{if(t==null)return"";const n=String(t).trim();if(!n)return"";const u=typeof l=="number"?te(l):"day",i=le(n);if(!i)return u==="day"?n.slice(0,10):n;const s=i.getFullYear(),p=String(i.getMonth()+1).padStart(2,"0"),d=String(i.getDate()).padStart(2,"0");if(u==="day")return`${s}-${p}-${d}`;const m=String(i.getHours()).padStart(2,"0"),c=String(i.getMinutes()).padStart(2,"0"),o=String(i.getSeconds()).padStart(2,"0");return`${s}-${p}-${d} ${m}:${c}:${o}`},ne=(t,l)=>{if(!Array.isArray(t))return[];if(l!=="day")return t.map(i=>String(i));const n=new Set,u=[];return t.forEach(i=>{const s=String(i||"").trim();if(!s)return;let p=s.slice(0,10);if(/^\d+$/.test(s)){const d=Number(s),m=s.length<=10?d*1e3:d,c=new Date(m);if(!Number.isNaN(c.getTime())){const o=c.getFullYear(),y=String(c.getMonth()+1).padStart(2,"0"),V=String(c.getDate()).padStart(2,"0");p=`${o}-${y}-${V}`}}!p||p.length!==10||n.has(p)||(n.add(p),u.push(p))}),u},j=()=>{C.value.forEach((t,l)=>{var i,s,p,d,m,c,o,y,V,r;a.value[l]||(a.value[l]={});const n=B.dayjs(),u=((i=a.value[l])==null?void 0:i.granularity)==="hour"||t.defaultGranularity==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";if(t.type==="timeRange"){const g=t.quickRangeOptions||q,h=t.defaultQuickRange||((s=g==null?void 0:g[0])==null?void 0:s.value)||"week",T=t.defaultGranularity||((d=(p=t.granularityOptions)==null?void 0:p[0])==null?void 0:d.value)||"",D=R(h,n,u);a.value[l]={quickRange:h,granularity:T,startDate:D.startDate,endDate:D.endDate}}else if(t.type==="timeList"){const g=(m=N.value)!=null&&m.length?[...N.value]:(()=>{var H;const D=C.value.findIndex(L=>L.type==="timeRange");let F=[];if(D>=0&&a.value[D]){const L=B.dayjs(a.value[D].startDate),de=B.dayjs(a.value[D].endDate),$=(((H=a.value[D])==null?void 0:H.granularity)||C.value[D].defaultGranularity)==="hour"?"hour":"day";let O=de;for(;O.isAfter(L)||O.isSame(L,$);)F.push(O.format(u)),O=O.subtract(1,$)}return F})(),T=(((c=a.value[l])==null?void 0:c.selectedTimes)||[]).filter(D=>g.includes(D));a.value[l]={timeList:g,selectedTimes:T,selectAll:T.length>0&&T.length===g.length}}else if(t.type==="selectList")if(t.multiple){const g=(t.options||[]).map(h=>h.value);a.value[l]={selectedValues:g}}else a.value[l]={selectedValue:((y=(o=t.options)==null?void 0:o[0])==null?void 0:y.value)||""};else if(t.type==="direction")a.value[l]={selectedValue:((r=(V=t.options)==null?void 0:V[0])==null?void 0:r.value)||"s"};else if(t.type==="range")a.value[l]={min:"",max:""};else if(t.type==="switch"){const g={};(t.options||[]).forEach(h=>{g[h.value]=h.defaultValue!==!1}),a.value[l]=g}})},A=e.computed(()=>({backgroundColor:k.value.bgColor,color:k.value.textColor,borderColor:k.value.borderColor})),U=t=>{const l={};return C.value.forEach((n,u)=>{var p;if(!a.value[u]||n.type!=="range"&&!n.key)return;const i=String((p=n.targetId)!=null?p:"").trim();if(t!==void 0){if(i&&!i.split(",").map(m=>m.trim()).filter(m=>m).includes(t))return}else if(i)return;const s=a.value[u];if(n.type==="timeRange")l[n.key]={startDate:s.startDate,endDate:s.endDate,quickRange:s.quickRange,granularity:s.granularity};else if(n.type==="timeList")l[n.key]=s.selectedTimes||[];else if(n.type==="selectList")l[n.key]=n.multiple?s.selectedValues:s.selectedValue;else if(n.type==="direction")l[n.key]=s.selectedValue;else if(n.type==="range"){const d=String(n.rangeAxis||"xAxis"),m=n.key?String(n.key):"range",c=s.min===""?null:parseFloat(s.min),o=s.max===""||s.max==="最大值"?null:parseFloat(s.max),y={min:Number.isNaN(c)?null:c,max:Number.isNaN(o)?null:o,rangeAxis:d};l[`${m}__${d}`]=y,l[`range__${d}`]=y,d==="xAxis"&&(l.range=y)}else n.type==="switch"&&(l[n.key]=Y({},s))}),l},oe=()=>{const t=U(),l=J.value,n=C.value,u=k.value.linkChannel||"deepDisplacement",i=[];l&&i.push({objectId:l,config:t});const s=new Map;n.forEach(d=>{const m=d.targetId;if(!m)return;m.split(",").map(o=>o.trim()).filter(o=>o).forEach(o=>{s.has(o)||s.set(o,U(o));const y=s.get(o)||{};i.push({objectId:o,config:y})})});const p=++M;i.forEach((d,m)=>{setTimeout(()=>{if(p!==M)return;const c=Y({source:"trajectoryConfigPanel",type:"filter",objectId:d.objectId,filter:d.config,meta:{channel:u}},d.config);v.publish(u,"trajectoryConfigPanel",c)},m)})},w=()=>{E&&clearTimeout(E),E=setTimeout(()=>{oe(),E=null},200)},G=(t,l)=>{const n=C.value[t];if(!n||n.type!=="timeRange"||!a.value[t])return;const u=B.dayjs(),s=(a.value[t].granularity||n.defaultGranularity)==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";a.value[t].quickRange=l;const p=R(l,u,s);a.value[t].startDate=p.startDate,a.value[t].endDate=p.endDate,I(),b()},I=()=>{var d,m,c;const t=C.value.findIndex(o=>o.type==="timeRange"),l=C.value.findIndex(o=>o.type==="timeList");if(l<0)return;const n=t>=0&&a.value[t]&&(((d=a.value[t])==null?void 0:d.granularity)||((m=C.value[t])==null?void 0:m.defaultGranularity))||"day",u=(c=N.value)!=null&&c.length?[...N.value]:(()=>{if(t>=0&&a.value[t]){const o=n==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",y=B.dayjs(a.value[t].startDate),V=B.dayjs(a.value[t].endDate),r=n==="hour"?"hour":"day",g=[];let h=V;for(;h.isAfter(y)||h.isSame(y,r);)g.push(h.format(o)),h=h.subtract(1,r);return g}return[]})(),i=ne(u,n);a.value[l]||(a.value[l]={}),a.value[l].timeList=i;const p=(a.value[l].selectedTimes||[]).filter(o=>i.includes(o));a.value[l].selectedTimes=p,a.value[l].selectAll=p.length>0&&p.length===i.length},re=t=>{if(!a.value[t])return;const l=a.value[t].selectAll;a.value[t].selectedTimes=l?[...a.value[t].timeList]:[],b()},se=t=>{a.value[t]&&(a.value[t].selectedTimes=[],a.value[t].selectAll=!1,b())},ce=t=>{if(!a.value[t])return;const l=a.value[t].timeList||[],n=a.value[t].selectedTimes||[];a.value[t].selectAll=n.length===l.length,b()},ie=(t,l)=>{a.value[t]&&(a.value[t].selectedValue=l,b())},ue=(t,l)=>{if(!a.value[t])return;a.value[t].granularity=l;const n=B.dayjs(),u=l==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",i=a.value[t].quickRange||"week",s=R(i,n,u);a.value[t].startDate=s.startDate,a.value[t].endDate=s.endDate,I(),b()},b=t=>{w()};e.watch(()=>{var t;return(t=f.conf)==null?void 0:t.data},()=>{j(),setTimeout(w,300)},{deep:!0,immediate:!0}),e.watch(()=>v.channels[k.value.linkChannel],t=>{if(!t||!t.payload||!v.shouldHandle(t,"trajectoryConfigPanel"))return;const l=t.payload;(l==null?void 0:l.type)==="timeList"&&Array.isArray(l.timeList)&&(N.value=l.timeList.map(n=>String(n)),I(),w())},{deep:!0}),e.watch(()=>{var t;return(t=f.conf)==null?void 0:t.data},(t,l)=>{t&&t.forEach((n,u)=>{const i=l==null?void 0:l[u];if(n.type&&(!i||n.type!==i.type)){const s=pe(n.type);Object.keys(s).forEach(p=>{(!n[p]||n[p]===""||Array.isArray(n[p])&&n[p].length===0)&&(n[p]=s[p])})}})},{deep:!0});const pe=t=>({timeRange:{label:"时间段",key:"timeRange",showQuickRange:!0,dateType:"date",dateFormat:"YYYY-MM-DD",quickRangeOptions:[{label:"今天",value:"today"},{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],defaultQuickRange:"week",granularityOptions:[{label:"小时",value:"hour"},{label:"日均",value:"day"}],defaultGranularity:"day"},timeList:{label:"时间列表",key:"timeList"},selectList:{label:"节点列表",key:"nodeList",multiple:!1,options:[{label:"选项1",value:1}]},direction:{label:"位移方向",key:"direction",options:[{label:"合",value:"s"},{label:"X轴",value:"x"},{label:"Y轴",value:"y"}]},range:{label:"数值区间",key:"range",minPlaceholder:"最小值",maxPlaceholder:"最大值",unit:"",rangeAxis:"xAxis"},switch:{label:"显示选项",key:"displayOptions",options:[{label:"开始点",value:"showStartPoint"},{label:"结束点",value:"showEndPoint"},{label:"轨迹线",value:"showTrajectory"},{label:"方向箭头",value:"showDirection"}]}})[t]||{};return e.onMounted(()=>{j();const t=C.value.findIndex(l=>l.type==="timeRange");t>=0&&G(t,"week"),setTimeout(w,300)}),e.onUnmounted(()=>{E&&(clearTimeout(E),E=null)}),(t,l)=>{const n=S.ElDatePicker,u=S.ElCheckbox,i=S.ElIcon,s=S.ElButton,p=S.ElOption,d=S.ElSelect,m=S.ElInput;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["trajectory-config-panel",X.value]),style:e.normalizeStyle(A.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(c,o)=>{var y,V;return e.openBlock(),e.createElementBlock(e.Fragment,{key:o},[c.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["config-section time-range-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",ke,[e.createElementVNode("span",Ce,e.toDisplayString(c.label||"时间段"),1)]),e.createElementVNode("div",be,[c.showQuickRange?(e.openBlock(),e.createElementBlock("div",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.quickRangeOptions||q,r=>{var g;return e.openBlock(),e.createElementBlock("span",{key:r.value,class:e.normalizeClass(["range-item",{active:((g=a.value[o])==null?void 0:g.quickRange)===r.value}]),onClick:h=>G(o,r.value)},e.toDisplayString(r.label),11,_e)}),128))])):e.createCommentVNode("",!0),(y=c.granularityOptions)!=null&&y.length?(e.openBlock(),e.createElementBlock("div",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.granularityOptions,r=>{var g;return e.openBlock(),e.createElementBlock("span",{key:r.value,class:e.normalizeClass(["granularity-item",{active:((g=a.value[o])==null?void 0:g.granularity)===r.value}]),onClick:h=>ue(o,r.value)},e.toDisplayString(r.label),11,Be)}),128))])):e.createCommentVNode("",!0),a.value[o]?(e.openBlock(),e.createElementBlock("div",Ee,[e.createVNode(n,{modelValue:a.value[o].startDate,"onUpdate:modelValue":r=>a.value[o].startDate=r,type:z(o,c),placeholder:"开始时间",format:P(o,c),"value-format":P(o,c),size:"small",class:"date-picker",onChange:r=>b()},null,8,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"]),e.createVNode(n,{modelValue:a.value[o].endDate,"onUpdate:modelValue":r=>a.value[o].endDate=r,type:z(o,c),placeholder:"结束时间",format:P(o,c),"value-format":P(o,c),size:"small",class:"date-picker",onChange:r=>b()},null,8,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"])])):e.createCommentVNode("",!0)])],2)):c.type==="timeList"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["config-section time-list-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",Se,[e.createElementVNode("span",Ne,e.toDisplayString(c.label||"采集时间列表"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(u,{modelValue:a.value[o].selectAll,"onUpdate:modelValue":r=>a.value[o].selectAll=r,onChange:r=>re(o)},{default:e.withCtx(()=>[...l[0]||(l[0]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(s,{size:"small",text:"",onClick:r=>se(o)},{default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(e.unref(he.Delete))]),_:1}),l[1]||(l[1]=e.createTextVNode("清空 ",-1))]),_:1},8,["onClick"]),e.createElementVNode("span",Oe,[l[2]||(l[2]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(((V=a.value[o].selectedTimes)==null?void 0:V.length)||0),1),l[3]||(l[3]=e.createTextVNode(" 项",-1))])])):e.createCommentVNode("",!0),a.value[o]?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(d,{modelValue:a.value[o].selectedTimes,"onUpdate:modelValue":r=>a.value[o].selectedTimes=r,multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",size:"small",class:"select-control select-control-wide",onChange:r=>ce(o)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value[o].timeList||[],r=>(e.openBlock(),e.createBlock(p,{key:r,label:ae(r,o),value:r},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])):e.createCommentVNode("",!0)],2)):c.type==="selectList"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["config-section select-list-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",we,[e.createElementVNode("span",Le,e.toDisplayString(c.label||"节点列表"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",Ye,[c.multiple?(e.openBlock(),e.createBlock(d,{key:1,modelValue:a.value[o].selectedValues,"onUpdate:modelValue":r=>a.value[o].selectedValues=r,multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",size:"small",class:"select-control select-control-wide",onChange:r=>b()},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options||[],r=>(e.openBlock(),e.createBlock(p,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(e.openBlock(),e.createBlock(d,{key:0,modelValue:a.value[o].selectedValue,"onUpdate:modelValue":r=>a.value[o].selectedValue=r,filterable:"",clearable:"",size:"small",class:"select-control",onChange:r=>b()},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options||[],r=>(e.openBlock(),e.createBlock(p,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))])):e.createCommentVNode("",!0)],2)):c.type==="direction"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["config-section direction-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",Re,[e.createElementVNode("span",Ae,e.toDisplayString(c.label||"位移方向"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options||[],r=>(e.openBlock(),e.createElementBlock("span",{key:r.value,class:e.normalizeClass(["direction-item",{active:a.value[o].selectedValue===r.value}]),onClick:g=>ie(o,r.value)},e.toDisplayString(r.label),11,Me))),128))])):e.createCommentVNode("",!0)],2)):c.type==="range"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["config-section range-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",qe,[e.createElementVNode("span",ze,e.toDisplayString(c.label||"数值区间"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",je,[e.createVNode(m,{modelValue:a.value[o].min,"onUpdate:modelValue":r=>a.value[o].min=r,size:"small",placeholder:c.minPlaceholder||"最小值",class:"range-input",onChange:r=>b()},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]),l[4]||(l[4]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(m,{modelValue:a.value[o].max,"onUpdate:modelValue":r=>a.value[o].max=r,size:"small",placeholder:c.maxPlaceholder||"最大值",class:"range-input",onChange:r=>b()},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]),c.unit?(e.openBlock(),e.createElementBlock("span",Ue,e.toDisplayString(c.unit),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)):c.type==="switch"?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(["config-section switch-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",Ge,[e.createElementVNode("span",Fe,e.toDisplayString(c.label||"显示选项"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options||[],r=>(e.openBlock(),e.createBlock(u,{key:r.value,modelValue:a.value[o][r.value],"onUpdate:modelValue":g=>a.value[o][r.value]=g,onChange:g=>b()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64)}),128)),e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}}})),et=B._export_sfc(Ze,[["__scopeId","data-v-1bd1d47e"]]);exports.default=et;
1
+ "use strict";var me=Object.defineProperty,ge=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ve=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable;var x=(_,v,f)=>v in _?me(_,v,{enumerable:!0,configurable:!0,writable:!0,value:f}):_[v]=f,Y=(_,v)=>{for(var f in v||(v={}))ve.call(v,f)&&x(_,f,v[f]);if(Q)for(var f of Q(v))fe.call(v,f)&&x(_,f,v[f]);return _},K=(_,v)=>ge(_,ye(v));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),B=require("./index-BdWR_FTA.cjs"),he=require("@element-plus/icons-vue"),W=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),ke={class:"section-header"},Ce={class:"section-title"},be={class:"time-range-body"},Ve={key:0,class:"quick-range"},_e=["onClick"],De={key:1,class:"granularity-tabs"},Be=["onClick"],Ee={key:2,class:"date-inputs"},Se={class:"section-header"},Ne={class:"section-title"},Te={key:0,class:"time-list-actions"},Oe={class:"selected-count"},Pe={key:1,class:"time-list-select"},we={class:"section-header"},Le={class:"section-title"},Ye={key:0,class:"select-list"},Re={class:"section-header"},Ae={class:"section-title"},Ie={key:0,class:"direction-tabs"},Me=["onClick"],qe={class:"section-header"},ze={class:"section-title"},je={key:0,class:"range-inputs"},Ue={key:0,class:"range-unit"},Ge={class:"section-header"},Fe={class:"section-title"},He={key:0,class:"display-options"},$e={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"露天矿控制面板",NAME_EN:"Openpit Control Panel",ORDER:15,PLATFORM:["pc","screen"]},Qe={layout:{value:"auto",type:"select",label:"布局模式",options:[{label:"自适应",value:"auto"},{label:"竖排",value:"vertical"},{label:"横排",value:"horizontal"}]},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},hideSectionTitle:{value:!1,type:"switch",label:"隐藏分组标题"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},xe=[{type:"timeRange",label:"时间段",key:"timeRange",targetId:"",rangeAxis:"xAxis",showQuickRange:!0,dateType:"date",dateFormat:"YYYY-MM-DD",quickRangeOptions:[{label:"今天",value:"today"},{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],defaultQuickRange:"week",granularityOptions:[{label:"小时",value:"hour"},{label:"日均",value:"day"}],defaultGranularity:"day",multiple:!1,options:[{label:"选项1",value:1}],minPlaceholder:"",maxPlaceholder:"",unit:""}],Ke=[{key:"type",label:"component.openpitConfigPanel.type",type:"select",options:[{label:"component.openpitConfigPanel.typeOptions.timeRange",value:"timeRange"},{label:"component.openpitConfigPanel.typeOptions.timeList",value:"timeList"},{label:"component.openpitConfigPanel.typeOptions.selectList",value:"selectList"},{label:"component.openpitConfigPanel.typeOptions.direction",value:"direction"},{label:"component.openpitConfigPanel.typeOptions.range",value:"range"},{label:"component.openpitConfigPanel.typeOptions.switch",value:"switch"}]},{key:"label",label:"component.openpitConfigPanel.label",type:"string"},{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"targetId",label:"component.openpitConfigPanel.targetId",type:"string"},{key:"rangeAxis",label:"component.openpitConfigPanel.rangeAxis",type:"select",options:[{label:"component.openpitConfigPanel.rangeAxisOptions.xAxis",value:"xAxis"},{label:"component.openpitConfigPanel.rangeAxisOptions.yAxis",value:"yAxis"},{label:"component.openpitConfigPanel.rangeAxisOptions.radius",value:"radius"}],dependent:"type",dependentValue:"range"},{key:"showQuickRange",label:"component.openpitConfigPanel.showQuickRange",type:"switch",dependent:"type",dependentValue:"timeRange"},{key:"defaultGranularity",label:"component.openpitConfigPanel.defaultGranularity",type:"select",options:[{label:"component.openpitConfigPanel.granularityOptionLabels.hour",value:"hour"},{label:"component.openpitConfigPanel.granularityOptionLabels.day",value:"day"}],dependent:"type",dependentValue:"timeRange"},{key:"timeList",label:"component.openpitConfigPanel.timeList",type:"string",dependent:"type",dependentValue:"timeList"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch",dependent:"type",dependentValue:["selectList"]},{key:"options",label:"component.openpitConfigPanel.options",type:"table",columns:[{key:"label",label:"label",type:"string"},{key:"value",label:"value",type:"string"},{key:"remark",label:"remark",type:"string"}],dependent:"type",dependentValue:["selectList","direction","switch"]},{key:"minPlaceholder",label:"component.openpitConfigPanel.minPlaceholder",type:"string",dependent:"type",dependentValue:"range"},{key:"maxPlaceholder",label:"component.openpitConfigPanel.maxPlaceholder",type:"string",dependent:"type",dependentValue:"range"},{key:"unit",label:"component.openpitConfigPanel.unit",type:"string",dependent:"type",dependentValue:"range"}],We=[],Xe={useAlias:!1,multiObject:!1,source:""},Je={DEFAULT:$e,OPTIONS:Qe,DATA:xe,PARAMS:Ke,SOURCE:We,COMMON:Xe},Ze=e.defineComponent(K(Y({},Je),{__name:"trajectoryConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(_){e.useCssVars(t=>({v15a941b4:A.value.backgroundColor,v6c388130:A.value.borderColor,v1e47c9b2:k.value.textColor,v4ecefb48:k.value.borderColor,v444d252c:k.value.accentColor}));const v=B.useLinkStore(),f=_,N=e.ref(null);let M=0,E=null;const k=e.computed(()=>{var s,p,d,m,c,o,y,V;const{options:t}=f.conf||{},l=((s=t==null?void 0:t.linkChannel)==null?void 0:s.value)||"deepDisplacement",n=((p=t==null?void 0:t.customChannel)==null?void 0:p.value)||"",u=l==="custom"&&n?n:l,i=((d=t==null?void 0:t.layout)==null?void 0:d.value)||"auto";return{bgColor:((m=t==null?void 0:t.bgColor)==null?void 0:m.value)||"#ffffff",textColor:((c=t==null?void 0:t.textColor)==null?void 0:c.value)||"#333333",accentColor:((o=t==null?void 0:t.accentColor)==null?void 0:o.value)||"#409eff",borderColor:((y=t==null?void 0:t.borderColor)==null?void 0:y.value)||"#e5e5e5",hideSectionTitle:((V=t==null?void 0:t.hideSectionTitle)==null?void 0:V.value)===!0,layout:i,linkChannel:u}}),X=e.computed(()=>{const t=String(k.value.layout||"auto");return t==="horizontal"?"layout-horizontal":t==="vertical"?"layout-vertical":"layout-auto"}),J=e.computed(()=>{const t=f.uid;if(!t){const l=`trajectoryConfigPanel_${Date.now()}`;return console.warn("[TrajectoryConfigPanel] 缺少 uid,自动生成:",l),l}return t}),C=e.computed(()=>{var t;return((t=f.conf)==null?void 0:t.data)||[]}),a=e.ref({}),q=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],Z=(t,l)=>((l==null?void 0:l.granularity)||(t==null?void 0:t.defaultGranularity))==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",ee=(t,l)=>((l==null?void 0:l.granularity)||(t==null?void 0:t.defaultGranularity))==="hour"?"datetime":"date",P=(t,l)=>Z(l,a.value[t]),z=(t,l)=>ee(l,a.value[t]),R=(t,l,n)=>{const u=n.includes("HH"),i=u?l.endOf("day").format(n):l.format(n);let s=l.subtract(7,"day").format(n);return t==="today"?s=l.startOf("day").format(n):t==="week"?s=l.subtract(6,"day").startOf("day").format(n):t==="month"?s=l.subtract(29,"day").startOf("day").format(n):t==="quarter"?s=l.subtract(89,"day").startOf("day").format(n):t==="year"&&(s=l.subtract(364,"day").startOf("day").format(n)),{startDate:s,endDate:i}},te=t=>{var u,i;const l=C.value[t];if((l==null?void 0:l.type)==="timeRange")return((u=a.value[t])==null?void 0:u.granularity)||(l==null?void 0:l.defaultGranularity)||"day";const n=C.value.findIndex(s=>s.type==="timeRange");if(n>=0){const s=C.value[n];return((i=a.value[n])==null?void 0:i.granularity)||(s==null?void 0:s.defaultGranularity)||"day"}return"day"},le=t=>{if(!t)return null;if(/^\d+$/.test(t)){const n=Number(t),u=t.length<=10?n*1e3:n,i=new Date(u);return Number.isNaN(i.getTime())?null:i}const l=new Date(t);return Number.isNaN(l.getTime())?null:l},ae=(t,l)=>{if(t==null)return"";const n=String(t).trim();if(!n)return"";const u=typeof l=="number"?te(l):"day",i=le(n);if(!i)return u==="day"?n.slice(0,10):n;const s=i.getFullYear(),p=String(i.getMonth()+1).padStart(2,"0"),d=String(i.getDate()).padStart(2,"0");if(u==="day")return`${s}-${p}-${d}`;const m=String(i.getHours()).padStart(2,"0"),c=String(i.getMinutes()).padStart(2,"0"),o=String(i.getSeconds()).padStart(2,"0");return`${s}-${p}-${d} ${m}:${c}:${o}`},ne=(t,l)=>{if(!Array.isArray(t))return[];if(l!=="day")return t.map(i=>String(i));const n=new Set,u=[];return t.forEach(i=>{const s=String(i||"").trim();if(!s)return;let p=s.slice(0,10);if(/^\d+$/.test(s)){const d=Number(s),m=s.length<=10?d*1e3:d,c=new Date(m);if(!Number.isNaN(c.getTime())){const o=c.getFullYear(),y=String(c.getMonth()+1).padStart(2,"0"),V=String(c.getDate()).padStart(2,"0");p=`${o}-${y}-${V}`}}!p||p.length!==10||n.has(p)||(n.add(p),u.push(p))}),u},j=()=>{C.value.forEach((t,l)=>{var i,s,p,d,m,c,o,y,V,r;a.value[l]||(a.value[l]={});const n=B.dayjs(),u=((i=a.value[l])==null?void 0:i.granularity)==="hour"||t.defaultGranularity==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";if(t.type==="timeRange"){const g=t.quickRangeOptions||q,h=t.defaultQuickRange||((s=g==null?void 0:g[0])==null?void 0:s.value)||"week",T=t.defaultGranularity||((d=(p=t.granularityOptions)==null?void 0:p[0])==null?void 0:d.value)||"",D=R(h,n,u);a.value[l]={quickRange:h,granularity:T,startDate:D.startDate,endDate:D.endDate}}else if(t.type==="timeList"){const g=(m=N.value)!=null&&m.length?[...N.value]:(()=>{var H;const D=C.value.findIndex(L=>L.type==="timeRange");let F=[];if(D>=0&&a.value[D]){const L=B.dayjs(a.value[D].startDate),de=B.dayjs(a.value[D].endDate),$=(((H=a.value[D])==null?void 0:H.granularity)||C.value[D].defaultGranularity)==="hour"?"hour":"day";let O=de;for(;O.isAfter(L)||O.isSame(L,$);)F.push(O.format(u)),O=O.subtract(1,$)}return F})(),T=(((c=a.value[l])==null?void 0:c.selectedTimes)||[]).filter(D=>g.includes(D));a.value[l]={timeList:g,selectedTimes:T,selectAll:T.length>0&&T.length===g.length}}else if(t.type==="selectList")if(t.multiple){const g=(t.options||[]).map(h=>h.value);a.value[l]={selectedValues:g}}else a.value[l]={selectedValue:((y=(o=t.options)==null?void 0:o[0])==null?void 0:y.value)||""};else if(t.type==="direction")a.value[l]={selectedValue:((r=(V=t.options)==null?void 0:V[0])==null?void 0:r.value)||"s"};else if(t.type==="range")a.value[l]={min:"",max:""};else if(t.type==="switch"){const g={};(t.options||[]).forEach(h=>{g[h.value]=h.defaultValue!==!1}),a.value[l]=g}})},A=e.computed(()=>({backgroundColor:k.value.bgColor,color:k.value.textColor,borderColor:k.value.borderColor})),U=t=>{const l={};return C.value.forEach((n,u)=>{var p;if(!a.value[u]||n.type!=="range"&&!n.key)return;const i=String((p=n.targetId)!=null?p:"").trim();if(t!==void 0){if(i&&!i.split(",").map(m=>m.trim()).filter(m=>m).includes(t))return}else if(i)return;const s=a.value[u];if(n.type==="timeRange")l[n.key]={startDate:s.startDate,endDate:s.endDate,quickRange:s.quickRange,granularity:s.granularity};else if(n.type==="timeList")l[n.key]=s.selectedTimes||[];else if(n.type==="selectList")l[n.key]=n.multiple?s.selectedValues:s.selectedValue;else if(n.type==="direction")l[n.key]=s.selectedValue;else if(n.type==="range"){const d=String(n.rangeAxis||"xAxis"),m=n.key?String(n.key):"range",c=s.min===""?null:parseFloat(s.min),o=s.max===""||s.max==="最大值"?null:parseFloat(s.max),y={min:Number.isNaN(c)?null:c,max:Number.isNaN(o)?null:o,rangeAxis:d};l[`${m}__${d}`]=y,l[`range__${d}`]=y,d==="xAxis"&&(l.range=y)}else n.type==="switch"&&(l[n.key]=Y({},s))}),l},oe=()=>{const t=U(),l=J.value,n=C.value,u=k.value.linkChannel||"deepDisplacement",i=[];l&&i.push({objectId:l,config:t});const s=new Map;n.forEach(d=>{const m=d.targetId;if(!m)return;m.split(",").map(o=>o.trim()).filter(o=>o).forEach(o=>{s.has(o)||s.set(o,U(o));const y=s.get(o)||{};i.push({objectId:o,config:y})})});const p=++M;i.forEach((d,m)=>{setTimeout(()=>{if(p!==M)return;const c=Y({source:"trajectoryConfigPanel",type:"filter",objectId:d.objectId,filter:d.config,meta:{channel:u}},d.config);v.publish(u,"trajectoryConfigPanel",c)},m)})},w=()=>{E&&clearTimeout(E),E=setTimeout(()=>{oe(),E=null},200)},G=(t,l)=>{const n=C.value[t];if(!n||n.type!=="timeRange"||!a.value[t])return;const u=B.dayjs(),s=(a.value[t].granularity||n.defaultGranularity)==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";a.value[t].quickRange=l;const p=R(l,u,s);a.value[t].startDate=p.startDate,a.value[t].endDate=p.endDate,I(),b()},I=()=>{var d,m,c;const t=C.value.findIndex(o=>o.type==="timeRange"),l=C.value.findIndex(o=>o.type==="timeList");if(l<0)return;const n=t>=0&&a.value[t]&&(((d=a.value[t])==null?void 0:d.granularity)||((m=C.value[t])==null?void 0:m.defaultGranularity))||"day",u=(c=N.value)!=null&&c.length?[...N.value]:(()=>{if(t>=0&&a.value[t]){const o=n==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",y=B.dayjs(a.value[t].startDate),V=B.dayjs(a.value[t].endDate),r=n==="hour"?"hour":"day",g=[];let h=V;for(;h.isAfter(y)||h.isSame(y,r);)g.push(h.format(o)),h=h.subtract(1,r);return g}return[]})(),i=ne(u,n);a.value[l]||(a.value[l]={}),a.value[l].timeList=i;const p=(a.value[l].selectedTimes||[]).filter(o=>i.includes(o));a.value[l].selectedTimes=p,a.value[l].selectAll=p.length>0&&p.length===i.length},re=t=>{if(!a.value[t])return;const l=a.value[t].selectAll;a.value[t].selectedTimes=l?[...a.value[t].timeList]:[],b()},se=t=>{a.value[t]&&(a.value[t].selectedTimes=[],a.value[t].selectAll=!1,b())},ce=t=>{if(!a.value[t])return;const l=a.value[t].timeList||[],n=a.value[t].selectedTimes||[];a.value[t].selectAll=n.length===l.length,b()},ie=(t,l)=>{a.value[t]&&(a.value[t].selectedValue=l,b())},ue=(t,l)=>{if(!a.value[t])return;a.value[t].granularity=l;const n=B.dayjs(),u=l==="hour"?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",i=a.value[t].quickRange||"week",s=R(i,n,u);a.value[t].startDate=s.startDate,a.value[t].endDate=s.endDate,I(),b()},b=t=>{w()};e.watch(()=>{var t;return(t=f.conf)==null?void 0:t.data},()=>{j(),setTimeout(w,300)},{deep:!0,immediate:!0}),e.watch(()=>v.channels[k.value.linkChannel],t=>{if(!t||!t.payload||!v.shouldHandle(t,"trajectoryConfigPanel"))return;const l=t.payload;(l==null?void 0:l.type)==="timeList"&&Array.isArray(l.timeList)&&(N.value=l.timeList.map(n=>String(n)),I(),w())},{deep:!0}),e.watch(()=>{var t;return(t=f.conf)==null?void 0:t.data},(t,l)=>{t&&t.forEach((n,u)=>{const i=l==null?void 0:l[u];if(n.type&&(!i||n.type!==i.type)){const s=pe(n.type);Object.keys(s).forEach(p=>{(!n[p]||n[p]===""||Array.isArray(n[p])&&n[p].length===0)&&(n[p]=s[p])})}})},{deep:!0});const pe=t=>({timeRange:{label:"时间段",key:"timeRange",showQuickRange:!0,dateType:"date",dateFormat:"YYYY-MM-DD",quickRangeOptions:[{label:"今天",value:"today"},{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],defaultQuickRange:"week",granularityOptions:[{label:"小时",value:"hour"},{label:"日均",value:"day"}],defaultGranularity:"day"},timeList:{label:"时间列表",key:"timeList"},selectList:{label:"节点列表",key:"nodeList",multiple:!1,options:[{label:"选项1",value:1}]},direction:{label:"位移方向",key:"direction",options:[{label:"合",value:"s"},{label:"X轴",value:"x"},{label:"Y轴",value:"y"}]},range:{label:"数值区间",key:"range",minPlaceholder:"最小值",maxPlaceholder:"最大值",unit:"",rangeAxis:"xAxis"},switch:{label:"显示选项",key:"displayOptions",options:[{label:"开始点",value:"showStartPoint"},{label:"结束点",value:"showEndPoint"},{label:"轨迹线",value:"showTrajectory"},{label:"方向箭头",value:"showDirection"}]}})[t]||{};return e.onMounted(()=>{j();const t=C.value.findIndex(l=>l.type==="timeRange");t>=0&&G(t,"week"),setTimeout(w,300)}),e.onUnmounted(()=>{E&&(clearTimeout(E),E=null)}),(t,l)=>{const n=S.ElDatePicker,u=S.ElCheckbox,i=S.ElIcon,s=S.ElButton,p=S.ElOption,d=S.ElSelect,m=S.ElInput;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["trajectory-config-panel",X.value]),style:e.normalizeStyle(A.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(c,o)=>{var y,V;return e.openBlock(),e.createElementBlock(e.Fragment,{key:o},[c.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["config-section time-range-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",ke,[e.createElementVNode("span",Ce,e.toDisplayString(c.label||"时间段"),1)]),e.createElementVNode("div",be,[c.showQuickRange?(e.openBlock(),e.createElementBlock("div",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.quickRangeOptions||q,r=>{var g;return e.openBlock(),e.createElementBlock("span",{key:r.value,class:e.normalizeClass(["range-item",{active:((g=a.value[o])==null?void 0:g.quickRange)===r.value}]),onClick:h=>G(o,r.value)},e.toDisplayString(r.label),11,_e)}),128))])):e.createCommentVNode("",!0),(y=c.granularityOptions)!=null&&y.length?(e.openBlock(),e.createElementBlock("div",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.granularityOptions,r=>{var g;return e.openBlock(),e.createElementBlock("span",{key:r.value,class:e.normalizeClass(["granularity-item",{active:((g=a.value[o])==null?void 0:g.granularity)===r.value}]),onClick:h=>ue(o,r.value)},e.toDisplayString(r.label),11,Be)}),128))])):e.createCommentVNode("",!0),a.value[o]?(e.openBlock(),e.createElementBlock("div",Ee,[e.createVNode(n,{modelValue:a.value[o].startDate,"onUpdate:modelValue":r=>a.value[o].startDate=r,type:z(o,c),placeholder:"开始时间",format:P(o,c),"value-format":P(o,c),size:"small",class:"date-picker",onChange:r=>b()},null,8,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"]),e.createVNode(n,{modelValue:a.value[o].endDate,"onUpdate:modelValue":r=>a.value[o].endDate=r,type:z(o,c),placeholder:"结束时间",format:P(o,c),"value-format":P(o,c),size:"small",class:"date-picker",onChange:r=>b()},null,8,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"])])):e.createCommentVNode("",!0)])],2)):c.type==="timeList"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["config-section time-list-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",Se,[e.createElementVNode("span",Ne,e.toDisplayString(c.label||"采集时间列表"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(u,{modelValue:a.value[o].selectAll,"onUpdate:modelValue":r=>a.value[o].selectAll=r,onChange:r=>re(o)},{default:e.withCtx(()=>[...l[0]||(l[0]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(s,{size:"small",text:"",onClick:r=>se(o)},{default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(e.unref(he.Delete))]),_:1}),l[1]||(l[1]=e.createTextVNode("清空 ",-1))]),_:1},8,["onClick"]),e.createElementVNode("span",Oe,[l[2]||(l[2]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(((V=a.value[o].selectedTimes)==null?void 0:V.length)||0),1),l[3]||(l[3]=e.createTextVNode(" 项",-1))])])):e.createCommentVNode("",!0),a.value[o]?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(d,{modelValue:a.value[o].selectedTimes,"onUpdate:modelValue":r=>a.value[o].selectedTimes=r,multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",size:"small",class:"select-control select-control-wide",onChange:r=>ce(o)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value[o].timeList||[],r=>(e.openBlock(),e.createBlock(p,{key:r,label:ae(r,o),value:r},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])):e.createCommentVNode("",!0)],2)):c.type==="selectList"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["config-section select-list-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",we,[e.createElementVNode("span",Le,e.toDisplayString(c.label||"节点列表"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",Ye,[c.multiple?(e.openBlock(),e.createBlock(d,{key:1,modelValue:a.value[o].selectedValues,"onUpdate:modelValue":r=>a.value[o].selectedValues=r,multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",size:"small",class:"select-control select-control-wide",onChange:r=>b()},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options||[],r=>(e.openBlock(),e.createBlock(p,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(e.openBlock(),e.createBlock(d,{key:0,modelValue:a.value[o].selectedValue,"onUpdate:modelValue":r=>a.value[o].selectedValue=r,filterable:"",clearable:"",size:"small",class:"select-control",onChange:r=>b()},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options||[],r=>(e.openBlock(),e.createBlock(p,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))])):e.createCommentVNode("",!0)],2)):c.type==="direction"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["config-section direction-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",Re,[e.createElementVNode("span",Ae,e.toDisplayString(c.label||"位移方向"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options||[],r=>(e.openBlock(),e.createElementBlock("span",{key:r.value,class:e.normalizeClass(["direction-item",{active:a.value[o].selectedValue===r.value}]),onClick:g=>ie(o,r.value)},e.toDisplayString(r.label),11,Me))),128))])):e.createCommentVNode("",!0)],2)):c.type==="range"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["config-section range-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",qe,[e.createElementVNode("span",ze,e.toDisplayString(c.label||"数值区间"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",je,[e.createVNode(m,{modelValue:a.value[o].min,"onUpdate:modelValue":r=>a.value[o].min=r,size:"small",placeholder:c.minPlaceholder||"最小值",class:"range-input",onChange:r=>b()},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]),l[4]||(l[4]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(m,{modelValue:a.value[o].max,"onUpdate:modelValue":r=>a.value[o].max=r,size:"small",placeholder:c.maxPlaceholder||"最大值",class:"range-input",onChange:r=>b()},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]),c.unit?(e.openBlock(),e.createElementBlock("span",Ue,e.toDisplayString(c.unit),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)):c.type==="switch"?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(["config-section switch-section",{"hide-section-title":k.value.hideSectionTitle}])},[e.createElementVNode("div",Ge,[e.createElementVNode("span",Fe,e.toDisplayString(c.label||"显示选项"),1)]),a.value[o]?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options||[],r=>(e.openBlock(),e.createBlock(u,{key:r.value,modelValue:a.value[o][r.value],"onUpdate:modelValue":g=>a.value[o][r.value]=g,onChange:g=>b()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],64)}),128)),e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}}})),et=B._export_sfc(Ze,[["__scopeId","data-v-1bd1d47e"]]);exports.default=et;
@@ -10,13 +10,13 @@ var rt = (f, c, x) => c in f ? At(f, c, { enumerable: !0, configurable: !0, writ
10
10
  Lt.call(c, x) && rt(f, x, c[x]);
11
11
  return f;
12
12
  }, ut = (f, c) => Tt(f, Pt(c));
13
- import { defineComponent as wt, computed as K, ref as $, watch as mt, watchEffect as Dt, onMounted as Et, onBeforeUnmount as zt, openBlock as Z, createElementBlock as G, normalizeStyle as q, unref as R, toDisplayString as ht, createCommentVNode as Kt, createElementVNode as L, normalizeClass as yt, Fragment as $t, renderList as Rt, renderSlot as jt, nextTick as gt } from "vue";
14
- import { l as Ht, P as vt, C as Yt, O as Xt, _ as Bt } from "./index-BHBE19E2.js";
13
+ import { defineComponent as wt, computed as K, ref as R, watch as mt, watchEffect as Dt, onMounted as Et, onBeforeUnmount as zt, openBlock as Z, createElementBlock as G, normalizeStyle as W, unref as $, toDisplayString as ht, createCommentVNode as Kt, createElementVNode as L, normalizeClass as yt, Fragment as Rt, renderList as $t, renderSlot as jt, nextTick as gt } from "vue";
14
+ import { o as Ht, R as vt, C as Yt, Q as Xt, _ as Bt } from "./index-CCWU_se2.js";
15
15
  import "element-plus";
16
- import { E as Ut } from "./EChartComponentBase-BtAW2Yko.js";
16
+ import { E as Ut } from "./EChartComponentBase-DUyyaXgA.js";
17
17
  import { g as Zt } from "./titleStyle-BT5GlpAb.js";
18
- import { A as Gt, D as Wt } from "./ele-circleBar-icon-DNBUxt0A.js";
19
- import { u as qt, i as Jt, a as Qt } from "./installCanvasRenderer-oDYkyVFy.js";
18
+ import { A as Gt, D as Qt } from "./ele-circleBar-icon-DNBUxt0A.js";
19
+ import { u as Wt, i as qt, a as Jt } from "./installCanvasRenderer-oDYkyVFy.js";
20
20
  import { i as te } from "./install-DbAuuRVv.js";
21
21
  import { i as ee } from "./install-B_v5XJLG.js";
22
22
  import { i as ne } from "./install-uPZUxWT9.js";
@@ -24,7 +24,7 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
24
24
  class: "timeline-track",
25
25
  ref: "trackRef"
26
26
  }, re = ["onClick"], ce = {
27
- DEFAULT_ICON: Wt,
27
+ DEFAULT_ICON: Qt,
28
28
  ACTIVE_ICON: Gt,
29
29
  NAME_CN: "动态轨迹分布图",
30
30
  NAME_EN: "TrajectoryScatter",
@@ -108,7 +108,7 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
108
108
  theme: { type: String, default: "light" }
109
109
  },
110
110
  setup(f) {
111
- qt([te, Jt, Qt, ee, ne]);
111
+ Wt([te, qt, Jt, ee, ne]);
112
112
  const c = f, x = Ht();
113
113
  let j = null;
114
114
  class xt extends Ut {
@@ -229,18 +229,18 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
229
229
  }
230
230
  const v = new xt(c, "trajectoryScatter"), pt = v.getEchartId();
231
231
  v.setupLifecycle();
232
- const p = v.getStyle(), St = K(() => Zt(c.conf.options)), A = $([]), H = (t) => typeof t == "number" && Number.isFinite(t), dt = K(() => {
232
+ const p = v.getStyle(), St = K(() => Zt(c.conf.options)), A = R([]), H = (t) => typeof t == "number" && Number.isFinite(t), dt = K(() => {
233
233
  var e, n;
234
234
  return (((n = (e = c.conf) == null ? void 0 : e.runtime) == null ? void 0 : n.points) || []).map((i) => [Number(i == null ? void 0 : i.x), Number(i == null ? void 0 : i.y)]).filter((i) => H(i == null ? void 0 : i[0]) && H(i == null ? void 0 : i[1]));
235
235
  }), Mt = K(() => {
236
236
  var n;
237
237
  const t = ((n = c.conf) == null ? void 0 : n.runtime) || {}, e = t.allPoints || t.points || [];
238
238
  return Array.isArray(e) ? e : [];
239
- }), d = $(null), J = $(null), Y = (t) => {
239
+ }), d = R(null), q = R(null), Y = (t) => {
240
240
  if (t === "" || t === null || t === void 0) return null;
241
241
  const e = Number(t);
242
242
  return isNaN(e) ? null : e;
243
- }, Q = (t, e, n) => {
243
+ }, J = (t, e, n) => {
244
244
  var a, s, l, o, u, r;
245
245
  return n && t && t[n] !== void 0 ? t[n] : n && e && e[n] !== void 0 ? e[n] : (r = (u = (o = (l = (s = (a = t == null ? void 0 : t.time) != null ? a : t == null ? void 0 : t.timestamp) != null ? s : t == null ? void 0 : t.datetime) != null ? l : e == null ? void 0 : e.time) != null ? o : e == null ? void 0 : e.timestamp) != null ? u : e == null ? void 0 : e.datetime) != null ? r : e == null ? void 0 : e.datatime;
246
246
  }, bt = (t) => {
@@ -301,7 +301,7 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
301
301
  yMin: Math.min((m = o.yMin) != null ? m : 0, 0),
302
302
  yMax: Math.max((h = o.yMax) != null ? h : 0, 0)
303
303
  };
304
- }, T = $(0), w = $(!1), Ct = K(() => {
304
+ }, T = R(0), w = R(!1), Ct = K(() => {
305
305
  var e, n;
306
306
  const t = ((n = (e = c.conf) == null ? void 0 : e.runtime) == null ? void 0 : n.points) || [];
307
307
  return t[t.length - 1] || null;
@@ -329,13 +329,13 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
329
329
  const s = typeof t.dataIndex == "number" ? t.dataIndex : 0;
330
330
  a = Math.max(0, Math.min(s, i.length - 1));
331
331
  }
332
- P(), W(a);
332
+ P(), Q(a);
333
333
  }, E = () => {
334
334
  gt(() => {
335
335
  const t = v.getChartInstance();
336
336
  t && (t.setOption(v.getChartOption(), !0), t.off("click", tt), t.on("click", tt));
337
337
  });
338
- }, W = (t) => {
338
+ }, Q = (t) => {
339
339
  var l, o, u, r;
340
340
  const e = c.conf;
341
341
  e.runtime || (e.runtime = {});
@@ -344,7 +344,7 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
344
344
  const i = Math.max(1, Number((r = (u = (o = (l = e.options) == null ? void 0 : l.points) == null ? void 0 : o.value) != null ? u : p.value.points) != null ? r : 200)), a = Math.max(0, Math.min(t, n.length - 1)), s = Math.max(0, a - i + 1);
345
345
  e.runtime.points = n.slice(s, a + 1), T.value = a, X(), D(), E();
346
346
  }, kt = (t) => {
347
- P(), W(t);
347
+ P(), Q(t);
348
348
  }, P = () => {
349
349
  w.value = !1, j && (clearInterval(j), j = null);
350
350
  }, et = () => {
@@ -359,13 +359,13 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
359
359
  P();
360
360
  return;
361
361
  }
362
- W(T.value + 1);
362
+ Q(T.value + 1);
363
363
  }
364
364
  }, Math.max(200, t));
365
365
  }, _t = () => {
366
366
  A.value.length && (w.value ? P() : et());
367
367
  }, nt = (t) => {
368
- J.value !== t && (J.value = t, d.value = null);
368
+ q.value !== t && (q.value = t, d.value = null);
369
369
  }, B = () => {
370
370
  var i, a, s;
371
371
  const t = ((i = c.conf) == null ? void 0 : i.options) || {}, e = (s = (a = t == null ? void 0 : t.autoPlay) == null ? void 0 : a.value) != null ? s : p.value.autoPlay, n = A.value.length > 1;
@@ -403,7 +403,7 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
403
403
  if (y && m && String(y) !== String(m))
404
404
  return;
405
405
  }
406
- const l = ((N = c.conf) == null ? void 0 : N.options) || {}, o = ((C = l == null ? void 0 : l.listenXKey) == null ? void 0 : C.value) || p.value.listenXKey || "elevation", u = ((O = l == null ? void 0 : l.listenYKey) == null ? void 0 : O.value) || p.value.listenYKey || "speed", r = ((k = l == null ? void 0 : l.listenTimeKey) == null ? void 0 : k.value) || p.value.listenTimeKey || "", g = Number(n == null ? void 0 : n[o]), S = Number(n == null ? void 0 : n[u]), F = Q(n, t.topic, r);
406
+ const l = ((N = c.conf) == null ? void 0 : N.options) || {}, o = ((C = l == null ? void 0 : l.listenXKey) == null ? void 0 : C.value) || p.value.listenXKey || "elevation", u = ((O = l == null ? void 0 : l.listenYKey) == null ? void 0 : O.value) || p.value.listenYKey || "speed", r = ((k = l == null ? void 0 : l.listenTimeKey) == null ? void 0 : k.value) || p.value.listenTimeKey || "", g = Number(n == null ? void 0 : n[o]), S = Number(n == null ? void 0 : n[u]), F = J(n, t.topic, r);
407
407
  if (!Number.isFinite(g) || !Number.isFinite(S)) {
408
408
  console.warn("[trajectoryScatter] 联动数据无法解析为数字,已跳过该点:", {
409
409
  channel: e,
@@ -442,7 +442,7 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
442
442
  o.push({ x: z, y: U, t: Vt, color: F });
443
443
  });
444
444
  else if (l && typeof l == "object") {
445
- const y = i != null && i.multiObject ? "" : vt(i, i == null ? void 0 : i.useAlias, c.uid), m = y && ((C = (N = l == null ? void 0 : l[y]) == null ? void 0 : N[s]) == null ? void 0 : C.data) || ((O = l == null ? void 0 : l[s]) == null ? void 0 : O.data) || (l == null ? void 0 : l.data) || l, h = Number(m == null ? void 0 : m[r]), z = Number(m == null ? void 0 : m[g]), U = Q(m, l, S);
445
+ const y = i != null && i.multiObject ? "" : vt(i, i == null ? void 0 : i.useAlias, c.uid), m = y && ((C = (N = l == null ? void 0 : l[y]) == null ? void 0 : N[s]) == null ? void 0 : C.data) || ((O = l == null ? void 0 : l[s]) == null ? void 0 : O.data) || (l == null ? void 0 : l.data) || l, h = Number(m == null ? void 0 : m[r]), z = Number(m == null ? void 0 : m[g]), U = J(m, l, S);
446
446
  !Number.isFinite(h) || !Number.isFinite(z) ? console.warn("[trajectoryScatter] 实时点位字段无法解析为数字,已跳过:", {
447
447
  objectId: y,
448
448
  source: s,
@@ -484,23 +484,23 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
484
484
  P();
485
485
  }), (t, e) => (Z(), G("div", {
486
486
  class: "mix-component",
487
- style: q({ background: R(p).bgColor, borderRadius: `${R(p).radiusSize}px` })
487
+ style: W({ background: $(p).bgColor, borderRadius: `${$(p).radiusSize}px` })
488
488
  }, [
489
- R(p).isHideTitle ? Kt("", !0) : (Z(), G("div", {
489
+ $(p).isHideTitle ? Kt("", !0) : (Z(), G("div", {
490
490
  key: 0,
491
491
  class: "mix-title",
492
- style: q(St.value)
492
+ style: W(St.value)
493
493
  }, ht(f.conf.caption || f.conf.name), 5)),
494
494
  L("div", ie, [
495
495
  L("div", le, [
496
496
  L("div", {
497
497
  class: "echart-container",
498
- id: R(pt)
498
+ id: $(pt)
499
499
  }, null, 8, ae)
500
500
  ]),
501
501
  L("div", {
502
502
  class: "timeline",
503
- style: q({ height: `${R(p).timelineHeight}px` })
503
+ style: W({ height: `${$(p).timelineHeight}px` })
504
504
  }, [
505
505
  L("div", se, [
506
506
  L("div", {
@@ -509,7 +509,7 @@ const ie = { class: "mix-body" }, le = { class: "chart-wrap" }, ae = ["id"], se
509
509
  }, "II", 2)
510
510
  ]),
511
511
  L("div", oe, [
512
- (Z(!0), G($t, null, Rt(A.value, (n, i) => (Z(), G("div", {
512
+ (Z(!0), G(Rt, null, $t(A.value, (n, i) => (Z(), G("div", {
513
513
  key: i,
514
514
  class: yt(["time-item", { active: i === T.value }]),
515
515
  onClick: (a) => kt(i)