mixdashboards 1.1.19 → 1.1.21

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 (359) hide show
  1. package/dist/{AgActionsRenderer-PlZa78ff.js → AgActionsRenderer-3HKXKUJY.js} +1 -1
  2. package/dist/{AgActionsRenderer-Dlr21zZJ.cjs → AgActionsRenderer-DnPvuT_-.cjs} +1 -1
  3. package/dist/{AgGridTable-oXfzJc2L.js → AgGridTable-BQ8M3fDj.js} +1 -1
  4. package/dist/{AgGridTable-CE6GaYj4.cjs → AgGridTable-BQvI6jpO.cjs} +1 -1
  5. package/dist/{BaseComponent-DdC8fmD6.cjs → BaseComponent-DKuQG62G.cjs} +1 -1
  6. package/dist/{BaseComponent-Bv3RJ3vA.js → BaseComponent-Dn65PXTp.js} +3 -3
  7. package/dist/{EChartComponentBase-DzP0_KR9.cjs → EChartComponentBase-8GSbyY5P.cjs} +1 -1
  8. package/dist/{EChartComponentBase-B5seB4Mc.js → EChartComponentBase-skupRYzl.js} +2 -2
  9. package/dist/{EmergencyPlanPanel-tVOIWw2Q.js → EmergencyPlanPanel-C4OsnsPP.js} +1 -1
  10. package/dist/{EmergencyPlanPanel-9KW6SFeg.cjs → EmergencyPlanPanel-DLvOrE5U.cjs} +1 -1
  11. package/dist/{HistoryPlanDialog-CDFm2aaq.cjs → HistoryPlanDialog--99rPq54.cjs} +1 -1
  12. package/dist/{HistoryPlanDialog-BJ8jXVxW.js → HistoryPlanDialog-DI0H_vgZ.js} +1 -1
  13. package/dist/{MixiotAppDetailPage-CGxGF4b4.cjs → MixiotAppDetailPage-4mYR4gHm.cjs} +1 -1
  14. package/dist/{MixiotAppDetailPage-BY0b1cSQ.js → MixiotAppDetailPage-C_NrtqJU.js} +1 -1
  15. package/dist/{MonitoringMap-BhE-240t.cjs → MonitoringMap-CstXoU8n.cjs} +1 -1
  16. package/dist/{MonitoringMap-Caf2Shxs.js → MonitoringMap-Gxy8ldt1.js} +2 -2
  17. package/dist/{UniverSheet-DK1fnNou.js → UniverSheet-DGNOHAEJ.js} +2 -2
  18. package/dist/{UniverSheet-CoBlKEHm.cjs → UniverSheet-phDDfwXk.cjs} +1 -1
  19. package/dist/{accelerationChart-CpzAy4XN.cjs → accelerationChart-B_y_8Y4q.cjs} +1 -1
  20. package/dist/{accelerationChart-CP1QTBXX.js → accelerationChart-C4JTCc65.js} +19 -19
  21. package/dist/{actionItem-CcDYnjv-.cjs → actionItem-Bdw3MAAf.cjs} +1 -1
  22. package/dist/{actionItem-C2CUz21T.js → actionItem-CGOgCPJR.js} +2 -2
  23. package/dist/{alarmLevelChart-D1el5vNk.js → alarmLevelChart-BQF-4a0s.js} +2 -2
  24. package/dist/{alarmLevelChart-bS2UEWev.cjs → alarmLevelChart-CY4GqDio.cjs} +1 -1
  25. package/dist/{alertTable-BdKLNkVJ.cjs → alertTable-D3riLPwz.cjs} +1 -1
  26. package/dist/{alertTable-21qWBMNt.js → alertTable-DgiRdm5f.js} +2 -2
  27. package/dist/{aliasObjectSelectorDemo-CpNohSP3.js → aliasObjectSelectorDemo-C7gQUdGu.js} +5 -5
  28. package/dist/{aliasObjectSelectorDemo-C7NLq1SO.cjs → aliasObjectSelectorDemo-DXFCCnvj.cjs} +1 -1
  29. package/dist/{annualRainfallChart-DDGrKSyV.js → annualRainfallChart-C1yG42iq.js} +2 -2
  30. package/dist/{annualRainfallChart-BvvLnmDL.cjs → annualRainfallChart-D3oUahrK.cjs} +1 -1
  31. package/dist/{aqi-B51UwYP8.cjs → aqi-B3g_go92.cjs} +1 -1
  32. package/dist/{aqi-SrcWK-ox.js → aqi-DLqM9gGc.js} +4 -4
  33. package/dist/{aqiIndass-DY6U7dbZ.js → aqiIndass-DDtB5_wf.js} +17 -17
  34. package/dist/{aqiIndass-BVxD6QC4.cjs → aqiIndass-DRYU-FAs.cjs} +1 -1
  35. package/dist/{areaDeformCurve-CWgMj6Ld.cjs → areaDeformCurve-CnvUJY_x.cjs} +1 -1
  36. package/dist/{areaDeformCurve-D3BuGscE.js → areaDeformCurve-DaLtFoJT.js} +2 -2
  37. package/dist/{arrayCard-9QeKfHnv.cjs → arrayCard-9p0Bkc_e.cjs} +1 -1
  38. package/dist/{arrayCard-qgDnMdcU.js → arrayCard-FYb8TmUw.js} +2 -2
  39. package/dist/{audio-CbbNeFwR.js → audio-BBXpJP54.js} +2 -2
  40. package/dist/{audio-lrTBdjeY.cjs → audio-DGxXcB0a.cjs} +1 -1
  41. package/dist/{bar-CJN8j8gU.js → bar-D26zndUl.js} +8 -8
  42. package/dist/{bar-BfPMVpDX.cjs → bar-btY9Pwkk.cjs} +1 -1
  43. package/dist/{basicShapeToolbox-eUxdwSiA.cjs → basicShapeToolbox-XR_NHK87.cjs} +1 -1
  44. package/dist/{basicShapeToolbox-DqSW0K9M.js → basicShapeToolbox-Y6mXTA8o.js} +7 -7
  45. package/dist/{bmp-pGXNGQ6L.js → bmp-C7tYeLi0.js} +2 -2
  46. package/dist/{bmp-BhCJePGA.cjs → bmp-DlSoc3Rw.cjs} +1 -1
  47. package/dist/{box-BAgrzKXC.js → box-DroQaZjH.js} +16 -16
  48. package/dist/{box-Be6Hpox4.cjs → box-DyIX9weX.cjs} +1 -1
  49. package/dist/{chartConfigPanel-BvMXZB2L.js → chartConfigPanel-D4dbsVKj.js} +1 -1
  50. package/dist/{chartConfigPanel-CGWijgZ-.cjs → chartConfigPanel-DvTKL5EZ.cjs} +1 -1
  51. package/dist/{circleBar-CGlveIpB.js → circleBar-DCnx8wNj.js} +2 -2
  52. package/dist/{circleBar-COsnnOW8.cjs → circleBar-DulXgWd8.cjs} +1 -1
  53. package/dist/{clock-CVO43_uj.js → clock-B1X6vX22.js} +2 -2
  54. package/dist/{clock-DgyRJ55m.cjs → clock-CeM6LdAl.cjs} +1 -1
  55. package/dist/{clt-Bfh4zPhb.cjs → clt-CcpO8rrD.cjs} +1 -1
  56. package/dist/{clt-d8tEBDXa.js → clt-IAzRVgiu.js} +15 -15
  57. package/dist/{cmc-B7O-zg2t.cjs → cmc-B4xRwSti.cjs} +1 -1
  58. package/dist/{cmc-By56qP2c.js → cmc-Swd4NfxE.js} +10 -10
  59. package/dist/{cmp-xri5dKb9.js → cmp--gCtei5x.js} +2 -2
  60. package/dist/{cmp-D73tbgfL.cjs → cmp-B9Aip3T2.cjs} +1 -1
  61. package/dist/{conclusionCard-EsUi-cs0.cjs → conclusionCard-CRif9GmS.cjs} +1 -1
  62. package/dist/{conclusionCard-Dk1KoNii.js → conclusionCard-DQ0HTHsg.js} +2 -2
  63. package/dist/{controlList-DlFba9SA.js → controlList-4TidO_XJ.js} +4 -4
  64. package/dist/{controlList-jIvwSzAZ.cjs → controlList-CwLNEkAi.cjs} +1 -1
  65. package/dist/{controlRecordList-Bmtp681m.cjs → controlRecordList-CuvV65TE.cjs} +1 -1
  66. package/dist/{controlRecordList-BJjkRs8d.js → controlRecordList-dPW6e4FN.js} +3 -3
  67. package/dist/{controlRecordListAPP-C_oMTkva.js → controlRecordListAPP-CObVdW3l.js} +2 -2
  68. package/dist/{controlRecordListAPP-C02TdcvH.cjs → controlRecordListAPP-DCzTOeXr.cjs} +1 -1
  69. package/dist/{crd-BS6MSmcS.cjs → crd-AH_sGivo.cjs} +1 -1
  70. package/dist/{crd-BYLbCcrj.js → crd-CEWC005o.js} +20 -20
  71. package/dist/{ctrBtn-V4qjGGtx.js → ctrBtn-8xev-mny.js} +3 -3
  72. package/dist/{ctrBtn-DhvhVrCW.cjs → ctrBtn-nYp9T0n0.cjs} +1 -1
  73. package/dist/{ctrSet-CHZZJIF7.js → ctrSet-3Q4eJSfK.js} +11 -11
  74. package/dist/{ctrSet-CQHpxMxP.cjs → ctrSet-z_9ztVyG.cjs} +1 -1
  75. package/dist/{ctrSwitch-ChvtxV9I.js → ctrSwitch-BhqYXTMZ.js} +7 -7
  76. package/dist/{ctrSwitch-D5n8S2_r.cjs → ctrSwitch-DacpvyBJ.cjs} +1 -1
  77. package/dist/{dataManagement-C3z0jdVy.js → dataManagement-BiPhJbF1.js} +2 -2
  78. package/dist/{dataManagement-DzESXejv.cjs → dataManagement-DP1Chfo2.cjs} +1 -1
  79. package/dist/{dataReport-D7WV4er3.js → dataReport-CQaL-d_q.js} +2 -2
  80. package/dist/{dataReport-D1myyCz7.cjs → dataReport-C_8TF5Dz.cjs} +1 -1
  81. package/dist/{dataTable-DkCWvmYS.js → dataTable-Bbx5XgV-.js} +1 -1
  82. package/dist/{dataTable-DOQRfWJN.cjs → dataTable-D6-325qb.cjs} +1 -1
  83. package/dist/{datetime-BfA0Yxsf.js → datetime-CmXZdgkW.js} +2 -2
  84. package/dist/{datetime-Dgr1l4mG.cjs → datetime-DBrUO7wD.cjs} +1 -1
  85. package/dist/{deepClusterSlipSurface-BTNdbcD0.cjs → deepClusterSlipSurface-Ch8i2ql5.cjs} +1 -1
  86. package/dist/{deepClusterSlipSurface-BotjleWU.js → deepClusterSlipSurface-D7o7mgg7.js} +27 -27
  87. package/dist/{deepDataMatrix-CqsdmOoD.js → deepDataMatrix-D9GCg496.js} +23 -23
  88. package/dist/{deepDataMatrix-B1glL8v7.cjs → deepDataMatrix-DoM8KUHn.cjs} +1 -1
  89. package/dist/{deepDisplacement3D-DNwOT442.cjs → deepDisplacement3D-C8ZRCP-R.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-DLdpPEbS.js → deepDisplacement3D-Cjx11pre.js} +2 -2
  91. package/dist/{deepDisplacementChart-DjaHZ1pw.js → deepDisplacementChart-BHe83IoB.js} +23 -23
  92. package/dist/{deepDisplacementChart-CfGD5BrP.cjs → deepDisplacementChart-BlcS3DVl.cjs} +1 -1
  93. package/dist/{deepDisplacementChart-jJJQQFY6.js → deepDisplacementChart-HuWab3pz.js} +27 -27
  94. package/dist/{deepDisplacementChart-lDFewdsF.cjs → deepDisplacementChart-r3GIC8hq.cjs} +1 -1
  95. package/dist/{deepDisplacementView-B4Go1Hq0.js → deepDisplacementView-B4RBH8Ie.js} +1 -1
  96. package/dist/{deepDisplacementView-BH0UfjV6.cjs → deepDisplacementView-BHZQ4s3K.cjs} +1 -1
  97. package/dist/{deepNodeTemperatureChart-DUszGqXz.cjs → deepNodeTemperatureChart-BswYkP9V.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-9JmmT_3j.js → deepNodeTemperatureChart-D9maVN-M.js} +28 -28
  99. package/dist/{deepTangentAngleChart-rQ8QfuGN.js → deepTangentAngleChart-DIWKa8r3.js} +18 -18
  100. package/dist/{deepTangentAngleChart-C2CwkfSV.cjs → deepTangentAngleChart-DQxOv4Vz.cjs} +1 -1
  101. package/dist/{deepTemperatureField-C-ilAUbT.cjs → deepTemperatureField-2GBzigs_.cjs} +1 -1
  102. package/dist/{deepTemperatureField-CubuMfdf.js → deepTemperatureField-DlLLcuFb.js} +23 -23
  103. package/dist/{deepTrendChart-CLQFmRr2.cjs → deepTrendChart-CbYdfjcX.cjs} +1 -1
  104. package/dist/{deepTrendChart-Bo7kcMpS.js → deepTrendChart-CdX41nqe.js} +40 -40
  105. package/dist/{deviceOnlineStatus-DBulFfoC.cjs → deviceOnlineStatus-BMfNv4fX.cjs} +1 -1
  106. package/dist/{deviceOnlineStatus-CtIL7VFP.js → deviceOnlineStatus-BdOeLbLy.js} +2 -2
  107. package/dist/{deviceStatus-BDVPjgyN.js → deviceStatus-B8Ijgoyf.js} +15 -15
  108. package/dist/{deviceStatus-CF7z3bfZ.cjs → deviceStatus-CbYBmGvy.cjs} +1 -1
  109. package/dist/{displacementDataTable-B9HARhGm.cjs → displacementDataTable-BI8cE-vY.cjs} +1 -1
  110. package/dist/{displacementDataTable-GkggvGaZ.js → displacementDataTable-Cqi5Ql6a.js} +17 -17
  111. package/dist/{displacementTrajectoryChart-C_6Yq97U.js → displacementTrajectoryChart-D1UPR4dt.js} +30 -30
  112. package/dist/{displacementTrajectoryChart-CEui7uVX.cjs → displacementTrajectoryChart-DJM_B-gL.cjs} +1 -1
  113. package/dist/{displacementTrendChart-BStbvtyS.cjs → displacementTrendChart-C4jvpdRY.cjs} +1 -1
  114. package/dist/{displacementTrendChart-C40yhGCg.js → displacementTrendChart-Dii90QjN.js} +18 -18
  115. package/dist/{dxf-BoF0vKri.js → dxf-DAAwQlgQ.js} +2 -2
  116. package/dist/{dxf-CVjZUhtn.cjs → dxf-DsJIwOOJ.cjs} +1 -1
  117. package/dist/{dzc-B4ZvwN_l.js → dzc-BjOYTnIF.js} +5 -5
  118. package/dist/{dzc-Bc9cF-kF.cjs → dzc-CpML7WAZ.cjs} +1 -1
  119. package/dist/{emergencyPlan-DVoHbsNX.cjs → emergencyPlan-DWpGIszu.cjs} +1 -1
  120. package/dist/{emergencyPlan-Bae0pJIK.js → emergencyPlan-DeL1roPL.js} +3 -3
  121. package/dist/{evn-DwzNdVCs.js → evn-CUajXlYc.js} +2 -2
  122. package/dist/{evn-CwVRqTsX.cjs → evn-D0ROeiQD.cjs} +1 -1
  123. package/dist/{evolutionChart-xgWP4gp9.js → evolutionChart-B-2W9qVE.js} +3 -3
  124. package/dist/{evolutionChart-DcYx4Pka.cjs → evolutionChart-D23ALmPJ.cjs} +1 -1
  125. package/dist/{fileViewer-BD81tOyy.js → fileViewer-D6-jyRWy.js} +9 -9
  126. package/dist/{fileViewer-I2uylpjR.cjs → fileViewer-DHDmo6px.cjs} +1 -1
  127. package/dist/{filterBar-Dri4QUIb.cjs → filterBar-Bx0qkR7L.cjs} +1 -1
  128. package/dist/{filterBar-1JX2PNo7.js → filterBar-Cw-wbtF1.js} +2 -2
  129. package/dist/{fireCombustionCurve-B7fBz7l4.cjs → fireCombustionCurve-Dj2o6qcy.cjs} +1 -1
  130. package/dist/{fireCombustionCurve-Bh4mHmWN.js → fireCombustionCurve-wPPE55j_.js} +3 -3
  131. package/dist/{fireFilterBar-C_6JQb5k.js → fireFilterBar-COgdZt2b.js} +2 -2
  132. package/dist/{fireFilterBar-B916WbkV.cjs → fireFilterBar-t-aUk0FZ.cjs} +1 -1
  133. package/dist/{fireHistoryTable-DYbmSsbK.cjs → fireHistoryTable-BgzroLVi.cjs} +1 -1
  134. package/dist/{fireHistoryTable-DG0VPFRM.js → fireHistoryTable-Em_cwZSy.js} +2 -2
  135. package/dist/{gag-BBSJFndH.cjs → gag-C5gOltT8.cjs} +1 -1
  136. package/dist/{gag-BMrGqaQL.js → gag-Dd-osrR9.js} +2 -2
  137. package/dist/{gasStationList-yiSPtQ7o.cjs → gasStationList-CKe02Teb.cjs} +1 -1
  138. package/dist/{gasStationList-CgeVIXbG.js → gasStationList-CepcJ9BG.js} +3 -3
  139. package/dist/{geo3dViewer-DQfOfbvI.cjs → geo3dViewer-CSq4-kE-.cjs} +1 -1
  140. package/dist/{geo3dViewer-C9_rSsKP.js → geo3dViewer-yHqVv2BH.js} +3 -3
  141. package/dist/{glbModel-Dhw1Gtbr.cjs → glbModel-CBM7-1vZ.cjs} +1 -1
  142. package/dist/{glbModel-NldHnOVl.js → glbModel-DFDIJi5z.js} +2 -2
  143. package/dist/{globalObjectSelector-KnFppL_e.js → globalObjectSelector-BoBf_njv.js} +43 -43
  144. package/dist/{globalObjectSelector-BCPaufx_.cjs → globalObjectSelector-BvK0QxXk.cjs} +1 -1
  145. package/dist/{gnssFilterBar-CV4Toj67.cjs → gnssFilterBar-BabiLlIC.cjs} +1 -1
  146. package/dist/{gnssFilterBar-BwKMyUrQ.js → gnssFilterBar-C4Ozsjee.js} +2 -2
  147. package/dist/{gnssHistoryTable-CPf2oH22.cjs → gnssHistoryTable-CEtxui4z.cjs} +1 -1
  148. package/dist/{gnssHistoryTable-C6Wkw7OW.js → gnssHistoryTable-DWICO-OK.js} +2 -2
  149. package/dist/{gnssMapView-CutaT360.cjs → gnssMapView-C5IzKoTF.cjs} +2 -2
  150. package/dist/{gnssMapView-C-eK2r5B.js → gnssMapView-CgLO6fng.js} +4 -4
  151. package/dist/{gnssSectionProfile--g5C-EWx.js → gnssSectionProfile-BFU5_iQa.js} +2 -2
  152. package/dist/{gnssSectionProfile-EuFzJtuh.cjs → gnssSectionProfile-BcS3AU5H.cjs} +1 -1
  153. package/dist/{gnssTimeSeriesChart-NC4tfx2H.cjs → gnssTimeSeriesChart-2AOe01nY.cjs} +1 -1
  154. package/dist/{gnssTimeSeriesChart-CqmMTpuf.js → gnssTimeSeriesChart-Cyc9JVmX.js} +2 -2
  155. package/dist/{gnssXYTrajectory-_O0KOUM2.cjs → gnssXYTrajectory-B3HDdORI.cjs} +1 -1
  156. package/dist/{gnssXYTrajectory-Zpj3HyXr.js → gnssXYTrajectory-DAjqaaOt.js} +2 -2
  157. package/dist/{grd-BaPKVJ4W.js → grd-BdraSTc0.js} +18 -18
  158. package/dist/{grd-TbRuDGQr.cjs → grd-jisN3fY_.cjs} +1 -1
  159. package/dist/{grdIndass-3DrX62Jn.js → grdIndass-BuEWpm2p.js} +5 -5
  160. package/dist/{grdIndass-CKi2RLyZ.cjs → grdIndass-BxJWHgbc.cjs} +1 -1
  161. package/dist/{grg-Cgxf4HNj.js → grg-BiUyteXn.js} +13 -13
  162. package/dist/{grg-CFBuQnL1.cjs → grg-DHDNZzvS.cjs} +1 -1
  163. package/dist/{gridview-BhxlYHGR.cjs → gridview-C2eGcIgv.cjs} +1 -1
  164. package/dist/{gridview-BTGTAbxK.js → gridview-DsDgxIu-.js} +2 -2
  165. package/dist/{groundwaterFilterBar-BVxaSfzM.js → groundwaterFilterBar-CwNVHLoq.js} +2 -2
  166. package/dist/{groundwaterFilterBar-4SAnrU9X.cjs → groundwaterFilterBar-Dwoyvzll.cjs} +1 -1
  167. package/dist/{groundwaterProfileChart-DRv-gvDc.js → groundwaterProfileChart-pYkKSQRV.js} +3 -3
  168. package/dist/{groundwaterProfileChart-DnJvez9z.cjs → groundwaterProfileChart-xVZS96Bs.cjs} +2 -2
  169. package/dist/{groundwaterTimeCurve-8phEW2ri.cjs → groundwaterTimeCurve-CCP0yOcn.cjs} +1 -1
  170. package/dist/{groundwaterTimeCurve-BzBDRU4_.js → groundwaterTimeCurve-CRic1FkR.js} +3 -3
  171. package/dist/{groupCard-DhMy1k9J.cjs → groupCard-9mvfU5Qi.cjs} +1 -1
  172. package/dist/{groupCard-BPkVSNiL.js → groupCard-DyiQzmSU.js} +2 -2
  173. package/dist/{headerBar-BgTO4jul.cjs → headerBar-BnZZrxdl.cjs} +1 -1
  174. package/dist/{headerBar-DB-bjoAe.js → headerBar-CT2WWLFX.js} +2 -2
  175. package/dist/{history-D5cJ-xVg.js → history-CY_TCu9h.js} +18 -18
  176. package/dist/{history-DBDrYQmw.cjs → history-Dm7563t_.cjs} +1 -1
  177. package/dist/{index-C_ms8XdY.js → index-CPTJIw32.js} +1746 -1711
  178. package/dist/{index-DFbNT6Tf.cjs → index-DoEyCVDU.cjs} +10 -10
  179. package/dist/{insarDeformChart-DFF2bMqu.js → insarDeformChart-Bf6Q1Kll.js} +2 -2
  180. package/dist/{insarDeformChart-D_iGk8_3.cjs → insarDeformChart-D7r5dP7T.cjs} +1 -1
  181. package/dist/{insarImageViewer-BKewD3Uo.cjs → insarImageViewer-Cj6ywbUG.cjs} +1 -1
  182. package/dist/{insarImageViewer-B7UgA76F.js → insarImageViewer-CupmlYkz.js} +2 -2
  183. package/dist/{kds-CukCJwVJ.cjs → kds-BXJfeT1L.cjs} +1 -1
  184. package/dist/{kds-CacS9fZ_.js → kds-vKrvUAFM.js} +58 -58
  185. package/dist/{kpiCard-DV13L2GU.js → kpiCard-DxJnC2K1.js} +2 -2
  186. package/dist/{kpiCard-Cnm06jxN.cjs → kpiCard-SXeIckZe.cjs} +1 -1
  187. package/dist/{landslideMap-OIYysiUs.cjs → landslideMap-Byzuh2uI.cjs} +1 -1
  188. package/dist/{landslideMap-BPWu1Ajk.js → landslideMap-g1sW7hGk.js} +3 -3
  189. package/dist/{landslideWarning-K5mjIcfY.cjs → landslideWarning-DBYw20My.cjs} +1 -1
  190. package/dist/{landslideWarning-BjlYD19b.js → landslideWarning-K2gltHjy.js} +19 -19
  191. package/dist/{layerTabs-DTSAS0n2.js → layerTabs-DhKwbCdm.js} +2 -2
  192. package/dist/{layerTabs-D7fMZ0rB.cjs → layerTabs-pQHCSR8d.cjs} +1 -1
  193. package/dist/{leaflet-src-CzptRGB3.cjs → leaflet-src-BNvMLv27.cjs} +1 -1
  194. package/dist/{leaflet-src-BfJff719.js → leaflet-src-CLsvhZ1a.js} +1 -1
  195. package/dist/{lerc-CF_nGsay.cjs → lerc-7GSCiwa9.cjs} +1 -1
  196. package/dist/{lerc-CFhWDnG0.js → lerc-CqUbnv8h.js} +2 -2
  197. package/dist/{lin-CkatVtoy.js → lin-Bq35ycag.js} +6 -6
  198. package/dist/{lin-D0heXXjR.cjs → lin-D0itRkyl.cjs} +1 -1
  199. package/dist/{linIndass-DCv39q33.cjs → linIndass-DWiz2vOV.cjs} +1 -1
  200. package/dist/{linIndass-By83Npy7.js → linIndass-DYq4eFAR.js} +23 -23
  201. package/dist/{lst-BnazAvWe.cjs → lst-DdajeugL.cjs} +1 -1
  202. package/dist/{lst-DwAjJP5h.js → lst-qvTez4v1.js} +2 -2
  203. package/dist/{manualEntry-D3rJV8Lp.js → manualEntry-D33u42uH.js} +2 -2
  204. package/dist/{manualEntry-DuTfyZYG.cjs → manualEntry-s4RAoEru.cjs} +1 -1
  205. package/dist/{mapBackground-CJ6ix48H.js → mapBackground-DM72oEn2.js} +3 -3
  206. package/dist/{mapBackground-Cmhuw3k0.cjs → mapBackground-YtkaIPHY.cjs} +1 -1
  207. package/dist/{mappingList-5Rz-rwrk.cjs → mappingList-Ch1HZwNc.cjs} +1 -1
  208. package/dist/{mappingList-CGrZiJZB.js → mappingList-Dy_UeCUf.js} +4 -4
  209. package/dist/{markdownViewer-Dno96jfr.cjs → markdownViewer-DUjEXMVH.cjs} +1 -1
  210. package/dist/{markdownViewer-7WA9BEdg.js → markdownViewer-ZlwNlmLZ.js} +6 -6
  211. package/dist/{mix-control-modal-DgoayPIU.cjs → mix-control-modal-B3FrB7Jt.cjs} +1 -1
  212. package/dist/{mix-control-modal-Byfb7C-0.js → mix-control-modal-tXOouBPe.js} +8 -8
  213. package/dist/{mixGrid-Bhl9sZNP.cjs → mixGrid-BU9U3aHI.cjs} +1 -1
  214. package/dist/{mixGrid-kCUUwHZr.js → mixGrid-CogLsRzO.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +4 -4
  218. package/dist/{mjpegCamera-B1eioIqH.cjs → mjpegCamera-g6FXbrP3.cjs} +1 -1
  219. package/dist/{mjpegCamera-Dpfu2Xu6.js → mjpegCamera-xUmmLzM-.js} +2 -2
  220. package/dist/{monitorAlert-Dyxl86qu.cjs → monitorAlert-DZd5lJOJ.cjs} +1 -1
  221. package/dist/{monitorAlert-9zu3QFtA.js → monitorAlert-DhE_HvpR.js} +21 -21
  222. package/dist/{monitorData-CNI-qmu9.js → monitorData-BnEkcdiN.js} +8 -8
  223. package/dist/{monitorData-BcilR5l6.cjs → monitorData-CpWVhINV.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-DRfPueFf.js → monitorSpeedChart-CeW-Kk03.js} +1 -1
  225. package/dist/{monitorSpeedChart-CF67tIu3.cjs → monitorSpeedChart-DwsoytUF.cjs} +1 -1
  226. package/dist/{mxa-Bh2bYtVW.cjs → mxa-0DZWI1xK.cjs} +1 -1
  227. package/dist/{mxa-CuLqVCIj.js → mxa-C58deh1I.js} +4 -4
  228. package/dist/{myValue-B50MoOtL.js → myValue-B4ADQTTG.js} +2 -2
  229. package/dist/{myValue-DMJxfT2O.cjs → myValue-DQLm9XLI.cjs} +1 -1
  230. package/dist/{myValueList-BZzwxNxa.cjs → myValueList-DZA9_HEh.cjs} +1 -1
  231. package/dist/{myValueList-B_3_3_pi.js → myValueList-baXd51uR.js} +2 -2
  232. package/dist/{objectList-TMPUnr7O.js → objectList-5m0NKALq.js} +4 -4
  233. package/dist/{objectList-BGh1VKcK.cjs → objectList-BHmAruDg.cjs} +1 -1
  234. package/dist/{objectListAPP-Bc-piPZb.js → objectListAPP-COZlfKyw.js} +3 -3
  235. package/dist/{objectListAPP-30bQNnu8.cjs → objectListAPP-Cs7Wu_86.cjs} +1 -1
  236. package/dist/{percentBar-BprMUT7A.js → percentBar-BV6nG2iK.js} +15 -15
  237. package/dist/{percentBar-D4xt6lAd.cjs → percentBar-CPfJrspp.cjs} +1 -1
  238. package/dist/{photo-zl-fLPWx.cjs → photo-C4739K_A.cjs} +1 -1
  239. package/dist/{photo-DsEC_PV_.js → photo-DK4Z23e3.js} +15 -15
  240. package/dist/{pie-CUxR3v01.js → pie-Lx2zjyZY.js} +2 -2
  241. package/dist/{pie-DWhlbF_v.cjs → pie-kb79hzax.cjs} +1 -1
  242. package/dist/{placeholder-BZFA8p97.cjs → placeholder-CAWJju9d.cjs} +1 -1
  243. package/dist/{placeholder-DqKmmoWY.js → placeholder-Cv_i5j6V.js} +1 -1
  244. package/dist/{pressBtn-DIUaklZ-.cjs → pressBtn-DPp2yGFb.cjs} +1 -1
  245. package/dist/{pressBtn-B2XC73jR.js → pressBtn-DwN7ExMn.js} +7 -7
  246. package/dist/{processTable-DkOH9QSb.js → processTable-DRzy2-fX.js} +2 -2
  247. package/dist/{processTable-BTx3mQeL.cjs → processTable-kGjdZ2SC.cjs} +1 -1
  248. package/dist/{progressBar-xgdal-aW.cjs → progressBar-89gQ5oSf.cjs} +1 -1
  249. package/dist/{progressBar-BLodNQVU.js → progressBar-D5GyaH8h.js} +2 -2
  250. package/dist/{progressCircle-CFUGOwCj.js → progressCircle-C0qoN2X2.js} +2 -2
  251. package/dist/{progressCircle-cTY4gz07.cjs → progressCircle-D6jGTviS.cjs} +1 -1
  252. package/dist/{qrcode-2Hjwjwae.js → qrcode-B7wIdO7u.js} +2 -2
  253. package/dist/{qrcode-DQhhuhb6.cjs → qrcode-DutO28qr.cjs} +1 -1
  254. package/dist/{raceBar-CyXnZF-3.js → raceBar-JrtM5isa.js} +5 -5
  255. package/dist/{raceBar-DcF016MT.cjs → raceBar-Kb4Ok0_0.cjs} +1 -1
  256. package/dist/{rad-B14cTKz2.cjs → rad-BKh0I2W8.cjs} +1 -1
  257. package/dist/{rad-DTJntmoq.js → rad-NhNcdAlO.js} +2 -2
  258. package/dist/{radarMapViewer-TsQZJeIK.js → radarMapViewer-BrGy_wsI.js} +2 -2
  259. package/dist/{radarMapViewer-BUB-m2dW.cjs → radarMapViewer-a-NY9MyR.cjs} +1 -1
  260. package/dist/{rainfallFilterBar-KdmV5zS5.js → rainfallFilterBar-CiVPGG1P.js} +2 -2
  261. package/dist/{rainfallFilterBar-B8up2RIh.cjs → rainfallFilterBar-DlJryHw0.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-Doj6yOAF.js → rainfallTimeCurve-BwrlePpg.js} +3 -3
  263. package/dist/{rainfallTimeCurve-CiXa2eZ3.cjs → rainfallTimeCurve-cYcKHYUj.cjs} +1 -1
  264. package/dist/{rangeLin-Dpq9Tvnx.cjs → rangeLin-B24wJK2h.cjs} +1 -1
  265. package/dist/{rangeLin-D1CqDmua.js → rangeLin-CPKLO87X.js} +18 -18
  266. package/dist/{realtimeEvolutionMap-DPXP3VM4.cjs → realtimeEvolutionMap-CHQ7-WE1.cjs} +1 -1
  267. package/dist/{realtimeEvolutionMap-Dl7vcNX_.js → realtimeEvolutionMap-ZFozACoZ.js} +2 -2
  268. package/dist/{regionBar-BwpGCKZj.js → regionBar-Cz4GtJuo.js} +2 -2
  269. package/dist/{regionBar-lxLnSNLC.cjs → regionBar-Dgv2JYSM.cjs} +1 -1
  270. package/dist/{request-DTE7aSW-.cjs → request-Dm2cf1Aw.cjs} +1 -1
  271. package/dist/{request-CbeEcJTO.js → request-aXSa-Jdv.js} +24 -24
  272. package/dist/{retainer1-D67S-YCN.js → retainer1-B4KyW6bw.js} +3 -3
  273. package/dist/{retainer1-C9AaH4tJ.cjs → retainer1-B6byWkE5.cjs} +1 -1
  274. package/dist/{retainer2-D8XYk-l4.cjs → retainer2-B06eGTYw.cjs} +1 -1
  275. package/dist/{retainer2-Cbdmf703.js → retainer2-X6vRW_D5.js} +3 -3
  276. package/dist/{retainerRecordList-CQjYV-M3.cjs → retainerRecordList-C8wYAf_v.cjs} +1 -1
  277. package/dist/{retainerRecordList-BpK_6Dnu.js → retainerRecordList-DDZSYpCF.js} +4 -4
  278. package/dist/{retainerRecordListAPP-BFGsCYj8.js → retainerRecordListAPP-B2Lp-jHM.js} +3 -3
  279. package/dist/{retainerRecordListAPP-CN59kp5A.cjs → retainerRecordListAPP-BHu691JS.cjs} +1 -1
  280. package/dist/{ringTopN-BeX_3N1q.cjs → ringTopN-BpJZOE13.cjs} +1 -1
  281. package/dist/{ringTopN-5r3Oe5jp.js → ringTopN-DX7OzPp7.js} +2 -2
  282. package/dist/{riskRegionTable-NiRJaNeQ.js → riskRegionTable-D7blgvMi.js} +2 -2
  283. package/dist/{riskRegionTable-DoSf3hpC.cjs → riskRegionTable-DziKMS_2.cjs} +1 -1
  284. package/dist/{sankey-ByGbWPFb.js → sankey-CmgfktZj.js} +14 -14
  285. package/dist/{sankey-Bnpk9cLQ.cjs → sankey-DjC4IYit.cjs} +1 -1
  286. package/dist/{scd-CnENqnZz.cjs → scd-QV9whYOR.cjs} +1 -1
  287. package/dist/{scd-Cfds38KL.js → scd-zUFKqN8p.js} +2 -2
  288. package/dist/{sideMenu-BPaBkvIX.js → sideMenu-CI23QNpx.js} +2 -2
  289. package/dist/{sideMenu-CXIHqey7.cjs → sideMenu-POQpSa8C.cjs} +1 -1
  290. package/dist/{slopeStability-Dl-cz8Fw.cjs → slopeStability-Da70drIy.cjs} +1 -1
  291. package/dist/{slopeStability-C9Hla3Dk.js → slopeStability-E55huDws.js} +24 -24
  292. package/dist/{speedCurve-kxsxCadk.js → speedCurve-BhhUH79z.js} +2 -2
  293. package/dist/{speedCurve-E6CSZYlW.cjs → speedCurve-DSX1UJeW.cjs} +1 -1
  294. package/dist/{stackedBar-Bh3u04a1.cjs → stackedBar-B0kr6QB7.cjs} +1 -1
  295. package/dist/{stackedBar-agXLBb7l.js → stackedBar-bgd2Ls04.js} +2 -2
  296. package/dist/stationList-BSPTM0iI.cjs +1 -0
  297. package/dist/{stationList-BUGSaLOZ.js → stationList-D7k3Lot6.js} +243 -239
  298. package/dist/{stressFilterBar-DP_KLGts.cjs → stressFilterBar-B3gk67B_.cjs} +1 -1
  299. package/dist/{stressFilterBar-HdY7po9C.js → stressFilterBar-Beupo7Zb.js} +2 -2
  300. package/dist/{stressTimeCurve-B6s5FgJE.cjs → stressTimeCurve-CbhFLXzA.cjs} +1 -1
  301. package/dist/{stressTimeCurve-ItQcQKdH.js → stressTimeCurve-DGBhkdbV.js} +3 -3
  302. package/dist/{swiper-D6TV4ZCd.js → swiper-BEau8Ehu.js} +2 -2
  303. package/dist/{swiper-Buxmd32g.cjs → swiper-UlVDFht8.cjs} +1 -1
  304. package/dist/{tablemanCreate-wybANxe3.cjs → tablemanCreate-CF_D5gYW.cjs} +1 -1
  305. package/dist/{tablemanCreate-CZgA3PsQ.js → tablemanCreate-WnNbHft8.js} +3 -3
  306. package/dist/{tablemanDetail-BRTZJyW5.cjs → tablemanDetail-_SNevfWv.cjs} +1 -1
  307. package/dist/{tablemanDetail-DfWhFk1K.js → tablemanDetail-yz3zQnFP.js} +36 -36
  308. package/dist/{tablemanList-BO_NeJgz.cjs → tablemanList-CDJWp9Pu.cjs} +1 -1
  309. package/dist/{tablemanList-BaOBHZ0V.js → tablemanList-CzcVRDtI.js} +4 -4
  310. package/dist/{tablemanTableList-Dbq82Z-h.js → tablemanTableList-Bm2fU0EX.js} +4 -4
  311. package/dist/{tablemanTableList-sMrfmiA9.cjs → tablemanTableList-DX76_Wzv.cjs} +1 -1
  312. package/dist/{tablemanUpdate-VmkxfpIh.cjs → tablemanUpdate-wdF6NUSW.cjs} +1 -1
  313. package/dist/{tablemanUpdate-KALCUbVd.js → tablemanUpdate-zmDu6tfj.js} +3 -3
  314. package/dist/{terminalConfigList-DjFLDQih.js → terminalConfigList-CCTkfKIn.js} +4 -4
  315. package/dist/{terminalConfigList-BVI2GPl0.cjs → terminalConfigList-Dpktm7uo.cjs} +1 -1
  316. package/dist/{terminalList-DQeF169Z.js → terminalList-DTG1Cd-P.js} +4 -4
  317. package/dist/{terminalList-DuW8drr5.cjs → terminalList-DlnAYr5c.cjs} +1 -1
  318. package/dist/{terminalListAPP-Brlll6Fx.js → terminalListAPP-BXX0YEmN.js} +3 -3
  319. package/dist/{terminalListAPP-D1ZHyTf5.cjs → terminalListAPP-DcG5Iu89.cjs} +1 -1
  320. package/dist/{textbox-DDpkVlaw.cjs → textbox-C5DmbaFz.cjs} +1 -1
  321. package/dist/{textbox-mnxb35mH.js → textbox-DyFcEXBF.js} +2 -2
  322. package/dist/{timeQueryBar-EKkIhz9m.js → timeQueryBar-BbWq3QkA.js} +1 -1
  323. package/dist/{timeQueryBar-BQD19vDp.cjs → timeQueryBar-OqKVqlTl.cjs} +1 -1
  324. package/dist/{timeSeries-CDjeGZKo.cjs → timeSeries-BDp-gfRT.cjs} +1 -1
  325. package/dist/{timeSeries-Bk2N1A6L.js → timeSeries-D_-6XcY8.js} +13 -13
  326. package/dist/{timeSeriesCurve-BRrpaqU8.js → timeSeriesCurve-DgSGvMqB.js} +3 -3
  327. package/dist/{timeSeriesCurve-CA5W-Oir.cjs → timeSeriesCurve-KPYndFEq.cjs} +1 -1
  328. package/dist/{toggleBtn-WYU3IUc8.js → toggleBtn-D0JJAMZR.js} +2 -2
  329. package/dist/{toggleBtn-CGYR01jI.cjs → toggleBtn-DtS2UoB4.cjs} +1 -1
  330. package/dist/{trajectoryConfigPanel-y4bXsrXJ.cjs → trajectoryConfigPanel-Bth1LMLN.cjs} +1 -1
  331. package/dist/{trajectoryConfigPanel-BdTmJQzP.js → trajectoryConfigPanel-DxBIMfEx.js} +1 -1
  332. package/dist/{trajectoryScatter-Clb_fUfI.js → trajectoryScatter-DqgFAVSz.js} +42 -42
  333. package/dist/{trajectoryScatter-CQik1fcT.cjs → trajectoryScatter-GkbJne40.cjs} +1 -1
  334. package/dist/{universalConfigPanel-B5k_qOEq.js → universalConfigPanel-BjyXE23U.js} +1 -1
  335. package/dist/{universalConfigPanel-Dfbc5SvD.cjs → universalConfigPanel-C4Teu_Op.cjs} +1 -1
  336. package/dist/{universalTable-DoiFrrZH.js → universalTable-BVwrJKq8.js} +2 -2
  337. package/dist/{universalTable-CcQq8qmA.cjs → universalTable-D_rkyBG2.cjs} +1 -1
  338. package/dist/{useMixiotPanelPopperClass-BAb3JPdj.js → useMixiotPanelPopperClass-C6Y6iPSp.js} +3 -3
  339. package/dist/{useMixiotPanelPopperClass-B0l54_PF.cjs → useMixiotPanelPopperClass-DmA-0R1V.cjs} +1 -1
  340. package/dist/{useTablemanApi-D4G6rvXH.cjs → useTablemanApi-Big2Hfsi.cjs} +1 -1
  341. package/dist/{useTablemanApi-BXR_OKzO.js → useTablemanApi-CJh5jpVJ.js} +1 -1
  342. package/dist/{useTablemanFormPanel-JcWza2YJ.js → useTablemanFormPanel-CvrN_jY3.js} +2 -2
  343. package/dist/{useTablemanFormPanel-DTcITWwz.cjs → useTablemanFormPanel-prjUDI9m.cjs} +1 -1
  344. package/dist/{useTablemanListActions-COZ3zBoW.cjs → useTablemanListActions-B9SrCZRt.cjs} +1 -1
  345. package/dist/{useTablemanListActions-BUFJCLAW.js → useTablemanListActions-DVQL1pwu.js} +5 -5
  346. package/dist/{video-DylR59_l.cjs → video-CdMEjVoF.cjs} +1 -1
  347. package/dist/{video-CtiQVOnv.js → video-DDHDy4Eq.js} +2 -2
  348. package/dist/{videoMonitor-tBmgk3mm.cjs → videoMonitor-BZcjaMPX.cjs} +1 -1
  349. package/dist/{videoMonitor-8rqFRzST.js → videoMonitor-JQ4tj-qi.js} +11 -11
  350. package/dist/{vlu-B93iwAL3.cjs → vlu-39EqfkCs.cjs} +1 -1
  351. package/dist/{vlu-Bvbgox5l.js → vlu-Bmqrgnj8.js} +2 -2
  352. package/dist/{warningOverview-Drd9VneD.js → warningOverview-Ctab9k92.js} +3 -3
  353. package/dist/{warningOverview-igfNPVvg.cjs → warningOverview-DOsI-iKt.cjs} +1 -1
  354. package/dist/{weather-BVB786-I.cjs → weather-BfV-w4FG.cjs} +1 -1
  355. package/dist/{weather-Db_sZvLk.js → weather-BwTT4bPM.js} +2 -2
  356. package/dist/{windLin-D09MKfNK.cjs → windLin-Dfz6aBio.cjs} +1 -1
  357. package/dist/{windLin-M0ehkFjJ.js → windLin-DgZctBal.js} +2 -2
  358. package/package.json +1 -1
  359. package/dist/stationList-CnwkdvHq.cjs +0 -1
@@ -28,8 +28,8 @@ var x = (a, t, l) => new Promise((f, m) => {
28
28
  });
29
29
  import { defineComponent as Q, openBlock as X, createElementBlock as Y, createElementVNode as Z, normalizeStyle as ee, unref as u, toDisplayString as te, renderSlot as le } from "vue";
30
30
  import "html2canvas";
31
- import { B as ae } from "./BaseComponent-Bv3RJ3vA.js";
32
- import { F as W, a as re, _ as oe } from "./index-C_ms8XdY.js";
31
+ import { B as ae } from "./BaseComponent-Dn65PXTp.js";
32
+ import { F as W, a as re, _ as oe } from "./index-CPTJIw32.js";
33
33
  import { ElMessage as g } from "element-plus";
34
34
  import { A as ne, D as ie } from "./ele-textbox-icon-ClGaLi5p.js";
35
35
  const ce = { class: "mix-component" }, ue = {
@@ -17,7 +17,7 @@ import "element-plus/es/components/icon/style/css";
17
17
  import "element-plus/es/components/date-picker/style/css";
18
18
  import { defineComponent as V, useCssVars as x, ref as Y, computed as B, onMounted as U, openBlock as C, createElementBlock as _, createElementVNode as p, Fragment as w, renderList as L, normalizeClass as Q, toDisplayString as R, createVNode as u, withCtx as H, unref as j, createTextVNode as z, renderSlot as F } from "vue";
19
19
  import { Search as P } from "@element-plus/icons-vue";
20
- import { n as q, d as $, _ as G } from "./index-C_ms8XdY.js";
20
+ import { o as q, d as $, _ as G } from "./index-CPTJIw32.js";
21
21
  import { A as J, D as K } from "./ele-dateTime-icon-BEGFlwID.js";
22
22
  const W = { class: "time-query-bar" }, X = { class: "granularity-tabs" }, Z = ["onClick"], ee = { class: "time-range" }, te = {
23
23
  DEFAULT_ICON: K,
@@ -1 +1 @@
1
- "use strict";var g=Object.defineProperty,k=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var D=(r,o,l)=>o in r?g(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,C=(r,o)=>{for(var l in o||(o={}))N.call(o,l)&&D(r,l,o[l]);if(y)for(var l of y(o))V.call(o,l)&&D(r,l,o[l]);return r},M=(r,o)=>k(r,E(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=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/date-picker/style/css");const e=require("vue"),T=require("@element-plus/icons-vue"),v=require("./index-DFbNT6Tf.cjs"),b=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),I={class:"time-query-bar"},O={class:"granularity-tabs"},S=["onClick"],h={class:"time-range"},A={DEFAULT_ICON:b.DEFAULT_ICON,ACTIVE_ICON:b.ACTIVE_ICON,NAME_CN:"时间查询栏",NAME_EN:"Time Query Bar",ORDER:10,PLATFORM:["pc","screen"]},q={bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"}},x=[{targetComponentId:""}],B=["targetComponentId"],U=[],w={useAlias:!1,multiObject:!1,source:""},L={DEFAULT:A,OPTIONS:q,DATA:x,PARAMS:B,SOURCE:U,COMMON:w},P=e.defineComponent(M(C({},L),{__name:"timeQueryBar",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){e.useCssVars(a=>({v733b6a11:i.value.bgColor,v29075169:i.value.textColor,v8fdfc9a8:i.value.accentColor}));const o=v.useLinkStore(),l=r,_=[{label:"小时",value:"hour"},{label:"日均",value:"day"},{label:"今日",value:"today"},{label:"近7天",value:"week"},{label:"近30天",value:"month"}],m=e.ref("hour"),n=e.ref(""),u=e.ref(""),i=e.computed(()=>{var c,d,f,s;const{options:a,data:t}=l.conf||{};return{targetComponentId:((c=t==null?void 0:t[0])==null?void 0:c.targetComponentId)||"",bgColor:((d=a==null?void 0:a.bgColor)==null?void 0:d.value)||"#ffffff",textColor:((f=a==null?void 0:a.textColor)==null?void 0:f.value)||"#333333",accentColor:((s=a==null?void 0:a.accentColor)==null?void 0:s.value)||"#409eff"}}),p=a=>{m.value=a;const t=v.dayjs();switch(a){case"hour":n.value=t.subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break;case"day":n.value=t.subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break;case"today":n.value=t.startOf("day").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break;case"week":n.value=t.subtract(7,"day").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break;case"month":n.value=t.subtract(30,"day").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break}},H=()=>{const a=i.value.targetComponentId;a&&(o.publish("deepDisplacement3D",{objectId:a,type:"query",fv:{granularity:m.value,startTime:n.value,endTime:u.value,sourceUid:l.uid},source:"timeQueryBar"}),console.log("[TimeQueryBar] 发送查询请求:",{targetId:a,granularity:m.value,startTime:n.value,endTime:u.value}))};return e.onMounted(()=>{p("month")}),(a,t)=>{const c=Y.ElDatePicker,d=Y.ElIcon,f=Y.ElButton;return e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",O,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_,s=>e.createElementVNode("span",{key:s.value,class:e.normalizeClass(["tab-item",{active:m.value===s.value}]),onClick:F=>p(s.value)},e.toDisplayString(s.label),11,S)),64))]),e.createElementVNode("div",h,[e.createVNode(c,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=s=>n.value=s),type:"datetime",placeholder:"开始时间",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"time-picker"},null,8,["modelValue"]),t[2]||(t[2]=e.createElementVNode("span",{class:"range-separator"},"→",-1)),e.createVNode(c,{modelValue:u.value,"onUpdate:modelValue":t[1]||(t[1]=s=>u.value=s),type:"datetime",placeholder:"结束时间",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"time-picker"},null,8,["modelValue"])]),e.createVNode(f,{type:"primary",size:"small",onClick:H},{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(e.unref(T.Search))]),_:1}),t[3]||(t[3]=e.createTextVNode(" 搜索 ",-1))]),_:1}),e.renderSlot(a.$slots,"default",{},void 0,!0)])}}})),j=v._export_sfc(P,[["__scopeId","data-v-2a556b87"]]);exports.default=j;
1
+ "use strict";var g=Object.defineProperty,k=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var D=(r,o,l)=>o in r?g(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,C=(r,o)=>{for(var l in o||(o={}))N.call(o,l)&&D(r,l,o[l]);if(y)for(var l of y(o))V.call(o,l)&&D(r,l,o[l]);return r},M=(r,o)=>k(r,E(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=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/date-picker/style/css");const e=require("vue"),T=require("@element-plus/icons-vue"),v=require("./index-DoEyCVDU.cjs"),b=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),I={class:"time-query-bar"},O={class:"granularity-tabs"},S=["onClick"],h={class:"time-range"},A={DEFAULT_ICON:b.DEFAULT_ICON,ACTIVE_ICON:b.ACTIVE_ICON,NAME_CN:"时间查询栏",NAME_EN:"Time Query Bar",ORDER:10,PLATFORM:["pc","screen"]},q={bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"}},x=[{targetComponentId:""}],B=["targetComponentId"],U=[],w={useAlias:!1,multiObject:!1,source:""},L={DEFAULT:A,OPTIONS:q,DATA:x,PARAMS:B,SOURCE:U,COMMON:w},P=e.defineComponent(M(C({},L),{__name:"timeQueryBar",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){e.useCssVars(a=>({v733b6a11:i.value.bgColor,v29075169:i.value.textColor,v8fdfc9a8:i.value.accentColor}));const o=v.useLinkStore(),l=r,_=[{label:"小时",value:"hour"},{label:"日均",value:"day"},{label:"今日",value:"today"},{label:"近7天",value:"week"},{label:"近30天",value:"month"}],m=e.ref("hour"),n=e.ref(""),u=e.ref(""),i=e.computed(()=>{var c,d,f,s;const{options:a,data:t}=l.conf||{};return{targetComponentId:((c=t==null?void 0:t[0])==null?void 0:c.targetComponentId)||"",bgColor:((d=a==null?void 0:a.bgColor)==null?void 0:d.value)||"#ffffff",textColor:((f=a==null?void 0:a.textColor)==null?void 0:f.value)||"#333333",accentColor:((s=a==null?void 0:a.accentColor)==null?void 0:s.value)||"#409eff"}}),p=a=>{m.value=a;const t=v.dayjs();switch(a){case"hour":n.value=t.subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break;case"day":n.value=t.subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break;case"today":n.value=t.startOf("day").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break;case"week":n.value=t.subtract(7,"day").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break;case"month":n.value=t.subtract(30,"day").format("YYYY-MM-DD HH:mm:ss"),u.value=t.format("YYYY-MM-DD HH:mm:ss");break}},H=()=>{const a=i.value.targetComponentId;a&&(o.publish("deepDisplacement3D",{objectId:a,type:"query",fv:{granularity:m.value,startTime:n.value,endTime:u.value,sourceUid:l.uid},source:"timeQueryBar"}),console.log("[TimeQueryBar] 发送查询请求:",{targetId:a,granularity:m.value,startTime:n.value,endTime:u.value}))};return e.onMounted(()=>{p("month")}),(a,t)=>{const c=Y.ElDatePicker,d=Y.ElIcon,f=Y.ElButton;return e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",O,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_,s=>e.createElementVNode("span",{key:s.value,class:e.normalizeClass(["tab-item",{active:m.value===s.value}]),onClick:F=>p(s.value)},e.toDisplayString(s.label),11,S)),64))]),e.createElementVNode("div",h,[e.createVNode(c,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=s=>n.value=s),type:"datetime",placeholder:"开始时间",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"time-picker"},null,8,["modelValue"]),t[2]||(t[2]=e.createElementVNode("span",{class:"range-separator"},"→",-1)),e.createVNode(c,{modelValue:u.value,"onUpdate:modelValue":t[1]||(t[1]=s=>u.value=s),type:"datetime",placeholder:"结束时间",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"time-picker"},null,8,["modelValue"])]),e.createVNode(f,{type:"primary",size:"small",onClick:H},{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(e.unref(T.Search))]),_:1}),t[3]||(t[3]=e.createTextVNode(" 搜索 ",-1))]),_:1}),e.renderSlot(a.$slots,"default",{},void 0,!0)])}}})),j=v._export_sfc(P,[["__scopeId","data-v-2a556b87"]]);exports.default=j;
@@ -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-DFbNT6Tf.cjs");require("element-plus");const le=require("./EChartComponentBase-DzP0_KR9.cjs"),re=require("./request-DTE7aSW-.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-DoEyCVDU.cjs");require("element-plus");const le=require("./EChartComponentBase-8GSbyY5P.cjs"),re=require("./request-Dm2cf1Aw.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;
@@ -1,16 +1,16 @@
1
1
  var he = Object.defineProperty, de = Object.defineProperties;
2
2
  var ue = Object.getOwnPropertyDescriptors;
3
3
  var K = Object.getOwnPropertySymbols, fe = Object.getPrototypeOf, me = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable, ve = Reflect.get;
4
- var Y = (b, d, g) => d in b ? he(b, d, { enumerable: !0, configurable: !0, writable: !0, value: g }) : b[d] = g, N = (b, d) => {
4
+ var Z = (b, d, g) => d in b ? he(b, d, { enumerable: !0, configurable: !0, writable: !0, value: g }) : b[d] = g, N = (b, d) => {
5
5
  for (var g in d || (d = {}))
6
- me.call(d, g) && Y(b, g, d[g]);
6
+ me.call(d, g) && Z(b, g, d[g]);
7
7
  if (K)
8
8
  for (var g of K(d))
9
- pe.call(d, g) && Y(b, g, d[g]);
9
+ pe.call(d, g) && Z(b, g, d[g]);
10
10
  return b;
11
11
  }, $ = (b, d) => de(b, ue(d));
12
- var Z = (b, d, g) => ve(fe(b), g, d);
13
- var Q = (b, d, g) => new Promise((p, x) => {
12
+ var Q = (b, d, g) => ve(fe(b), g, d);
13
+ var X = (b, d, g) => new Promise((p, x) => {
14
14
  var U = (S) => {
15
15
  try {
16
16
  j(g.next(S));
@@ -32,12 +32,12 @@ import "element-plus/es/components/button/style/css";
32
32
  import "element-plus/es/components/icon/style/css";
33
33
  import "element-plus/es/components/select/style/css";
34
34
  import "element-plus/es/components/option/style/css";
35
- import { defineComponent as Ce, inject as De, computed as R, ref as z, watch as X, 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";
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 { Y as Ee, _ as Ae } from "./index-C_ms8XdY.js";
37
+ import { Z as Ee, _ as Ae } from "./index-CPTJIw32.js";
38
38
  import "element-plus";
39
- import { E as je } from "./EChartComponentBase-B5seB4Mc.js";
40
- import { formatRequest as Me } from "./request-CbeEcJTO.js";
39
+ import { E as je } from "./EChartComponentBase-skupRYzl.js";
40
+ import { formatRequest as Me } from "./request-aXSa-Jdv.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 = {
@@ -413,8 +413,8 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
413
413
  }
414
414
  // 覆盖基类方法:初始化组件
415
415
  init() {
416
- return Q(this, null, function* () {
417
- yield Z(g.prototype, this, "init").call(this), this.props.mode === "edit" && this.chartData.times.length === 0 && (this.chartData = this.getMockData());
416
+ return X(this, null, function* () {
417
+ yield Q(g.prototype, this, "init").call(this), this.props.mode === "edit" && this.chartData.times.length === 0 && (this.chartData = this.getMockData());
418
418
  });
419
419
  }
420
420
  // 覆盖基类方法:处理联动事件
@@ -434,7 +434,7 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
434
434
  };
435
435
  });
436
436
  }), S = z([]), O = z(""), I = z([]);
437
- X(() => {
437
+ Y(() => {
438
438
  var o;
439
439
  return (o = d.conf) == null ? void 0 : o.data;
440
440
  }, (o) => {
@@ -544,7 +544,7 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
544
544
  });
545
545
  }
546
546
  };
547
- return X(() => d.conf, () => {
547
+ return Y(() => d.conf, () => {
548
548
  p.init();
549
549
  }, { deep: !0 }), _e(() => {
550
550
  p.init();
@@ -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-C_ms8XdY.js";
37
+ import { d as R, _ as qe } from "./index-CPTJIw32.js";
38
38
  import "element-plus";
39
- import { E as Ke } from "./EChartComponentBase-B5seB4Mc.js";
39
+ import { E as Ke } from "./EChartComponentBase-skupRYzl.js";
40
40
  import { u as Ge } from "./safeI18n-C5fF3KBo.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-D5cJ-xVg.js"), C = yield new y.default().getHistoryData(n, "timeSeriesCurve");
304
+ const y = yield import("./history-CY_TCu9h.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-DFbNT6Tf.cjs");require("element-plus");const Se=require("./EChartComponentBase-DzP0_KR9.cjs"),De=require("./safeI18n-D-TYNVsv.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-DBDrYQmw.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-DoEyCVDU.cjs");require("element-plus");const Se=require("./EChartComponentBase-8GSbyY5P.cjs"),De=require("./safeI18n-D-TYNVsv.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-Dm7563t_.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;
@@ -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-C_ms8XdY.js";
30
+ import { C as J, _ as K } from "./index-CPTJIw32.js";
31
31
  import "element-plus";
32
- import { E as Q } from "./EChartComponentBase-B5seB4Mc.js";
32
+ import { E as Q } from "./EChartComponentBase-skupRYzl.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";
@@ -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-DFbNT6Tf.cjs");require("element-plus");const R=require("./EChartComponentBase-DzP0_KR9.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-DoEyCVDU.cjs");require("element-plus");const R=require("./EChartComponentBase-8GSbyY5P.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 +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-DFbNT6Tf.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-DoEyCVDU.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;
@@ -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 { n as He, d as I, _ as Qe } from "./index-C_ms8XdY.js";
23
+ import { o as He, d as I, _ as Qe } from "./index-CPTJIw32.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 = {