mixdashboards 1.1.13 → 1.1.15

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 (365) hide show
  1. package/dist/{AgGridTable-Bi7O66-r.cjs → AgGridTable-B0ARi6iQ.cjs} +39 -39
  2. package/dist/{AgGridTable-BjGMC3qC.js → AgGridTable-CiUB86Yi.js} +34 -35
  3. package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-7Sa7XOg-.js} +3 -3
  4. package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-BabOc6Kc.cjs} +1 -1
  5. package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DCKFGbqb.js} +2 -2
  6. package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-DM6aSCAR.cjs} +1 -1
  7. package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B95hRGD5.cjs} +1 -1
  8. package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-BJ1w9aHu.js} +1 -1
  9. package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-0jjitoAV.js} +1 -1
  10. package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-DjIJTjzR.cjs} +1 -1
  11. package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-DcAZ_rZN.js} +1 -1
  12. package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-JpvZKz0u.cjs} +1 -1
  13. package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-BFTZh1EC.cjs} +1 -1
  14. package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-D6HBxlBf.js} +2 -2
  15. package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-0biXXXxr.cjs} +1 -1
  16. package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-B4uisgP1.js} +2 -2
  17. package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BDRSdpFi.cjs} +1 -1
  18. package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-Bw7lk5Ds.js} +19 -19
  19. package/dist/{actionItem-B3B4MFcW.js → actionItem-CvYP-t6r.js} +2 -2
  20. package/dist/{actionItem-DxB7IvtW.cjs → actionItem-DThWcN9C.cjs} +1 -1
  21. package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-687B7l09.js} +2 -2
  22. package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-tIuQCLIZ.cjs} +1 -1
  23. package/dist/{alertTable-CHfA0TR-.cjs → alertTable-DRMDbKnY.cjs} +1 -1
  24. package/dist/{alertTable-CGRDnNPw.js → alertTable-VF9l7Yae.js} +2 -2
  25. package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-CM81kBda.cjs} +1 -1
  26. package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-W1sOe5E-.js} +7 -7
  27. package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CqR6pOpX.cjs} +1 -1
  28. package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-NcsPJb-C.js} +2 -2
  29. package/dist/{aqi-rBhSWA_m.js → aqi-3Gq00rd7.js} +2 -2
  30. package/dist/{aqi-BmYGSf2e.cjs → aqi-CZ_4TrPd.cjs} +1 -1
  31. package/dist/{aqiIndass-DqJBc799.js → aqiIndass-BZ7HrCcK.js} +16 -16
  32. package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-C1bAEiH_.cjs} +1 -1
  33. package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-DQ3jFm7O.js} +2 -2
  34. package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-DgQjsOl5.cjs} +1 -1
  35. package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-BVII-4mg.cjs} +1 -1
  36. package/dist/{arrayCard-C7anoYI-.js → arrayCard-BvkmBFMi.js} +2 -2
  37. package/dist/{audio-DTiS2piX.js → audio-86V-n6Mh.js} +2 -2
  38. package/dist/{audio-aADcgdZP.cjs → audio-DAVcGaCv.cjs} +1 -1
  39. package/dist/{bar-D32xICYZ.js → bar-D0uX_Pwu.js} +2 -2
  40. package/dist/{bar-DqY55XnC.cjs → bar-DdCjm6M9.cjs} +1 -1
  41. package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox-cjpSxBSI.js} +12 -12
  42. package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-vlF8ai0y.cjs} +1 -1
  43. package/dist/{bmp-DIFGLoNl.cjs → bmp-DmCehXiK.cjs} +1 -1
  44. package/dist/{bmp-DU3vm7yj.js → bmp-L5PC6_bj.js} +2 -2
  45. package/dist/{box-DTQKGR9g.js → box-BBDYqZhV.js} +16 -16
  46. package/dist/{box-C8pOZXek.cjs → box-DCe5iz-w.cjs} +1 -1
  47. package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-BDGfFdm5.cjs} +1 -1
  48. package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-BG38-Lo9.js} +1 -1
  49. package/dist/{circleBar-B48h_-uK.cjs → circleBar-BBrdfpn6.cjs} +1 -1
  50. package/dist/{circleBar-ClO05bgq.js → circleBar-CnStKTJz.js} +2 -2
  51. package/dist/{clock-D8ZXhy53.js → clock-CfoMLhjJ.js} +2 -2
  52. package/dist/{clock-DB94wQje.cjs → clock-D4FqM5tD.cjs} +1 -1
  53. package/dist/{clt-cxeCTOaA.cjs → clt-DrF15d3K.cjs} +1 -1
  54. package/dist/{clt-BX0SNGZr.js → clt-mVBTHfPs.js} +2 -2
  55. package/dist/{cmc-BvnYrQrR.cjs → cmc-BEKqMpSQ.cjs} +1 -1
  56. package/dist/{cmc-Co13D559.js → cmc-kC4VJ8V0.js} +17 -17
  57. package/dist/{cmp-Dd56EQ09.cjs → cmp-BBKmso3S.cjs} +1 -1
  58. package/dist/{cmp-B4cYCR4p.js → cmp-CEeDDeHU.js} +2 -2
  59. package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-Drlv8OIb.js} +2 -2
  60. package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-glbRT95d.cjs} +1 -1
  61. package/dist/{controlList-Dx4wSpA7.js → controlList-2sHPYEnd.js} +3 -3
  62. package/dist/{controlList-CyT_LYgr.cjs → controlList-V6TbbBW2.cjs} +1 -1
  63. package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-CqMshyV4.cjs} +1 -1
  64. package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-kZuqwCCC.js} +3 -3
  65. package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-BevyiiWD.cjs} +1 -1
  66. package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-rsphOVsE.js} +2 -2
  67. package/dist/{crd-IsqkYOAy.js → crd-1Q8p4BGc.js} +56 -57
  68. package/dist/crd-z0xGDAjD.cjs +1 -0
  69. package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-CDT6KYFl.js} +12 -12
  70. package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-DNMQrtKl.cjs} +1 -1
  71. package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-B8m_Qs1d.cjs} +1 -1
  72. package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-DF2TcM9X.js} +13 -13
  73. package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-_QtKcaSt.js} +3 -3
  74. package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-eUtgP6uT.cjs} +1 -1
  75. package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-D1uUQ_Ex.cjs} +1 -1
  76. package/dist/{dataManagement-CVHalRKp.js → dataManagement-xM0ruay1.js} +2 -2
  77. package/dist/{dataReport-Bk79cBkV.cjs → dataReport-DbQ_m74F.cjs} +1 -1
  78. package/dist/{dataReport-B2AiDMdM.js → dataReport-XrPAwXcb.js} +2 -2
  79. package/dist/{dataTable-D9sSJRQn.js → dataTable-BIy_sh-b.js} +1 -1
  80. package/dist/{dataTable-Dh7s14jM.cjs → dataTable-G_Elyj_e.cjs} +1 -1
  81. package/dist/{datetime-C25d1bAc.cjs → datetime-CLJrKpiX.cjs} +1 -1
  82. package/dist/{datetime-CEKzNAlD.js → datetime-Dyw8-i5g.js} +2 -2
  83. package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-CcoFFz6r.js} +26 -26
  84. package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-Cthw-rk5.cjs} +1 -1
  85. package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-C8yzdPMG.cjs} +1 -1
  86. package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-Dy-9hAeO.js} +16 -16
  87. package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-B3jtZ9_l.cjs} +1 -1
  88. package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-BqAQle8x.js} +2 -2
  89. package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-BT5FC0DX.cjs} +1 -1
  90. package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-BdEWrVgi.js} +20 -20
  91. package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-C1jrx9vY.js} +25 -25
  92. package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DL5yJXj2.cjs} +1 -1
  93. package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-B722va1V.cjs} +1 -1
  94. package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-DLOv9gJ6.js} +1 -1
  95. package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-D5ZY6ywC.js} +27 -27
  96. package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-Dj3Xm6SY.cjs} +1 -1
  97. package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-9HyIvRNJ.cjs} +1 -1
  98. package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-DVDa5Zxc.js} +26 -26
  99. package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-BO4TyQ_g.js} +3 -3
  100. package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-cbehgtiQ.cjs} +1 -1
  101. package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BRdRCV_a.js} +14 -14
  102. package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-D9yoOBuy.cjs} +1 -1
  103. package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-43VQlj7e.cjs} +1 -1
  104. package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-BAas3BvQ.js} +2 -2
  105. package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-2Jyg0ILJ.js} +10 -10
  106. package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-CcrMdiqm.cjs} +1 -1
  107. package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-Cuy2--YT.js} +12 -12
  108. package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-VumJPDi3.cjs} +1 -1
  109. package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-knwhmSBU.cjs} +1 -1
  110. package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-qLo3xtpZ.js} +23 -23
  111. package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-D2Ronskq.js} +34 -34
  112. package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-DbAH_mjd.cjs} +1 -1
  113. package/dist/{dxf-BOfmTSO8.cjs → dxf-BAH7igHZ.cjs} +1 -1
  114. package/dist/{dxf-DYC74yWV.js → dxf-BSXyBPzC.js} +2 -2
  115. package/dist/{dzc-DUFiz7a_.cjs → dzc-D105FzEq.cjs} +1 -1
  116. package/dist/{dzc-BU7yYW4I.js → dzc-DvtA7L0o.js} +2 -2
  117. package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CAs6Mk1Y.cjs} +1 -1
  118. package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-CFmxsb7R.js} +3 -3
  119. package/dist/{evn-DrreVqnm.cjs → evn-D-e0vp61.cjs} +1 -1
  120. package/dist/{evn-DhdColcF.js → evn-DtTKI8zs.js} +2 -2
  121. package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-6EMuwRiR.cjs} +1 -1
  122. package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-uRWhCC8C.js} +3 -3
  123. package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-CPG-66F1.cjs} +1 -1
  124. package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cxo-Sbha.js} +2 -2
  125. package/dist/{filterBar-CwHODFoy.cjs → filterBar-CI0jzG-8.cjs} +1 -1
  126. package/dist/{filterBar-DYpEssxC.js → filterBar-DchvCgB0.js} +2 -2
  127. package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-fvldUBQh.js} +3 -3
  128. package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-qOiCa6aW.cjs} +1 -1
  129. package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-B8J3V0n-.cjs} +1 -1
  130. package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-D7mx1XUg.js} +2 -2
  131. package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-CP0kgqS6.js} +2 -2
  132. package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-r_xPEo29.cjs} +1 -1
  133. package/dist/{gag-LSkHPD7f.cjs → gag-BhUKp8vX.cjs} +1 -1
  134. package/dist/{gag-BGUeQKJJ.js → gag-n3ajZOT8.js} +2 -2
  135. package/dist/{gasStationList-4TtBLsqC.js → gasStationList-CRZGXdZ-.js} +3 -3
  136. package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DX9Q2lFd.cjs} +1 -1
  137. package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CfPFjRsL.cjs} +1 -1
  138. package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-DFD75mZU.js} +3 -3
  139. package/dist/{glbModel-BDgY9S4f.cjs → glbModel-BrwlvZq6.cjs} +1 -1
  140. package/dist/{glbModel-IOIVpCjq.js → glbModel-x4OZxfPi.js} +2 -2
  141. package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-Bx2SbcG0.js} +1 -1
  142. package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-PiWbhkZ4.cjs} +1 -1
  143. package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-8ie4Hrtf.js} +2 -2
  144. package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BY7YScHH.cjs} +1 -1
  145. package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-DH3MNQRj.js} +2 -2
  146. package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-lvtSQu6T.cjs} +1 -1
  147. package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BalPUoGu.cjs} +2 -2
  148. package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-eqR9-FLA.js} +4 -4
  149. package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-C2v9LYEI.js} +2 -2
  150. package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-fXM6wumD.cjs} +1 -1
  151. package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-DK08VGh2.cjs} +1 -1
  152. package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-DO4m_7q7.js} +2 -2
  153. package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CDgAcydt.cjs} +1 -1
  154. package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Jdb53wOw.js} +2 -2
  155. package/dist/{grd-D1enzYOI.cjs → grd-BcVJB4b5.cjs} +1 -1
  156. package/dist/{grd-BTGTCp0z.js → grd-Bf5VZY3M.js} +19 -19
  157. package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-CTaKBOun.cjs} +1 -1
  158. package/dist/{grdIndass-Dn62HL6y.js → grdIndass-DrBidpYt.js} +2 -2
  159. package/dist/{grg-DMOF8h8j.js → grg-57h3YudF.js} +5 -5
  160. package/dist/{grg-B5128EcW.cjs → grg-DR1f44AO.cjs} +1 -1
  161. package/dist/{gridview-Dewc5Eax.js → gridview-BEiHeWnU.js} +2 -2
  162. package/dist/{gridview-Ddin99YO.cjs → gridview-DUOWjiqv.cjs} +1 -1
  163. package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-Djh4tnLM.js} +2 -2
  164. package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-WfAm45Iv.cjs} +1 -1
  165. package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-B9NrkncY.cjs} +2 -2
  166. package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-Dvme4PHf.js} +3 -3
  167. package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DLhsSDRO.js} +3 -3
  168. package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-pLt2KuEY.cjs} +1 -1
  169. package/dist/{groupCard-DWjFdiH0.cjs → groupCard-DK5_osdM.cjs} +1 -1
  170. package/dist/{groupCard-B3fp05QD.js → groupCard-QV7NnbBa.js} +2 -2
  171. package/dist/{headerBar-BkpSQMNy.js → headerBar-CBTHBko2.js} +2 -2
  172. package/dist/{headerBar-B6lX3WST.cjs → headerBar-DcMgFL7n.cjs} +1 -1
  173. package/dist/{history-DqPjJP_E.cjs → history-BKLujk4W.cjs} +1 -1
  174. package/dist/{history-DgSlSTUD.js → history-BvM7EXsN.js} +11 -11
  175. package/dist/{index-Bo49zvKb.cjs → index-Cm7hGuPj.cjs} +13 -13
  176. package/dist/{index-BbXEpgom.js → index-DUL649KZ.js} +3422 -3379
  177. package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D13o5hNr.cjs} +1 -1
  178. package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DPq39rTv.js} +2 -2
  179. package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-BLYbI4bm.js} +2 -2
  180. package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BoqwF7sg.cjs} +1 -1
  181. package/dist/{kds-CS473Sia.js → kds-B2xqXmO8.js} +2 -2
  182. package/dist/{kds-BJwYrjV_.cjs → kds-B8Jdw9vL.cjs} +1 -1
  183. package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-BGsf7G30.cjs} +1 -1
  184. package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DRR1gTcG.js} +2 -2
  185. package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-CD2LDzJA.cjs} +1 -1
  186. package/dist/{landslideMap-DMNcfDYF.js → landslideMap-DDlN9f2H.js} +9 -9
  187. package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-27SNVapD.cjs} +1 -1
  188. package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-r1zdMCih.js} +26 -26
  189. package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-B86d5HH7.cjs} +1 -1
  190. package/dist/{layerTabs-Bgi7pfof.js → layerTabs-BjHiCU_F.js} +2 -2
  191. package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-CAGnqnjZ.js} +1 -1
  192. package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DYGpvxW6.cjs} +1 -1
  193. package/dist/{lerc-CEea2nO1.cjs → lerc-5z3DZffX.cjs} +1 -1
  194. package/dist/{lerc-BDiJ3I_S.js → lerc-Dh5beGkQ.js} +2 -2
  195. package/dist/{lin-BO1pGlXr.js → lin-DDWiOEA0.js} +6 -6
  196. package/dist/{lin-B_rN6QBj.cjs → lin-r6oOjphh.cjs} +1 -1
  197. package/dist/{linIndass-BGpoCQ4j.js → linIndass-CWcaOARi.js} +10 -10
  198. package/dist/{linIndass-B7XnW5XO.cjs → linIndass-CYCVyf-Z.cjs} +1 -1
  199. package/dist/{lst-BBl9nn63.js → lst-BKViAE6J.js} +2 -2
  200. package/dist/{lst-BeB_Gi9l.cjs → lst-Jc5oufSH.cjs} +1 -1
  201. package/dist/{manualEntry-C3qifAlP.js → manualEntry-CR0vY9l1.js} +2 -2
  202. package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-DpKGLaSi.cjs} +1 -1
  203. package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BmlSVAtG.js} +3 -3
  204. package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-Cx8KweQ8.cjs} +1 -1
  205. package/dist/{mappingList-DnoAuivo.cjs → mappingList-BZz7GqJ4.cjs} +1 -1
  206. package/dist/{mappingList-B0jG2LlO.js → mappingList-C92OnAaA.js} +3 -3
  207. package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-ICTPV_72.js} +2 -2
  208. package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-O5ng8kl7.cjs} +1 -1
  209. package/dist/materialFileUrl-C_Aqly-o.cjs +1 -0
  210. package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-CfFfqtB7.js} +5 -4
  211. package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-CGLYKUCc.js} +5 -5
  212. package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-oxp6LmrP.cjs} +1 -1
  213. package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-DO73I4-D.cjs} +1 -1
  214. package/dist/{mixGrid-DQf7U1_8.js → mixGrid-DnxCOTqm.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +1 -1
  218. package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-DSMbdhJe.cjs} +1 -1
  219. package/dist/{mjpegCamera-C6pxWuEr.js → mjpegCamera-Dj5Lyrml.js} +2 -2
  220. package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-C0e3mU_8.cjs} +1 -1
  221. package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-FwFl3Tjd.js} +12 -12
  222. package/dist/{monitorData-DIxZYNVr.js → monitorData-CnFHs2-k.js} +10 -10
  223. package/dist/{monitorData-slk6ogNe.cjs → monitorData-ICqlDSYT.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-B_02qTZy.cjs} +1 -1
  225. package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-XCq3duqZ.js} +1 -1
  226. package/dist/{mxa-Bp4RH0w3.cjs → mxa-B9Ioifrx.cjs} +1 -1
  227. package/dist/{mxa-DFq19ply.js → mxa-DkvNrmvM.js} +2 -2
  228. package/dist/{myValue-g8shJQA9.cjs → myValue-CJZpYcAp.cjs} +1 -1
  229. package/dist/{myValue-BvItzUMv.js → myValue-aYi3bo7x.js} +2 -2
  230. package/dist/{myValueList-A_UGyNxN.js → myValueList-BIZ2JfrI.js} +2 -2
  231. package/dist/{myValueList-DnZBoJXp.cjs → myValueList-CFnHg4pl.cjs} +1 -1
  232. package/dist/objectList-B_BnqBg1.js +1842 -0
  233. package/dist/objectList-BgyTh2e7.cjs +1 -0
  234. package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-B7Yk07oG.cjs} +1 -1
  235. package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-Bq1S1FGu.js} +3 -3
  236. package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-DmrRQirp.cjs} +1 -1
  237. package/dist/{percentBar-BvmYW_u6.js → percentBar-L0Ur3boP.js} +2 -2
  238. package/dist/{photo-t11P9WKh.js → photo-9c2Vrzor.js} +3 -3
  239. package/dist/{photo-B-kxNdb5.cjs → photo-BzVvbKrh.cjs} +1 -1
  240. package/dist/{pie-yTahcSl_.js → pie-BVbkpFWj.js} +2 -2
  241. package/dist/{pie-0s6FwVBt.cjs → pie-CeeMdBgu.cjs} +1 -1
  242. package/dist/{placeholder-DBmyvwFn.cjs → placeholder-C07ZscJc.cjs} +1 -1
  243. package/dist/{placeholder-D_CaQ-hg.js → placeholder-CUYSWWf8.js} +1 -1
  244. package/dist/{pressBtn-CP4kJr-P.js → pressBtn-Ds60I7hM.js} +3 -3
  245. package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-sqz6yim1.cjs} +1 -1
  246. package/dist/{processTable-BXswsnmt.js → processTable-COz7CKEG.js} +2 -2
  247. package/dist/{processTable-DRdI9ExW.cjs → processTable-CytoNBR2.cjs} +1 -1
  248. package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BxHPc2DD.cjs} +1 -1
  249. package/dist/{progressBar-D1Xh5APg.js → progressBar-CUnuEFaQ.js} +2 -2
  250. package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-BUNOFiUO.cjs} +1 -1
  251. package/dist/{progressCircle-BMpJVwIE.js → progressCircle-DWKJHFm-.js} +2 -2
  252. package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DJrUuI_e.cjs} +1 -1
  253. package/dist/{qrcode-BqlqV7Jf.js → qrcode-elzi9Ev5.js} +2 -2
  254. package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BWYiOHgT.cjs} +2 -2
  255. package/dist/{raceBar-zSL-J18j.js → raceBar-C1Js5fWq.js} +156 -136
  256. package/dist/{rad-DSfVfaMa.cjs → rad-B__LOwb8.cjs} +1 -1
  257. package/dist/{rad-CZhY-L-z.js → rad-Dau_xw7q.js} +2 -2
  258. package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-0jrnj6Nm.js} +2 -2
  259. package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-30nLi5D4.cjs} +1 -1
  260. package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-CnNMm1L4.js} +2 -2
  261. package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-io0Xy92q.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-CO3kxkO1.js} +3 -3
  263. package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-CsQNzhJI.cjs} +1 -1
  264. package/dist/{rangeLin-BOEsEaV1.js → rangeLin-C9p4yw-H.js} +8 -8
  265. package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-F-eJUSOD.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BSHmiJdM.js} +2 -2
  267. package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DbPSlUVo.cjs} +1 -1
  268. package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-BqpQ17-j.cjs} +1 -1
  269. package/dist/{regionBar-BQr-kq-M.js → regionBar-DcIaWt42.js} +2 -2
  270. package/dist/{request-D9N74QdZ.cjs → request-BNiCZV7_.cjs} +1 -1
  271. package/dist/{request-Bn2gQLgM.js → request-CEUCACCR.js} +5 -5
  272. package/dist/{retainer1-Fnw0-Jvy.js → retainer1-BYe-4QPq.js} +3 -3
  273. package/dist/{retainer1-BCh8WSOq.cjs → retainer1-CtwKT7UP.cjs} +1 -1
  274. package/dist/{retainer2-nPyFv6Hs.js → retainer2-C8M7swsz.js} +3 -3
  275. package/dist/{retainer2-_3NOOefF.cjs → retainer2-CQf-EzAl.cjs} +1 -1
  276. package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-B-xwovFD.js} +3 -3
  277. package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-DyRQQ0N-.cjs} +1 -1
  278. package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-CMNYP6hk.js} +3 -3
  279. package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-UPROwhvr.cjs} +1 -1
  280. package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-FlVjUrQT.js} +2 -2
  281. package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-tPWwyl2Y.cjs} +1 -1
  282. package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-BbJAvy7W.cjs} +1 -1
  283. package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-BjZoKdPt.js} +2 -2
  284. package/dist/{sankey-CYTyQB-L.cjs → sankey-CbPDXthr.cjs} +1 -1
  285. package/dist/{sankey-CbEUEE5B.js → sankey-Df3nSWC_.js} +7 -7
  286. package/dist/{scd-Btsiastw.js → scd-B9eeXnYU.js} +344 -348
  287. package/dist/scd-Ds6_WZDt.cjs +1 -0
  288. package/dist/{sideMenu-BxJRAAdM.js → sideMenu-BZ8iCENQ.js} +2 -2
  289. package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-CCohX7e6.cjs} +1 -1
  290. package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-CO2BLtaT.cjs} +1 -1
  291. package/dist/{slopeStability-DrooNf1g.js → slopeStability-ChLLwaQA.js} +19 -19
  292. package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-B7vwk0ti.js} +2 -2
  293. package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-DC8GN7er.cjs} +1 -1
  294. package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-Bdt1ii7n.cjs} +1 -1
  295. package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-p5hQcLfe.js} +2 -2
  296. package/dist/{stationList-D7lGCblu.js → stationList-4JLmJjJs.js} +3 -3
  297. package/dist/{stationList-DVzvGGHI.cjs → stationList-BHhnU7rg.cjs} +1 -1
  298. package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-CDvVQZhK.cjs} +1 -1
  299. package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-D5uGrRbV.js} +2 -2
  300. package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BmXoUDOP.js} +3 -3
  301. package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-Chj7Kmdb.cjs} +1 -1
  302. package/dist/{swiper-DuNuvT_N.js → swiper-CkVk-qls.js} +2 -2
  303. package/dist/{swiper-XCpwFkWS.cjs → swiper-OOktak53.cjs} +1 -1
  304. package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-D6UFJZIo.cjs} +1 -1
  305. package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-Hi3dHyzp.js} +3 -3
  306. package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-Bpuptxn4.js} +4 -4
  307. package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-CHy58vFi.cjs} +1 -1
  308. package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C16Timv1.js} +4 -4
  309. package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-C_bH6tMi.cjs} +1 -1
  310. package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-BW1WE2Ph.js} +3 -3
  311. package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-Duc6n-hm.cjs} +1 -1
  312. package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-Cvrm6nnk.js} +3 -3
  313. package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-DIpc92Cl.cjs} +1 -1
  314. package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-C8dkmhQS.cjs} +1 -1
  315. package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-yGZl93f_.js} +3 -3
  316. package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-CanK2pyt.cjs} +1 -1
  317. package/dist/{terminalList-CJpH2Z-r.js → terminalList-dgawgsuV.js} +3 -3
  318. package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-0iTXcRsu.cjs} +1 -1
  319. package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-DNQzjxMX.js} +3 -3
  320. package/dist/{textbox-CJnSDwg7.js → textbox-88HaqHYa.js} +2 -2
  321. package/dist/{textbox-DR0bQEX7.cjs → textbox-CJP0S05E.cjs} +1 -1
  322. package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B6WFuoFy.js} +1 -1
  323. package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-B7m2zNqC.cjs} +1 -1
  324. package/dist/{timeSeries-t4uZvXRF.js → timeSeries-CBEMu62t.js} +12 -12
  325. package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-pv1B8rAD.cjs} +1 -1
  326. package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-C8I6T04V.js} +3 -3
  327. package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DfKXoiJf.cjs} +1 -1
  328. package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-D892Lgcg.cjs} +1 -1
  329. package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-DxOPkmCn.js} +2 -2
  330. package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-2_KO7Fm_.cjs} +1 -1
  331. package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-CiHG2Nj3.js} +1 -1
  332. package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-ceIqjQdd.cjs} +1 -1
  333. package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-gYFCMKo8.js} +2 -2
  334. package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-BuJ0pSOp.cjs} +1 -1
  335. package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-T07C_JVG.js} +1 -1
  336. package/dist/{universalTable-CvBC-L9Z.js → universalTable-C6iYcfCe.js} +2 -2
  337. package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-DA2F0v4F.cjs} +1 -1
  338. package/dist/useMixiotPanelPopperClass-DDtFtXLr.cjs +1 -0
  339. package/dist/useMixiotPanelPopperClass-DtvQI0g1.js +52 -0
  340. package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-BbUulkUz.cjs} +1 -1
  341. package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Ch3eQRoG.js} +1 -1
  342. package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-BdBoaHFU.cjs} +1 -1
  343. package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-EtmBEDl7.js} +2 -2
  344. package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-Dlfnpnld.cjs} +1 -1
  345. package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-gqs6gpza.js} +4 -4
  346. package/dist/{video-C1N8Ikkh.js → video-BVmqEL79.js} +2 -2
  347. package/dist/{video-BN19nKK_.cjs → video-jHJpadOt.cjs} +1 -1
  348. package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-BZkwTydy.cjs} +1 -1
  349. package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-BwdC2_nR.js} +8 -8
  350. package/dist/{vlu-B8tqM9md.js → vlu-BSasXwGB.js} +2 -2
  351. package/dist/{vlu-DrABl6SW.cjs → vlu-DONKeVps.cjs} +1 -1
  352. package/dist/{warningOverview-_rp_SbLs.js → warningOverview-7bSJ0uSZ.js} +3 -3
  353. package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-DVtqkIDv.cjs} +1 -1
  354. package/dist/{weather-B_XCWwDa.cjs → weather--IcwH6Si.cjs} +1 -1
  355. package/dist/{weather-qvsptrt0.js → weather-CVLrwzcA.js} +2 -2
  356. package/dist/{windLin-BDtJUYBu.js → windLin-ByNz1LOX.js} +2 -2
  357. package/dist/{windLin-P84T5W3o.cjs → windLin-C-BHdrGl.cjs} +1 -1
  358. package/package.json +1 -1
  359. package/dist/crd-C6iegy7d.cjs +0 -1
  360. package/dist/materialFileUrl-8YHw7z1T.cjs +0 -1
  361. package/dist/objectList-BcSCvy54.cjs +0 -1
  362. package/dist/objectList-DgVJlA1o.js +0 -1828
  363. package/dist/scd-DwdWl6Wz.cjs +0 -1
  364. package/dist/useMixiotPanelPopperClass-2tTzKUsO.cjs +0 -1
  365. package/dist/useMixiotPanelPopperClass-UGlVKJTK.js +0 -53
@@ -1 +1 @@
1
- "use strict";var W=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var P=(n,t,l)=>t in n?W(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,R=(n,t)=>{for(var l in t||(t={}))K.call(t,l)&&P(n,l,t[l]);if(F)for(var l of F(t))Q.call(t,l)&&P(n,l,t[l]);return n},U=(n,t)=>G(n,H(t));var v=(n,t,l)=>new Promise((b,m)=>{var u=s=>{try{d(l.next(s))}catch(p){m(p)}},x=s=>{try{d(l.throw(s))}catch(p){m(p)}},d=s=>s.done?b(s.value):Promise.resolve(s.value).then(u,x);d((l=l.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const X=require("./BaseComponent-9njJjeix.cjs"),f=require("./index-Bo49zvKb.cjs"),g=require("element-plus"),V=require("./ele-textbox-icon-g_5kV8t6.cjs"),Y={class:"mix-component"},Z={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"文本",NAME_EN:"Textbox",ORDER:2,PLATFORM:["pc","screen","mobile"]},ee={bgColor:{value:"#fff",type:"color",label:"component.options.bgColor"},textColor:{value:"#111",type:"color",label:"component.options.textColor"},textSize:{value:14,type:"number",label:"component.options.textSize",min:10,max:100},radiusSize:{value:8,type:"number",label:"component.options.radiusSize",min:0,max:50},letterSpacing:{value:2,type:"number",label:"component.options.letterSpacing",min:0,max:20},name:{value:"",type:"string",label:"component.customized.name"},bgImg:{value:"",type:"image",label:"component.customized.bgImg"},textAlign:{value:"center",type:"radio",option:[{value:"left",label:"component.list.left"},{value:"center",label:"component.list.center"},{value:"right",label:"component.list.right"}],label:"component.customized.textAlign"},isBold:!1,isJump:!1,jumpType:{value:"url",type:"radio",option:[{value:"url",label:"component.customized.address"},{value:"uid",label:"component.customized.dashboard"}],label:"component.customized.jumpType",dependent:"isJump"},jumpParam:{value:"",type:"string",label:"跳转参数",dependent:"isJump"}},te={DEFAULT:Z,OPTIONS:ee,COMMON:{}},le=r.defineComponent(U(R({},te),{__name:"textbox",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const t=n,l={left:"flex-start",center:"center",right:"flex-end"};class b extends X.BaseComponent{extractStyles(){var c,i,o,y,S,C,_,h,z,I,E,j,O,T,A,w,M,N,B,L,$,J,k,q,D;const{options:e}=this.props.conf;return{bgColor:(o=(i=(c=e==null?void 0:e.bgColor)==null?void 0:c.value)!=null?i:e==null?void 0:e.bgColor)!=null?o:"#fff",textColor:(C=(S=(y=e==null?void 0:e.textColor)==null?void 0:y.value)!=null?S:e==null?void 0:e.textColor)!=null?C:"#303133",textSize:(z=(h=(_=e==null?void 0:e.textSize)==null?void 0:_.value)!=null?h:e==null?void 0:e.textSize)!=null?z:14,radiusSize:(j=(E=(I=e==null?void 0:e.radiusSize)==null?void 0:I.value)!=null?E:e==null?void 0:e.radiusSize)!=null?j:8,letterSpacing:(A=(T=(O=e==null?void 0:e.letterSpacing)==null?void 0:O.value)!=null?T:e==null?void 0:e.letterSpacing)!=null?A:2,textAlign:(M=(w=e==null?void 0:e.textAlign)==null?void 0:w.value)!=null?M:"center",isBold:(L=(B=(N=e==null?void 0:e.isBold)==null?void 0:N.value)!=null?B:e==null?void 0:e.isBold)!=null?L:!1,bgImg:(J=($=e==null?void 0:e.bgImg)==null?void 0:$.value)!=null?J:"",isJump:(D=(q=(k=e==null?void 0:e.isJump)==null?void 0:k.value)!=null?q:e==null?void 0:e.isJump)!=null?D:!1}}}const m=new b(t,"textbox");m.setupLifecycle();const u=m.getStyle(),x=a=>a?a.startsWith(f.FILE_URL)||a.startsWith("http")?a:f.FILE_URL+a:"",d=a=>v(null,null,function*(){var e;try{const{result:c}=yield f.api.post("get_object_item",{uid:a},!0);let i={};return(e=c.dashboard_list)!=null&&e.length&&(i=c.dashboard_list.find(o=>o.type==="screen_dashboard"||o.type==="show")),Object.keys(i).length?`${location.origin}/mixui/#/preview/${i.uid}/${i.name}?object_id=${a}`:(g.ElMessage({message:"该对象未配置大屏脚本",type:"warning"}),null)}catch(c){return g.ElMessage.error("获取跳转信息失败"),null}}),s=()=>v(null,null,function*(){var c,i;const{options:a}=t.conf,e=(c=a.jumpParam)==null?void 0:c.value;if(!e){g.ElMessage.error("未设置跳转参数");return}try{let o=null;((i=a.jumpType)==null?void 0:i.value)==="url"?o=e:o=yield d(e),o&&window.open(o,"_self")}catch(o){g.ElMessage.error("跳转失败")}}),p=()=>{t.mode==="preview"&&u.value.isJump&&s()};return(a,e)=>{var c,i,o;return r.openBlock(),r.createElementBlock("div",Y,[r.createElementVNode("div",{class:"textbox-wrap",style:r.normalizeStyle({backgroundColor:r.unref(u).bgColor,color:r.unref(u).textColor,borderRadius:`${r.unref(u).radiusSize}px`,fontSize:`${r.unref(u).textSize}px`,backgroundImage:r.unref(u).bgImg?`url(${x(r.unref(u).bgImg)})`:"",justifyContent:l[r.unref(u).textAlign]||"center",fontWeight:r.unref(u).isBold?"600":"400",letterSpacing:`${r.unref(u).letterSpacing}px`,cursor:r.unref(u).isJump?"pointer":"default"}),onClick:p},r.toDisplayString(((o=(i=(c=n.conf)==null?void 0:c.options)==null?void 0:i.name)==null?void 0:o.value)||""),5),r.renderSlot(a.$slots,"default",{},void 0,!0)])}}})),re=f._export_sfc(le,[["__scopeId","data-v-2c6eb166"]]);exports.default=re;
1
+ "use strict";var W=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var P=(n,t,l)=>t in n?W(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,R=(n,t)=>{for(var l in t||(t={}))K.call(t,l)&&P(n,l,t[l]);if(F)for(var l of F(t))Q.call(t,l)&&P(n,l,t[l]);return n},U=(n,t)=>G(n,H(t));var v=(n,t,l)=>new Promise((b,m)=>{var u=s=>{try{d(l.next(s))}catch(p){m(p)}},x=s=>{try{d(l.throw(s))}catch(p){m(p)}},d=s=>s.done?b(s.value):Promise.resolve(s.value).then(u,x);d((l=l.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const X=require("./BaseComponent-BabOc6Kc.cjs"),f=require("./index-Cm7hGuPj.cjs"),g=require("element-plus"),V=require("./ele-textbox-icon-g_5kV8t6.cjs"),Y={class:"mix-component"},Z={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"文本",NAME_EN:"Textbox",ORDER:2,PLATFORM:["pc","screen","mobile"]},ee={bgColor:{value:"#fff",type:"color",label:"component.options.bgColor"},textColor:{value:"#111",type:"color",label:"component.options.textColor"},textSize:{value:14,type:"number",label:"component.options.textSize",min:10,max:100},radiusSize:{value:8,type:"number",label:"component.options.radiusSize",min:0,max:50},letterSpacing:{value:2,type:"number",label:"component.options.letterSpacing",min:0,max:20},name:{value:"",type:"string",label:"component.customized.name"},bgImg:{value:"",type:"image",label:"component.customized.bgImg"},textAlign:{value:"center",type:"radio",option:[{value:"left",label:"component.list.left"},{value:"center",label:"component.list.center"},{value:"right",label:"component.list.right"}],label:"component.customized.textAlign"},isBold:!1,isJump:!1,jumpType:{value:"url",type:"radio",option:[{value:"url",label:"component.customized.address"},{value:"uid",label:"component.customized.dashboard"}],label:"component.customized.jumpType",dependent:"isJump"},jumpParam:{value:"",type:"string",label:"跳转参数",dependent:"isJump"}},te={DEFAULT:Z,OPTIONS:ee,COMMON:{}},le=r.defineComponent(U(R({},te),{__name:"textbox",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const t=n,l={left:"flex-start",center:"center",right:"flex-end"};class b extends X.BaseComponent{extractStyles(){var c,i,o,y,S,C,_,h,z,I,E,j,O,T,A,w,M,N,B,L,$,J,k,q,D;const{options:e}=this.props.conf;return{bgColor:(o=(i=(c=e==null?void 0:e.bgColor)==null?void 0:c.value)!=null?i:e==null?void 0:e.bgColor)!=null?o:"#fff",textColor:(C=(S=(y=e==null?void 0:e.textColor)==null?void 0:y.value)!=null?S:e==null?void 0:e.textColor)!=null?C:"#303133",textSize:(z=(h=(_=e==null?void 0:e.textSize)==null?void 0:_.value)!=null?h:e==null?void 0:e.textSize)!=null?z:14,radiusSize:(j=(E=(I=e==null?void 0:e.radiusSize)==null?void 0:I.value)!=null?E:e==null?void 0:e.radiusSize)!=null?j:8,letterSpacing:(A=(T=(O=e==null?void 0:e.letterSpacing)==null?void 0:O.value)!=null?T:e==null?void 0:e.letterSpacing)!=null?A:2,textAlign:(M=(w=e==null?void 0:e.textAlign)==null?void 0:w.value)!=null?M:"center",isBold:(L=(B=(N=e==null?void 0:e.isBold)==null?void 0:N.value)!=null?B:e==null?void 0:e.isBold)!=null?L:!1,bgImg:(J=($=e==null?void 0:e.bgImg)==null?void 0:$.value)!=null?J:"",isJump:(D=(q=(k=e==null?void 0:e.isJump)==null?void 0:k.value)!=null?q:e==null?void 0:e.isJump)!=null?D:!1}}}const m=new b(t,"textbox");m.setupLifecycle();const u=m.getStyle(),x=a=>a?a.startsWith(f.FILE_URL)||a.startsWith("http")?a:f.FILE_URL+a:"",d=a=>v(null,null,function*(){var e;try{const{result:c}=yield f.api.post("get_object_item",{uid:a},!0);let i={};return(e=c.dashboard_list)!=null&&e.length&&(i=c.dashboard_list.find(o=>o.type==="screen_dashboard"||o.type==="show")),Object.keys(i).length?`${location.origin}/mixui/#/preview/${i.uid}/${i.name}?object_id=${a}`:(g.ElMessage({message:"该对象未配置大屏脚本",type:"warning"}),null)}catch(c){return g.ElMessage.error("获取跳转信息失败"),null}}),s=()=>v(null,null,function*(){var c,i;const{options:a}=t.conf,e=(c=a.jumpParam)==null?void 0:c.value;if(!e){g.ElMessage.error("未设置跳转参数");return}try{let o=null;((i=a.jumpType)==null?void 0:i.value)==="url"?o=e:o=yield d(e),o&&window.open(o,"_self")}catch(o){g.ElMessage.error("跳转失败")}}),p=()=>{t.mode==="preview"&&u.value.isJump&&s()};return(a,e)=>{var c,i,o;return r.openBlock(),r.createElementBlock("div",Y,[r.createElementVNode("div",{class:"textbox-wrap",style:r.normalizeStyle({backgroundColor:r.unref(u).bgColor,color:r.unref(u).textColor,borderRadius:`${r.unref(u).radiusSize}px`,fontSize:`${r.unref(u).textSize}px`,backgroundImage:r.unref(u).bgImg?`url(${x(r.unref(u).bgImg)})`:"",justifyContent:l[r.unref(u).textAlign]||"center",fontWeight:r.unref(u).isBold?"600":"400",letterSpacing:`${r.unref(u).letterSpacing}px`,cursor:r.unref(u).isJump?"pointer":"default"}),onClick:p},r.toDisplayString(((o=(i=(c=n.conf)==null?void 0:c.options)==null?void 0:i.name)==null?void 0:o.value)||""),5),r.renderSlot(a.$slots,"default",{},void 0,!0)])}}})),re=f._export_sfc(le,[["__scopeId","data-v-2c6eb166"]]);exports.default=re;
@@ -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 { l as q, d as $, _ as G } from "./index-BbXEpgom.js";
20
+ import { l as q, d as $, _ as G } from "./index-DUL649KZ.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-Bo49zvKb.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-Cm7hGuPj.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;
@@ -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 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";
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 W, 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 { V as Ee, _ as Ae } from "./index-BbXEpgom.js";
37
+ import { W as Ee, _ as Ae } from "./index-DUL649KZ.js";
38
38
  import "element-plus";
39
- import { E as je } from "./EChartComponentBase-DJScukmS.js";
40
- import { formatRequest as Me } from "./request-Bn2gQLgM.js";
39
+ import { E as je } from "./EChartComponentBase-DCKFGbqb.js";
40
+ import { formatRequest as Me } from "./request-CEUCACCR.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 = {
@@ -83,7 +83,7 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
83
83
  },
84
84
  // 时间范围显示
85
85
  showTimeRange: { value: !0, type: "checkbox", label: "component.timeSeries.showTimeRange" }
86
- }, qe = [
86
+ }, We = [
87
87
  {
88
88
  name: "指标1",
89
89
  // 参数名称(显示在图例中)
@@ -109,7 +109,7 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
109
109
  object_id: ""
110
110
  }
111
111
  // 可以添加更多指标...
112
- ], He = ["name", "fv", "unit", "color", "lineStyle", "fvDeviceName", "object_id"], We = ["mosaic", "statistics", "statisticsRealtime"], Ge = { useAlias: !1, multiObject: !1, source: "mosaic" }, Je = { DEFAULT: Ue, OPTIONS: Be, DATA: qe, PARAMS: He, SOURCE: We, COMMON: Ge }, Ke = /* @__PURE__ */ Ce($(N({}, Je), {
112
+ ], qe = ["name", "fv", "unit", "color", "lineStyle", "fvDeviceName", "object_id"], He = ["mosaic", "statistics", "statisticsRealtime"], Ge = { useAlias: !1, multiObject: !1, source: "mosaic" }, Je = { DEFAULT: Ue, OPTIONS: Be, DATA: We, PARAMS: qe, SOURCE: He, COMMON: Ge }, Ke = /* @__PURE__ */ Ce($(N({}, Je), {
113
113
  __name: "timeSeries",
114
114
  props: {
115
115
  conf: { type: Object, default: () => ({ data: [] }) },
@@ -449,9 +449,9 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
449
449
  const ne = R(() => ({
450
450
  backgroundColor: x.value.bgColor,
451
451
  color: x.value.textColor
452
- })), H = R(() => x.value.showTimeRange), W = R(() => {
452
+ })), q = R(() => x.value.showTimeRange), H = R(() => {
453
453
  var c;
454
- if (!H.value) return "";
454
+ if (!q.value) return "";
455
455
  const o = ((c = p.chartData) == null ? void 0 : c.times) || [];
456
456
  if (!o.length) return "";
457
457
  const e = [...o].sort(), s = e[0], u = e[e.length - 1];
@@ -559,8 +559,8 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
559
559
  A("div", $e, [
560
560
  A("div", Re, [
561
561
  A("span", Ve, ee(B(x).title), 1),
562
- H.value && W.value ? (k(), L("span", ze, ee(W.value), 1)) : te("", !0),
563
- S.value.length ? (k(), q(u, {
562
+ q.value && H.value ? (k(), L("span", ze, ee(H.value), 1)) : te("", !0),
563
+ S.value.length ? (k(), W(u, {
564
564
  key: 1,
565
565
  modelValue: O.value,
566
566
  "onUpdate:modelValue": e[0] || (e[0] = (a) => O.value = a),
@@ -570,7 +570,7 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
570
570
  onChange: ie
571
571
  }, {
572
572
  default: P(() => [
573
- (k(!0), L(se, null, ae(S.value, (a) => (k(), q(s, {
573
+ (k(!0), L(se, null, ae(S.value, (a) => (k(), W(s, {
574
574
  key: a,
575
575
  label: a,
576
576
  value: a
@@ -591,7 +591,7 @@ const $e = { class: "panel-header" }, Re = { class: "header-left" }, Ve = { clas
591
591
  onChange: oe
592
592
  }, {
593
593
  default: P(() => [
594
- (k(!0), L(se, null, ae(j.value, (a) => (k(), q(s, {
594
+ (k(!0), L(se, null, ae(j.value, (a) => (k(), W(s, {
595
595
  key: a.value,
596
596
  label: a.label,
597
597
  value: a.value
@@ -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-Bo49zvKb.cjs");require("element-plus");const le=require("./EChartComponentBase-BwbycwwW.cjs"),re=require("./request-D9N74QdZ.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-Cm7hGuPj.cjs");require("element-plus");const le=require("./EChartComponentBase-DM6aSCAR.cjs"),re=require("./request-BNiCZV7_.cjs"),W=require("./ele-glbModel-icon-ByACDCrv.cjs"),ce=require("@element-plus/icons-vue"),ue={class:"panel-header"},de={class:"header-left"},he={class:"header-title"},fe={key:0,class:"time-range-text"},me={class:"header-right"},pe={class:"chart-area"},ve=["id"],ge={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"指标时序演变曲线",NAME_EN:"Time Series Evolution Curve",ORDER:12,PLATFORM:["pc","screen"]},ye={title:{value:"指标时序演变曲线",type:"string",label:"component.timeSeries.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},seriesStyles:{value:"",type:"textarea",label:"component.timeSeries.seriesStyles",placeholder:'JSON格式,例如:{"widthDaily": {"color": "#4a90d9", "lineStyle": "solid"}}'},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}},showTimeRange:{value:!0,type:"checkbox",label:"component.timeSeries.showTimeRange"}},be=[{name:"指标1",fv:"indicator1",unit:"mm",color:"#4a90d9",lineStyle:"solid",fvDeviceName:"deviceId",object_id:""},{name:"指标2",fv:"indicator2",unit:"°",color:"#52c41a",lineStyle:"dashed",fvDeviceName:"deviceId",object_id:""}],Ce=["name","fv","unit","color","lineStyle","fvDeviceName","object_id"],Se=["mosaic","statistics","statisticsRealtime"],De={useAlias:!1,multiObject:!1,source:"mosaic"},_e={DEFAULT:ge,OPTIONS:ye,DATA:be,PARAMS:Ce,SOURCE:Se,COMMON:De},ke=s.defineComponent(T(M({},_e),{__name:"timeSeries",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const h=C;class y extends le.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData={times:[],series:{}},this.historyCache=new Map,this.selectedSeriesIndex=[],this.selectionInitialized=!1}extractStyles(){var d,t,l,c,g,D,b,k;const{options:e}=this.props.conf,a=((d=e==null?void 0:e.linkChannel)==null?void 0:d.value)||"deepDisplacement",f=((t=e==null?void 0:e.customChannel)==null?void 0:t.value)||"",u=a==="custom"&&f?f:a,m=((l=this.props.conf)==null?void 0:l.data)||[],n=["#4a90d9","#52c41a","#ff7875","#ffc069","#b37feb","#36cfc9","#fadb14","#ff85c0"],r=["solid","dashed","solid","dashed","solid","dashed","solid","dashed"];let p={};try{const _=((c=e==null?void 0:e.seriesStyles)==null?void 0:c.value)||"";_&&_.trim()&&(p=JSON.parse(_))}catch(_){console.warn("[timeSeries] 解析系列样式配置失败:",_)}const o={};return m.forEach((_,E)=>{const j=_.fv||`series_${E}`,w=p[j]||{};o[j]={color:w.color||_.color||n[E%n.length],lineStyle:w.lineStyle||_.lineStyle||r[E%r.length]}}),{title:((g=e==null?void 0:e.title)==null?void 0:g.value)||"指标时序演变曲线",bgColor:((D=e==null?void 0:e.bgColor)==null?void 0:D.value)||"#ffffff",textColor:((b=e==null?void 0:e.textColor)==null?void 0:b.value)||"#333333",seriesConfig:o,showTimeRange:((k=e==null?void 0:e.showTimeRange)==null?void 0:k.value)!==!1,linkChannel:u}}getMockData(){var n;const e=((n=this.props.conf)==null?void 0:n.data)||[],a=[],f={};e.forEach(r=>{const p=r.fv||"series";f[p]=[]});const u=new Date,m={};e.forEach((r,p)=>{const o=r.fv||"series";m[o]=(p+1)*5+Math.random()*10});for(let r=23;r>=0;r--){const p=new Date(u.getTime()-r*60*60*1e3),o=p.toISOString().slice(0,19).replace("T"," ");a.push(o),e.forEach((d,t)=>{const l=d.fv||"series",c=p.getHours();let g=0;const D=t%3;if(D===0){const b=Math.sin((c/12+t*.5)*Math.PI)*10+(Math.random()-.5)*5;m[l]+=Math.max(0,b*.1),g=m[l]}else if(D===1){const b=t*2;(c+b)%24>=2&&(c+b)%24<=6?g=Math.random()*.8+t*.5:(c+b)%24>=14&&(c+b)%24<=18?g=Math.random()*.6+t*.3:Math.random()>.85&&(g=Math.random()*.3)}else{const b=t*Math.PI/3;g=m[l]+Math.sin((c/12+b)*Math.PI)*3+(Math.random()-.5)*2}f[l].push(Number(g.toFixed(2)))})}return{times:a,series:f}}getChartOption(){var p;const e=this.Style.value,a=((p=this.props.conf)==null?void 0:p.data)||[],u=this.chartData.times.length>0?this.chartData:this.getMockData(),m=[],n=[];a.forEach((o,d)=>{var E,j,w,z;if(!(this.selectionInitialized?this.selectedSeriesIndex.includes(d):!0))return;const l=o.fv||`series_${d}`,c=o.name||`指标${d+1}`,g=o.unit||"",D=g?`${c}(${g})`:c,b=((j=(E=e.seriesConfig)==null?void 0:E[l])==null?void 0:j.color)||"#4a90d9",k=((z=(w=e.seriesConfig)==null?void 0:w[l])==null?void 0:z.lineStyle)||"solid";m.push(D);const _=u.series[l]||[];n.push({name:D,type:"line",data:_,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:b,width:2,type:k},itemStyle:{color:b,borderColor:"#fff",borderWidth:1}})});const r={grid:{top:60,right:20,bottom:e.showTimeRange?70:50,left:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#ddd",borderWidth:1,textStyle:{color:e.textColor},formatter:o=>{if(!o||o.length===0)return"";let t=`<div style="margin-bottom: 4px;"><strong>${o[0].axisValue}</strong></div>`;return o.forEach(l=>{const c=l.value!==null&&l.value!==void 0?Number(l.value).toFixed(2):"--";t+=`<div style="margin: 2px 0;">
2
2
  <span style="display: inline-block; width: 10px; height: 10px; background: ${l.color}; border-radius: 50%; margin-right: 6px;"></span>
3
3
  ${l.seriesName}: <strong>${c}</strong>
4
4
  </div>`}),t}},legend:{show:!0,top:10,left:"center",data:m,textStyle:{color:e.textColor,fontSize:12},itemGap:30},xAxis:{type:"category",boundaryGap:!1,data:u.times,axisLine:{lineStyle:{color:"#e0e0e0"}},axisLabel:{color:e.textColor,fontSize:12,formatter:o=>{if(o&&o.includes(" ")){const[d,t]=o.split(" "),[l,c,g]=d.split("-"),[D,b]=t.split(":");return`${c}-${g} ${D}:${b}`}return o}},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{type:"value",name:"",nameTextStyle:{color:e.textColor,fontSize:12},axisLine:{show:!1},axisLabel:{color:e.textColor,fontSize:12},splitLine:{lineStyle:{color:"#f0f0f0",type:"dashed"}}},series:n};return e.showTimeRange&&(r.dataZoom=[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",xAxisIndex:0,bottom:10,height:18,filterMode:"none",borderColor:"#e5e7eb",backgroundColor:"#f3f4f6",fillerColor:"rgba(59, 130, 246, 0.18)",handleSize:14,handleStyle:{color:"#ffffff",borderColor:"#93c5fd",borderWidth:1,shadowBlur:2,shadowColor:"rgba(0,0,0,0.15)"},moveHandleSize:0,showDetail:!1,showDataShadow:!1}]),r}setSelectedSeriesIndex(e){this.selectionInitialized=!0,this.selectedSeriesIndex=Array.isArray(e)?[...e]:[]}isSelectionInitialized(){return this.selectionInitialized}setHistoryData(e){var d;if(!this.chartObj)return;const a=((d=this.props.conf)==null?void 0:d.data)||[];if(!Array.isArray(e==null?void 0:e.history)||!e.history.length)return;const f=t=>{var l,c,g;return String((g=(c=(l=t==null?void 0:t.time)!=null?l:t==null?void 0:t.datetime)!=null?c:t==null?void 0:t.start_time)!=null?g:"")},u=(t,l)=>{const c=t==null?void 0:t[l];return c==null||c===""?0:Number(c)};a[0];const m=Array.isArray(e.history[0])?e.history[0]:[],n=[],r={};a.forEach(t=>{const l=(t==null?void 0:t.fv)||"series";r[l]=[]});const p=t=>{const l=[];return t.forEach(c=>{const g=f(c);g&&l.push(g)}),l};let o=p(m);if(!o.length)for(let t=0;t<a.length;t++){const l=Array.isArray(e.history[t])?e.history[t]:[],c=p(l);if(c.length){o=c;break}}if(o.length&&(n.push(...o),a.forEach((t,l)=>{const c=(t==null?void 0:t.fv)||"series",g=Array.isArray(e.history[l])?e.history[l]:[],D=new Map;g.forEach(b=>{const k=f(b);k&&D.set(k,u(b,c))}),r[c]=o.map(b=>{var k;return(k=D.get(b))!=null?k:0})}),n.length>0)){this.chartData={times:n,series:r};const t=n[n.length-1];this.historyCache.set(t,{times:n,series:r}),S.value=[...new Set([...S.value,t])].slice(-200),O.value||(O.value=t),this.updateChart()}}setSocketData(e){var r;if(!this.chartObj||!e)return;const a=((r=this.props.conf)==null?void 0:r.data)||[],u=this.getSource()==="mosaic"?e.datetime:e.start_time;if(!u)return;let m=!1;const n={};if(a.forEach(p=>{const o=p.fv||"series",d=this.extractDataValue(e,o);d!=null&&(m=!0,n[o]=d)}),m){this.chartData.series||(this.chartData.series={}),this.chartData.times.push(u),a.forEach(d=>{const t=d.fv||"series";this.chartData.series[t]||(this.chartData.series[t]=[]),this.chartData.series[t].push(n[t]||0)}),this.chartData.times.length>100&&(this.chartData.times.shift(),Object.keys(this.chartData.series).forEach(d=>{this.chartData.series[d].length>0&&this.chartData.series[d].shift()}));const o=String(u);this.historyCache.set(o,{times:[...this.chartData.times],series:Object.fromEntries(Object.entries(this.chartData.series).map(([d,t])=>[d,[...t]]))}),S.value=[...new Set([...S.value,o])].slice(-200),O.value=o,this.updateChart()}}updateChart(e){if(!this.chartObj)return;const a=e||this.getChartOption();this.chartObj.setOption(a,!0)}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}init(){return H(this,null,function*(){yield U(y.prototype,this,"init").call(this),this.props.mode==="edit"&&this.chartData.times.length===0&&(this.chartData=this.getMockData())})}onLinkEvent(e){Y(e)}}const v=new y(h,"timeSeries");v.setupLifecycle();const x=v.getStyle(),q=v.getEchartId(),V=s.inject("session",null),N=s.computed(()=>{var e;return(((e=h.conf)==null?void 0:e.data)||[]).map((a,f)=>{const u=a.unit||"",m=a.name||`指标${f+1}`;return{label:u?`${m}(${u})`:m,value:f}})}),S=s.ref([]),O=s.ref(""),I=s.ref([]);s.watch(()=>{var i;return(i=h.conf)==null?void 0:i.data},i=>{if(i&&Array.isArray(i))if(!v.isSelectionInitialized())I.value=i.map((e,a)=>a),v.setSelectedSeriesIndex(I.value);else{const e=i.length;I.value=I.value.filter(a=>a>=0&&a<e),v.setSelectedSeriesIndex(I.value)}},{immediate:!0});const J=s.computed(()=>({backgroundColor:x.value.bgColor,color:x.value.textColor})),R=s.computed(()=>x.value.showTimeRange),B=s.computed(()=>{var u;if(!R.value)return"";const i=((u=v.chartData)==null?void 0:u.times)||[];if(!i.length)return"";const e=[...i].sort(),a=e[0],f=e[e.length-1];return`${a} ~ ${f}`}),K=i=>{v.getChartInstance()&&(v.setSelectedSeriesIndex(i),v.updateChart())},Z=i=>{var a;if(!i)return;const e=(a=v.historyCache)==null?void 0:a.get(i);e&&(v.chartData=e,v.updateChart())},Q=()=>{const i=v.getChartInstance();if(!i)return;const e=i.getDataURL({type:"png",pixelRatio:2,backgroundColor:x.value.bgColor}),a=document.createElement("a");a.download=`指标时序演变曲线_${new Date().getTime()}.png`,a.href=e,a.click()},A=s.ref(null);s.computed(()=>{var a,f;if(!A.value)return null;const e=((f=(((a=h.conf)==null?void 0:a.data)||[])[0])==null?void 0:f.fvDeviceName)||"deviceId";return A.value[e]||A.value.deviceId||A.value.name||"未知设备"});const X=i=>{var m;if(!V||!i||h.mode!=="preview")return;const e=v.getCurrentObjectId();if(e===i)return;console.log(`[timeSeries] 切换订阅: ${e} → ${i}`),v.setCurrentObjectId(i);const a=((m=h.conf)==null?void 0:m.data)||[],f=T(M({},h.conf),{data:a.map(n=>T(M({},n),{object_id:i}))}),u=re.formatRequest(f,h.uid,"timeSeries");V.registerComponent({id:h.conf.id,request:u,onUpdate:(n,r)=>{n==="realtime"?v.setSocketData(r):n==="history"&&v.setHistoryData(r)}})},Y=i=>{var d;if(!i||!i.topic||!i.payload){console.warn("[timeSeries] 收到格式错误的事件:",i);return}const{topic:e,payload:a}=i,f=x.value.linkChannel;if(e.channel!==f){console.warn(`[timeSeries] 频道不匹配: 期望 ${f}, 收到 ${e.channel}`);return}const{objectId:u,deviceId:m}=a,n=h.conf,r=(n==null?void 0:n.data)||[],p=(n==null?void 0:n.common)||{};if(r.length>0&&!(p!=null&&p.multiObject)){const t=G.getObjectId(p,p==null?void 0:p.useAlias,h.uid)||((d=r[0])==null?void 0:d.object_id),l=u||(a==null?void 0:a.object_id);if(t&&l&&String(t)!==String(l))return}console.log("[timeSeries] 收到联动事件:",{topic:{channel:e.channel,source:e.source,time:e.time,uniqueId:e.uniqueId},payload:a}),A.value=T(M({},a),{_topic:e});let o=null;u&&(o=r.find(t=>String(t.object_id)===String(u))),!o&&m&&(o=r.find(t=>t.deviceId===m||t.name===m)),o&&a?(console.log(`[timeSeries] 匹配 object_id=${u}`),L(a)):a&&L(a),u&&X(u)},L=i=>{var m,n,r;const e=v.getChartInstance();if(!e)return;const a=((m=h.conf)==null?void 0:m.data)||[],f=((n=a[0])==null?void 0:n.fv)||"cumulativePrecipitation",u=((r=a[1])==null?void 0:r.fv)||"realtimePrecipitation";if(i.data&&Array.isArray(i.data)){const p=[],o=[],d=[];i.data.forEach(t=>{t.time&&(p.push(t.time),o.push(t[f]||0),d.push(t[u]||0))}),e.setOption({xAxis:[{data:p}],series:[{data:o},{data:d}]})}};return s.watch(()=>h.conf,()=>{v.init()},{deep:!0}),s.onMounted(()=>{v.init()}),s.onUnmounted(()=>{v.cleanup()}),(i,e)=>{const a=$.ElOption,f=$.ElSelect,u=$.ElIcon,m=$.ElButton;return s.openBlock(),s.createElementBlock("div",{class:"time-series-wrapper",style:s.normalizeStyle(J.value)},[s.createElementVNode("div",ue,[s.createElementVNode("div",de,[s.createElementVNode("span",he,s.toDisplayString(s.unref(x).title),1),R.value&&B.value?(s.openBlock(),s.createElementBlock("span",fe,s.toDisplayString(B.value),1)):s.createCommentVNode("",!0),S.value.length?(s.openBlock(),s.createBlock(f,{key:1,modelValue:O.value,"onUpdate:modelValue":e[0]||(e[0]=n=>O.value=n),placeholder:"选择时间",size:"small",class:"time-select",onChange:Z},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(S.value,n=>(s.openBlock(),s.createBlock(a,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):s.createCommentVNode("",!0)]),s.createElementVNode("div",me,[s.createVNode(f,{modelValue:I.value,"onUpdate:modelValue":e[1]||(e[1]=n=>I.value=n),placeholder:"选择指标",size:"small",multiple:"","collapse-tags":"",class:"indicator-select",onChange:K},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(N.value,n=>(s.openBlock(),s.createBlock(a,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s.createVNode(m,{size:"small",onClick:Q,class:"export-btn"},{default:s.withCtx(()=>[s.createVNode(u,null,{default:s.withCtx(()=>[s.createVNode(s.unref(ce.Download))]),_:1}),e[2]||(e[2]=s.createTextVNode(" 导出图像 ",-1))]),_:1})])]),s.createElementVNode("div",pe,[s.createElementVNode("div",{id:s.unref(q),class:"chart-container"},null,8,ve)]),s.renderSlot(i.$slots,"default",{},void 0,!0)],4)}}})),xe=G._export_sfc(ke,[["__scopeId","data-v-2a38951d"]]);exports.default=xe;
@@ -34,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-BbXEpgom.js";
37
+ import { d as R, _ as qe } from "./index-DUL649KZ.js";
38
38
  import "element-plus";
39
- import { E as Ke } from "./EChartComponentBase-DJScukmS.js";
39
+ import { E as Ke } from "./EChartComponentBase-DCKFGbqb.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-DgSlSTUD.js"), C = yield new y.default().getHistoryData(n, "timeSeriesCurve");
304
+ const y = yield import("./history-BvM7EXsN.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-Bo49zvKb.cjs");require("element-plus");const Se=require("./EChartComponentBase-BwbycwwW.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-DqPjJP_E.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-Cm7hGuPj.cjs");require("element-plus");const Se=require("./EChartComponentBase-DM6aSCAR.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-BKLujk4W.cjs")),_=yield new C.default().getHistoryData(s,"timeSeriesCurve");if(S!==e){j=!1;return}_&&_.history&&Array.isArray(_.history)&&c.forEach((x,he)=>{if(!x.fv)return;const G=_.history[he];if(!Array.isArray(G))return;const fe=[...G].sort((D,E)=>new Date(D.time||D.datetime||"").getTime()-new Date(E.time||E.datetime||"").getTime()),ve=a?`${m}:${x.name}`:x.name,R=[],J=[];fe.forEach(D=>{const E=D.time||D.datetime,Q=D[x.fv];if(E&&Q!=null){const X=parseFloat(Q);isNaN(X)||(R.push(N.dayjs(E).format("MM-DD HH:mm:ss")),J.push(X))}a&&x.device&&D[x.device]&&i.deviceNameMap.set(m,String(D[x.device]))}),R.length>0&&i.realTimeData.set(ve,{times:R,values:J})})}catch(C){console.warn("[指标时序演变曲线] 历史数据获取失败:",C)}if(S!==e){j=!1;return}const f=i.getSource();i.subscribeBySource(f,m)}if(v?s.conf.options.points=u:delete s.conf.options.points,j=!1,S!==e)return;const r=i.getChartInstance();r&&r.setOption(i.getChartOption(),!0),o.registerComponent({id:l,request:null,onUpdate:(m,f)=>{S===e&&m==="realtime"&&i.setSocketData(f)}})}),ae=t.computed(()=>({background:I.value.bgColor,color:I.value.textColor})),ie=t.computed(()=>"指标时序演变曲线"),le=t.computed(()=>"导出图像"),re=t.computed(()=>"选择监测指标");s.mode==="edit"&&b.value.length>0&&(d.value=[(Y=b.value[0])==null?void 0:Y.name,(K=b.value[1])==null?void 0:K.name].filter(Boolean));const k=t.ref(!1),T=t.ref(null),H=t.ref(null),P=t.ref({}),ce=t.computed(()=>d.value.length===0?"":d.value.length===b.value.length?"全部":d.value.join("、")),z=t.computed(()=>{const n=b.value;return n.length>0&&n.every(e=>d.value.includes(e.name))}),ue=t.computed(()=>{const n=b.value,e=n.filter(o=>d.value.includes(o.name)).length;return e>0&&e<n.length}),de=()=>{k.value=!k.value,k.value&&me()};function me(){if(!T.value)return;const n=T.value.getBoundingClientRect();P.value={position:"fixed",top:`${n.bottom+4}px`,left:`${n.left}px`,zIndex:"9999"}}const W=n=>{const e=T.value,o=H.value;e&&!e.contains(n.target)&&o&&!o.contains(n.target)&&(k.value=!1)};t.onMounted(()=>{document.addEventListener("click",W)}),t.onBeforeUnmount(()=>{document.removeEventListener("click",W)});const F=()=>{z.value?d.value=[]:d.value=b.value.map(n=>n.name),Z()},U=n=>{const e=d.value.indexOf(n.name);e>-1?d.value.splice(e,1):d.value.push(n.name),Z()},Z=()=>{const n=i.getChartInstance();n&&n.setOption(i.getChartOption(),!0)};t.watch(()=>s.conf.data,n=>{var e,o;j||n&&n.length>0&&d.value.length===0&&(d.value=[(e=n[0])==null?void 0:e.name,(o=n[1])==null?void 0:o.name].filter(Boolean))},{immediate:!0});const pe=()=>{const n=i.getChartInstance();if(!n)return;const e=document.createElement("a");e.href=n.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`${h("component.crack.timeSeriesCurve")}_${N.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()};return(n,e)=>{const o=V.ElIcon,l=V.ElInput,c=V.ElCheckbox,p=V.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"mix-component crack-time-series",style:t.normalizeStyle(ae.value)},[t.createElementVNode("div",je,[t.createElementVNode("span",Me,"📉 "+t.toDisplayString(ie.value),1),t.createElementVNode("div",xe,[t.createElementVNode("div",{class:"metrics-select-wrapper",ref_key:"metricsWrapperRef",ref:T},[t.createVNode(l,{"model-value":ce.value,placeholder:re.value,size:"small",style:{width:"220px"},readonly:"",onClick:de},{suffix:t.withCtx(()=>[t.createVNode(o,{class:t.normalizeClass(["metrics-arrow",{"is-open":k.value}])},{default:t.withCtx(()=>[t.createVNode(t.unref(we.ArrowDown))]),_:1},8,["class"])]),_:1},8,["model-value","placeholder"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.withDirectives(t.createElementVNode("div",{class:"metrics-dropdown",style:t.normalizeStyle(P.value),ref_key:"metricsDropdownRef",ref:H},[t.createElementVNode("div",{class:"metrics-dropdown-item",onClick:t.withModifiers(F,["stop"])},[t.createVNode(c,{"model-value":z.value,indeterminate:ue.value,onChange:F},null,8,["model-value","indeterminate"]),e[0]||(e[0]=t.createElementVNode("span",{class:"item-label",style:{"font-weight":"bold"}},"全部",-1))]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,a=>(t.openBlock(),t.createElementBlock("div",{key:a.name,class:"metrics-dropdown-item",onClick:t.withModifiers(u=>U(a),["stop"])},[t.createVNode(c,{"model-value":d.value.includes(a.name),onChange:u=>U(a)},null,8,["model-value","onChange"]),t.createElementVNode("span",ke,t.toDisplayString(a.name),1)],8,Ie))),128))],4),[[t.vShow,k.value]])]))],512),t.createVNode(p,{size:"small",onClick:pe},{default:t.withCtx(()=>[t.createTextVNode("💾 "+t.toDisplayString(le.value),1)]),_:1})])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Ne),t.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),$e=N._export_sfc(Be,[["__scopeId","data-v-6b410ecb"]]);exports.default=$e;
@@ -1 +1 @@
1
- "use strict";var B=Object.defineProperty,V=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,F=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,T=Reflect.get;var z=(s,n,r)=>n in s?B(s,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[n]=r,w=(s,n)=>{for(var r in n||(n={}))N.call(n,r)&&z(s,r,n[r]);if(x)for(var r of x(n))M.call(n,r)&&z(s,r,n[r]);return s},O=(s,n)=>V(s,A(n));var _=(s,n,r)=>T(F(s),r,n);var k=(s,n,r)=>new Promise((d,u)=>{var h=p=>{try{a(r.next(p))}catch(f){u(f)}},v=p=>{try{a(r.throw(p))}catch(f){u(f)}},a=p=>p.done?d(p.value):Promise.resolve(p.value).then(h,v);a((r=r.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./index-Bo49zvKb.cjs");require("element-plus");const R=require("./EChartComponentBase-BwbycwwW.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-Cm7hGuPj.cjs");require("element-plus");const R=require("./EChartComponentBase-DM6aSCAR.cjs"),S=require("./installCanvasRenderer-CyhM1Qpl.cjs"),$=require("./install-DV5cEgNV.cjs"),j=require("./install-CltTFs4e.cjs"),D=require("./install-C8buXQPI.cjs"),q=require("./install-B1IEhhn3.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e切换%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-986.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M998.978161,99.5%20C999.333655,99.5%20999.621839,99.7881845%20999.621839,100.143678%20L999.621839,100.143678%20L999.621,100.971%20L1002.65632,100.971264%20C1002.9795,100.971264%201003.24705,101.209433%201003.29302,101.519824%20L1003.3,101.614943%20L1003.3,113.385057%20C1003.3,113.740551%201003.01182,114.028736%201002.65632,114.028736%20L1002.65632,114.028736%20L999.621,114.028%20L999.621839,114.856322%20C999.621839,115.179498%20999.38367,115.447047%20999.073279,115.493021%20L998.978161,115.5%20L991.621839,115.5%20C991.266345,115.5%20990.978161,115.211815%20990.978161,114.856322%20L990.978161,114.856322%20L990.978,114.028%20L987.943678,114.028736%20C987.620502,114.028736%20987.352953,113.790567%20987.306979,113.480176%20L987.3,113.385057%20L987.3,101.614943%20C987.3,101.259449%20987.588185,100.971264%20987.943678,100.971264%20L987.943678,100.971264%20L990.978,100.971%20L990.978161,100.143678%20C990.978161,99.8205021%20991.21633,99.5529535%20991.526721,99.5069791%20L991.621839,99.5%20Z%20M998.334483,100.786788%20L992.265517,100.786788%20L992.265517,114.212076%20L998.334483,114.212076%20L998.334483,100.786788%20Z%20M1002.01264,102.258053%20L999.621839,102.258053%20L999.621839,112.740811%20L1002.01264,112.740811%20L1002.01264,102.258053%20Z%20M990.978161,102.258053%20L988.587356,102.258053%20L988.587356,112.740811%20L990.978161,112.740811%20L990.978161,102.258053%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e切换%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-986.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M998.978161,99.5%20C999.333655,99.5%20999.621839,99.7881845%20999.621839,100.143678%20L999.621839,100.143678%20L999.621,100.971%20L1002.65632,100.971264%20C1002.9795,100.971264%201003.24705,101.209433%201003.29302,101.519824%20L1003.3,101.614943%20L1003.3,113.385057%20C1003.3,113.740551%201003.01182,114.028736%201002.65632,114.028736%20L1002.65632,114.028736%20L999.621,114.028%20L999.621839,114.856322%20C999.621839,115.179498%20999.38367,115.447047%20999.073279,115.493021%20L998.978161,115.5%20L991.621839,115.5%20C991.266345,115.5%20990.978161,115.211815%20990.978161,114.856322%20L990.978161,114.856322%20L990.978,114.028%20L987.943678,114.028736%20C987.620502,114.028736%20987.352953,113.790567%20987.306979,113.480176%20L987.3,113.385057%20L987.3,101.614943%20C987.3,101.259449%20987.588185,100.971264%20987.943678,100.971264%20L987.943678,100.971264%20L990.978,100.971%20L990.978161,100.143678%20C990.978161,99.8205021%20991.21633,99.5529535%20991.526721,99.5069791%20L991.621839,99.5%20Z%20M998.334483,100.786788%20L992.265517,100.786788%20L992.265517,114.212076%20L998.334483,114.212076%20L998.334483,100.786788%20Z%20M1002.01264,102.258053%20L999.621839,102.258053%20L999.621839,112.740811%20L1002.01264,112.740811%20L1002.01264,102.258053%20Z%20M990.978161,102.258053%20L988.587356,102.258053%20L988.587356,112.740811%20L990.978161,112.740811%20L990.978161,102.258053%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",H=["onClick"],U=["id"],P={class:"progress-wrap"},G=["title"],J={DEFAULT_ICON:Z,ACTIVE_ICON:I,NAME_CN:"切换",NAME_EN:"Toggle Button",ORDER:2,PLATFORM:["pc","screen","mobile"]},K={titleSize:14,tabFontSize:{value:14,type:"number",label:"component.radar.tabFontSize",min:10,max:32},textSize:12,barHeight:8,textColor:"#a8b4d9",bgColor:"#0a1635",barColor:"#1e3a5f",tabColor:"#1e3a5f",activeBgColor:"#6b7fd9",borderColor:"#1e3a5f",activeBorder:"#6b7fd9",radiusSize:8,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},tags:{value:[{label:"TAB1",flag:["S01","S02","S03"]},{label:"TAB2",flag:["S02","S03","S04"]}],type:"tags",label:"component.radar.tagsSetting"}},Q=[{name:"参数一",color:"#4162ff",fv:"S01",object_id:"",value:1},{name:"参数二",color:"#3bbc6a",fv:"S02",object_id:"",value:2},{name:"参数三",color:"#e24359",fv:"S03",object_id:"",value:3},{name:"参数四",color:"#ff8b41",fv:"S04",object_id:"",value:4}],W=["name","fv","object_id","color","value"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},ee={DEFAULT:J,OPTIONS:K,DATA:Q,PARAMS:W,SOURCE:X,COMMON:Y},te=e.defineComponent(O(w({},ee),{__name:"toggleBtn",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){S.use([$.install,j.install,S.install,D.install,S.install$1,q.install]);const n=s,r=e.ref(0),d=e.reactive({indicator:[],series:[]}),u=e.ref(0);class h extends R.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),tabFontSize:this.getOptionValue("tabFontSize",14),barHeight:this.getOptionValue("barHeight",8),textColor:this.getOptionValue("textColor","#111"),tabColor:this.getOptionValue("tabColor","#f5f5f5"),activeBgColor:this.getOptionValue("activeBgColor","#4162ff"),borderColor:this.getOptionValue("borderColor","#e5e5e5"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),type:this.getOptionValue("type","none"),tags:this.getOptionValue("tags",[])}}getChartOption(){var t;const l=this.Style.value,{name:o}=this.props.conf;return{radar:{shape:l.type,axisNameGap:10,indicator:d.indicator,center:["50%","55%"],radius:70,axisLine:{lineStyle:{type:"dashed",color:l.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor}},splitArea:{show:!0,areaStyle:{color:["transparent"]}},axisName:{fontSize:l.textSize,color:l.textColor}},series:[{name:o!=null?o:"",type:"radar",data:(t=d.series)!=null?t:[],areaStyle:{},itemStyle:{color:l.activeBgColor}}]}}init(){return k(this,null,function*(){yield _(h.prototype,this,"init").call(this),e.nextTick(()=>{this.applyChartOption(!0),f(u.value)})})}setHistoryData(l){if(!l)return;const{data:o}=this.props.conf;Array.isArray(l.history)&&Array.isArray(o)&&o.length?o.forEach((t,c)=>{var L,m,y;if(!t)return;const i=(m=(L=l.history)==null?void 0:L[c])==null?void 0:m[0];if(!i||typeof i!="object")return;const g=(y=t==null?void 0:t.fv)!=null?y:t==null?void 0:t.item_fv;if(g){const C=i==null?void 0:i[g];C!=null&&(t.value=C)}}):Array.isArray(l)&&l.forEach((t,c)=>{var i,g;o[c]&&(o[c].value=(g=(i=t.data)==null?void 0:i[0])!=null?g:0)}),f(u.value)}setSocketData(l){if(!l)return;const{data:o}=this.props.conf;o.forEach(t=>{const c=this.extractDataValue(l,t.fv);t.value=c!=null?c:0}),f(u.value)}refreshChart(){var o;const l=this.getChartOption();(o=this.chartObj)==null||o.setOption(l,!0)}}const v=new h(n,"toggleBtn");v.setupLifecycle();const a=v.getStyle(),p=v.getEchartId(),f=b=>{const l=a.value,{data:o,name:t}=n.conf;u.value=Number(b),d.indicator=[],d.series=[];const c={name:t,value:[]};r.value=Math.max(...o.map(i=>i.value||0)),o.forEach(i=>{var g,L;(L=(g=l.tags[u.value])==null?void 0:g.flag)!=null&&L.includes(i.fv)&&(d.indicator.push({idx:b,name:i.name,max:r.value,value:i.value,min:0,color:i.color}),c.value.push(i.value))}),d.series.push(c),v.refreshChart()};return(b,l)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(a).bgColor,borderRadius:`${e.unref(a).radiusSize}px`})},[e.createElementVNode("div",{class:"toggle-wrap",style:e.normalizeStyle({borderTopLeftRadius:`${e.unref(a).radiusSize}px`,borderTopRightRadius:`${e.unref(a).radiusSize}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).tags,(o,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["btn-item",{active:u.value===t}]),style:e.normalizeStyle({backgroundColor:u.value===t?e.unref(a).activeBgColor:e.unref(a).tabColor,color:u.value===t?"#fff":e.unref(a).textColor,fontSize:`${e.unref(a).tabFontSize}px`,borderTopLeftRadius:t===0?`${e.unref(a).radiusSize}px`:"0",borderTopRightRadius:t===e.unref(a).tags.length-1?`${e.unref(a).radiusSize}px`:"0"}),onClick:c=>f(t)},e.toDisplayString(o.label),15,H))),128))],4),e.createElementVNode("div",{class:"radar-wrap",style:e.normalizeStyle({color:e.unref(a).textColor,fontSize:`${e.unref(a).textSize}px`})},[e.createElementVNode("div",{id:e.unref(p),class:"radar-chart"},null,8,U),e.createElementVNode("div",P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.indicator,(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"bar-item-crosswise",key:t},[e.createElementVNode("div",{class:"bar-title",title:o.name,style:e.normalizeStyle({color:e.unref(a).textColor})},e.toDisplayString(o.name),13,G),e.createElementVNode("div",{class:"bar",style:e.normalizeStyle({backgroundColor:e.unref(a).barColor,height:`${e.unref(a).barHeight}px`})},[e.createElementVNode("div",{class:"progress",style:e.normalizeStyle({backgroundColor:o.color||e.unref(E.COLORS)[t],width:(o.value/r.value*100).toFixed(2)+"%"})},null,4)],4),e.createElementVNode("div",{class:"bar-value",style:e.normalizeStyle({color:e.unref(a).textColor})},e.toDisplayString(o.value||0),5)]))),128))])],4),e.renderSlot(b.$slots,"default",{},void 0,!0)],4))}})),oe=E._export_sfc(te,[["__scopeId","data-v-f375cb2d"]]);exports.default=oe;
@@ -27,9 +27,9 @@ var E = (n, i, a) => new Promise((u, d) => {
27
27
  o((a = a.apply(n, i)).next());
28
28
  });
29
29
  import { defineComponent as H, ref as M, reactive as U, openBlock as m, createElementBlock as S, normalizeStyle as v, unref as l, createElementVNode as h, Fragment as T, renderList as V, normalizeClass as P, toDisplayString as w, renderSlot as G, nextTick as q } from "vue";
30
- import { C as J, _ as K } from "./index-BbXEpgom.js";
30
+ import { C as J, _ as K } from "./index-DUL649KZ.js";
31
31
  import "element-plus";
32
- import { E as Q } from "./EChartComponentBase-DJScukmS.js";
32
+ import { E as Q } from "./EChartComponentBase-DCKFGbqb.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 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-Bo49zvKb.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-Cm7hGuPj.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 { l as He, d as I, _ as Qe } from "./index-BbXEpgom.js";
23
+ import { l as He, d as I, _ as Qe } from "./index-DUL649KZ.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 = {