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.
- package/dist/{BaseComponent-CBE102mY.js → BaseComponent-BS4mGjfQ.js} +219 -158
- package/dist/BaseComponent-CsUtBR3X.cjs +1 -0
- package/dist/{EChartComponentBase-DBduHOiZ.js → EChartComponentBase-B4FAlR0p.js} +2 -2
- package/dist/{EChartComponentBase-VV6rFCJr.cjs → EChartComponentBase-C6CU5uAX.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-CWXBCG4Y.js → EmergencyPlanPanel-BT6lnCFm.js} +1 -1
- package/dist/{EmergencyPlanPanel-9F44w4PC.cjs → EmergencyPlanPanel-Cc976CK7.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CxsZKKmH.js → HistoryPlanDialog-A9brlEzU.js} +1 -1
- package/dist/{HistoryPlanDialog-CuQ-EpCl.cjs → HistoryPlanDialog-BnBHf6Uc.cjs} +1 -1
- package/dist/{MonitoringMap-WR5SXwrg.js → MonitoringMap-Cx9bTaLZ.js} +2 -2
- package/dist/{MonitoringMap-iUGV2w11.cjs → MonitoringMap-DxbC9yXm.cjs} +1 -1
- package/dist/{UniverSheet-DxRWZDHw.cjs → UniverSheet-BNb76G53.cjs} +1 -1
- package/dist/{UniverSheet-BGBrZXSn.js → UniverSheet-BgcyiCzr.js} +2 -2
- package/dist/{accelerationChart-6wz_PFi_.cjs → accelerationChart-3WI5VJ-c.cjs} +1 -1
- package/dist/{accelerationChart-DTw18uYc.js → accelerationChart-BtU2hZwx.js} +2 -2
- package/dist/{actionItem-DXdai7C5.cjs → actionItem-BYlYZLAv.cjs} +1 -1
- package/dist/{actionItem-Cl2TeMuL.js → actionItem-C253Pma6.js} +2 -2
- package/dist/{alarmLevelChart-BcjqAWK7.js → alarmLevelChart-CDoYuplF.js} +2 -2
- package/dist/{alarmLevelChart-CYgVVw6e.cjs → alarmLevelChart-CRyI-Os5.cjs} +1 -1
- package/dist/{alertTable-BWlnKfzM.cjs → alertTable-BVOG9CLj.cjs} +1 -1
- package/dist/{alertTable-N3KFlO6Q.js → alertTable-CQtKmxGd.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-CDQ4-nBI.cjs → aliasObjectSelectorDemo-58M2TZpm.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DI-UnVL3.js → aliasObjectSelectorDemo-BQHXLgme.js} +1 -1
- package/dist/{annualRainfallChart-MD3wl4nT.js → annualRainfallChart-BKWIufEa.js} +2 -2
- package/dist/{annualRainfallChart-aUfrtxyM.cjs → annualRainfallChart-C8OY8gQG.cjs} +1 -1
- package/dist/aqi-CVG3C7wU.js +157 -0
- package/dist/aqi-DtmobP5f.cjs +3 -0
- package/dist/{aqiIndass-we8QDnKf.cjs → aqiIndass-CDorlYSv.cjs} +1 -1
- package/dist/{aqiIndass-CLLlY9jN.js → aqiIndass-DYprS8tu.js} +2 -2
- package/dist/{areaDeformCurve-BnKzO-kn.cjs → areaDeformCurve-BoZfX0i_.cjs} +1 -1
- package/dist/{areaDeformCurve-CatnNKgv.js → areaDeformCurve-DJCI56Rd.js} +2 -2
- package/dist/arrayCard-CDhsOSC4.js +130 -0
- package/dist/arrayCard-CMc9xLMo.cjs +1 -0
- package/dist/{audio-Dk_7TCQ3.cjs → audio-Cnb4cg_c.cjs} +1 -1
- package/dist/{audio-2hOHSyat.js → audio-DNBx6S6H.js} +2 -2
- package/dist/bar-CXSg3vjV.cjs +2 -0
- package/dist/bar-C_whiD4-.js +244 -0
- package/dist/{bmp-B_5PXFsV.js → bmp-BYiVXwq_.js} +2 -2
- package/dist/{bmp-kM2k3Dc2.cjs → bmp-DeGCw2kc.cjs} +1 -1
- package/dist/{box-DkpJEiIv.js → box-CbbF6IxK.js} +2 -2
- package/dist/{box-CovRQ8mN.cjs → box-_vpTVq_0.cjs} +1 -1
- package/dist/{chartConfigPanel-CCP5u9VU.cjs → chartConfigPanel-BJQSpMG3.cjs} +1 -1
- package/dist/{chartConfigPanel-Cl9sslWg.js → chartConfigPanel-CnfS0Cqp.js} +1 -1
- package/dist/circleBar-BxUU5FiB.cjs +5 -0
- package/dist/circleBar-Cwn2dGOC.js +303 -0
- package/dist/{clock-DX1r1Hpm.cjs → clock-CAduzDig.cjs} +1 -1
- package/dist/{clock-DX05BgGW.js → clock-CjUVaRhY.js} +2 -2
- package/dist/{clt-Bx-ZVYpM.js → clt-ByWnRrHm.js} +2 -2
- package/dist/{clt-DX2Pnmhj.cjs → clt-RRF5Ay8Z.cjs} +1 -1
- package/dist/{cmc-DM8uH-7q.cjs → cmc-B0-G_dOl.cjs} +1 -1
- package/dist/{cmc-C-5_9jZu.js → cmc-DMJE1dJk.js} +2 -2
- package/dist/{cmp-D_UYIhMd.cjs → cmp-CDygc8Yl.cjs} +1 -1
- package/dist/{cmp-_XLrowAy.js → cmp-Dejbj4H1.js} +2 -2
- package/dist/{composite-osLMKKni.js → composite-BcncbOKq.js} +2 -2
- package/dist/{composite-erzJfYrh.cjs → composite-CTrqVskl.cjs} +1 -1
- package/dist/{conclusionCard-BHr1SYFk.cjs → conclusionCard-BYkkdhVz.cjs} +1 -1
- package/dist/{conclusionCard-DfxUXsX7.js → conclusionCard-C4VABgkO.js} +2 -2
- package/dist/controlList-C9Mg7qi5.cjs +1 -0
- package/dist/{controlList-D3aJFqf1.js → controlList-N1wpmaTu.js} +234 -223
- package/dist/{controlRecordList-DkZkfuid.js → controlRecordList-BFbQtAKq.js} +159 -148
- package/dist/controlRecordList-CGTan8HH.cjs +1 -0
- package/dist/crd-h4nZ6o0L.cjs +1 -0
- package/dist/crd-tfLsSDox.js +416 -0
- package/dist/{ctrBtn-bObShJgy.js → ctrBtn-CfXkWG__.js} +3 -3
- package/dist/{ctrBtn-CgA3oPZH.cjs → ctrBtn-DoElJdif.cjs} +1 -1
- package/dist/{ctrSet-BWGAr3vo.cjs → ctrSet-DPmHt6YN.cjs} +1 -1
- package/dist/{ctrSet-DIuS7jtY.js → ctrSet-hxB2oY0x.js} +3 -3
- package/dist/{ctrSwitch-DfwmFS6O.cjs → ctrSwitch-5yt873iz.cjs} +1 -1
- package/dist/{ctrSwitch-CkmerK8w.js → ctrSwitch-Ywx4ieEq.js} +3 -3
- package/dist/{dataManagement-zficiJZs.cjs → dataManagement-DZLC2zyK.cjs} +1 -1
- package/dist/{dataManagement-oV8qgx05.js → dataManagement-Dm7VCIM1.js} +2 -2
- package/dist/{dataReport-BDNyr0rN.cjs → dataReport-BPD3HUR5.cjs} +1 -1
- package/dist/{dataReport-Ddh8d9lr.js → dataReport-DYFyReYk.js} +2 -2
- package/dist/{dataTable-CGt4AHc-.cjs → dataTable-7LHQ_7iH.cjs} +1 -1
- package/dist/{dataTable-BFPih5YJ.js → dataTable-ByePG3D5.js} +1 -1
- package/dist/{datetime-Bm_6_b5H.js → datetime-CZ9asKiJ.js} +2 -2
- package/dist/{datetime-yUBFaJYN.cjs → datetime-wvtdULKe.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-or4Ag7bJ.js → deepClusterSlipSurface-DgMGDPsu.js} +2 -2
- package/dist/{deepClusterSlipSurface-D-2J2tlf.cjs → deepClusterSlipSurface-Lhx-7akL.cjs} +1 -1
- package/dist/{deepDataMatrix-BtUnYhpI.js → deepDataMatrix-BTRn-wSX.js} +2 -2
- package/dist/{deepDataMatrix-CNopQlaY.cjs → deepDataMatrix-CK6QLSHt.cjs} +1 -1
- package/dist/{deepDisplacement3D-qgwso1Mq.cjs → deepDisplacement3D-BMOqD_8r.cjs} +1 -1
- package/dist/{deepDisplacement3D-B5FPL6nv.js → deepDisplacement3D-Btxl6fcm.js} +2 -2
- package/dist/{deepDisplacementChart-CdEDLnJM.cjs → deepDisplacementChart-C_JMdquC.cjs} +1 -1
- package/dist/{deepDisplacementChart-FyzL0g_E.cjs → deepDisplacementChart-CxxJyiYO.cjs} +1 -1
- package/dist/{deepDisplacementChart-CFPIuCcW.js → deepDisplacementChart-DNp7LolW.js} +2 -2
- package/dist/{deepDisplacementChart-Dzpblj36.js → deepDisplacementChart-LjaE9Igy.js} +3 -3
- package/dist/{deepDisplacementView-Bk0T91M1.js → deepDisplacementView-DnzjHm-_.js} +1 -1
- package/dist/{deepDisplacementView-DNdgXCLQ.cjs → deepDisplacementView-NMIfXfgq.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-BoSYnw40.cjs → deepNodeTemperatureChart-BaADI-Zy.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CRw1SbLe.js → deepNodeTemperatureChart-DnN3vBJT.js} +2 -2
- package/dist/{deepTangentAngleChart-BFvyP7ws.js → deepTangentAngleChart-B9q_Rbtw.js} +2 -2
- package/dist/{deepTangentAngleChart-XmYqef6Q.cjs → deepTangentAngleChart-DAQZNQrA.cjs} +1 -1
- package/dist/{deepTemperatureField-DTJdI3uR.js → deepTemperatureField-u3jodItK.js} +3 -3
- package/dist/{deepTemperatureField-j8Iokg8d.cjs → deepTemperatureField-zg9OomhU.cjs} +1 -1
- package/dist/{deepTrendChart-DFXJNzH6.cjs → deepTrendChart-B8ykve40.cjs} +1 -1
- package/dist/{deepTrendChart-YMU3XfRt.js → deepTrendChart-CwWGx_8b.js} +2 -2
- package/dist/{deviceOnlineStatus-CgAkMb4d.cjs → deviceOnlineStatus-B7qo_3zx.cjs} +1 -1
- package/dist/{deviceOnlineStatus-CcXCyEeJ.js → deviceOnlineStatus-DpccPl3r.js} +2 -2
- package/dist/{deviceStatus-DPzc48VO.cjs → deviceStatus-Bt7r5RDr.cjs} +1 -1
- package/dist/{deviceStatus-CwBk37Pj.js → deviceStatus-iAuoOJH_.js} +2 -2
- package/dist/{displacementDataTable-BM0TK2-N.cjs → displacementDataTable-Cw-oFpiD.cjs} +1 -1
- package/dist/{displacementDataTable-TqQ4MQbe.js → displacementDataTable-pQLD5Ecy.js} +2 -2
- package/dist/{displacementTrajectoryChart-DjL3DgtC.js → displacementTrajectoryChart-CKkzU1y5.js} +2 -2
- package/dist/{displacementTrajectoryChart-C1c0b1JH.cjs → displacementTrajectoryChart-DTzQO21s.cjs} +1 -1
- package/dist/{displacementTrendChart-Db5nHF7z.js → displacementTrendChart-C0uyjDQN.js} +2 -2
- package/dist/{displacementTrendChart-Di5IJEx4.cjs → displacementTrendChart-Jtpaf7ED.cjs} +1 -1
- package/dist/{dxf-24W1KVC2.cjs → dxf-CalDehoT.cjs} +1 -1
- package/dist/{dxf-DsJIm7tk.js → dxf-DrC64962.js} +2 -2
- package/dist/dzc-CclcA04Q.cjs +2 -0
- package/dist/dzc-Da6BD-ln.js +229 -0
- package/dist/{emergencyPlan-5D0rmZFA.js → emergencyPlan-BVCPL4Ib.js} +3 -3
- package/dist/{emergencyPlan-w8Gw5d6D.cjs → emergencyPlan-ciiyx43p.cjs} +1 -1
- package/dist/evn-L-C9luel.cjs +1 -0
- package/dist/evn-sZwNBule.js +157 -0
- package/dist/{evolutionChart-5H5JIH5Q.cjs → evolutionChart-3NGa_ZB-.cjs} +1 -1
- package/dist/{evolutionChart-1Gpo35nW.js → evolutionChart-4G6BNb89.js} +3 -3
- package/dist/{fileViewer-BObh8Dlp.js → fileViewer-B9AdTfNp.js} +2 -2
- package/dist/{fileViewer-BLslhVau.cjs → fileViewer-DoEwJFiu.cjs} +1 -1
- package/dist/{filterBar-CFl632Nj.js → filterBar-t7qiMajv.js} +2 -2
- package/dist/{filterBar-63fawvTW.cjs → filterBar-xm6HaMx-.cjs} +1 -1
- package/dist/{fireCombustionCurve-CFWZDY4E.js → fireCombustionCurve-Bl9TFZCa.js} +3 -3
- package/dist/{fireCombustionCurve-BJCdwgLC.cjs → fireCombustionCurve-CxIav8nx.cjs} +1 -1
- package/dist/{fireFilterBar-DESHEtOa.js → fireFilterBar-CfJjkiIB.js} +2 -2
- package/dist/{fireFilterBar-C7fnO5EU.cjs → fireFilterBar-CzbDoNST.cjs} +1 -1
- package/dist/{fireHistoryTable-uA12bZu9.js → fireHistoryTable-Dbg3MFUJ.js} +2 -2
- package/dist/{fireHistoryTable-CbIRBML-.cjs → fireHistoryTable-DdijlwpR.cjs} +1 -1
- package/dist/gag-BqI7REgj.cjs +1 -0
- package/dist/gag-rhfONkWA.js +158 -0
- package/dist/{gasStationList-DAveTFDy.js → gasStationList-CDA1F3ot.js} +314 -303
- package/dist/gasStationList-DbtLT0xb.cjs +1 -0
- package/dist/{geo3dViewer-C1L5zX1-.js → geo3dViewer-Dw83DNPh.js} +3 -3
- package/dist/{geo3dViewer-CyXcrya5.cjs → geo3dViewer-ptpfO6u-.cjs} +1 -1
- package/dist/{glbModel-ewuSQh37.js → glbModel-Bj0RsTVX.js} +2 -2
- package/dist/{glbModel-BDplVjO-.cjs → glbModel-NkJt5p-Z.cjs} +1 -1
- package/dist/{globalObjectSelector-BGLI5rPv.js → globalObjectSelector-57uEcODq.js} +1 -1
- package/dist/{globalObjectSelector-BHjLeccA.cjs → globalObjectSelector-BPqm1gat.cjs} +1 -1
- package/dist/{gnssFilterBar-CeGivZuf.js → gnssFilterBar-BRK9lsT6.js} +2 -2
- package/dist/{gnssFilterBar-By8-gAHC.cjs → gnssFilterBar-Cs-ntGvu.cjs} +1 -1
- package/dist/{gnssHistoryTable-BlWP3gKW.js → gnssHistoryTable-BmnQ4-Kh.js} +2 -2
- package/dist/{gnssHistoryTable-CybpVWmm.cjs → gnssHistoryTable-DSmvWdwG.cjs} +1 -1
- package/dist/{gnssMapView-TYzqVcVC.cjs → gnssMapView-DOccxE9C.cjs} +2 -2
- package/dist/{gnssMapView-CtCUIkKI.js → gnssMapView-DXhgBVE6.js} +4 -4
- package/dist/{gnssSectionProfile-Cxrnb862.cjs → gnssSectionProfile-CEB_FuhR.cjs} +1 -1
- package/dist/{gnssSectionProfile-BxZNViGu.js → gnssSectionProfile-DuiRmgaj.js} +2 -2
- package/dist/{gnssTimeSeriesChart-Cf3BpP3E.cjs → gnssTimeSeriesChart-BDv-ahvC.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-CzYG_8DX.js → gnssTimeSeriesChart-DJ8bQa9l.js} +2 -2
- package/dist/{gnssXYTrajectory-DkmcPxbX.cjs → gnssXYTrajectory-Bw-AY4hP.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BU7_oVNk.js → gnssXYTrajectory-DbAKBmrJ.js} +2 -2
- package/dist/{grd-D8R3lKT8.cjs → grd-B6TEj6Np.cjs} +1 -1
- package/dist/{grd-D47GHvDX.js → grd-ar4vQTwX.js} +2 -2
- package/dist/{grdIndass-yxqXfnfm.cjs → grdIndass-Bk_fWTW_.cjs} +1 -1
- package/dist/{grdIndass-DJSCl5Q4.js → grdIndass-wTRzkkT_.js} +2 -2
- package/dist/{grg-DgfsHoYL.js → grg-DUyRzbBh.js} +2 -2
- package/dist/{grg-5LgDBn1Q.cjs → grg-mcmB7NPb.cjs} +1 -1
- package/dist/gridview-BGZ-rexi.js +357 -0
- package/dist/gridview-VB25VCVY.cjs +1 -0
- package/dist/{groundwaterFilterBar-CejbWrPd.cjs → groundwaterFilterBar-6gepfRCD.cjs} +1 -1
- package/dist/{groundwaterFilterBar-D2jqBAT1.js → groundwaterFilterBar-DItUlEBZ.js} +2 -2
- package/dist/{groundwaterProfileChart-MLfvzRKQ.js → groundwaterProfileChart-BEIFMryw.js} +3 -3
- package/dist/{groundwaterProfileChart-CdxBablt.cjs → groundwaterProfileChart-xC9Gt6TB.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-BEmdFPQz.js → groundwaterTimeCurve-CpHAYkBK.js} +3 -3
- package/dist/{groundwaterTimeCurve-fQbT6r2R.cjs → groundwaterTimeCurve-bdxynSzK.cjs} +1 -1
- package/dist/{groupCard-Cs5r2Zyg.js → groupCard-DF6UJd3s.js} +141 -84
- package/dist/groupCard-Yn-P9ML-.cjs +1 -0
- package/dist/{headerBar-Bp-xIV2U.cjs → headerBar-CQMHxI__.cjs} +1 -1
- package/dist/{headerBar-Bsq6gXQN.js → headerBar-DiZAhbNa.js} +2 -2
- package/dist/{history-jyShRwCx.cjs → history-BETm9lKy.cjs} +1 -1
- package/dist/{history-Cj4ffms6.js → history-BkS2xpka.js} +1 -1
- package/dist/{index-BltWf8EI.cjs → index-BAsgo9KD.cjs} +12 -12
- package/dist/{index-B2Q_NM05.js → index-BD1e0vnE.js} +1944 -1938
- package/dist/{insarDeformChart-DVsoq33D.js → insarDeformChart-BXf7dAZI.js} +2 -2
- package/dist/{insarDeformChart-DinW1aS_.cjs → insarDeformChart-CFYW7MR_.cjs} +1 -1
- package/dist/{insarImageViewer-Ca9jDLHS.cjs → insarImageViewer-37XKr7EV.cjs} +1 -1
- package/dist/{insarImageViewer-BVBrRD9n.js → insarImageViewer-B_UQvKnV.js} +2 -2
- package/dist/{kds-Cs4txV6P.js → kds-49nBqPhH.js} +2 -2
- package/dist/{kds-2zpU5Iig.cjs → kds-DCeZC2xi.cjs} +1 -1
- package/dist/{kpiCard-D92gz6Vm.js → kpiCard-B2tHYRJW.js} +2 -2
- package/dist/{kpiCard-ITYR7OAo.cjs → kpiCard-ByGHbFqb.cjs} +1 -1
- package/dist/{landslideMap-CjNHAIm5.cjs → landslideMap-C6hUfy8d.cjs} +1 -1
- package/dist/{landslideMap-B6jXiWxk.js → landslideMap-CVFYVPo1.js} +3 -3
- package/dist/{landslideWarning-esRmqdnH.cjs → landslideWarning-C5wVyE-D.cjs} +1 -1
- package/dist/{landslideWarning-Dct8PCWr.js → landslideWarning-CqthbZJU.js} +5 -5
- package/dist/{layerTabs-BYWAtHMP.cjs → layerTabs-Cynj8tfc.cjs} +1 -1
- package/dist/{layerTabs-gcJab8Le.js → layerTabs-DyjY2krL.js} +2 -2
- package/dist/{leaflet-src-pQjeVzZf.cjs → leaflet-src-B9rhPVBR.cjs} +1 -1
- package/dist/{leaflet-src-DuYJJfgN.js → leaflet-src-D4X2XVyS.js} +1 -1
- package/dist/{lerc-CKOh38TQ.cjs → lerc-B25snKjr.cjs} +1 -1
- package/dist/{lerc-Dw1P5OKl.js → lerc-CK4yMyID.js} +2 -2
- package/dist/lin-CbIG_BGD.js +290 -0
- package/dist/lin-CdSIgr7P.cjs +2 -0
- package/dist/{linIndass-Ce7qatHk.cjs → linIndass-BdO15NBy.cjs} +1 -1
- package/dist/{linIndass-YjO-XvxT.js → linIndass-BpieBDsv.js} +2 -2
- package/dist/lst-CGuf3TMM.cjs +1 -0
- package/dist/lst-oDBgRP7s.js +180 -0
- package/dist/{manualEntry-B-G2uVj9.js → manualEntry-CoI7CmgN.js} +2 -2
- package/dist/{manualEntry-Cw2T18SV.cjs → manualEntry-d1_6kQDd.cjs} +1 -1
- package/dist/{mapBackground-C3a_v3bJ.js → mapBackground-DaVn0Bp6.js} +3 -3
- package/dist/{mapBackground-CjJmlvtT.cjs → mapBackground-E40OUkIN.cjs} +1 -1
- package/dist/{mappingList-I3iUZajn.js → mappingList-Bc1pU60U.js} +231 -220
- package/dist/mappingList-DBdC75Ea.cjs +1 -0
- package/dist/{markdownViewer-HlIaB0Wj.cjs → markdownViewer-Bb6X3bEo.cjs} +1 -1
- package/dist/{markdownViewer-BIMhqjta.js → markdownViewer-ey5BNXTz.js} +2 -2
- package/dist/{mix-control-modal-BkbcygJy.cjs → mix-control-modal--Ge7MZt8.cjs} +1 -1
- package/dist/{mix-control-modal-6WJ8NaxB.js → mix-control-modal-DpfGZ1mv.js} +1 -1
- package/dist/{mixGrid-BxutKj9m.js → mixGrid-CtougcOA.js} +2 -2
- package/dist/{mixGrid-C8fP3j4E.cjs → mixGrid-D56luw4w.cjs} +1 -1
- package/dist/{mixMap-CHYjWJSS.cjs → mixMap-BrFU4JS6.cjs} +1 -1
- package/dist/{mixMap-BlrVMC3A.js → mixMap-bmB_qN8U.js} +2 -2
- package/dist/{mixModel-CGsJ1Brf.cjs → mixModel-D8GGCCAB.cjs} +1 -1
- package/dist/{mixModel-Dct8AmkM.js → mixModel-DiNABkMA.js} +2 -2
- package/dist/{mixPie-C84qBlMI.cjs → mixPie-BknhTJ4m.cjs} +1 -1
- package/dist/{mixPie-PycUMgjg.js → mixPie-D6Z_rGG_.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-Cps_2RXm.cjs → mjpegCamera-BEcaUBof.cjs} +1 -1
- package/dist/{mjpegCamera-C6envTsP.js → mjpegCamera-C4zdpFY6.js} +2 -2
- package/dist/{monitorAlert-BP-LVEFA.js → monitorAlert-Bg8P6ZqF.js} +2 -2
- package/dist/{monitorAlert-BiCWFwgT.cjs → monitorAlert-DtKcr1F2.cjs} +1 -1
- package/dist/{monitorData-CVKysc6v.cjs → monitorData-DmXbI5VQ.cjs} +1 -1
- package/dist/{monitorData-EW_YUqx4.js → monitorData-raioDZ5w.js} +2 -2
- package/dist/{monitorSpeedChart-D0rJzsMf.cjs → monitorSpeedChart-bmlYpeb5.cjs} +1 -1
- package/dist/{monitorSpeedChart-CbJ2tnAV.js → monitorSpeedChart-iFhRzqu3.js} +1 -1
- package/dist/mxa-B85UXGvC.js +157 -0
- package/dist/mxa-CVn-A0-W.cjs +2 -0
- package/dist/{myValue-CyTRiEdv.cjs → myValue-3VZ290i1.cjs} +1 -1
- package/dist/{myValue-CpaaH_O3.js → myValue-CClfJR4L.js} +2 -2
- package/dist/{myValueList-ZWy1lOBJ.cjs → myValueList-BL5BZYav.cjs} +1 -1
- package/dist/{myValueList-B0AEKRdl.js → myValueList-Bealamew.js} +2 -2
- package/dist/objectList-5jrkPvUY.cjs +1 -0
- package/dist/{objectList-Bb1zsd-0.js → objectList-7q0T7V-p.js} +193 -182
- package/dist/{photo-Ca16Wje6.js → photo-CJTpsbF7.js} +2 -2
- package/dist/{photo-Ckbjg47Q.cjs → photo-D1FfoTcA.cjs} +1 -1
- package/dist/{pie-CIIYWSQ1.js → pie-DfX_zs6_.js} +97 -49
- package/dist/pie-DpE1GZ_H.cjs +2 -0
- package/dist/{pressBtn-BOPMX6vT.js → pressBtn-BoOKDp3V.js} +3 -3
- package/dist/{pressBtn-DmbHObCA.cjs → pressBtn-D0zgezn4.cjs} +1 -1
- package/dist/{processTable-CRpOO9yQ.js → processTable-CyEKPoU7.js} +2 -2
- package/dist/{processTable-CnWAE474.cjs → processTable-aZHWEMm4.cjs} +1 -1
- package/dist/progressBar-C65Srf4j.cjs +1 -0
- package/dist/{progressBar-Ci1NtCSW.js → progressBar-DemzN0u6.js} +90 -64
- package/dist/progressCircle-CZOEnise.cjs +1 -0
- package/dist/{progressCircle-D6EizRgY.js → progressCircle-qyYl8ttC.js} +102 -76
- package/dist/{qrcode-D_dlaehZ.js → qrcode-B0xDtBLl.js} +2 -2
- package/dist/{qrcode-C0h07MDl.cjs → qrcode-CaZVPgg0.cjs} +1 -1
- package/dist/raceBar-BuswZYsQ.js +244 -0
- package/dist/raceBar-U3ZW5f7N.cjs +3 -0
- package/dist/{rad-PGV0yEDK.cjs → rad-BqvLwSXU.cjs} +1 -1
- package/dist/{rad-CrQKoWVR.js → rad-CWBooAZh.js} +34 -26
- package/dist/{radarMapViewer-CD2_RFHv.cjs → radarMapViewer-W-ZW1t8l.cjs} +1 -1
- package/dist/{radarMapViewer-XDO2jlqW.js → radarMapViewer-lQRkYXPi.js} +2 -2
- package/dist/{rainfallFilterBar-CChXi9YU.cjs → rainfallFilterBar-Bc56ZOwd.cjs} +1 -1
- package/dist/{rainfallFilterBar-DZ6J-ASc.js → rainfallFilterBar-DCce-7N-.js} +2 -2
- package/dist/{rainfallTimeCurve-DCh326jl.js → rainfallTimeCurve-BQW06sij.js} +3 -3
- package/dist/{rainfallTimeCurve-CkjfJfgT.cjs → rainfallTimeCurve-CVsxgi9L.cjs} +1 -1
- package/dist/{rangeLin-BuVpf9N7.cjs → rangeLin-BqeeEFKe.cjs} +1 -1
- package/dist/{rangeLin-Rnj_S4DG.js → rangeLin-Dc7tVNUN.js} +2 -2
- package/dist/{realtimeEvolutionMap-yScfHuVY.js → realtimeEvolutionMap-CzbF2bLK.js} +2 -2
- package/dist/{realtimeEvolutionMap-B2cHRjpv.cjs → realtimeEvolutionMap-DuMmdiu8.cjs} +1 -1
- package/dist/{regionBar-D5sEHo1F.cjs → regionBar-BK-Bva1I.cjs} +1 -1
- package/dist/{regionBar-89v8maaa.js → regionBar-Drdf-C0E.js} +2 -2
- package/dist/request-BfanfPEB.js +114 -0
- package/dist/request-mhnNU_Sb.cjs +1 -0
- package/dist/{retainer1-B2amv3pe.js → retainer1-CP1gxFzB.js} +3 -3
- package/dist/{retainer1-C2y2UP0q.cjs → retainer1-kVkJQ6pP.cjs} +1 -1
- package/dist/{retainer2-B9GGaxmc.cjs → retainer2-CY1SmKTI.cjs} +1 -1
- package/dist/{retainer2-CiU2boaX.js → retainer2-IuaZ9_6A.js} +3 -3
- package/dist/{retainerRecordList-HJb5gVmb.js → retainerRecordList-B9xRSw9Q.js} +218 -207
- package/dist/retainerRecordList-DBFazZ6H.cjs +1 -0
- package/dist/{ringTopN-D3pcP6mF.js → ringTopN-DLI9BOZX.js} +2 -2
- package/dist/{ringTopN-CseauP-l.cjs → ringTopN-DlShhdRI.cjs} +1 -1
- package/dist/{riskRegionTable-W5fvSLB7.js → riskRegionTable-D-K9jviy.js} +2 -2
- package/dist/{riskRegionTable-D4LGtenq.cjs → riskRegionTable-DD1yz-2v.cjs} +1 -1
- package/dist/sankey-Bm3eNJKK.cjs +1 -0
- package/dist/{sankey-YJn52fqc.js → sankey-BrekPdDk.js} +87 -71
- package/dist/{scd-d8ZB57af.cjs → scd-COf83Ehh.cjs} +1 -1
- package/dist/{scd-YTvbnUCA.js → scd-GIcjE9vw.js} +2 -2
- package/dist/{sideMenu-DTyv-cwu.cjs → sideMenu-2FOhQweT.cjs} +1 -1
- package/dist/{sideMenu-CIrnwEwr.js → sideMenu-DZxlcUP2.js} +2 -2
- package/dist/{slopeStability-DRxj7-bO.js → slopeStability-DJ7z3Eaa.js} +2 -2
- package/dist/{slopeStability-eDLbXvEa.cjs → slopeStability-z-FjKqOC.cjs} +1 -1
- package/dist/{speedCurve-CwmhULKH.js → speedCurve-CGrEMqfo.js} +2 -2
- package/dist/{speedCurve-U5kQVWpb.cjs → speedCurve-syYxgzNy.cjs} +1 -1
- package/dist/{staticLine-9T10Svy0.js → staticLine-BrGxiBFC.js} +2 -2
- package/dist/{staticLine-BVWtlzia.cjs → staticLine-DQDAZECS.cjs} +1 -1
- package/dist/{stressFilterBar-BwbUlgY7.cjs → stressFilterBar-B6jfmh53.cjs} +1 -1
- package/dist/{stressFilterBar-WaA6B8Nb.js → stressFilterBar-DyeWaaXJ.js} +2 -2
- package/dist/{stressTimeCurve-Cob-vnUV.cjs → stressTimeCurve-Bf9HVkrR.cjs} +1 -1
- package/dist/{stressTimeCurve-BnwhSSH5.js → stressTimeCurve-DtoD1Okt.js} +3 -3
- package/dist/{swiper-BoPHtqBt.cjs → swiper-DayyQudc.cjs} +1 -1
- package/dist/{swiper-C9a5Gd1u.js → swiper-DgT9bNt7.js} +2 -2
- package/dist/{terminalConfigList-Dq1zj1PJ.js → terminalConfigList-9INyQUYL.js} +197 -186
- package/dist/terminalConfigList-XZlp5zBj.cjs +1 -0
- package/dist/terminalList-BqvsJ-wc.cjs +1 -0
- package/dist/{terminalList-Ce5i7jP2.js → terminalList-CWYBB0qm.js} +216 -205
- package/dist/{textbox-B2p_vvB3.cjs → textbox-7nVZAwQU.cjs} +1 -1
- package/dist/{textbox-PyVsGg6H.js → textbox-DBvH8387.js} +2 -2
- package/dist/{timeQueryBar-D9BGrcyl.cjs → timeQueryBar-CIuHBcZD.cjs} +1 -1
- package/dist/{timeQueryBar-BmtguPEk.js → timeQueryBar-D446jPnt.js} +1 -1
- package/dist/{timeSeries-CBariAag.js → timeSeries-CW4cG67k.js} +204 -186
- package/dist/timeSeries-DETgJv1-.cjs +4 -0
- package/dist/{timeSeriesCurve-Z7eeJdry.js → timeSeriesCurve-BlKaotG7.js} +3 -3
- package/dist/{timeSeriesCurve-CbjK5olc.cjs → timeSeriesCurve-CvsvTvNf.cjs} +1 -1
- package/dist/toggleBtn-CLzKTvzo.js +296 -0
- package/dist/toggleBtn-wRNcQ_dp.cjs +1 -0
- package/dist/{trajectoryConfigPanel-C_2Vn9Q7.js → trajectoryConfigPanel-CzZ6rRkQ.js} +1 -1
- package/dist/{trajectoryConfigPanel-ChMeHIYf.cjs → trajectoryConfigPanel-sQDRUbE_.cjs} +1 -1
- package/dist/{trajectoryScatter-BIhSst9m.js → trajectoryScatter-BZytt05E.js} +2 -2
- package/dist/{trajectoryScatter-BsOKnQK2.cjs → trajectoryScatter-D2R-P4YB.cjs} +1 -1
- package/dist/{universalConfigPanel-6sPXkbur.js → universalConfigPanel-DLssDXyP.js} +1 -1
- package/dist/{universalConfigPanel-CYyQPISx.cjs → universalConfigPanel-DqwBQUbO.cjs} +1 -1
- package/dist/{universalTable-DZ13ea-n.cjs → universalTable-BzZCIFhC.cjs} +1 -1
- package/dist/{universalTable-DxxsxBUY.js → universalTable-C5-mMMv9.js} +2 -2
- package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
- package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
- package/dist/{video-Bz9vT6Rd.cjs → video-C7dp6Whl.cjs} +1 -1
- package/dist/{video-BXI26Fzj.js → video-uDiXmPjK.js} +2 -2
- package/dist/{videoMonitor-l3kwzFy_.js → videoMonitor-DilML12s.js} +2 -2
- package/dist/{videoMonitor-C5jGxRZQ.cjs → videoMonitor-Uib5l73b.cjs} +1 -1
- package/dist/vlu-BmuZhfC4.cjs +1 -0
- package/dist/vlu-CfLWZGLR.js +141 -0
- package/dist/{warningOverview-Cudhyiuz.js → warningOverview-CXT0QZa3.js} +3 -3
- package/dist/{warningOverview-DBLoWu7w.cjs → warningOverview-D7TVLRPN.cjs} +1 -1
- package/dist/{weather-C5wgSsqp.cjs → weather-CZuNlx19.cjs} +1 -1
- package/dist/{weather-i1Owl8Gi.js → weather-Dl1zagzB.js} +2 -2
- package/dist/{windLin-Dd9qx2WX.cjs → windLin-DyQLy_Hl.cjs} +1 -1
- package/dist/{windLin-BM8j0_35.js → windLin-zGzQr6MU.js} +2 -2
- package/package.json +1 -1
- package/dist/BaseComponent-BOAc8nMe.cjs +0 -1
- package/dist/aqi-B1GY5HGh.js +0 -162
- package/dist/aqi-DMoNda3S.cjs +0 -3
- package/dist/arrayCard-BhiPI19c.js +0 -109
- package/dist/arrayCard-DEdiy0eO.cjs +0 -1
- package/dist/bar-BL43mDWB.cjs +0 -2
- package/dist/bar-r203P0pY.js +0 -255
- package/dist/circleBar-BWamsrA5.cjs +0 -4
- package/dist/circleBar-DZzkqK-E.js +0 -195
- package/dist/controlList-BCzVvpS3.cjs +0 -1
- package/dist/controlRecordList-CrZIvX6s.cjs +0 -1
- package/dist/crd-D-ppGOs_.cjs +0 -1
- package/dist/crd-DSk7p_2v.js +0 -276
- package/dist/dzc-CM0WDkw0.js +0 -166
- package/dist/dzc-I9b5-WHO.cjs +0 -2
- package/dist/evn-CYEoEht5.js +0 -139
- package/dist/evn-Gqni9ys-.cjs +0 -1
- package/dist/gag-CKJ9JKhL.js +0 -125
- package/dist/gag-NzBDXhJE.cjs +0 -1
- package/dist/gasStationList-BW4vOTn7.cjs +0 -1
- package/dist/gridview-agTiWpx1.js +0 -199
- package/dist/gridview-cekDx9U0.cjs +0 -1
- package/dist/groupCard-qbSs1QuX.cjs +0 -1
- package/dist/lin-1im2hV5a.cjs +0 -2
- package/dist/lin-CvGwFCqc.js +0 -234
- package/dist/lst-DO6rbP99.cjs +0 -1
- package/dist/lst-DRuhqKNA.js +0 -147
- package/dist/mappingList-cO72rs6t.cjs +0 -1
- package/dist/mxa-DfC5Ox-x.cjs +0 -2
- package/dist/mxa-H7K6D1Sv.js +0 -160
- package/dist/objectList-GFtvXhwb.cjs +0 -1
- package/dist/pie-6ZptRxXt.cjs +0 -2
- package/dist/progressBar-BVRCOXtm.cjs +0 -1
- package/dist/progressCircle-Cf7rczK8.cjs +0 -1
- package/dist/raceBar-BJP8Jscv.cjs +0 -4
- package/dist/raceBar-sQSUrrLw.js +0 -354
- package/dist/request-2ktQfxDW.cjs +0 -1
- package/dist/request-iwIUv3lN.js +0 -141
- package/dist/retainerRecordList-CzrBlKgr.cjs +0 -1
- package/dist/sankey-DmHqRaBC.cjs +0 -1
- package/dist/terminalConfigList-CMy7gasO.cjs +0 -1
- package/dist/terminalList-DGMUKmv-.cjs +0 -1
- package/dist/timeSeries-DMWsCY1P.cjs +0 -4
- package/dist/toggleBtn-CTt08whu.cjs +0 -1
- package/dist/toggleBtn-Dxbiab6g.js +0 -248
- package/dist/vlu-DNRJ0Dnl.cjs +0 -1
- package/dist/vlu-GFcvheGB.js +0 -118
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var s of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
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
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
16
|
+
c(s.next(r));
|
|
17
|
+
} catch (a) {
|
|
18
|
+
i(a);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, o = (r) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
22
|
+
c(s.throw(r));
|
|
23
|
+
} catch (a) {
|
|
24
|
+
i(a);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
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
|
|
30
|
-
import { A as
|
|
31
|
-
const
|
|
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
|
|
34
|
-
s(
|
|
35
|
-
} catch (
|
|
36
|
-
console.error("获取历史数据时出错:",
|
|
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:
|
|
39
|
+
const { formatRequest: n } = yield import("./request-BfanfPEB.js"), o = n(u.conf, u.uid, i);
|
|
40
40
|
t.registerComponent({
|
|
41
|
-
id:
|
|
42
|
-
request:
|
|
43
|
-
onUpdate: (
|
|
44
|
-
|
|
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
|
-
}),
|
|
50
|
-
t && t.unregisterComponent(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
148
|
-
const { conf: s
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
|
165
|
-
const { data: t } = this.props.conf, s =
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
|
246
|
+
class J extends N {
|
|
173
247
|
constructor(t, s) {
|
|
174
|
-
super(t), this.linkWatchStop = null, this.componentType = s, this.session =
|
|
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
|
|
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
|
|
226
|
-
var
|
|
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
|
|
285
|
+
const o = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
|
|
230
286
|
(yield Promise.all(
|
|
231
|
-
i.map((
|
|
287
|
+
i.map((a) => d(this, null, function* () {
|
|
232
288
|
return {
|
|
233
|
-
item:
|
|
234
|
-
objectIds: yield this.resolveObjectIds(
|
|
289
|
+
item: a,
|
|
290
|
+
objectIds: yield this.resolveObjectIds(a)
|
|
235
291
|
};
|
|
236
292
|
}))
|
|
237
|
-
)).forEach(({ item:
|
|
238
|
-
|
|
293
|
+
)).forEach(({ item: a, objectIds: l }) => {
|
|
294
|
+
l.length > 1 && c.set(
|
|
239
295
|
String(
|
|
240
|
-
(t == null ? void 0 : t.object_alias) || (
|
|
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
|
-
|
|
243
|
-
),
|
|
244
|
-
!
|
|
298
|
+
l
|
|
299
|
+
), l.forEach((p) => {
|
|
300
|
+
!p || o.has(p) || (o.add(p), this.subscribeBySource(e, p, a.uid));
|
|
245
301
|
});
|
|
246
|
-
})
|
|
247
|
-
`[${this.componentType}] 通配符匹配结果:`,
|
|
248
|
-
Array.from(o.entries())
|
|
249
|
-
), console.log(
|
|
250
|
-
`[${this.componentType}] 多对象模式:已订阅 ${n.size} 个对象`
|
|
251
|
-
);
|
|
302
|
+
});
|
|
252
303
|
} else {
|
|
253
|
-
const
|
|
254
|
-
this.subscribeBySource(e,
|
|
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 =
|
|
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
|
|
359
|
-
i && Object.assign(
|
|
360
|
-
const
|
|
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:
|
|
414
|
+
event: n
|
|
364
415
|
} : {
|
|
365
416
|
action: "sub_agent_event",
|
|
366
|
-
event:
|
|
367
|
-
},
|
|
368
|
-
this.session.value.componentRequests && (this.session.value.componentRequests.has(
|
|
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:
|
|
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,
|
|
502
|
-
const e = (
|
|
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
|
-
|
|
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
|
|
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
|
|
547
|
-
const {
|
|
548
|
-
return
|
|
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
|
|
606
|
+
return d(this, null, function* () {
|
|
556
607
|
var i;
|
|
557
608
|
const s = Array.isArray(t) ? t : [], e = [];
|
|
558
|
-
for (const
|
|
559
|
-
if (!
|
|
560
|
-
e.push(
|
|
609
|
+
for (const n of s) {
|
|
610
|
+
if (!n || typeof n != "object") {
|
|
611
|
+
e.push(n);
|
|
561
612
|
continue;
|
|
562
613
|
}
|
|
563
|
-
const
|
|
564
|
-
common:
|
|
565
|
-
data: [
|
|
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(
|
|
569
|
-
e.push(
|
|
619
|
+
if (!String(n.object_alias || n.alias || "").trim()) {
|
|
620
|
+
e.push(n);
|
|
570
621
|
continue;
|
|
571
622
|
}
|
|
572
|
-
if (!(yield
|
|
573
|
-
e.push(
|
|
623
|
+
if (!(yield D(o))) {
|
|
624
|
+
e.push(n);
|
|
574
625
|
continue;
|
|
575
626
|
}
|
|
576
|
-
const
|
|
577
|
-
|
|
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
|
|
637
|
+
return E(t, this.props, s);
|
|
587
638
|
}
|
|
588
639
|
/**
|
|
589
640
|
* 获取预览助手对象
|
|
590
641
|
*/
|
|
591
642
|
getPreviewHelper() {
|
|
592
643
|
return {
|
|
593
|
-
preview: () =>
|
|
644
|
+
preview: () => K(
|
|
594
645
|
this.props,
|
|
595
646
|
this.session.value,
|
|
596
647
|
(t) => this.setHistoryData(t),
|
|
597
|
-
(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: () =>
|
|
656
|
+
unregister: () => q(this.props, this.session.value)
|
|
601
657
|
};
|
|
602
658
|
}
|
|
603
659
|
/**
|
|
604
660
|
* 获取防抖的初始化方法
|
|
605
661
|
*/
|
|
606
662
|
getDebouncedInit() {
|
|
607
|
-
return
|
|
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
|
-
|
|
628
|
-
var i,
|
|
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: (
|
|
632
|
-
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
|
|
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
|
|
640
|
-
this.setHistoryData(
|
|
641
|
-
} catch (
|
|
642
|
-
console.error(`[${this.componentType}] 获取历史数据失败:`,
|
|
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: (
|
|
648
|
-
|
|
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
|
-
})),
|
|
714
|
+
})), W(() => {
|
|
654
715
|
this.cleanup(), s.unregister(), this.stopLinkWatch();
|
|
655
|
-
}),
|
|
716
|
+
}), m(
|
|
656
717
|
() => this.props.conf,
|
|
657
718
|
() => {
|
|
658
719
|
this.props.mode === "edit" && t();
|
|
659
720
|
},
|
|
660
721
|
{ deep: !0 }
|
|
661
|
-
),
|
|
722
|
+
), m(
|
|
662
723
|
() => this.props.theme,
|
|
663
724
|
() => {
|
|
664
725
|
this.init();
|
|
665
726
|
}
|
|
666
|
-
),
|
|
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
|
|
717
|
-
if (!
|
|
718
|
-
const
|
|
719
|
-
this.dispatchModal(
|
|
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
|
-
|
|
725
|
-
|
|
726
|
-
|
|
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-
|
|
19
|
-
import { E as d, G as g, I as O } from "./index-
|
|
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-
|
|
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;
|