mixdashboards 1.0.64 → 1.0.66

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 (375) hide show
  1. package/dist/{BaseComponent-CBE102mY.js → BaseComponent-BS4mGjfQ.js} +219 -158
  2. package/dist/BaseComponent-CsUtBR3X.cjs +1 -0
  3. package/dist/{EChartComponentBase-DBduHOiZ.js → EChartComponentBase-B4FAlR0p.js} +2 -2
  4. package/dist/{EChartComponentBase-VV6rFCJr.cjs → EChartComponentBase-C6CU5uAX.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-CWXBCG4Y.js → EmergencyPlanPanel-BT6lnCFm.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-9F44w4PC.cjs → EmergencyPlanPanel-Cc976CK7.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CxsZKKmH.js → HistoryPlanDialog-A9brlEzU.js} +1 -1
  8. package/dist/{HistoryPlanDialog-CuQ-EpCl.cjs → HistoryPlanDialog-BnBHf6Uc.cjs} +1 -1
  9. package/dist/{MonitoringMap-WR5SXwrg.js → MonitoringMap-Cx9bTaLZ.js} +2 -2
  10. package/dist/{MonitoringMap-iUGV2w11.cjs → MonitoringMap-DxbC9yXm.cjs} +1 -1
  11. package/dist/{UniverSheet-DxRWZDHw.cjs → UniverSheet-BNb76G53.cjs} +1 -1
  12. package/dist/{UniverSheet-BGBrZXSn.js → UniverSheet-BgcyiCzr.js} +2 -2
  13. package/dist/{accelerationChart-6wz_PFi_.cjs → accelerationChart-3WI5VJ-c.cjs} +1 -1
  14. package/dist/{accelerationChart-DTw18uYc.js → accelerationChart-BtU2hZwx.js} +2 -2
  15. package/dist/{actionItem-DXdai7C5.cjs → actionItem-BYlYZLAv.cjs} +1 -1
  16. package/dist/{actionItem-Cl2TeMuL.js → actionItem-C253Pma6.js} +2 -2
  17. package/dist/{alarmLevelChart-BcjqAWK7.js → alarmLevelChart-CDoYuplF.js} +2 -2
  18. package/dist/{alarmLevelChart-CYgVVw6e.cjs → alarmLevelChart-CRyI-Os5.cjs} +1 -1
  19. package/dist/{alertTable-BWlnKfzM.cjs → alertTable-BVOG9CLj.cjs} +1 -1
  20. package/dist/{alertTable-N3KFlO6Q.js → alertTable-CQtKmxGd.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-CDQ4-nBI.cjs → aliasObjectSelectorDemo-58M2TZpm.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DI-UnVL3.js → aliasObjectSelectorDemo-BQHXLgme.js} +1 -1
  23. package/dist/{annualRainfallChart-MD3wl4nT.js → annualRainfallChart-BKWIufEa.js} +2 -2
  24. package/dist/{annualRainfallChart-aUfrtxyM.cjs → annualRainfallChart-C8OY8gQG.cjs} +1 -1
  25. package/dist/aqi-CVG3C7wU.js +157 -0
  26. package/dist/aqi-DtmobP5f.cjs +3 -0
  27. package/dist/{aqiIndass-we8QDnKf.cjs → aqiIndass-CDorlYSv.cjs} +1 -1
  28. package/dist/{aqiIndass-CLLlY9jN.js → aqiIndass-DYprS8tu.js} +2 -2
  29. package/dist/{areaDeformCurve-BnKzO-kn.cjs → areaDeformCurve-BoZfX0i_.cjs} +1 -1
  30. package/dist/{areaDeformCurve-CatnNKgv.js → areaDeformCurve-DJCI56Rd.js} +2 -2
  31. package/dist/arrayCard-CDhsOSC4.js +130 -0
  32. package/dist/arrayCard-CMc9xLMo.cjs +1 -0
  33. package/dist/{audio-Dk_7TCQ3.cjs → audio-Cnb4cg_c.cjs} +1 -1
  34. package/dist/{audio-2hOHSyat.js → audio-DNBx6S6H.js} +2 -2
  35. package/dist/bar-CXSg3vjV.cjs +2 -0
  36. package/dist/bar-C_whiD4-.js +244 -0
  37. package/dist/{bmp-B_5PXFsV.js → bmp-BYiVXwq_.js} +2 -2
  38. package/dist/{bmp-kM2k3Dc2.cjs → bmp-DeGCw2kc.cjs} +1 -1
  39. package/dist/{box-DkpJEiIv.js → box-CbbF6IxK.js} +2 -2
  40. package/dist/{box-CovRQ8mN.cjs → box-_vpTVq_0.cjs} +1 -1
  41. package/dist/{chartConfigPanel-CCP5u9VU.cjs → chartConfigPanel-BJQSpMG3.cjs} +1 -1
  42. package/dist/{chartConfigPanel-Cl9sslWg.js → chartConfigPanel-CnfS0Cqp.js} +1 -1
  43. package/dist/circleBar-BxUU5FiB.cjs +5 -0
  44. package/dist/circleBar-Cwn2dGOC.js +303 -0
  45. package/dist/{clock-DX1r1Hpm.cjs → clock-CAduzDig.cjs} +1 -1
  46. package/dist/{clock-DX05BgGW.js → clock-CjUVaRhY.js} +2 -2
  47. package/dist/{clt-Bx-ZVYpM.js → clt-ByWnRrHm.js} +2 -2
  48. package/dist/{clt-DX2Pnmhj.cjs → clt-RRF5Ay8Z.cjs} +1 -1
  49. package/dist/{cmc-DM8uH-7q.cjs → cmc-B0-G_dOl.cjs} +1 -1
  50. package/dist/{cmc-C-5_9jZu.js → cmc-DMJE1dJk.js} +2 -2
  51. package/dist/{cmp-D_UYIhMd.cjs → cmp-CDygc8Yl.cjs} +1 -1
  52. package/dist/{cmp-_XLrowAy.js → cmp-Dejbj4H1.js} +2 -2
  53. package/dist/{composite-osLMKKni.js → composite-BcncbOKq.js} +2 -2
  54. package/dist/{composite-erzJfYrh.cjs → composite-CTrqVskl.cjs} +1 -1
  55. package/dist/{conclusionCard-BHr1SYFk.cjs → conclusionCard-BYkkdhVz.cjs} +1 -1
  56. package/dist/{conclusionCard-DfxUXsX7.js → conclusionCard-C4VABgkO.js} +2 -2
  57. package/dist/controlList-C9Mg7qi5.cjs +1 -0
  58. package/dist/{controlList-D3aJFqf1.js → controlList-N1wpmaTu.js} +234 -223
  59. package/dist/{controlRecordList-DkZkfuid.js → controlRecordList-BFbQtAKq.js} +159 -148
  60. package/dist/controlRecordList-CGTan8HH.cjs +1 -0
  61. package/dist/crd-h4nZ6o0L.cjs +1 -0
  62. package/dist/crd-tfLsSDox.js +416 -0
  63. package/dist/{ctrBtn-bObShJgy.js → ctrBtn-CfXkWG__.js} +3 -3
  64. package/dist/{ctrBtn-CgA3oPZH.cjs → ctrBtn-DoElJdif.cjs} +1 -1
  65. package/dist/{ctrSet-BWGAr3vo.cjs → ctrSet-DPmHt6YN.cjs} +1 -1
  66. package/dist/{ctrSet-DIuS7jtY.js → ctrSet-hxB2oY0x.js} +3 -3
  67. package/dist/{ctrSwitch-DfwmFS6O.cjs → ctrSwitch-5yt873iz.cjs} +1 -1
  68. package/dist/{ctrSwitch-CkmerK8w.js → ctrSwitch-Ywx4ieEq.js} +3 -3
  69. package/dist/{dataManagement-zficiJZs.cjs → dataManagement-DZLC2zyK.cjs} +1 -1
  70. package/dist/{dataManagement-oV8qgx05.js → dataManagement-Dm7VCIM1.js} +2 -2
  71. package/dist/{dataReport-BDNyr0rN.cjs → dataReport-BPD3HUR5.cjs} +1 -1
  72. package/dist/{dataReport-Ddh8d9lr.js → dataReport-DYFyReYk.js} +2 -2
  73. package/dist/{dataTable-CGt4AHc-.cjs → dataTable-7LHQ_7iH.cjs} +1 -1
  74. package/dist/{dataTable-BFPih5YJ.js → dataTable-ByePG3D5.js} +1 -1
  75. package/dist/{datetime-Bm_6_b5H.js → datetime-CZ9asKiJ.js} +2 -2
  76. package/dist/{datetime-yUBFaJYN.cjs → datetime-wvtdULKe.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-or4Ag7bJ.js → deepClusterSlipSurface-DgMGDPsu.js} +2 -2
  78. package/dist/{deepClusterSlipSurface-D-2J2tlf.cjs → deepClusterSlipSurface-Lhx-7akL.cjs} +1 -1
  79. package/dist/{deepDataMatrix-BtUnYhpI.js → deepDataMatrix-BTRn-wSX.js} +2 -2
  80. package/dist/{deepDataMatrix-CNopQlaY.cjs → deepDataMatrix-CK6QLSHt.cjs} +1 -1
  81. package/dist/{deepDisplacement3D-qgwso1Mq.cjs → deepDisplacement3D-BMOqD_8r.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-B5FPL6nv.js → deepDisplacement3D-Btxl6fcm.js} +2 -2
  83. package/dist/{deepDisplacementChart-CdEDLnJM.cjs → deepDisplacementChart-C_JMdquC.cjs} +1 -1
  84. package/dist/{deepDisplacementChart-FyzL0g_E.cjs → deepDisplacementChart-CxxJyiYO.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-CFPIuCcW.js → deepDisplacementChart-DNp7LolW.js} +2 -2
  86. package/dist/{deepDisplacementChart-Dzpblj36.js → deepDisplacementChart-LjaE9Igy.js} +3 -3
  87. package/dist/{deepDisplacementView-Bk0T91M1.js → deepDisplacementView-DnzjHm-_.js} +1 -1
  88. package/dist/{deepDisplacementView-DNdgXCLQ.cjs → deepDisplacementView-NMIfXfgq.cjs} +1 -1
  89. package/dist/{deepNodeTemperatureChart-BoSYnw40.cjs → deepNodeTemperatureChart-BaADI-Zy.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-CRw1SbLe.js → deepNodeTemperatureChart-DnN3vBJT.js} +2 -2
  91. package/dist/{deepTangentAngleChart-BFvyP7ws.js → deepTangentAngleChart-B9q_Rbtw.js} +2 -2
  92. package/dist/{deepTangentAngleChart-XmYqef6Q.cjs → deepTangentAngleChart-DAQZNQrA.cjs} +1 -1
  93. package/dist/{deepTemperatureField-DTJdI3uR.js → deepTemperatureField-u3jodItK.js} +3 -3
  94. package/dist/{deepTemperatureField-j8Iokg8d.cjs → deepTemperatureField-zg9OomhU.cjs} +1 -1
  95. package/dist/{deepTrendChart-DFXJNzH6.cjs → deepTrendChart-B8ykve40.cjs} +1 -1
  96. package/dist/{deepTrendChart-YMU3XfRt.js → deepTrendChart-CwWGx_8b.js} +2 -2
  97. package/dist/{deviceOnlineStatus-CgAkMb4d.cjs → deviceOnlineStatus-B7qo_3zx.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-CcXCyEeJ.js → deviceOnlineStatus-DpccPl3r.js} +2 -2
  99. package/dist/{deviceStatus-DPzc48VO.cjs → deviceStatus-Bt7r5RDr.cjs} +1 -1
  100. package/dist/{deviceStatus-CwBk37Pj.js → deviceStatus-iAuoOJH_.js} +2 -2
  101. package/dist/{displacementDataTable-BM0TK2-N.cjs → displacementDataTable-Cw-oFpiD.cjs} +1 -1
  102. package/dist/{displacementDataTable-TqQ4MQbe.js → displacementDataTable-pQLD5Ecy.js} +2 -2
  103. package/dist/{displacementTrajectoryChart-DjL3DgtC.js → displacementTrajectoryChart-CKkzU1y5.js} +2 -2
  104. package/dist/{displacementTrajectoryChart-C1c0b1JH.cjs → displacementTrajectoryChart-DTzQO21s.cjs} +1 -1
  105. package/dist/{displacementTrendChart-Db5nHF7z.js → displacementTrendChart-C0uyjDQN.js} +2 -2
  106. package/dist/{displacementTrendChart-Di5IJEx4.cjs → displacementTrendChart-Jtpaf7ED.cjs} +1 -1
  107. package/dist/{dxf-24W1KVC2.cjs → dxf-CalDehoT.cjs} +1 -1
  108. package/dist/{dxf-DsJIm7tk.js → dxf-DrC64962.js} +2 -2
  109. package/dist/dzc-CclcA04Q.cjs +2 -0
  110. package/dist/dzc-Da6BD-ln.js +229 -0
  111. package/dist/{emergencyPlan-5D0rmZFA.js → emergencyPlan-BVCPL4Ib.js} +3 -3
  112. package/dist/{emergencyPlan-w8Gw5d6D.cjs → emergencyPlan-ciiyx43p.cjs} +1 -1
  113. package/dist/evn-L-C9luel.cjs +1 -0
  114. package/dist/evn-sZwNBule.js +157 -0
  115. package/dist/{evolutionChart-5H5JIH5Q.cjs → evolutionChart-3NGa_ZB-.cjs} +1 -1
  116. package/dist/{evolutionChart-1Gpo35nW.js → evolutionChart-4G6BNb89.js} +3 -3
  117. package/dist/{fileViewer-BObh8Dlp.js → fileViewer-B9AdTfNp.js} +2 -2
  118. package/dist/{fileViewer-BLslhVau.cjs → fileViewer-DoEwJFiu.cjs} +1 -1
  119. package/dist/{filterBar-CFl632Nj.js → filterBar-t7qiMajv.js} +2 -2
  120. package/dist/{filterBar-63fawvTW.cjs → filterBar-xm6HaMx-.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-CFWZDY4E.js → fireCombustionCurve-Bl9TFZCa.js} +3 -3
  122. package/dist/{fireCombustionCurve-BJCdwgLC.cjs → fireCombustionCurve-CxIav8nx.cjs} +1 -1
  123. package/dist/{fireFilterBar-DESHEtOa.js → fireFilterBar-CfJjkiIB.js} +2 -2
  124. package/dist/{fireFilterBar-C7fnO5EU.cjs → fireFilterBar-CzbDoNST.cjs} +1 -1
  125. package/dist/{fireHistoryTable-uA12bZu9.js → fireHistoryTable-Dbg3MFUJ.js} +2 -2
  126. package/dist/{fireHistoryTable-CbIRBML-.cjs → fireHistoryTable-DdijlwpR.cjs} +1 -1
  127. package/dist/gag-BqI7REgj.cjs +1 -0
  128. package/dist/gag-rhfONkWA.js +158 -0
  129. package/dist/{gasStationList-DAveTFDy.js → gasStationList-CDA1F3ot.js} +314 -303
  130. package/dist/gasStationList-DbtLT0xb.cjs +1 -0
  131. package/dist/{geo3dViewer-C1L5zX1-.js → geo3dViewer-Dw83DNPh.js} +3 -3
  132. package/dist/{geo3dViewer-CyXcrya5.cjs → geo3dViewer-ptpfO6u-.cjs} +1 -1
  133. package/dist/{glbModel-ewuSQh37.js → glbModel-Bj0RsTVX.js} +2 -2
  134. package/dist/{glbModel-BDplVjO-.cjs → glbModel-NkJt5p-Z.cjs} +1 -1
  135. package/dist/{globalObjectSelector-BGLI5rPv.js → globalObjectSelector-57uEcODq.js} +1 -1
  136. package/dist/{globalObjectSelector-BHjLeccA.cjs → globalObjectSelector-BPqm1gat.cjs} +1 -1
  137. package/dist/{gnssFilterBar-CeGivZuf.js → gnssFilterBar-BRK9lsT6.js} +2 -2
  138. package/dist/{gnssFilterBar-By8-gAHC.cjs → gnssFilterBar-Cs-ntGvu.cjs} +1 -1
  139. package/dist/{gnssHistoryTable-BlWP3gKW.js → gnssHistoryTable-BmnQ4-Kh.js} +2 -2
  140. package/dist/{gnssHistoryTable-CybpVWmm.cjs → gnssHistoryTable-DSmvWdwG.cjs} +1 -1
  141. package/dist/{gnssMapView-TYzqVcVC.cjs → gnssMapView-DOccxE9C.cjs} +2 -2
  142. package/dist/{gnssMapView-CtCUIkKI.js → gnssMapView-DXhgBVE6.js} +4 -4
  143. package/dist/{gnssSectionProfile-Cxrnb862.cjs → gnssSectionProfile-CEB_FuhR.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-BxZNViGu.js → gnssSectionProfile-DuiRmgaj.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-Cf3BpP3E.cjs → gnssTimeSeriesChart-BDv-ahvC.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-CzYG_8DX.js → gnssTimeSeriesChart-DJ8bQa9l.js} +2 -2
  147. package/dist/{gnssXYTrajectory-DkmcPxbX.cjs → gnssXYTrajectory-Bw-AY4hP.cjs} +1 -1
  148. package/dist/{gnssXYTrajectory-BU7_oVNk.js → gnssXYTrajectory-DbAKBmrJ.js} +2 -2
  149. package/dist/{grd-D8R3lKT8.cjs → grd-B6TEj6Np.cjs} +1 -1
  150. package/dist/{grd-D47GHvDX.js → grd-ar4vQTwX.js} +2 -2
  151. package/dist/{grdIndass-yxqXfnfm.cjs → grdIndass-Bk_fWTW_.cjs} +1 -1
  152. package/dist/{grdIndass-DJSCl5Q4.js → grdIndass-wTRzkkT_.js} +2 -2
  153. package/dist/{grg-DgfsHoYL.js → grg-DUyRzbBh.js} +2 -2
  154. package/dist/{grg-5LgDBn1Q.cjs → grg-mcmB7NPb.cjs} +1 -1
  155. package/dist/gridview-BGZ-rexi.js +357 -0
  156. package/dist/gridview-VB25VCVY.cjs +1 -0
  157. package/dist/{groundwaterFilterBar-CejbWrPd.cjs → groundwaterFilterBar-6gepfRCD.cjs} +1 -1
  158. package/dist/{groundwaterFilterBar-D2jqBAT1.js → groundwaterFilterBar-DItUlEBZ.js} +2 -2
  159. package/dist/{groundwaterProfileChart-MLfvzRKQ.js → groundwaterProfileChart-BEIFMryw.js} +3 -3
  160. package/dist/{groundwaterProfileChart-CdxBablt.cjs → groundwaterProfileChart-xC9Gt6TB.cjs} +2 -2
  161. package/dist/{groundwaterTimeCurve-BEmdFPQz.js → groundwaterTimeCurve-CpHAYkBK.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-fQbT6r2R.cjs → groundwaterTimeCurve-bdxynSzK.cjs} +1 -1
  163. package/dist/{groupCard-Cs5r2Zyg.js → groupCard-DF6UJd3s.js} +141 -84
  164. package/dist/groupCard-Yn-P9ML-.cjs +1 -0
  165. package/dist/{headerBar-Bp-xIV2U.cjs → headerBar-CQMHxI__.cjs} +1 -1
  166. package/dist/{headerBar-Bsq6gXQN.js → headerBar-DiZAhbNa.js} +2 -2
  167. package/dist/{history-jyShRwCx.cjs → history-BETm9lKy.cjs} +1 -1
  168. package/dist/{history-Cj4ffms6.js → history-BkS2xpka.js} +1 -1
  169. package/dist/{index-BltWf8EI.cjs → index-BAsgo9KD.cjs} +12 -12
  170. package/dist/{index-B2Q_NM05.js → index-BD1e0vnE.js} +1944 -1938
  171. package/dist/{insarDeformChart-DVsoq33D.js → insarDeformChart-BXf7dAZI.js} +2 -2
  172. package/dist/{insarDeformChart-DinW1aS_.cjs → insarDeformChart-CFYW7MR_.cjs} +1 -1
  173. package/dist/{insarImageViewer-Ca9jDLHS.cjs → insarImageViewer-37XKr7EV.cjs} +1 -1
  174. package/dist/{insarImageViewer-BVBrRD9n.js → insarImageViewer-B_UQvKnV.js} +2 -2
  175. package/dist/{kds-Cs4txV6P.js → kds-49nBqPhH.js} +2 -2
  176. package/dist/{kds-2zpU5Iig.cjs → kds-DCeZC2xi.cjs} +1 -1
  177. package/dist/{kpiCard-D92gz6Vm.js → kpiCard-B2tHYRJW.js} +2 -2
  178. package/dist/{kpiCard-ITYR7OAo.cjs → kpiCard-ByGHbFqb.cjs} +1 -1
  179. package/dist/{landslideMap-CjNHAIm5.cjs → landslideMap-C6hUfy8d.cjs} +1 -1
  180. package/dist/{landslideMap-B6jXiWxk.js → landslideMap-CVFYVPo1.js} +3 -3
  181. package/dist/{landslideWarning-esRmqdnH.cjs → landslideWarning-C5wVyE-D.cjs} +1 -1
  182. package/dist/{landslideWarning-Dct8PCWr.js → landslideWarning-CqthbZJU.js} +5 -5
  183. package/dist/{layerTabs-BYWAtHMP.cjs → layerTabs-Cynj8tfc.cjs} +1 -1
  184. package/dist/{layerTabs-gcJab8Le.js → layerTabs-DyjY2krL.js} +2 -2
  185. package/dist/{leaflet-src-pQjeVzZf.cjs → leaflet-src-B9rhPVBR.cjs} +1 -1
  186. package/dist/{leaflet-src-DuYJJfgN.js → leaflet-src-D4X2XVyS.js} +1 -1
  187. package/dist/{lerc-CKOh38TQ.cjs → lerc-B25snKjr.cjs} +1 -1
  188. package/dist/{lerc-Dw1P5OKl.js → lerc-CK4yMyID.js} +2 -2
  189. package/dist/lin-CbIG_BGD.js +290 -0
  190. package/dist/lin-CdSIgr7P.cjs +2 -0
  191. package/dist/{linIndass-Ce7qatHk.cjs → linIndass-BdO15NBy.cjs} +1 -1
  192. package/dist/{linIndass-YjO-XvxT.js → linIndass-BpieBDsv.js} +2 -2
  193. package/dist/lst-CGuf3TMM.cjs +1 -0
  194. package/dist/lst-oDBgRP7s.js +180 -0
  195. package/dist/{manualEntry-B-G2uVj9.js → manualEntry-CoI7CmgN.js} +2 -2
  196. package/dist/{manualEntry-Cw2T18SV.cjs → manualEntry-d1_6kQDd.cjs} +1 -1
  197. package/dist/{mapBackground-C3a_v3bJ.js → mapBackground-DaVn0Bp6.js} +3 -3
  198. package/dist/{mapBackground-CjJmlvtT.cjs → mapBackground-E40OUkIN.cjs} +1 -1
  199. package/dist/{mappingList-I3iUZajn.js → mappingList-Bc1pU60U.js} +231 -220
  200. package/dist/mappingList-DBdC75Ea.cjs +1 -0
  201. package/dist/{markdownViewer-HlIaB0Wj.cjs → markdownViewer-Bb6X3bEo.cjs} +1 -1
  202. package/dist/{markdownViewer-BIMhqjta.js → markdownViewer-ey5BNXTz.js} +2 -2
  203. package/dist/{mix-control-modal-BkbcygJy.cjs → mix-control-modal--Ge7MZt8.cjs} +1 -1
  204. package/dist/{mix-control-modal-6WJ8NaxB.js → mix-control-modal-DpfGZ1mv.js} +1 -1
  205. package/dist/{mixGrid-BxutKj9m.js → mixGrid-CtougcOA.js} +2 -2
  206. package/dist/{mixGrid-C8fP3j4E.cjs → mixGrid-D56luw4w.cjs} +1 -1
  207. package/dist/{mixMap-CHYjWJSS.cjs → mixMap-BrFU4JS6.cjs} +1 -1
  208. package/dist/{mixMap-BlrVMC3A.js → mixMap-bmB_qN8U.js} +2 -2
  209. package/dist/{mixModel-CGsJ1Brf.cjs → mixModel-D8GGCCAB.cjs} +1 -1
  210. package/dist/{mixModel-Dct8AmkM.js → mixModel-DiNABkMA.js} +2 -2
  211. package/dist/{mixPie-C84qBlMI.cjs → mixPie-BknhTJ4m.cjs} +1 -1
  212. package/dist/{mixPie-PycUMgjg.js → mixPie-D6Z_rGG_.js} +2 -2
  213. package/dist/mixdashboards.cjs +1 -1
  214. package/dist/mixdashboards.css +1 -1
  215. package/dist/mixdashboards.js +1 -1
  216. package/dist/{mjpegCamera-Cps_2RXm.cjs → mjpegCamera-BEcaUBof.cjs} +1 -1
  217. package/dist/{mjpegCamera-C6envTsP.js → mjpegCamera-C4zdpFY6.js} +2 -2
  218. package/dist/{monitorAlert-BP-LVEFA.js → monitorAlert-Bg8P6ZqF.js} +2 -2
  219. package/dist/{monitorAlert-BiCWFwgT.cjs → monitorAlert-DtKcr1F2.cjs} +1 -1
  220. package/dist/{monitorData-CVKysc6v.cjs → monitorData-DmXbI5VQ.cjs} +1 -1
  221. package/dist/{monitorData-EW_YUqx4.js → monitorData-raioDZ5w.js} +2 -2
  222. package/dist/{monitorSpeedChart-D0rJzsMf.cjs → monitorSpeedChart-bmlYpeb5.cjs} +1 -1
  223. package/dist/{monitorSpeedChart-CbJ2tnAV.js → monitorSpeedChart-iFhRzqu3.js} +1 -1
  224. package/dist/mxa-B85UXGvC.js +157 -0
  225. package/dist/mxa-CVn-A0-W.cjs +2 -0
  226. package/dist/{myValue-CyTRiEdv.cjs → myValue-3VZ290i1.cjs} +1 -1
  227. package/dist/{myValue-CpaaH_O3.js → myValue-CClfJR4L.js} +2 -2
  228. package/dist/{myValueList-ZWy1lOBJ.cjs → myValueList-BL5BZYav.cjs} +1 -1
  229. package/dist/{myValueList-B0AEKRdl.js → myValueList-Bealamew.js} +2 -2
  230. package/dist/objectList-5jrkPvUY.cjs +1 -0
  231. package/dist/{objectList-Bb1zsd-0.js → objectList-7q0T7V-p.js} +193 -182
  232. package/dist/{photo-Ca16Wje6.js → photo-CJTpsbF7.js} +2 -2
  233. package/dist/{photo-Ckbjg47Q.cjs → photo-D1FfoTcA.cjs} +1 -1
  234. package/dist/{pie-CIIYWSQ1.js → pie-DfX_zs6_.js} +97 -49
  235. package/dist/pie-DpE1GZ_H.cjs +2 -0
  236. package/dist/{pressBtn-BOPMX6vT.js → pressBtn-BoOKDp3V.js} +3 -3
  237. package/dist/{pressBtn-DmbHObCA.cjs → pressBtn-D0zgezn4.cjs} +1 -1
  238. package/dist/{processTable-CRpOO9yQ.js → processTable-CyEKPoU7.js} +2 -2
  239. package/dist/{processTable-CnWAE474.cjs → processTable-aZHWEMm4.cjs} +1 -1
  240. package/dist/progressBar-C65Srf4j.cjs +1 -0
  241. package/dist/{progressBar-Ci1NtCSW.js → progressBar-DemzN0u6.js} +90 -64
  242. package/dist/progressCircle-CZOEnise.cjs +1 -0
  243. package/dist/{progressCircle-D6EizRgY.js → progressCircle-qyYl8ttC.js} +102 -76
  244. package/dist/{qrcode-D_dlaehZ.js → qrcode-B0xDtBLl.js} +2 -2
  245. package/dist/{qrcode-C0h07MDl.cjs → qrcode-CaZVPgg0.cjs} +1 -1
  246. package/dist/raceBar-BuswZYsQ.js +244 -0
  247. package/dist/raceBar-U3ZW5f7N.cjs +3 -0
  248. package/dist/{rad-PGV0yEDK.cjs → rad-BqvLwSXU.cjs} +1 -1
  249. package/dist/{rad-CrQKoWVR.js → rad-CWBooAZh.js} +34 -26
  250. package/dist/{radarMapViewer-CD2_RFHv.cjs → radarMapViewer-W-ZW1t8l.cjs} +1 -1
  251. package/dist/{radarMapViewer-XDO2jlqW.js → radarMapViewer-lQRkYXPi.js} +2 -2
  252. package/dist/{rainfallFilterBar-CChXi9YU.cjs → rainfallFilterBar-Bc56ZOwd.cjs} +1 -1
  253. package/dist/{rainfallFilterBar-DZ6J-ASc.js → rainfallFilterBar-DCce-7N-.js} +2 -2
  254. package/dist/{rainfallTimeCurve-DCh326jl.js → rainfallTimeCurve-BQW06sij.js} +3 -3
  255. package/dist/{rainfallTimeCurve-CkjfJfgT.cjs → rainfallTimeCurve-CVsxgi9L.cjs} +1 -1
  256. package/dist/{rangeLin-BuVpf9N7.cjs → rangeLin-BqeeEFKe.cjs} +1 -1
  257. package/dist/{rangeLin-Rnj_S4DG.js → rangeLin-Dc7tVNUN.js} +2 -2
  258. package/dist/{realtimeEvolutionMap-yScfHuVY.js → realtimeEvolutionMap-CzbF2bLK.js} +2 -2
  259. package/dist/{realtimeEvolutionMap-B2cHRjpv.cjs → realtimeEvolutionMap-DuMmdiu8.cjs} +1 -1
  260. package/dist/{regionBar-D5sEHo1F.cjs → regionBar-BK-Bva1I.cjs} +1 -1
  261. package/dist/{regionBar-89v8maaa.js → regionBar-Drdf-C0E.js} +2 -2
  262. package/dist/request-BfanfPEB.js +114 -0
  263. package/dist/request-mhnNU_Sb.cjs +1 -0
  264. package/dist/{retainer1-B2amv3pe.js → retainer1-CP1gxFzB.js} +3 -3
  265. package/dist/{retainer1-C2y2UP0q.cjs → retainer1-kVkJQ6pP.cjs} +1 -1
  266. package/dist/{retainer2-B9GGaxmc.cjs → retainer2-CY1SmKTI.cjs} +1 -1
  267. package/dist/{retainer2-CiU2boaX.js → retainer2-IuaZ9_6A.js} +3 -3
  268. package/dist/{retainerRecordList-HJb5gVmb.js → retainerRecordList-B9xRSw9Q.js} +218 -207
  269. package/dist/retainerRecordList-DBFazZ6H.cjs +1 -0
  270. package/dist/{ringTopN-D3pcP6mF.js → ringTopN-DLI9BOZX.js} +2 -2
  271. package/dist/{ringTopN-CseauP-l.cjs → ringTopN-DlShhdRI.cjs} +1 -1
  272. package/dist/{riskRegionTable-W5fvSLB7.js → riskRegionTable-D-K9jviy.js} +2 -2
  273. package/dist/{riskRegionTable-D4LGtenq.cjs → riskRegionTable-DD1yz-2v.cjs} +1 -1
  274. package/dist/sankey-Bm3eNJKK.cjs +1 -0
  275. package/dist/{sankey-YJn52fqc.js → sankey-BrekPdDk.js} +87 -71
  276. package/dist/{scd-d8ZB57af.cjs → scd-COf83Ehh.cjs} +1 -1
  277. package/dist/{scd-YTvbnUCA.js → scd-GIcjE9vw.js} +2 -2
  278. package/dist/{sideMenu-DTyv-cwu.cjs → sideMenu-2FOhQweT.cjs} +1 -1
  279. package/dist/{sideMenu-CIrnwEwr.js → sideMenu-DZxlcUP2.js} +2 -2
  280. package/dist/{slopeStability-DRxj7-bO.js → slopeStability-DJ7z3Eaa.js} +2 -2
  281. package/dist/{slopeStability-eDLbXvEa.cjs → slopeStability-z-FjKqOC.cjs} +1 -1
  282. package/dist/{speedCurve-CwmhULKH.js → speedCurve-CGrEMqfo.js} +2 -2
  283. package/dist/{speedCurve-U5kQVWpb.cjs → speedCurve-syYxgzNy.cjs} +1 -1
  284. package/dist/{staticLine-9T10Svy0.js → staticLine-BrGxiBFC.js} +2 -2
  285. package/dist/{staticLine-BVWtlzia.cjs → staticLine-DQDAZECS.cjs} +1 -1
  286. package/dist/{stressFilterBar-BwbUlgY7.cjs → stressFilterBar-B6jfmh53.cjs} +1 -1
  287. package/dist/{stressFilterBar-WaA6B8Nb.js → stressFilterBar-DyeWaaXJ.js} +2 -2
  288. package/dist/{stressTimeCurve-Cob-vnUV.cjs → stressTimeCurve-Bf9HVkrR.cjs} +1 -1
  289. package/dist/{stressTimeCurve-BnwhSSH5.js → stressTimeCurve-DtoD1Okt.js} +3 -3
  290. package/dist/{swiper-BoPHtqBt.cjs → swiper-DayyQudc.cjs} +1 -1
  291. package/dist/{swiper-C9a5Gd1u.js → swiper-DgT9bNt7.js} +2 -2
  292. package/dist/{terminalConfigList-Dq1zj1PJ.js → terminalConfigList-9INyQUYL.js} +197 -186
  293. package/dist/terminalConfigList-XZlp5zBj.cjs +1 -0
  294. package/dist/terminalList-BqvsJ-wc.cjs +1 -0
  295. package/dist/{terminalList-Ce5i7jP2.js → terminalList-CWYBB0qm.js} +216 -205
  296. package/dist/{textbox-B2p_vvB3.cjs → textbox-7nVZAwQU.cjs} +1 -1
  297. package/dist/{textbox-PyVsGg6H.js → textbox-DBvH8387.js} +2 -2
  298. package/dist/{timeQueryBar-D9BGrcyl.cjs → timeQueryBar-CIuHBcZD.cjs} +1 -1
  299. package/dist/{timeQueryBar-BmtguPEk.js → timeQueryBar-D446jPnt.js} +1 -1
  300. package/dist/{timeSeries-CBariAag.js → timeSeries-CW4cG67k.js} +204 -186
  301. package/dist/timeSeries-DETgJv1-.cjs +4 -0
  302. package/dist/{timeSeriesCurve-Z7eeJdry.js → timeSeriesCurve-BlKaotG7.js} +3 -3
  303. package/dist/{timeSeriesCurve-CbjK5olc.cjs → timeSeriesCurve-CvsvTvNf.cjs} +1 -1
  304. package/dist/toggleBtn-CLzKTvzo.js +296 -0
  305. package/dist/toggleBtn-wRNcQ_dp.cjs +1 -0
  306. package/dist/{trajectoryConfigPanel-C_2Vn9Q7.js → trajectoryConfigPanel-CzZ6rRkQ.js} +1 -1
  307. package/dist/{trajectoryConfigPanel-ChMeHIYf.cjs → trajectoryConfigPanel-sQDRUbE_.cjs} +1 -1
  308. package/dist/{trajectoryScatter-BIhSst9m.js → trajectoryScatter-BZytt05E.js} +2 -2
  309. package/dist/{trajectoryScatter-BsOKnQK2.cjs → trajectoryScatter-D2R-P4YB.cjs} +1 -1
  310. package/dist/{universalConfigPanel-6sPXkbur.js → universalConfigPanel-DLssDXyP.js} +1 -1
  311. package/dist/{universalConfigPanel-CYyQPISx.cjs → universalConfigPanel-DqwBQUbO.cjs} +1 -1
  312. package/dist/{universalTable-DZ13ea-n.cjs → universalTable-BzZCIFhC.cjs} +1 -1
  313. package/dist/{universalTable-DxxsxBUY.js → universalTable-C5-mMMv9.js} +2 -2
  314. package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
  315. package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
  316. package/dist/{video-Bz9vT6Rd.cjs → video-C7dp6Whl.cjs} +1 -1
  317. package/dist/{video-BXI26Fzj.js → video-uDiXmPjK.js} +2 -2
  318. package/dist/{videoMonitor-l3kwzFy_.js → videoMonitor-DilML12s.js} +2 -2
  319. package/dist/{videoMonitor-C5jGxRZQ.cjs → videoMonitor-Uib5l73b.cjs} +1 -1
  320. package/dist/vlu-BmuZhfC4.cjs +1 -0
  321. package/dist/vlu-CfLWZGLR.js +141 -0
  322. package/dist/{warningOverview-Cudhyiuz.js → warningOverview-CXT0QZa3.js} +3 -3
  323. package/dist/{warningOverview-DBLoWu7w.cjs → warningOverview-D7TVLRPN.cjs} +1 -1
  324. package/dist/{weather-C5wgSsqp.cjs → weather-CZuNlx19.cjs} +1 -1
  325. package/dist/{weather-i1Owl8Gi.js → weather-Dl1zagzB.js} +2 -2
  326. package/dist/{windLin-Dd9qx2WX.cjs → windLin-DyQLy_Hl.cjs} +1 -1
  327. package/dist/{windLin-BM8j0_35.js → windLin-zGzQr6MU.js} +2 -2
  328. package/package.json +1 -1
  329. package/dist/BaseComponent-BOAc8nMe.cjs +0 -1
  330. package/dist/aqi-B1GY5HGh.js +0 -162
  331. package/dist/aqi-DMoNda3S.cjs +0 -3
  332. package/dist/arrayCard-BhiPI19c.js +0 -109
  333. package/dist/arrayCard-DEdiy0eO.cjs +0 -1
  334. package/dist/bar-BL43mDWB.cjs +0 -2
  335. package/dist/bar-r203P0pY.js +0 -255
  336. package/dist/circleBar-BWamsrA5.cjs +0 -4
  337. package/dist/circleBar-DZzkqK-E.js +0 -195
  338. package/dist/controlList-BCzVvpS3.cjs +0 -1
  339. package/dist/controlRecordList-CrZIvX6s.cjs +0 -1
  340. package/dist/crd-D-ppGOs_.cjs +0 -1
  341. package/dist/crd-DSk7p_2v.js +0 -276
  342. package/dist/dzc-CM0WDkw0.js +0 -166
  343. package/dist/dzc-I9b5-WHO.cjs +0 -2
  344. package/dist/evn-CYEoEht5.js +0 -139
  345. package/dist/evn-Gqni9ys-.cjs +0 -1
  346. package/dist/gag-CKJ9JKhL.js +0 -125
  347. package/dist/gag-NzBDXhJE.cjs +0 -1
  348. package/dist/gasStationList-BW4vOTn7.cjs +0 -1
  349. package/dist/gridview-agTiWpx1.js +0 -199
  350. package/dist/gridview-cekDx9U0.cjs +0 -1
  351. package/dist/groupCard-qbSs1QuX.cjs +0 -1
  352. package/dist/lin-1im2hV5a.cjs +0 -2
  353. package/dist/lin-CvGwFCqc.js +0 -234
  354. package/dist/lst-DO6rbP99.cjs +0 -1
  355. package/dist/lst-DRuhqKNA.js +0 -147
  356. package/dist/mappingList-cO72rs6t.cjs +0 -1
  357. package/dist/mxa-DfC5Ox-x.cjs +0 -2
  358. package/dist/mxa-H7K6D1Sv.js +0 -160
  359. package/dist/objectList-GFtvXhwb.cjs +0 -1
  360. package/dist/pie-6ZptRxXt.cjs +0 -2
  361. package/dist/progressBar-BVRCOXtm.cjs +0 -1
  362. package/dist/progressCircle-Cf7rczK8.cjs +0 -1
  363. package/dist/raceBar-BJP8Jscv.cjs +0 -4
  364. package/dist/raceBar-sQSUrrLw.js +0 -354
  365. package/dist/request-2ktQfxDW.cjs +0 -1
  366. package/dist/request-iwIUv3lN.js +0 -141
  367. package/dist/retainerRecordList-CzrBlKgr.cjs +0 -1
  368. package/dist/sankey-DmHqRaBC.cjs +0 -1
  369. package/dist/terminalConfigList-CMy7gasO.cjs +0 -1
  370. package/dist/terminalList-DGMUKmv-.cjs +0 -1
  371. package/dist/timeSeries-DMWsCY1P.cjs +0 -4
  372. package/dist/toggleBtn-CTt08whu.cjs +0 -1
  373. package/dist/toggleBtn-Dxbiab6g.js +0 -248
  374. package/dist/vlu-DNRJ0Dnl.cjs +0 -1
  375. package/dist/vlu-GFcvheGB.js +0 -118
@@ -1,53 +1,53 @@
1
- var x = Object.defineProperty, A = Object.defineProperties;
2
- var L = Object.getOwnPropertyDescriptors;
3
- var k = Object.getOwnPropertySymbols;
4
- var W = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var S = (l, t, s) => t in l ? x(l, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[t] = s, w = (l, t) => {
1
+ var M = Object.defineProperty, I = Object.defineProperties;
2
+ var H = Object.getOwnPropertyDescriptors;
3
+ var S = Object.getOwnPropertySymbols;
4
+ var A = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
+ var w = (u, t, s) => t in u ? M(u, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : u[t] = s, v = (u, t) => {
6
6
  for (var s in t || (t = {}))
7
- W.call(t, s) && S(l, s, t[s]);
8
- if (k)
9
- for (var s of k(t))
10
- C.call(t, s) && S(l, s, t[s]);
11
- return l;
12
- }, R = (l, t) => A(l, L(t));
13
- var p = (l, t, s) => new Promise((e, i) => {
14
- var a = (c) => {
7
+ A.call(t, s) && w(u, s, t[s]);
8
+ if (S)
9
+ for (var s of S(t))
10
+ L.call(t, s) && w(u, s, t[s]);
11
+ return u;
12
+ }, g = (u, t) => I(u, H(t));
13
+ var d = (u, t, s) => new Promise((e, i) => {
14
+ var n = (r) => {
15
15
  try {
16
- o(s.next(c));
17
- } catch (r) {
18
- i(r);
16
+ c(s.next(r));
17
+ } catch (a) {
18
+ i(a);
19
19
  }
20
- }, n = (c) => {
20
+ }, o = (r) => {
21
21
  try {
22
- o(s.throw(c));
23
- } catch (r) {
24
- i(r);
22
+ c(s.throw(r));
23
+ } catch (a) {
24
+ i(a);
25
25
  }
26
- }, o = (c) => c.done ? e(c.value) : Promise.resolve(c.value).then(a, n);
27
- o((s = s.apply(l, t)).next());
26
+ }, c = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(n, o);
27
+ c((s = s.apply(u, t)).next());
28
28
  });
29
- import { ref as j, inject as T, watch as f, onMounted as U, onBeforeUnmount as E } from "vue";
30
- import { A as H, a as O, k as B, w as M, x as I, y as P, z as $, B as q } from "./index-B2Q_NM05.js";
31
- const z = (l, t, s, e, i) => p(null, null, function* () {
29
+ import { ref as R, inject as O, watch as m, onMounted as C, onBeforeUnmount as W } from "vue";
30
+ import { A as Y, g as y, a as j, k as B, w as U, x as D, y as T, z as E, B as P } from "./index-BD1e0vnE.js";
31
+ const K = (u, t, s, e, i) => d(null, null, function* () {
32
32
  try {
33
- const n = yield new (yield import("./history-Cj4ffms6.js")).default().getHistoryData(l, i);
34
- s(n);
35
- } catch (a) {
36
- console.error("获取历史数据时出错:", a);
33
+ const o = yield new (yield import("./history-BkS2xpka.js")).default().getHistoryData(u, i);
34
+ s(o);
35
+ } catch (n) {
36
+ console.error("获取历史数据时出错:", n);
37
37
  } finally {
38
38
  if (t) {
39
- const { formatRequest: a } = yield import("./request-iwIUv3lN.js"), n = a(l.conf, l.uid, i);
39
+ const { formatRequest: n } = yield import("./request-BfanfPEB.js"), o = n(u.conf, u.uid, i);
40
40
  t.registerComponent({
41
- id: l.conf.id,
42
- request: n,
43
- onUpdate: (o, c) => {
44
- o === "realtime" && e(c);
41
+ id: u.conf.id,
42
+ request: o,
43
+ onUpdate: (c, r) => {
44
+ c === "realtime" && e(r);
45
45
  }
46
46
  });
47
47
  }
48
48
  }
49
- }), K = (l, t) => {
50
- t && t.unregisterComponent(l.conf.id);
49
+ }), q = (u, t) => {
50
+ t && t.unregisterComponent(u.conf.id);
51
51
  };
52
52
  class N {
53
53
  constructor(t) {
@@ -75,6 +75,7 @@ class N {
75
75
  block_mapping: "statistics",
76
76
  action: "get_statistics_list",
77
77
  script_uid: this.scriptUid(t),
78
+ where_and: JSON.stringify([["object_id", "=", t.object_id]]),
78
79
  page_size: Number(s) || 20,
79
80
  page_index: 1
80
81
  } : null;
@@ -84,28 +85,29 @@ class N {
84
85
  block_mapping: "statistics",
85
86
  action: "get_calculate_list",
86
87
  script_uid: this.scriptUid(t),
88
+ where_and: JSON.stringify([["object_id", "=", t.object_id]]),
87
89
  page_size: Number(s) || 20,
88
90
  page_index: 1
89
91
  } : null;
90
92
  }
91
93
  /* 数据分析接口 ----- start ----- */
92
94
  blockResult(t, s, e, i) {
93
- return R(w({}, this.indexResult(t, s)), {
95
+ return g(v({}, this.indexResult(t, s)), {
94
96
  block_mapping: e,
95
97
  action: i
96
98
  });
97
99
  }
98
100
  indexResult(t, s) {
99
101
  const e = this.indexIdentityKey(t);
100
- return !t.fv || !t.object_id ? null : {
102
+ return !t[e] || !t.object_id ? null : {
101
103
  page_index: 1,
102
104
  page_size: s,
103
105
  block_mapping: "index",
104
106
  action: "get_index_result_list",
105
- where_and: [
106
- [e, "=", t.fv],
107
+ where_and: JSON.stringify([
108
+ [e, "=", t[e]],
107
109
  ["object_id", "=", t.object_id]
108
- ]
110
+ ])
109
111
  };
110
112
  }
111
113
  deviationResult(t, s) {
@@ -143,35 +145,107 @@ class N {
143
145
  const s = t == null ? void 0 : t.action;
144
146
  return typeof s == "string" && s.trim() !== "";
145
147
  }
148
+ /** 与 postDataItem 内一致:解析并写回 item.object_id */
149
+ applyHistoryObjectResolution(t) {
150
+ const { conf: s, uid: e } = this.props, { common: i } = s, n = i.useAlias || !1, o = i.multiObject || !1, c = sessionStorage.getItem(Y), r = JSON.parse(
151
+ c || "{}"
152
+ ), a = o ? t.object_alias : i.object_alias, l = o ? t.object_id : i.object_id;
153
+ t.object_id = n ? a ? r[a] : e : l || e;
154
+ }
155
+ mosaicBucketKey(t, s) {
156
+ var e;
157
+ return `${(e = t.object_id) != null ? e : ""}::${s || 1}`;
158
+ }
159
+ /** 将 get_mosaic_list 返回的行写入 response(与 postDataItem 中 mosaic 分支一致) */
160
+ fillResponseFromMosaicRows(t, s, e) {
161
+ t.forEach((i) => {
162
+ const n = s.fv, o = "time";
163
+ e.data.push(i[n]), e.time.push(y(i[o]).format("YYYY-MM-DD HH:mm:ss"));
164
+ });
165
+ }
166
+ /** 同一 object_id、同一 page_size 的 mosaic 槽位合并为一次请求,按 index 写回 results */
167
+ postMosaicBatchMerged(t, s, e) {
168
+ var a;
169
+ const i = [], n = /* @__PURE__ */ new Set();
170
+ for (const { item: l } of s) {
171
+ const p = l.fv;
172
+ p && !n.has(p) && (n.add(p), i.push(p));
173
+ }
174
+ const o = (a = s[0]) == null ? void 0 : a.item, c = o ? this.mosaicResult(o, t) : null;
175
+ if (!c || i.length === 0) {
176
+ for (const { index: l } of s)
177
+ e[l] = { data: [], time: [] };
178
+ return Promise.resolve();
179
+ }
180
+ const r = g(v({}, c), {
181
+ keys: i
182
+ });
183
+ return new Promise((l) => {
184
+ j.platform(
185
+ (p) => {
186
+ var h, f;
187
+ const b = (f = (h = p == null ? void 0 : p.result) == null ? void 0 : h.data) != null ? f : [];
188
+ for (const { index: _, item: x } of s) {
189
+ const k = { data: [], time: [] };
190
+ this.fillResponseFromMosaicRows(b, x, k), e[_] = k;
191
+ }
192
+ l();
193
+ },
194
+ r
195
+ );
196
+ });
197
+ }
146
198
  postDataItem(t) {
147
- var v;
148
- const { conf: s, uid: e } = this.props, { common: i, options: a } = s, n = i.source || "mosaic", o = a.points || 1, c = i.useAlias || !1, r = i.multiObject || !1, h = sessionStorage.getItem(H), u = JSON.parse(
149
- h || "{}"
150
- ), d = r ? t.object_alias : i.object_alias, b = r ? t.object_id : i.object_id;
151
- t.object_id = c ? d ? u[d] : e : b || e;
152
- const y = this[`${n}Result`], _ = (v = y == null ? void 0 : y.call(this, t, o)) != null ? v : null;
153
- return _ == null ? Promise.resolve([]) : new Promise((D) => {
154
- O.platform(
155
- (m) => {
156
- var g;
157
- D(((g = m == null ? void 0 : m.result) == null ? void 0 : g.data) || []);
199
+ var l;
200
+ const { conf: s } = this.props, { common: e, options: i } = s, n = e.source || "mosaic", o = i.points || 1;
201
+ this.applyHistoryObjectResolution(t);
202
+ const c = this[`${n}Result`], r = (l = c == null ? void 0 : c.call(this, t, o)) != null ? l : null, a = {
203
+ data: [],
204
+ time: []
205
+ };
206
+ return r == null ? Promise.resolve(a) : new Promise((p) => {
207
+ j.platform(
208
+ (b) => {
209
+ b.result.data.forEach((h) => {
210
+ const f = ["statistics", "calculate"].includes(n) ? "data" : t.fv, _ = ["statistics", "calculate"].includes(n) ? "start_time" : "time";
211
+ a.data.push(h[f]), a.time.push(
212
+ y(h[_]).format("YYYY-MM-DD HH:mm:ss")
213
+ );
214
+ }), p(a);
158
215
  },
159
- _
216
+ r
160
217
  );
161
218
  });
162
219
  }
163
220
  initHistory() {
164
- return p(this, null, function* () {
165
- const { data: t } = this.props.conf, s = [];
166
- return t.forEach((e) => {
167
- s.push(this.postDataItem(e));
168
- }), Promise.all(s);
221
+ return d(this, null, function* () {
222
+ const { data: t, common: s, options: e } = this.props.conf, i = s.source || "mosaic", n = e.points || 1;
223
+ if (i !== "mosaic")
224
+ return Promise.all(
225
+ t.map((a) => this.postDataItem(a))
226
+ );
227
+ const o = t.length, c = new Array(o), r = /* @__PURE__ */ new Map();
228
+ for (let a = 0; a < o; a++) {
229
+ const l = t[a];
230
+ if (this.applyHistoryObjectResolution(l), this.mosaicResult(l, n) == null) {
231
+ c[a] = { data: [], time: [] };
232
+ continue;
233
+ }
234
+ const b = this.mosaicBucketKey(l, n);
235
+ let h = r.get(b);
236
+ h || (h = [], r.set(b, h)), h.push({ index: a, item: l });
237
+ }
238
+ return yield Promise.all(
239
+ Array.from(r.values()).map(
240
+ (a) => this.postMosaicBatchMerged(n, a, c)
241
+ )
242
+ ), c;
169
243
  });
170
244
  }
171
245
  }
172
- class G extends N {
246
+ class J extends N {
173
247
  constructor(t, s) {
174
- super(t), this.linkWatchStop = null, this.componentType = s, this.session = j(T("session", null)), this.Style = j({}), this.linkStore = B();
248
+ super(t), this.linkWatchStop = null, this.componentType = s, this.session = R(O("session", null)), this.Style = R({}), this.linkStore = B();
175
249
  }
176
250
  // ==================== 可覆盖方法(子类按需实现)====================
177
251
  /**
@@ -187,34 +261,16 @@ class G extends N {
187
261
  * - 初始化数据/图表
188
262
  */
189
263
  init() {
190
- return p(this, null, function* () {
264
+ return d(this, null, function* () {
191
265
  var t;
192
266
  this.Style.value = this.extractStyles(), this.applyTheme(), yield this.expandAliasData((t = this.props.conf) == null ? void 0 : t.data);
193
267
  });
194
268
  }
195
269
  /**
196
- * 处理历史数据
270
+ * 处理历史数据(子类可 override;setupLifecycle / getPreviewHelper 均通过 this 调用,会落到子类实现)
197
271
  * @param res 历史数据响应
198
272
  */
199
273
  setHistoryData(t) {
200
- const { conf: s } = this.props, e = s == null ? void 0 : s.data;
201
- if ((t == null ? void 0 : t.length) === 0) return;
202
- const i = [];
203
- return e.forEach((a, n) => {
204
- var r, h;
205
- if (!a) return;
206
- i.push({
207
- data: [],
208
- time: []
209
- });
210
- const o = t[n];
211
- let c = (h = (r = a.fv) != null ? r : a.item_fv) != null ? h : a.uid;
212
- o == null || o.forEach((u) => {
213
- var b;
214
- let d = (b = u[c]) != null ? b : u.data;
215
- i[n].data.push(d), i[n].time.push(u.time || u.start_time);
216
- });
217
- }), i;
218
274
  }
219
275
  /**
220
276
  * 预览模式处理(子类可覆盖)
@@ -222,36 +278,31 @@ class G extends N {
222
278
  * 支持单对象和多对象模式
223
279
  */
224
280
  onPreview() {
225
- return p(this, null, function* () {
226
- var a;
281
+ return d(this, null, function* () {
282
+ var n;
227
283
  const { common: t, data: s } = this.props.conf, e = this.getSource(), i = yield this.expandAliasData(s);
228
284
  if (this.props.conf.data = i, t.multiObject && Array.isArray(i)) {
229
- const n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
285
+ const o = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
230
286
  (yield Promise.all(
231
- i.map((r) => p(this, null, function* () {
287
+ i.map((a) => d(this, null, function* () {
232
288
  return {
233
- item: r,
234
- objectIds: yield this.resolveObjectIds(r)
289
+ item: a,
290
+ objectIds: yield this.resolveObjectIds(a)
235
291
  };
236
292
  }))
237
- )).forEach(({ item: r, objectIds: h }) => {
238
- h.length > 1 && o.set(
293
+ )).forEach(({ item: a, objectIds: l }) => {
294
+ l.length > 1 && c.set(
239
295
  String(
240
- (t == null ? void 0 : t.object_alias) || (r == null ? void 0 : r.object_alias) || (r == null ? void 0 : r.alias) || (r == null ? void 0 : r.object_id) || (r == null ? void 0 : r.uid) || ""
296
+ (t == null ? void 0 : t.object_alias) || (a == null ? void 0 : a.object_alias) || (a == null ? void 0 : a.alias) || (a == null ? void 0 : a.object_id) || (a == null ? void 0 : a.uid) || ""
241
297
  ),
242
- h
243
- ), h.forEach((u) => {
244
- !u || n.has(u) || (n.add(u), this.subscribeBySource(e, u, r.uid));
298
+ l
299
+ ), l.forEach((p) => {
300
+ !p || o.has(p) || (o.add(p), this.subscribeBySource(e, p, a.uid));
245
301
  });
246
- }), o.size > 0 && console.log(
247
- `[${this.componentType}] 通配符匹配结果:`,
248
- Array.from(o.entries())
249
- ), console.log(
250
- `[${this.componentType}] 多对象模式:已订阅 ${n.size} 个对象`
251
- );
302
+ });
252
303
  } else {
253
- const n = yield this.resolveObjectId(), o = (a = i == null ? void 0 : i[0]) == null ? void 0 : a.uid;
254
- this.subscribeBySource(e, n, o);
304
+ const o = yield this.resolveObjectId(), c = (n = i == null ? void 0 : i[0]) == null ? void 0 : n.uid;
305
+ this.subscribeBySource(e, o, c);
255
306
  }
256
307
  });
257
308
  }
@@ -315,7 +366,7 @@ class G extends N {
315
366
  * 设置联动频道监听
316
367
  */
317
368
  setupLinkWatch() {
318
- this.linkWatchStop && this.linkWatchStop(), this.linkWatchStop = f(
369
+ this.linkWatchStop && this.linkWatchStop(), this.linkWatchStop = m(
319
370
  () => {
320
371
  const t = this.getLinkChannel();
321
372
  return t ? this.linkStore.channels[t] : null;
@@ -355,19 +406,19 @@ class G extends N {
355
406
  console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);
356
407
  return;
357
408
  }
358
- const a = { event: t, block: s, object_id: e };
359
- i && Object.assign(a, i);
360
- const n = this.isLocalIotSubscribeMode() ? {
409
+ const n = { event: t, block: s, object_id: e };
410
+ i && Object.assign(n, i);
411
+ const o = this.isLocalIotSubscribeMode() ? {
361
412
  action: "sub_event",
362
413
  block_mapping: "mmq",
363
- event: a
414
+ event: n
364
415
  } : {
365
416
  action: "sub_agent_event",
366
- event: a
367
- }, o = this.props.conf.id;
368
- this.session.value.componentRequests && (this.session.value.componentRequests.has(o) || this.session.value.componentRequests.set(o, []), this.session.value.componentRequests.get(o).push(n)), this.session.value.send({
417
+ event: n
418
+ }, c = this.props.conf.id;
419
+ this.session.value.componentRequests && (this.session.value.componentRequests.has(c) || this.session.value.componentRequests.set(c, []), this.session.value.componentRequests.get(c).push(o)), this.session.value.send({
369
420
  type: "send_message",
370
- message: n
421
+ message: o
371
422
  });
372
423
  }
373
424
  /**
@@ -498,15 +549,15 @@ class G extends N {
498
549
  * 处理 Vue 组件中 options 的 { value: xxx } 格式
499
550
  */
500
551
  getOptionValue(t, s) {
501
- var i, a;
502
- const e = (a = (i = this.props.conf) == null ? void 0 : i.options) == null ? void 0 : a[t];
552
+ var i, n;
553
+ const e = (n = (i = this.props.conf) == null ? void 0 : i.options) == null ? void 0 : n[t];
503
554
  return e == null ? s : typeof e == "object" && "value" in e ? e.value : e;
504
555
  }
505
556
  /**
506
557
  * 应用主题样式
507
558
  */
508
559
  applyTheme() {
509
- M(this.props.theme, this.Style.value);
560
+ U(this.props.theme, this.Style.value);
510
561
  }
511
562
  /**
512
563
  * 获取数据源类型
@@ -535,7 +586,7 @@ class G extends N {
535
586
  * - 支持外部注入的全局解析器,也兼容 sessionStorage 旧映射
536
587
  */
537
588
  resolveObjectId(t) {
538
- return p(this, null, function* () {
589
+ return d(this, null, function* () {
539
590
  return (yield this.resolveObjectIds(t))[0] || "";
540
591
  });
541
592
  }
@@ -543,38 +594,38 @@ class G extends N {
543
594
  * 获取对象ID列表(支持通配符匹配多个对象)
544
595
  */
545
596
  resolveObjectIds(t) {
546
- return p(this, null, function* () {
547
- const { common: s, data: e } = this.props.conf, i = t || s || e[0] || {}, n = (yield this.expandAliasData([i])).map((o) => String((o == null ? void 0 : o.object_id) || (o == null ? void 0 : o.objectid) || "")).filter(Boolean);
548
- return n.length > 0 && i && typeof i == "object" && (i.object_id = n[0], i.objectid = n[0]), n.length > 0 ? n : [String((i == null ? void 0 : i.object_id) || (i == null ? void 0 : i.objectid) || "")].filter(Boolean);
597
+ return d(this, null, function* () {
598
+ const { uid: s, conf: e } = this.props, { common: i, data: n } = e, o = t || i || n[0] || {}, r = (yield this.expandAliasData([o])).map((a) => String((a == null ? void 0 : a.object_id) || (a == null ? void 0 : a.objectid) || s)).filter(Boolean);
599
+ return r.length > 0 && o && typeof o == "object" && (o.object_id = r[0], o.objectid = r[0]), r.length > 0 ? r : [String((o == null ? void 0 : o.object_id) || (o == null ? void 0 : o.objectid) || "")].filter(Boolean);
549
600
  });
550
601
  }
551
602
  /**
552
603
  * 展开 alias 配置,通配符会扩展成多条真实配置
553
604
  */
554
605
  expandAliasData(t) {
555
- return p(this, null, function* () {
606
+ return d(this, null, function* () {
556
607
  var i;
557
608
  const s = Array.isArray(t) ? t : [], e = [];
558
- for (const a of s) {
559
- if (!a || typeof a != "object") {
560
- e.push(a);
609
+ for (const n of s) {
610
+ if (!n || typeof n != "object") {
611
+ e.push(n);
561
612
  continue;
562
613
  }
563
- const n = {
564
- common: a,
565
- data: [a],
614
+ const o = {
615
+ common: n,
616
+ data: [n],
566
617
  options: (i = this.props.conf) == null ? void 0 : i.options
567
618
  };
568
- if (!String(a.object_alias || a.alias || "").trim()) {
569
- e.push(a);
619
+ if (!String(n.object_alias || n.alias || "").trim()) {
620
+ e.push(n);
570
621
  continue;
571
622
  }
572
- if (!(yield I(n))) {
573
- e.push(a);
623
+ if (!(yield D(o))) {
624
+ e.push(n);
574
625
  continue;
575
626
  }
576
- const c = P([a]);
577
- c.length > 0 ? e.push(...c) : e.push(a);
627
+ const r = T([n]);
628
+ r.length > 0 ? e.push(...r) : e.push(n);
578
629
  }
579
630
  return e;
580
631
  });
@@ -583,28 +634,33 @@ class G extends N {
583
634
  * 空值处理
584
635
  */
585
636
  handleNull(t, s) {
586
- return $(t, this.props, s);
637
+ return E(t, this.props, s);
587
638
  }
588
639
  /**
589
640
  * 获取预览助手对象
590
641
  */
591
642
  getPreviewHelper() {
592
643
  return {
593
- preview: () => z(
644
+ preview: () => K(
594
645
  this.props,
595
646
  this.session.value,
596
647
  (t) => this.setHistoryData(t),
597
- (t) => this.setSocketData(t),
648
+ (t) => {
649
+ let s = t;
650
+ s.datetime = y(s.datetime).format(
651
+ "YYYY-MM-DD HH:mm:ss"
652
+ ), this.setSocketData(s);
653
+ },
598
654
  this.componentType
599
655
  ),
600
- unregister: () => K(this.props, this.session.value)
656
+ unregister: () => q(this.props, this.session.value)
601
657
  };
602
658
  }
603
659
  /**
604
660
  * 获取防抖的初始化方法
605
661
  */
606
662
  getDebouncedInit() {
607
- return q(() => this.init(), 200);
663
+ return P(() => this.init(), 200);
608
664
  }
609
665
  /**
610
666
  * 清理资源(子类可覆盖)
@@ -624,46 +680,51 @@ class G extends N {
624
680
  */
625
681
  setupLifecycle() {
626
682
  const t = this.getDebouncedInit(), s = this.getPreviewHelper();
627
- U(() => p(this, null, function* () {
628
- var i, a, n, o;
683
+ C(() => d(this, null, function* () {
684
+ var i, n, o, c;
629
685
  const e = {
630
686
  common: (i = this.props.conf) == null ? void 0 : i.common,
631
- data: (a = this.props.conf) == null ? void 0 : a.data,
632
- options: (n = this.props.conf) == null ? void 0 : n.options
687
+ data: (n = this.props.conf) == null ? void 0 : n.data,
688
+ options: (o = this.props.conf) == null ? void 0 : o.options
633
689
  };
634
- if (this.props.mode === "preview" && (yield I(e), Array.isArray((o = this.props.conf) == null ? void 0 : o.data) && this.props.conf.data.length && (this.props.conf.data = yield this.expandAliasData(
690
+ if (this.props.mode === "preview" && (yield D(e), Array.isArray((c = this.props.conf) == null ? void 0 : c.data) && this.props.conf.data.length && (this.props.conf.data = yield this.expandAliasData(
635
691
  this.props.conf.data
636
692
  ))), yield this.init(), this.props.mode === "preview") {
637
693
  if (this.needsHistoryData())
638
694
  try {
639
- const c = yield this.initHistory();
640
- this.setHistoryData(c);
641
- } catch (c) {
642
- console.error(`[${this.componentType}] 获取历史数据失败:`, c);
695
+ const r = yield this.initHistory();
696
+ this.setHistoryData(r);
697
+ } catch (r) {
698
+ console.error(`[${this.componentType}] 获取历史数据失败:`, r);
643
699
  }
644
- this.session.value && this.session.value.registerComponent({
700
+ this.session.value && (this.session.value.unregisterComponent(this.props.conf.id), this.session.value.registerComponent({
645
701
  id: this.props.conf.id,
646
702
  request: null,
647
- onUpdate: (c, r) => {
648
- c === "realtime" && this.setSocketData(r);
703
+ onUpdate: (r, a) => {
704
+ if (r === "realtime") {
705
+ let l = a;
706
+ l.datetime = y(l.datetime).format(
707
+ "YYYY-MM-DD HH:mm:ss"
708
+ ), this.setSocketData(l);
709
+ }
649
710
  }
650
- }), this.onPreview();
711
+ })), this.onPreview();
651
712
  }
652
713
  this.setupLinkWatch();
653
- })), E(() => {
714
+ })), W(() => {
654
715
  this.cleanup(), s.unregister(), this.stopLinkWatch();
655
- }), f(
716
+ }), m(
656
717
  () => this.props.conf,
657
718
  () => {
658
719
  this.props.mode === "edit" && t();
659
720
  },
660
721
  { deep: !0 }
661
- ), f(
722
+ ), m(
662
723
  () => this.props.theme,
663
724
  () => {
664
725
  this.init();
665
726
  }
666
- ), f(
727
+ ), m(
667
728
  () => {
668
729
  var e;
669
730
  return (e = this.Style.value) == null ? void 0 : e.linkChannel;
@@ -713,15 +774,15 @@ class G extends N {
713
774
  if (this.props.mode !== "preview") return;
714
775
  const s = (e = this.props.conf) == null ? void 0 : e.modalBinding;
715
776
  if (s && s.enabled && s.mode === "key") {
716
- const n = (s.map || {})[t];
717
- if (!n || !n.layerId) return;
718
- const o = n.action || "toggle", c = (i = s.sheetIndex) != null ? i : -1;
719
- this.dispatchModal(o, n.layerId, c);
777
+ const o = (s.map || {})[t];
778
+ if (!o || !o.layerId) return;
779
+ const c = o.action || "toggle", r = (i = s.sheetIndex) != null ? i : -1;
780
+ this.dispatchModal(c, o.layerId, r);
720
781
  }
721
782
  }
722
783
  }
723
784
  export {
724
- G as B,
725
- z as p,
726
- K as u
785
+ J as B,
786
+ K as p,
787
+ q as u
727
788
  };
@@ -0,0 +1 @@
1
+ "use strict";var M=Object.defineProperty,I=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var w=(u,t,s)=>t in u?M(u,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[t]=s,_=(u,t)=>{for(var s in t||(t={}))H.call(t,s)&&w(u,s,t[s]);if(S)for(var s of S(t))A.call(t,s)&&w(u,s,t[s]);return u},g=(u,t)=>I(u,x(t));var b=(u,t,s)=>new Promise((e,i)=>{var a=r=>{try{c(s.next(r))}catch(n){i(n)}},o=r=>{try{c(s.throw(r))}catch(n){i(n)}},c=r=>r.done?e(r.value):Promise.resolve(r.value).then(a,o);c((s=s.apply(u,t)).next())});const f=require("vue"),h=require("./index-BAsgo9KD.cjs"),R=(u,t,s,e,i)=>b(null,null,function*(){try{const o=yield new(yield Promise.resolve().then(()=>require("./history-BETm9lKy.cjs"))).default().getHistoryData(u,i);s(o)}catch(a){console.error("获取历史数据时出错:",a)}finally{if(t){const{formatRequest:a}=yield Promise.resolve().then(()=>require("./request-mhnNU_Sb.cjs")),o=a(u.conf,u.uid,i);t.registerComponent({id:u.conf.id,request:o,onUpdate:(c,r)=>{c==="realtime"&&e(r)}})}}}),j=(u,t)=>{t&&t.unregisterComponent(u.conf.id)};class L{constructor(t){this.props=t}scriptUid(t){var s;return(s=t.uid)!=null?s:t.fv}indexIdentityKey(t){return t.is_alias?"alias":"uid"}mosaicResult(t,s){return t.fv?{block_mapping:"influxdbproxy",action:"get_mosaic_list",object_id:t.object_id,keys:[t.fv],page_index:1,page_size:s||1}:null}statisticsResult(t,s){return this.scriptUid(t)?{block_mapping:"statistics",action:"get_statistics_list",script_uid:this.scriptUid(t),where_and:JSON.stringify([["object_id","=",t.object_id]]),page_size:Number(s)||20,page_index:1}:null}calculateResult(t,s){return this.scriptUid(t)?{block_mapping:"statistics",action:"get_calculate_list",script_uid:this.scriptUid(t),where_and:JSON.stringify([["object_id","=",t.object_id]]),page_size:Number(s)||20,page_index:1}:null}blockResult(t,s,e,i){return g(_({},this.indexResult(t,s)),{block_mapping:e,action:i})}indexResult(t,s){const e=this.indexIdentityKey(t);return!t[e]||!t.object_id?null:{page_index:1,page_size:s,block_mapping:"index",action:"get_index_result_list",where_and:JSON.stringify([[e,"=",t[e]],["object_id","=",t.object_id]])}}deviationResult(t,s){return this.blockResult(t,s,"deviation","get_deviation_result_list")}stabilityResult(t,s){return this.blockResult(t,s,"stability","get_stability_result_list")}balanceResult(t,s){return this.blockResult(t,s,"balance","get_balance_result_list")}incrementResult(t,s){return this.blockResult(t,s,"increment","get_increment_result_list")}riskResult(t,s){return this.blockResult(t,s,"risk","get_risk_result_list")}isValidPlatformCondition(t){const s=t==null?void 0:t.action;return typeof s=="string"&&s.trim()!==""}applyHistoryObjectResolution(t){const{conf:s,uid:e}=this.props,{common:i}=s,a=i.useAlias||!1,o=i.multiObject||!1,c=sessionStorage.getItem(h.ALIAS_MAPPING_KEY),r=JSON.parse(c||"{}"),n=o?t.object_alias:i.object_alias,l=o?t.object_id:i.object_id;t.object_id=a?n?r[n]:e:l||e}mosaicBucketKey(t,s){var e;return`${(e=t.object_id)!=null?e:""}::${s||1}`}fillResponseFromMosaicRows(t,s,e){t.forEach(i=>{const a=s.fv,o="time";e.data.push(i[a]),e.time.push(h.dayjs(i[o]).format("YYYY-MM-DD HH:mm:ss"))})}postMosaicBatchMerged(t,s,e){var n;const i=[],a=new Set;for(const{item:l}of s){const p=l.fv;p&&!a.has(p)&&(a.add(p),i.push(p))}const o=(n=s[0])==null?void 0:n.item,c=o?this.mosaicResult(o,t):null;if(!c||i.length===0){for(const{index:l}of s)e[l]={data:[],time:[]};return Promise.resolve()}const r=g(_({},c),{keys:i});return new Promise(l=>{h.api.platform(p=>{var d,y;const m=(y=(d=p==null?void 0:p.result)==null?void 0:d.data)!=null?y:[];for(const{index:v,item:D}of s){const k={data:[],time:[]};this.fillResponseFromMosaicRows(m,D,k),e[v]=k}l()},r)})}postDataItem(t){var l;const{conf:s}=this.props,{common:e,options:i}=s,a=e.source||"mosaic",o=i.points||1;this.applyHistoryObjectResolution(t);const c=this[`${a}Result`],r=(l=c==null?void 0:c.call(this,t,o))!=null?l:null,n={data:[],time:[]};return r==null?Promise.resolve(n):new Promise(p=>{h.api.platform(m=>{m.result.data.forEach(d=>{const y=["statistics","calculate"].includes(a)?"data":t.fv,v=["statistics","calculate"].includes(a)?"start_time":"time";n.data.push(d[y]),n.time.push(h.dayjs(d[v]).format("YYYY-MM-DD HH:mm:ss"))}),p(n)},r)})}initHistory(){return b(this,null,function*(){const{data:t,common:s,options:e}=this.props.conf,i=s.source||"mosaic",a=e.points||1;if(i!=="mosaic")return Promise.all(t.map(n=>this.postDataItem(n)));const o=t.length,c=new Array(o),r=new Map;for(let n=0;n<o;n++){const l=t[n];if(this.applyHistoryObjectResolution(l),this.mosaicResult(l,a)==null){c[n]={data:[],time:[]};continue}const m=this.mosaicBucketKey(l,a);let d=r.get(m);d||(d=[],r.set(m,d)),d.push({index:n,item:l})}return yield Promise.all(Array.from(r.values()).map(n=>this.postMosaicBatchMerged(a,n,c))),c})}}class O extends L{constructor(t,s){super(t),this.linkWatchStop=null,this.componentType=s,this.session=f.ref(f.inject("session",null)),this.Style=f.ref({}),this.linkStore=h.useLinkStore()}extractStyles(){return{}}init(){return b(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),yield this.expandAliasData((t=this.props.conf)==null?void 0:t.data)})}setHistoryData(t){}onPreview(){return b(this,null,function*(){var a;const{common:t,data:s}=this.props.conf,e=this.getSource(),i=yield this.expandAliasData(s);if(this.props.conf.data=i,t.multiObject&&Array.isArray(i)){const o=new Set,c=new Map;(yield Promise.all(i.map(n=>b(this,null,function*(){return{item:n,objectIds:yield this.resolveObjectIds(n)}})))).forEach(({item:n,objectIds:l})=>{l.length>1&&c.set(String((t==null?void 0:t.object_alias)||(n==null?void 0:n.object_alias)||(n==null?void 0:n.alias)||(n==null?void 0:n.object_id)||(n==null?void 0:n.uid)||""),l),l.forEach(p=>{!p||o.has(p)||(o.add(p),this.subscribeBySource(e,p,n.uid))})})}else{const o=yield this.resolveObjectId(),c=(a=i==null?void 0:i[0])==null?void 0:a.uid;this.subscribeBySource(e,o,c)}})}setSocketData(t){if(!t)return;const{data:s}=this.props.conf;!s||!Array.isArray(s)||s.forEach(e=>{try{const i=this.extractDataValue(t,e.fv);e.value=i!=null?i:"--"}catch(i){e.value="--"}})}onLinkEvent(t){}getLinkChannel(){var t;return((t=this.Style.value)==null?void 0:t.linkChannel)||""}publish(t){const s=this.getLinkChannel();if(!s){console.warn(`[${this.componentType}] 未配置联动频道,无法发布事件`);return}this.linkStore.publish(s,this.componentType,t)}shouldHandleEvent(t){return!(!t||this.props.mode==="edit"||t.topic.source===this.componentType)}setupLinkWatch(){this.linkWatchStop&&this.linkWatchStop(),this.linkWatchStop=f.watch(()=>{const t=this.getLinkChannel();return t?this.linkStore.channels[t]:null},t=>{this.shouldHandleEvent(t)&&this.onLinkEvent(t)},{deep:!0,immediate:!0})}stopLinkWatch(){this.linkWatchStop&&(this.linkWatchStop(),this.linkWatchStop=null)}isLocalIotSubscribeMode(){return localStorage.getItem("dashboardUseLocalToken")==="1"||localStorage.getItem("dashboardUseLocalToken")==="true"}subscribe(t,s,e,i){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const a={event:t,block:s,object_id:e};i&&Object.assign(a,i);const o=this.isLocalIotSubscribeMode()?{action:"sub_event",block_mapping:"mmq",event:a}:{action:"sub_agent_event",event:a},c=this.props.conf.id;this.session.value.componentRequests&&(this.session.value.componentRequests.has(c)||this.session.value.componentRequests.set(c,[]),this.session.value.componentRequests.get(c).push(o)),this.session.value.send({type:"send_message",message:o})}subscribeFv(t){this.subscribe("recv_fv","mosaic",t)}subscribeRetainerOpen(t){this.subscribe("retainer_open","retainer",t)}subscribeRetainerClose(t){this.subscribe("retainer_close","retainer",t)}subscribeRetainerEvent(t){this.subscribe("retainer_event","retainer",t)}subscribeRetainer(t){this.subscribeRetainerOpen(t),this.subscribeRetainerClose(t),this.subscribeRetainerEvent(t)}subscribeStatisticsRealtimeResult(t){this.subscribe("statistics_realtime_result","statistics",t)}subscribeStatistics(t){var e,i;const s=(i=(e=this.props.conf.data)==null?void 0:e[0])==null?void 0:i.uid;this.subscribeStatisticsWithUid(t,s)}subscribeStatisticsWithUid(t,s){this.subscribe("statistics_result","statistics",t,{uid:s,type:"statistics"})}subscribeCalculate(t){var e,i;const s=(i=(e=this.props.conf.data)==null?void 0:e[0])==null?void 0:i.uid;this.subscribeCalculateWithUid(s)}subscribeCalculateWithUid(t){this.subscribe("statistics_result","statistics","",{uid:t,type:"calculate"})}subscribeBySource(t,s,e){switch(t){case"mosaic":this.subscribeFv(s);break;case"statisticsRealtime":this.subscribeStatisticsRealtimeResult(s);break;case"statistics":e?this.subscribeStatisticsWithUid(s,e):this.subscribeStatistics(s);break;case"calculate":e?this.subscribeCalculateWithUid(e):this.subscribeCalculate(s);break;default:console.warn(`[${this.componentType}] 未知的数据源类型: ${t}`)}}extractDataValue(t,s){var e;return!t||!t.event?null:t.event==="recv_fv"&&t.block==="mosaic"?!s||!t.data?null:t.data[s]:t.event==="statistics_realtime_result"&&t.block==="statistics"?(e=t.data)==null?void 0:e.data:t.event==="statistics_result"&&t.block==="statistics"?t.data:null}getOptionValue(t,s){var i,a;const e=(a=(i=this.props.conf)==null?void 0:i.options)==null?void 0:a[t];return e==null?s:typeof e=="object"&&"value"in e?e.value:e}applyTheme(){h.applyThemeStyles(this.props.theme,this.Style.value)}getSource(){var t,s;return((s=(t=this.props.conf)==null?void 0:t.common)==null?void 0:s.source)||"mosaic"}isStatistics(){return["statistics","calculate","statisticsRealtime","calculateRealtime"].includes(this.getSource())}resolveObjectId(t){return b(this,null,function*(){return(yield this.resolveObjectIds(t))[0]||""})}resolveObjectIds(t){return b(this,null,function*(){const{uid:s,conf:e}=this.props,{common:i,data:a}=e,o=t||i||a[0]||{},r=(yield this.expandAliasData([o])).map(n=>String((n==null?void 0:n.object_id)||(n==null?void 0:n.objectid)||s)).filter(Boolean);return r.length>0&&o&&typeof o=="object"&&(o.object_id=r[0],o.objectid=r[0]),r.length>0?r:[String((o==null?void 0:o.object_id)||(o==null?void 0:o.objectid)||"")].filter(Boolean)})}expandAliasData(t){return b(this,null,function*(){var i;const s=Array.isArray(t)?t:[],e=[];for(const a of s){if(!a||typeof a!="object"){e.push(a);continue}const o={common:a,data:[a],options:(i=this.props.conf)==null?void 0:i.options};if(!String(a.object_alias||a.alias||"").trim()){e.push(a);continue}if(!(yield h.loadAliasMappingFromJsonIfNeeded(o))){e.push(a);continue}const r=h.expandAliasItems([a]);r.length>0?e.push(...r):e.push(a)}return e})}handleNull(t,s){return h.handleNullData(t,this.props,s)}getPreviewHelper(){return{preview:()=>R(this.props,this.session.value,t=>this.setHistoryData(t),t=>{let s=t;s.datetime=h.dayjs(s.datetime).format("YYYY-MM-DD HH:mm:ss"),this.setSocketData(s)},this.componentType),unregister:()=>j(this.props,this.session.value)}}getDebouncedInit(){return h.debounce(()=>this.init(),200)}cleanup(){}needsHistoryData(){return!0}setupLifecycle(){const t=this.getDebouncedInit(),s=this.getPreviewHelper();f.onMounted(()=>b(this,null,function*(){var i,a,o,c;const e={common:(i=this.props.conf)==null?void 0:i.common,data:(a=this.props.conf)==null?void 0:a.data,options:(o=this.props.conf)==null?void 0:o.options};if(this.props.mode==="preview"&&(yield h.loadAliasMappingFromJsonIfNeeded(e),Array.isArray((c=this.props.conf)==null?void 0:c.data)&&this.props.conf.data.length&&(this.props.conf.data=yield this.expandAliasData(this.props.conf.data))),yield this.init(),this.props.mode==="preview"){if(this.needsHistoryData())try{const r=yield this.initHistory();this.setHistoryData(r)}catch(r){console.error(`[${this.componentType}] 获取历史数据失败:`,r)}this.session.value&&(this.session.value.unregisterComponent(this.props.conf.id),this.session.value.registerComponent({id:this.props.conf.id,request:null,onUpdate:(r,n)=>{if(r==="realtime"){let l=n;l.datetime=h.dayjs(l.datetime).format("YYYY-MM-DD HH:mm:ss"),this.setSocketData(l)}}})),this.onPreview()}this.setupLinkWatch()})),f.onBeforeUnmount(()=>{this.cleanup(),s.unregister(),this.stopLinkWatch()}),f.watch(()=>this.props.conf,()=>{this.props.mode==="edit"&&t()},{deep:!0}),f.watch(()=>this.props.theme,()=>{this.init()}),f.watch(()=>{var e;return(e=this.Style.value)==null?void 0:e.linkChannel},()=>{this.setupLinkWatch()})}getStyle(){return this.Style}getType(){return this.componentType}dispatchModal(t,s,e){this.props.mode==="preview"&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:t,layerId:s,sheetIndex:e!=null?e:-1}}))}triggerModalByKey(t){var e,i;if(this.props.mode!=="preview")return;const s=(e=this.props.conf)==null?void 0:e.modalBinding;if(s&&s.enabled&&s.mode==="key"){const o=(s.map||{})[t];if(!o||!o.layerId)return;const c=o.action||"toggle",r=(i=s.sheetIndex)!=null?i:-1;this.dispatchModal(c,o.layerId,r)}}}exports.BaseComponent=O;exports.preview=R;exports.unregister=j;
@@ -15,8 +15,8 @@ var h = (a, t, e) => new Promise((n, o) => {
15
15
  s((e = e.apply(a, t)).next());
16
16
  });
17
17
  import { nextTick as p } from "vue";
18
- import { B as c } from "./BaseComponent-CBE102mY.js";
19
- import { E as d, G as g, I as O } from "./index-B2Q_NM05.js";
18
+ import { B as c } from "./BaseComponent-BS4mGjfQ.js";
19
+ import { E as d, G as g, I as O } from "./index-BD1e0vnE.js";
20
20
  import { i as f, d as m } from "./echarts-BVht3HHb.js";
21
21
  class D extends c {
22
22
  constructor(t, e) {
@@ -1 +1 @@
1
- "use strict";var n=(h,t,e)=>new Promise((u,o)=>{var c=i=>{try{s(e.next(i))}catch(r){o(r)}},p=i=>{try{s(e.throw(i))}catch(r){o(r)}},s=i=>i.done?u(i.value):Promise.resolve(i.value).then(c,p);s((e=e.apply(h,t)).next())});const d=require("vue"),g=require("./BaseComponent-BOAc8nMe.cjs"),a=require("./index-BltWf8EI.cjs"),l=require("./echarts-BB8O2KSA.cjs");class O extends g.BaseComponent{constructor(t,e){super(t,e),this.chartObj=null,this.erd=null,this.echartId=`${e}_${Math.random().toString(16).slice(4,12)}`}getChartOption(){return{}}init(){return n(this,null,function*(){return this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),new Promise(t=>{d.nextTick(()=>{this.initChart(),t()})})})}extractStyles(){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",30),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",40),right:this.getOptionValue("right",20),points:this.getOptionValue("points",10)}}ensureData(){var t;(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=this.getDefaultData())}getDefaultData(){return[{name:"参数一",fv:"",color:"#4162ff"}]}initChart(){const t=document.querySelector(`#${this.echartId}`);if(!t)return;this.chartObj||(this.chartObj=l.init(t),this.setupResizeListener(t));const e=this.getChartOption();this.chartObj.setOption(e,!0)}setupResizeListener(t){this.erd=a.elementResizeDetectorMaker({strategy:"scroll"}),this.erd.listenTo(t,()=>{var e;(e=this.chartObj)==null||e.resize()})}hasData(){return a.hasDataSource(this.props.conf)}getTimeAxis(){return a.getxAxisDataTime(this.Style.value.points,this.props.mode,this.hasData())}updateChart(t){var e;(e=this.chartObj)==null||e.setOption(t)}cleanup(){if(this.erd){const t=document.querySelector(`#${this.echartId}`);t&&this.erd.uninstall(t),this.erd=null}this.chartObj&&(this.chartObj.clear(),l.dispose(this.chartObj),this.chartObj=null)}getEchartId(){return this.echartId}getChartInstance(){return this.chartObj}}exports.EChartComponentBase=O;
1
+ "use strict";var n=(h,t,e)=>new Promise((u,o)=>{var c=i=>{try{s(e.next(i))}catch(r){o(r)}},p=i=>{try{s(e.throw(i))}catch(r){o(r)}},s=i=>i.done?u(i.value):Promise.resolve(i.value).then(c,p);s((e=e.apply(h,t)).next())});const d=require("vue"),g=require("./BaseComponent-CsUtBR3X.cjs"),a=require("./index-BAsgo9KD.cjs"),l=require("./echarts-BB8O2KSA.cjs");class O extends g.BaseComponent{constructor(t,e){super(t,e),this.chartObj=null,this.erd=null,this.echartId=`${e}_${Math.random().toString(16).slice(4,12)}`}getChartOption(){return{}}init(){return n(this,null,function*(){return this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),new Promise(t=>{d.nextTick(()=>{this.initChart(),t()})})})}extractStyles(){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",30),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",40),right:this.getOptionValue("right",20),points:this.getOptionValue("points",10)}}ensureData(){var t;(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=this.getDefaultData())}getDefaultData(){return[{name:"参数一",fv:"",color:"#4162ff"}]}initChart(){const t=document.querySelector(`#${this.echartId}`);if(!t)return;this.chartObj||(this.chartObj=l.init(t),this.setupResizeListener(t));const e=this.getChartOption();this.chartObj.setOption(e,!0)}setupResizeListener(t){this.erd=a.elementResizeDetectorMaker({strategy:"scroll"}),this.erd.listenTo(t,()=>{var e;(e=this.chartObj)==null||e.resize()})}hasData(){return a.hasDataSource(this.props.conf)}getTimeAxis(){return a.getxAxisDataTime(this.Style.value.points,this.props.mode,this.hasData())}updateChart(t){var e;(e=this.chartObj)==null||e.setOption(t)}cleanup(){if(this.erd){const t=document.querySelector(`#${this.echartId}`);t&&this.erd.uninstall(t),this.erd=null}this.chartObj&&(this.chartObj.clear(),l.dispose(this.chartObj),this.chartObj=null)}getEchartId(){return this.echartId}getChartInstance(){return this.chartObj}}exports.EChartComponentBase=O;