mixdashboards 1.0.63 → 1.0.65
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-Bj7jDYan.cjs +1 -0
- package/dist/{BaseComponent-DcLE2sbI.js → BaseComponent-CJUfAya1.js} +219 -158
- package/dist/{EChartComponentBase-NgQZ56Ij.js → EChartComponentBase-BAyczHNc.js} +2 -2
- package/dist/{EChartComponentBase-C6THhw9L.cjs → EChartComponentBase-Cwa2RHtb.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-PIlP3E3F.js → EmergencyPlanPanel-CZ__YzWa.js} +1 -1
- package/dist/{EmergencyPlanPanel-EKGv7dGz.cjs → EmergencyPlanPanel-DuSEgJ34.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CFPQoYA9.cjs → HistoryPlanDialog-BbRU1fES.cjs} +1 -1
- package/dist/{HistoryPlanDialog-BXgl8N-4.js → HistoryPlanDialog-CkeZ6ko4.js} +1 -1
- package/dist/{MonitoringMap-B2MiP9rm.js → MonitoringMap-CcF6htE-.js} +2 -2
- package/dist/{MonitoringMap-kTVPMNso.cjs → MonitoringMap-CnmaTuXp.cjs} +1 -1
- package/dist/{UniverSheet-prEtABNU.cjs → UniverSheet-BQnvHu2D.cjs} +1 -1
- package/dist/{UniverSheet-DPb6xnhi.js → UniverSheet-DD64DP3k.js} +2 -2
- package/dist/{accelerationChart-DQ_QHxYL.cjs → accelerationChart-DL48A-Da.cjs} +1 -1
- package/dist/{accelerationChart-Buhka7Qu.js → accelerationChart-De7KGZKj.js} +2 -2
- package/dist/{actionItem-Bz1GT8xf.js → actionItem-C8hGyrJu.js} +2 -2
- package/dist/{actionItem-D4LDZBvV.cjs → actionItem-CfB8CW8B.cjs} +1 -1
- package/dist/alarmLevelChart-C2PefuuZ.cjs +2 -0
- package/dist/alarmLevelChart-DY_6JlOy.js +197 -0
- package/dist/{alertTable-DKKHgjKp.cjs → alertTable-CPe7zFXX.cjs} +1 -1
- package/dist/{alertTable-2cj4O_Jo.js → alertTable-CnzfCDUF.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-D0wtrfzR.cjs → aliasObjectSelectorDemo-CIyR7Va0.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-CwaMtQ6R.js → aliasObjectSelectorDemo-K_tTBHpy.js} +1 -1
- package/dist/annualRainfallChart-BOFcLous.cjs +1 -0
- package/dist/annualRainfallChart-CXEjn-f7.js +235 -0
- package/dist/aqi-G6IiggM0.js +157 -0
- package/dist/aqi-k91ZiFhs.cjs +3 -0
- package/dist/{aqiIndass-C_51YpDd.js → aqiIndass-D_eBCfWv.js} +2 -2
- package/dist/{aqiIndass-BXJOzN0h.cjs → aqiIndass-Z_hKy1jt.cjs} +1 -1
- package/dist/areaDeformCurve-DJmH5-Fy.js +363 -0
- package/dist/areaDeformCurve-DcyPl5fu.cjs +1 -0
- package/dist/arrayCard-C89VdIAx.cjs +1 -0
- package/dist/arrayCard-r6AK3RO3.js +130 -0
- package/dist/{audio-BlMRQRU6.cjs → audio-BPhoozuC.cjs} +1 -1
- package/dist/{audio-PjRSw9re.js → audio-C7dUYcfF.js} +2 -2
- package/dist/bar-Cn4OPmjT.js +244 -0
- package/dist/bar-JwPVLERN.cjs +2 -0
- package/dist/{bmp-CGwM4Wud.cjs → bmp-Dac0-SLi.cjs} +1 -1
- package/dist/{bmp-D_7SmR1i.js → bmp-DqWc2yhK.js} +2 -2
- package/dist/{box-D0W1YRwX.js → box-B9EUsUdP.js} +2 -2
- package/dist/{box-Clls8YPN.cjs → box-c4VzNg5V.cjs} +1 -1
- package/dist/{chartConfigPanel-Y4wo82sw.js → chartConfigPanel-BOQCikQs.js} +1 -1
- package/dist/{chartConfigPanel-CTmB40aq.cjs → chartConfigPanel-gLFAxGpG.cjs} +1 -1
- package/dist/circleBar-D453xxY2.cjs +5 -0
- package/dist/circleBar-DggnEeym.js +303 -0
- package/dist/{clock-kJcueyR5.cjs → clock-CLxL0DLw.cjs} +1 -1
- package/dist/{clock-Pcx_raH-.js → clock-X_v5B15u.js} +2 -2
- package/dist/{clt-D_2FWoAe.cjs → clt-B-KU0lKS.cjs} +1 -1
- package/dist/{clt-3OmhNzgG.js → clt-CGPayLZR.js} +2 -2
- package/dist/{cmc-Ww1Dpf7e.cjs → cmc-7kj238nf.cjs} +1 -1
- package/dist/{cmc-DOrV3K4Q.js → cmc-E0WHsihT.js} +2 -2
- package/dist/{cmp-LJcAPWKK.cjs → cmp-BVThavqa.cjs} +1 -1
- package/dist/{cmp-D8C5IWm8.js → cmp-DyRO_o7v.js} +2 -2
- package/dist/{composite-BHK9T48K.cjs → composite-B8lUywfd.cjs} +1 -1
- package/dist/{composite-BT-kYMo6.js → composite-BQgHCHie.js} +2 -2
- package/dist/{conclusionCard-zQGtvD15.js → conclusionCard-HSo7ujIU.js} +2 -2
- package/dist/{conclusionCard-CUWxgQov.cjs → conclusionCard-lTwYc-oV.cjs} +1 -1
- package/dist/{controlList-orw459Vv.js → controlList-BvBKQuir.js} +234 -223
- package/dist/controlList-DJvn_kkD.cjs +1 -0
- package/dist/controlRecordList-C7OnqEmw.cjs +1 -0
- package/dist/{controlRecordList-DAX6JiZ6.js → controlRecordList-DsXmI99A.js} +159 -148
- package/dist/crd-CHQba4nJ.cjs +1 -0
- package/dist/crd-CwJipkc2.js +416 -0
- package/dist/{ctrBtn-mPsurfjP.cjs → ctrBtn-DycU63cr.cjs} +1 -1
- package/dist/{ctrBtn-DOqzdEBT.js → ctrBtn-_hZSc3VI.js} +3 -3
- package/dist/{ctrSet-zo64IblC.js → ctrSet-C65anRjr.js} +3 -3
- package/dist/{ctrSet-CKv53nxW.cjs → ctrSet-DNdxvj2w.cjs} +1 -1
- package/dist/{ctrSwitch-DWCRIbGG.js → ctrSwitch-BDVBUFHp.js} +3 -3
- package/dist/{ctrSwitch-Mh16R6jC.cjs → ctrSwitch-CYxGXPHu.cjs} +1 -1
- package/dist/{dataManagement-xHRriwHV.cjs → dataManagement-CI3_r906.cjs} +1 -1
- package/dist/{dataManagement-HglwGXJK.js → dataManagement-OLejKR73.js} +2 -2
- package/dist/{dataReport-C9UMRqbW.cjs → dataReport-BIqGBhe8.cjs} +1 -1
- package/dist/{dataReport-DEODEf3O.js → dataReport-D05yrsJW.js} +2 -2
- package/dist/{dataTable-FGmaeAwO.cjs → dataTable-PTF6LThf.cjs} +1 -1
- package/dist/{dataTable-BfFXx6Ye.js → dataTable-aVyYnvqk.js} +1 -1
- package/dist/{datetime-DhF9NGft.js → datetime-BhD1LCZj.js} +2 -2
- package/dist/{datetime-DJIWy74i.cjs → datetime-DAxKoz5j.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-BMScKylQ.js → deepClusterSlipSurface-ZXuz2_86.js} +2 -2
- package/dist/{deepClusterSlipSurface-CeQJktfJ.cjs → deepClusterSlipSurface-h-UrfyKh.cjs} +1 -1
- package/dist/{deepDataMatrix-Dp91bQcD.js → deepDataMatrix--xetER3s.js} +2 -2
- package/dist/{deepDataMatrix-Dv7fdm3d.cjs → deepDataMatrix-B3T4bJ3W.cjs} +1 -1
- package/dist/{deepDisplacement3D-D778U9Y0.cjs → deepDisplacement3D-ClV9QRqm.cjs} +1 -1
- package/dist/{deepDisplacement3D-CF-phLDq.js → deepDisplacement3D-WH1QxZsW.js} +2 -2
- package/dist/{deepDisplacementChart-DnSGtR5h.cjs → deepDisplacementChart-67ASyYfS.cjs} +1 -1
- package/dist/{deepDisplacementChart-SsqdLCTS.js → deepDisplacementChart-BSmaAe1Y.js} +2 -2
- package/dist/deepDisplacementChart-BxEErQdm.js +633 -0
- package/dist/deepDisplacementChart-DMephtdI.cjs +6 -0
- package/dist/{deepDisplacementView-CBF-3w3E.js → deepDisplacementView-B9bVo5bK.js} +1 -1
- package/dist/{deepDisplacementView-BbFp4iC5.cjs → deepDisplacementView-D5tGwNgG.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CQxvhXAI.js → deepNodeTemperatureChart-BGwFUbOp.js} +2 -2
- package/dist/{deepNodeTemperatureChart-Bh3_3zxT.cjs → deepNodeTemperatureChart-CcT0zMkX.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DX7oXxbR.cjs → deepTangentAngleChart--793FCcg.cjs} +1 -1
- package/dist/{deepTangentAngleChart-CbGS5s26.js → deepTangentAngleChart-uLbQX7jr.js} +2 -2
- package/dist/{deepTemperatureField-BO4kpNC6.js → deepTemperatureField-eQdebDj1.js} +3 -3
- package/dist/{deepTemperatureField-BEqF-RzB.cjs → deepTemperatureField-xP-1cNLN.cjs} +1 -1
- package/dist/{deepTrendChart-MohNO24Y.js → deepTrendChart-BE0W5vX8.js} +2 -2
- package/dist/{deepTrendChart-D379WO5V.cjs → deepTrendChart-DtJ-q2Lg.cjs} +1 -1
- package/dist/deviceOnlineStatus-BkF0x__a.cjs +2 -0
- package/dist/deviceOnlineStatus-Dce23wq_.js +191 -0
- package/dist/{deviceStatus-B3wbDSd8.js → deviceStatus-BmLk0-YN.js} +2 -2
- package/dist/{deviceStatus-C9-UGEBj.cjs → deviceStatus-C6-4RoG-.cjs} +1 -1
- package/dist/{displacementDataTable-D_NLocHt.cjs → displacementDataTable-DIoriYY7.cjs} +1 -1
- package/dist/{displacementDataTable-BdJxP1xQ.js → displacementDataTable-DsWZNgFe.js} +2 -2
- package/dist/{displacementTrajectoryChart-Dd2ZCPQX.js → displacementTrajectoryChart-Bf50t2Pd.js} +2 -2
- package/dist/{displacementTrajectoryChart-nPV6d5ED.cjs → displacementTrajectoryChart-FvfOQj5C.cjs} +1 -1
- package/dist/{displacementTrendChart-ise7o8IE.js → displacementTrendChart-PoE5LEAn.js} +2 -2
- package/dist/{displacementTrendChart-4ulvZBV6.cjs → displacementTrendChart-YqYltlnT.cjs} +1 -1
- package/dist/{dxf-AYMRTJF8.cjs → dxf-Bh2_nGSH.cjs} +1 -1
- package/dist/{dxf-CxQtzUjm.js → dxf-wU0VQ-5U.js} +2 -2
- package/dist/dzc-hJVH94yH.js +229 -0
- package/dist/dzc-n-Plgxcs.cjs +2 -0
- package/dist/{emergencyPlan-DDfGiUG_.cjs → emergencyPlan-0YKd1EeS.cjs} +1 -1
- package/dist/{emergencyPlan-BpltrKsX.js → emergencyPlan-CQUKLeTW.js} +3 -3
- package/dist/evn-DMojlwAn.cjs +1 -0
- package/dist/evn-FIdp0sFj.js +157 -0
- package/dist/evolutionChart-8XcivuWM.js +443 -0
- package/dist/evolutionChart-oevmAJ-z.cjs +1 -0
- package/dist/{fileViewer-BFzV1rA6.cjs → fileViewer-BSKhIeH7.cjs} +1 -1
- package/dist/{fileViewer-CnvnQRis.js → fileViewer-Bk7n0msY.js} +2 -2
- package/dist/{filterBar-uCZwIwZ0.js → filterBar-DIQb0qKK.js} +2 -2
- package/dist/{filterBar-t3dEfk4B.cjs → filterBar-Dj5PDd46.cjs} +1 -1
- package/dist/fireCombustionCurve-o8yhxAiz.cjs +1 -0
- package/dist/fireCombustionCurve-zNT4SRHt.js +516 -0
- package/dist/{fireFilterBar-DeSS59yZ.cjs → fireFilterBar-B-LSyz1N.cjs} +1 -1
- package/dist/{fireFilterBar-DRWZP-VG.js → fireFilterBar-Bo-HjxJZ.js} +2 -2
- package/dist/fireHistoryTable-BOaTJOp5.cjs +3 -0
- package/dist/{fireHistoryTable-DwbyK0gC.js → fireHistoryTable-LNiOf9iQ.js} +126 -117
- package/dist/gag-C8436kTC.js +158 -0
- package/dist/gag-D__DSu8M.cjs +1 -0
- package/dist/{gasStationList-DUf3AyXE.js → gasStationList-1fJoRQW6.js} +441 -358
- package/dist/gasStationList-CQhxoVHU.cjs +1 -0
- package/dist/{geo3dViewer-Dy4M9Gz9.cjs → geo3dViewer-B5HnlNhd.cjs} +1 -1
- package/dist/{geo3dViewer-tNJDE7Yj.js → geo3dViewer-CcPabN3H.js} +3 -3
- package/dist/{glbModel-BvVoF9F5.js → glbModel-B7_ZHqNb.js} +2 -2
- package/dist/{glbModel-BL-dJdJc.cjs → glbModel-C0gdOH41.cjs} +1 -1
- package/dist/globalObjectSelector-BQ8zpv04.cjs +1 -0
- package/dist/{globalObjectSelector-Cv866Pq3.js → globalObjectSelector-D4nI5gdR.js} +6 -6
- package/dist/{gnssFilterBar-cBh3fZBP.cjs → gnssFilterBar-DDYfwzGI.cjs} +1 -1
- package/dist/{gnssFilterBar-CHwUXXoA.js → gnssFilterBar-nRoc08XI.js} +2 -2
- package/dist/gnssHistoryTable-C54FWUBp.cjs +3 -0
- package/dist/gnssHistoryTable-vW2eyyew.js +383 -0
- package/dist/{gnssMapView-MaoNgtoD.js → gnssMapView-CN4vj-A8.js} +4 -4
- package/dist/{gnssMapView-7hdb70wd.cjs → gnssMapView-CtH6tpeB.cjs} +2 -2
- package/dist/{gnssSectionProfile-BJ6bLmV8.js → gnssSectionProfile-BZv-quBb.js} +2 -2
- package/dist/{gnssSectionProfile-BAGBOKU7.cjs → gnssSectionProfile-DPQ7wmNp.cjs} +1 -1
- package/dist/gnssTimeSeriesChart-BDq9PS-y.cjs +1 -0
- package/dist/{gnssTimeSeriesChart-Bnc8XPnd.js → gnssTimeSeriesChart-_s58QQhs.js} +173 -164
- package/dist/gnssXYTrajectory-Doan9OFl.js +333 -0
- package/dist/gnssXYTrajectory-VxC3r_vo.cjs +5 -0
- package/dist/{grd-BUasibfq.js → grd-CXUAuw1o.js} +2 -2
- package/dist/{grd-DvdpVWG5.cjs → grd-D_rm-CCK.cjs} +1 -1
- package/dist/grdIndass-CdZRIEZ3.cjs +1 -0
- package/dist/{grdIndass-CSSSzaJ8.js → grdIndass-jpDjT562.js} +25 -25
- package/dist/{grg-D2t_xkX1.js → grg-DFg-WI-P.js} +2 -2
- package/dist/{grg-BT4f88Qv.cjs → grg-DluZ4rB5.cjs} +1 -1
- package/dist/gridview-CajcF9v9.cjs +1 -0
- package/dist/gridview-Cf_cb-PT.js +357 -0
- package/dist/{groundwaterFilterBar-DXntgmrS.js → groundwaterFilterBar-B2Jb-n7x.js} +2 -2
- package/dist/{groundwaterFilterBar-BJkE5UA5.cjs → groundwaterFilterBar-CCpVesV4.cjs} +1 -1
- package/dist/groundwaterProfileChart-DOcNQ78s.cjs +11 -0
- package/dist/groundwaterProfileChart-DXpYXGCx.js +446 -0
- package/dist/groundwaterTimeCurve-Ca1ZoPoF.cjs +1 -0
- package/dist/groundwaterTimeCurve-CrYjQlK4.js +539 -0
- package/dist/groupCard-R52XcQLx.cjs +1 -0
- package/dist/{groupCard-B63vYFDv.js → groupCard-kn5cZCZN.js} +141 -84
- package/dist/{headerBar-EYDbOBm3.cjs → headerBar-BH2q-7f_.cjs} +1 -1
- package/dist/{headerBar-Bov3fMEz.js → headerBar-rlXdc0NA.js} +2 -2
- package/dist/{history-ZtGPGJR2.js → history-BYjRBaaH.js} +1 -1
- package/dist/{history-BXQl8-y1.cjs → history-Fba0cQfR.cjs} +1 -1
- package/dist/{index-BxNHPfre.js → index-C7h1impW.js} +1081 -1073
- package/dist/index-dj-SHelr.cjs +600 -0
- package/dist/{insarDeformChart-Cbq3FodZ.cjs → insarDeformChart-BXGHsKiB.cjs} +1 -1
- package/dist/{insarDeformChart-D5AjdtEX.js → insarDeformChart-D2EhTOXT.js} +2 -2
- package/dist/{insarImageViewer-CQUxxQx1.cjs → insarImageViewer-CGZGlTFv.cjs} +1 -1
- package/dist/{insarImageViewer-C9Moh8nL.js → insarImageViewer-CzBWDvNv.js} +2 -2
- package/dist/{kds-0Yz4kbjq.cjs → kds-CMh4egtg.cjs} +1 -1
- package/dist/{kds-DCTY60un.js → kds-DZqT4oz8.js} +2 -2
- package/dist/{kpiCard-Bg5TAb-e.js → kpiCard-DSCu5JDP.js} +4 -4
- package/dist/{kpiCard-BWu_6mu8.cjs → kpiCard-DeZLGCSw.cjs} +2 -2
- package/dist/{landslideMap-hRe8NlcK.cjs → landslideMap-CEHhqZfP.cjs} +1 -1
- package/dist/{landslideMap-i967ov9Z.js → landslideMap-DK8lYOTR.js} +3 -3
- package/dist/{landslideWarning-DuJnxdO-.cjs → landslideWarning-DIoMVyGR.cjs} +1 -1
- package/dist/{landslideWarning-Cwl-KNWJ.js → landslideWarning-_8hultuw.js} +5 -5
- package/dist/{layerTabs-DDbG8qw5.js → layerTabs-C0V45MNc.js} +2 -2
- package/dist/{layerTabs-v5iJ-1EN.cjs → layerTabs-s2ro_uBO.cjs} +1 -1
- package/dist/{leaflet-src-DopTGhrV.js → leaflet-src-DHDHoWiG.js} +1 -1
- package/dist/{leaflet-src-Dk64Dzlq.cjs → leaflet-src-DfIgzKi2.cjs} +1 -1
- package/dist/{lerc-BNnnrR09.cjs → lerc-CGW7aJ4G.cjs} +1 -1
- package/dist/{lerc-uxWYHYwz.js → lerc-DtarRVlP.js} +2 -2
- package/dist/lin-DL_yzeUT.cjs +2 -0
- package/dist/lin-Da_dF2qE.js +290 -0
- package/dist/{linIndass-DX7YMlH8.js → linIndass-Bicsi1yu.js} +2 -2
- package/dist/{linIndass-O0eH8eul.cjs → linIndass-E2IzcHaI.cjs} +1 -1
- package/dist/lst-7MOeDRiN.js +180 -0
- package/dist/lst-D7nUUAxF.cjs +1 -0
- package/dist/{manualEntry-1Lqpq8TC.js → manualEntry-BL8K875R.js} +2 -2
- package/dist/{manualEntry-BmNYD-pj.cjs → manualEntry-DacLziyX.cjs} +1 -1
- package/dist/{mapBackground-BmjNgJ4f.cjs → mapBackground-DXOUiZk3.cjs} +1 -1
- package/dist/{mapBackground-D3ALqDa6.js → mapBackground-smzEJYSw.js} +3 -3
- package/dist/mappingList-Cv345B-Y.cjs +1 -0
- package/dist/{mappingList-DKtLZk4k.js → mappingList-gsLV3eHn.js} +231 -220
- package/dist/{markdownViewer-B7dWCqKn.cjs → markdownViewer-Bf0f-3ye.cjs} +1 -1
- package/dist/{markdownViewer-DDStby1_.js → markdownViewer-Bor343ez.js} +2 -2
- package/dist/{mix-control-modal-CZ3xbpZ-.cjs → mix-control-modal-Cb8wdb4n.cjs} +1 -1
- package/dist/{mix-control-modal-nROoJW_W.js → mix-control-modal-DIN_nRIz.js} +1 -1
- package/dist/{mixGrid-D0tOmUg0.cjs → mixGrid-BsEoZwlE.cjs} +1 -1
- package/dist/{mixGrid-5cpTyYjf.js → mixGrid-POyIsHkU.js} +2 -2
- package/dist/{mixMap-D5inuE1T.js → mixMap-8UXsY-pC.js} +2 -2
- package/dist/{mixMap-KLgt3STu.cjs → mixMap-BcE4OFUV.cjs} +1 -1
- package/dist/{mixModel-BO-vAiZr.cjs → mixModel-DGRZimC4.cjs} +1 -1
- package/dist/{mixModel-p-bMfIV6.js → mixModel-F7IPKXxg.js} +2 -2
- package/dist/{mixPie-DkWE0GQF.cjs → mixPie-CYzYhUYS.cjs} +1 -1
- package/dist/{mixPie-oVOsZeK7.js → mixPie-fizDORNw.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-WiefW_Md.cjs → mjpegCamera-C-pOx8o_.cjs} +1 -1
- package/dist/{mjpegCamera-AX1DMS0i.js → mjpegCamera-C1W-R8Cp.js} +2 -2
- package/dist/{monitorAlert-D5shl8nv.cjs → monitorAlert-9K4Fs0R6.cjs} +1 -1
- package/dist/{monitorAlert-CQ-AG4Hf.js → monitorAlert-CKkmUpTp.js} +2 -2
- package/dist/{monitorData-BPWfE9cy.cjs → monitorData-5_Etey62.cjs} +1 -1
- package/dist/{monitorData-CM3qRvIX.js → monitorData-B20AQBGi.js} +2 -2
- package/dist/{monitorSpeedChart-CO5miC1F.js → monitorSpeedChart-DDfonZ_D.js} +1 -1
- package/dist/{monitorSpeedChart-kEqphpe0.cjs → monitorSpeedChart-DKPlZbpb.cjs} +1 -1
- package/dist/mxa-CzV-4aUA.cjs +2 -0
- package/dist/mxa-_qz3Gyps.js +157 -0
- package/dist/{myValue-B0Ao4Y9j.js → myValue-CrgWabef.js} +2 -2
- package/dist/{myValue-YSws_XQZ.cjs → myValue-iRIdzgV2.cjs} +1 -1
- package/dist/{myValueList-GdvL1FVO.js → myValueList-BJMedYk6.js} +2 -2
- package/dist/{myValueList-VrCToCJk.cjs → myValueList-CAecBCuM.cjs} +1 -1
- package/dist/objectList-DNzotQVT.cjs +1 -0
- package/dist/{objectList-L1abe30V.js → objectList-pmydrIEJ.js} +193 -182
- package/dist/{photo-BJCVCLkR.cjs → photo-BPa6DKez.cjs} +1 -1
- package/dist/{photo-GmctGYYi.js → photo-CqEPcpSO.js} +2 -2
- package/dist/{pie-Bjx0qSO-.js → pie-C4m9G_5x.js} +97 -49
- package/dist/pie-CYMi8qbh.cjs +2 -0
- package/dist/{pressBtn-B9EeyN6t.cjs → pressBtn-CRN3qrzg.cjs} +1 -1
- package/dist/{pressBtn-DaYvi2eB.js → pressBtn-CljdN6Fn.js} +3 -3
- package/dist/{processTable-D36Qw-4S.cjs → processTable-BhNP8zpP.cjs} +2 -2
- package/dist/{processTable-C_CHRQba.js → processTable-DoBvBhdI.js} +4 -4
- package/dist/{progressBar-D5k8winN.js → progressBar-BsTr00h_.js} +90 -64
- package/dist/progressBar-D7IqFKvP.cjs +1 -0
- package/dist/progressCircle-D8SPTcqd.cjs +1 -0
- package/dist/{progressCircle-CkrS1zXP.js → progressCircle-D9kMGARM.js} +102 -76
- package/dist/{qrcode-CfY_2XM-.cjs → qrcode-BqPh5wv3.cjs} +1 -1
- package/dist/{qrcode-Di33GfB2.js → qrcode-CV194qyb.js} +2 -2
- package/dist/{raceBar-DvvXEX_R.cjs → raceBar-Cuo7tLH4.cjs} +2 -3
- package/dist/{raceBar-Dm3knGnL.js → raceBar-HwC4pOmC.js} +91 -61
- package/dist/{rad-BOEzsfIa.js → rad-CA8NiA1q.js} +34 -26
- package/dist/{rad-DVRG8Sni.cjs → rad-CE3oNUse.cjs} +1 -1
- package/dist/{radarMapViewer-DWnTIBoQ.js → radarMapViewer-B_BtceH2.js} +2 -2
- package/dist/{radarMapViewer-BBTqWNWe.cjs → radarMapViewer-D8p6wDB3.cjs} +1 -1
- package/dist/{rainfallFilterBar-BhTwUoOA.js → rainfallFilterBar-C8BQdW2Q.js} +2 -2
- package/dist/{rainfallFilterBar-YxnY5i-m.cjs → rainfallFilterBar-D0Nu6qPi.cjs} +1 -1
- package/dist/rainfallTimeCurve-Ou1QvoMF.js +509 -0
- package/dist/rainfallTimeCurve-QgYakauI.cjs +1 -0
- package/dist/{rangeLin-DM6eF6_h.cjs → rangeLin-BY2c5Qod.cjs} +1 -1
- package/dist/{rangeLin-D8xsF9ND.js → rangeLin-Cc1EI6Co.js} +2 -2
- package/dist/realtimeEvolutionMap-CkpKBWXx.cjs +1 -0
- package/dist/realtimeEvolutionMap-DgUyeuTK.js +384 -0
- package/dist/{regionBar-BKE0RxaX.cjs → regionBar-C0Rzrb4S.cjs} +2 -2
- package/dist/{regionBar-CTu_NRPN.js → regionBar-ObYvQCIz.js} +4 -4
- package/dist/request-B2FzXhVA.cjs +1 -0
- package/dist/request-CfsIYWlr.js +114 -0
- package/dist/{retainer1-DaeSBfkv.js → retainer1-C9H68IUK.js} +3 -3
- package/dist/{retainer1-Dq5vUQf1.cjs → retainer1-D_fbbjf7.cjs} +1 -1
- package/dist/{retainer2-ZEWljrHE.js → retainer2-CtPdlDLR.js} +3 -3
- package/dist/{retainer2-DTxHN085.cjs → retainer2-Dr7oPQbz.cjs} +1 -1
- package/dist/{retainerRecordList-CqDparXd.js → retainerRecordList-DyLa8kdx.js} +218 -207
- package/dist/retainerRecordList-jw_wlxEU.cjs +1 -0
- package/dist/{ringTopN-DAvGs7dn.js → ringTopN-B2Q3oCEp.js} +2 -2
- package/dist/{ringTopN-BwUKrs3K.cjs → ringTopN-BV9BdQqU.cjs} +1 -1
- package/dist/{riskRegionTable-BZUvcSag.cjs → riskRegionTable-B9hAe8HD.cjs} +1 -1
- package/dist/{riskRegionTable-1097pynj.js → riskRegionTable-C3B-GAcg.js} +2 -2
- package/dist/safeI18n-CXZgGKWp.js +22 -0
- package/dist/safeI18n-DR20q_h1.cjs +1 -0
- package/dist/sankey-BbRrUliA.cjs +1 -0
- package/dist/{sankey-BTMZcZOs.js → sankey-BeWileQv.js} +87 -71
- package/dist/{scd-B6R8oZyS.js → scd-D0bgB4-g.js} +2 -2
- package/dist/{scd-Dc8pH0WX.cjs → scd-D1bDcZer.cjs} +1 -1
- package/dist/{sideMenu-B13lPx0d.cjs → sideMenu-BCD6VL9c.cjs} +1 -1
- package/dist/{sideMenu-fOGaok2x.js → sideMenu-D2rAFQX1.js} +2 -2
- package/dist/{slopeStability-CaQwSLlS.cjs → slopeStability-B3nkChmg.cjs} +1 -1
- package/dist/{slopeStability-CpurJiA3.js → slopeStability-Cgmc00Q7.js} +2 -2
- package/dist/speedCurve-DzUiXtC_.js +507 -0
- package/dist/speedCurve-Oap8XAoh.cjs +1 -0
- package/dist/{staticLine-XjWT_6Kz.js → staticLine-C-roiU1s.js} +2 -2
- package/dist/{staticLine-CsIlTjlF.cjs → staticLine-CKZNGFm-.cjs} +1 -1
- package/dist/{stressFilterBar-CrzY-PB9.js → stressFilterBar-BlkN9C6f.js} +2 -2
- package/dist/{stressFilterBar-BOsaTwuk.cjs → stressFilterBar-CqkDuTjH.cjs} +1 -1
- package/dist/stressTimeCurve-Dewf7HMl.js +525 -0
- package/dist/stressTimeCurve-KrY7oP9m.cjs +1 -0
- package/dist/{swiper-CfgI8Uvs.cjs → swiper-C2JtpnQ7.cjs} +1 -1
- package/dist/{swiper-DrME2NxW.js → swiper-DdpTSfx3.js} +2 -2
- package/dist/{terminalConfigList-CU3ogfEI.js → terminalConfigList-Cn0Yz1a-.js} +197 -186
- package/dist/terminalConfigList-V6qPsWvs.cjs +1 -0
- package/dist/terminalList-B249sEzY.cjs +1 -0
- package/dist/{terminalList-BYFWIpDL.js → terminalList-Bs4rKaB0.js} +216 -205
- package/dist/{textbox-Biss1drQ.js → textbox-CBaoJef_.js} +2 -2
- package/dist/{textbox-32WqXVHk.cjs → textbox-CJ3Ns6yh.cjs} +1 -1
- package/dist/{timeQueryBar-D59RT-zN.js → timeQueryBar-DWHRHgBY.js} +1 -1
- package/dist/{timeQueryBar-fC4bJy9w.cjs → timeQueryBar-DpyoaNfL.cjs} +1 -1
- package/dist/timeSeries-8EDB1MZF.cjs +4 -0
- package/dist/{timeSeries-_faWoLD4.js → timeSeries-CKPBye5t.js} +204 -186
- package/dist/timeSeriesCurve-B1k_XZRC.js +497 -0
- package/dist/timeSeriesCurve-CGaW9sQL.cjs +1 -0
- package/dist/toggleBtn-BMFkjBHq.cjs +1 -0
- package/dist/toggleBtn-DXq8eg1W.js +296 -0
- package/dist/{trajectoryConfigPanel-DGw4L9Zw.js → trajectoryConfigPanel-C-Np1mBV.js} +1 -1
- package/dist/{trajectoryConfigPanel-DtxGb19r.cjs → trajectoryConfigPanel-D2raL0wv.cjs} +1 -1
- package/dist/{trajectoryScatter-CEJVV3wZ.js → trajectoryScatter-BhE8LIq4.js} +2 -2
- package/dist/{trajectoryScatter-22l0QH_o.cjs → trajectoryScatter-CqGgMRlK.cjs} +1 -1
- package/dist/{universalConfigPanel-C8wvvujx.js → universalConfigPanel-BdUrr3FP.js} +1 -1
- package/dist/{universalConfigPanel-xnFUFT3E.cjs → universalConfigPanel-T1sS3ITI.cjs} +1 -1
- package/dist/{universalTable-DPTg4_Ut.cjs → universalTable-DhLBf82s.cjs} +1 -1
- package/dist/{universalTable-C-QyDmgl.js → universalTable-Dolv9oDP.js} +2 -2
- package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
- package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
- package/dist/{video-DDkgUXtQ.js → video-B4O8XLs8.js} +2 -2
- package/dist/{video-CsKJ9b0u.cjs → video-BTwIueqG.cjs} +1 -1
- package/dist/{videoMonitor-eAvPsYso.cjs → videoMonitor-BMPGmed9.cjs} +1 -1
- package/dist/{videoMonitor-COZzuAww.js → videoMonitor-DXVk8euB.js} +2 -2
- package/dist/vlu-UWQTicfY.js +141 -0
- package/dist/vlu-uzGb9Clr.cjs +1 -0
- package/dist/{warningOverview-dEbrZ7Sc.cjs → warningOverview-BwWahte7.cjs} +1 -1
- package/dist/{warningOverview-C8-5XRgt.js → warningOverview-D367HWMe.js} +3 -3
- package/dist/{weather-Cw6iVIPh.cjs → weather-7jsfVi-J.cjs} +1 -1
- package/dist/{weather-CtI1QzvY.js → weather-Bi5jIBhO.js} +2 -2
- package/dist/{windLin-D1WhilDh.cjs → windLin-BNx4ytun.cjs} +1 -1
- package/dist/{windLin-BNmU6NMq.js → windLin-DfDN74qa.js} +2 -2
- package/package.json +1 -1
- package/dist/BaseComponent-CejNXSU0.cjs +0 -1
- package/dist/alarmLevelChart-C1V_jZbX.js +0 -184
- package/dist/alarmLevelChart-Dtx57ukz.cjs +0 -2
- package/dist/annualRainfallChart-B4oKTMyo.cjs +0 -1
- package/dist/annualRainfallChart-CCz7UpuX.js +0 -185
- package/dist/aqi-BEbBS0hD.cjs +0 -3
- package/dist/aqi-_vPnEmHN.js +0 -162
- package/dist/areaDeformCurve-DjcuXCTF.js +0 -313
- package/dist/areaDeformCurve-PgDYayNZ.cjs +0 -1
- package/dist/arrayCard-DoZYhEFi.cjs +0 -1
- package/dist/arrayCard-DuO4U800.js +0 -109
- package/dist/bar-CLi3Dklt.js +0 -255
- package/dist/bar-CSKn7j_g.cjs +0 -2
- package/dist/circleBar-DVQtZFm3.cjs +0 -4
- package/dist/circleBar-O9noQNo0.js +0 -195
- package/dist/controlList-n-Hn5RUq.cjs +0 -1
- package/dist/controlRecordList-Dn6SgI8Z.cjs +0 -1
- package/dist/crd-8H1GhZ_b.cjs +0 -1
- package/dist/crd-ghnW9mbi.js +0 -276
- package/dist/deepDisplacementChart-CykOkXJS.cjs +0 -6
- package/dist/deepDisplacementChart-DfuIGKQg.js +0 -603
- package/dist/deviceOnlineStatus-BAOjOh7e.cjs +0 -2
- package/dist/deviceOnlineStatus-BAemQU5r.js +0 -178
- package/dist/dzc-BGVIHuxK.cjs +0 -2
- package/dist/dzc-DmBlKu0g.js +0 -166
- package/dist/evn-B_2LaMX7.cjs +0 -1
- package/dist/evn-DrF2DDFr.js +0 -139
- package/dist/evolutionChart-B__LMQDF.cjs +0 -1
- package/dist/evolutionChart-c8ZdQwXN.js +0 -435
- package/dist/fireCombustionCurve-CwVdRJad.js +0 -500
- package/dist/fireCombustionCurve-hGM28HBr.cjs +0 -1
- package/dist/fireHistoryTable-BDpMCgIs.cjs +0 -3
- package/dist/gag-C1dIxLC-.js +0 -125
- package/dist/gag-D7r52T0U.cjs +0 -1
- package/dist/gasStationList-CXnWNIqC.cjs +0 -1
- package/dist/globalObjectSelector-g5JpNNHb.cjs +0 -1
- package/dist/gnssHistoryTable-Bkhv1l96.cjs +0 -3
- package/dist/gnssHistoryTable-C91N8p_1.js +0 -374
- package/dist/gnssTimeSeriesChart-DVZQYDkV.cjs +0 -1
- package/dist/gnssXYTrajectory-BCaHc2uO.cjs +0 -5
- package/dist/gnssXYTrajectory-BzI1D5fv.js +0 -303
- package/dist/grdIndass-BrNn3nWU.cjs +0 -1
- package/dist/gridview-CKOcPMcJ.js +0 -199
- package/dist/gridview-CaKGfQxW.cjs +0 -1
- package/dist/groundwaterProfileChart-BcbO8EZo.cjs +0 -11
- package/dist/groundwaterProfileChart-CIje6vwt.js +0 -430
- package/dist/groundwaterTimeCurve-B-74SiiK.js +0 -513
- package/dist/groundwaterTimeCurve-DHjoocrL.cjs +0 -1
- package/dist/groupCard-BBdNI91R.cjs +0 -1
- package/dist/index-BnjhESBy.cjs +0 -600
- package/dist/lin-BvnveFfX.cjs +0 -2
- package/dist/lin-D7Ar7Il1.js +0 -234
- package/dist/lst-E2l6m5ld.cjs +0 -1
- package/dist/lst-UdN1hFX2.js +0 -147
- package/dist/mappingList-BcQCNhLz.cjs +0 -1
- package/dist/mxa-C55vjyLE.cjs +0 -2
- package/dist/mxa-Div0WoX1.js +0 -160
- package/dist/objectList-BT-l7aQ2.cjs +0 -1
- package/dist/pie-DIvsLE5N.cjs +0 -2
- package/dist/progressBar-DWdYwraz.cjs +0 -1
- package/dist/progressCircle-CP-hMw5C.cjs +0 -1
- package/dist/rainfallTimeCurve-BlMxcYk1.cjs +0 -1
- package/dist/rainfallTimeCurve-CBfplffG.js +0 -483
- package/dist/realtimeEvolutionMap-BhxQoTSh.js +0 -325
- package/dist/realtimeEvolutionMap-INCxZX2W.cjs +0 -1
- package/dist/request-qTFbYRZB.js +0 -141
- package/dist/request-wGbkXKRB.cjs +0 -1
- package/dist/retainerRecordList-BD2o3ulr.cjs +0 -1
- package/dist/sankey-DsxdOJn9.cjs +0 -1
- package/dist/speedCurve-ByoxBHg9.cjs +0 -1
- package/dist/speedCurve-Da80zaDZ.js +0 -462
- package/dist/stressTimeCurve-C3brg02m.cjs +0 -1
- package/dist/stressTimeCurve-F1GT4u2u.js +0 -510
- package/dist/terminalConfigList-C_6dxL-Q.cjs +0 -1
- package/dist/terminalList-BF1ROapt.cjs +0 -1
- package/dist/timeSeries-BEWzYwAe.cjs +0 -4
- package/dist/timeSeriesCurve-6VrboC9b.js +0 -487
- package/dist/timeSeriesCurve-DVCAQuAT.cjs +0 -1
- package/dist/toggleBtn-BtVzUD0A.js +0 -248
- package/dist/toggleBtn-CYleSVqg.cjs +0 -1
- package/dist/vlu-CjSyLvYX.js +0 -118
- package/dist/vlu-CsFhYyT8.cjs +0 -1
|
@@ -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-dj-SHelr.cjs"),R=(u,t,s,e,i)=>b(null,null,function*(){try{const o=yield new(yield Promise.resolve().then(()=>require("./history-Fba0cQfR.cjs"))).default().getHistoryData(u,i);s(o)}catch(a){console.error("获取历史数据时出错:",a)}finally{if(t){const{formatRequest:a}=yield Promise.resolve().then(()=>require("./request-B2FzXhVA.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;
|
|
@@ -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-C7h1impW.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-BYjRBaaH.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-CfsIYWlr.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
|
};
|
|
@@ -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-CJUfAya1.js";
|
|
19
|
+
import { E as d, G as g, I as O } from "./index-C7h1impW.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-Bj7jDYan.cjs"),a=require("./index-dj-SHelr.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;
|