mixdashboards 1.0.78 → 1.0.80

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 (336) hide show
  1. package/dist/{BaseComponent-Dwhb9Mde.js → BaseComponent-CEp8NJiX.js} +8 -8
  2. package/dist/{BaseComponent-bzb58Hhs.cjs → BaseComponent-DaYX7dUF.cjs} +1 -1
  3. package/dist/{EChartComponentBase-BmS2KONN.js → EChartComponentBase-B-VNAC8K.js} +2 -2
  4. package/dist/{EChartComponentBase-CMN_pOMr.cjs → EChartComponentBase-C2sxqwSE.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-FtvC-aXY.js → EmergencyPlanPanel-CwWvSELn.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-CVusdpDo.cjs → EmergencyPlanPanel-Dcj6mNDZ.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CrYylrTC.cjs → HistoryPlanDialog-CHHKFCEb.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-DliuSi0p.js → HistoryPlanDialog-MDXWiel6.js} +1 -1
  9. package/dist/{MonitoringMap-CBnv001f.cjs → MonitoringMap-CfcXyLMN.cjs} +1 -1
  10. package/dist/{MonitoringMap-DB3R5nAJ.js → MonitoringMap-Disr1Wm4.js} +2 -2
  11. package/dist/{UniverSheet-DFyIjurx.js → UniverSheet-BcuvQ33A.js} +2 -2
  12. package/dist/{UniverSheet-jy9kOyPN.cjs → UniverSheet-M8Z5JVxm.cjs} +1 -1
  13. package/dist/{accelerationChart-Ceo371ch.cjs → accelerationChart-DoqDRcpd.cjs} +1 -1
  14. package/dist/{accelerationChart-Q_Q_QlU7.js → accelerationChart-Dq5_6weP.js} +14 -14
  15. package/dist/{actionItem-BzMI_4-S.js → actionItem-BryBezOd.js} +2 -2
  16. package/dist/{actionItem-DB74CPi2.cjs → actionItem-JVOxJr61.cjs} +1 -1
  17. package/dist/{alarmLevelChart-CxmiBIKh.cjs → alarmLevelChart-C4_IhtlF.cjs} +1 -1
  18. package/dist/{alarmLevelChart-Bp3SLCMe.js → alarmLevelChart-DUysIMGJ.js} +2 -2
  19. package/dist/{alertTable-B1w_i0VB.cjs → alertTable-DWQGvAmY.cjs} +1 -1
  20. package/dist/{alertTable-DXzTm7mA.js → alertTable-nLYwM6ix.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-Dfanalux.js → aliasObjectSelectorDemo-Cgnw6vkp.js} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-CRuq8zju.cjs → aliasObjectSelectorDemo-DdAJ_krx.cjs} +1 -1
  23. package/dist/{annualRainfallChart-DEeyac7q.cjs → annualRainfallChart-BVoSl6rW.cjs} +1 -1
  24. package/dist/{annualRainfallChart-D4Rhc84p.js → annualRainfallChart-C4P7sAvp.js} +2 -2
  25. package/dist/{aqi-BzCTxj0q.js → aqi-BZTi1MAr.js} +2 -2
  26. package/dist/{aqi-CBknBfTF.cjs → aqi-jvYPQWm2.cjs} +1 -1
  27. package/dist/{aqiIndass-CUs24FxP.cjs → aqiIndass-C028TDT1.cjs} +1 -1
  28. package/dist/{aqiIndass-BJGsJsmz.js → aqiIndass-CZfEX0GU.js} +18 -18
  29. package/dist/{areaDeformCurve-bSAkB3Pt.js → areaDeformCurve-B0DUtSgh.js} +2 -2
  30. package/dist/{areaDeformCurve-B8VGdoKK.cjs → areaDeformCurve-BXhSeaoy.cjs} +1 -1
  31. package/dist/{arrayCard-BkD5sytz.js → arrayCard-BlEclzhU.js} +2 -2
  32. package/dist/{arrayCard-kh5WRweD.cjs → arrayCard-CH1c-fdy.cjs} +1 -1
  33. package/dist/{audio-BTrvZwCy.js → audio-DssRoD8a.js} +2 -2
  34. package/dist/{audio-DwJN2gca.cjs → audio-kCcoKcES.cjs} +1 -1
  35. package/dist/{bar-DYIb4143.js → bar-C19ODKbU.js} +2 -2
  36. package/dist/{bar-DsyyzcxB.cjs → bar-Dijd0sQu.cjs} +1 -1
  37. package/dist/{bmp-DbEyuBZw.cjs → bmp-Bxw4TwUB.cjs} +1 -1
  38. package/dist/{bmp-Dt3mSkAr.js → bmp-DUTgixKN.js} +2 -2
  39. package/dist/{box-D7RsK5Qp.js → box-B44mc692.js} +2 -2
  40. package/dist/{box--u3HQFj9.cjs → box-CeE915Ww.cjs} +1 -1
  41. package/dist/{chartConfigPanel-DybQRqg6.cjs → chartConfigPanel-0O_o7wlV.cjs} +1 -1
  42. package/dist/{chartConfigPanel-CD-csrX-.js → chartConfigPanel-w0x44bWL.js} +1 -1
  43. package/dist/circleBar-BJoBZfyx.js +310 -0
  44. package/dist/circleBar-CVYAERg4.cjs +4 -0
  45. package/dist/{clock-Cj0HsizY.js → clock-C5FWG3xy.js} +2 -2
  46. package/dist/{clock-Dc9jgxHT.cjs → clock-CFE1WkOQ.cjs} +1 -1
  47. package/dist/{clt-uJT1jgHk.js → clt-Cycf8W0K.js} +2 -2
  48. package/dist/{clt-CBbtQxMc.cjs → clt-DEzN6BGU.cjs} +1 -1
  49. package/dist/{cmc-JJ6eTxB3.js → cmc-C9PYd5ym.js} +2 -2
  50. package/dist/{cmc-CeTCKLBx.cjs → cmc-DR3T47y4.cjs} +1 -1
  51. package/dist/{cmp-CGZ_2BdE.cjs → cmp-DsKyXUHa.cjs} +1 -1
  52. package/dist/{cmp-D9qlHJoW.js → cmp-Dsc6RprW.js} +2 -2
  53. package/dist/{conclusionCard-BsLeh3yq.js → conclusionCard-BGUQzWMI.js} +2 -2
  54. package/dist/{conclusionCard-CwLwj3zj.cjs → conclusionCard-sUyiTSA6.cjs} +1 -1
  55. package/dist/{controlList-l2ZYM6m5.cjs → controlList-B6EasOKV.cjs} +1 -1
  56. package/dist/{controlList-CYNS0ArB.js → controlList-DeLBnY0K.js} +2 -2
  57. package/dist/{controlRecordList-N79_cTON.cjs → controlRecordList-D63e4vQn.cjs} +1 -1
  58. package/dist/{controlRecordList-BZmCvISO.js → controlRecordList-DCz4Xt9n.js} +2 -2
  59. package/dist/{controlRecordListAPP-aDj520mp.js → controlRecordListAPP-D0cUYXLY.js} +2 -2
  60. package/dist/{controlRecordListAPP-DOzMDV4x.cjs → controlRecordListAPP-pfRdnvv1.cjs} +1 -1
  61. package/dist/{crd-bm_BHuoV.js → crd-B4ZnlIJq.js} +2 -2
  62. package/dist/{crd-CV4kMUTB.cjs → crd-DRUEk13j.cjs} +1 -1
  63. package/dist/{ctrBtn-DYceHTAq.js → ctrBtn-5odXmYf7.js} +17 -17
  64. package/dist/{ctrBtn-Cs6ZmfyJ.cjs → ctrBtn-Bm79a5Sj.cjs} +1 -1
  65. package/dist/{ctrSet-B6PlTSBE.js → ctrSet-B1dpatKF.js} +33 -33
  66. package/dist/ctrSet-BMnG-OkK.cjs +1 -0
  67. package/dist/{ctrSwitch-B9lHJgQn.cjs → ctrSwitch-A9LVcYIN.cjs} +1 -1
  68. package/dist/{ctrSwitch-E0FM_4f2.js → ctrSwitch-C5aPCuez.js} +39 -39
  69. package/dist/{dataManagement-bKmkV2VY.cjs → dataManagement-8NQDTifq.cjs} +1 -1
  70. package/dist/{dataManagement-BAHa-OHl.js → dataManagement-Dqf-T0x4.js} +2 -2
  71. package/dist/{dataReport-B60Rb4sb.js → dataReport-CT4_ly92.js} +2 -2
  72. package/dist/{dataReport-JcrjpK_j.cjs → dataReport-CiB4XAKO.cjs} +1 -1
  73. package/dist/{dataTable-BmvewFlr.js → dataTable-BWc0XycI.js} +1 -1
  74. package/dist/{dataTable-CX6uktOu.cjs → dataTable-BiyK3INj.cjs} +1 -1
  75. package/dist/{datetime-BPM_lGiY.cjs → datetime-BVigJCWY.cjs} +1 -1
  76. package/dist/{datetime-DARBbZJx.js → datetime-Du0fBPZ3.js} +2 -2
  77. package/dist/{deepClusterSlipSurface-BF77Vp7G.js → deepClusterSlipSurface-BJBW_lMx.js} +2 -2
  78. package/dist/{deepClusterSlipSurface-IywdiDlA.cjs → deepClusterSlipSurface-Dh-nEUwt.cjs} +1 -1
  79. package/dist/{deepDataMatrix-sRXkGqdm.cjs → deepDataMatrix-CGCLKdVW.cjs} +1 -1
  80. package/dist/{deepDataMatrix--zgQoWer.js → deepDataMatrix-CMJMtqVu.js} +2 -2
  81. package/dist/{deepDisplacement3D-BYt49pzj.js → deepDisplacement3D-BdzBAOZZ.js} +2 -2
  82. package/dist/{deepDisplacement3D-BET8Ftuc.cjs → deepDisplacement3D-DcwFkrri.cjs} +1 -1
  83. package/dist/{deepDisplacementChart-BGBhipUx.js → deepDisplacementChart-Be9lxAWP.js} +25 -25
  84. package/dist/{deepDisplacementChart-D7loYUI5.cjs → deepDisplacementChart-Ct7iZvof.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-B2zPpsk6.js → deepDisplacementChart-D_dq-XPI.js} +16 -16
  86. package/dist/{deepDisplacementChart-BuuM485C.cjs → deepDisplacementChart-EjGt1LJp.cjs} +1 -1
  87. package/dist/{deepDisplacementView-Bwk9p_Qc.js → deepDisplacementView-1eSVkmqk.js} +1 -1
  88. package/dist/{deepDisplacementView-CTBH3IxP.cjs → deepDisplacementView-VyO91qP0.cjs} +1 -1
  89. package/dist/{deepNodeTemperatureChart-BqTigCTs.js → deepNodeTemperatureChart-BUvEk5T9.js} +2 -2
  90. package/dist/{deepNodeTemperatureChart-CTLHLf0w.cjs → deepNodeTemperatureChart-DPnQPYKr.cjs} +1 -1
  91. package/dist/{deepTangentAngleChart-5oxzMpMF.js → deepTangentAngleChart-5mJOFDsK.js} +2 -2
  92. package/dist/{deepTangentAngleChart-CHxB8OFL.cjs → deepTangentAngleChart-hJHt5aoD.cjs} +1 -1
  93. package/dist/{deepTemperatureField-Cr6YbuR_.cjs → deepTemperatureField-BAS3omfm.cjs} +1 -1
  94. package/dist/{deepTemperatureField-Bhk89D3D.js → deepTemperatureField-DlrB4dKP.js} +3 -3
  95. package/dist/{deepTrendChart-CAbdVR8d.js → deepTrendChart-CLNAoy8P.js} +2 -2
  96. package/dist/{deepTrendChart-Ch94j4W9.cjs → deepTrendChart-DAM_Ds5z.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-C5ODwFsY.js → deviceOnlineStatus-1UHPkOr2.js} +2 -2
  98. package/dist/{deviceOnlineStatus-DxsTb4Vb.cjs → deviceOnlineStatus-D_oS1F9j.cjs} +1 -1
  99. package/dist/{deviceStatus-DPfOQCSX.js → deviceStatus-CcPjyhrB.js} +10 -10
  100. package/dist/{deviceStatus-CjFTpCaU.cjs → deviceStatus-DdFB86J7.cjs} +1 -1
  101. package/dist/{displacementDataTable-DG36VWok.js → displacementDataTable-B7x4ogcW.js} +9 -9
  102. package/dist/{displacementDataTable-BIqBEkul.cjs → displacementDataTable-NlqtVyYg.cjs} +1 -1
  103. package/dist/{displacementTrajectoryChart-DRltcPfa.cjs → displacementTrajectoryChart-BRy93sPt.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-Cpmj24Jn.js → displacementTrajectoryChart-C10Uroic.js} +11 -11
  105. package/dist/{displacementTrendChart-DpD79zii.cjs → displacementTrendChart-B5NRRQzD.cjs} +1 -1
  106. package/dist/{displacementTrendChart-D1yfRFQb.js → displacementTrendChart-D-_Ls7J4.js} +11 -11
  107. package/dist/{dxf-C_9cH0WU.cjs → dxf-B7DB_30i.cjs} +1 -1
  108. package/dist/{dxf-zbCakRgh.js → dxf-CqFFtWRq.js} +2 -2
  109. package/dist/{dzc-CfPVaIgj.js → dzc-BjA7dXWS.js} +2 -2
  110. package/dist/{dzc-CejqHneE.cjs → dzc-DT6Chp2Q.cjs} +1 -1
  111. package/dist/{emergencyPlan-dEwML5xC.cjs → emergencyPlan-DkErPudJ.cjs} +1 -1
  112. package/dist/{emergencyPlan-LbeRH-P9.js → emergencyPlan-IJ0wIcFl.js} +3 -3
  113. package/dist/{evn-DsD_MKQd.js → evn-DeaQXEPO.js} +2 -2
  114. package/dist/{evn-BvgQ3o3T.cjs → evn-Dh71UuO9.cjs} +1 -1
  115. package/dist/{evolutionChart-B4C9qB3I.js → evolutionChart-C3oCrBf3.js} +3 -3
  116. package/dist/{evolutionChart-Dt5-xRsy.cjs → evolutionChart-C7Ae0ZiT.cjs} +1 -1
  117. package/dist/{fileViewer-B0LdLy2P.js → fileViewer-8Us72XkI.js} +2 -2
  118. package/dist/{fileViewer-DZIREgL0.cjs → fileViewer-ERPHU_Zd.cjs} +1 -1
  119. package/dist/{filterBar-D_jcuqwP.cjs → filterBar-CW7bn1-p.cjs} +1 -1
  120. package/dist/{filterBar-Bt6w4_xK.js → filterBar-D9xz6-NL.js} +2 -2
  121. package/dist/{fireCombustionCurve-CHRd1nSv.cjs → fireCombustionCurve-CqiMMU_8.cjs} +1 -1
  122. package/dist/{fireCombustionCurve-C2rWY89D.js → fireCombustionCurve-DIUwJpXU.js} +3 -3
  123. package/dist/{fireFilterBar-CpwHRisZ.js → fireFilterBar-BG-StguC.js} +2 -2
  124. package/dist/{fireFilterBar-DX8qH1rr.cjs → fireFilterBar-Beqb_Dns.cjs} +1 -1
  125. package/dist/{fireHistoryTable-B38M6w5w.cjs → fireHistoryTable-CRzrvuo8.cjs} +1 -1
  126. package/dist/{fireHistoryTable-DcSgHt5q.js → fireHistoryTable-ChqoTAYc.js} +2 -2
  127. package/dist/{gag-qDNPdFJu.cjs → gag-Bx9QvvT7.cjs} +1 -1
  128. package/dist/{gag-BErw_nsf.js → gag-Cf3zHBXx.js} +2 -2
  129. package/dist/{gasStationList-BREZbC_k.js → gasStationList--rmQJ0jp.js} +2 -2
  130. package/dist/{gasStationList-NhJa4GO6.cjs → gasStationList-BjyCsqqM.cjs} +1 -1
  131. package/dist/{geo3dViewer-D9uSt0up.cjs → geo3dViewer-Ch6d1IMg.cjs} +1 -1
  132. package/dist/{geo3dViewer-zAN1eIza.js → geo3dViewer-mDKnyJMa.js} +3 -3
  133. package/dist/{glbModel-C4FiDMM5.cjs → glbModel-DAofoZCs.cjs} +1 -1
  134. package/dist/{glbModel-i6HvK0m8.js → glbModel-aQXnlO7p.js} +2 -2
  135. package/dist/{globalObjectSelector-BrVwJEgp.js → globalObjectSelector-AF67vBmT.js} +1 -1
  136. package/dist/{globalObjectSelector-CR74psMa.cjs → globalObjectSelector-C2t3Jtm6.cjs} +1 -1
  137. package/dist/{gnssFilterBar-BkfBQWXF.cjs → gnssFilterBar-4JNWA-CR.cjs} +1 -1
  138. package/dist/{gnssFilterBar-BEHXIIKI.js → gnssFilterBar-BgpevrmL.js} +2 -2
  139. package/dist/{gnssHistoryTable-DDWGE_ge.js → gnssHistoryTable-De2cn5dP.js} +2 -2
  140. package/dist/{gnssHistoryTable-CQ-7ESYj.cjs → gnssHistoryTable-xnzV8l_Q.cjs} +1 -1
  141. package/dist/{gnssMapView-C9iRAzym.js → gnssMapView-C9IqBqEw.js} +4 -4
  142. package/dist/{gnssMapView-P6ed3l_W.cjs → gnssMapView-D9V5XNlw.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-CIZnF7VA.cjs → gnssSectionProfile-CxXhhOCd.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-BIqyABEf.js → gnssSectionProfile-HfiKe0-s.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-BgIM5U-H.cjs → gnssTimeSeriesChart-C4onoU3C.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-DqH9JFBF.js → gnssTimeSeriesChart-CvoTHHqa.js} +2 -2
  147. package/dist/{gnssXYTrajectory-CH8864n6.cjs → gnssXYTrajectory-Dug2OwRw.cjs} +1 -1
  148. package/dist/{gnssXYTrajectory-BviUjxG9.js → gnssXYTrajectory-g_pRuL75.js} +2 -2
  149. package/dist/{grd-BhpBxrpa.cjs → grd-CYg3e2B0.cjs} +1 -1
  150. package/dist/{grd-DfkGlcW6.js → grd-DqKnlgw_.js} +20 -20
  151. package/dist/{grdIndass-ByznFwzc.js → grdIndass-CUE7Gb-W.js} +2 -2
  152. package/dist/{grdIndass-DhMfHz31.cjs → grdIndass-D3wFyDpD.cjs} +1 -1
  153. package/dist/{grg-CVBoetQY.js → grg-BpNY4dsd.js} +6 -6
  154. package/dist/{grg-uzBlEm_K.cjs → grg-Cu7muu3_.cjs} +1 -1
  155. package/dist/{gridview-Dt3i1t5d.js → gridview-BLabvs9I.js} +2 -2
  156. package/dist/{gridview-CyXCqWKq.cjs → gridview-BUsfJz0o.cjs} +1 -1
  157. package/dist/{groundwaterFilterBar-BbS81e9a.js → groundwaterFilterBar-BQFayVwl.js} +2 -2
  158. package/dist/{groundwaterFilterBar-C4xCPqa_.cjs → groundwaterFilterBar-f9qXTkoQ.cjs} +1 -1
  159. package/dist/{groundwaterProfileChart-DvjFvCm5.cjs → groundwaterProfileChart-AN7OLcKv.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-BBPFrt5W.js → groundwaterProfileChart-pVEgD-ec.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-Cb3xlM78.cjs → groundwaterTimeCurve-BoJnmOYq.cjs} +1 -1
  162. package/dist/{groundwaterTimeCurve-CKlvc2nQ.js → groundwaterTimeCurve-DRoycHDe.js} +3 -3
  163. package/dist/{groupCard-BVdjzdqF.cjs → groupCard-Dq6TXOZt.cjs} +1 -1
  164. package/dist/{groupCard-BBzDl9uX.js → groupCard-fPMXeW8L.js} +2 -2
  165. package/dist/{headerBar-B5Z8UviF.cjs → headerBar-Da-XmgLi.cjs} +1 -1
  166. package/dist/{headerBar-Dty08mHR.js → headerBar-ap2M954P.js} +2 -2
  167. package/dist/{history-yI8XiwXi.cjs → history-3PgmioqY.cjs} +1 -1
  168. package/dist/{history-TkSKA8F1.js → history-BC8RESyu.js} +1 -1
  169. package/dist/{index-YNdVib_6.js → index-CqVPeq0-.js} +455 -453
  170. package/dist/index-OgmTZiO-.cjs +612 -0
  171. package/dist/{insarDeformChart-C9UkWIL9.js → insarDeformChart-CKBcUJCV.js} +2 -2
  172. package/dist/{insarDeformChart-Dr9Ve1vY.cjs → insarDeformChart-DABg6b8J.cjs} +1 -1
  173. package/dist/{insarImageViewer-DAKBn2vV.cjs → insarImageViewer-9FpJDh1K.cjs} +1 -1
  174. package/dist/{insarImageViewer-DZbq2xch.js → insarImageViewer-C1XBU0YL.js} +2 -2
  175. package/dist/{kds-BkH8cJCu.cjs → kds-B04fJsat.cjs} +1 -1
  176. package/dist/{kds-__I8-o5i.js → kds-D6TYb16w.js} +21 -21
  177. package/dist/{kpiCard-fRfv1QPb.cjs → kpiCard-Bfi2W9cH.cjs} +1 -1
  178. package/dist/{kpiCard-BzuF0qdE.js → kpiCard-D5S1M8Rs.js} +2 -2
  179. package/dist/{landslideMap-zD8SU2Lh.cjs → landslideMap-CWmIK6ca.cjs} +1 -1
  180. package/dist/{landslideMap-D84pku4Y.js → landslideMap-DXyIahAi.js} +3 -3
  181. package/dist/{landslideWarning-Cq-di-hN.cjs → landslideWarning-CPwRDf3u.cjs} +1 -1
  182. package/dist/{landslideWarning-0mckvEoZ.js → landslideWarning-DaI_F3dC.js} +5 -5
  183. package/dist/{layerTabs-COzqQ9mn.js → layerTabs-DJaWhtYa.js} +2 -2
  184. package/dist/{layerTabs-C2zq6a5M.cjs → layerTabs-DfVZUJvC.cjs} +1 -1
  185. package/dist/{leaflet-src-2tPn7QVH.js → leaflet-src-DU74PJcX.js} +1 -1
  186. package/dist/{leaflet-src-D8MF2j44.cjs → leaflet-src-gpxoqh6Y.cjs} +1 -1
  187. package/dist/{lerc-BHcVhBOn.cjs → lerc-ACN_ZV5f.cjs} +1 -1
  188. package/dist/{lerc-BCmG0CMS.js → lerc-ZmeF7NhV.js} +2 -2
  189. package/dist/{lin-niA_T9Ql.cjs → lin-BqSPUdmV.cjs} +1 -1
  190. package/dist/{lin-CQ6TCBCr.js → lin-DXM61jXV.js} +2 -2
  191. package/dist/{linIndass-J9rdji6E.js → linIndass-DQZjD3lL.js} +12 -12
  192. package/dist/{linIndass-nZx16Vos.cjs → linIndass-jqzXVoXv.cjs} +1 -1
  193. package/dist/{lst-DieyrYCh.js → lst-Bpf41jqR.js} +2 -2
  194. package/dist/{lst-Cw1XCAv0.cjs → lst-C9RrqCgo.cjs} +1 -1
  195. package/dist/{manualEntry-CCmyPMJm.js → manualEntry-BvKEwOnY.js} +2 -2
  196. package/dist/{manualEntry-ChhTpAF2.cjs → manualEntry-wG0RcQYe.cjs} +1 -1
  197. package/dist/{mapBackground-BzOdjhnZ.cjs → mapBackground-DOsGw2Dh.cjs} +1 -1
  198. package/dist/{mapBackground-CiiG2nHi.js → mapBackground-DxQdqWM2.js} +3 -3
  199. package/dist/{mappingList-CoBD8D27.js → mappingList-BRpK5eX_.js} +2 -2
  200. package/dist/{mappingList-D42mILiq.cjs → mappingList-C7qyzN6o.cjs} +1 -1
  201. package/dist/{markdownViewer-C3HUXDvf.js → markdownViewer-CZVNZ8jN.js} +2 -2
  202. package/dist/{markdownViewer-DHs9ekCh.cjs → markdownViewer-C_TA7AX-.cjs} +1 -1
  203. package/dist/{mix-control-modal-BEwriuWS.js → mix-control-modal-DITf1VAp.js} +1 -1
  204. package/dist/{mix-control-modal-DGd2S6Jd.cjs → mix-control-modal-DjG-ChQu.cjs} +1 -1
  205. package/dist/{mixGrid-Cnq99D09.cjs → mixGrid-Zk7NKpBw.cjs} +1 -1
  206. package/dist/{mixGrid-CBenxHD_.js → mixGrid-mbFlywYp.js} +2 -2
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/{mixiotObjectListApi-e1qL7PHh.cjs → mixiotObjectListApi-CRPxZbIS.cjs} +1 -1
  211. package/dist/{mixiotObjectListApi-CKJLXcnf.js → mixiotObjectListApi-cTDvF31d.js} +1 -1
  212. package/dist/{mjpegCamera-D8lB701i.js → mjpegCamera-B3m55jok.js} +2 -2
  213. package/dist/{mjpegCamera-DDFrZo-x.cjs → mjpegCamera-Da5NZX0r.cjs} +1 -1
  214. package/dist/{monitorAlert-C-mo-lDe.cjs → monitorAlert-BqUYN_BF.cjs} +1 -1
  215. package/dist/{monitorAlert-Z1dFDfPh.js → monitorAlert-sn_3TrGJ.js} +9 -9
  216. package/dist/{monitorData-CNRfV5Wt.cjs → monitorData-B-dcmDx3.cjs} +1 -1
  217. package/dist/{monitorData-DZhO9Gos.js → monitorData-RhTZn3fI.js} +11 -11
  218. package/dist/{monitorSpeedChart-DrRdMdGD.cjs → monitorSpeedChart-_L0zgWxs.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-C5pN46lO.js → monitorSpeedChart-uWpHlkZd.js} +1 -1
  220. package/dist/{mxa-COpw24fq.cjs → mxa-BNnKgDyq.cjs} +1 -1
  221. package/dist/{mxa-BFQ70ksk.js → mxa-ClEVeLaa.js} +2 -2
  222. package/dist/{myValue-Eb3asTOC.cjs → myValue-DoBpTp1-.cjs} +1 -1
  223. package/dist/{myValue-Dosl4Ro5.js → myValue-Drhoqp_w.js} +2 -2
  224. package/dist/{myValueList-mcqRZanE.cjs → myValueList-BT6mKnwJ.cjs} +1 -1
  225. package/dist/{myValueList-Dkc10vr6.js → myValueList-BfIDIHUe.js} +2 -2
  226. package/dist/{objectList-FWkZ6PAs.js → objectList-CATv4N0g.js} +3 -3
  227. package/dist/{objectList-D4owr3ED.cjs → objectList-CM1T-IQo.cjs} +1 -1
  228. package/dist/{objectListAPP-CdfeZTgm.js → objectListAPP-BG9iL6S_.js} +3 -3
  229. package/dist/{objectListAPP-Bzevu1od.cjs → objectListAPP-lNp3RQsA.cjs} +1 -1
  230. package/dist/percentBar-BOQp427o.js +369 -0
  231. package/dist/percentBar-By73saGo.cjs +5 -0
  232. package/dist/{photo-Dmxxqgrg.cjs → photo-CFomIdjq.cjs} +1 -1
  233. package/dist/{photo-DxXTYq73.js → photo-N8uk9UzU.js} +2 -2
  234. package/dist/{pie-BxpiCEYe.cjs → pie-BzkMCV5O.cjs} +1 -1
  235. package/dist/{pie-COixdWUz.js → pie-DuWuL4rb.js} +2 -2
  236. package/dist/{placeholder-Ole-Or58.cjs → placeholder-B9T7qNoD.cjs} +1 -1
  237. package/dist/{placeholder-CLLNLxRC.js → placeholder-DI_zsp-O.js} +1 -1
  238. package/dist/{pressBtn-DwKg9PbD.cjs → pressBtn-B_D3cFPd.cjs} +1 -1
  239. package/dist/{pressBtn-C7Y-B8Dz.js → pressBtn-D-j1_nDJ.js} +38 -38
  240. package/dist/{processTable-CTkwZWWJ.js → processTable-B-X05x32.js} +2 -2
  241. package/dist/{processTable-DDcKkjJx.cjs → processTable-B5WzGKQr.cjs} +1 -1
  242. package/dist/{progressBar-7qHg67Sf.cjs → progressBar-19d-9U9p.cjs} +1 -1
  243. package/dist/{progressBar-9npgJ9jD.js → progressBar-F61-3H3E.js} +2 -2
  244. package/dist/{progressCircle-DP08TX08.js → progressCircle-Dp4XWdE0.js} +2 -2
  245. package/dist/{progressCircle-Xgjnl1KF.cjs → progressCircle-RZ36ttud.cjs} +1 -1
  246. package/dist/{qrcode-D6wDMo-f.cjs → qrcode-D8C5cFka.cjs} +1 -1
  247. package/dist/{qrcode-ClTSNzEN.js → qrcode-PeEXEcDd.js} +2 -2
  248. package/dist/{raceBar-CTmsN8VC.js → raceBar-BnkzNqH0.js} +2 -2
  249. package/dist/{raceBar-C8mVFHnd.cjs → raceBar-DuCYwMoq.cjs} +1 -1
  250. package/dist/{rad-DWCSD35t.js → rad-BdQ-1k0K.js} +66 -56
  251. package/dist/{rad-Dxaakm82.cjs → rad-DND2sEzm.cjs} +1 -1
  252. package/dist/{radarMapViewer-eEBE3MS-.js → radarMapViewer-BUT7ZD47.js} +2 -2
  253. package/dist/{radarMapViewer-U7IQJjQs.cjs → radarMapViewer-BtwXLg65.cjs} +1 -1
  254. package/dist/{rainfallFilterBar-DJTDGu7Z.js → rainfallFilterBar-0IX3rYUD.js} +2 -2
  255. package/dist/{rainfallFilterBar-ow_wdOwq.cjs → rainfallFilterBar-BVD1fsJF.cjs} +1 -1
  256. package/dist/{rainfallTimeCurve-CwGmJhxu.js → rainfallTimeCurve-BIt0Ax0l.js} +3 -3
  257. package/dist/{rainfallTimeCurve-BL1I5Z2D.cjs → rainfallTimeCurve-DvYAvU9a.cjs} +1 -1
  258. package/dist/{rangeLin-BqcJpIva.js → rangeLin-BpAilzGc.js} +2 -2
  259. package/dist/{rangeLin-BEz9xapa.cjs → rangeLin-DKjgf_Ab.cjs} +1 -1
  260. package/dist/{realtimeEvolutionMap-NOkyU7G3.js → realtimeEvolutionMap-5rOyArZq.js} +2 -2
  261. package/dist/{realtimeEvolutionMap-mzXlR8gS.cjs → realtimeEvolutionMap-Feks0bxX.cjs} +1 -1
  262. package/dist/{regionBar-DDk-2UWS.js → regionBar-D2if9Cyv.js} +2 -2
  263. package/dist/{regionBar-CEfz0Yol.cjs → regionBar-oWO1HZta.cjs} +1 -1
  264. package/dist/{request-BIXfJXjX.js → request-BAa7KXPI.js} +1 -1
  265. package/dist/{request-BfG3yDz6.cjs → request-DRttaVjf.cjs} +1 -1
  266. package/dist/{retainer1-Cz5rXIJj.js → retainer1-Bz3hKsxS.js} +3 -3
  267. package/dist/{retainer1-Ch1oZMeA.cjs → retainer1-CA3lV3eb.cjs} +1 -1
  268. package/dist/{retainer2-DJ1R2GJE.cjs → retainer2-BnfP4WPr.cjs} +1 -1
  269. package/dist/{retainer2-DeelXgAZ.js → retainer2-UsoVsRXo.js} +3 -3
  270. package/dist/{retainerRecordList-DyhfjtfF.js → retainerRecordList-DbXRpaHy.js} +2 -2
  271. package/dist/{retainerRecordList-D3MsCnqy.cjs → retainerRecordList-jkXbz9xr.cjs} +1 -1
  272. package/dist/{retainerRecordListAPP-B_hCyRak.cjs → retainerRecordListAPP-CS4s1t0e.cjs} +1 -1
  273. package/dist/{retainerRecordListAPP-3Gr7db3D.js → retainerRecordListAPP-DI4f5Q6f.js} +2 -2
  274. package/dist/{ringTopN-fLinQVwX.cjs → ringTopN-BBryDUi9.cjs} +1 -1
  275. package/dist/{ringTopN-t9xaVCWg.js → ringTopN-BCZhDz0U.js} +2 -2
  276. package/dist/{riskRegionTable-CagcISBC.cjs → riskRegionTable-DtG9zTy5.cjs} +1 -1
  277. package/dist/{riskRegionTable-BThwQbTf.js → riskRegionTable-Dw573XX4.js} +2 -2
  278. package/dist/{sankey-BY_nwThw.cjs → sankey-BNmzRTH5.cjs} +1 -1
  279. package/dist/{sankey-Bwm0omQr.js → sankey-DHbOEbzP.js} +2 -2
  280. package/dist/{scd-DeYC1Rqx.js → scd-CNcTAStO.js} +2 -2
  281. package/dist/{scd-Bs1dG1w8.cjs → scd-Cf68XDF5.cjs} +1 -1
  282. package/dist/{sideMenu-CAEh3bwF.cjs → sideMenu-BW8ddV-x.cjs} +1 -1
  283. package/dist/{sideMenu-Db_Nc_xz.js → sideMenu-DKAAQcWF.js} +2 -2
  284. package/dist/{slopeStability-CVC68Qcj.js → slopeStability-Ds4exWb_.js} +10 -10
  285. package/dist/{slopeStability-BWg6jhBB.cjs → slopeStability-eVwuAmlY.cjs} +1 -1
  286. package/dist/{speedCurve-CK4CXHeC.js → speedCurve-B_j8P273.js} +2 -2
  287. package/dist/{speedCurve-DNNEIz4o.cjs → speedCurve-PtxSVJ8J.cjs} +1 -1
  288. package/dist/stackedBar-CC0JmrlS.cjs +2 -0
  289. package/dist/stackedBar-uMr9A877.js +325 -0
  290. package/dist/{stressFilterBar-DQ8nq8jV.js → stressFilterBar-B02kr6zY.js} +2 -2
  291. package/dist/{stressFilterBar-Cigl3IyR.cjs → stressFilterBar-Dh4fWQ90.cjs} +1 -1
  292. package/dist/{stressTimeCurve-BiduKfcg.cjs → stressTimeCurve-6eALY4dC.cjs} +1 -1
  293. package/dist/{stressTimeCurve-BEANw1F8.js → stressTimeCurve-D_Rc1PAY.js} +3 -3
  294. package/dist/{swiper-BgkvIN5U.js → swiper-BsAeDuw3.js} +2 -2
  295. package/dist/{swiper-MIRXMnxk.cjs → swiper-CMP_sa_i.cjs} +1 -1
  296. package/dist/{terminalConfigList-B3lqvQel.js → terminalConfigList-BjbgbZHU.js} +2 -2
  297. package/dist/{terminalConfigList-C3zRbQvM.cjs → terminalConfigList-C83kqf7d.cjs} +1 -1
  298. package/dist/{terminalList-ArxJ1jdO.cjs → terminalList-BnitlFL5.cjs} +1 -1
  299. package/dist/{terminalList-BevfdySj.js → terminalList-DPOBOIu3.js} +2 -2
  300. package/dist/{terminalListAPP-Cs0nnBfc.cjs → terminalListAPP-CSYL2-0G.cjs} +1 -1
  301. package/dist/{terminalListAPP-CbpVft_s.js → terminalListAPP-DI6ePX4Y.js} +2 -2
  302. package/dist/{textbox-CjkfmdaO.js → textbox-Dk4Q0jq3.js} +2 -2
  303. package/dist/{textbox-DC9YLTn5.cjs → textbox-OEvn1Q-J.cjs} +1 -1
  304. package/dist/{timeQueryBar-B69eldHQ.cjs → timeQueryBar-Bnqyhyy7.cjs} +1 -1
  305. package/dist/{timeQueryBar-CXd9yNgD.js → timeQueryBar-CoFozltp.js} +1 -1
  306. package/dist/{timeSeries-CLnLd-gX.js → timeSeries-BYWoWCYY.js} +3 -3
  307. package/dist/{timeSeries-fB14CgRy.cjs → timeSeries-Dw-90k-1.cjs} +1 -1
  308. package/dist/{timeSeriesCurve-DOaxDpjr.cjs → timeSeriesCurve-BkdQ_KeE.cjs} +1 -1
  309. package/dist/{timeSeriesCurve-CMcCzR13.js → timeSeriesCurve-iPezzxLC.js} +3 -3
  310. package/dist/{toggleBtn-BiUyrx_o.cjs → toggleBtn-BC4vsMGo.cjs} +1 -1
  311. package/dist/{toggleBtn-CWmuTxSD.js → toggleBtn-CAXFfijH.js} +2 -2
  312. package/dist/{trajectoryConfigPanel-D7IDlQIH.cjs → trajectoryConfigPanel-BXpItzqc.cjs} +1 -1
  313. package/dist/{trajectoryConfigPanel-DKLN3KY5.js → trajectoryConfigPanel-DlN8AZFo.js} +1 -1
  314. package/dist/{trajectoryScatter-TEactc8J.js → trajectoryScatter-CxDHL1um.js} +2 -2
  315. package/dist/{trajectoryScatter-CL-2FKZe.cjs → trajectoryScatter-_1LoFjV7.cjs} +1 -1
  316. package/dist/{universalConfigPanel-B8JIiLXp.cjs → universalConfigPanel-B6jchzUf.cjs} +1 -1
  317. package/dist/{universalConfigPanel-wicv4Ypw.js → universalConfigPanel-BlDmNWc0.js} +1 -1
  318. package/dist/{universalTable-BlTdL3c0.cjs → universalTable-C-oWFP8u.cjs} +1 -1
  319. package/dist/{universalTable-8e3LrZvD.js → universalTable-DbqMwXuL.js} +2 -2
  320. package/dist/{video-DpRcCZZQ.js → video-DHJ-flUN.js} +2 -2
  321. package/dist/{video-nPkrKQyL.cjs → video-HxDzMY56.cjs} +1 -1
  322. package/dist/{videoMonitor-DOVw5mE0.cjs → videoMonitor-CGlM7hRf.cjs} +1 -1
  323. package/dist/{videoMonitor-Z_7cZk5Y.js → videoMonitor-Golf73FP.js} +9 -9
  324. package/dist/{vlu-BQCrHSlq.js → vlu-Wd6itaBz.js} +2 -2
  325. package/dist/{vlu-DEIgGiO-.cjs → vlu-ZFZU2wAQ.cjs} +1 -1
  326. package/dist/{warningOverview-DXJNk5bT.cjs → warningOverview-BkDN-4f-.cjs} +1 -1
  327. package/dist/{warningOverview-C7J5aXTJ.js → warningOverview-DuBMKv_H.js} +3 -3
  328. package/dist/{weather-C1sjTcwC.js → weather-BRKZBZR9.js} +2 -2
  329. package/dist/{weather-B1Pfcn75.cjs → weather-C_9Xmi0b.cjs} +1 -1
  330. package/dist/{windLin-QKZKJ1h_.cjs → windLin-6KfyL12C.cjs} +1 -1
  331. package/dist/{windLin-vlM63Hu7.js → windLin-DCZqaY1W.js} +2 -2
  332. package/package.json +1 -1
  333. package/dist/circleBar-4md65KCX.js +0 -305
  334. package/dist/circleBar-DJY37bwB.cjs +0 -5
  335. package/dist/ctrSet-XqnGgYPn.cjs +0 -1
  336. package/dist/index-6QhTSPkL.cjs +0 -612
@@ -1 +1 @@
1
- "use strict";var V=Object.defineProperty,O=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var I=(u,l,s)=>l in u?V(u,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[l]=s,h=(u,l)=>{for(var s in l||(l={}))D.call(l,s)&&I(u,s,l[s]);if(N)for(var s of N(l))z.call(l,s)&&I(u,s,l[s]);return u},C=(u,l)=>O(u,A(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),g=require("element-plus");require("html2canvas");const F=require("./BaseComponent-bzb58Hhs.cjs"),L=require("./index-6QhTSPkL.cjs"),T=require("./ele-lst-icon-CrxnHZ-A.cjs"),U={class:"side-menu-wrapper"},q={class:"menu-header"},R={class:"header-title"},G={class:"menu-list"},W={key:0,class:"menu-group"},J=["onClick"],K={class:"menu-text"},H=["onClick"],Q={class:"menu-text"},X={key:0,class:"active-indicator"},Y=["onClick"],Z={class:"menu-text"},ee={key:0,class:"active-indicator"},te={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"右侧菜单栏",NAME_EN:"Side Menu",ORDER:14,PLATFORM:["pc","screen"]},ne={title:{value:"功能菜单",type:"string",label:"component.sideMenu.title"},fontSize:{value:14,type:"number",label:"component.sideMenu.fontSize",min:12,max:24},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},borderColor:{value:"#1e90ff",type:"color",label:"component.sideMenu.borderColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.sideMenu.accentColor"},hoverColor:{value:"rgba(0, 212, 255, 0.15)",type:"color",label:"component.sideMenu.hoverColor"},activeColor:{value:"rgba(0, 212, 255, 0.25)",type:"color",label:"component.sideMenu.activeColor"},glowEffect:{value:!0,type:"checkbox",label:"component.sideMenu.glowEffect"}},oe=[{name:"数据总览",parentId:"",actionType:"sheet",jumpParam:"0"},{name:"实时监测",parentId:"",actionType:"sheet",jumpParam:"1"},{name:"预警管理",parentId:"",actionType:"",jumpParam:""},{name:"预警列表",parentId:"预警管理",actionType:"sheet",jumpParam:"2"},{name:"预警统计",parentId:"预警管理",actionType:"sheet",jumpParam:"3"},{name:"设备管理",parentId:"",actionType:"jump",jumpParam:""},{name:"系统设置",parentId:"",actionType:"jump",jumpParam:""}],ae=["name","parentId","actionType","jumpParam"],re=["mosaic"],le={useAlias:!1,multiObject:!1,source:"mosaic"},ce={DEFAULT:te,OPTIONS:ne,DATA:oe,PARAMS:ae,SOURCE:re,COMMON:le},se=e.defineComponent(C(h({},ce),{__name:"sideMenu",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(r=>({v0d7a12a4:e.unref(c).bgColor,v110b9f27:e.unref(c).borderColor,bfd3dd6e:e.unref(c).accentColor,v4c585d9a:e.unref(c).glowEffect?`0 0 8px ${e.unref(c).accentColor}`:"none",v4b5e2ac6:e.unref(c).textColor,v041a46ee:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}40`:"none",v47a91e12:e.unref(c).hoverColor,b48166e6:e.unref(c).activeColor,v0f2ea44d:e.unref(c).fontSize+"px",v5f9448f5:e.unref(c).glowEffect?`0 0 6px ${e.unref(c).accentColor}`:"none"}));const l=e.inject("switchSheet",()=>{}),s=e.inject("getSheets",()=>[]),M=e.inject("getCurrentSheet",()=>0),p=u;class P extends F.BaseComponent{extractStyles(){var o,n,a,i,f,E,_,k,j,S;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"功能菜单",fontSize:((n=t==null?void 0:t.fontSize)==null?void 0:n.value)||14,bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#ffffff",borderColor:((i=t==null?void 0:t.borderColor)==null?void 0:i.value)||"#1e90ff",textColor:((f=t==null?void 0:t.textColor)==null?void 0:f.value)||"#333333",accentColor:((E=t==null?void 0:t.accentColor)==null?void 0:E.value)||"#409eff",hoverColor:((_=t==null?void 0:t.hoverColor)==null?void 0:_.value)||"rgba(0, 212, 255, 0.15)",activeColor:((k=t==null?void 0:t.activeColor)==null?void 0:k.value)||"rgba(0, 212, 255, 0.25)",glowEffect:(S=(j=t==null?void 0:t.glowEffect)==null?void 0:j.value)!=null?S:!0}}getDefaultData(){return[{name:"数据总览",parentId:"",actionType:"sheet",jumpParam:"0"},{name:"实时监测",parentId:"",actionType:"sheet",jumpParam:"1"},{name:"预警管理",parentId:"",actionType:"",jumpParam:""},{name:"预警列表",parentId:"预警管理",actionType:"sheet",jumpParam:"2"},{name:"预警统计",parentId:"预警管理",actionType:"sheet",jumpParam:"3"},{name:"设备管理",parentId:"",actionType:"jump",jumpParam:""},{name:"系统设置",parentId:"",actionType:"jump",jumpParam:""}]}}const v=new P(p,"sideMenu");(!p.conf.data||p.conf.data.length===0)&&(p.conf.data=v.getDefaultData()),v.setupLifecycle();const c=v.getStyle(),d=e.ref("0"),m=e.ref([]),y=e.computed(()=>{var n;const r=((n=p.conf)==null?void 0:n.data)||[],t=[],o={};return r.forEach(a=>{a.parentId?(o[a.parentId]||(o[a.parentId]=[]),o[a.parentId].push(a)):t.push(C(h({},a),{children:[]}))}),t.forEach(a=>{o[a.name]&&(a.children=o[a.name])}),t}),B=r=>{const t=m.value.indexOf(r);t>-1?m.value.splice(t,1):m.value.push(r)},w=r=>{const{jumpParam:t}=r;if(!t){g.ElMessage.warning("未设置跳转参数");return}if(t.startsWith("http://")||t.startsWith("https://"))window.open(t,"_self");else{const n=location.href,a=n.substring(0,n.indexOf("#")+1);window.open(`${a}/show/${t}`,"_self")}},x=r=>{const{jumpParam:t}=r,o=s();if(o.length<=1){g.ElMessage.warning("当前只有一个页面");return}let n;!t||t===""?n=0:isNaN(Number(t))?n=o.findIndex(a=>a.name===t||a.id===t):n=Number(t),n>=0&&n<o.length?l(n):g.ElMessage.error("未找到目标页面")},b=(r,t)=>{if(d.value=r,p.mode==="edit"){console.log("编辑模式 - 点击菜单:",t);return}switch(t.actionType||"sheet"){case"jump":w(t);break;case"sheet":x(t);break;default:console.log("自定义动作:",t)}},$=()=>{const r=M(),t=y.value;for(let o=0;o<t.length;o++){const n=t[o];if(n.actionType==="sheet"&&(n.jumpParam?Number(n.jumpParam):0)===r){d.value=String(o);return}if(n.children&&n.children.length>0)for(let a=0;a<n.children.length;a++){const i=n.children[a];if(i.actionType==="sheet"&&(i.jumpParam?Number(i.jumpParam):0)===r){d.value=`${o}-${a}`,m.value.includes(o)||m.value.push(o);return}}}};return e.onMounted(()=>{$()}),(r,t)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",q,[t[0]||(t[0]=e.createElementVNode("div",{class:"header-decoration"},null,-1)),e.createElementVNode("span",R,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n},[o.children&&o.children.length>0?(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",{class:e.normalizeClass(["menu-item parent-item",{expanded:m.value.includes(Number(n))}]),onClick:a=>B(Number(n))},[e.createElementVNode("span",K,e.toDisplayString(o.name),1),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["expand-icon",{rotated:m.value.includes(Number(n))}]),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[...t[1]||(t[1]=[e.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))],10,J),e.createElementVNode("div",{class:e.normalizeClass(["sub-menu",{expanded:m.value.includes(Number(n))}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,(a,i)=>(e.openBlock(),e.createElementBlock("div",{key:`${n}-${i}`,class:e.normalizeClass(["menu-item sub-item",{active:d.value===`${n}-${i}`}]),onClick:f=>b(`${n}-${i}`,a)},[e.createElementVNode("span",Q,e.toDisplayString(a.name),1),d.value===`${n}-${i}`?(e.openBlock(),e.createElementBlock("div",X)):e.createCommentVNode("",!0)],10,H))),128))],2)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["menu-item",{active:d.value===String(n)}]),onClick:a=>b(String(n),o)},[e.createElementVNode("span",Z,e.toDisplayString(o.name),1),d.value===String(n)?(e.openBlock(),e.createElementBlock("div",ee)):e.createCommentVNode("",!0)],10,Y))],64))),128))]),t[2]||(t[2]=e.createElementVNode("div",{class:"menu-footer"},[e.createElementVNode("div",{class:"footer-line"})],-1)),e.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),ue=L._export_sfc(se,[["__scopeId","data-v-6ec35300"]]);exports.default=ue;
1
+ "use strict";var V=Object.defineProperty,O=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var I=(u,l,s)=>l in u?V(u,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[l]=s,h=(u,l)=>{for(var s in l||(l={}))D.call(l,s)&&I(u,s,l[s]);if(N)for(var s of N(l))z.call(l,s)&&I(u,s,l[s]);return u},C=(u,l)=>O(u,A(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),g=require("element-plus");require("html2canvas");const F=require("./BaseComponent-DaYX7dUF.cjs"),L=require("./index-OgmTZiO-.cjs"),T=require("./ele-lst-icon-CrxnHZ-A.cjs"),U={class:"side-menu-wrapper"},q={class:"menu-header"},R={class:"header-title"},G={class:"menu-list"},W={key:0,class:"menu-group"},J=["onClick"],K={class:"menu-text"},H=["onClick"],Q={class:"menu-text"},X={key:0,class:"active-indicator"},Y=["onClick"],Z={class:"menu-text"},ee={key:0,class:"active-indicator"},te={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"右侧菜单栏",NAME_EN:"Side Menu",ORDER:14,PLATFORM:["pc","screen"]},ne={title:{value:"功能菜单",type:"string",label:"component.sideMenu.title"},fontSize:{value:14,type:"number",label:"component.sideMenu.fontSize",min:12,max:24},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},borderColor:{value:"#1e90ff",type:"color",label:"component.sideMenu.borderColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.sideMenu.accentColor"},hoverColor:{value:"rgba(0, 212, 255, 0.15)",type:"color",label:"component.sideMenu.hoverColor"},activeColor:{value:"rgba(0, 212, 255, 0.25)",type:"color",label:"component.sideMenu.activeColor"},glowEffect:{value:!0,type:"checkbox",label:"component.sideMenu.glowEffect"}},oe=[{name:"数据总览",parentId:"",actionType:"sheet",jumpParam:"0"},{name:"实时监测",parentId:"",actionType:"sheet",jumpParam:"1"},{name:"预警管理",parentId:"",actionType:"",jumpParam:""},{name:"预警列表",parentId:"预警管理",actionType:"sheet",jumpParam:"2"},{name:"预警统计",parentId:"预警管理",actionType:"sheet",jumpParam:"3"},{name:"设备管理",parentId:"",actionType:"jump",jumpParam:""},{name:"系统设置",parentId:"",actionType:"jump",jumpParam:""}],ae=["name","parentId","actionType","jumpParam"],re=["mosaic"],le={useAlias:!1,multiObject:!1,source:"mosaic"},ce={DEFAULT:te,OPTIONS:ne,DATA:oe,PARAMS:ae,SOURCE:re,COMMON:le},se=e.defineComponent(C(h({},ce),{__name:"sideMenu",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(r=>({v0d7a12a4:e.unref(c).bgColor,v110b9f27:e.unref(c).borderColor,bfd3dd6e:e.unref(c).accentColor,v4c585d9a:e.unref(c).glowEffect?`0 0 8px ${e.unref(c).accentColor}`:"none",v4b5e2ac6:e.unref(c).textColor,v041a46ee:e.unref(c).glowEffect?`0 0 10px ${e.unref(c).accentColor}40`:"none",v47a91e12:e.unref(c).hoverColor,b48166e6:e.unref(c).activeColor,v0f2ea44d:e.unref(c).fontSize+"px",v5f9448f5:e.unref(c).glowEffect?`0 0 6px ${e.unref(c).accentColor}`:"none"}));const l=e.inject("switchSheet",()=>{}),s=e.inject("getSheets",()=>[]),M=e.inject("getCurrentSheet",()=>0),p=u;class P extends F.BaseComponent{extractStyles(){var o,n,a,i,f,E,_,k,j,S;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"功能菜单",fontSize:((n=t==null?void 0:t.fontSize)==null?void 0:n.value)||14,bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#ffffff",borderColor:((i=t==null?void 0:t.borderColor)==null?void 0:i.value)||"#1e90ff",textColor:((f=t==null?void 0:t.textColor)==null?void 0:f.value)||"#333333",accentColor:((E=t==null?void 0:t.accentColor)==null?void 0:E.value)||"#409eff",hoverColor:((_=t==null?void 0:t.hoverColor)==null?void 0:_.value)||"rgba(0, 212, 255, 0.15)",activeColor:((k=t==null?void 0:t.activeColor)==null?void 0:k.value)||"rgba(0, 212, 255, 0.25)",glowEffect:(S=(j=t==null?void 0:t.glowEffect)==null?void 0:j.value)!=null?S:!0}}getDefaultData(){return[{name:"数据总览",parentId:"",actionType:"sheet",jumpParam:"0"},{name:"实时监测",parentId:"",actionType:"sheet",jumpParam:"1"},{name:"预警管理",parentId:"",actionType:"",jumpParam:""},{name:"预警列表",parentId:"预警管理",actionType:"sheet",jumpParam:"2"},{name:"预警统计",parentId:"预警管理",actionType:"sheet",jumpParam:"3"},{name:"设备管理",parentId:"",actionType:"jump",jumpParam:""},{name:"系统设置",parentId:"",actionType:"jump",jumpParam:""}]}}const v=new P(p,"sideMenu");(!p.conf.data||p.conf.data.length===0)&&(p.conf.data=v.getDefaultData()),v.setupLifecycle();const c=v.getStyle(),d=e.ref("0"),m=e.ref([]),y=e.computed(()=>{var n;const r=((n=p.conf)==null?void 0:n.data)||[],t=[],o={};return r.forEach(a=>{a.parentId?(o[a.parentId]||(o[a.parentId]=[]),o[a.parentId].push(a)):t.push(C(h({},a),{children:[]}))}),t.forEach(a=>{o[a.name]&&(a.children=o[a.name])}),t}),B=r=>{const t=m.value.indexOf(r);t>-1?m.value.splice(t,1):m.value.push(r)},w=r=>{const{jumpParam:t}=r;if(!t){g.ElMessage.warning("未设置跳转参数");return}if(t.startsWith("http://")||t.startsWith("https://"))window.open(t,"_self");else{const n=location.href,a=n.substring(0,n.indexOf("#")+1);window.open(`${a}/show/${t}`,"_self")}},x=r=>{const{jumpParam:t}=r,o=s();if(o.length<=1){g.ElMessage.warning("当前只有一个页面");return}let n;!t||t===""?n=0:isNaN(Number(t))?n=o.findIndex(a=>a.name===t||a.id===t):n=Number(t),n>=0&&n<o.length?l(n):g.ElMessage.error("未找到目标页面")},b=(r,t)=>{if(d.value=r,p.mode==="edit"){console.log("编辑模式 - 点击菜单:",t);return}switch(t.actionType||"sheet"){case"jump":w(t);break;case"sheet":x(t);break;default:console.log("自定义动作:",t)}},$=()=>{const r=M(),t=y.value;for(let o=0;o<t.length;o++){const n=t[o];if(n.actionType==="sheet"&&(n.jumpParam?Number(n.jumpParam):0)===r){d.value=String(o);return}if(n.children&&n.children.length>0)for(let a=0;a<n.children.length;a++){const i=n.children[a];if(i.actionType==="sheet"&&(i.jumpParam?Number(i.jumpParam):0)===r){d.value=`${o}-${a}`,m.value.includes(o)||m.value.push(o);return}}}};return e.onMounted(()=>{$()}),(r,t)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",q,[t[0]||(t[0]=e.createElementVNode("div",{class:"header-decoration"},null,-1)),e.createElementVNode("span",R,e.toDisplayString(e.unref(c).title),1)]),e.createElementVNode("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n},[o.children&&o.children.length>0?(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",{class:e.normalizeClass(["menu-item parent-item",{expanded:m.value.includes(Number(n))}]),onClick:a=>B(Number(n))},[e.createElementVNode("span",K,e.toDisplayString(o.name),1),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["expand-icon",{rotated:m.value.includes(Number(n))}]),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[...t[1]||(t[1]=[e.createElementVNode("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))],10,J),e.createElementVNode("div",{class:e.normalizeClass(["sub-menu",{expanded:m.value.includes(Number(n))}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,(a,i)=>(e.openBlock(),e.createElementBlock("div",{key:`${n}-${i}`,class:e.normalizeClass(["menu-item sub-item",{active:d.value===`${n}-${i}`}]),onClick:f=>b(`${n}-${i}`,a)},[e.createElementVNode("span",Q,e.toDisplayString(a.name),1),d.value===`${n}-${i}`?(e.openBlock(),e.createElementBlock("div",X)):e.createCommentVNode("",!0)],10,H))),128))],2)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["menu-item",{active:d.value===String(n)}]),onClick:a=>b(String(n),o)},[e.createElementVNode("span",Z,e.toDisplayString(o.name),1),d.value===String(n)?(e.openBlock(),e.createElementBlock("div",ee)):e.createCommentVNode("",!0)],10,Y))],64))),128))]),t[2]||(t[2]=e.createElementVNode("div",{class:"menu-footer"},[e.createElementVNode("div",{class:"footer-line"})],-1)),e.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),ue=L._export_sfc(se,[["__scopeId","data-v-6ec35300"]]);exports.default=ue;
@@ -13,8 +13,8 @@ var A = (i, r, c) => r in i ? G(i, r, { enumerable: !0, configurable: !0, writab
13
13
  import { defineComponent as H, useCssVars as Q, unref as s, inject as S, ref as O, computed as X, onMounted as Y, openBlock as m, createElementBlock as p, createElementVNode as u, toDisplayString as y, Fragment as I, renderList as D, normalizeClass as C, createCommentVNode as z, renderSlot as Z } from "vue";
14
14
  import { ElMessage as T } from "element-plus";
15
15
  import "html2canvas";
16
- import { B as ee } from "./BaseComponent-Dwhb9Mde.js";
17
- import { _ as te } from "./index-YNdVib_6.js";
16
+ import { B as ee } from "./BaseComponent-CEp8NJiX.js";
17
+ import { _ as te } from "./index-CqVPeq0-.js";
18
18
  import { A as ne, D as ae } from "./ele-lst-icon-CKpeRKmk.js";
19
19
  const oe = { class: "side-menu-wrapper" }, re = { class: "menu-header" }, le = { class: "header-title" }, se = { class: "menu-list" }, ce = {
20
20
  key: 0,
@@ -12,9 +12,9 @@ var V = (f, a, p) => a in f ? J(f, a, { enumerable: !0, configurable: !0, writab
12
12
  }, P = (f, a) => X(f, Y(a));
13
13
  import { defineComponent as et, useCssVars as at, unref as i, ref as D, computed as R, onMounted as lt, nextTick as U, watch as ot, openBlock as m, createElementBlock as x, createElementVNode as e, createStaticVNode as st, toDisplayString as y, withDirectives as O, vModelText as B, Fragment as F, renderList as z, normalizeStyle as w, normalizeClass as nt, createBlock as it, Teleport as rt, withModifiers as ct, createCommentVNode as W, renderSlot as dt } from "vue";
14
14
  import "html2canvas";
15
- import { N as ut, G as ft, _ as pt } from "./index-YNdVib_6.js";
15
+ import { N as ut, E as ft, _ as pt } from "./index-CqVPeq0-.js";
16
16
  import "element-plus";
17
- import { E as vt } from "./EChartComponentBase-BmS2KONN.js";
17
+ import { E as vt } from "./EChartComponentBase-B-VNAC8K.js";
18
18
  import "./index-eIsZnzkc.js";
19
19
  import { A as bt, D as ht } from "./ele-bar-icon-C-GiCs2a.js";
20
20
  import { i as mt } from "./echarts-Bp7QN4X6.js";
@@ -170,13 +170,13 @@ const yt = { class: "slope-stability-wrapper" }, gt = { class: "panel-header" },
170
170
  { id: `BP-${String(t + 1).padStart(3, "0")}`, time: "2025-12-16 10:25" },
171
171
  { id: `BP-${String(t + 10).padStart(3, "0")}`, time: "2025-12-16 10:20" }
172
172
  ];
173
- }), G = (l) => ({
173
+ }), H = (l) => ({
174
174
  background: `${l}30`,
175
175
  color: l,
176
176
  border: `1px solid ${l}`
177
- }), H = () => console.log("实时更新"), K = () => console.log("搜索:", k.value), Q = () => {
177
+ }), K = () => console.log("实时更新"), Q = () => console.log("搜索:", k.value), q = () => {
178
178
  k.value = "";
179
- }, q = (l) => {
179
+ }, G = (l) => {
180
180
  C.value = l, E.value = !0;
181
181
  }, T = () => {
182
182
  E.value = !1, C.value = null;
@@ -204,7 +204,7 @@ const yt = { class: "slope-stability-wrapper" }, gt = { class: "panel-header" },
204
204
  ]),
205
205
  e("button", {
206
206
  class: "realtime-btn",
207
- onClick: H
207
+ onClick: K
208
208
  }, y(i(r).realtimeBtnText), 1)
209
209
  ]),
210
210
  e("div", St, [
@@ -218,13 +218,13 @@ const yt = { class: "slope-stability-wrapper" }, gt = { class: "panel-header" },
218
218
  ]),
219
219
  e("button", {
220
220
  class: "search-btn",
221
- onClick: K
221
+ onClick: Q
222
222
  }, [...t[4] || (t[4] = [
223
223
  e("span", null, "Q", -1)
224
224
  ])]),
225
225
  e("button", {
226
226
  class: "clear-btn",
227
- onClick: Q
227
+ onClick: q
228
228
  }, [...t[5] || (t[5] = [
229
229
  e("span", null, "×", -1)
230
230
  ])])
@@ -262,8 +262,8 @@ const yt = { class: "slope-stability-wrapper" }, gt = { class: "panel-header" },
262
262
  (m(!0), x(F, null, z(f.conf.data, (n, v) => (m(), x("button", {
263
263
  key: v,
264
264
  class: nt(["action-btn", { active: C.value === v }]),
265
- style: w(G(n.color)),
266
- onClick: (h) => q(v)
265
+ style: w(H(n.color)),
266
+ onClick: (h) => G(v)
267
267
  }, y(n.name), 15, jt))), 128))
268
268
  ]),
269
269
  (m(), it(rt, { to: "body" }, [
@@ -1 +1 @@
1
- "use strict";var P=Object.defineProperty,R=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(u,l,f)=>l in u?P(u,l,{enumerable:!0,configurable:!0,writable:!0,value:f}):u[l]=f,O=(u,l)=>{for(var f in l||(l={}))F.call(l,f)&&w(u,f,l[f]);if(B)for(var f of B(l))U.call(l,f)&&w(u,f,l[f]);return u},I=(u,l)=>R(u,z(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const S=require("./index-6QhTSPkL.cjs");require("element-plus");const q=require("./EChartComponentBase-CMN_pOMr.cjs");require("./index-CJgyJTvc.cjs");const T=require("./ele-bar-icon-V94clxg_.cjs"),W=require("./echarts-BB8O2KSA.cjs"),H={class:"slope-stability-wrapper"},K={class:"panel-header"},Q={class:"header-left"},G={class:"header-title"},J={class:"search-bar"},X=["placeholder"],Y={class:"date-picker-row"},Z={class:"date-picker-item"},ee={class:"date-picker-item"},te={class:"chart-area"},le=["id"],ae={class:"action-buttons"},oe=["onClick"],ne={class:"detail-title"},re={class:"detail-modal-body"},se={class:"detail-summary"},ce={class:"detail-list"},ie={class:"detail-list-body"},de={key:0,class:"no-data"},ue={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"边坡稳定性分区",NAME_EN:"Slope Stability",ORDER:7,PLATFORM:["pc","screen"]},fe={title:{value:"边坡稳定性分区",type:"string",label:"component.slopeStability.title"},realtimeBtnText:{value:"实时更新",type:"string",label:"component.slopeStability.realtimeBtnText"},searchPlaceholder:{value:"搜索区域、编号...",type:"string",label:"component.slopeStability.searchPlaceholder"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.slopeStability.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.slopeStability.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.slopeStability.glowEffect"},glowIntensity:{value:10,type:"number",label:"component.slopeStability.glowIntensity",min:0,max:30,step:1}},pe=[{name:"稳定",fv:"stable_percent",object_id:"",value:62.5,color:"#2ecc71"},{name:"基本稳定",fv:"basic_stable_percent",object_id:"",value:28.3,color:"#f39c12"},{name:"欠稳定",fv:"unstable_percent",object_id:"",value:9.2,color:"#e74c3c"}],me=["name","fv","object_id","color"],ve=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],be={useAlias:!1,multiObject:!1,source:"mosaic"},he={DEFAULT:ue,OPTIONS:fe,DATA:pe,PARAMS:me,SOURCE:ve,COMMON:be},ye=e.defineComponent(I(O({},he),{__name:"slopeStability",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(a=>({v651fb250:e.unref(s).bgColor,fa048c6e:e.unref(s).borderColor,v32fa85e8:e.unref(s).textColor,v12082beb:e.unref(s).accentColor,v795e6932:e.unref(s).glowEffect?`drop-shadow(0 0 ${e.unref(s).glowIntensity}px ${e.unref(s).accentColor})`:"none",c4139b70:e.unref(s).glowEffect?`0 0 ${e.unref(s).glowIntensity}px ${e.unref(s).accentColor}`:"none",v5372ff44:e.unref(s).glowEffect?`0 0 ${e.unref(s).glowIntensity}px ${e.unref(s).accentColor}40`:"none"}));const l=u;class f extends q.EChartComponentBase{extractStyles(){var i,m,n,d,c,o,r,p,v,g,x;const{options:t}=this.props.conf;return{title:((i=t==null?void 0:t.title)==null?void 0:i.value)||"边坡稳定性分区",realtimeBtnText:((m=t==null?void 0:t.realtimeBtnText)==null?void 0:m.value)||"实时更新",searchPlaceholder:((n=t==null?void 0:t.searchPlaceholder)==null?void 0:n.value)||"搜索区域、编号...",bgColor:((d=t==null?void 0:t.bgColor)==null?void 0:d.value)||"#1a2a3a",borderColor:((c=t==null?void 0:t.borderColor)==null?void 0:c.value)||"#2a4a6a",textColor:((o=t==null?void 0:t.textColor)==null?void 0:o.value)||"#ffffff",accentColor:((r=t==null?void 0:t.accentColor)==null?void 0:r.value)||"#00d4ff",glowEffect:(v=(p=t==null?void 0:t.glowEffect)==null?void 0:p.value)!=null?v:!0,glowIntensity:(x=(g=t==null?void 0:t.glowIntensity)==null?void 0:g.value)!=null?x:10}}getDefaultData(){return[{name:"稳定",fv:"stable_percent",object_id:"",value:62.5,color:"#2ecc71"},{name:"基本稳定",fv:"basic_stable_percent",object_id:"",value:28.3,color:"#f39c12"},{name:"欠稳定",fv:"unstable_percent",object_id:"",value:9.2,color:"#e74c3c"}]}getChartOption(){var d;let t=(d=this.props.conf)==null?void 0:d.data;(!t||t.length===0)&&(t=this.getDefaultData());const i=t.map(c=>c.name),m=t.map(c=>{var o;return(o=c.value)!=null?o:0}),n=t.map(c=>c.color||"#4162ff");return{grid:{left:50,right:20,top:30,bottom:30},xAxis:{type:"category",data:i,axisLine:{lineStyle:{color:"#2a4a6a"}},axisLabel:{color:"#ffffff",fontSize:12}},yAxis:{type:"value",max:100,axisLine:{show:!1},splitLine:{lineStyle:{color:"#2a4a6a",type:"dashed"}},axisLabel:{color:"#ffffff",fontSize:12,formatter:"{value}%"}},series:[{type:"bar",data:m.map((c,o)=>({value:c,itemStyle:{color:n[o]}})),barWidth:"40%",label:{show:!0,position:"top",color:"#ffffff",fontSize:14,fontWeight:"bold",formatter:"{c}%"}}]}}setHistoryData(t){const{data:i,common:m}=this.props.conf,n=m.source||"mosaic";if(!i.some(o=>o.object_id&&o.fv))return;["statistics","calculate"].includes(n)&&(t=S.formatStatisticsResult(t,i));let c=S.handleNullData(t,this.props,"history");i.forEach((o,r)=>{var p,v;if(!(!o.object_id||!o.fv))try{const g=(v=(p=c.history[r])==null?void 0:p[0])==null?void 0:v[o.fv];g!=null&&(o.value=g)}catch(g){}}),this.updateChartData()}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.some(n=>n.object_id&&n.fv)&&(i.forEach(n=>{if(!n.object_id||!n.fv)return;const d=this.extractDataValue(t,n.fv);d!=null&&(n.value=d)}),this.updateChartData())}updateChartData(){this.chartObj&&this.chartObj.setOption(this.getChartOption())}}const b=new f(l,"slopeStability");(!l.conf.data||l.conf.data.length===0)&&(l.conf.data=b.getDefaultData()),b.setupLifecycle();const s=b.getStyle(),_=b.getEchartId(),E=e.ref(""),N=e.ref(""),V=e.ref(""),h=e.ref(null),C=e.ref(!1),y=e.computed(()=>{var a,t;return h.value===null?null:((t=(a=l.conf)==null?void 0:a.data)==null?void 0:t[h.value])||null}),D=e.computed(()=>{if(h.value===null)return[];const t=h.value*2+1;return[{id:`BP-${String(t).padStart(3,"0")}`,time:"2025-12-16 10:30"},{id:`BP-${String(t+1).padStart(3,"0")}`,time:"2025-12-16 10:25"},{id:`BP-${String(t+10).padStart(3,"0")}`,time:"2025-12-16 10:20"}]}),M=a=>({background:`${a}30`,color:a,border:`1px solid ${a}`}),j=()=>console.log("实时更新"),A=()=>console.log("搜索:",E.value),L=()=>{E.value=""},$=a=>{h.value=a,C.value=!0},k=()=>{C.value=!1,h.value=null};return e.onMounted(()=>{e.nextTick(()=>{const a=document.getElementById(_);if(a){const t=W.init(a);t.setOption(b.getChartOption()),b.chartObj=t}})}),e.watch(()=>{var a;return(a=l.conf)==null?void 0:a.data},()=>{e.nextTick(()=>b.updateChartData())},{deep:!0}),(a,t)=>{var i,m,n,d,c,o;return e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("div",K,[e.createElementVNode("div",Q,[t[3]||(t[3]=e.createStaticVNode('<svg class="header-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-817dd801><path d="M3 3v18h18" data-v-817dd801></path><path d="M18 17V9" data-v-817dd801></path><path d="M13 17V5" data-v-817dd801></path><path d="M8 17v-3" data-v-817dd801></path></svg>',1)),e.createElementVNode("span",G,e.toDisplayString(e.unref(s).title),1)]),e.createElementVNode("button",{class:"realtime-btn",onClick:j},e.toDisplayString(e.unref(s).realtimeBtnText),1)]),e.createElementVNode("div",J,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=r=>E.value=r),type:"text",class:"search-input",placeholder:e.unref(s).searchPlaceholder},null,8,X),[[e.vModelText,E.value]]),e.createElementVNode("button",{class:"search-btn",onClick:A},[...t[4]||(t[4]=[e.createElementVNode("span",null,"Q",-1)])]),e.createElementVNode("button",{class:"clear-btn",onClick:L},[...t[5]||(t[5]=[e.createElementVNode("span",null,"×",-1)])])]),e.createElementVNode("div",Y,[e.createElementVNode("div",Z,[t[6]||(t[6]=e.createElementVNode("label",null,"开始日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=r=>N.value=r),type:"date",class:"date-input"},null,512),[[e.vModelText,N.value]])]),e.createElementVNode("div",ee,[t[7]||(t[7]=e.createElementVNode("label",null,"结束日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=r=>V.value=r),type:"date",class:"date-input"},null,512),[[e.vModelText,V.value]])])]),e.createElementVNode("div",te,[t[8]||(t[8]=e.createElementVNode("div",{class:"chart-title"},"边坡稳定性分析",-1)),e.createElementVNode("div",{id:e.unref(_),class:"chart-container"},null,8,le)]),e.createElementVNode("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.conf.data,(r,p)=>(e.openBlock(),e.createElementBlock("button",{key:p,class:e.normalizeClass(["action-btn",{active:h.value===p}]),style:e.normalizeStyle(M(r.color)),onClick:v=>$(p)},e.toDisplayString(r.name),15,oe))),128))]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[C.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"detail-modal",onClick:e.withModifiers(k,["self"])},[e.createElementVNode("div",{class:"detail-modal-content",style:e.normalizeStyle({borderColor:(i=y.value)==null?void 0:i.color})},[e.createElementVNode("div",{class:"detail-modal-header",style:e.normalizeStyle({background:(m=y.value)==null?void 0:m.color})},[e.createElementVNode("span",ne,e.toDisplayString((n=y.value)==null?void 0:n.name)+" - 详细数据",1),e.createElementVNode("button",{class:"detail-close-btn",onClick:k},"×")],4),e.createElementVNode("div",re,[e.createElementVNode("div",se,[e.createElementVNode("div",{class:"summary-value",style:e.normalizeStyle({color:(d=y.value)==null?void 0:d.color})},e.toDisplayString((o=(c=y.value)==null?void 0:c.value)!=null?o:0)+"% ",5),t[9]||(t[9]=e.createElementVNode("div",{class:"summary-label"},"当前占比",-1))]),e.createElementVNode("div",ce,[t[10]||(t[10]=e.createElementVNode("div",{class:"detail-list-header"},[e.createElementVNode("span",null,"区域编号"),e.createElementVNode("span",null,"状态"),e.createElementVNode("span",null,"更新时间")],-1)),e.createElementVNode("div",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,r=>{var p,v;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"detail-list-item"},[e.createElementVNode("span",null,e.toDisplayString(r.id),1),e.createElementVNode("span",{class:"status-tag",style:e.normalizeStyle({background:(p=y.value)==null?void 0:p.color})},e.toDisplayString((v=y.value)==null?void 0:v.name),5),e.createElementVNode("span",null,e.toDisplayString(r.time),1)])}),128)),D.value.length===0?(e.openBlock(),e.createElementBlock("div",de," 暂无数据 ")):e.createCommentVNode("",!0)])])])],4)])):e.createCommentVNode("",!0)])),e.renderSlot(a.$slots,"default",{},void 0,!0)])}}})),ge=S._export_sfc(ye,[["__scopeId","data-v-817dd801"]]);exports.default=ge;
1
+ "use strict";var P=Object.defineProperty,R=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(u,l,f)=>l in u?P(u,l,{enumerable:!0,configurable:!0,writable:!0,value:f}):u[l]=f,O=(u,l)=>{for(var f in l||(l={}))F.call(l,f)&&w(u,f,l[f]);if(B)for(var f of B(l))U.call(l,f)&&w(u,f,l[f]);return u},I=(u,l)=>R(u,z(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const S=require("./index-OgmTZiO-.cjs");require("element-plus");const q=require("./EChartComponentBase-C2sxqwSE.cjs");require("./index-CJgyJTvc.cjs");const T=require("./ele-bar-icon-V94clxg_.cjs"),W=require("./echarts-BB8O2KSA.cjs"),H={class:"slope-stability-wrapper"},K={class:"panel-header"},Q={class:"header-left"},G={class:"header-title"},J={class:"search-bar"},X=["placeholder"],Y={class:"date-picker-row"},Z={class:"date-picker-item"},ee={class:"date-picker-item"},te={class:"chart-area"},le=["id"],ae={class:"action-buttons"},oe=["onClick"],ne={class:"detail-title"},re={class:"detail-modal-body"},se={class:"detail-summary"},ce={class:"detail-list"},ie={class:"detail-list-body"},de={key:0,class:"no-data"},ue={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"边坡稳定性分区",NAME_EN:"Slope Stability",ORDER:7,PLATFORM:["pc","screen"]},fe={title:{value:"边坡稳定性分区",type:"string",label:"component.slopeStability.title"},realtimeBtnText:{value:"实时更新",type:"string",label:"component.slopeStability.realtimeBtnText"},searchPlaceholder:{value:"搜索区域、编号...",type:"string",label:"component.slopeStability.searchPlaceholder"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.slopeStability.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.slopeStability.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.slopeStability.glowEffect"},glowIntensity:{value:10,type:"number",label:"component.slopeStability.glowIntensity",min:0,max:30,step:1}},pe=[{name:"稳定",fv:"stable_percent",object_id:"",value:62.5,color:"#2ecc71"},{name:"基本稳定",fv:"basic_stable_percent",object_id:"",value:28.3,color:"#f39c12"},{name:"欠稳定",fv:"unstable_percent",object_id:"",value:9.2,color:"#e74c3c"}],me=["name","fv","object_id","color"],ve=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],be={useAlias:!1,multiObject:!1,source:"mosaic"},he={DEFAULT:ue,OPTIONS:fe,DATA:pe,PARAMS:me,SOURCE:ve,COMMON:be},ye=e.defineComponent(I(O({},he),{__name:"slopeStability",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){e.useCssVars(a=>({v651fb250:e.unref(s).bgColor,fa048c6e:e.unref(s).borderColor,v32fa85e8:e.unref(s).textColor,v12082beb:e.unref(s).accentColor,v795e6932:e.unref(s).glowEffect?`drop-shadow(0 0 ${e.unref(s).glowIntensity}px ${e.unref(s).accentColor})`:"none",c4139b70:e.unref(s).glowEffect?`0 0 ${e.unref(s).glowIntensity}px ${e.unref(s).accentColor}`:"none",v5372ff44:e.unref(s).glowEffect?`0 0 ${e.unref(s).glowIntensity}px ${e.unref(s).accentColor}40`:"none"}));const l=u;class f extends q.EChartComponentBase{extractStyles(){var i,m,n,d,c,o,r,p,v,g,x;const{options:t}=this.props.conf;return{title:((i=t==null?void 0:t.title)==null?void 0:i.value)||"边坡稳定性分区",realtimeBtnText:((m=t==null?void 0:t.realtimeBtnText)==null?void 0:m.value)||"实时更新",searchPlaceholder:((n=t==null?void 0:t.searchPlaceholder)==null?void 0:n.value)||"搜索区域、编号...",bgColor:((d=t==null?void 0:t.bgColor)==null?void 0:d.value)||"#1a2a3a",borderColor:((c=t==null?void 0:t.borderColor)==null?void 0:c.value)||"#2a4a6a",textColor:((o=t==null?void 0:t.textColor)==null?void 0:o.value)||"#ffffff",accentColor:((r=t==null?void 0:t.accentColor)==null?void 0:r.value)||"#00d4ff",glowEffect:(v=(p=t==null?void 0:t.glowEffect)==null?void 0:p.value)!=null?v:!0,glowIntensity:(x=(g=t==null?void 0:t.glowIntensity)==null?void 0:g.value)!=null?x:10}}getDefaultData(){return[{name:"稳定",fv:"stable_percent",object_id:"",value:62.5,color:"#2ecc71"},{name:"基本稳定",fv:"basic_stable_percent",object_id:"",value:28.3,color:"#f39c12"},{name:"欠稳定",fv:"unstable_percent",object_id:"",value:9.2,color:"#e74c3c"}]}getChartOption(){var d;let t=(d=this.props.conf)==null?void 0:d.data;(!t||t.length===0)&&(t=this.getDefaultData());const i=t.map(c=>c.name),m=t.map(c=>{var o;return(o=c.value)!=null?o:0}),n=t.map(c=>c.color||"#4162ff");return{grid:{left:50,right:20,top:30,bottom:30},xAxis:{type:"category",data:i,axisLine:{lineStyle:{color:"#2a4a6a"}},axisLabel:{color:"#ffffff",fontSize:12}},yAxis:{type:"value",max:100,axisLine:{show:!1},splitLine:{lineStyle:{color:"#2a4a6a",type:"dashed"}},axisLabel:{color:"#ffffff",fontSize:12,formatter:"{value}%"}},series:[{type:"bar",data:m.map((c,o)=>({value:c,itemStyle:{color:n[o]}})),barWidth:"40%",label:{show:!0,position:"top",color:"#ffffff",fontSize:14,fontWeight:"bold",formatter:"{c}%"}}]}}setHistoryData(t){const{data:i,common:m}=this.props.conf,n=m.source||"mosaic";if(!i.some(o=>o.object_id&&o.fv))return;["statistics","calculate"].includes(n)&&(t=S.formatStatisticsResult(t,i));let c=S.handleNullData(t,this.props,"history");i.forEach((o,r)=>{var p,v;if(!(!o.object_id||!o.fv))try{const g=(v=(p=c.history[r])==null?void 0:p[0])==null?void 0:v[o.fv];g!=null&&(o.value=g)}catch(g){}}),this.updateChartData()}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.some(n=>n.object_id&&n.fv)&&(i.forEach(n=>{if(!n.object_id||!n.fv)return;const d=this.extractDataValue(t,n.fv);d!=null&&(n.value=d)}),this.updateChartData())}updateChartData(){this.chartObj&&this.chartObj.setOption(this.getChartOption())}}const b=new f(l,"slopeStability");(!l.conf.data||l.conf.data.length===0)&&(l.conf.data=b.getDefaultData()),b.setupLifecycle();const s=b.getStyle(),_=b.getEchartId(),E=e.ref(""),N=e.ref(""),V=e.ref(""),h=e.ref(null),C=e.ref(!1),y=e.computed(()=>{var a,t;return h.value===null?null:((t=(a=l.conf)==null?void 0:a.data)==null?void 0:t[h.value])||null}),D=e.computed(()=>{if(h.value===null)return[];const t=h.value*2+1;return[{id:`BP-${String(t).padStart(3,"0")}`,time:"2025-12-16 10:30"},{id:`BP-${String(t+1).padStart(3,"0")}`,time:"2025-12-16 10:25"},{id:`BP-${String(t+10).padStart(3,"0")}`,time:"2025-12-16 10:20"}]}),M=a=>({background:`${a}30`,color:a,border:`1px solid ${a}`}),j=()=>console.log("实时更新"),A=()=>console.log("搜索:",E.value),L=()=>{E.value=""},$=a=>{h.value=a,C.value=!0},k=()=>{C.value=!1,h.value=null};return e.onMounted(()=>{e.nextTick(()=>{const a=document.getElementById(_);if(a){const t=W.init(a);t.setOption(b.getChartOption()),b.chartObj=t}})}),e.watch(()=>{var a;return(a=l.conf)==null?void 0:a.data},()=>{e.nextTick(()=>b.updateChartData())},{deep:!0}),(a,t)=>{var i,m,n,d,c,o;return e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("div",K,[e.createElementVNode("div",Q,[t[3]||(t[3]=e.createStaticVNode('<svg class="header-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-817dd801><path d="M3 3v18h18" data-v-817dd801></path><path d="M18 17V9" data-v-817dd801></path><path d="M13 17V5" data-v-817dd801></path><path d="M8 17v-3" data-v-817dd801></path></svg>',1)),e.createElementVNode("span",G,e.toDisplayString(e.unref(s).title),1)]),e.createElementVNode("button",{class:"realtime-btn",onClick:j},e.toDisplayString(e.unref(s).realtimeBtnText),1)]),e.createElementVNode("div",J,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=r=>E.value=r),type:"text",class:"search-input",placeholder:e.unref(s).searchPlaceholder},null,8,X),[[e.vModelText,E.value]]),e.createElementVNode("button",{class:"search-btn",onClick:A},[...t[4]||(t[4]=[e.createElementVNode("span",null,"Q",-1)])]),e.createElementVNode("button",{class:"clear-btn",onClick:L},[...t[5]||(t[5]=[e.createElementVNode("span",null,"×",-1)])])]),e.createElementVNode("div",Y,[e.createElementVNode("div",Z,[t[6]||(t[6]=e.createElementVNode("label",null,"开始日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=r=>N.value=r),type:"date",class:"date-input"},null,512),[[e.vModelText,N.value]])]),e.createElementVNode("div",ee,[t[7]||(t[7]=e.createElementVNode("label",null,"结束日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=r=>V.value=r),type:"date",class:"date-input"},null,512),[[e.vModelText,V.value]])])]),e.createElementVNode("div",te,[t[8]||(t[8]=e.createElementVNode("div",{class:"chart-title"},"边坡稳定性分析",-1)),e.createElementVNode("div",{id:e.unref(_),class:"chart-container"},null,8,le)]),e.createElementVNode("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.conf.data,(r,p)=>(e.openBlock(),e.createElementBlock("button",{key:p,class:e.normalizeClass(["action-btn",{active:h.value===p}]),style:e.normalizeStyle(M(r.color)),onClick:v=>$(p)},e.toDisplayString(r.name),15,oe))),128))]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[C.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"detail-modal",onClick:e.withModifiers(k,["self"])},[e.createElementVNode("div",{class:"detail-modal-content",style:e.normalizeStyle({borderColor:(i=y.value)==null?void 0:i.color})},[e.createElementVNode("div",{class:"detail-modal-header",style:e.normalizeStyle({background:(m=y.value)==null?void 0:m.color})},[e.createElementVNode("span",ne,e.toDisplayString((n=y.value)==null?void 0:n.name)+" - 详细数据",1),e.createElementVNode("button",{class:"detail-close-btn",onClick:k},"×")],4),e.createElementVNode("div",re,[e.createElementVNode("div",se,[e.createElementVNode("div",{class:"summary-value",style:e.normalizeStyle({color:(d=y.value)==null?void 0:d.color})},e.toDisplayString((o=(c=y.value)==null?void 0:c.value)!=null?o:0)+"% ",5),t[9]||(t[9]=e.createElementVNode("div",{class:"summary-label"},"当前占比",-1))]),e.createElementVNode("div",ce,[t[10]||(t[10]=e.createElementVNode("div",{class:"detail-list-header"},[e.createElementVNode("span",null,"区域编号"),e.createElementVNode("span",null,"状态"),e.createElementVNode("span",null,"更新时间")],-1)),e.createElementVNode("div",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,r=>{var p,v;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"detail-list-item"},[e.createElementVNode("span",null,e.toDisplayString(r.id),1),e.createElementVNode("span",{class:"status-tag",style:e.normalizeStyle({background:(p=y.value)==null?void 0:p.color})},e.toDisplayString((v=y.value)==null?void 0:v.name),5),e.createElementVNode("span",null,e.toDisplayString(r.time),1)])}),128)),D.value.length===0?(e.openBlock(),e.createElementBlock("div",de," 暂无数据 ")):e.createCommentVNode("",!0)])])])],4)])):e.createCommentVNode("",!0)])),e.renderSlot(a.$slots,"default",{},void 0,!0)])}}})),ge=S._export_sfc(ye,[["__scopeId","data-v-817dd801"]]);exports.default=ge;
@@ -28,9 +28,9 @@ var B = (p, s, u) => new Promise((v, _) => {
28
28
  });
29
29
  import { defineComponent as be, reactive as ye, ref as $, computed as V, openBlock as Ce, createElementBlock as Se, normalizeStyle as z, createElementVNode as j, toDisplayString as G, unref as W, renderSlot as xe } from "vue";
30
30
  import "html2canvas";
31
- import { d as H, a as _e, _ as De } from "./index-YNdVib_6.js";
31
+ import { d as H, a as _e, _ as De } from "./index-CqVPeq0-.js";
32
32
  import "element-plus";
33
- import { E as Ae } from "./EChartComponentBase-BmS2KONN.js";
33
+ import { E as Ae } from "./EChartComponentBase-B-VNAC8K.js";
34
34
  import "./index-eIsZnzkc.js";
35
35
  import { A as Oe, D as Ne } from "./ele-lin-icon-Dax-ZiWV.js";
36
36
  import { cn as k } from "./echarts-Bp7QN4X6.js";
@@ -1 +1 @@
1
- "use strict";var le=Object.defineProperty,ie=Object.defineProperties;var ce=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols,de=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=Reflect.get;var J=(v,s,f)=>s in v?le(v,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):v[s]=f,Q=(v,s)=>{for(var f in s||(s={}))ue.call(s,f)&&J(v,f,s[f]);if(K)for(var f of K(s))fe.call(s,f)&&J(v,f,s[f]);return v},X=(v,s)=>ie(v,ce(s));var Z=(v,s,f)=>me(de(v),f,s);var q=(v,s,f)=>new Promise((h,D)=>{var G=p=>{try{w(f.next(p))}catch(I){D(I)}},L=p=>{try{w(f.throw(p))}catch(I){D(I)}},w=p=>p.done?h(p.value):Promise.resolve(p.value).then(G,L);w((f=f.apply(v,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const Y=require("./index-6QhTSPkL.cjs");require("element-plus");const pe=require("./EChartComponentBase-CMN_pOMr.cjs");require("./index-CJgyJTvc.cjs");const ee=require("./ele-lin-icon-Dke_1AmT.cjs"),V=require("./echarts-BB8O2KSA.cjs"),ve={class:"panel-header"},he={class:"header-left"},ge={class:"header-title"},ye={class:"header-right"},be={class:"chart-area"},Ce={class:"y-axis-label"},Se=["id"],xe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"监测点速度曲线",NAME_EN:"Speed Curve",ORDER:1,PLATFORM:["pc","screen"]},_e={title:{value:"监测点速度曲线 (24h)",type:"string",label:"component.speedCurve.title"},yAxisLabel:{value:"速度(mm/h)",type:"string",label:"component.speedCurve.yAxisLabel"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},lineColor:{value:"#ff6b6b",type:"color",label:"component.speedCurve.lineColor"},gradientStart:{value:"rgba(255, 107, 107, 0.3)",type:"color",label:"component.speedCurve.gradientStart"},gradientEnd:{value:"rgba(255, 107, 107, 0.05)",type:"color",label:"component.speedCurve.gradientEnd"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},jumpUrl:{value:"",type:"string",label:"component.speedCurve.jumpUrl"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},De=[{name:"GNSS55",fv:"speed",fvDeviceName:"deviceId",object_id:""}],Ae=["name","fv","fvDeviceName","object_id"],Ne=["mosaic","statistics","statisticsRealtime"],Oe={useAlias:!1,multiObject:!1,source:"mosaic"},je={DEFAULT:xe,OPTIONS:_e,DATA:De,PARAMS:Ae,SOURCE:Ne,COMMON:Oe},Le=o.defineComponent(X(Q({},je),{__name:"speedCurve",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(v){const s=v;class f extends pe.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId=""}extractStyles(){var i,c,b,n,u,g,x,C,y,S;const{options:e}=this.props.conf,t=((i=e==null?void 0:e.linkChannel)==null?void 0:i.value)||"gnss",a=((c=e==null?void 0:e.customChannel)==null?void 0:c.value)||"",l=t==="custom"&&a?a:t;return{title:((b=e==null?void 0:e.title)==null?void 0:b.value)||"监测点速度曲线 (24h)",yAxisLabel:((n=e==null?void 0:e.yAxisLabel)==null?void 0:n.value)||"速度(mm/h)",bgColor:((u=e==null?void 0:e.bgColor)==null?void 0:u.value)||"#ffffff",lineColor:((g=e==null?void 0:e.lineColor)==null?void 0:g.value)||"#ff6b6b",gradientStart:((x=e==null?void 0:e.gradientStart)==null?void 0:x.value)||"rgba(255, 107, 107, 0.3)",gradientEnd:((C=e==null?void 0:e.gradientEnd)==null?void 0:C.value)||"rgba(255, 107, 107, 0.05)",textColor:((y=e==null?void 0:e.textColor)==null?void 0:y.value)||"#333333",jumpUrl:((S=e==null?void 0:e.jumpUrl)==null?void 0:S.value)||"",linkChannel:l}}getChartOption(){const e=this.Style.value,t=this.props.mode==="preview",a=t?[]:Array.from({length:24},(i,c)=>`${c}h`),l=t?[]:[1.5,3.2,5.1,6.5,6.6,7.2,7.8,8.4,8.9,9.2,9.5,9.8,10.2,10.5,10.3,10,9.8,9.6,9.5,9.6,9.7,9.8,9.85,9.85];return{grid:{top:40,right:20,bottom:30,left:50},xAxis:{type:"category",data:a,axisLine:{lineStyle:{color:"#e0e0e0"}},axisLabel:{color:e.textColor,fontSize:12},axisTick:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:e.textColor,fontSize:12},splitLine:{lineStyle:{color:"#f0f0f0",type:"dashed"}}},series:[{type:"line",data:l,smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:e.lineColor,width:2},itemStyle:{color:e.lineColor,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:e.gradientStart},{offset:1,color:e.gradientEnd}])}}],tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#eee",textStyle:{color:"#333"},formatter:i=>{const c=i[0];return`${c.name}<br/>速度: <strong>${c.value} mm/h</strong>`}}}}initHistory(){return q(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const t=e.options.points,a=Object.prototype.hasOwnProperty.call(e.options,"points");(!t||Number(t)<24)&&(e.options.points=24);try{return yield Z(f.prototype,this,"initHistory").call(this)}finally{a?e.options.points=t:delete e.options.points}})}setHistoryData(e){var y,S,m,_,A,M;if(!this.hasData()||!this.chartObj||!e)return;const t=super.setHistoryData(e);if(!(t!=null&&t.length))return;const a=t[0];if(!((y=a==null?void 0:a.time)!=null&&y.length))return;const l=d=>{if(d==null||d===""||d==="-")return null;const N=Number(d);return Number.isFinite(N)?N:null},i=a.time.map((d,N)=>{var k;return{t:String(d!=null?d:""),v:l((k=a.data)==null?void 0:k[N])}});i.sort((d,N)=>new Date(d.t).getTime()-new Date(N.t).getTime());const c=i.slice(-24),b=c.map(d=>this.formatTimeLabel(d.t)),n=c.map(d=>d.v);for(let d=n.length-1;d>=0;d--)if(n[d]!=null){E.value=n[d];break}const u=this.chartObj.getOption();if(!u.xAxis||!u.series)return;const g=H.value,x=R(g);u.xAxis[0].data=b,u.series[0]&&(u.series[0].data=n,u.series[0].lineStyle={color:g,width:2},u.series[0].itemStyle={color:g,borderColor:"#fff",borderWidth:2},u.series[0].areaStyle={color:new V.LinearGradient(0,0,0,1,[{offset:0,color:x.start},{offset:1,color:x.end}])}),this.updateChart(u);const C=((m=(S=this.props.conf)==null?void 0:S.common)==null?void 0:m.object_id)||((M=(A=(_=this.props.conf)==null?void 0:_.data)==null?void 0:A[0])==null?void 0:M.object_id)||"";C&&this.setCurrentObjectId(String(C))}setSocketData(e){var b,n,u,g,x,C;if(!this.chartObj||!e)return;const t=((u=(n=(b=this.props.conf)==null?void 0:b.data)==null?void 0:n[0])==null?void 0:u.fv)||"speed",a=((C=(x=(g=this.props.conf)==null?void 0:g.data)==null?void 0:x[0])==null?void 0:C.fvDeviceName)||"",i=this.getSource()==="mosaic"?e.datetime:e.start_time,c=this.extractDataValue(e,t);if(a){const y=this.extractDataValue(e,a);y!=null&&(I.value=String(y))}if(c!=null&&i){const y=parseFloat(String(c));isNaN(y)||(E.value=y);const S=this.formatTimeLabel(i),m=this.chartObj.getOption();m.xAxis[0].data.push(S),m.series[0].data.push(c),m.xAxis[0].data.length>24&&(m.xAxis[0].data.shift(),m.series[0].data.shift());const _=H.value,A=R(_);m.series[0].lineStyle={color:_,width:2},m.series[0].itemStyle={color:_,borderColor:"#fff",borderWidth:2},m.series[0].areaStyle={color:new V.LinearGradient(0,0,0,1,[{offset:0,color:A.start},{offset:1,color:A.end}])},this.chartObj.setOption(m)}}formatTimeLabel(e){try{const t=e.split(".");return t.length>0?t[0]:e}catch(t){return e}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}onLinkEvent(e){se(e)}}const h=new f(s,"speedCurve");h.setupLifecycle();const D=h.getStyle(),G=h.getEchartId(),L=o.reactive({dateRange:[Y.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),Y.dayjs().format("YYYY/MM/DD HH:mm")]}),w=o.ref(0),p=o.ref(null),I=o.ref(""),E=o.ref(null),U=o.ref(null),P=r=>{const e=U.value;if(!e||e.length===0)return{alertText:"正常",alertColor:"#52c41a"};const t=Math.abs(r);for(const l of e)if(t>=l.minValue&&t<l.maxValue)return{alertText:l.name,alertColor:l.color};const a=e[e.length-1];return{alertText:a.name,alertColor:a.color}},W=[{name:"GNSS55",speed:9.85,data:[1.5,3.2,5.1,6.5,6.6,7.2,7.8,8.4,8.9,9.2,9.5,9.8,10.2,10.5,10.3,10,9.8,9.6,9.5,9.6,9.7,9.8,9.85,9.85]},{name:"GNSS110",speed:8.1,data:[2,2.5,3,3.8,4.5,5.2,5.8,6.3,6.8,7.2,7.5,7.8,8,8.1,8.1,8,7.9,7.8,7.9,8,8.05,8.08,8.1,8.1]},{name:"GNSS33",speed:5.85,data:[1,1.5,2,2.8,3.2,3.8,4.2,4.6,5,5.3,5.5,5.7,5.8,5.85,5.85,5.8,5.7,5.6,5.5,5.6,5.7,5.8,5.85,5.85]},{name:"GNSS143",speed:5.85,data:[.8,1.2,1.8,2.5,3,3.5,4,4.5,5,5.4,5.6,5.8,5.85,5.85,5.8,5.75,5.7,5.65,5.7,5.75,5.8,5.82,5.85,5.85]},{name:"GNSS66",speed:4.58,data:[.5,.8,1.2,1.8,2.2,2.6,3,3.4,3.7,4,4.2,4.4,4.5,4.55,4.58,4.58,4.55,4.5,4.45,4.48,4.52,4.55,4.58,4.58]}];o.computed(()=>W[w.value]||W[0]);const te=()=>{var t;return{deviceNameField:((((t=s.conf)==null?void 0:t.data)||[])[0]||{}).fvDeviceName||"deviceId"}},z=o.computed(()=>{var t;const{deviceNameField:r}=te();if(I.value)return I.value;if(p.value&&p.value[r])return p.value[r];const e=(t=s.conf)==null?void 0:t.data;if(e&&e.length>w.value){const a=e[w.value];if(a!=null&&a.object_id&&(a!=null&&a.name))return a.name}return"--"}),H=o.computed(()=>{var r;return(r=p.value)!=null&&r.alertColor?p.value.alertColor:E.value!==null?P(E.value).alertColor:"#999999"}),ae=o.computed(()=>{var r;return(r=p.value)!=null&&r.alertText?p.value.alertText:E.value!==null?P(E.value).alertText:"--"}),re=o.computed(()=>({backgroundColor:D.value.bgColor,color:D.value.textColor})),oe=()=>{var t,a,l,i;if(s.mode==="edit")return;const r=h.getCurrentObjectId()||((l=(a=(t=s.conf)==null?void 0:t.data)==null?void 0:a[0])==null?void 0:l.object_id)||"";r&&h.publish({type:"filter",objectId:r,point:z.value,area:((i=p.value)==null?void 0:i.area)||"",dateRange:[...L.dateRange]});const e=D.value.jumpUrl;e&&window.open(e,"_blank")},F=()=>{var e,t;return((t=(((e=s.conf)==null?void 0:e.data)||[])[0])==null?void 0:t.fv)||""},ne=r=>q(null,null,function*(){var b;if(!r||s.mode!=="preview")return;const e=h.getCurrentObjectId();if(e===r)return;console.log(`[speedCurve] 切换订阅: ${e} → ${r}`),h.setCurrentObjectId(r);const t=(b=h.session)==null?void 0:b.value,a=s.conf.id;t!=null&&t.componentRequests&&a&&t.componentRequests.delete(a);const{data:l,common:i}=s.conf;Array.isArray(l)&&l.forEach(n=>{n.object_id=r}),i!=null&&i.multiObject||i&&(i.object_id=r);try{const n=F()||"speed",u=Y.dayjs(L.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),g=Y.dayjs(L.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),x=Y.dayjs(L.dateRange[1],"YYYY/MM/DD HH:mm").diff(Y.dayjs(L.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),C=Math.max(60,Math.floor(x/24)),y=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:u,end_time:g,time_span:C,time_swing:C,keys:[n],object_id:r}],S=yield new Promise(A=>{Y.api.platform(M=>{A(M.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:y})}),m=Array.isArray(S)?S:[S],_=m[0]&&typeof m[0]=="object"&&Array.isArray(m[0].data)?m[0].data:Array.isArray(m[0])?m[0]:[];if(Array.isArray(_)&&_.length>0){const A=[..._].sort((O,j)=>{const T=O.time||O.datetime||"",$=j.time||j.datetime||"";return new Date(T).getTime()-new Date($).getTime()}),M=[],d=[];A.forEach(O=>{const j=O.time||O.datetime,T=O[n];if(j&&T!=null){const $=parseFloat(T);isNaN($)||(M.push(j.split(".")[0]),d.push($))}});const N=M.slice(-24),k=d.slice(-24);if(N.length>0){E.value=k[k.length-1];const O=h.getChartInstance();if(O){const j=H.value,T=R(j);O.setOption({xAxis:[{data:N}],series:[{data:k,lineStyle:{color:j},itemStyle:{color:j,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:T.start},{offset:1,color:T.end}])}}]})}}}console.log(`[speedCurve] 历史数据加载完成,时间范围: ${u} ~ ${g}`)}catch(n){console.warn("[speedCurve] 历史数据获取失败:",n)}t&&t.registerComponent({id:a,request:null,onUpdate:(n,u)=>{n==="realtime"&&h.setSocketData(u)}});const c=h.getSource();h.subscribeBySource(c,r)}),se=r=>{var b;console.log("[speedCurve] 收到联动事件:",r);const{payload:e}=r,{objectId:t,deviceId:a}=e;e.dateRange&&(L.dateRange=e.dateRange),p.value=e,e.alertLevels&&Array.isArray(e.alertLevels)&&(U.value=e.alertLevels);const l=F()||"speed";if(e[l]!==void 0){const n=parseFloat(String(e[l]));isNaN(n)||(E.value=n)}const i=((b=s.conf)==null?void 0:b.data)||[];let c=null;if(t&&(c=i.find(n=>String(n.object_id)===String(t))),!c&&a&&(c=i.find(n=>n.deviceId===a||n.name===a)),c&&e){const n=c.fv||"speed",u=e[n];console.log(`[speedCurve] 匹配 object_id=${t}, 使用字段 ${n}=${u}`);const g=i.indexOf(c);g!==-1&&(w.value=g),B(e)}else e&&B(e);t&&ne(t)},R=r=>{const e=r.replace("#",""),t=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),l=parseInt(e.substring(4,6),16);return{start:`rgba(${t}, ${a}, ${l}, 0.3)`,end:`rgba(${t}, ${a}, ${l}, 0.05)`}},B=r=>{const e=h.getChartInstance();if(!e)return;const t=H.value,a=R(t),l=F()||"speed";r.data&&Array.isArray(r.data)?e.setOption({series:[{data:r.data,lineStyle:{color:t},itemStyle:{color:t,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:a.start},{offset:1,color:a.end}])}}]}):r[l]!==void 0?(console.log(`[speedCurve] 使用字段 ${l} 的值:`,r[l]),e.setOption({series:[{lineStyle:{color:t},itemStyle:{color:t,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:a.start},{offset:1,color:a.end}])}}]})):e.setOption({series:[{lineStyle:{color:t},itemStyle:{color:t,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:a.start},{offset:1,color:a.end}])}}]})};return(r,e)=>(o.openBlock(),o.createElementBlock("div",{class:"speed-curve-wrapper",style:o.normalizeStyle(re.value)},[o.createElementVNode("div",ve,[o.createElementVNode("div",he,[e[0]||(e[0]=o.createElementVNode("div",{class:"header-indicator"},null,-1)),o.createElementVNode("span",ge,o.toDisplayString(o.unref(D).title),1)]),o.createElementVNode("div",ye,[o.createElementVNode("span",{class:"device-name",style:o.normalizeStyle({color:H.value})},o.toDisplayString(z.value)+" - "+o.toDisplayString(ae.value),5)])]),o.createElementVNode("div",be,[o.createElementVNode("div",Ce,o.toDisplayString(o.unref(D).yAxisLabel),1),o.createElementVNode("div",{id:o.unref(G),class:"chart-container",style:o.normalizeStyle({cursor:o.unref(D).jumpUrl?"pointer":"default"}),onClick:oe},null,12,Se)]),o.renderSlot(r.$slots,"default",{},void 0,!0)],4))}})),we=Y._export_sfc(Le,[["__scopeId","data-v-1a8b5d28"]]);exports.default=we;
1
+ "use strict";var le=Object.defineProperty,ie=Object.defineProperties;var ce=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols,de=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=Reflect.get;var J=(v,s,f)=>s in v?le(v,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):v[s]=f,Q=(v,s)=>{for(var f in s||(s={}))ue.call(s,f)&&J(v,f,s[f]);if(K)for(var f of K(s))fe.call(s,f)&&J(v,f,s[f]);return v},X=(v,s)=>ie(v,ce(s));var Z=(v,s,f)=>me(de(v),f,s);var q=(v,s,f)=>new Promise((h,D)=>{var G=p=>{try{w(f.next(p))}catch(I){D(I)}},L=p=>{try{w(f.throw(p))}catch(I){D(I)}},w=p=>p.done?h(p.value):Promise.resolve(p.value).then(G,L);w((f=f.apply(v,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const Y=require("./index-OgmTZiO-.cjs");require("element-plus");const pe=require("./EChartComponentBase-C2sxqwSE.cjs");require("./index-CJgyJTvc.cjs");const ee=require("./ele-lin-icon-Dke_1AmT.cjs"),V=require("./echarts-BB8O2KSA.cjs"),ve={class:"panel-header"},he={class:"header-left"},ge={class:"header-title"},ye={class:"header-right"},be={class:"chart-area"},Ce={class:"y-axis-label"},Se=["id"],xe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"监测点速度曲线",NAME_EN:"Speed Curve",ORDER:1,PLATFORM:["pc","screen"]},_e={title:{value:"监测点速度曲线 (24h)",type:"string",label:"component.speedCurve.title"},yAxisLabel:{value:"速度(mm/h)",type:"string",label:"component.speedCurve.yAxisLabel"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},lineColor:{value:"#ff6b6b",type:"color",label:"component.speedCurve.lineColor"},gradientStart:{value:"rgba(255, 107, 107, 0.3)",type:"color",label:"component.speedCurve.gradientStart"},gradientEnd:{value:"rgba(255, 107, 107, 0.05)",type:"color",label:"component.speedCurve.gradientEnd"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},jumpUrl:{value:"",type:"string",label:"component.speedCurve.jumpUrl"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},De=[{name:"GNSS55",fv:"speed",fvDeviceName:"deviceId",object_id:""}],Ae=["name","fv","fvDeviceName","object_id"],Ne=["mosaic","statistics","statisticsRealtime"],Oe={useAlias:!1,multiObject:!1,source:"mosaic"},je={DEFAULT:xe,OPTIONS:_e,DATA:De,PARAMS:Ae,SOURCE:Ne,COMMON:Oe},Le=o.defineComponent(X(Q({},je),{__name:"speedCurve",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(v){const s=v;class f extends pe.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId=""}extractStyles(){var i,c,b,n,u,g,x,C,y,S;const{options:e}=this.props.conf,t=((i=e==null?void 0:e.linkChannel)==null?void 0:i.value)||"gnss",a=((c=e==null?void 0:e.customChannel)==null?void 0:c.value)||"",l=t==="custom"&&a?a:t;return{title:((b=e==null?void 0:e.title)==null?void 0:b.value)||"监测点速度曲线 (24h)",yAxisLabel:((n=e==null?void 0:e.yAxisLabel)==null?void 0:n.value)||"速度(mm/h)",bgColor:((u=e==null?void 0:e.bgColor)==null?void 0:u.value)||"#ffffff",lineColor:((g=e==null?void 0:e.lineColor)==null?void 0:g.value)||"#ff6b6b",gradientStart:((x=e==null?void 0:e.gradientStart)==null?void 0:x.value)||"rgba(255, 107, 107, 0.3)",gradientEnd:((C=e==null?void 0:e.gradientEnd)==null?void 0:C.value)||"rgba(255, 107, 107, 0.05)",textColor:((y=e==null?void 0:e.textColor)==null?void 0:y.value)||"#333333",jumpUrl:((S=e==null?void 0:e.jumpUrl)==null?void 0:S.value)||"",linkChannel:l}}getChartOption(){const e=this.Style.value,t=this.props.mode==="preview",a=t?[]:Array.from({length:24},(i,c)=>`${c}h`),l=t?[]:[1.5,3.2,5.1,6.5,6.6,7.2,7.8,8.4,8.9,9.2,9.5,9.8,10.2,10.5,10.3,10,9.8,9.6,9.5,9.6,9.7,9.8,9.85,9.85];return{grid:{top:40,right:20,bottom:30,left:50},xAxis:{type:"category",data:a,axisLine:{lineStyle:{color:"#e0e0e0"}},axisLabel:{color:e.textColor,fontSize:12},axisTick:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{color:e.textColor,fontSize:12},splitLine:{lineStyle:{color:"#f0f0f0",type:"dashed"}}},series:[{type:"line",data:l,smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:e.lineColor,width:2},itemStyle:{color:e.lineColor,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:e.gradientStart},{offset:1,color:e.gradientEnd}])}}],tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#eee",textStyle:{color:"#333"},formatter:i=>{const c=i[0];return`${c.name}<br/>速度: <strong>${c.value} mm/h</strong>`}}}}initHistory(){return q(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const t=e.options.points,a=Object.prototype.hasOwnProperty.call(e.options,"points");(!t||Number(t)<24)&&(e.options.points=24);try{return yield Z(f.prototype,this,"initHistory").call(this)}finally{a?e.options.points=t:delete e.options.points}})}setHistoryData(e){var y,S,m,_,A,M;if(!this.hasData()||!this.chartObj||!e)return;const t=super.setHistoryData(e);if(!(t!=null&&t.length))return;const a=t[0];if(!((y=a==null?void 0:a.time)!=null&&y.length))return;const l=d=>{if(d==null||d===""||d==="-")return null;const N=Number(d);return Number.isFinite(N)?N:null},i=a.time.map((d,N)=>{var k;return{t:String(d!=null?d:""),v:l((k=a.data)==null?void 0:k[N])}});i.sort((d,N)=>new Date(d.t).getTime()-new Date(N.t).getTime());const c=i.slice(-24),b=c.map(d=>this.formatTimeLabel(d.t)),n=c.map(d=>d.v);for(let d=n.length-1;d>=0;d--)if(n[d]!=null){E.value=n[d];break}const u=this.chartObj.getOption();if(!u.xAxis||!u.series)return;const g=H.value,x=R(g);u.xAxis[0].data=b,u.series[0]&&(u.series[0].data=n,u.series[0].lineStyle={color:g,width:2},u.series[0].itemStyle={color:g,borderColor:"#fff",borderWidth:2},u.series[0].areaStyle={color:new V.LinearGradient(0,0,0,1,[{offset:0,color:x.start},{offset:1,color:x.end}])}),this.updateChart(u);const C=((m=(S=this.props.conf)==null?void 0:S.common)==null?void 0:m.object_id)||((M=(A=(_=this.props.conf)==null?void 0:_.data)==null?void 0:A[0])==null?void 0:M.object_id)||"";C&&this.setCurrentObjectId(String(C))}setSocketData(e){var b,n,u,g,x,C;if(!this.chartObj||!e)return;const t=((u=(n=(b=this.props.conf)==null?void 0:b.data)==null?void 0:n[0])==null?void 0:u.fv)||"speed",a=((C=(x=(g=this.props.conf)==null?void 0:g.data)==null?void 0:x[0])==null?void 0:C.fvDeviceName)||"",i=this.getSource()==="mosaic"?e.datetime:e.start_time,c=this.extractDataValue(e,t);if(a){const y=this.extractDataValue(e,a);y!=null&&(I.value=String(y))}if(c!=null&&i){const y=parseFloat(String(c));isNaN(y)||(E.value=y);const S=this.formatTimeLabel(i),m=this.chartObj.getOption();m.xAxis[0].data.push(S),m.series[0].data.push(c),m.xAxis[0].data.length>24&&(m.xAxis[0].data.shift(),m.series[0].data.shift());const _=H.value,A=R(_);m.series[0].lineStyle={color:_,width:2},m.series[0].itemStyle={color:_,borderColor:"#fff",borderWidth:2},m.series[0].areaStyle={color:new V.LinearGradient(0,0,0,1,[{offset:0,color:A.start},{offset:1,color:A.end}])},this.chartObj.setOption(m)}}formatTimeLabel(e){try{const t=e.split(".");return t.length>0?t[0]:e}catch(t){return e}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}onLinkEvent(e){se(e)}}const h=new f(s,"speedCurve");h.setupLifecycle();const D=h.getStyle(),G=h.getEchartId(),L=o.reactive({dateRange:[Y.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),Y.dayjs().format("YYYY/MM/DD HH:mm")]}),w=o.ref(0),p=o.ref(null),I=o.ref(""),E=o.ref(null),U=o.ref(null),P=r=>{const e=U.value;if(!e||e.length===0)return{alertText:"正常",alertColor:"#52c41a"};const t=Math.abs(r);for(const l of e)if(t>=l.minValue&&t<l.maxValue)return{alertText:l.name,alertColor:l.color};const a=e[e.length-1];return{alertText:a.name,alertColor:a.color}},W=[{name:"GNSS55",speed:9.85,data:[1.5,3.2,5.1,6.5,6.6,7.2,7.8,8.4,8.9,9.2,9.5,9.8,10.2,10.5,10.3,10,9.8,9.6,9.5,9.6,9.7,9.8,9.85,9.85]},{name:"GNSS110",speed:8.1,data:[2,2.5,3,3.8,4.5,5.2,5.8,6.3,6.8,7.2,7.5,7.8,8,8.1,8.1,8,7.9,7.8,7.9,8,8.05,8.08,8.1,8.1]},{name:"GNSS33",speed:5.85,data:[1,1.5,2,2.8,3.2,3.8,4.2,4.6,5,5.3,5.5,5.7,5.8,5.85,5.85,5.8,5.7,5.6,5.5,5.6,5.7,5.8,5.85,5.85]},{name:"GNSS143",speed:5.85,data:[.8,1.2,1.8,2.5,3,3.5,4,4.5,5,5.4,5.6,5.8,5.85,5.85,5.8,5.75,5.7,5.65,5.7,5.75,5.8,5.82,5.85,5.85]},{name:"GNSS66",speed:4.58,data:[.5,.8,1.2,1.8,2.2,2.6,3,3.4,3.7,4,4.2,4.4,4.5,4.55,4.58,4.58,4.55,4.5,4.45,4.48,4.52,4.55,4.58,4.58]}];o.computed(()=>W[w.value]||W[0]);const te=()=>{var t;return{deviceNameField:((((t=s.conf)==null?void 0:t.data)||[])[0]||{}).fvDeviceName||"deviceId"}},z=o.computed(()=>{var t;const{deviceNameField:r}=te();if(I.value)return I.value;if(p.value&&p.value[r])return p.value[r];const e=(t=s.conf)==null?void 0:t.data;if(e&&e.length>w.value){const a=e[w.value];if(a!=null&&a.object_id&&(a!=null&&a.name))return a.name}return"--"}),H=o.computed(()=>{var r;return(r=p.value)!=null&&r.alertColor?p.value.alertColor:E.value!==null?P(E.value).alertColor:"#999999"}),ae=o.computed(()=>{var r;return(r=p.value)!=null&&r.alertText?p.value.alertText:E.value!==null?P(E.value).alertText:"--"}),re=o.computed(()=>({backgroundColor:D.value.bgColor,color:D.value.textColor})),oe=()=>{var t,a,l,i;if(s.mode==="edit")return;const r=h.getCurrentObjectId()||((l=(a=(t=s.conf)==null?void 0:t.data)==null?void 0:a[0])==null?void 0:l.object_id)||"";r&&h.publish({type:"filter",objectId:r,point:z.value,area:((i=p.value)==null?void 0:i.area)||"",dateRange:[...L.dateRange]});const e=D.value.jumpUrl;e&&window.open(e,"_blank")},F=()=>{var e,t;return((t=(((e=s.conf)==null?void 0:e.data)||[])[0])==null?void 0:t.fv)||""},ne=r=>q(null,null,function*(){var b;if(!r||s.mode!=="preview")return;const e=h.getCurrentObjectId();if(e===r)return;console.log(`[speedCurve] 切换订阅: ${e} → ${r}`),h.setCurrentObjectId(r);const t=(b=h.session)==null?void 0:b.value,a=s.conf.id;t!=null&&t.componentRequests&&a&&t.componentRequests.delete(a);const{data:l,common:i}=s.conf;Array.isArray(l)&&l.forEach(n=>{n.object_id=r}),i!=null&&i.multiObject||i&&(i.object_id=r);try{const n=F()||"speed",u=Y.dayjs(L.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),g=Y.dayjs(L.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),x=Y.dayjs(L.dateRange[1],"YYYY/MM/DD HH:mm").diff(Y.dayjs(L.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),C=Math.max(60,Math.floor(x/24)),y=[{block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:u,end_time:g,time_span:C,time_swing:C,keys:[n],object_id:r}],S=yield new Promise(A=>{Y.api.platform(M=>{A(M.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:y})}),m=Array.isArray(S)?S:[S],_=m[0]&&typeof m[0]=="object"&&Array.isArray(m[0].data)?m[0].data:Array.isArray(m[0])?m[0]:[];if(Array.isArray(_)&&_.length>0){const A=[..._].sort((O,j)=>{const T=O.time||O.datetime||"",$=j.time||j.datetime||"";return new Date(T).getTime()-new Date($).getTime()}),M=[],d=[];A.forEach(O=>{const j=O.time||O.datetime,T=O[n];if(j&&T!=null){const $=parseFloat(T);isNaN($)||(M.push(j.split(".")[0]),d.push($))}});const N=M.slice(-24),k=d.slice(-24);if(N.length>0){E.value=k[k.length-1];const O=h.getChartInstance();if(O){const j=H.value,T=R(j);O.setOption({xAxis:[{data:N}],series:[{data:k,lineStyle:{color:j},itemStyle:{color:j,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:T.start},{offset:1,color:T.end}])}}]})}}}console.log(`[speedCurve] 历史数据加载完成,时间范围: ${u} ~ ${g}`)}catch(n){console.warn("[speedCurve] 历史数据获取失败:",n)}t&&t.registerComponent({id:a,request:null,onUpdate:(n,u)=>{n==="realtime"&&h.setSocketData(u)}});const c=h.getSource();h.subscribeBySource(c,r)}),se=r=>{var b;console.log("[speedCurve] 收到联动事件:",r);const{payload:e}=r,{objectId:t,deviceId:a}=e;e.dateRange&&(L.dateRange=e.dateRange),p.value=e,e.alertLevels&&Array.isArray(e.alertLevels)&&(U.value=e.alertLevels);const l=F()||"speed";if(e[l]!==void 0){const n=parseFloat(String(e[l]));isNaN(n)||(E.value=n)}const i=((b=s.conf)==null?void 0:b.data)||[];let c=null;if(t&&(c=i.find(n=>String(n.object_id)===String(t))),!c&&a&&(c=i.find(n=>n.deviceId===a||n.name===a)),c&&e){const n=c.fv||"speed",u=e[n];console.log(`[speedCurve] 匹配 object_id=${t}, 使用字段 ${n}=${u}`);const g=i.indexOf(c);g!==-1&&(w.value=g),B(e)}else e&&B(e);t&&ne(t)},R=r=>{const e=r.replace("#",""),t=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),l=parseInt(e.substring(4,6),16);return{start:`rgba(${t}, ${a}, ${l}, 0.3)`,end:`rgba(${t}, ${a}, ${l}, 0.05)`}},B=r=>{const e=h.getChartInstance();if(!e)return;const t=H.value,a=R(t),l=F()||"speed";r.data&&Array.isArray(r.data)?e.setOption({series:[{data:r.data,lineStyle:{color:t},itemStyle:{color:t,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:a.start},{offset:1,color:a.end}])}}]}):r[l]!==void 0?(console.log(`[speedCurve] 使用字段 ${l} 的值:`,r[l]),e.setOption({series:[{lineStyle:{color:t},itemStyle:{color:t,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:a.start},{offset:1,color:a.end}])}}]})):e.setOption({series:[{lineStyle:{color:t},itemStyle:{color:t,borderColor:"#fff",borderWidth:2},areaStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:a.start},{offset:1,color:a.end}])}}]})};return(r,e)=>(o.openBlock(),o.createElementBlock("div",{class:"speed-curve-wrapper",style:o.normalizeStyle(re.value)},[o.createElementVNode("div",ve,[o.createElementVNode("div",he,[e[0]||(e[0]=o.createElementVNode("div",{class:"header-indicator"},null,-1)),o.createElementVNode("span",ge,o.toDisplayString(o.unref(D).title),1)]),o.createElementVNode("div",ye,[o.createElementVNode("span",{class:"device-name",style:o.normalizeStyle({color:H.value})},o.toDisplayString(z.value)+" - "+o.toDisplayString(ae.value),5)])]),o.createElementVNode("div",be,[o.createElementVNode("div",Ce,o.toDisplayString(o.unref(D).yAxisLabel),1),o.createElementVNode("div",{id:o.unref(G),class:"chart-container",style:o.normalizeStyle({cursor:o.unref(D).jumpUrl?"pointer":"default"}),onClick:oe},null,12,Se)]),o.renderSlot(r.$slots,"default",{},void 0,!0)],4))}})),we=Y._export_sfc(Le,[["__scopeId","data-v-1a8b5d28"]]);exports.default=we;
@@ -0,0 +1,2 @@
1
+ "use strict";var D=Object.defineProperty,I=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var T=(h,s,d)=>s in h?D(h,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):h[s]=d,F=(h,s)=>{for(var d in s||(s={}))V.call(s,d)&&T(h,d,s[d]);if(E)for(var d of E(s))W.call(s,d)&&T(h,d,s[d]);return h},v=(h,s)=>I(h,z(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),f=require("./index-OgmTZiO-.cjs");require("element-plus");const j=require("./EChartComponentBase-C2sxqwSE.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),A=require("./installCanvasRenderer-CyhM1Qpl.cjs"),q=require("./install-DV5cEgNV.cjs"),P=require("./install-CltTFs4e.cjs"),$=require("./install-C8buXQPI.cjs"),X=require("./install-Ch5d8i37.cjs"),M="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='14'%20width='4'%20height='7'%20rx='1'%20fill='currentColor'%20opacity='0.5'/%3e%3crect%20x='7'%20y='14'%20width='4'%20height='7'%20rx='1'%20fill='currentColor'/%3e%3crect%20x='11'%20y='8'%20width='4'%20height='13'%20rx='1'%20fill='currentColor'%20opacity='0.5'/%3e%3crect%20x='15'%20y='8'%20width='4'%20height='13'%20rx='1'%20fill='currentColor'/%3e%3c/svg%3e",H="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='14'%20width='4'%20height='7'%20rx='1'%20fill='%23FFFFFF'%20opacity='0.5'/%3e%3crect%20x='7'%20y='14'%20width='4'%20height='7'%20rx='1'%20fill='%23FFFFFF'/%3e%3crect%20x='11'%20y='8'%20width='4'%20height='13'%20rx='1'%20fill='%23FFFFFF'%20opacity='0.5'/%3e%3crect%20x='15'%20y='8'%20width='4'%20height='13'%20rx='1'%20fill='%23FFFFFF'/%3e%3c/svg%3e",G={class:"mix-body"},K=["id"],J={DEFAULT_ICON:M,ACTIVE_ICON:H,NAME_CN:"堆积柱状图",NAME_EN:"Stacked Bar Chart",ORDER:2,PLATFORM:["pc","screen","mobile"]},Q={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},Y=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1},{name:"参数二",fv:"",object_id:"",color:"#3bbc6a",periodUnit:"near-hour",periodValue:1}],Z=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:f.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],tt=["mosaic","statistics","calculate"],et={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},it={DEFAULT:J,OPTIONS:Q,DATA:Y,PARAMS:Z,SOURCE:tt,COMMON:et},st=a.defineComponent(v(F({},it),{__name:"stackedBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(h){A.use([q.install,P.install,A.install,$.install,A.install$1,X.install]);const s=h,d=f.useLinkStore();class N extends j.EChartComponentBase{extractStyles(){return v(F({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getXAxisData(){var t;return(t=this.getFixedStatisticsXLabels())!=null?t:this.getTimeAxis()}getFixedStatisticsXLabels(){var i;const{data:t,common:e}=this.props.conf,o=(e==null?void 0:e.source)||"mosaic",n=(i=t[0])==null?void 0:i.periodUnit;return["statistics","calculate"].includes(o)&&n&&!String(n).startsWith("near")?f.getStatisticsTimeUnitLabel(n):null}getChartOption(){const t=this.Style.value,e=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:e.data.map(o=>o.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:o=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(o))return o;const[n,i]=o.split(" ");return`${n}
2
+ ${i}`},color:t.textColor,fontSize:t.textSize}}],yAxis:[{type:"value",nameGap:10,nameTextStyle:{align:"right"},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitNumber:4}],series:this.formatSeries()}}formatSeries(){const t=this.props.conf,e=this.Style.value,o=this.getFixedStatisticsXLabels(),n=o?o.length:e.points;return t.data.map((i,c)=>{const r=i.color||f.COLORS[c];return{type:"bar",stack:"total",data:f.getRandomArr({num:n,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()}),name:i.name,itemStyle:{color:r},label:{show:e.showLabel,position:"inside",color:"#fff"},barWidth:e.barWidth+"%"}})}setSocketData(t){var y;if(!this.hasData()||!this.chartObj||!t)return;const{data:e,common:o}=this.props.conf,n=o.source||"mosaic",i=this.chartObj.getOption(),c=(y=e[0])==null?void 0:y.periodUnit,r=["statistics","calculate"].includes(n)&&c&&!String(c).startsWith("near");if(e.forEach((u,x)=>{const m=this.extractDataValue(t,u.fv);if(["statistics","calculate"].includes(n)&&u.periodUnit&&!String(u.periodUnit).startsWith("near")&&!String(u.periodUnit).startsWith("last")){const S=f.statisticsSocketTimeToXAxisLabel(t.start_time,u.periodUnit),w=S?i.xAxis[0].data.indexOf(S):-1;w>=0&&(i.series[x].data[w]=m);return}const C=["statistics","calculate"].includes(n)?t.start_time:t.datetime;C!=null&&(x===0&&i.xAxis[0].data.push(C),i.series[x].data.push(m))}),r){this.updateChart(i);return}const l=f.addRealtimeData(i.xAxis[0].data,i.series.map(u=>u.data)),p=Number(this.Style.value.points)||10;i.xAxis[0].data=l.times.slice(-p),i.series.forEach((u,x)=>{var m;u.data=((m=l.data[x])==null?void 0:m.slice(-p))||[]}),this.updateChart(i)}setHistoryData(t){if(!t||!(t!=null&&t.length))return;const e=this.chartObj.getOption(),o=Number(this.Style.value.points)||10,{data:n}=this.props.conf,i=r=>{if(r==null||r===""||r==="-")return null;const l=Number(r);return Number.isFinite(l)?l:null},c=this.getFixedStatisticsXLabels();if(c!=null&&c.length){e.xAxis[0].data=[...c],t.forEach((r,l)=>{var C;if(!e.series[l])return;const p=n[l],y=(p==null?void 0:p.periodUnit)||((C=n[0])==null?void 0:C.periodUnit),u=new Array(c.length).fill(null),x=r.time||[],m=r.data||[];for(let S=0;S<x.length;S++){const w=f.statisticsSocketTimeToXAxisLabel(x[S],String(y||"")),L=w?c.indexOf(w):-1;L>=0&&(u[L]=i(m[S]))}e.series[l].data=u}),this.updateChart(e);return}e.xAxis[0].data=t[0].time.slice(-o),t.forEach((r,l)=>{if(!e.series[l])return;const p=r.data||[];e.series[l].data=p.map(i).slice(-o)}),this.updateChart(e)}}const g=new N(s,"stackedBar");g.setupLifecycle();const O=f.useCounterStore();a.onMounted(()=>{var b;if(O.registerInstance(s.uid,g),s.mode==="preview"){const t=((b=g.getChartInstance)==null?void 0:b.call(g))||g.chartObj;t==null||t.off("click"),t==null||t.on("click",e=>{var n,i,c,r,l,p;const o=e==null?void 0:e.seriesName;if(typeof o=="string"&&o){const y=((i=(n=s.conf)==null?void 0:n.options)==null?void 0:i.linkChannel)==="custom"?(r=(c=s.conf)==null?void 0:c.options)==null?void 0:r.customChannel:(p=(l=s.conf)==null?void 0:l.options)==null?void 0:p.linkChannel;d.publish(y||"stackedBar","stackedBar",{objectId:"",deviceId:"",type:"select",fieldKey:o,fv:F({key:o},e),source:"stackedBar"})}})}}),a.onUnmounted(()=>{O.unregisterInstance(s.uid)});const _=g.getStyle(),U=g.getEchartId(),k=s.conf,B=a.computed(()=>R.generateTitleStyle(s.conf.options));return(b,t)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(_).bgColor,borderRadius:`${a.unref(_).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(B.value)},a.toDisplayString(a.unref(k).caption||a.unref(k).name),5),a.createElementVNode("div",G,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(U)},null,8,K)]),a.renderSlot(b.$slots,"default",{},void 0,!0)],4))}})),ot=f._export_sfc(st,[["__scopeId","data-v-54681af8"]]);exports.default=ot;
@@ -0,0 +1,325 @@
1
+ var I = Object.defineProperty, z = Object.defineProperties;
2
+ var W = Object.getOwnPropertyDescriptors;
3
+ var L = Object.getOwnPropertySymbols;
4
+ var j = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
5
+ var E = (h, s, c) => s in h ? I(h, s, { enumerable: !0, configurable: !0, writable: !0, value: c }) : h[s] = c, w = (h, s) => {
6
+ for (var c in s || (s = {}))
7
+ j.call(s, c) && E(h, c, s[c]);
8
+ if (L)
9
+ for (var c of L(s))
10
+ R.call(s, c) && E(h, c, s[c]);
11
+ return h;
12
+ }, F = (h, s) => z(h, W(s));
13
+ import { defineComponent as V, onMounted as $, onUnmounted as P, computed as X, openBlock as M, createElementBlock as H, normalizeStyle as U, unref as C, createElementVNode as _, toDisplayString as q, renderSlot as G } from "vue";
14
+ import { D as K, l as J, u as Q, n as Y, C as Z, o as tt, s as D, q as et, _ as it } from "./index-CqVPeq0-.js";
15
+ import "element-plus";
16
+ import { E as st } from "./EChartComponentBase-B-VNAC8K.js";
17
+ import { g as ot } from "./titleStyle-BT5GlpAb.js";
18
+ import { u as at, i as nt, a as rt } from "./installCanvasRenderer-oDYkyVFy.js";
19
+ import { i as lt } from "./install-DdM8j5Ll.js";
20
+ import { i as ct } from "./install-CEl1AYgZ.js";
21
+ import { i as dt } from "./install-DbAuuRVv.js";
22
+ import { i as ht } from "./install-CqrIgcb1.js";
23
+ const ut = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='14'%20width='4'%20height='7'%20rx='1'%20fill='currentColor'%20opacity='0.5'/%3e%3crect%20x='7'%20y='14'%20width='4'%20height='7'%20rx='1'%20fill='currentColor'/%3e%3crect%20x='11'%20y='8'%20width='4'%20height='13'%20rx='1'%20fill='currentColor'%20opacity='0.5'/%3e%3crect%20x='15'%20y='8'%20width='4'%20height='13'%20rx='1'%20fill='currentColor'/%3e%3c/svg%3e", pt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='14'%20width='4'%20height='7'%20rx='1'%20fill='%23FFFFFF'%20opacity='0.5'/%3e%3crect%20x='7'%20y='14'%20width='4'%20height='7'%20rx='1'%20fill='%23FFFFFF'/%3e%3crect%20x='11'%20y='8'%20width='4'%20height='13'%20rx='1'%20fill='%23FFFFFF'%20opacity='0.5'/%3e%3crect%20x='15'%20y='8'%20width='4'%20height='13'%20rx='1'%20fill='%23FFFFFF'/%3e%3c/svg%3e", ft = { class: "mix-body" }, mt = ["id"], gt = {
24
+ DEFAULT_ICON: ut,
25
+ ACTIVE_ICON: pt,
26
+ NAME_CN: "堆积柱状图",
27
+ NAME_EN: "Stacked Bar Chart",
28
+ ORDER: 2,
29
+ PLATFORM: ["pc", "screen", "mobile"]
30
+ }, xt = {
31
+ titleColor: "#111",
32
+ // color
33
+ textColor: "#111",
34
+ // color
35
+ bgColor: "#fff",
36
+ // color
37
+ top: 30,
38
+ // number
39
+ bottom: 40,
40
+ left: 40,
41
+ right: 20,
42
+ radiusSize: 8,
43
+ textSize: 12,
44
+ barWidth: 30,
45
+ points: 10,
46
+ isHideTitle: !1,
47
+ // checkbox
48
+ showLabel: !1,
49
+ titleAlign: "left",
50
+ titleWeight: "bold",
51
+ titleBgColor: "transparent",
52
+ titleBorderType: "none",
53
+ titleBorderColor: "#cccccc",
54
+ titleBorderWidth: 1,
55
+ titlePaddingH: 8,
56
+ titlePaddingV: 4
57
+ }, St = [
58
+ {
59
+ name: "参数一",
60
+ fv: "",
61
+ object_id: "",
62
+ color: "#4162ff",
63
+ periodUnit: "near-hour",
64
+ periodValue: 1
65
+ },
66
+ {
67
+ name: "参数二",
68
+ fv: "",
69
+ object_id: "",
70
+ color: "#3bbc6a",
71
+ periodUnit: "near-hour",
72
+ periodValue: 1
73
+ }
74
+ ], yt = [
75
+ "name",
76
+ "fv",
77
+ "object_id",
78
+ "color",
79
+ {
80
+ key: "periodUnit",
81
+ label: "setting.timeUnit",
82
+ type: "select",
83
+ options: K
84
+ },
85
+ { key: "periodValue", label: "setting.timePeriod", type: "number" }
86
+ ], bt = ["mosaic", "statistics", "calculate"], Ct = {
87
+ source: "mosaic",
88
+ useAlias: !1,
89
+ multiObject: !1,
90
+ null: { type: "0", value: "" }
91
+ }, wt = {
92
+ DEFAULT: gt,
93
+ OPTIONS: xt,
94
+ DATA: St,
95
+ PARAMS: yt,
96
+ SOURCE: bt,
97
+ COMMON: Ct
98
+ }, Ft = /* @__PURE__ */ V(F(w({}, wt), {
99
+ __name: "stackedBar",
100
+ props: {
101
+ conf: { type: Object, default: () => ({ data: [] }) },
102
+ uid: { type: String, default: "" },
103
+ mode: { type: String, default: "edit" },
104
+ theme: { type: String, default: "light" }
105
+ },
106
+ setup(h) {
107
+ at([
108
+ lt,
109
+ ct,
110
+ nt,
111
+ dt,
112
+ rt,
113
+ ht
114
+ ]);
115
+ const s = h, c = J();
116
+ class T extends st {
117
+ // 提取样式
118
+ extractStyles() {
119
+ return F(w({}, super.extractStyles()), {
120
+ barWidth: this.getOptionValue("barWidth", 30),
121
+ showLabel: this.getOptionValue("showLabel", !1)
122
+ });
123
+ }
124
+ // 获取 X 轴数据
125
+ getXAxisData() {
126
+ var t;
127
+ return (t = this.getFixedStatisticsXLabels()) != null ? t : this.getTimeAxis();
128
+ }
129
+ /** 统计/计算且非 near 时返回固定类目轴刻度;否则返回 null */
130
+ getFixedStatisticsXLabels() {
131
+ var i;
132
+ const { data: t, common: e } = this.props.conf, o = (e == null ? void 0 : e.source) || "mosaic", a = (i = t[0]) == null ? void 0 : i.periodUnit;
133
+ return ["statistics", "calculate"].includes(o) && a && !String(a).startsWith("near") ? Y(a) : null;
134
+ }
135
+ // 获取 ECharts option
136
+ getChartOption() {
137
+ const t = this.Style.value, e = this.props.conf;
138
+ return {
139
+ tooltip: {
140
+ trigger: "axis",
141
+ axisPointer: { type: "shadow" },
142
+ textStyle: { align: "left", fontSize: t.textSize }
143
+ },
144
+ grid: {
145
+ top: t.top,
146
+ bottom: t.bottom,
147
+ left: t.left,
148
+ right: t.right,
149
+ containLabel: !1
150
+ },
151
+ legend: {
152
+ show: !0,
153
+ data: e.data.map((o) => o.name),
154
+ right: 20,
155
+ top: 0,
156
+ textStyle: { color: t.textColor, fontSize: t.textSize }
157
+ },
158
+ xAxis: [
159
+ {
160
+ type: "category",
161
+ data: this.getXAxisData(),
162
+ axisTick: { alignWithLabel: !0 },
163
+ axisLine: { lineStyle: { color: t.textColor } },
164
+ axisLabel: {
165
+ formatter: (o) => {
166
+ if (!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(o))
167
+ return o;
168
+ const [a, i] = o.split(" ");
169
+ return `${a}
170
+ ${i}`;
171
+ },
172
+ color: t.textColor,
173
+ fontSize: t.textSize
174
+ }
175
+ }
176
+ ],
177
+ yAxis: [
178
+ {
179
+ type: "value",
180
+ nameGap: 10,
181
+ nameTextStyle: { align: "right" },
182
+ splitLine: { lineStyle: { type: "dashed", color: "#e5e5e5" } },
183
+ axisLabel: { color: t.textColor, fontSize: t.textSize },
184
+ axisLine: { lineStyle: { color: t.textColor } },
185
+ splitNumber: 4
186
+ }
187
+ ],
188
+ series: this.formatSeries()
189
+ };
190
+ }
191
+ // 格式化 Series(使用 stack 属性实现堆积)
192
+ formatSeries() {
193
+ const t = this.props.conf, e = this.Style.value, o = this.getFixedStatisticsXLabels(), a = o ? o.length : e.points;
194
+ return t.data.map((i, l) => {
195
+ const n = i.color || Z[l];
196
+ return {
197
+ type: "bar",
198
+ stack: "total",
199
+ data: tt({
200
+ num: a,
201
+ max: 200,
202
+ min: 0,
203
+ mode: this.props.mode,
204
+ hasDataSource: this.hasData()
205
+ }),
206
+ name: i.name,
207
+ itemStyle: { color: n },
208
+ label: { show: e.showLabel, position: "inside", color: "#fff" },
209
+ barWidth: e.barWidth + "%"
210
+ };
211
+ });
212
+ }
213
+ // 设置实时数据
214
+ setSocketData(t) {
215
+ var x;
216
+ if (!this.hasData() || !this.chartObj || !t) return;
217
+ const { data: e, common: o } = this.props.conf, a = o.source || "mosaic", i = this.chartObj.getOption(), l = (x = e[0]) == null ? void 0 : x.periodUnit, n = ["statistics", "calculate"].includes(a) && l && !String(l).startsWith("near");
218
+ if (e.forEach((d, f) => {
219
+ const m = this.extractDataValue(t, d.fv);
220
+ if (["statistics", "calculate"].includes(a) && d.periodUnit && !String(d.periodUnit).startsWith("near") && !String(d.periodUnit).startsWith("last")) {
221
+ const g = D(
222
+ t.start_time,
223
+ d.periodUnit
224
+ ), b = g ? i.xAxis[0].data.indexOf(g) : -1;
225
+ b >= 0 && (i.series[f].data[b] = m);
226
+ return;
227
+ }
228
+ const y = ["statistics", "calculate"].includes(a) ? t.start_time : t.datetime;
229
+ y != null && (f === 0 && i.xAxis[0].data.push(y), i.series[f].data.push(m));
230
+ }), n) {
231
+ this.updateChart(i);
232
+ return;
233
+ }
234
+ const r = et(
235
+ i.xAxis[0].data,
236
+ i.series.map((d) => d.data)
237
+ ), u = Number(this.Style.value.points) || 10;
238
+ i.xAxis[0].data = r.times.slice(-u), i.series.forEach((d, f) => {
239
+ var m;
240
+ d.data = ((m = r.data[f]) == null ? void 0 : m.slice(-u)) || [];
241
+ }), this.updateChart(i);
242
+ }
243
+ setHistoryData(t) {
244
+ if (!t || !(t != null && t.length)) return;
245
+ const e = this.chartObj.getOption(), o = Number(this.Style.value.points) || 10, { data: a } = this.props.conf, i = (n) => {
246
+ if (n == null || n === "" || n === "-") return null;
247
+ const r = Number(n);
248
+ return Number.isFinite(r) ? r : null;
249
+ }, l = this.getFixedStatisticsXLabels();
250
+ if (l != null && l.length) {
251
+ e.xAxis[0].data = [...l], t.forEach((n, r) => {
252
+ var y;
253
+ if (!e.series[r]) return;
254
+ const u = a[r], x = (u == null ? void 0 : u.periodUnit) || ((y = a[0]) == null ? void 0 : y.periodUnit), d = new Array(l.length).fill(
255
+ null
256
+ ), f = n.time || [], m = n.data || [];
257
+ for (let g = 0; g < f.length; g++) {
258
+ const b = D(
259
+ f[g],
260
+ String(x || "")
261
+ ), k = b ? l.indexOf(b) : -1;
262
+ k >= 0 && (d[k] = i(m[g]));
263
+ }
264
+ e.series[r].data = d;
265
+ }), this.updateChart(e);
266
+ return;
267
+ }
268
+ e.xAxis[0].data = t[0].time.slice(-o), t.forEach((n, r) => {
269
+ if (!e.series[r]) return;
270
+ const u = n.data || [];
271
+ e.series[r].data = u.map(i).slice(-o);
272
+ }), this.updateChart(e);
273
+ }
274
+ }
275
+ const p = new T(s, "stackedBar");
276
+ p.setupLifecycle();
277
+ const A = Q();
278
+ $(() => {
279
+ var S;
280
+ if (A.registerInstance(s.uid, p), s.mode === "preview") {
281
+ const t = ((S = p.getChartInstance) == null ? void 0 : S.call(p)) || p.chartObj;
282
+ t == null || t.off("click"), t == null || t.on("click", (e) => {
283
+ var a, i, l, n, r, u;
284
+ const o = e == null ? void 0 : e.seriesName;
285
+ if (typeof o == "string" && o) {
286
+ const x = ((i = (a = s.conf) == null ? void 0 : a.options) == null ? void 0 : i.linkChannel) === "custom" ? (n = (l = s.conf) == null ? void 0 : l.options) == null ? void 0 : n.customChannel : (u = (r = s.conf) == null ? void 0 : r.options) == null ? void 0 : u.linkChannel;
287
+ c.publish(x || "stackedBar", "stackedBar", {
288
+ objectId: "",
289
+ deviceId: "",
290
+ type: "select",
291
+ fieldKey: o,
292
+ fv: w({ key: o }, e),
293
+ source: "stackedBar"
294
+ });
295
+ }
296
+ });
297
+ }
298
+ }), P(() => {
299
+ A.unregisterInstance(s.uid);
300
+ });
301
+ const O = p.getStyle(), B = p.getEchartId(), v = s.conf, N = X(() => ot(s.conf.options));
302
+ return (S, t) => (M(), H("div", {
303
+ class: "mix-component",
304
+ style: U({
305
+ background: C(O).bgColor,
306
+ borderRadius: `${C(O).radiusSize}px`
307
+ })
308
+ }, [
309
+ _("div", {
310
+ class: "mix-title",
311
+ style: U(N.value)
312
+ }, q(C(v).caption || C(v).name), 5),
313
+ _("div", ft, [
314
+ _("div", {
315
+ class: "w-full h-full",
316
+ id: C(B)
317
+ }, null, 8, mt)
318
+ ]),
319
+ G(S.$slots, "default", {}, void 0, !0)
320
+ ], 4));
321
+ }
322
+ })), Nt = /* @__PURE__ */ it(Ft, [["__scopeId", "data-v-54681af8"]]);
323
+ export {
324
+ Nt as default
325
+ };