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
@@ -22,8 +22,8 @@ import "element-plus/es/components/select/style/css";
22
22
  import "element-plus/es/components/option/style/css";
23
23
  import { defineComponent as Ze, useCssVars as et, unref as i, ref as O, computed as z, watch as tt, onMounted as at, onUnmounted as lt, openBlock as s, createElementBlock as h, normalizeStyle as F, createElementVNode as D, toDisplayString as V, createCommentVNode as p, createVNode as S, withCtx as m, Fragment as T, renderList as M, createBlock as f, createTextVNode as A, withModifiers as W, normalizeClass as pe, renderSlot as ot } from "vue";
24
24
  import "html2canvas";
25
- import { B as nt } from "./BaseComponent-Dwhb9Mde.js";
26
- import { d as Y, _ as st } from "./index-YNdVib_6.js";
25
+ import { B as nt } from "./BaseComponent-CEp8NJiX.js";
26
+ import { d as Y, _ as st } from "./index-CqVPeq0-.js";
27
27
  import { A as rt, D as it } from "./ele-glbModel-icon-l_SMi3ik.js";
28
28
  import { Download as ct, Plus as ut, Upload as dt, Delete as ht } from "@element-plus/icons-vue";
29
29
  const pt = { class: "report-header" }, vt = { class: "header-left" }, mt = { class: "header-title" }, bt = {
@@ -1,4 +1,4 @@
1
- "use strict";var De=Object.defineProperty,Be=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Z=(k,d,b)=>d in k?De(k,d,{enumerable:!0,configurable:!0,writable:!0,value:b}):k[d]=b,S=(k,d)=>{for(var b in d||(d={}))Ve.call(d,b)&&Z(k,b,d[b]);if(X)for(var b of X(d))Ee.call(d,b)&&Z(k,b,d[b]);return k},I=(k,d)=>Be(k,Ne(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const Ie=require("./BaseComponent-bzb58Hhs.cjs"),N=require("./index-6QhTSPkL.cjs"),ee=require("./ele-glbModel-icon-ByACDCrv.cjs"),B=require("@element-plus/icons-vue"),Ae={class:"report-header"},je={class:"header-left"},Te={class:"header-title"},ze={key:0,class:"link-channel-badge"},Fe={class:"badge-text"},qe={class:"header-right"},Le={key:0,class:"frequency-select"},Me={key:0,class:"report-toolbar"},Oe={key:0,class:"search-area"},Pe={class:"filter-label"},Ue={key:1,class:"action-area"},We={class:"table-area"},Ye={key:1,class:"native-table"},$e={key:0,style:{width:"60px"}},Ge=["onClick"],He={key:0},Ke=["onClick"],Je={key:1,class:"pagination-area"},Qe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"数据报表",NAME_EN:"Data Report",ORDER:13,PLATFORM:["pc","screen"]},Xe={title:{value:"数据报表",type:"string",label:"component.dataReport.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},headerBgColor:{value:"#f5f5f5",type:"color",label:"component.dataReport.headerBgColor"},showFrequency:{value:!1,type:"checkbox",label:"component.dataReport.showFrequency"},frequencyOptions:{value:[{label:"按小时",value:"hour"},{label:"按天",value:"day"},{label:"按周",value:"week"},{label:"按月",value:"month"}],type:"frequencyOptions",label:"component.dataReport.frequencyOptions"},showExport:{value:!0,type:"checkbox",label:"component.dataReport.showExport"},exportLabel:{value:"导出分析报表(Excel)",type:"string",label:"component.dataReport.exportLabel"},showSearch:{value:!1,type:"checkbox",label:"component.dataReport.showSearch"},searchFilters:{value:[],type:"searchFilters",label:"component.dataReport.searchFilters"},showActions:{value:!0,type:"checkbox",label:"component.dataReport.showActions"},actions:{value:["add","batchDelete","deleteAll"],type:"actions",label:"component.dataReport.actions"},rowActions:{value:["edit","view","delete"],type:"rowActions",label:"component.dataReport.rowActions"},actionColumnWidth:{value:150,type:"number",label:"component.dataReport.actionColumnWidth"},columns:{value:[{key:"time",label:"时间",width:"180px"},{key:"area",label:"区域",width:"100px"},{key:"deviceId",label:"编号",width:"120px"},{key:"value",label:"数值",width:"100px"}],type:"columns",label:"component.dataReport.columns"},showSelection:{value:!0,type:"checkbox",label:"component.dataReport.showSelection"},showSerialNumber:{value:!0,type:"checkbox",label:"component.dataReport.showSerialNumber"},alertLevels:{value:[{name:"正常",minValue:0,maxValue:5,color:"#52c41a"},{name:"二级告警 (警告)",minValue:5,maxValue:10,color:"#faad14"},{name:"一级告警 (危险)",minValue:10,maxValue:999,color:"#ff4d4f"}],type:"alertLevels",label:"component.dataReport.alertLevels"},tableMode:{value:"el-table",type:"select",label:"component.dataReport.tableMode",options:[{label:"Element Table",value:"el-table"},{label:"原生表格",value:"native-table"}]},showPagination:{value:!0,type:"checkbox",label:"component.dataReport.showPagination"},pageSize:{value:10,type:"number",label:"component.dataReport.pageSize",min:5,max:100},linkChannel:{value:"gnss",type:"select",label:"component.linkChannel",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Ze=[{name:"WATER105",fv:"cumulativePrecipitation",object_id:""}],et=["name","fv","object_id"],tt=["mosaic","statistics","statisticsRealtime"],lt={useAlias:!1,multiObject:!1,source:"mosaic"},at={DEFAULT:Qe,OPTIONS:Xe,DATA:Ze,PARAMS:et,SOURCE:tt,COMMON:lt},ot=e.defineComponent(I(S({},at),{__name:"dataReport",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){e.useCssVars(l=>({v039d5518:e.unref(o).headerBgColor,v61417bfd:e.unref(o).textColor}));const d=k;class b extends Ie.BaseComponent{constructor(){super(...arguments),this.tableData=[]}getTableDataArray(){return this.tableData.length>0?this.tableData:this.getMockData()}setTableDataArray(t){this.tableData=t}addRow(t){const a=this.processRowData(t);this.tableData.push(a)}deleteRow(t){t>=0&&t<this.tableData.length&&this.tableData.splice(t,1)}deleteRowByCondition(t){this.tableData=this.tableData.filter(a=>!t(a))}updateRow(t,a){if(t>=0&&t<this.tableData.length){const n=S(S({},this.tableData[t]),a);this.tableData[t]=this.processRowData(n)}}extractStyles(){var c,u,p,f,w,r,h,i,_,q,L,M,O,P,U,W,Y,$,G,H,K,J,Q;const{options:t}=this.props.conf,a=((c=t==null?void 0:t.linkChannel)==null?void 0:c.value)||"gnss",n=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"",s=a==="custom"&&n?n:a;return{title:((p=t==null?void 0:t.title)==null?void 0:p.value)||"数据报表",bgColor:((f=t==null?void 0:t.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((w=t==null?void 0:t.textColor)==null?void 0:w.value)||"#333333",headerBgColor:((r=t==null?void 0:t.headerBgColor)==null?void 0:r.value)||"#f5f5f5",showFrequency:((h=t==null?void 0:t.showFrequency)==null?void 0:h.value)||!1,frequencyOptions:((i=t==null?void 0:t.frequencyOptions)==null?void 0:i.value)||[],showExport:((_=t==null?void 0:t.showExport)==null?void 0:_.value)!==!1,exportLabel:((q=t==null?void 0:t.exportLabel)==null?void 0:q.value)||"导出分析报表(Excel)",showSearch:((L=t==null?void 0:t.showSearch)==null?void 0:L.value)||!1,searchFilters:((M=t==null?void 0:t.searchFilters)==null?void 0:M.value)||[],showActions:((O=t==null?void 0:t.showActions)==null?void 0:O.value)!==!1,actions:((P=t==null?void 0:t.actions)==null?void 0:P.value)||["add","batchDelete","deleteAll"],rowActions:((U=t==null?void 0:t.rowActions)==null?void 0:U.value)||["edit","view","delete"],actionColumnWidth:((W=t==null?void 0:t.actionColumnWidth)==null?void 0:W.value)||150,columns:((Y=t==null?void 0:t.columns)==null?void 0:Y.value)||[],showSelection:(($=t==null?void 0:t.showSelection)==null?void 0:$.value)!==!1,showSerialNumber:((G=t==null?void 0:t.showSerialNumber)==null?void 0:G.value)!==!1,showPagination:((H=t==null?void 0:t.showPagination)==null?void 0:H.value)!==!1,pageSize:((K=t==null?void 0:t.pageSize)==null?void 0:K.value)||10,alertLevels:((J=t==null?void 0:t.alertLevels)==null?void 0:J.value)||[],tableMode:((Q=t==null?void 0:t.tableMode)==null?void 0:Q.value)||"el-table",linkChannel:s}}getMockData(){const t=[],a=new Date,n=this.Style.value.columns||[];if(!n||n.length===0)return[];if(n.some(c=>c&&c.colorRules&&c.colorRules.length>0))[{area:"北帮",deviceId:"GNSS55",object_id:"1",elevation:"1150.0",speed:9.85,threshold:8},{area:"北帮",deviceId:"GNSS110",object_id:"2",elevation:"1197.8",speed:8.1,threshold:8},{area:"东帮",deviceId:"GNSS33",object_id:"3",elevation:"1250.0",speed:5.85,threshold:5},{area:"东帮",deviceId:"GNSS143",object_id:"4",elevation:"1150.1",speed:5.85,threshold:5},{area:"南帮",deviceId:"GNSS66",object_id:"5",elevation:"1198.7",speed:4.58,threshold:4}].forEach(u=>{const p=S({},u);n.forEach(f=>{f&&f.key&&!p[f.key]&&f.key!=="area"&&f.key!=="deviceId"&&(p[f.key]=u[f.key]||"--")}),t.push(this.processRowData(p))});else for(let c=23;c>=0;c--){const u=new Date(a.getTime()-c*60*60*1e3),p={time:N.dayjs(u).format("YYYY/MM/DD HH:mm:ss"),area:"北帮",deviceId:"WATER105",cumulativePrecipitation:(1800+Math.random()*20).toFixed(2),realtimePrecipitation:(Math.random()*.5).toFixed(2)};t.push(this.processRowData(p))}return t}setHistoryData(t){t!=null&&t.history&&Array.isArray(t.history)&&t.history.length>0?(this.tableData=t.history.map(a=>this.processRowData(a)),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData)):(this.tableData=this.getMockData(),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData))}processRowData(t){var c;const a={},n=this.Style.value.columns||[];n&&n.length>0&&n.forEach(u=>{a[u.key]=t[u.key]||t[u.fv]||"--"});const s=n.find(u=>u.colorRules&&u.colorRules.length>0);if(s){const u=parseFloat(t[s.key]||t[s.fv]||0),p=s.colorRules||[],f=this.Style.value.alertLevels||[];let w=0,r="正常",h="#52c41a";for(let i=0;i<p.length;i++){const _=p[i];if(u>=_.min&&u<=_.max){w=i,r=((c=f[i])==null?void 0:c.name)||`${p.length-i}级告警`,h=_.color;break}}a.isAlert=w>0,a.alertLevel=w,a.alertText=r,a.alertColor=h}return a.object_id=t.object_id||t.objectId||t.deviceId||"",a.deviceId=t.deviceId||t.device_id||"",a}setSocketData(t){if(!t)return;const a={time:N.dayjs().format("YYYY/MM/DD HH:mm:ss")};(this.Style.value.columns||[]).forEach(c=>{const u=this.extractDataValue(t,c.fv);a[c.key]=u!=null?u:"--"});const s=this.processRowData(a);this.tableData.unshift(s),this.tableData.length>1e3&&(this.tableData=this.tableData.slice(0,1e3)),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData)}getTableData(){return this.getTableDataArray()}onLinkEvent(t){xe(t)}}const m=new b(d,"dataReport");m.onDataUpdate=l=>{v.value=[...l]},m.setupLifecycle();const o=m.getStyle(),A=e.ref("hour"),te=e.computed(()=>o.value.frequencyOptions||[]),g=e.ref({}),v=e.ref([]),le=()=>{try{const l=m.getTableData();v.value=[...l],m.setTableDataArray(v.value)}catch(l){console.error("[dataReport] 获取表格数据失败:",l),v.value=[]}},V=e.computed(()=>{let l=[...v.value];return o.value.showSearch&&Object.keys(g.value).length>0&&(l=l.filter(t=>Object.keys(g.value).every(a=>{const n=g.value[a];return n?String(t[a]||"").toLowerCase().includes(String(n).toLowerCase()):!0}))),l}),y=e.ref(1),x=e.computed(()=>o.value.pageSize||10),ae=e.computed(()=>V.value.length),D=e.computed(()=>{if(!o.value.showPagination)return V.value;const l=(y.value-1)*x.value,t=l+x.value;return V.value.slice(l,t)}),C=e.ref([]),oe=e.computed(()=>({backgroundColor:o.value.bgColor,color:o.value.textColor})),ne=e.computed(()=>o.value.showSearch||o.value.showActions),re=l=>{console.log("[dataReport] 显示频率变化:",l)},ce=()=>{console.log("[dataReport] 导出数据"),alert("导出功能待实现")},se=()=>{y.value=1,console.log("[dataReport] 搜索:",g.value)},ie=()=>{g.value={},y.value=1},ue=()=>{console.log("[dataReport] 新增");const l=o.value.columns||[],t={};l.forEach(a=>{a.key==="time"?t[a.key]=N.dayjs().format("YYYY/MM/DD HH:mm:ss"):a.key==="area"?t[a.key]="北帮":a.key==="deviceId"?t[a.key]="NEW001":t[a.key]="--"}),m.addRow(t),v.value=[...m.getTableDataArray()],y.value=1},de=()=>{console.log("[dataReport] 导入数据")},me=()=>{if(C.value.length===0||!confirm(`确定要删除选中的 ${C.value.length} 条记录吗?`))return;console.log("[dataReport] 批量删除:",C.value);const t=C.value.map(a=>a.object_id||a.objectId||a.id||a);v.value=v.value.filter(a=>{const n=a.object_id||a.objectId||a.id;return!t.some(s=>{if(typeof s=="object"){const c=s.object_id||s.objectId||s.id;return c&&n&&String(c)===String(n)}return n&&String(s)===String(n)})}),m.setTableDataArray([...v.value]),C.value=[],y.value=1},pe=()=>{confirm("确定要删除全部记录吗?此操作不可恢复!")&&(console.log("[dataReport] 全部删除"),v.value=[],m.setTableDataArray([]),C.value=[],y.value=1)},he=l=>{console.log("[dataReport] 编辑:",l);const t=v.value.findIndex(n=>{const s=n.object_id||n.objectId||n.id,c=l.object_id||l.objectId||l.id;return s===c});if(t===-1){console.warn("[dataReport] 未找到要编辑的行");return}const a=o.value.columns||[];if(a.length>0){const n=a[0],s=prompt(`编辑 ${n.label}:`,l[n.key]);if(s!==null){const c=I(S({},l),{[n.key]:s});m.updateRow(t,c),v.value=[...m.getTableDataArray()]}}},ve=l=>{console.log("[dataReport] 查看:",l);const t=o.value.columns||[];let a=`行详情:
1
+ "use strict";var De=Object.defineProperty,Be=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Z=(k,d,b)=>d in k?De(k,d,{enumerable:!0,configurable:!0,writable:!0,value:b}):k[d]=b,S=(k,d)=>{for(var b in d||(d={}))Ve.call(d,b)&&Z(k,b,d[b]);if(X)for(var b of X(d))Ee.call(d,b)&&Z(k,b,d[b]);return k},I=(k,d)=>Be(k,Ne(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const Ie=require("./BaseComponent-DaYX7dUF.cjs"),N=require("./index-OgmTZiO-.cjs"),ee=require("./ele-glbModel-icon-ByACDCrv.cjs"),B=require("@element-plus/icons-vue"),Ae={class:"report-header"},je={class:"header-left"},Te={class:"header-title"},ze={key:0,class:"link-channel-badge"},Fe={class:"badge-text"},qe={class:"header-right"},Le={key:0,class:"frequency-select"},Me={key:0,class:"report-toolbar"},Oe={key:0,class:"search-area"},Pe={class:"filter-label"},Ue={key:1,class:"action-area"},We={class:"table-area"},Ye={key:1,class:"native-table"},$e={key:0,style:{width:"60px"}},Ge=["onClick"],He={key:0},Ke=["onClick"],Je={key:1,class:"pagination-area"},Qe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"数据报表",NAME_EN:"Data Report",ORDER:13,PLATFORM:["pc","screen"]},Xe={title:{value:"数据报表",type:"string",label:"component.dataReport.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},headerBgColor:{value:"#f5f5f5",type:"color",label:"component.dataReport.headerBgColor"},showFrequency:{value:!1,type:"checkbox",label:"component.dataReport.showFrequency"},frequencyOptions:{value:[{label:"按小时",value:"hour"},{label:"按天",value:"day"},{label:"按周",value:"week"},{label:"按月",value:"month"}],type:"frequencyOptions",label:"component.dataReport.frequencyOptions"},showExport:{value:!0,type:"checkbox",label:"component.dataReport.showExport"},exportLabel:{value:"导出分析报表(Excel)",type:"string",label:"component.dataReport.exportLabel"},showSearch:{value:!1,type:"checkbox",label:"component.dataReport.showSearch"},searchFilters:{value:[],type:"searchFilters",label:"component.dataReport.searchFilters"},showActions:{value:!0,type:"checkbox",label:"component.dataReport.showActions"},actions:{value:["add","batchDelete","deleteAll"],type:"actions",label:"component.dataReport.actions"},rowActions:{value:["edit","view","delete"],type:"rowActions",label:"component.dataReport.rowActions"},actionColumnWidth:{value:150,type:"number",label:"component.dataReport.actionColumnWidth"},columns:{value:[{key:"time",label:"时间",width:"180px"},{key:"area",label:"区域",width:"100px"},{key:"deviceId",label:"编号",width:"120px"},{key:"value",label:"数值",width:"100px"}],type:"columns",label:"component.dataReport.columns"},showSelection:{value:!0,type:"checkbox",label:"component.dataReport.showSelection"},showSerialNumber:{value:!0,type:"checkbox",label:"component.dataReport.showSerialNumber"},alertLevels:{value:[{name:"正常",minValue:0,maxValue:5,color:"#52c41a"},{name:"二级告警 (警告)",minValue:5,maxValue:10,color:"#faad14"},{name:"一级告警 (危险)",minValue:10,maxValue:999,color:"#ff4d4f"}],type:"alertLevels",label:"component.dataReport.alertLevels"},tableMode:{value:"el-table",type:"select",label:"component.dataReport.tableMode",options:[{label:"Element Table",value:"el-table"},{label:"原生表格",value:"native-table"}]},showPagination:{value:!0,type:"checkbox",label:"component.dataReport.showPagination"},pageSize:{value:10,type:"number",label:"component.dataReport.pageSize",min:5,max:100},linkChannel:{value:"gnss",type:"select",label:"component.linkChannel",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Ze=[{name:"WATER105",fv:"cumulativePrecipitation",object_id:""}],et=["name","fv","object_id"],tt=["mosaic","statistics","statisticsRealtime"],lt={useAlias:!1,multiObject:!1,source:"mosaic"},at={DEFAULT:Qe,OPTIONS:Xe,DATA:Ze,PARAMS:et,SOURCE:tt,COMMON:lt},ot=e.defineComponent(I(S({},at),{__name:"dataReport",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){e.useCssVars(l=>({v039d5518:e.unref(o).headerBgColor,v61417bfd:e.unref(o).textColor}));const d=k;class b extends Ie.BaseComponent{constructor(){super(...arguments),this.tableData=[]}getTableDataArray(){return this.tableData.length>0?this.tableData:this.getMockData()}setTableDataArray(t){this.tableData=t}addRow(t){const a=this.processRowData(t);this.tableData.push(a)}deleteRow(t){t>=0&&t<this.tableData.length&&this.tableData.splice(t,1)}deleteRowByCondition(t){this.tableData=this.tableData.filter(a=>!t(a))}updateRow(t,a){if(t>=0&&t<this.tableData.length){const n=S(S({},this.tableData[t]),a);this.tableData[t]=this.processRowData(n)}}extractStyles(){var c,u,p,f,w,r,h,i,_,q,L,M,O,P,U,W,Y,$,G,H,K,J,Q;const{options:t}=this.props.conf,a=((c=t==null?void 0:t.linkChannel)==null?void 0:c.value)||"gnss",n=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"",s=a==="custom"&&n?n:a;return{title:((p=t==null?void 0:t.title)==null?void 0:p.value)||"数据报表",bgColor:((f=t==null?void 0:t.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((w=t==null?void 0:t.textColor)==null?void 0:w.value)||"#333333",headerBgColor:((r=t==null?void 0:t.headerBgColor)==null?void 0:r.value)||"#f5f5f5",showFrequency:((h=t==null?void 0:t.showFrequency)==null?void 0:h.value)||!1,frequencyOptions:((i=t==null?void 0:t.frequencyOptions)==null?void 0:i.value)||[],showExport:((_=t==null?void 0:t.showExport)==null?void 0:_.value)!==!1,exportLabel:((q=t==null?void 0:t.exportLabel)==null?void 0:q.value)||"导出分析报表(Excel)",showSearch:((L=t==null?void 0:t.showSearch)==null?void 0:L.value)||!1,searchFilters:((M=t==null?void 0:t.searchFilters)==null?void 0:M.value)||[],showActions:((O=t==null?void 0:t.showActions)==null?void 0:O.value)!==!1,actions:((P=t==null?void 0:t.actions)==null?void 0:P.value)||["add","batchDelete","deleteAll"],rowActions:((U=t==null?void 0:t.rowActions)==null?void 0:U.value)||["edit","view","delete"],actionColumnWidth:((W=t==null?void 0:t.actionColumnWidth)==null?void 0:W.value)||150,columns:((Y=t==null?void 0:t.columns)==null?void 0:Y.value)||[],showSelection:(($=t==null?void 0:t.showSelection)==null?void 0:$.value)!==!1,showSerialNumber:((G=t==null?void 0:t.showSerialNumber)==null?void 0:G.value)!==!1,showPagination:((H=t==null?void 0:t.showPagination)==null?void 0:H.value)!==!1,pageSize:((K=t==null?void 0:t.pageSize)==null?void 0:K.value)||10,alertLevels:((J=t==null?void 0:t.alertLevels)==null?void 0:J.value)||[],tableMode:((Q=t==null?void 0:t.tableMode)==null?void 0:Q.value)||"el-table",linkChannel:s}}getMockData(){const t=[],a=new Date,n=this.Style.value.columns||[];if(!n||n.length===0)return[];if(n.some(c=>c&&c.colorRules&&c.colorRules.length>0))[{area:"北帮",deviceId:"GNSS55",object_id:"1",elevation:"1150.0",speed:9.85,threshold:8},{area:"北帮",deviceId:"GNSS110",object_id:"2",elevation:"1197.8",speed:8.1,threshold:8},{area:"东帮",deviceId:"GNSS33",object_id:"3",elevation:"1250.0",speed:5.85,threshold:5},{area:"东帮",deviceId:"GNSS143",object_id:"4",elevation:"1150.1",speed:5.85,threshold:5},{area:"南帮",deviceId:"GNSS66",object_id:"5",elevation:"1198.7",speed:4.58,threshold:4}].forEach(u=>{const p=S({},u);n.forEach(f=>{f&&f.key&&!p[f.key]&&f.key!=="area"&&f.key!=="deviceId"&&(p[f.key]=u[f.key]||"--")}),t.push(this.processRowData(p))});else for(let c=23;c>=0;c--){const u=new Date(a.getTime()-c*60*60*1e3),p={time:N.dayjs(u).format("YYYY/MM/DD HH:mm:ss"),area:"北帮",deviceId:"WATER105",cumulativePrecipitation:(1800+Math.random()*20).toFixed(2),realtimePrecipitation:(Math.random()*.5).toFixed(2)};t.push(this.processRowData(p))}return t}setHistoryData(t){t!=null&&t.history&&Array.isArray(t.history)&&t.history.length>0?(this.tableData=t.history.map(a=>this.processRowData(a)),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData)):(this.tableData=this.getMockData(),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData))}processRowData(t){var c;const a={},n=this.Style.value.columns||[];n&&n.length>0&&n.forEach(u=>{a[u.key]=t[u.key]||t[u.fv]||"--"});const s=n.find(u=>u.colorRules&&u.colorRules.length>0);if(s){const u=parseFloat(t[s.key]||t[s.fv]||0),p=s.colorRules||[],f=this.Style.value.alertLevels||[];let w=0,r="正常",h="#52c41a";for(let i=0;i<p.length;i++){const _=p[i];if(u>=_.min&&u<=_.max){w=i,r=((c=f[i])==null?void 0:c.name)||`${p.length-i}级告警`,h=_.color;break}}a.isAlert=w>0,a.alertLevel=w,a.alertText=r,a.alertColor=h}return a.object_id=t.object_id||t.objectId||t.deviceId||"",a.deviceId=t.deviceId||t.device_id||"",a}setSocketData(t){if(!t)return;const a={time:N.dayjs().format("YYYY/MM/DD HH:mm:ss")};(this.Style.value.columns||[]).forEach(c=>{const u=this.extractDataValue(t,c.fv);a[c.key]=u!=null?u:"--"});const s=this.processRowData(a);this.tableData.unshift(s),this.tableData.length>1e3&&(this.tableData=this.tableData.slice(0,1e3)),typeof this.onDataUpdate=="function"&&this.onDataUpdate(this.tableData)}getTableData(){return this.getTableDataArray()}onLinkEvent(t){xe(t)}}const m=new b(d,"dataReport");m.onDataUpdate=l=>{v.value=[...l]},m.setupLifecycle();const o=m.getStyle(),A=e.ref("hour"),te=e.computed(()=>o.value.frequencyOptions||[]),g=e.ref({}),v=e.ref([]),le=()=>{try{const l=m.getTableData();v.value=[...l],m.setTableDataArray(v.value)}catch(l){console.error("[dataReport] 获取表格数据失败:",l),v.value=[]}},V=e.computed(()=>{let l=[...v.value];return o.value.showSearch&&Object.keys(g.value).length>0&&(l=l.filter(t=>Object.keys(g.value).every(a=>{const n=g.value[a];return n?String(t[a]||"").toLowerCase().includes(String(n).toLowerCase()):!0}))),l}),y=e.ref(1),x=e.computed(()=>o.value.pageSize||10),ae=e.computed(()=>V.value.length),D=e.computed(()=>{if(!o.value.showPagination)return V.value;const l=(y.value-1)*x.value,t=l+x.value;return V.value.slice(l,t)}),C=e.ref([]),oe=e.computed(()=>({backgroundColor:o.value.bgColor,color:o.value.textColor})),ne=e.computed(()=>o.value.showSearch||o.value.showActions),re=l=>{console.log("[dataReport] 显示频率变化:",l)},ce=()=>{console.log("[dataReport] 导出数据"),alert("导出功能待实现")},se=()=>{y.value=1,console.log("[dataReport] 搜索:",g.value)},ie=()=>{g.value={},y.value=1},ue=()=>{console.log("[dataReport] 新增");const l=o.value.columns||[],t={};l.forEach(a=>{a.key==="time"?t[a.key]=N.dayjs().format("YYYY/MM/DD HH:mm:ss"):a.key==="area"?t[a.key]="北帮":a.key==="deviceId"?t[a.key]="NEW001":t[a.key]="--"}),m.addRow(t),v.value=[...m.getTableDataArray()],y.value=1},de=()=>{console.log("[dataReport] 导入数据")},me=()=>{if(C.value.length===0||!confirm(`确定要删除选中的 ${C.value.length} 条记录吗?`))return;console.log("[dataReport] 批量删除:",C.value);const t=C.value.map(a=>a.object_id||a.objectId||a.id||a);v.value=v.value.filter(a=>{const n=a.object_id||a.objectId||a.id;return!t.some(s=>{if(typeof s=="object"){const c=s.object_id||s.objectId||s.id;return c&&n&&String(c)===String(n)}return n&&String(s)===String(n)})}),m.setTableDataArray([...v.value]),C.value=[],y.value=1},pe=()=>{confirm("确定要删除全部记录吗?此操作不可恢复!")&&(console.log("[dataReport] 全部删除"),v.value=[],m.setTableDataArray([]),C.value=[],y.value=1)},he=l=>{console.log("[dataReport] 编辑:",l);const t=v.value.findIndex(n=>{const s=n.object_id||n.objectId||n.id,c=l.object_id||l.objectId||l.id;return s===c});if(t===-1){console.warn("[dataReport] 未找到要编辑的行");return}const a=o.value.columns||[];if(a.length>0){const n=a[0],s=prompt(`编辑 ${n.label}:`,l[n.key]);if(s!==null){const c=I(S({},l),{[n.key]:s});m.updateRow(t,c),v.value=[...m.getTableDataArray()]}}},ve=l=>{console.log("[dataReport] 查看:",l);const t=o.value.columns||[];let a=`行详情:
2
2
 
3
3
  `;t.forEach(n=>{a+=`${n.label}: ${l[n.key]||"--"}
4
4
  `}),alert(a)},fe=l=>{if(!confirm("确定要删除这条记录吗?"))return;console.log("[dataReport] 删除:",l);const a=v.value.findIndex(n=>{const s=n.object_id||n.objectId||n.id,c=l.object_id||l.objectId||l.id;return s===c});a!==-1&&(v.value.splice(a,1),m.setTableDataArray(v.value),D.value.length===0&&y.value>1&&y.value--)},ye=l=>{C.value=l},j=l=>{if(console.log("[dataReport] 行点击:",l),d.mode==="preview"&&o.value.linkChannel){const t=S({objectId:l.object_id||l.objectId,deviceId:l.deviceId||l.device_id},l);console.log(`[dataReport] 发布到频道 "${o.value.linkChannel}":`,t),m.publish(t)}},ke=()=>{y.value=1},be=l=>{y.value=l},T=l=>o.value.showPagination?(y.value-1)*x.value+l+1:l+1,z=(l,t)=>l==null?"--":t.formatter&&typeof t.formatter=="function"?t.formatter(l,t):l,F=(l,t)=>{const a={};if(l.color&&(a.color=l.color),l.bgColor&&(a.backgroundColor=l.bgColor),l.colorRules&&l.colorRules.length>0){const n=parseFloat(t[l.key]);if(!isNaN(n)){for(const s of l.colorRules)if(n>=s.min&&n<=s.max){a.color=s.color;break}}}return t.alertColor&&(a.color=t.alertColor),a},ge=(l,t)=>t.isAlert&&l==="deviceId"?"device-id":t.isAlert?"alert-text":"",Ce=l=>{const t={color:o.value.textColor};return l.alertColor&&(t.color=l.alertColor),t},we=l=>{const t=[];return l.isAlert&&t.push("alert-row"),E(l)&&t.push("active-row"),t.join(" ")},_e=l=>{const t=[];return l.isAlert&&t.push("alert-row"),E(l)&&t.push("active-row"),t.join(" ")},Se=l=>{const t={};return E(l)&&(t.backgroundColor="rgba(24, 144, 255, 0.1)"),t},E=l=>{if(d.mode==="edit")return!1;const t=o.value.linkChannel,a=m.linkStore.channels[t];if(!a)return!1;const{payload:n}=a;return n.objectId&&l.object_id?String(n.objectId)===String(l.object_id):n.deviceId&&l.deviceId?String(n.deviceId)===String(l.deviceId):!1},Re=(l,t,a)=>{if(d.mode!=="edit"&&(a.stopPropagation(),d.mode==="preview"&&o.value.linkChannel)){const n=S({objectId:t.object_id||t.objectId,deviceId:t.deviceId||t.device_id,fieldKey:l.key,index:D.value.indexOf(t)},t);console.log(`[dataReport] 发布到频道 "${o.value.linkChannel}" (单元格点击):`,n),m.publish(n)}},xe=l=>{console.log("[dataReport] 收到联动事件:",l),!l||!l.topic||l.payload};return e.watch(()=>d.conf,()=>{m.init()},{deep:!0}),e.onMounted(()=>{m.init(),le(),o.value.showSearch&&o.value.searchFilters&&o.value.searchFilters.forEach(l=>{g.value[l.key]=""})}),e.onUnmounted(()=>{m.cleanup()}),(l,t)=>{const a=R.ElOption,n=R.ElSelect,s=R.ElIcon,c=R.ElButton,u=R.ElInput,p=R.ElTableColumn,f=R.ElTable,w=R.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"data-report-wrapper",style:e.normalizeStyle(oe.value)},[e.createElementVNode("div",Ae,[e.createElementVNode("div",je,[e.createElementVNode("span",Te,e.toDisplayString(e.unref(o).title),1),e.unref(o).linkChannel&&k.mode==="preview"?(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("span",Fe,"频道: "+e.toDisplayString(e.unref(o).linkChannel),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qe,[e.unref(o).showFrequency?(e.openBlock(),e.createElementBlock("div",Le,[t[3]||(t[3]=e.createElementVNode("span",{class:"frequency-label"},"显示频率:",-1)),e.createVNode(n,{modelValue:A.value,"onUpdate:modelValue":t[0]||(t[0]=r=>A.value=r),size:"small",style:{width:"120px"},onChange:re},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(te.value,r=>(e.openBlock(),e.createBlock(a,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),e.unref(o).showExport?(e.openBlock(),e.createBlock(c,{key:1,type:"success",size:"small",onClick:ce},{default:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Download))]),_:1}),e.createTextVNode(" "+e.toDisplayString(e.unref(o).exportLabel||"导出分析报表(Excel)"),1)]),_:1})):e.createCommentVNode("",!0)])]),ne.value?(e.openBlock(),e.createElementBlock("div",Me,[e.unref(o).showSearch?(e.openBlock(),e.createElementBlock("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).searchFilters,(r,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createElementVNode("span",Pe,e.toDisplayString(r.label)+":",1),r.type==="input"?(e.openBlock(),e.createBlock(u,{key:0,modelValue:g.value[r.key],"onUpdate:modelValue":i=>g.value[r.key]=i,placeholder:r.placeholder||"输入搜索...",size:"small",style:{width:"150px"},clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):r.type==="select"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:g.value[r.key],"onUpdate:modelValue":i=>g.value[r.key]=i,size:"small",style:{width:"150px"},clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options||[],i=>(e.openBlock(),e.createBlock(a,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(c,{type:"primary",size:"small",onClick:se},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(c,{size:"small",onClick:ie},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("重置",-1)])]),_:1})])):e.createCommentVNode("",!0),e.unref(o).showActions?(e.openBlock(),e.createElementBlock("div",Ue,[e.unref(o).actions.includes("add")?(e.openBlock(),e.createBlock(c,{key:0,type:"primary",size:"small",onClick:ue},{default:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Plus))]),_:1}),t[6]||(t[6]=e.createTextVNode(" 新增 ",-1))]),_:1})):e.createCommentVNode("",!0),e.unref(o).actions.includes("import")?(e.openBlock(),e.createBlock(c,{key:1,type:"success",size:"small",onClick:de},{default:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Upload))]),_:1}),t[7]||(t[7]=e.createTextVNode(" 导入数据 ",-1))]),_:1})):e.createCommentVNode("",!0),e.unref(o).actions.includes("batchDelete")?(e.openBlock(),e.createBlock(c,{key:2,type:"danger",size:"small",disabled:C.value.length===0,onClick:me},{default:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.Delete))]),_:1}),t[8]||(t[8]=e.createTextVNode(" 批量删除 ",-1))]),_:1},8,["disabled"])):e.createCommentVNode("",!0),e.unref(o).actions.includes("deleteAll")?(e.openBlock(),e.createBlock(c,{key:3,type:"danger",size:"small",onClick:pe},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode(" 全部删除 ",-1)])]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",We,[e.unref(o).tableMode==="el-table"?(e.openBlock(),e.createBlock(f,{key:0,data:D.value,style:e.normalizeStyle({color:e.unref(o).textColor}),"header-cell-style":{background:e.unref(o).headerBgColor,color:e.unref(o).textColor},"row-style":Ce,"row-class-name":we,onSelectionChange:ye,onRowClick:j,stripe:"",border:""},{default:e.withCtx(()=>[e.unref(o).showSelection?(e.openBlock(),e.createBlock(p,{key:0,type:"selection",width:"55",align:"center"})):e.createCommentVNode("",!0),e.unref(o).showSerialNumber?(e.openBlock(),e.createBlock(p,{key:1,type:"index",label:"序号",width:"60",align:"center",index:T})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).columns,r=>(e.openBlock(),e.createBlock(p,{key:r.key,prop:r.key,label:r.label,width:r.width,"min-width":r.minWidth||100,align:r.align||"left"},{default:e.withCtx(({row:h})=>[e.createElementVNode("span",{style:e.normalizeStyle(F(r,h))},e.toDisplayString(z(h[r.key],r)),5)]),_:2},1032,["prop","label","width","min-width","align"]))),128)),e.unref(o).rowActions&&e.unref(o).rowActions.length>0?(e.openBlock(),e.createBlock(p,{key:2,label:"操作",width:e.unref(o).actionColumnWidth||150,align:"center",fixed:"right"},{default:e.withCtx(({row:r})=>[e.unref(o).rowActions.includes("edit")?(e.openBlock(),e.createBlock(c,{key:0,link:"",type:"primary",size:"small",onClick:e.withModifiers(h=>he(r),["stop"])},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode(" 编辑 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(o).rowActions.includes("view")?(e.openBlock(),e.createBlock(c,{key:1,link:"",type:"info",size:"small",onClick:e.withModifiers(h=>ve(r),["stop"])},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode(" 查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(o).rowActions.includes("delete")?(e.openBlock(),e.createBlock(c,{key:2,link:"",type:"danger",size:"small",onClick:e.withModifiers(h=>fe(r),["stop"])},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode(" 删除 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1},8,["width"])):e.createCommentVNode("",!0)]),_:1},8,["data","style","header-cell-style"])):(e.openBlock(),e.createElementBlock("table",Ye,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.unref(o).showSerialNumber?(e.openBlock(),e.createElementBlock("th",$e,"序号")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).columns,r=>(e.openBlock(),e.createElementBlock("th",{key:r.key,style:e.normalizeStyle({width:r.width,minWidth:r.minWidth})},e.toDisplayString(r.label),5))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(r,h)=>(e.openBlock(),e.createElementBlock("tr",{key:h,class:e.normalizeClass(_e(r)),style:e.normalizeStyle(Se(r)),onClick:i=>j(r)},[e.unref(o).showSerialNumber?(e.openBlock(),e.createElementBlock("td",He,e.toDisplayString(T(h)),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).columns,i=>(e.openBlock(),e.createElementBlock("td",{key:i.key,class:e.normalizeClass(ge(i.key,r)),style:e.normalizeStyle(F(i,r)),onClick:_=>Re(i,r,_)},e.toDisplayString(z(r[i.key],i)),15,Ke))),128))],14,Ge))),128))])]))]),e.unref(o).showPagination?(e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(w,{"current-page":y.value,"onUpdate:currentPage":t[1]||(t[1]=r=>y.value=r),"page-size":x.value,"onUpdate:pageSize":t[2]||(t[2]=r=>x.value=r),"page-sizes":[10,20,50,100],total:ae.value,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:ke,onCurrentChange:be},null,8,["current-page","page-size","total"])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),nt=N._export_sfc(ot,[["__scopeId","data-v-f4561a18"]]);exports.default=nt;
@@ -9,7 +9,7 @@ import "element-plus/es/components/select/style/css";
9
9
  import "element-plus/es/components/option/style/css";
10
10
  import "element-plus/es/components/input/style/css";
11
11
  import { defineComponent as de, computed as a, ref as V, openBlock as n, createElementBlock as h, normalizeStyle as P, createElementVNode as g, toDisplayString as d, createVNode as y, createBlock as k, withCtx as u, Fragment as N, renderList as U, createCommentVNode as L, createTextVNode as z, withModifiers as T } from "vue";
12
- import { _ as ce } from "./index-YNdVib_6.js";
12
+ import { _ as ce } from "./index-CqVPeq0-.js";
13
13
  const ve = { class: "table-header" }, me = { class: "table-actions" }, fe = { key: 2 }, ye = { class: "table-footer" }, be = { class: "total-info" }, _e = /* @__PURE__ */ de({
14
14
  __name: "dataTable",
15
15
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./index-6QhTSPkL.cjs"),W={class:"table-header"},G={class:"table-actions"},H={key:2},J={class:"table-footer"},K={class:"total-info"},Q=e.defineComponent({__name:"dataTable",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"preview"}},emits:["action","row-click"],setup(E,{emit:N}){const o=E,b=N,v=e.computed(()=>{var l,t,r,i,u,d,f,p,h,g;return{bgColor:((t=(l=o.conf)==null?void 0:l.style)==null?void 0:t.bgColor)||"#ffffff",borderRadius:((i=(r=o.conf)==null?void 0:r.style)==null?void 0:i.borderRadius)||8,titleColor:((d=(u=o.conf)==null?void 0:u.style)==null?void 0:d.titleColor)||"#333333",linkColor:((p=(f=o.conf)==null?void 0:f.style)==null?void 0:p.linkColor)||"#1890ff",padding:((g=(h=o.conf)==null?void 0:h.style)==null?void 0:g.padding)||16}}),D=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.title)||"数据列表"}),q=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.columns)||[{prop:"time",label:"预警时间",width:160},{prop:"type",label:"预警类型",type:"link"},{prop:"area",label:"区域",width:80},{prop:"level",label:"预警级别",width:80},{prop:"value",label:"监测值",width:100},{prop:"status",label:"状态",type:"status",width:80}]}),z=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.tableData)||w}),T=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.showActions)!==!1}),P=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.searchPlaceholder)||"搜索记录..."}),I=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.filterPlaceholder)||"全部类型"}),C=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.filterOptions)||[]}),w=[{time:"2023-06-15 14:32:21",type:"煤层自燃监测",area:"C区域",level:"预警级别",value:"78.6℃",status:"处理中"},{time:"2023-06-15 13:45:10",type:"地上水位监测",area:"B区域",level:"预警级别",value:"6.8m",status:"已处理"},{time:"2023-06-15 10:18:45",type:"地上下位移监测",area:"A区域",level:"预警级别",value:"12.3mm",status:"已处理"},{time:"2023-06-14 20:05:33",type:"降雨量监测",area:"D区域",level:"预警级别",value:"156mm/24h",status:"已处理"},{time:"2023-06-14 15:30:17",type:"多模态数据融合",area:"B区域",level:"预警级别",value:"0.78",status:"已处理"}],n=e.ref(1),c=e.ref(5),y=e.ref(""),k=e.ref(""),x=e.computed(()=>{let l=z.value;if(y.value){const t=y.value.toLowerCase();l=l.filter(r=>Object.values(r).some(i=>String(i).toLowerCase().includes(t)))}return k.value&&(l=l.filter(t=>t.type===k.value)),l}),_=e.computed(()=>x.value.length),O=e.computed(()=>(n.value-1)*c.value+1),R=e.computed(()=>Math.min(n.value*c.value,_.value)),V=e.computed(()=>{const l=(n.value-1)*c.value;return x.value.slice(l,l+c.value)}),A=e.computed(()=>({backgroundColor:v.value.bgColor,borderRadius:v.value.borderRadius+"px",padding:v.value.padding+"px"})),M=l=>({处理中:"warning",已处理:"success",待处理:"danger"})[l]||"info",$=()=>{n.value=1},L=()=>{},U=l=>{b("row-click",l)},B=(l,t)=>{b("action",{action:l,row:t})},j=(l,t)=>{var r,i;if(confirm(`确定要删除 ${l.time} 的 ${l.type} 记录吗?`)){const u=((i=(r=o.conf)==null?void 0:r.data)==null?void 0:i.tableData)||w,d=(n.value-1)*c.value+t;u.splice(d,1),V.value.length===0&&n.value>1&&n.value--,b("action",{action:"delete",row:l})}};return(l,t)=>{const r=s.ElInput,i=s.ElOption,u=s.ElSelect,d=s.ElTag,f=s.ElTableColumn,p=s.ElButton,h=s.ElTable,g=s.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"data-table",style:e.normalizeStyle(A.value)},[e.createElementVNode("div",W,[e.createElementVNode("div",{class:"table-title",style:e.normalizeStyle({color:v.value.titleColor})},e.toDisplayString(D.value),5),e.createElementVNode("div",G,[e.createVNode(r,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=a=>y.value=a),placeholder:P.value,"prefix-icon":"Search",clearable:"",style:{width:"200px"},onInput:$},null,8,["modelValue","placeholder"]),C.value.length?(e.openBlock(),e.createBlock(u,{key:0,modelValue:k.value,"onUpdate:modelValue":t[1]||(t[1]=a=>k.value=a),placeholder:I.value,style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,a=>(e.openBlock(),e.createBlock(i,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0)])]),e.createVNode(h,{data:V.value,style:{width:"100%"},"row-style":{cursor:"pointer"},onRowClick:U},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,a=>(e.openBlock(),e.createBlock(f,{key:a.prop,prop:a.prop,label:a.label,width:a.width,"min-width":a.minWidth},{default:e.withCtx(({row:m})=>[a.type==="link"?(e.openBlock(),e.createElementBlock("span",{key:0,class:"link-text",style:e.normalizeStyle({color:v.value.linkColor})},e.toDisplayString(m[a.prop]),5)):a.type==="status"?(e.openBlock(),e.createBlock(d,{key:1,type:M(m[a.prop]),size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m[a.prop]),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(m[a.prop]),1))]),_:2},1032,["prop","label","width","min-width"]))),128)),T.value?(e.openBlock(),e.createBlock(f,{key:0,label:"操作",width:"180"},{default:e.withCtx(({row:a,$index:m})=>[e.createVNode(p,{link:"",type:"primary",size:"small",onClick:e.withModifiers(S=>B("detail",a),["stop"])},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("详情",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{link:"",type:"primary",size:"small",onClick:e.withModifiers(S=>B("handle",a),["stop"])},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("处理",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{link:"",type:"danger",size:"small",onClick:e.withModifiers(S=>j(a,m),["stop"])},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"]),e.createElementVNode("div",J,[e.createElementVNode("span",K,"显示第 "+e.toDisplayString(O.value)+" 至 "+e.toDisplayString(R.value)+" 条,共 "+e.toDisplayString(_.value)+" 条记录",1),e.createVNode(g,{"current-page":n.value,"onUpdate:currentPage":t[2]||(t[2]=a=>n.value=a),"page-size":c.value,"onUpdate:pageSize":t[3]||(t[3]=a=>c.value=a),total:_.value,"page-sizes":[5,10,20,50],layout:"prev, pager, next",small:"",onChange:L},null,8,["current-page","page-size","total"])])],4)}}}),X=F._export_sfc(Q,[["__scopeId","data-v-217591b3"]]);exports.default=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./index-OgmTZiO-.cjs"),W={class:"table-header"},G={class:"table-actions"},H={key:2},J={class:"table-footer"},K={class:"total-info"},Q=e.defineComponent({__name:"dataTable",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"preview"}},emits:["action","row-click"],setup(E,{emit:N}){const o=E,b=N,v=e.computed(()=>{var l,t,r,i,u,d,f,p,h,g;return{bgColor:((t=(l=o.conf)==null?void 0:l.style)==null?void 0:t.bgColor)||"#ffffff",borderRadius:((i=(r=o.conf)==null?void 0:r.style)==null?void 0:i.borderRadius)||8,titleColor:((d=(u=o.conf)==null?void 0:u.style)==null?void 0:d.titleColor)||"#333333",linkColor:((p=(f=o.conf)==null?void 0:f.style)==null?void 0:p.linkColor)||"#1890ff",padding:((g=(h=o.conf)==null?void 0:h.style)==null?void 0:g.padding)||16}}),D=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.title)||"数据列表"}),q=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.columns)||[{prop:"time",label:"预警时间",width:160},{prop:"type",label:"预警类型",type:"link"},{prop:"area",label:"区域",width:80},{prop:"level",label:"预警级别",width:80},{prop:"value",label:"监测值",width:100},{prop:"status",label:"状态",type:"status",width:80}]}),z=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.tableData)||w}),T=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.showActions)!==!1}),P=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.searchPlaceholder)||"搜索记录..."}),I=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.filterPlaceholder)||"全部类型"}),C=e.computed(()=>{var l,t;return((t=(l=o.conf)==null?void 0:l.data)==null?void 0:t.filterOptions)||[]}),w=[{time:"2023-06-15 14:32:21",type:"煤层自燃监测",area:"C区域",level:"预警级别",value:"78.6℃",status:"处理中"},{time:"2023-06-15 13:45:10",type:"地上水位监测",area:"B区域",level:"预警级别",value:"6.8m",status:"已处理"},{time:"2023-06-15 10:18:45",type:"地上下位移监测",area:"A区域",level:"预警级别",value:"12.3mm",status:"已处理"},{time:"2023-06-14 20:05:33",type:"降雨量监测",area:"D区域",level:"预警级别",value:"156mm/24h",status:"已处理"},{time:"2023-06-14 15:30:17",type:"多模态数据融合",area:"B区域",level:"预警级别",value:"0.78",status:"已处理"}],n=e.ref(1),c=e.ref(5),y=e.ref(""),k=e.ref(""),x=e.computed(()=>{let l=z.value;if(y.value){const t=y.value.toLowerCase();l=l.filter(r=>Object.values(r).some(i=>String(i).toLowerCase().includes(t)))}return k.value&&(l=l.filter(t=>t.type===k.value)),l}),_=e.computed(()=>x.value.length),O=e.computed(()=>(n.value-1)*c.value+1),R=e.computed(()=>Math.min(n.value*c.value,_.value)),V=e.computed(()=>{const l=(n.value-1)*c.value;return x.value.slice(l,l+c.value)}),A=e.computed(()=>({backgroundColor:v.value.bgColor,borderRadius:v.value.borderRadius+"px",padding:v.value.padding+"px"})),M=l=>({处理中:"warning",已处理:"success",待处理:"danger"})[l]||"info",$=()=>{n.value=1},L=()=>{},U=l=>{b("row-click",l)},B=(l,t)=>{b("action",{action:l,row:t})},j=(l,t)=>{var r,i;if(confirm(`确定要删除 ${l.time} 的 ${l.type} 记录吗?`)){const u=((i=(r=o.conf)==null?void 0:r.data)==null?void 0:i.tableData)||w,d=(n.value-1)*c.value+t;u.splice(d,1),V.value.length===0&&n.value>1&&n.value--,b("action",{action:"delete",row:l})}};return(l,t)=>{const r=s.ElInput,i=s.ElOption,u=s.ElSelect,d=s.ElTag,f=s.ElTableColumn,p=s.ElButton,h=s.ElTable,g=s.ElPagination;return e.openBlock(),e.createElementBlock("div",{class:"data-table",style:e.normalizeStyle(A.value)},[e.createElementVNode("div",W,[e.createElementVNode("div",{class:"table-title",style:e.normalizeStyle({color:v.value.titleColor})},e.toDisplayString(D.value),5),e.createElementVNode("div",G,[e.createVNode(r,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=a=>y.value=a),placeholder:P.value,"prefix-icon":"Search",clearable:"",style:{width:"200px"},onInput:$},null,8,["modelValue","placeholder"]),C.value.length?(e.openBlock(),e.createBlock(u,{key:0,modelValue:k.value,"onUpdate:modelValue":t[1]||(t[1]=a=>k.value=a),placeholder:I.value,style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,a=>(e.openBlock(),e.createBlock(i,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0)])]),e.createVNode(h,{data:V.value,style:{width:"100%"},"row-style":{cursor:"pointer"},onRowClick:U},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,a=>(e.openBlock(),e.createBlock(f,{key:a.prop,prop:a.prop,label:a.label,width:a.width,"min-width":a.minWidth},{default:e.withCtx(({row:m})=>[a.type==="link"?(e.openBlock(),e.createElementBlock("span",{key:0,class:"link-text",style:e.normalizeStyle({color:v.value.linkColor})},e.toDisplayString(m[a.prop]),5)):a.type==="status"?(e.openBlock(),e.createBlock(d,{key:1,type:M(m[a.prop]),size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m[a.prop]),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(m[a.prop]),1))]),_:2},1032,["prop","label","width","min-width"]))),128)),T.value?(e.openBlock(),e.createBlock(f,{key:0,label:"操作",width:"180"},{default:e.withCtx(({row:a,$index:m})=>[e.createVNode(p,{link:"",type:"primary",size:"small",onClick:e.withModifiers(S=>B("detail",a),["stop"])},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("详情",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{link:"",type:"primary",size:"small",onClick:e.withModifiers(S=>B("handle",a),["stop"])},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("处理",-1)])]),_:1},8,["onClick"]),e.createVNode(p,{link:"",type:"danger",size:"small",onClick:e.withModifiers(S=>j(a,m),["stop"])},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"]),e.createElementVNode("div",J,[e.createElementVNode("span",K,"显示第 "+e.toDisplayString(O.value)+" 至 "+e.toDisplayString(R.value)+" 条,共 "+e.toDisplayString(_.value)+" 条记录",1),e.createVNode(g,{"current-page":n.value,"onUpdate:currentPage":t[2]||(t[2]=a=>n.value=a),"page-size":c.value,"onUpdate:pageSize":t[3]||(t[3]=a=>c.value=a),total:_.value,"page-sizes":[5,10,20,50],layout:"prev, pager, next",small:"",onChange:L},null,8,["current-page","page-size","total"])])],4)}}}),X=F._export_sfc(Q,[["__scopeId","data-v-217591b3"]]);exports.default=X;
@@ -1 +1 @@
1
- "use strict";var D=Object.defineProperty,y=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var f=(n,e,t)=>e in n?D(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,p=(n,e)=>{for(var t in e||(e={}))M.call(e,t)&&f(n,t,e[t]);if(d)for(var t of d(e))z.call(e,t)&&f(n,t,e[t]);return n},v=(n,e)=>y(n,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),S=require("./index-6QhTSPkL.cjs");require("html2canvas");const T=require("./BaseComponent-bzb58Hhs.cjs"),Y=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),g={class:"mix-component"},I={DEFAULT_ICON:Y.DEFAULT_ICON,ACTIVE_ICON:Y.ACTIVE_ICON,NAME_CN:"时间",NAME_EN:"Date Time",ORDER:1,PLATFORM:["pc","screen","mobile"]},O={bgColor:"#fff",textColor:"#111",textSize:16,radiusSize:8,format:{value:"YYYY-MM-DD HH:mm:ss",type:"select",label:"component.customized.format",options:[{label:"component.customized.dateTimeFormat1",value:"YYYY-MM-DD HH:mm:ss"},{label:"component.customized.dateTimeFormat2",value:"YYYY年MM月DD日 HH:mm:ss"},{label:"component.customized.dateTimeFormat3",value:"YYYY/MM/DD HH:mm:ss"},{label:"component.customized.dateFormat",value:"YYYY-MM-DD"},{label:"component.customized.timeFormat",value:"HH:mm:ss"}]}},H={DEFAULT:I,OPTIONS:O,COMMON:{}},E=o.defineComponent(v(p({},H),{__name:"datetime",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const e=n,t=o.ref("");let l=null;class x extends T.BaseComponent{extractStyles(){const{options:a}=this.props.conf,s=(C,_)=>{const i=a==null?void 0:a[C];return i==null?_:typeof i=="object"&&"value"in i?i.value:i};return{bgColor:s("bgColor","#fff"),textColor:s("textColor","#303133"),textSize:s("textSize",16),radiusSize:s("radiusSize",8)}}init(){super.init(),l&&clearInterval(l),m(),l=setInterval(()=>{m()},1e3)}cleanup(){l&&(clearInterval(l),l=null)}}const m=()=>{const{options:r}=e.conf,a=r==null?void 0:r.format,s=a&&typeof a=="object"&&"value"in a?a.value:a||"YYYY-MM-DD HH:mm:ss";t.value=S.dayjs().format(s)},u=new x(e,"datetime");u.setupLifecycle();const c=u.getStyle();return o.watch(()=>{var r;return(r=e.conf)==null?void 0:r.options},r=>{r&&(c.value=u.extractStyles(),m())},{deep:!0}),(r,a)=>(o.openBlock(),o.createElementBlock("div",g,[o.createElementVNode("div",{class:"flex flex-1 px-[12px] items-center justify-center flex-nowrap",style:o.normalizeStyle({backgroundColor:o.unref(c).bgColor,color:o.unref(c).textColor,borderRadius:`${o.unref(c).radiusSize}px`,fontSize:`${o.unref(c).textSize}px`})},o.toDisplayString(t.value),5),o.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),N=S._export_sfc(E,[["__scopeId","data-v-7961577a"]]);exports.default=N;
1
+ "use strict";var D=Object.defineProperty,y=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var f=(n,e,t)=>e in n?D(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,p=(n,e)=>{for(var t in e||(e={}))M.call(e,t)&&f(n,t,e[t]);if(d)for(var t of d(e))z.call(e,t)&&f(n,t,e[t]);return n},v=(n,e)=>y(n,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),S=require("./index-OgmTZiO-.cjs");require("html2canvas");const T=require("./BaseComponent-DaYX7dUF.cjs"),Y=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),g={class:"mix-component"},I={DEFAULT_ICON:Y.DEFAULT_ICON,ACTIVE_ICON:Y.ACTIVE_ICON,NAME_CN:"时间",NAME_EN:"Date Time",ORDER:1,PLATFORM:["pc","screen","mobile"]},O={bgColor:"#fff",textColor:"#111",textSize:16,radiusSize:8,format:{value:"YYYY-MM-DD HH:mm:ss",type:"select",label:"component.customized.format",options:[{label:"component.customized.dateTimeFormat1",value:"YYYY-MM-DD HH:mm:ss"},{label:"component.customized.dateTimeFormat2",value:"YYYY年MM月DD日 HH:mm:ss"},{label:"component.customized.dateTimeFormat3",value:"YYYY/MM/DD HH:mm:ss"},{label:"component.customized.dateFormat",value:"YYYY-MM-DD"},{label:"component.customized.timeFormat",value:"HH:mm:ss"}]}},H={DEFAULT:I,OPTIONS:O,COMMON:{}},E=o.defineComponent(v(p({},H),{__name:"datetime",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const e=n,t=o.ref("");let l=null;class x extends T.BaseComponent{extractStyles(){const{options:a}=this.props.conf,s=(C,_)=>{const i=a==null?void 0:a[C];return i==null?_:typeof i=="object"&&"value"in i?i.value:i};return{bgColor:s("bgColor","#fff"),textColor:s("textColor","#303133"),textSize:s("textSize",16),radiusSize:s("radiusSize",8)}}init(){super.init(),l&&clearInterval(l),m(),l=setInterval(()=>{m()},1e3)}cleanup(){l&&(clearInterval(l),l=null)}}const m=()=>{const{options:r}=e.conf,a=r==null?void 0:r.format,s=a&&typeof a=="object"&&"value"in a?a.value:a||"YYYY-MM-DD HH:mm:ss";t.value=S.dayjs().format(s)},u=new x(e,"datetime");u.setupLifecycle();const c=u.getStyle();return o.watch(()=>{var r;return(r=e.conf)==null?void 0:r.options},r=>{r&&(c.value=u.extractStyles(),m())},{deep:!0}),(r,a)=>(o.openBlock(),o.createElementBlock("div",g,[o.createElementVNode("div",{class:"flex flex-1 px-[12px] items-center justify-center flex-nowrap",style:o.normalizeStyle({backgroundColor:o.unref(c).bgColor,color:o.unref(c).textColor,borderRadius:`${o.unref(c).radiusSize}px`,fontSize:`${o.unref(c).textSize}px`})},o.toDisplayString(t.value),5),o.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),N=S._export_sfc(E,[["__scopeId","data-v-7961577a"]]);exports.default=N;
@@ -11,9 +11,9 @@ var f = (o, e, t) => e in o ? _(o, e, { enumerable: !0, configurable: !0, writab
11
11
  return o;
12
12
  }, Y = (o, e) => D(o, y(e));
13
13
  import { defineComponent as b, ref as z, watch as g, openBlock as H, createElementBlock as T, createElementVNode as O, normalizeStyle as E, unref as i, toDisplayString as I, renderSlot as N } from "vue";
14
- import { d as F, _ as A } from "./index-YNdVib_6.js";
14
+ import { d as F, _ as A } from "./index-CqVPeq0-.js";
15
15
  import "html2canvas";
16
- import { B as h } from "./BaseComponent-Dwhb9Mde.js";
16
+ import { B as h } from "./BaseComponent-CEp8NJiX.js";
17
17
  import { A as j, D as B } from "./ele-dateTime-icon-BEGFlwID.js";
18
18
  const L = { class: "mix-component" }, R = {
19
19
  DEFAULT_ICON: B,
@@ -16,9 +16,9 @@ import "element-plus/es/components/button/style/css";
16
16
  import "element-plus/es/components/icon/style/css";
17
17
  import { defineComponent as Vt, ref as A, computed as P, watch as lt, watchEffect as kt, onMounted as Tt, openBlock as rt, createElementBlock as ct, normalizeStyle as ut, unref as H, toDisplayString as Lt, createCommentVNode as Mt, createElementVNode as q, createVNode as J, withCtx as ft, createTextVNode as $t, renderSlot as Ft, nextTick as dt } from "vue";
18
18
  import { Download as Rt } from "@element-plus/icons-vue";
19
- import { l as zt, O as ht, N as jt, _ as Bt } from "./index-YNdVib_6.js";
19
+ import { l as zt, O as ht, N as jt, _ as Bt } from "./index-CqVPeq0-.js";
20
20
  import "element-plus";
21
- import { E as Pt } from "./EChartComponentBase-BmS2KONN.js";
21
+ import { E as Pt } from "./EChartComponentBase-B-VNAC8K.js";
22
22
  import { g as Ht } from "./titleStyle-BT5GlpAb.js";
23
23
  import { A as Ut, D as Yt } from "./ele-lin-icon-Dax-ZiWV.js";
24
24
  import { u as Kt, i as Gt, a as Wt } from "./installCanvasRenderer-oDYkyVFy.js";
@@ -1 +1 @@
1
- "use strict";var St=Object.defineProperty,vt=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var nt=(v,r,N)=>r in v?St(v,r,{enumerable:!0,configurable:!0,writable:!0,value:N}):v[r]=N,st=(v,r)=>{for(var N in r||(r={}))bt.call(r,N)&&nt(v,N,r[N]);if(et)for(var N of et(r))Ct.call(r,N)&&nt(v,N,r[N]);return v},lt=(v,r)=>vt(v,Nt(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const a=require("vue"),yt=require("@element-plus/icons-vue"),B=require("./index-6QhTSPkL.cjs");require("element-plus");const Ot=require("./EChartComponentBase-CMN_pOMr.cjs"),xt=require("./titleStyle-NSnz6cUg.cjs"),at=require("./ele-lin-icon-Dke_1AmT.cjs"),W=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Dt=require("./install-C8buXQPI.cjs"),It=require("./install-CltTFs4e.cjs"),Et=require("./install-CYwVETsi.cjs"),_t={class:"mix-body"},Vt={class:"toolbar"},wt=["id"],At={DEFAULT_ICON:at.DEFAULT_ICON,ACTIVE_ICON:at.ACTIVE_ICON,NAME_CN:"聚类滑面关联",NAME_EN:"DeepClusterSlipSurface",ORDER:18,PLATFORM:["pc","screen"]},Tt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:40,xName:{value:"时间",type:"string",label:"X轴名称"},yLeftName:{value:"累计位移(mm)",type:"string",label:"左轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},it=[{name:"累计位移",fv:"disp_130",color:"#5470c6",object_id:""}],kt=["name","fv","color","object_id"],Lt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Mt={useAlias:!1,multiObject:!0,source:"mosaic"},$t={DEFAULT:At,OPTIONS:Tt,DATA:it,PARAMS:kt,SOURCE:Lt,COMMON:Mt},Ft=a.defineComponent(lt(st({},$t),{__name:"deepClusterSlipSurface",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){W.use([Dt.install,W.install,It.install,W.install$1,Et.install]);const r=v,N=B.useLinkStore(),w=a.ref([]),M=a.ref(new Map),P=t=>{if(t==null)return"";const e=typeof t=="string"?t:String(t),s=typeof t=="number"||/^\d+$/.test(e)?new Date(Number(t)):new Date(e);if(Number.isNaN(s.getTime()))return e;const i=s.getFullYear(),o=String(s.getMonth()+1).padStart(2,"0"),u=String(s.getDate()).padStart(2,"0"),d=String(s.getHours()).padStart(2,"0"),l=String(s.getMinutes()).padStart(2,"0"),f=String(s.getSeconds()).padStart(2,"0");return`${i}-${o}-${u} ${d}:${l}:${f}`};class rt extends Ot.EChartComponentBase{extractStyles(){const e=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),s=e==="custom"&&n?n:e;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",40),xName:this.getOptionValue("xName","时间"),yLeftName:this.getOptionValue("yLeftName","累计位移(mm)"),linkChannel:s}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=it),a.nextTick(()=>this.initChart())}setHistoryData(e){tt(e)}setSocketData(e){e&&tt(e)}setPanelConfig(e){this.panelConfig=e||{};const n=this.getChartInstance();n&&n.setOption(this.getChartOption(),!0)}onLinkEvent(e){Z(e)}getChartOption(){var d;const e=((d=r.conf)==null?void 0:d.data)||[],n=this.panelConfig||{},s=Object.keys(n).find(l=>l.endsWith("__yAxis")),i=s&&n[s]||n.range__yAxis||n.range__y||null,o=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,u=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null;return{animation:!0,animationDuration:500,animationDurationUpdate:700,animationEasing:"cubicOut",animationEasingUpdate:"cubicInOut",grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:G.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:l=>F.value==="day"?q(l):P(l)}},yAxis:[{type:"value",name:this.Style.value.yLeftName,min:o!==null?o:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}}],series:e.filter(l=>!A.value||A.value.length===0?!1:A.value.includes(String(l==null?void 0:l.fv))).map((l,f)=>{const m=(l==null?void 0:l.fv)||`v${f}`,g=new Map;J.value.forEach(c=>{const h=c[m];h!=null&&g.set(String(c.t),Number(h))});const S=G.value.map(c=>g.has(c)?g.get(c):null);return{name:(l==null?void 0:l.name)||`序列${f+1}`,type:"line",smooth:.35,smoothMonotone:"x",showSymbol:!1,emphasis:{focus:"series",scale:!0},data:S,lineStyle:{color:(l==null?void 0:l.color)||"#5470c6",width:2},itemStyle:{color:(l==null?void 0:l.color)||"#5470c6"}}})}}}const O=new rt(r,"deepClusterSlipSurface"),ct=O.getEchartId();O.setupLifecycle();const H=O.getStyle(),ut=a.computed(()=>xt.generateTitleStyle(r.conf.options)),V=a.ref([]),A=a.ref(null),Y=a.ref(!1),X=a.ref(null),F=a.ref("hour"),K=a.ref([]),R=()=>{var n;if(Y.value||A.value&&A.value.length)return;const e=(((n=r.conf)==null?void 0:n.data)||[]).map(s=>String((s==null?void 0:s.logicKey)||(s==null?void 0:s.fv)||"")).filter(Boolean);A.value=e.length?e:null},U=t=>{if(t==null)return Number.NaN;const e=typeof t=="string"?t.trim():String(t);if(!e)return Number.NaN;if(/^\d+$/.test(e)){const n=Number(e);return e.length<=10?n*1e3:n}return new Date(e).getTime()},q=t=>{const e=U(t);if(Number.isNaN(e))return String(t||"").slice(0,10);const n=new Date(e),s=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return`${s}-${i}-${o}`},ft=(t,e)=>{if(!(e!=null&&e.startDate)&&!(e!=null&&e.endDate))return!0;const n=U(t);if(Number.isNaN(n))return!0;const s=e.startDate?U(e.startDate):Number.NEGATIVE_INFINITY,i=e.endDate?U(e.endDate):Number.POSITIVE_INFINITY,o=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s,u=Number.isNaN(i)?Number.POSITIVE_INFINITY:i;return n>=o&&n<=u},dt=t=>{var i;const e=((i=r.conf)==null?void 0:i.data)||[];if(!t.length||!e.length)return t;const n=new Map;t.forEach(o=>{const u=q(o.t);n.has(u)||n.set(u,[]),n.get(u).push(o)});const s=[];return Array.from(n.entries()).forEach(([o,u])=>{const d={t:o};let l=!1;e.forEach(f=>{const m=f==null?void 0:f.fv;if(!m)return;let g=0,S=0;u.forEach(c=>{const h=Number(c[m]);Number.isFinite(h)&&(g+=h,S+=1)}),S>0&&(d[m]=Number((g/S).toFixed(6)),l=!0)}),l&&s.push(d)}),s.sort((o,u)=>String(o.t).localeCompare(String(u.t)))},ht=(t,e)=>{const n=String(t||"").trim(),s=String(e||"").trim();return!n||!s?!1:n===s?!0:F.value==="day"?q(n)===q(s):P(n)===P(s)},mt=a.computed(()=>{const t=F.value==="day"?dt(V.value):V.value;if(!t.length)return[];const e=X.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?t:t.filter(n=>ft(String(n.t),e))}),J=a.computed(()=>{const t=mt.value;return K.value.length>0?t.filter(e=>K.value.some(n=>ht(String(e.t),n))):t}),G=a.computed(()=>{const t=new Set;return J.value.forEach(e=>t.add(String(e.t))),Array.from(t).sort()});a.computed(()=>G.value.map(t=>F.value==="day"?q(t):P(t)));const z=()=>{a.nextTick(()=>{const t=O.getChartInstance();t&&t.setOption(O.getChartOption(),!0)})},pt=()=>{const t=O.getChartInstance();if(!t)return;const e=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=e,n.download=`cluster-slip-${selectedTime.value||Date.now()}.png`,n.click()},Q=()=>{var s,i,o;const t=((s=r.conf)==null?void 0:s.options)||{},e=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||H.value.linkChannel||"deepDisplacement",n=((o=t==null?void 0:t.customChannel)==null?void 0:o.value)||"";return e==="custom"&&n?n:e},gt=t=>{var o,u,d;const e=((o=r.conf)==null?void 0:o.data)||[];if(e.length===0)return[];if(Array.isArray(t==null?void 0:t.data))return t.data.map((l,f)=>{var S,c;const m={t:String((c=(S=l==null?void 0:l.time)!=null?S:l==null?void 0:l.datetime)!=null?c:f)};let g=!1;return e.forEach(h=>{const I=h==null?void 0:h.fv;I&&(l==null?void 0:l[I])!==void 0&&(l==null?void 0:l[I])!==null&&(m[I]=Number(l==null?void 0:l[I]),g=!0)}),g?m:null}).filter(Boolean);const s={t:String((d=(u=t==null?void 0:t.time)!=null?u:t==null?void 0:t.datetime)!=null?d:Date.now())};let i=!1;return e.forEach(l=>{const f=l==null?void 0:l.fv;if(!f)return;const m=t==null?void 0:t[f];m!=null&&M.value.set(f,Number(m)),M.value.has(f)&&(s[f]=M.value.get(f),i=!0)}),i?[s]:[]},Z=t=>{var d,l,f,m,g,S;if(!t||!t.payload)return;const e=Q();if((d=t.topic)!=null&&d.channel&&e&&t.topic.channel!==e||!N.shouldHandle(t,"deepClusterSlipSurface"))return;const n=t.payload;if((n==null?void 0:n.type)==="filter"){const c=n.filter||n,h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id),E=((f=(((l=r.conf)==null?void 0:l.data)||[])[0])==null?void 0:f.configPanelId)||"",C=[r.uid,(m=r.conf)==null?void 0:m.id,(g=r.conf)==null?void 0:g.uid,E].map(y=>String(y||"").trim()).filter(Boolean).includes(String(h||"").trim());if(!h||!C)return;O.setPanelConfig(c);const T=c.nodeList||c.selectList||c.options||c.selectedNodes,_=Array.isArray(T)?T.map(String):null;Y.value=Array.isArray(T),A.value=_&&_.length>0?_:[],Y.value||R();const x=Object.entries(c||{}).find(([y,L])=>{if(!L||typeof L!="object"||Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")&&j.includes("range")||!!L.startDate&&!!L.endDate}),p=(x==null?void 0:x[1])||c.timeRange||c.range||null;X.value=p&&(p.startDate||p.endDate)?{startDate:p.startDate,endDate:p.endDate}:null;const D=String((p==null?void 0:p.granularity)||(c==null?void 0:c.granularity)||"").toLowerCase();(D==="day"||D==="hour")&&(F.value=D);const k=Object.entries(c||{}).find(([y,L])=>{if(!Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")||j.includes("date")}),$=c.timeList||c.selectedTimes||(k==null?void 0:k[1]);K.value=Array.isArray($)?$.map(y=>String(y)):[],z();return}const s=r.conf,i=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(i.length>0&&!(o!=null&&o.multiObject)){const c=B.getObjectId(o,o==null?void 0:o.useAlias,r.uid)||((S=i[0])==null?void 0:S.object_id),h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(c&&h&&String(c)!==String(h))return}const u=gt(n);u.length&&(V.value=u.length===1?[...V.value.slice(-199),...u]:u,R(),z())},tt=t=>{var l,f,m,g,S,c,h,I;const e=r.conf,n=(e==null?void 0:e.data)||[],s=(e==null?void 0:e.common)||{},i=(s==null?void 0:s.source)||"mosaic";let o=t;["statistics","calculate"].includes(i)&&(o=B.formatStatisticsResult(o,n));const u=n||[],d=[];if((l=o==null?void 0:o.history)!=null&&l.length)o.history.forEach((E,b)=>{var p,D;const C=(E==null?void 0:E[0])||E||{},_={t:String((D=(p=C==null?void 0:C.time)!=null?p:C==null?void 0:C.datetime)!=null?D:b)};let x=!1;u.forEach(k=>{const $=k==null?void 0:k.fv;if(!$)return;const y=C==null?void 0:C[$];y!=null&&(_[$]=Number(y),x=!0)}),x&&d.push(_)}),w.value=d,V.value=[...w.value],R();else{const E=B.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((f=n[0])==null?void 0:f.object_id),b=E&&((g=(m=o==null?void 0:o[E])==null?void 0:m[i])==null?void 0:g.data)||((S=o==null?void 0:o[i])==null?void 0:S.data)||(o==null?void 0:o.data)||o,T={t:String((h=(c=b==null?void 0:b.time)!=null?c:b==null?void 0:b.datetime)!=null?h:Date.now())};let _=!1;u.forEach(x=>{const p=x==null?void 0:x.fv;if(!p)return;const D=b==null?void 0:b[p];D!=null&&M.value.set(p,Number(D)),M.value.has(p)&&(T[p]=M.value.get(p),_=!0)}),_&&d.push(T),d.length&&(w.value=[...w.value,...d],V.value=[...w.value],R())}!d.length&&!((I=o==null?void 0:o.history)!=null&&I.length)||z()};return a.watch(()=>N.channels[Q()],t=>{t&&Z(t)},{deep:!0}),a.watchEffect(()=>{r.conf.socketData&&O.setSocketData(r.conf.socketData)}),a.watch(()=>{var t;return(t=r.conf)==null?void 0:t.options},()=>{O.getStyle().value=O.extractStyles(),z()},{deep:!0}),a.onMounted(()=>{if(r.mode==="edit"&&!V.value.length){const t=["2026-03-05","2026-03-04","2026-03-03"],e=[];t.forEach(n=>{for(let s=0;s<24;s++){const i=`${n} ${String(s).padStart(2,"0")}:00:00`;e.push({t:i,disp:Number((s*1.8+Math.sin(s/3)*2).toFixed(2)),slip:Number(Math.max(0,Math.min(1,.25+s*.02+Math.sin(s/4)*.08)).toFixed(3))})}}),w.value=e,V.value=[...w.value]}R(),z()}),(t,e)=>{const n=ot.ElIcon,s=ot.ElButton;return a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(H).bgColor,borderRadius:`${a.unref(H).radiusSize}px`})},[a.unref(H).isHideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"mix-title",style:a.normalizeStyle(ut.value)},a.toDisplayString(v.conf.caption||v.conf.name),5)),a.createElementVNode("div",_t,[a.createElementVNode("div",Vt,[a.createVNode(s,{size:"small",class:"export-btn",onClick:pt},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createVNode(a.unref(yt.Download))]),_:1}),e[0]||(e[0]=a.createTextVNode(" 导出图 ",-1))]),_:1})]),a.createElementVNode("div",{class:"echart-container",id:a.unref(ct)},null,8,wt)]),a.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),Rt=B._export_sfc(Ft,[["__scopeId","data-v-98d6e980"]]);exports.default=Rt;
1
+ "use strict";var St=Object.defineProperty,vt=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var nt=(v,r,N)=>r in v?St(v,r,{enumerable:!0,configurable:!0,writable:!0,value:N}):v[r]=N,st=(v,r)=>{for(var N in r||(r={}))bt.call(r,N)&&nt(v,N,r[N]);if(et)for(var N of et(r))Ct.call(r,N)&&nt(v,N,r[N]);return v},lt=(v,r)=>vt(v,Nt(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const a=require("vue"),yt=require("@element-plus/icons-vue"),B=require("./index-OgmTZiO-.cjs");require("element-plus");const Ot=require("./EChartComponentBase-C2sxqwSE.cjs"),xt=require("./titleStyle-NSnz6cUg.cjs"),at=require("./ele-lin-icon-Dke_1AmT.cjs"),W=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Dt=require("./install-C8buXQPI.cjs"),It=require("./install-CltTFs4e.cjs"),Et=require("./install-CYwVETsi.cjs"),_t={class:"mix-body"},Vt={class:"toolbar"},wt=["id"],At={DEFAULT_ICON:at.DEFAULT_ICON,ACTIVE_ICON:at.ACTIVE_ICON,NAME_CN:"聚类滑面关联",NAME_EN:"DeepClusterSlipSurface",ORDER:18,PLATFORM:["pc","screen"]},Tt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:40,xName:{value:"时间",type:"string",label:"X轴名称"},yLeftName:{value:"累计位移(mm)",type:"string",label:"左轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},it=[{name:"累计位移",fv:"disp_130",color:"#5470c6",object_id:""}],kt=["name","fv","color","object_id"],Lt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Mt={useAlias:!1,multiObject:!0,source:"mosaic"},$t={DEFAULT:At,OPTIONS:Tt,DATA:it,PARAMS:kt,SOURCE:Lt,COMMON:Mt},Ft=a.defineComponent(lt(st({},$t),{__name:"deepClusterSlipSurface",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){W.use([Dt.install,W.install,It.install,W.install$1,Et.install]);const r=v,N=B.useLinkStore(),w=a.ref([]),M=a.ref(new Map),P=t=>{if(t==null)return"";const e=typeof t=="string"?t:String(t),s=typeof t=="number"||/^\d+$/.test(e)?new Date(Number(t)):new Date(e);if(Number.isNaN(s.getTime()))return e;const i=s.getFullYear(),o=String(s.getMonth()+1).padStart(2,"0"),u=String(s.getDate()).padStart(2,"0"),d=String(s.getHours()).padStart(2,"0"),l=String(s.getMinutes()).padStart(2,"0"),f=String(s.getSeconds()).padStart(2,"0");return`${i}-${o}-${u} ${d}:${l}:${f}`};class rt extends Ot.EChartComponentBase{extractStyles(){const e=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),s=e==="custom"&&n?n:e;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",40),xName:this.getOptionValue("xName","时间"),yLeftName:this.getOptionValue("yLeftName","累计位移(mm)"),linkChannel:s}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=it),a.nextTick(()=>this.initChart())}setHistoryData(e){tt(e)}setSocketData(e){e&&tt(e)}setPanelConfig(e){this.panelConfig=e||{};const n=this.getChartInstance();n&&n.setOption(this.getChartOption(),!0)}onLinkEvent(e){Z(e)}getChartOption(){var d;const e=((d=r.conf)==null?void 0:d.data)||[],n=this.panelConfig||{},s=Object.keys(n).find(l=>l.endsWith("__yAxis")),i=s&&n[s]||n.range__yAxis||n.range__y||null,o=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,u=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null;return{animation:!0,animationDuration:500,animationDurationUpdate:700,animationEasing:"cubicOut",animationEasingUpdate:"cubicInOut",grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:G.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:l=>F.value==="day"?q(l):P(l)}},yAxis:[{type:"value",name:this.Style.value.yLeftName,min:o!==null?o:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}}],series:e.filter(l=>!A.value||A.value.length===0?!1:A.value.includes(String(l==null?void 0:l.fv))).map((l,f)=>{const m=(l==null?void 0:l.fv)||`v${f}`,g=new Map;J.value.forEach(c=>{const h=c[m];h!=null&&g.set(String(c.t),Number(h))});const S=G.value.map(c=>g.has(c)?g.get(c):null);return{name:(l==null?void 0:l.name)||`序列${f+1}`,type:"line",smooth:.35,smoothMonotone:"x",showSymbol:!1,emphasis:{focus:"series",scale:!0},data:S,lineStyle:{color:(l==null?void 0:l.color)||"#5470c6",width:2},itemStyle:{color:(l==null?void 0:l.color)||"#5470c6"}}})}}}const O=new rt(r,"deepClusterSlipSurface"),ct=O.getEchartId();O.setupLifecycle();const H=O.getStyle(),ut=a.computed(()=>xt.generateTitleStyle(r.conf.options)),V=a.ref([]),A=a.ref(null),Y=a.ref(!1),X=a.ref(null),F=a.ref("hour"),K=a.ref([]),R=()=>{var n;if(Y.value||A.value&&A.value.length)return;const e=(((n=r.conf)==null?void 0:n.data)||[]).map(s=>String((s==null?void 0:s.logicKey)||(s==null?void 0:s.fv)||"")).filter(Boolean);A.value=e.length?e:null},U=t=>{if(t==null)return Number.NaN;const e=typeof t=="string"?t.trim():String(t);if(!e)return Number.NaN;if(/^\d+$/.test(e)){const n=Number(e);return e.length<=10?n*1e3:n}return new Date(e).getTime()},q=t=>{const e=U(t);if(Number.isNaN(e))return String(t||"").slice(0,10);const n=new Date(e),s=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return`${s}-${i}-${o}`},ft=(t,e)=>{if(!(e!=null&&e.startDate)&&!(e!=null&&e.endDate))return!0;const n=U(t);if(Number.isNaN(n))return!0;const s=e.startDate?U(e.startDate):Number.NEGATIVE_INFINITY,i=e.endDate?U(e.endDate):Number.POSITIVE_INFINITY,o=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s,u=Number.isNaN(i)?Number.POSITIVE_INFINITY:i;return n>=o&&n<=u},dt=t=>{var i;const e=((i=r.conf)==null?void 0:i.data)||[];if(!t.length||!e.length)return t;const n=new Map;t.forEach(o=>{const u=q(o.t);n.has(u)||n.set(u,[]),n.get(u).push(o)});const s=[];return Array.from(n.entries()).forEach(([o,u])=>{const d={t:o};let l=!1;e.forEach(f=>{const m=f==null?void 0:f.fv;if(!m)return;let g=0,S=0;u.forEach(c=>{const h=Number(c[m]);Number.isFinite(h)&&(g+=h,S+=1)}),S>0&&(d[m]=Number((g/S).toFixed(6)),l=!0)}),l&&s.push(d)}),s.sort((o,u)=>String(o.t).localeCompare(String(u.t)))},ht=(t,e)=>{const n=String(t||"").trim(),s=String(e||"").trim();return!n||!s?!1:n===s?!0:F.value==="day"?q(n)===q(s):P(n)===P(s)},mt=a.computed(()=>{const t=F.value==="day"?dt(V.value):V.value;if(!t.length)return[];const e=X.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?t:t.filter(n=>ft(String(n.t),e))}),J=a.computed(()=>{const t=mt.value;return K.value.length>0?t.filter(e=>K.value.some(n=>ht(String(e.t),n))):t}),G=a.computed(()=>{const t=new Set;return J.value.forEach(e=>t.add(String(e.t))),Array.from(t).sort()});a.computed(()=>G.value.map(t=>F.value==="day"?q(t):P(t)));const z=()=>{a.nextTick(()=>{const t=O.getChartInstance();t&&t.setOption(O.getChartOption(),!0)})},pt=()=>{const t=O.getChartInstance();if(!t)return;const e=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=e,n.download=`cluster-slip-${selectedTime.value||Date.now()}.png`,n.click()},Q=()=>{var s,i,o;const t=((s=r.conf)==null?void 0:s.options)||{},e=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||H.value.linkChannel||"deepDisplacement",n=((o=t==null?void 0:t.customChannel)==null?void 0:o.value)||"";return e==="custom"&&n?n:e},gt=t=>{var o,u,d;const e=((o=r.conf)==null?void 0:o.data)||[];if(e.length===0)return[];if(Array.isArray(t==null?void 0:t.data))return t.data.map((l,f)=>{var S,c;const m={t:String((c=(S=l==null?void 0:l.time)!=null?S:l==null?void 0:l.datetime)!=null?c:f)};let g=!1;return e.forEach(h=>{const I=h==null?void 0:h.fv;I&&(l==null?void 0:l[I])!==void 0&&(l==null?void 0:l[I])!==null&&(m[I]=Number(l==null?void 0:l[I]),g=!0)}),g?m:null}).filter(Boolean);const s={t:String((d=(u=t==null?void 0:t.time)!=null?u:t==null?void 0:t.datetime)!=null?d:Date.now())};let i=!1;return e.forEach(l=>{const f=l==null?void 0:l.fv;if(!f)return;const m=t==null?void 0:t[f];m!=null&&M.value.set(f,Number(m)),M.value.has(f)&&(s[f]=M.value.get(f),i=!0)}),i?[s]:[]},Z=t=>{var d,l,f,m,g,S;if(!t||!t.payload)return;const e=Q();if((d=t.topic)!=null&&d.channel&&e&&t.topic.channel!==e||!N.shouldHandle(t,"deepClusterSlipSurface"))return;const n=t.payload;if((n==null?void 0:n.type)==="filter"){const c=n.filter||n,h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id),E=((f=(((l=r.conf)==null?void 0:l.data)||[])[0])==null?void 0:f.configPanelId)||"",C=[r.uid,(m=r.conf)==null?void 0:m.id,(g=r.conf)==null?void 0:g.uid,E].map(y=>String(y||"").trim()).filter(Boolean).includes(String(h||"").trim());if(!h||!C)return;O.setPanelConfig(c);const T=c.nodeList||c.selectList||c.options||c.selectedNodes,_=Array.isArray(T)?T.map(String):null;Y.value=Array.isArray(T),A.value=_&&_.length>0?_:[],Y.value||R();const x=Object.entries(c||{}).find(([y,L])=>{if(!L||typeof L!="object"||Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")&&j.includes("range")||!!L.startDate&&!!L.endDate}),p=(x==null?void 0:x[1])||c.timeRange||c.range||null;X.value=p&&(p.startDate||p.endDate)?{startDate:p.startDate,endDate:p.endDate}:null;const D=String((p==null?void 0:p.granularity)||(c==null?void 0:c.granularity)||"").toLowerCase();(D==="day"||D==="hour")&&(F.value=D);const k=Object.entries(c||{}).find(([y,L])=>{if(!Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")||j.includes("date")}),$=c.timeList||c.selectedTimes||(k==null?void 0:k[1]);K.value=Array.isArray($)?$.map(y=>String(y)):[],z();return}const s=r.conf,i=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(i.length>0&&!(o!=null&&o.multiObject)){const c=B.getObjectId(o,o==null?void 0:o.useAlias,r.uid)||((S=i[0])==null?void 0:S.object_id),h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(c&&h&&String(c)!==String(h))return}const u=gt(n);u.length&&(V.value=u.length===1?[...V.value.slice(-199),...u]:u,R(),z())},tt=t=>{var l,f,m,g,S,c,h,I;const e=r.conf,n=(e==null?void 0:e.data)||[],s=(e==null?void 0:e.common)||{},i=(s==null?void 0:s.source)||"mosaic";let o=t;["statistics","calculate"].includes(i)&&(o=B.formatStatisticsResult(o,n));const u=n||[],d=[];if((l=o==null?void 0:o.history)!=null&&l.length)o.history.forEach((E,b)=>{var p,D;const C=(E==null?void 0:E[0])||E||{},_={t:String((D=(p=C==null?void 0:C.time)!=null?p:C==null?void 0:C.datetime)!=null?D:b)};let x=!1;u.forEach(k=>{const $=k==null?void 0:k.fv;if(!$)return;const y=C==null?void 0:C[$];y!=null&&(_[$]=Number(y),x=!0)}),x&&d.push(_)}),w.value=d,V.value=[...w.value],R();else{const E=B.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((f=n[0])==null?void 0:f.object_id),b=E&&((g=(m=o==null?void 0:o[E])==null?void 0:m[i])==null?void 0:g.data)||((S=o==null?void 0:o[i])==null?void 0:S.data)||(o==null?void 0:o.data)||o,T={t:String((h=(c=b==null?void 0:b.time)!=null?c:b==null?void 0:b.datetime)!=null?h:Date.now())};let _=!1;u.forEach(x=>{const p=x==null?void 0:x.fv;if(!p)return;const D=b==null?void 0:b[p];D!=null&&M.value.set(p,Number(D)),M.value.has(p)&&(T[p]=M.value.get(p),_=!0)}),_&&d.push(T),d.length&&(w.value=[...w.value,...d],V.value=[...w.value],R())}!d.length&&!((I=o==null?void 0:o.history)!=null&&I.length)||z()};return a.watch(()=>N.channels[Q()],t=>{t&&Z(t)},{deep:!0}),a.watchEffect(()=>{r.conf.socketData&&O.setSocketData(r.conf.socketData)}),a.watch(()=>{var t;return(t=r.conf)==null?void 0:t.options},()=>{O.getStyle().value=O.extractStyles(),z()},{deep:!0}),a.onMounted(()=>{if(r.mode==="edit"&&!V.value.length){const t=["2026-03-05","2026-03-04","2026-03-03"],e=[];t.forEach(n=>{for(let s=0;s<24;s++){const i=`${n} ${String(s).padStart(2,"0")}:00:00`;e.push({t:i,disp:Number((s*1.8+Math.sin(s/3)*2).toFixed(2)),slip:Number(Math.max(0,Math.min(1,.25+s*.02+Math.sin(s/4)*.08)).toFixed(3))})}}),w.value=e,V.value=[...w.value]}R(),z()}),(t,e)=>{const n=ot.ElIcon,s=ot.ElButton;return a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(H).bgColor,borderRadius:`${a.unref(H).radiusSize}px`})},[a.unref(H).isHideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"mix-title",style:a.normalizeStyle(ut.value)},a.toDisplayString(v.conf.caption||v.conf.name),5)),a.createElementVNode("div",_t,[a.createElementVNode("div",Vt,[a.createVNode(s,{size:"small",class:"export-btn",onClick:pt},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createVNode(a.unref(yt.Download))]),_:1}),e[0]||(e[0]=a.createTextVNode(" 导出图 ",-1))]),_:1})]),a.createElementVNode("div",{class:"echart-container",id:a.unref(ct)},null,8,wt)]),a.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),Rt=B._export_sfc(Ft,[["__scopeId","data-v-98d6e980"]]);exports.default=Rt;
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,z=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var j=(c,i,r)=>i in c?F(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,A=(c,i)=>{for(var r in i||(i={}))q.call(i,r)&&j(c,r,i[r]);if(B)for(var r of B(i))H.call(i,r)&&j(c,r,i[r]);return c},R=(c,i)=>z(c,$(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const P=require("./BaseComponent-bzb58Hhs.cjs"),C=require("./index-6QhTSPkL.cjs"),U=require("./titleStyle-NSnz6cUg.cjs"),I=require("./ele-gridview-icon-D3GcssP6.cjs"),G={class:"mix-body"},W={class:"table-wrap"},J={class:"matrix-table"},K={class:"time-col"},Q={key:0},X=["colspan"],Y={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"深部位移矩阵表",NAME_EN:"DeepDataMatrix",ORDER:20,PLATFORM:["pc","screen"]},Z={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,maxRows:{value:50,type:"number",label:"最大显示行数"},decimal:{value:3,type:"number",label:"小数位数"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},T=[{name:"合位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],ee=["name","fv","depth","color","object_id"],te=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ne={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:T,PARAMS:ee,SOURCE:te,COMMON:ne},ae=e.defineComponent(R(A({},le),{__name:"deepDataMatrix",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){const i=c,r=C.useLinkStore();class L extends P.BaseComponent{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),o=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),maxRows:this.getOptionValue("maxRows",50),decimal:this.getOptionValue("decimal",3),linkChannel:o}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=T)}setHistoryData(n){V(n)}setSocketData(n){n&&V(n)}onLinkEvent(n){N(n)}}const v=new L(i,"deepDataMatrix");v.setupLifecycle();const g=v.getStyle(),w=e.computed(()=>U.generateTitleStyle(i.conf.options)),d=e.ref([]),O=e.computed(()=>{const a=new Set;return d.value.forEach(n=>{Object.keys(n.values).forEach(t=>a.add(Number(t)))}),Array.from(a).sort((n,t)=>n-t)}),x=e.computed(()=>{var n,t,o,s,l;const a=Math.max(1,Number((l=(s=(o=(t=(n=i.conf)==null?void 0:n.options)==null?void 0:t.maxRows)==null?void 0:o.value)!=null?s:g.value.maxRows)!=null?l:50));return d.value.slice(Math.max(0,d.value.length-a))}),_=a=>{var t,o,s,l,u;const n=Math.max(0,Number((u=(l=(s=(o=(t=i.conf)==null?void 0:t.options)==null?void 0:o.decimal)==null?void 0:s.value)!=null?l:g.value.decimal)!=null?u:3));return a.toFixed(n)},D=()=>{var o,s,l;const a=((o=i.conf)==null?void 0:o.options)||{},n=((s=a==null?void 0:a.linkChannel)==null?void 0:s.value)||g.value.linkChannel||"deepDisplacement",t=((l=a==null?void 0:a.customChannel)==null?void 0:l.value)||"";return n==="custom"&&t?t:n},S=a=>{var o;const n=((o=i.conf)==null?void 0:o.data)||[],t=[];return a.forEach((s,l)=>{var h,m;const u=String((m=(h=s==null?void 0:s.time)!=null?h:s==null?void 0:s.datetime)!=null?m:l),p={};n.forEach(f=>{const k=f.fv,b=Number(s==null?void 0:s[k]);if(Number.isFinite(b)){const E=-Math.abs(parseFloat(k));p[E]=_(b)}}),Object.keys(p).length&&t.push({time:u,values:p})}),t},N=a=>{var p,h;if(i.mode==="edit"||!a||!a.payload)return;const n=D();if((p=a.topic)!=null&&p.channel&&n&&a.topic.channel!==n||!r.shouldHandle(a,"deepDataMatrix"))return;const t=a.payload;if((t==null?void 0:t.type)==="filter")return;const o=i.conf,s=(o==null?void 0:o.data)||[],l=(o==null?void 0:o.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const m=C.getObjectId(l,l==null?void 0:l.useAlias,i.uid)||((h=s[0])==null?void 0:h.object_id),f=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(m&&f&&String(m)!==String(f))return}if(Array.isArray(t==null?void 0:t.data)){const m=S(t.data);m.length&&(d.value=m);return}const u=S([t]);u.length&&(d.value=[...d.value.slice(-199),...u])},V=a=>{var m,f,k,b;const n=i.conf,t=(n==null?void 0:n.data)||[],o=(n==null?void 0:n.common)||{},s=(o==null?void 0:o.source)||"mosaic";let l=a;if(["statistics","calculate"].includes(s)&&(l=C.formatStatisticsResult(l,t)),(m=l==null?void 0:l.history)!=null&&m.length){const E=l.history.map(y=>(y==null?void 0:y[0])||y||{}),M=S(E);M.length&&(d.value=M);return}const u=o!=null&&o.multiObject?"":C.getObjectId(o,o==null?void 0:o.useAlias,i.uid),p=u&&((k=(f=l==null?void 0:l[u])==null?void 0:f[s])==null?void 0:k.data)||((b=l==null?void 0:l[s])==null?void 0:b.data)||(l==null?void 0:l.data)||l,h=S([p]);h.length&&(d.value=[...d.value.slice(-199),...h])};return e.watch(()=>r.channels[D()],a=>{a&&N(a)},{deep:!0}),e.watchEffect(()=>{i.conf.socketData&&v.setSocketData(i.conf.socketData)}),e.watch(()=>{var a;return(a=i.conf)==null?void 0:a.options},()=>{v.getStyle().value=v.extractStyles()},{deep:!0}),e.onMounted(()=>{if(i.mode==="edit"&&!d.value.length){const a=[],n=[-78,-75,-72,-69,-66,-63];for(let t=0;t<8;t++){const o=`2026-03-05 ${String(t).padStart(2,"0")}:00:00`,s={};n.forEach((l,u)=>{const p=5+u*.8+t*.2+Math.sin(t+u)*.3;s[l]=_(p)}),a.push({time:o,values:s})}d.value=a}}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(g).bgColor,borderRadius:`${e.unref(g).radiusSize}px`})},[e.unref(g).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(w.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",G,[e.createElementVNode("div",W,[e.createElementVNode("table",J,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[n[0]||(n[0]=e.createElementVNode("th",{class:"time-col"},"采集时间",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,t=>(e.openBlock(),e.createElementBlock("th",{key:`head-${t}`},e.toDisplayString(t)+"米",1))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(t,o)=>(e.openBlock(),e.createElementBlock("tr",{key:`row-${o}-${t.time}`},[e.createElementVNode("td",K,e.toDisplayString(t.time),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,s=>{var l;return e.openBlock(),e.createElementBlock("td",{key:`cell-${o}-${s}`},e.toDisplayString((l=t.values[s])!=null?l:"--"),1)}),128))]))),128)),x.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tr",Q,[e.createElementVNode("td",{colspan:Math.max(2,O.value.length+1),class:"empty-cell"},"暂无数据",8,X)]))])])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4))}})),oe=C._export_sfc(ae,[["__scopeId","data-v-670aa6dd"]]);exports.default=oe;
1
+ "use strict";var F=Object.defineProperty,z=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var j=(c,i,r)=>i in c?F(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,A=(c,i)=>{for(var r in i||(i={}))q.call(i,r)&&j(c,r,i[r]);if(B)for(var r of B(i))H.call(i,r)&&j(c,r,i[r]);return c},R=(c,i)=>z(c,$(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const P=require("./BaseComponent-DaYX7dUF.cjs"),C=require("./index-OgmTZiO-.cjs"),U=require("./titleStyle-NSnz6cUg.cjs"),I=require("./ele-gridview-icon-D3GcssP6.cjs"),G={class:"mix-body"},W={class:"table-wrap"},J={class:"matrix-table"},K={class:"time-col"},Q={key:0},X=["colspan"],Y={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"深部位移矩阵表",NAME_EN:"DeepDataMatrix",ORDER:20,PLATFORM:["pc","screen"]},Z={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,maxRows:{value:50,type:"number",label:"最大显示行数"},decimal:{value:3,type:"number",label:"小数位数"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},T=[{name:"合位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],ee=["name","fv","depth","color","object_id"],te=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ne={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:T,PARAMS:ee,SOURCE:te,COMMON:ne},ae=e.defineComponent(R(A({},le),{__name:"deepDataMatrix",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){const i=c,r=C.useLinkStore();class L extends P.BaseComponent{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),o=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),maxRows:this.getOptionValue("maxRows",50),decimal:this.getOptionValue("decimal",3),linkChannel:o}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=T)}setHistoryData(n){V(n)}setSocketData(n){n&&V(n)}onLinkEvent(n){N(n)}}const v=new L(i,"deepDataMatrix");v.setupLifecycle();const g=v.getStyle(),w=e.computed(()=>U.generateTitleStyle(i.conf.options)),d=e.ref([]),O=e.computed(()=>{const a=new Set;return d.value.forEach(n=>{Object.keys(n.values).forEach(t=>a.add(Number(t)))}),Array.from(a).sort((n,t)=>n-t)}),x=e.computed(()=>{var n,t,o,s,l;const a=Math.max(1,Number((l=(s=(o=(t=(n=i.conf)==null?void 0:n.options)==null?void 0:t.maxRows)==null?void 0:o.value)!=null?s:g.value.maxRows)!=null?l:50));return d.value.slice(Math.max(0,d.value.length-a))}),_=a=>{var t,o,s,l,u;const n=Math.max(0,Number((u=(l=(s=(o=(t=i.conf)==null?void 0:t.options)==null?void 0:o.decimal)==null?void 0:s.value)!=null?l:g.value.decimal)!=null?u:3));return a.toFixed(n)},D=()=>{var o,s,l;const a=((o=i.conf)==null?void 0:o.options)||{},n=((s=a==null?void 0:a.linkChannel)==null?void 0:s.value)||g.value.linkChannel||"deepDisplacement",t=((l=a==null?void 0:a.customChannel)==null?void 0:l.value)||"";return n==="custom"&&t?t:n},S=a=>{var o;const n=((o=i.conf)==null?void 0:o.data)||[],t=[];return a.forEach((s,l)=>{var h,m;const u=String((m=(h=s==null?void 0:s.time)!=null?h:s==null?void 0:s.datetime)!=null?m:l),p={};n.forEach(f=>{const k=f.fv,b=Number(s==null?void 0:s[k]);if(Number.isFinite(b)){const E=-Math.abs(parseFloat(k));p[E]=_(b)}}),Object.keys(p).length&&t.push({time:u,values:p})}),t},N=a=>{var p,h;if(i.mode==="edit"||!a||!a.payload)return;const n=D();if((p=a.topic)!=null&&p.channel&&n&&a.topic.channel!==n||!r.shouldHandle(a,"deepDataMatrix"))return;const t=a.payload;if((t==null?void 0:t.type)==="filter")return;const o=i.conf,s=(o==null?void 0:o.data)||[],l=(o==null?void 0:o.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const m=C.getObjectId(l,l==null?void 0:l.useAlias,i.uid)||((h=s[0])==null?void 0:h.object_id),f=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(m&&f&&String(m)!==String(f))return}if(Array.isArray(t==null?void 0:t.data)){const m=S(t.data);m.length&&(d.value=m);return}const u=S([t]);u.length&&(d.value=[...d.value.slice(-199),...u])},V=a=>{var m,f,k,b;const n=i.conf,t=(n==null?void 0:n.data)||[],o=(n==null?void 0:n.common)||{},s=(o==null?void 0:o.source)||"mosaic";let l=a;if(["statistics","calculate"].includes(s)&&(l=C.formatStatisticsResult(l,t)),(m=l==null?void 0:l.history)!=null&&m.length){const E=l.history.map(y=>(y==null?void 0:y[0])||y||{}),M=S(E);M.length&&(d.value=M);return}const u=o!=null&&o.multiObject?"":C.getObjectId(o,o==null?void 0:o.useAlias,i.uid),p=u&&((k=(f=l==null?void 0:l[u])==null?void 0:f[s])==null?void 0:k.data)||((b=l==null?void 0:l[s])==null?void 0:b.data)||(l==null?void 0:l.data)||l,h=S([p]);h.length&&(d.value=[...d.value.slice(-199),...h])};return e.watch(()=>r.channels[D()],a=>{a&&N(a)},{deep:!0}),e.watchEffect(()=>{i.conf.socketData&&v.setSocketData(i.conf.socketData)}),e.watch(()=>{var a;return(a=i.conf)==null?void 0:a.options},()=>{v.getStyle().value=v.extractStyles()},{deep:!0}),e.onMounted(()=>{if(i.mode==="edit"&&!d.value.length){const a=[],n=[-78,-75,-72,-69,-66,-63];for(let t=0;t<8;t++){const o=`2026-03-05 ${String(t).padStart(2,"0")}:00:00`,s={};n.forEach((l,u)=>{const p=5+u*.8+t*.2+Math.sin(t+u)*.3;s[l]=_(p)}),a.push({time:o,values:s})}d.value=a}}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(g).bgColor,borderRadius:`${e.unref(g).radiusSize}px`})},[e.unref(g).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(w.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",G,[e.createElementVNode("div",W,[e.createElementVNode("table",J,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[n[0]||(n[0]=e.createElementVNode("th",{class:"time-col"},"采集时间",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,t=>(e.openBlock(),e.createElementBlock("th",{key:`head-${t}`},e.toDisplayString(t)+"米",1))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(t,o)=>(e.openBlock(),e.createElementBlock("tr",{key:`row-${o}-${t.time}`},[e.createElementVNode("td",K,e.toDisplayString(t.time),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,s=>{var l;return e.openBlock(),e.createElementBlock("td",{key:`cell-${o}-${s}`},e.toDisplayString((l=t.values[s])!=null?l:"--"),1)}),128))]))),128)),x.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tr",Q,[e.createElementVNode("td",{colspan:Math.max(2,O.value.length+1),class:"empty-cell"},"暂无数据",8,X)]))])])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4))}})),oe=C._export_sfc(ae,[["__scopeId","data-v-670aa6dd"]]);exports.default=oe;
@@ -12,8 +12,8 @@ var z = (i, o, c) => o in i ? J(i, o, { enumerable: !0, configurable: !0, writab
12
12
  }, F = (i, o) => K(i, Q(o));
13
13
  import { defineComponent as Z, computed as M, ref as tt, watch as H, watchEffect as et, onMounted as nt, openBlock as p, createElementBlock as h, normalizeStyle as B, unref as E, toDisplayString as y, createCommentVNode as P, createElementVNode as f, Fragment as j, renderList as A, renderSlot as at } from "vue";
14
14
  import "html2canvas";
15
- import { B as st } from "./BaseComponent-Dwhb9Mde.js";
16
- import { l as lt, O as U, N as ot, _ as it } from "./index-YNdVib_6.js";
15
+ import { B as st } from "./BaseComponent-CEp8NJiX.js";
16
+ import { l as lt, O as U, N as ot, _ as it } from "./index-CqVPeq0-.js";
17
17
  import { g as ct } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as ut, D as rt } from "./ele-gridview-icon-cSd1oIDi.js";
19
19
  const dt = { class: "mix-body" }, mt = { class: "table-wrap" }, pt = { class: "matrix-table" }, ht = { class: "time-col" }, ft = { key: 0 }, vt = ["colspan"], gt = {
@@ -17,9 +17,9 @@ import "element-plus/es/components/select/style/css";
17
17
  import "element-plus/es/components/option/style/css";
18
18
  import { defineComponent as dl, useCssVars as vl, unref as kr, ref as ur, computed as pl, onMounted as ml, nextTick as vn, onBeforeUnmount as gl, watch as pn, openBlock as wi, createElementBlock as mn, createElementVNode as fr, createVNode as Si, withCtx as gn, Fragment as Ca, renderList as Ma, createBlock as _l, createTextVNode as yl, toDisplayString as bi, renderSlot as xl } from "vue";
19
19
  import "html2canvas";
20
- import { d as cr, N as Tl, G as wl, O as Sl, _ as bl } from "./index-YNdVib_6.js";
20
+ import { d as cr, N as Tl, E as wl, O as Sl, _ as bl } from "./index-CqVPeq0-.js";
21
21
  import "element-plus";
22
- import { E as El } from "./EChartComponentBase-BmS2KONN.js";
22
+ import { E as El } from "./EChartComponentBase-B-VNAC8K.js";
23
23
  import { i as Al, a as Dl } from "./index-eIsZnzkc.js";
24
24
  import { d as Ll, n as Cl, q as Ml, V as Pl, L as Nl, u as ke, a as Rl, O as Ol, Y as vi, S as xt } from "./installCanvasRenderer-oDYkyVFy.js";
25
25
  import { M as Ar, cc as Il, f as Tt, o as Pa, f2 as Bl, f3 as Fl, v as qo, R as Yo, g as zl, bY as jn, h as wt, t as Gl, b3 as Ul, b2 as Hl, b5 as Vl, dg as kl, C as Br, m as ve, u as Ut, f4 as Wl, bX as Ko, Z as ki, c as Wi, b as pi, cm as $o, f5 as Qo, a as nn, P as Xl, E as jl, f6 as Zn, dl as sa, aR as Zl, eC as ql, av as Yl, bJ as Kl, bI as wr, ai as Na, T as $l, f7 as Ql, f8 as Jl, f9 as Jo, aT as dt, aS as vt, db as eh, H as th, ag as Ei, br as rh, ce as ih, bb as es, cl as Ra, x as Oa, cy as Ia, i as nh } from "./echarts-Bp7QN4X6.js";
@@ -1,4 +1,4 @@
1
- "use strict";var ws=Object.defineProperty,Ss=Object.defineProperties;var bs=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var Es=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable;var ia=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))Es.call(t,r)&&ia(e,r,t[r]);if(ra)for(var r of ra(t))As.call(t,r)&&ia(e,r,t[r]);return e},kt=(e,t)=>Ss(e,bs(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Zi=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const $=require("vue");require("html2canvas");const vt=require("./index-6QhTSPkL.cjs");require("element-plus");const Ds=require("./EChartComponentBase-CMN_pOMr.cjs"),go=require("./index-CJgyJTvc.cjs"),oe=require("./installCanvasRenderer-CyhM1Qpl.cjs"),D=require("./echarts-BB8O2KSA.cjs"),_o=require("./installSimple-c87Ufc4_.cjs"),ii=require("./axisAlignTicks-CDNWKJRo.cjs"),Cs=require("./createSeriesData-Cz83cqoZ.cjs"),Sn=require("./install-DHY9y86B.cjs"),na=require("./install-BvOpNm0Y.cjs"),aa=require("./ele-glbModel-icon-ByACDCrv.cjs");function Ms(e){return Cs.createSeriesData(null,e)}var Fn={isDimensionStacked:oe.isDimensionStacked,enableDataStack:oe.enableDataStack,getStackedDimension:oe.getStackedDimension};function zn(e,t){var r=t;t instanceof D.Model||(r=new D.Model(t));var i=oe.createScaleByModel(r);return i.setExtent(e[0],e[1]),oe.niceScaleExtent(i,r),i}function Ls(e){D.mixin(e,ii.AxisModelCommonMixin)}oe.use([oe.install$1,go.install]);oe.use(go.installLabelLayout);function oa(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?sa(this,e.call(this,l)):Ps(this,e,n),this.constructor===o)for(var h=o.__initializers__,u=0;u<h.length;u++)h[u].apply(this,arguments)};o.__super__=i,i.__initializers__?o.__initializers__=i.__initializers__.slice():o.__initializers__=[],t&&o.__initializers__.push(t);var s=function(){};return s.prototype=i.prototype,o.prototype=new s,o.prototype.constructor=o,sa(o.prototype,r),o.extend=i.extend,o.derive=i.extend,o}function sa(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}function Ps(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}}const Ns={extend:oa,derive:oa};function Rs(e,t){this.action=e,this.context=t}var Gn={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],r=t.length,i=-1,n=arguments;switch(n.length){case 1:for(;++i<r;)t[i].action.call(t[i].context);return;case 2:for(;++i<r;)t[i].action.call(t[i].context,n[1]);return;case 3:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2]);return;case 4:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3]);return;case 5:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3],n[4]);return;default:for(;++i<r;)t[i].action.apply(t[i].context,Array.prototype.slice.call(n,1));return}}},on:function(e,t,r){if(!(!e||!t)){var i=this.__handlers__||(this.__handlers__={});if(!i[e])i[e]=[];else if(this.has(e,t))return;var n=new Rs(t,r||this);return i[e].push(n),this}},once:function(e,t,r){if(!e||!t)return;var i=this;function n(){i.off(e,n),t.apply(this,arguments)}return this.on(e,n,r)},before:function(e,t,r){if(!(!e||!t))return e="before"+e,this.on(e,t,r)},after:function(e,t,r){if(!(!e||!t))return e="after"+e,this.on(e,t,r)},success:function(e,t){return this.once("success",e,t)},error:function(e,t){return this.once("error",e,t)},off:function(e,t){var r=this.__handlers__||(this.__handlers__={});if(!t){r[e]=[];return}if(r[e]){for(var i=r[e],n=[],a=0;a<i.length;a++)t&&i[a].action!==t&&n.push(i[a]);r[e]=n}return this},has:function(e,t){var r=this.__handlers__;if(!r||!r[e])return!1;for(var i=r[e],n=0;n<i.length;n++)if(i[n].action===t)return!0}},Os=0,Is=Array.prototype,Bs=Is.forEach,Le={genGUID:function(){return++Os},relative2absolute:function(e,t){if(!t||e.match(/^\//))return e;for(var r=e.split("/"),i=t.split("/"),n=r[0];n==="."||n==="..";)n===".."&&i.pop(),r.shift(),n=r[0];return i.join("/")+"/"+r.join("/")},extend:function(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},defaults:function(e,t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e},extendWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}return e},defaultsWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]==null&&(e[n]=t[n])}return e},each:function(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Bs)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)},isObject:function(e){return e===Object(e)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return e?e.length===+e.length:!1},clone:function(e){if(Le.isObject(e)){if(Le.isArray(e))return e.slice();if(Le.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return Le.extend({},e)}else return e}},Xe=function(){this.__uid__=Le.genGUID()};Xe.__initializers__=[function(e){Le.extend(this,e)}];Le.extend(Xe,Ns);Le.extend(Xe.prototype,Gn);var la=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],ha=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function Fs(e){for(var t={},r={},i=0;i<la.length;i++){var n=la[i];o(n)}for(var i=0;i<ha.length;i++){var a=ha[i];r[a]=e.getParameter(e[a])}this.getExtension=function(s){return s in t||o(s),t[s]},this.getParameter=function(s){return r[s]};function o(s){if(e.getExtension){var l=e.getExtension(s);l||(l=e.getExtension("MOZ_"+s)),l||(l=e.getExtension("WEBKIT_"+s)),t[s]=l}}}const F={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CW:2304,CCW:2305,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_2D:3553,TEXTURE_CUBE_MAP:34067,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FRAMEBUFFER:36160,RENDERBUFFER:36161,DEPTH_STENCIL:34041,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306};function zs(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(r){if(r.lengthComputable){var i=r.loaded/r.total;e.onprogress(i,r.loaded,r.total)}else e.onprogress(null)}),t.onload=function(r){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Gs={get:zs};var qi,fe={};fe.supportWebGL=function(){if(qi==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch(r){qi=!1}return qi};fe.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;fe.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;fe.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;fe.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;fe.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;fe.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;fe.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var $t={};typeof window!="undefined"?$t=window:typeof global!="undefined"&&($t=global);fe.requestAnimationFrame=$t.requestAnimationFrame||$t.msRequestAnimationFrame||$t.mozRequestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};fe.createCanvas=function(){return document.createElement("canvas")};fe.createImage=function(){return new $t.Image};fe.request={get:Gs.get};fe.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};fe.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var He=function(){this.head=null,this.tail=null,this._length=0};He.prototype.insert=function(e){var t=new He.Entry(e);return this.insertEntry(t),t};He.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new He.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};He.prototype.insertBeforeEntry=function(e,t){var r=new He.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};He.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};He.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};He.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};He.prototype.getHead=function(){if(this.head)return this.head.value};He.prototype.getTail=function(){if(this.tail)return this.tail.value};He.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};He.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};He.prototype.length=function(){return this._length};He.prototype.isEmpty=function(){return this._length===0};He.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t!="undefined";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};He.prototype.clear=function(){this.tail=this.head=null,this._length=0};He.Entry=function(e){this.value=e,this.next=null,this.prev=null};var ar=function(e){this._list=new He,this._map={},this._maxSize=e||10};ar.prototype.setMaxSize=function(e){this._maxSize=e};ar.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};ar.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};ar.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};ar.prototype.clear=function(){this._list.clear(),this._map={}};var Ee={},ua={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ct(e){return e=Math.round(e),e<0?0:e>255?255:e}function Us(e){return e=Math.round(e),e<0?0:e>360?360:e}function Zr(e){return e<0?0:e>1?1:e}function Yi(e){return e.length&&e.charAt(e.length-1)==="%"?ct(parseFloat(e)/100*255):ct(parseInt(e,10))}function _r(e){return e.length&&e.charAt(e.length-1)==="%"?Zr(parseFloat(e)/100):Zr(parseFloat(e))}function Ki(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ot(e,t,r){return e+(t-e)*r}function ft(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var yo=new ar(20),ui=null;function or(e,t){ui&&bn(ui,t),ui=yo.put(e,ui||t.slice())}Ee.parse=function(e,t){if(e){t=t||[];var r=yo.get(e);if(r)return bn(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in ua)return bn(t,ua[i]),or(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){ft(t,0,0,0,1);return}return ft(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),or(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){ft(t,0,0,0,1);return}return ft(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),or(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){ft(t,0,0,0,1);return}h=_r(l.pop());case"rgb":if(l.length!==3){ft(t,0,0,0,1);return}return ft(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),h),or(e,t),t;case"hsla":if(l.length!==4){ft(t,0,0,0,1);return}return l[3]=_r(l[3]),En(l,t),or(e,t),t;case"hsl":if(l.length!==3){ft(t,0,0,0,1);return}return En(l,t),or(e,t),t;default:return}}ft(t,0,0,0,1)}};Ee.parseToFloat=function(e,t){if(t=Ee.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function En(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=_r(e[1]),n=_r(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ft(t,ct(Ki(o,a,r+1/3)*255),ct(Ki(o,a,r)*255),ct(Ki(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vs(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+u-d:i===a&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,h,s];return e[3]!=null&&c.push(e[3]),c}}Ee.lift=function(e,t){var r=Ee.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return Ee.stringify(r,r.length===4?"rgba":"rgb")}};Ee.toHex=function(e){var t=Ee.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Ee.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=ct(Ot(o[0],s[0],l)),r[1]=ct(Ot(o[1],s[1],l)),r[2]=ct(Ot(o[2],s[2],l)),r[3]=Zr(Ot(o[3],s[3],l)),r}};Ee.fastMapToColor=Ee.fastLerp;Ee.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Ee.parse(t[n]),s=Ee.parse(t[a]),l=i-n,h=Ee.stringify([ct(Ot(o[0],s[0],l)),ct(Ot(o[1],s[1],l)),ct(Ot(o[2],s[2],l)),Zr(Ot(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};Ee.mapToColor=Ee.lerp;Ee.modifyHSL=function(e,t,r,i){if(e=Ee.parse(e),e)return e=Vs(e),t!=null&&(e[0]=Us(t)),r!=null&&(e[1]=_r(r)),i!=null&&(e[2]=_r(i)),Ee.stringify(En(e),"rgba")};Ee.modifyAlpha=function(e,t){if(e=Ee.parse(e),e&&t!=null)return e[3]=Zr(t),Ee.stringify(e,"rgba")};Ee.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};var Hs=Ee.parseToFloat,$i={};function fa(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i<t.length;i++){var n=t[i],a=e[n];a===null?r.push(n):r.push(n+" "+a.toString())}return r.join(`
1
+ "use strict";var ws=Object.defineProperty,Ss=Object.defineProperties;var bs=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var Es=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable;var ia=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))Es.call(t,r)&&ia(e,r,t[r]);if(ra)for(var r of ra(t))As.call(t,r)&&ia(e,r,t[r]);return e},kt=(e,t)=>Ss(e,bs(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Zi=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const $=require("vue");require("html2canvas");const vt=require("./index-OgmTZiO-.cjs");require("element-plus");const Ds=require("./EChartComponentBase-C2sxqwSE.cjs"),go=require("./index-CJgyJTvc.cjs"),oe=require("./installCanvasRenderer-CyhM1Qpl.cjs"),D=require("./echarts-BB8O2KSA.cjs"),_o=require("./installSimple-c87Ufc4_.cjs"),ii=require("./axisAlignTicks-CDNWKJRo.cjs"),Cs=require("./createSeriesData-Cz83cqoZ.cjs"),Sn=require("./install-DHY9y86B.cjs"),na=require("./install-BvOpNm0Y.cjs"),aa=require("./ele-glbModel-icon-ByACDCrv.cjs");function Ms(e){return Cs.createSeriesData(null,e)}var Fn={isDimensionStacked:oe.isDimensionStacked,enableDataStack:oe.enableDataStack,getStackedDimension:oe.getStackedDimension};function zn(e,t){var r=t;t instanceof D.Model||(r=new D.Model(t));var i=oe.createScaleByModel(r);return i.setExtent(e[0],e[1]),oe.niceScaleExtent(i,r),i}function Ls(e){D.mixin(e,ii.AxisModelCommonMixin)}oe.use([oe.install$1,go.install]);oe.use(go.installLabelLayout);function oa(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?sa(this,e.call(this,l)):Ps(this,e,n),this.constructor===o)for(var h=o.__initializers__,u=0;u<h.length;u++)h[u].apply(this,arguments)};o.__super__=i,i.__initializers__?o.__initializers__=i.__initializers__.slice():o.__initializers__=[],t&&o.__initializers__.push(t);var s=function(){};return s.prototype=i.prototype,o.prototype=new s,o.prototype.constructor=o,sa(o.prototype,r),o.extend=i.extend,o.derive=i.extend,o}function sa(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}function Ps(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}}const Ns={extend:oa,derive:oa};function Rs(e,t){this.action=e,this.context=t}var Gn={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],r=t.length,i=-1,n=arguments;switch(n.length){case 1:for(;++i<r;)t[i].action.call(t[i].context);return;case 2:for(;++i<r;)t[i].action.call(t[i].context,n[1]);return;case 3:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2]);return;case 4:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3]);return;case 5:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3],n[4]);return;default:for(;++i<r;)t[i].action.apply(t[i].context,Array.prototype.slice.call(n,1));return}}},on:function(e,t,r){if(!(!e||!t)){var i=this.__handlers__||(this.__handlers__={});if(!i[e])i[e]=[];else if(this.has(e,t))return;var n=new Rs(t,r||this);return i[e].push(n),this}},once:function(e,t,r){if(!e||!t)return;var i=this;function n(){i.off(e,n),t.apply(this,arguments)}return this.on(e,n,r)},before:function(e,t,r){if(!(!e||!t))return e="before"+e,this.on(e,t,r)},after:function(e,t,r){if(!(!e||!t))return e="after"+e,this.on(e,t,r)},success:function(e,t){return this.once("success",e,t)},error:function(e,t){return this.once("error",e,t)},off:function(e,t){var r=this.__handlers__||(this.__handlers__={});if(!t){r[e]=[];return}if(r[e]){for(var i=r[e],n=[],a=0;a<i.length;a++)t&&i[a].action!==t&&n.push(i[a]);r[e]=n}return this},has:function(e,t){var r=this.__handlers__;if(!r||!r[e])return!1;for(var i=r[e],n=0;n<i.length;n++)if(i[n].action===t)return!0}},Os=0,Is=Array.prototype,Bs=Is.forEach,Le={genGUID:function(){return++Os},relative2absolute:function(e,t){if(!t||e.match(/^\//))return e;for(var r=e.split("/"),i=t.split("/"),n=r[0];n==="."||n==="..";)n===".."&&i.pop(),r.shift(),n=r[0];return i.join("/")+"/"+r.join("/")},extend:function(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},defaults:function(e,t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e},extendWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}return e},defaultsWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]==null&&(e[n]=t[n])}return e},each:function(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Bs)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)},isObject:function(e){return e===Object(e)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return e?e.length===+e.length:!1},clone:function(e){if(Le.isObject(e)){if(Le.isArray(e))return e.slice();if(Le.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return Le.extend({},e)}else return e}},Xe=function(){this.__uid__=Le.genGUID()};Xe.__initializers__=[function(e){Le.extend(this,e)}];Le.extend(Xe,Ns);Le.extend(Xe.prototype,Gn);var la=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],ha=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function Fs(e){for(var t={},r={},i=0;i<la.length;i++){var n=la[i];o(n)}for(var i=0;i<ha.length;i++){var a=ha[i];r[a]=e.getParameter(e[a])}this.getExtension=function(s){return s in t||o(s),t[s]},this.getParameter=function(s){return r[s]};function o(s){if(e.getExtension){var l=e.getExtension(s);l||(l=e.getExtension("MOZ_"+s)),l||(l=e.getExtension("WEBKIT_"+s)),t[s]=l}}}const F={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CW:2304,CCW:2305,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_2D:3553,TEXTURE_CUBE_MAP:34067,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FRAMEBUFFER:36160,RENDERBUFFER:36161,DEPTH_STENCIL:34041,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306};function zs(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(r){if(r.lengthComputable){var i=r.loaded/r.total;e.onprogress(i,r.loaded,r.total)}else e.onprogress(null)}),t.onload=function(r){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Gs={get:zs};var qi,fe={};fe.supportWebGL=function(){if(qi==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch(r){qi=!1}return qi};fe.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;fe.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;fe.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;fe.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;fe.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;fe.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;fe.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var $t={};typeof window!="undefined"?$t=window:typeof global!="undefined"&&($t=global);fe.requestAnimationFrame=$t.requestAnimationFrame||$t.msRequestAnimationFrame||$t.mozRequestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};fe.createCanvas=function(){return document.createElement("canvas")};fe.createImage=function(){return new $t.Image};fe.request={get:Gs.get};fe.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};fe.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var He=function(){this.head=null,this.tail=null,this._length=0};He.prototype.insert=function(e){var t=new He.Entry(e);return this.insertEntry(t),t};He.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new He.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};He.prototype.insertBeforeEntry=function(e,t){var r=new He.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};He.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};He.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};He.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};He.prototype.getHead=function(){if(this.head)return this.head.value};He.prototype.getTail=function(){if(this.tail)return this.tail.value};He.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};He.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};He.prototype.length=function(){return this._length};He.prototype.isEmpty=function(){return this._length===0};He.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t!="undefined";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};He.prototype.clear=function(){this.tail=this.head=null,this._length=0};He.Entry=function(e){this.value=e,this.next=null,this.prev=null};var ar=function(e){this._list=new He,this._map={},this._maxSize=e||10};ar.prototype.setMaxSize=function(e){this._maxSize=e};ar.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};ar.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};ar.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};ar.prototype.clear=function(){this._list.clear(),this._map={}};var Ee={},ua={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ct(e){return e=Math.round(e),e<0?0:e>255?255:e}function Us(e){return e=Math.round(e),e<0?0:e>360?360:e}function Zr(e){return e<0?0:e>1?1:e}function Yi(e){return e.length&&e.charAt(e.length-1)==="%"?ct(parseFloat(e)/100*255):ct(parseInt(e,10))}function _r(e){return e.length&&e.charAt(e.length-1)==="%"?Zr(parseFloat(e)/100):Zr(parseFloat(e))}function Ki(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ot(e,t,r){return e+(t-e)*r}function ft(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var yo=new ar(20),ui=null;function or(e,t){ui&&bn(ui,t),ui=yo.put(e,ui||t.slice())}Ee.parse=function(e,t){if(e){t=t||[];var r=yo.get(e);if(r)return bn(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in ua)return bn(t,ua[i]),or(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){ft(t,0,0,0,1);return}return ft(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),or(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){ft(t,0,0,0,1);return}return ft(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),or(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){ft(t,0,0,0,1);return}h=_r(l.pop());case"rgb":if(l.length!==3){ft(t,0,0,0,1);return}return ft(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),h),or(e,t),t;case"hsla":if(l.length!==4){ft(t,0,0,0,1);return}return l[3]=_r(l[3]),En(l,t),or(e,t),t;case"hsl":if(l.length!==3){ft(t,0,0,0,1);return}return En(l,t),or(e,t),t;default:return}}ft(t,0,0,0,1)}};Ee.parseToFloat=function(e,t){if(t=Ee.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function En(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=_r(e[1]),n=_r(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ft(t,ct(Ki(o,a,r+1/3)*255),ct(Ki(o,a,r)*255),ct(Ki(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vs(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+u-d:i===a&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,h,s];return e[3]!=null&&c.push(e[3]),c}}Ee.lift=function(e,t){var r=Ee.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return Ee.stringify(r,r.length===4?"rgba":"rgb")}};Ee.toHex=function(e){var t=Ee.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Ee.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=ct(Ot(o[0],s[0],l)),r[1]=ct(Ot(o[1],s[1],l)),r[2]=ct(Ot(o[2],s[2],l)),r[3]=Zr(Ot(o[3],s[3],l)),r}};Ee.fastMapToColor=Ee.fastLerp;Ee.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Ee.parse(t[n]),s=Ee.parse(t[a]),l=i-n,h=Ee.stringify([ct(Ot(o[0],s[0],l)),ct(Ot(o[1],s[1],l)),ct(Ot(o[2],s[2],l)),Zr(Ot(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};Ee.mapToColor=Ee.lerp;Ee.modifyHSL=function(e,t,r,i){if(e=Ee.parse(e),e)return e=Vs(e),t!=null&&(e[0]=Us(t)),r!=null&&(e[1]=_r(r)),i!=null&&(e[2]=_r(i)),Ee.stringify(En(e),"rgba")};Ee.modifyAlpha=function(e,t){if(e=Ee.parse(e),e&&t!=null)return e[3]=Zr(t),Ee.stringify(e,"rgba")};Ee.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};var Hs=Ee.parseToFloat,$i={};function fa(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i<t.length;i++){var n=t[i],a=e[n];a===null?r.push(n):r.push(n+" "+a.toString())}return r.join(`
2
2
  `)}function ks(e,t,r){r.sort();for(var i=[],n=0;n<r.length;n++){var a=r[n];i.push(a)}var o=fa(e)+`
3
3
  `+fa(t)+`
4
4
  `+i.join(`