mixdashboards 1.0.60 → 1.0.61
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-BuZhrYIx.cjs +1 -0
- package/dist/BaseComponent-CNEkz9ZY.js +570 -0
- package/dist/{EChartComponentBase-CTsYBK8Y.js → EChartComponentBase-CrxRkdO0.js} +5 -5
- package/dist/EChartComponentBase-rmDaYuVY.cjs +1 -0
- package/dist/{EmergencyPlanPanel-Do-kC3CL.cjs → EmergencyPlanPanel-48RqsGiw.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-C_tJjPWb.js → EmergencyPlanPanel-BIIEJDP6.js} +1 -1
- package/dist/{HistoryPlanDialog-DbyY6Uzi.cjs → HistoryPlanDialog-AsMkpb6m.cjs} +1 -1
- package/dist/{HistoryPlanDialog-DCXWvYc0.js → HistoryPlanDialog-BpkKTo9j.js} +1 -1
- package/dist/{MonitoringMap-DVwHZazy.js → MonitoringMap-BZ5DN54q.js} +2 -2
- package/dist/{MonitoringMap-ISJuBQYc.cjs → MonitoringMap-NZfxDTAG.cjs} +1 -1
- package/dist/{UniverSheet-Dim-lj-q.js → UniverSheet-UXal6Mp1.js} +2 -2
- package/dist/UniverSheet-q4kykaBP.cjs +1 -0
- package/dist/accelerationChart-CRrsCXW9.cjs +6 -0
- package/dist/{accelerationChart-JQsRFPtz.js → accelerationChart-DBRrLZnd.js} +69 -70
- package/dist/{actionItem-B1OK_XZY.js → actionItem-BE-opDhv.js} +2 -2
- package/dist/actionItem-CPTFqKN8.cjs +1 -0
- package/dist/{alarmLevelChart-9fH-QxZZ.cjs → alarmLevelChart-CXByf8Va.cjs} +1 -1
- package/dist/{alarmLevelChart-SvAHTo9p.js → alarmLevelChart-WIGNdTxl.js} +2 -2
- package/dist/{alertTable-BxTGoRAX.js → alertTable-BvKAOqKy.js} +2 -2
- package/dist/alertTable-CX2-lqNM.cjs +1 -0
- package/dist/{aliasObjectSelectorDemo-Dvx34CpR.js → aliasObjectSelectorDemo-CBnYV9hE.js} +27 -28
- package/dist/aliasObjectSelectorDemo-CxgGUvQs.cjs +1 -0
- package/dist/{annualRainfallChart-Bs2xijAF.js → annualRainfallChart-BaWpSeo6.js} +2 -2
- package/dist/{annualRainfallChart-DsfMEGQT.cjs → annualRainfallChart-D5owN87F.cjs} +1 -1
- package/dist/aqi-DF0BqGzl.cjs +3 -0
- package/dist/{aqi-B1S6V2Dq.js → aqi-csqxVog6.js} +8 -9
- package/dist/aqiIndass-HjXMfY3e.cjs +3 -0
- package/dist/{aqiIndass-BD9Qfh6I.js → aqiIndass-h5Roiqic.js} +19 -19
- package/dist/{areaDeformCurve-B3akKLe7.cjs → areaDeformCurve-B59fTJH4.cjs} +1 -1
- package/dist/{areaDeformCurve-B3UgDcho.js → areaDeformCurve-DEsrptB0.js} +2 -2
- package/dist/{arrayCard-CQ0vcmPO.js → arrayCard-BCwZTZKB.js} +2 -2
- package/dist/arrayCard-KPQ_JNBC.cjs +1 -0
- package/dist/{audio-CAMZw4-n.js → audio-Cme__6xf.js} +4 -4
- package/dist/audio-D3nMm0CJ.cjs +1 -0
- package/dist/{bar-DFZpiE0i.js → bar-BRauhVA0.js} +25 -27
- package/dist/bar-Ck3pE3VW.cjs +2 -0
- package/dist/bmp-CBIwYrNj.cjs +1 -0
- package/dist/{bmp-DPfeu_lI.js → bmp-KQ1UkS74.js} +2 -2
- package/dist/box-DklEs1_x.cjs +1 -0
- package/dist/{box-DH9c-OzX.js → box-_ziyOR7I.js} +2 -2
- package/dist/{chartConfigPanel-xRbl59Hv.js → chartConfigPanel-DGveUyCu.js} +1 -1
- package/dist/{chartConfigPanel-Ctwv2rfE.cjs → chartConfigPanel-DJeOmz1S.cjs} +1 -1
- package/dist/circleBar-CFNNtOrP.cjs +4 -0
- package/dist/{circleBar-DYaHM4TC.js → circleBar-CH9vfpPj.js} +4 -5
- package/dist/{clock-DobT229A.js → clock-Jp8TkKIl.js} +2 -2
- package/dist/clock-S_LWas6d.cjs +1 -0
- package/dist/{clt-D-cBT0jv.js → clt-CJIvSltL.js} +2 -2
- package/dist/clt-DvbJ76Zr.cjs +1 -0
- package/dist/{cmc-BcFr2Pxb.js → cmc-Cgry9nM5.js} +7 -8
- package/dist/cmc-CqIH40_K.cjs +1 -0
- package/dist/{cmp-C0-Ua2AV.js → cmp-Bu73qsix.js} +13 -14
- package/dist/cmp-DNognwy-.cjs +6 -0
- package/dist/composite-D5WUHUYZ.cjs +3 -0
- package/dist/{composite-BwZJ9XO9.js → composite-DvBxTHXo.js} +26 -27
- package/dist/conclusionCard-D-r_X2Db.cjs +1 -0
- package/dist/{conclusionCard-Cimh4vKx.js → conclusionCard-kaWBcdt-.js} +2 -2
- package/dist/{controlList-BnHuzPho.js → controlList-3cPkq-5L.js} +2 -2
- package/dist/controlList-BGO5lhjW.cjs +1 -0
- package/dist/{controlRecordList-Xg3VGC6N.js → controlRecordList-BCgkWDQA.js} +2 -2
- package/dist/controlRecordList-D-U0dq1X.cjs +1 -0
- package/dist/crd-BEV1tWj1.cjs +1 -0
- package/dist/crd-NHDm8JUX.js +276 -0
- package/dist/{ctrBtn-xEpAUO_K.js → ctrBtn-D7d2yEAt.js} +27 -28
- package/dist/ctrBtn-DGTTbETh.cjs +1 -0
- package/dist/{ctrSet-Clw8GQhN.js → ctrSet-CiFP0zJf.js} +6 -7
- package/dist/ctrSet-DkMPCfeG.cjs +1 -0
- package/dist/ctrSwitch-BKIZz37t.cjs +1 -0
- package/dist/{ctrSwitch-Cfo0LcDE.js → ctrSwitch-BkNrH5k7.js} +22 -23
- package/dist/dataManagement--s449YwV.cjs +1 -0
- package/dist/{dataManagement-BhwPp15e.js → dataManagement-DS-9wVXW.js} +2 -2
- package/dist/{dataReport-BIR79-be.cjs → dataReport-9hwlU6QR.cjs} +1 -1
- package/dist/{dataReport-CkWdtZCA.js → dataReport-CVtCXyKs.js} +2 -2
- package/dist/{dataTable-ABb0lSor.cjs → dataTable-9bRHGRzE.cjs} +1 -1
- package/dist/{dataTable-DZpYRulq.js → dataTable-D5EDpk6h.js} +1 -1
- package/dist/{datetime-iTefC0S4.js → datetime-DRmC-84R.js} +2 -2
- package/dist/datetime-Dtg9LLSe.cjs +1 -0
- package/dist/deepClusterSlipSurface-DLPeFtVs.cjs +1 -0
- package/dist/{deepClusterSlipSurface-30s7Mxf9.js → deepClusterSlipSurface-pW2M2H29.js} +21 -22
- package/dist/{deepDataMatrix-MuZXIqoi.js → deepDataMatrix-B4GU2QMW.js} +19 -19
- package/dist/deepDataMatrix-BODu3M2Q.cjs +1 -0
- package/dist/{deepDisplacement3D-BREyM4VW.js → deepDisplacement3D-CTDzUJKA.js} +4 -5
- package/dist/{deepDisplacement3D-DFUH0q4c.cjs → deepDisplacement3D-m53e2zE1.cjs} +63 -63
- package/dist/{deepDisplacementChart-DAd6ieLS.js → deepDisplacementChart-CjYbpYKJ.js} +27 -27
- package/dist/deepDisplacementChart-Dfa6LaP_.cjs +6 -0
- package/dist/{deepDisplacementChart-JoGQihoK.js → deepDisplacementChart-s4tes9o0.js} +36 -37
- package/dist/deepDisplacementChart-zzq1GCf1.cjs +5 -0
- package/dist/{deepDisplacementView-CbFnxN4D.cjs → deepDisplacementView-CGkK2cIk.cjs} +1 -1
- package/dist/{deepDisplacementView-Dcb_zs2K.js → deepDisplacementView-ChGb4gdQ.js} +17 -17
- package/dist/{deepNodeTemperatureChart-SU0ORg8d.js → deepNodeTemperatureChart-CQN2uAGN.js} +29 -30
- package/dist/deepNodeTemperatureChart-UkC4qLCR.cjs +1 -0
- package/dist/{deepTangentAngleChart-B8UFkhfW.js → deepTangentAngleChart-B16P6-ki.js} +67 -68
- package/dist/deepTangentAngleChart-pJRdzAiT.cjs +1 -0
- package/dist/{deepTemperatureField-D-ZBYWBG.js → deepTemperatureField-BdBFl2KF.js} +98 -99
- package/dist/deepTemperatureField-DJJkCq2Z.cjs +1 -0
- package/dist/{deepTrendChart-DR4Wq6te.js → deepTrendChart-r08qIbWz.js} +20 -21
- package/dist/deepTrendChart-um2nJkLf.cjs +1 -0
- package/dist/{deviceOnlineStatus-Cisj1TTD.js → deviceOnlineStatus-Di606DHv.js} +2 -2
- package/dist/{deviceOnlineStatus-B-1ipGMZ.cjs → deviceOnlineStatus-TUr8skAh.cjs} +1 -1
- package/dist/deviceStatus-DL6DMbaP.cjs +1 -0
- package/dist/{deviceStatus-gb6rewaM.js → deviceStatus-DkF-u4vI.js} +10 -10
- package/dist/displacementDataTable-Cy5AeGAn.cjs +1 -0
- package/dist/{displacementDataTable-BbzhsUuX.js → displacementDataTable-DCBSytU0.js} +28 -28
- package/dist/displacementTrajectoryChart-CURhWQDh.cjs +22 -0
- package/dist/{displacementTrajectoryChart-CukrSkG4.js → displacementTrajectoryChart-bhnp3RkJ.js} +28 -29
- package/dist/displacementTrendChart-CUiognhg.cjs +5 -0
- package/dist/{displacementTrendChart-BZkQWkid.js → displacementTrendChart-tD5RqJzT.js} +30 -30
- package/dist/{dxf-D3jlZyoW.js → dxf-DI7dmK11.js} +17 -17
- package/dist/dxf-a5f-U-Lm.cjs +1 -0
- package/dist/dzc-BTKH_4h1.cjs +2 -0
- package/dist/{dzc-PneJExRE.js → dzc-dNzNgrj2.js} +4 -6
- package/dist/{emergencyPlan-sjuzclqN.js → emergencyPlan-BzRRtDcQ.js} +3 -3
- package/dist/emergencyPlan-DGREMNI2.cjs +1 -0
- package/dist/{evn-CbAGDl1c.js → evn-BzyfGNlc.js} +2 -2
- package/dist/evn-DNsK9k_R.cjs +1 -0
- package/dist/{evolutionChart-D7pFIYxX.js → evolutionChart-B18BC6aZ.js} +3 -3
- package/dist/{evolutionChart-c0M8CCgq.cjs → evolutionChart-CPHTMVju.cjs} +1 -1
- package/dist/fileViewer-CDXRIaXS.cjs +1 -0
- package/dist/{fileViewer-D2A5jAT4.js → fileViewer-_JW1xQOF.js} +4 -4
- package/dist/filterBar-BBQTBOV2.cjs +1 -0
- package/dist/{filterBar-xeJTN3eB.js → filterBar-CMB2gNne.js} +2 -2
- package/dist/{fireCombustionCurve-DKHWbSNO.cjs → fireCombustionCurve-CbQtoEwG.cjs} +1 -1
- package/dist/{fireCombustionCurve-BxHIvEWv.js → fireCombustionCurve-FoPI3t96.js} +3 -3
- package/dist/{fireFilterBar-ijVW9CKy.js → fireFilterBar-DdkYqisf.js} +2 -2
- package/dist/fireFilterBar-Dm7cyfJu.cjs +1 -0
- package/dist/{fireHistoryTable-DQchqp_g.js → fireHistoryTable-5N7LFdGb.js} +5 -6
- package/dist/fireHistoryTable-M5CEvmYp.cjs +3 -0
- package/dist/{gag-CzHitFBw.js → gag-C05_th0T.js} +2 -2
- package/dist/{gag-Dr8b1nB7.cjs → gag-CZD6gQZI.cjs} +1 -1
- package/dist/{gasStationList-NzWvxdyr.js → gasStationList-B1FwgItO.js} +3 -3
- package/dist/gasStationList-Bd61ICu8.cjs +1 -0
- package/dist/geo3dViewer-B-G2d0tK.cjs +1 -0
- package/dist/{geo3dViewer-CSmUSuwK.js → geo3dViewer-kwC9lvZd.js} +3 -3
- package/dist/{glbModel-Bo2wqdoT.cjs → glbModel-Dl6y35j7.cjs} +3 -3
- package/dist/{glbModel-b-SP554f.js → glbModel-Fm-vnbZM.js} +2 -2
- package/dist/{globalObjectSelector-C-PsZdsG.cjs → globalObjectSelector-BWm7MH2b.cjs} +1 -1
- package/dist/{globalObjectSelector-CG2quLmd.js → globalObjectSelector-Cyz9wfkx.js} +1 -1
- package/dist/{gnssFilterBar-_n70r1hW.js → gnssFilterBar-KIMDoCrc.js} +2 -2
- package/dist/gnssFilterBar-O57HhxzF.cjs +1 -0
- package/dist/gnssHistoryTable-DE1re5Pl.cjs +3 -0
- package/dist/{gnssHistoryTable-MER94qdJ.js → gnssHistoryTable-VcKXTuh7.js} +40 -41
- package/dist/{gnssMapView-CkBzVk6q.cjs → gnssMapView-CvsLM_Qt.cjs} +2 -2
- package/dist/{gnssMapView-CtiJbtR0.js → gnssMapView-DFZ5CszI.js} +4 -4
- package/dist/{gnssSectionProfile-B04pZ2gj.js → gnssSectionProfile-CPuq0SHc.js} +2 -2
- package/dist/gnssSectionProfile-DrWwUE7e.cjs +1 -0
- package/dist/{gnssTimeSeriesChart-XBBIv5vD.js → gnssTimeSeriesChart-B8cUZTJh.js} +5 -6
- package/dist/gnssTimeSeriesChart-lb0qF9pu.cjs +1 -0
- package/dist/{gnssXYTrajectory-CnGIozXE.js → gnssXYTrajectory-DEAsVC5R.js} +34 -35
- package/dist/gnssXYTrajectory-U3a2suIU.cjs +5 -0
- package/dist/grd-DQArtn_f.cjs +1 -0
- package/dist/{grd-DDZCrQxT.js → grd-gNPzLNMt.js} +12 -12
- package/dist/grdIndass-CFGblGkE.cjs +1 -0
- package/dist/{grdIndass-BMpGMm4s.js → grdIndass-D9cQpTnd.js} +2 -2
- package/dist/{grg-CV2sKb-z.js → grg-B1VZncu_.js} +12 -12
- package/dist/grg-CSPwJ8Gi.cjs +1 -0
- package/dist/{gridview-Dd8ypYs9.js → gridview-BvwYXLUW.js} +2 -2
- package/dist/gridview-DAU-7rQQ.cjs +1 -0
- package/dist/{groundwaterFilterBar-54RBswn4.js → groundwaterFilterBar-B6B9ttZ0.js} +2 -2
- package/dist/groundwaterFilterBar-DME9mdzE.cjs +1 -0
- package/dist/{groundwaterProfileChart-CD1F_7Pm.cjs → groundwaterProfileChart-CEoAyE89.cjs} +2 -2
- package/dist/{groundwaterProfileChart-BIPbBQEu.js → groundwaterProfileChart-lEARqgLi.js} +18 -18
- package/dist/{groundwaterTimeCurve-BtKM2elA.cjs → groundwaterTimeCurve-CmnJ0E2U.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-CuNsLZuP.js → groundwaterTimeCurve-te8D2h03.js} +3 -3
- package/dist/groupCard-9Lzik0C7.cjs +1 -0
- package/dist/{groupCard-Bv6gwans.js → groupCard-FrPtaJFX.js} +2 -2
- package/dist/{headerBar-DvAWOuLS.js → headerBar-DUBDuArm.js} +2 -2
- package/dist/headerBar-c7FMdVXy.cjs +1 -0
- package/dist/history-BlmkD0NH.cjs +1 -0
- package/dist/{history-DNa9X2ss.js → history-sXqQNV4S.js} +34 -35
- package/dist/index-DEE8_yJs.js +10059 -0
- package/dist/index-cqaXvdT8.cjs +600 -0
- package/dist/{insarDeformChart-8U9NWTXo.js → insarDeformChart-3N4riVA1.js} +2 -2
- package/dist/insarDeformChart-mvToMtJT.cjs +1 -0
- package/dist/insarImageViewer-cpX9IONT.cjs +1 -0
- package/dist/{insarImageViewer-Cn5sfuqX.js → insarImageViewer-ozL3F4xu.js} +2 -2
- package/dist/{kds-Di5vqVHA.js → kds-DpMSxNsX.js} +4 -4
- package/dist/kds-c5G0CjE2.cjs +3 -0
- package/dist/{kpiCard-CIZCGd0a.js → kpiCard-CZY2sZDO.js} +2 -2
- package/dist/kpiCard-v77SEA-z.cjs +2 -0
- package/dist/{landslideMap-MNwvQ5U8.js → landslideMap-SSLUXTbX.js} +16 -16
- package/dist/landslideMap-hLIJDx-L.cjs +1 -0
- package/dist/landslideWarning-4sWhJPCF.cjs +1 -0
- package/dist/{landslideWarning-KQdao4ia.js → landslideWarning-D5A9_rx9.js} +23 -23
- package/dist/{layerTabs-CojQYJpj.cjs → layerTabs-DEcDYfAi.cjs} +1 -1
- package/dist/{layerTabs-ZMBaF72d.js → layerTabs-DPkdsEZE.js} +2 -2
- package/dist/{leaflet-src-liYZiFhX.js → leaflet-src-CZy7e5IL.js} +1 -1
- package/dist/{leaflet-src-CMjLsJT2.cjs → leaflet-src-DBlo23oD.cjs} +1 -1
- package/dist/{lerc-hbDiGyGD.cjs → lerc-DfiQ1tka.cjs} +1 -1
- package/dist/{lerc-BvUBagJ2.js → lerc-manV5aI4.js} +2 -2
- package/dist/{lin-CxPu4XkR.js → lin-DLarvgqx.js} +20 -22
- package/dist/lin-DiXaW_P8.cjs +2 -0
- package/dist/linIndass-B2jme5vK.cjs +2 -0
- package/dist/{linIndass-CEAxFqDz.js → linIndass-BAhmOVxf.js} +24 -25
- package/dist/lst-B8xzU1ul.cjs +1 -0
- package/dist/{lst-Byu_t5tE.js → lst-nZCfEG6-.js} +2 -2
- package/dist/manualEntry-LzTIcRIk.cjs +1 -0
- package/dist/{manualEntry-pZlzJ9It.js → manualEntry-xt3P5DQk.js} +2 -2
- package/dist/mapBackground-Bs_Nl4PP.cjs +17 -0
- package/dist/{mapBackground-DoYGa0l2.js → mapBackground-D88ezFBb.js} +3 -3
- package/dist/mappingList-D7TaenCS.cjs +1 -0
- package/dist/{mappingList-DZgwi5Bc.js → mappingList-Dy4_m-Pb.js} +2 -2
- package/dist/markdownViewer-BMm2Sw3j.cjs +3 -0
- package/dist/{markdownViewer-DNAdC7cz.js → markdownViewer-CYltgwTR.js} +4 -4
- package/dist/mix-control-modal-DYj7lgaF.cjs +1 -0
- package/dist/{mix-control-modal-BpWevFio.js → mix-control-modal-vzLpho7m.js} +36 -38
- package/dist/mixGrid-B0jtqULy.js +468 -0
- package/dist/mixGrid-Dvd93tR-.cjs +1 -0
- package/dist/mixMap-CAsMkDeN.cjs +1 -0
- package/dist/{mixMap-DoyU8RVd.js → mixMap-KzSmlk6s.js} +2 -2
- package/dist/{mixModel-CFlM0QXW.js → mixModel-5zdNEnla.js} +16 -17
- package/dist/mixModel-Dml_JQ61.cjs +3 -0
- package/dist/{mixPie-QSA5SKlP.js → mixPie-CZrmUd4b.js} +11 -12
- package/dist/mixPie-VHumsG0E.cjs +2 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +5 -5
- package/dist/{mjpegCamera-BgDGmbEv.js → mjpegCamera-BDouAC6K.js} +2 -2
- package/dist/mjpegCamera-CtLu5K0S.cjs +1 -0
- package/dist/{monitorAlert-CvqkVhe3.js → monitorAlert-CCAzc1zi.js} +8 -8
- package/dist/monitorAlert-Do514ZDP.cjs +1 -0
- package/dist/{monitorData-UxhspNru.js → monitorData-C6bAfls6.js} +16 -17
- package/dist/monitorData-IFHM7HOC.cjs +1 -0
- package/dist/{monitorSpeedChart-CnN0iC8u.cjs → monitorSpeedChart-Bg4FVdgS.cjs} +1 -1
- package/dist/{monitorSpeedChart-B-Vm1za0.js → monitorSpeedChart-I_h_ZC9-.js} +1 -1
- package/dist/{mxa-BPcRQRcY.js → mxa-C2T-Xooe.js} +4 -6
- package/dist/mxa-D4V_CAbL.cjs +2 -0
- package/dist/{myValue-BONva0NQ.js → myValue-B3zYOXVj.js} +2 -2
- package/dist/myValue-D2KONXkv.cjs +1 -0
- package/dist/{myValueList-BDR8NF5i.js → myValueList-BtQw2nFy.js} +2 -2
- package/dist/myValueList-DZ75jHck.cjs +1 -0
- package/dist/objectList-9M8sVoVK.cjs +1 -0
- package/dist/{objectList-Da_4qImm.js → objectList-DSVZ5LxK.js} +3 -3
- package/dist/photo-B4PKkdHz.cjs +1 -0
- package/dist/{photo-BwspQLqN.js → photo-Ci8IBwKG.js} +2 -2
- package/dist/{pie-SuOCF6DJ.js → pie-CX8f0n0P.js} +6 -7
- package/dist/pie-PjcVx_6O.cjs +2 -0
- package/dist/{pressBtn-CFAsFoqc.js → pressBtn-BdJZlzD0.js} +7 -8
- package/dist/pressBtn-C-74P57P.cjs +1 -0
- package/dist/processTable-BtKX8CKN.cjs +3 -0
- package/dist/{processTable-gv6dqXG6.js → processTable-UO9lvl1B.js} +2 -2
- package/dist/progressBar-BDz-2d_8.cjs +1 -0
- package/dist/{progressBar-BhmGD8Ej.js → progressBar-ClAj_hnL.js} +2 -2
- package/dist/{progressCircle-BNmxkM77.js → progressCircle-Bok4qLUR.js} +2 -2
- package/dist/progressCircle-CiSh237H.cjs +1 -0
- package/dist/{qrcode-BN2oJSXC.js → qrcode-BXEs1JbY.js} +2 -2
- package/dist/qrcode-DtWnBtuJ.cjs +1 -0
- package/dist/raceBar-Cpcm85ps.cjs +4 -0
- package/dist/{raceBar-Czs-fS0R.js → raceBar-DxxfWBcl.js} +12 -14
- package/dist/{rad-DnrVZZFX.cjs → rad-CaHIORzH.cjs} +1 -1
- package/dist/{rad-CEQt8sSs.js → rad-DrvFHRyD.js} +2 -2
- package/dist/{radarMapViewer-D-TiiXi8.js → radarMapViewer-CrD1QuXb.js} +2 -2
- package/dist/radarMapViewer-ZEtdbcga.cjs +1 -0
- package/dist/{rainfallFilterBar-BnuDqaTm.js → rainfallFilterBar-C_yryGBe.js} +2 -2
- package/dist/rainfallFilterBar-UyjLC7dD.cjs +1 -0
- package/dist/{rainfallTimeCurve-CTxNOxNf.cjs → rainfallTimeCurve-BB00K4va.cjs} +1 -1
- package/dist/{rainfallTimeCurve-Dv6oKBpB.js → rainfallTimeCurve-CL3FCBrZ.js} +3 -3
- package/dist/{rangeLin-CmYoinz4.js → rangeLin-BM19VJoE.js} +10 -10
- package/dist/rangeLin-Cb5ncBJy.cjs +3 -0
- package/dist/{realtimeEvolutionMap-j5DXYFsJ.js → realtimeEvolutionMap-BDyj5Uge.js} +2 -2
- package/dist/{realtimeEvolutionMap-CAvsbuU1.cjs → realtimeEvolutionMap-DmDG_wOH.cjs} +1 -1
- package/dist/{regionBar-CoaRBaVP.js → regionBar-CM8Ra1KE.js} +2 -2
- package/dist/regionBar-v9cuTaG6.cjs +3 -0
- package/dist/{request-BtR1I50S.js → request-Bb5KuAdI.js} +9 -9
- package/dist/{request-1-dcBsd2.cjs → request-Dofk7JKi.cjs} +1 -1
- package/dist/{retainer1-UvQBrfqt.js → retainer1-CSprggiY.js} +3 -3
- package/dist/retainer1-_VJu4BAQ.cjs +1 -0
- package/dist/retainer2-B3MeWXnR.cjs +1 -0
- package/dist/{retainer2-mlk0MVP9.js → retainer2-ByaGtOrm.js} +3 -3
- package/dist/{retainerRecordList-Cj6ZgebW.js → retainerRecordList-BxwvxlJE.js} +220 -214
- package/dist/retainerRecordList-HzpplYhL.cjs +1 -0
- package/dist/{ringTopN-XUfaF71P.cjs → ringTopN-BLaUgupV.cjs} +1 -1
- package/dist/{ringTopN-DaI0vqwz.js → ringTopN-m0WL83Yj.js} +2 -2
- package/dist/riskRegionTable-B8TAsj6w.cjs +1 -0
- package/dist/{riskRegionTable-CUn4gOSW.js → riskRegionTable-Dp1aE7Lm.js} +9 -9
- package/dist/{sankey-lfRIG144.js → sankey-4JGZAPrm.js} +11 -12
- package/dist/sankey-C_R1N0lc.cjs +1 -0
- package/dist/{scd-CQQmiDAJ.js → scd-6_SIZRf1.js} +48 -48
- package/dist/scd-DdwJUxIp.cjs +1 -0
- package/dist/sideMenu-BxwJ9DCI.cjs +1 -0
- package/dist/{sideMenu-zp48Lheb.js → sideMenu-CRsHi6dr.js} +2 -2
- package/dist/slopeStability-B8xa5e2v.cjs +1 -0
- package/dist/{slopeStability-DmMDSrBf.js → slopeStability-gAMCNnqH.js} +16 -17
- package/dist/speedCurve-DFkRPiSK.cjs +1 -0
- package/dist/{speedCurve-DP1aDDXm.js → speedCurve-ShvxuV9b.js} +5 -6
- package/dist/{staticLine-qFZ4ePlQ.js → staticLine-C0O8x4g3.js} +2 -2
- package/dist/staticLine-DUndMuKq.cjs +1 -0
- package/dist/{stressFilterBar-ricq3Wha.js → stressFilterBar-B_5u_bzk.js} +16 -16
- package/dist/stressFilterBar-Qcn0pfBK.cjs +1 -0
- package/dist/{stressTimeCurve-CupSnwfj.js → stressTimeCurve-CkDRkhJd.js} +3 -3
- package/dist/{stressTimeCurve-CjpEieum.cjs → stressTimeCurve-DikrpYKa.cjs} +1 -1
- package/dist/swiper-CQVAUnFm.cjs +1 -0
- package/dist/{swiper-CGt3pL4o.js → swiper-DgZ7mAfp.js} +2 -2
- package/dist/terminalConfigList-C6T8-eOH.cjs +1 -0
- package/dist/{terminalConfigList-Cp_R0B09.js → terminalConfigList-CbNrDc1t.js} +2 -2
- package/dist/{terminalList-CBDuCaK-.js → terminalList-DwkiLqwt.js} +2 -2
- package/dist/terminalList-yRpcv28e.cjs +1 -0
- package/dist/{textbox-BQ8yzA9E.js → textbox-B0ULVqUm.js} +2 -2
- package/dist/textbox-BMNhVYFS.cjs +1 -0
- package/dist/{timeQueryBar-A0jsLkEn.cjs → timeQueryBar-C7Eirkn2.cjs} +1 -1
- package/dist/{timeQueryBar-CZjpHGQ0.js → timeQueryBar-Gf8P001I.js} +1 -1
- package/dist/timeSeries-Bd169gmQ.cjs +4 -0
- package/dist/{timeSeries-CMOuhKyF.js → timeSeries-zRM1JxtG.js} +71 -72
- package/dist/{timeSeriesCurve-eyrgobFO.cjs → timeSeriesCurve-DlcgX89G.cjs} +1 -1
- package/dist/{timeSeriesCurve-CKqJvFnh.js → timeSeriesCurve-az4RbioH.js} +3 -3
- package/dist/toggleBtn-DOwNrOGD.cjs +1 -0
- package/dist/{toggleBtn-C0Bu8v4r.js → toggleBtn-YUaZBekW.js} +46 -47
- package/dist/{trajectoryConfigPanel-XIoodnMU.js → trajectoryConfigPanel-DoWD7r4W.js} +1 -1
- package/dist/{trajectoryConfigPanel-BRWm1vX-.cjs → trajectoryConfigPanel-DwqR-UDU.cjs} +1 -1
- package/dist/{trajectoryScatter-DYB_RLRI.js → trajectoryScatter-2llfBeKr.js} +56 -58
- package/dist/trajectoryScatter-Cqc_MIWs.cjs +1 -0
- package/dist/{universalConfigPanel-52JZIY30.js → universalConfigPanel-C9--OFdR.js} +1 -1
- package/dist/{universalConfigPanel-CSsK4sZS.cjs → universalConfigPanel-DYEGO8GM.cjs} +1 -1
- package/dist/{universalTable-DGtzbXor.cjs → universalTable-BWKkKXLW.cjs} +1 -1
- package/dist/{universalTable-BtL5aJfg.js → universalTable-Bo1BEsAe.js} +38 -38
- package/dist/{video-CUrvTS9g.cjs → video-BvrXixro.cjs} +14 -14
- package/dist/{video-DNCUKunj.js → video-ZobKKXUT.js} +5 -5
- package/dist/{videoMonitor-BjZeWR3B.js → videoMonitor-Yd7JcUp1.js} +22 -22
- package/dist/videoMonitor-bnXTVcw-.cjs +1 -0
- package/dist/vlu-BCTATGJk.cjs +1 -0
- package/dist/{vlu-CuN5YDZn.js → vlu-IfgjE4ZT.js} +2 -2
- package/dist/{warningOverview-CgekCv3q.js → warningOverview-CpG__6Ng.js} +3 -3
- package/dist/warningOverview-OKyxrzl5.cjs +1 -0
- package/dist/{weather-CxPSi3xK.js → weather-BBewAfTi.js} +2 -2
- package/dist/weather-gg_jq9Rs.cjs +1 -0
- package/dist/{windLin-l196mBTJ.js → windLin-Ci45GyYR.js} +61 -61
- package/dist/windLin-IsYsX3XG.cjs +1 -0
- package/package.json +1 -1
- package/dist/EChartComponentBase-BTKqEN1q.cjs +0 -1
- package/dist/UniverSheet-35Ni6Uiq.cjs +0 -1
- package/dist/accelerationChart-CyeiV85k.cjs +0 -6
- package/dist/actionItem-FX1CC9D0.cjs +0 -1
- package/dist/alertTable-B9nXlAJS.cjs +0 -1
- package/dist/aliasObjectSelectorDemo-D_U7vxQp.cjs +0 -1
- package/dist/aqi-CREIGD5b.cjs +0 -3
- package/dist/aqiIndass-C9pKc4uP.cjs +0 -3
- package/dist/arrayCard-sW25PVfL.cjs +0 -1
- package/dist/audio-CDnJfjak.cjs +0 -1
- package/dist/bar-B6qaU18_.cjs +0 -2
- package/dist/bmp-CzbP9hM5.cjs +0 -1
- package/dist/box-Bs_WEQe_.cjs +0 -1
- package/dist/circleBar-DTvLhsjV.cjs +0 -4
- package/dist/clock-BJQvQGzI.cjs +0 -1
- package/dist/clt-DoPud27P.cjs +0 -1
- package/dist/cmc-BZpiLP4A.cjs +0 -1
- package/dist/cmp-Cu_BWuSg.cjs +0 -6
- package/dist/common-DtzpCqXG.cjs +0 -1
- package/dist/common-gbxCv4p1.js +0 -68
- package/dist/composite-CUHYIbC7.cjs +0 -3
- package/dist/conclusionCard-D38NgvX_.cjs +0 -1
- package/dist/controlList-DolPcPvH.cjs +0 -1
- package/dist/controlRecordList-Bjk1-3du.cjs +0 -1
- package/dist/crd-BIfoCIU1.cjs +0 -1
- package/dist/crd-DQ3J2dmj.js +0 -129
- package/dist/ctrBtn-D-cp_1Ej.cjs +0 -1
- package/dist/ctrSet-BHDz8CwG.cjs +0 -1
- package/dist/ctrSwitch-Dtf34Ele.cjs +0 -1
- package/dist/dataManagement-CFHy0o1X.cjs +0 -1
- package/dist/datetime-QalEoVeH.cjs +0 -1
- package/dist/deepClusterSlipSurface-DnO7ktGp.cjs +0 -1
- package/dist/deepDataMatrix-CYJF7DVS.cjs +0 -1
- package/dist/deepDisplacementChart-Ce3WcqwP.cjs +0 -6
- package/dist/deepDisplacementChart-k9fHhAb0.cjs +0 -5
- package/dist/deepNodeTemperatureChart-CEb0jDtv.cjs +0 -1
- package/dist/deepTangentAngleChart-9cl7SMLk.cjs +0 -1
- package/dist/deepTemperatureField-B-ip2jJt.cjs +0 -1
- package/dist/deepTrendChart-CxHEVM1-.cjs +0 -1
- package/dist/deviceStatus-8MPbwseM.cjs +0 -1
- package/dist/displacementDataTable-nf_YJyA8.cjs +0 -1
- package/dist/displacementTrajectoryChart-D2sqwJHj.cjs +0 -22
- package/dist/displacementTrendChart-BaZVL6Ug.cjs +0 -5
- package/dist/dxf-B9Tw-0Do.cjs +0 -1
- package/dist/dzc-DYeyG33b.cjs +0 -2
- package/dist/emergencyPlan-1elckkbG.cjs +0 -1
- package/dist/evn-Dr4yOO6n.cjs +0 -1
- package/dist/fileViewer-5CDrUWrF.cjs +0 -1
- package/dist/filterBar-DegHwfvR.cjs +0 -1
- package/dist/fireFilterBar-Pam-ubML.cjs +0 -1
- package/dist/fireHistoryTable-BMhqGa8B.cjs +0 -3
- package/dist/gasStationList-CU4-uHtX.cjs +0 -1
- package/dist/geo3dViewer-kAtldgE0.cjs +0 -1
- package/dist/gnssFilterBar-CAh1YIhY.cjs +0 -1
- package/dist/gnssHistoryTable-8Zol7SWh.cjs +0 -3
- package/dist/gnssSectionProfile-CvQ83J2A.cjs +0 -1
- package/dist/gnssTimeSeriesChart-oP1y2vAC.cjs +0 -1
- package/dist/gnssXYTrajectory-DghR2BvO.cjs +0 -5
- package/dist/grd-DzqwqXPv.cjs +0 -1
- package/dist/grdIndass-DoCF5PIi.cjs +0 -1
- package/dist/grg-B5da2nKa.cjs +0 -1
- package/dist/gridview-CIB_TQpj.cjs +0 -1
- package/dist/groundwaterFilterBar-DzEV_XLk.cjs +0 -1
- package/dist/groupCard-BtiXsNqL.cjs +0 -1
- package/dist/headerBar-C7unMDsy.cjs +0 -1
- package/dist/history-C55wRj0Q.cjs +0 -1
- package/dist/index-BjnedpPd.js +0 -8895
- package/dist/index-BpdquN7F.cjs +0 -600
- package/dist/insarDeformChart-BEvJPytM.cjs +0 -1
- package/dist/insarImageViewer-DPbPqYX6.cjs +0 -1
- package/dist/kds-OqY-8M9p.cjs +0 -3
- package/dist/kpiCard-CS_NWDPx.cjs +0 -2
- package/dist/landslideMap-C6K5_dCD.cjs +0 -1
- package/dist/landslideWarning-mTe-lM6B.cjs +0 -1
- package/dist/lin-D_-xWUYy.cjs +0 -2
- package/dist/linIndass-CSnGOnEZ.cjs +0 -2
- package/dist/lst-D7tt1sTi.cjs +0 -1
- package/dist/manualEntry-1wz3sw61.cjs +0 -1
- package/dist/mapBackground-Ye1DsAyL.cjs +0 -17
- package/dist/mappingList-B98hDbng.cjs +0 -1
- package/dist/markdownViewer-B-sqnNhd.cjs +0 -3
- package/dist/mix-control-modal-TnDCRTvI.cjs +0 -1
- package/dist/mixGrid-C_9uYcVF.cjs +0 -1
- package/dist/mixGrid-Cb-KMAjW.js +0 -179
- package/dist/mixMap-CsMMoAPq.cjs +0 -1
- package/dist/mixModel-DWvWHyHr.cjs +0 -3
- package/dist/mixPie-DN1XHFaD.cjs +0 -2
- package/dist/mjpegCamera-B_dZRZLL.cjs +0 -1
- package/dist/monitorAlert-BIRP8m9Q.cjs +0 -1
- package/dist/monitorData-BXngpaiz.cjs +0 -1
- package/dist/mxa-BX2STEVM.cjs +0 -2
- package/dist/myValue-DQ_hKvi8.cjs +0 -1
- package/dist/myValueList-4aCne94X.cjs +0 -1
- package/dist/objectList-D6ubmpaa.cjs +0 -1
- package/dist/photo-D_r5SgW4.cjs +0 -1
- package/dist/pie-5hEe0Cyl.cjs +0 -2
- package/dist/pressBtn-BLkFvYiT.cjs +0 -1
- package/dist/processTable-CzMWBqju.cjs +0 -3
- package/dist/progressBar-BS3lkd-n.cjs +0 -1
- package/dist/progressCircle-BQCkOkoQ.cjs +0 -1
- package/dist/qrcode-wrXmBrpu.cjs +0 -1
- package/dist/raceBar-Bu0u232B.cjs +0 -4
- package/dist/radarMapViewer-WpYT0evO.cjs +0 -1
- package/dist/rainfallFilterBar-P2iD4mIn.cjs +0 -1
- package/dist/rangeLin-DXOB3laV.cjs +0 -3
- package/dist/regionBar-DRrp1LjY.cjs +0 -3
- package/dist/retainer1-ChyrI0ji.cjs +0 -1
- package/dist/retainer2-CSa9Rzr4.cjs +0 -1
- package/dist/retainerRecordList-DV1pHaos.cjs +0 -1
- package/dist/riskRegionTable-Dz5WjFfs.cjs +0 -1
- package/dist/sankey-007A3lx4.cjs +0 -1
- package/dist/scd-C_aXsS-A.cjs +0 -1
- package/dist/sideMenu-B8HghoVG.cjs +0 -1
- package/dist/slopeStability-LwF1YePH.cjs +0 -1
- package/dist/speedCurve-T65s4wFb.cjs +0 -1
- package/dist/staticLine-BocZX48n.cjs +0 -1
- package/dist/stressFilterBar-DVxmS9m_.cjs +0 -1
- package/dist/swiper-B6M3wuqA.cjs +0 -1
- package/dist/terminalConfigList-CrDP3eif.cjs +0 -1
- package/dist/terminalList-DvF4tpbT.cjs +0 -1
- package/dist/textbox-CcdSuPYr.cjs +0 -1
- package/dist/timeSeries-Cf7oHXOA.cjs +0 -4
- package/dist/toggleBtn-BkY-md62.cjs +0 -1
- package/dist/trajectoryScatter-TPYNXWs-.cjs +0 -1
- package/dist/utils-CqcIwYhJ.js +0 -1293
- package/dist/utils-lTO6Nt8P.cjs +0 -1
- package/dist/videoMonitor-1yz7yL0n.cjs +0 -1
- package/dist/vlu-B9tyPNWh.cjs +0 -1
- package/dist/warningOverview-CTxgAoYR.cjs +0 -1
- package/dist/weather-D2w0uQz4.cjs +0 -1
- package/dist/windLin-OKC5iA2r.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=(h,t,e)=>new Promise((i,s)=>{var n=c=>{try{o(e.next(c))}catch(r){s(r)}},a=c=>{try{o(e.throw(c))}catch(r){s(r)}},o=c=>c.done?i(c.value):Promise.resolve(c.value).then(n,a);o((e=e.apply(h,t)).next())});const p=require("vue"),d=require("./index-cqaXvdT8.cjs"),f=(h,t,e,i,s)=>u(null,null,function*(){try{const a=yield new(yield Promise.resolve().then(()=>require("./history-BlmkD0NH.cjs"))).default().getHistoryData(h,s);e(a)}catch(n){console.error("获取历史数据时出错:",n)}finally{if(t){const{formatRequest:n}=yield Promise.resolve().then(()=>require("./request-Dofk7JKi.cjs")),a=n(h.conf,h.uid,s);t.registerComponent({id:h.conf.id,request:a,onUpdate:(o,c)=>{o==="realtime"&&i(c)}})}}}),y=(h,t)=>{t&&t.unregisterComponent(h.conf.id)};class v{constructor(t,e){this.linkWatchStop=null,this.props=t,this.componentType=e,this.session=p.ref(p.inject("session",null)),this.Style=p.ref({}),this.linkStore=d.useLinkStore()}extractStyles(){return{}}init(){return u(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){const{conf:e}=this.props,i=e==null?void 0:e.data;!t||!Array.isArray(t.history)||!Array.isArray(i)||!i.length||i.forEach((s,n)=>{var c,r,b;if(!s)return;const a=(r=(c=t.history)==null?void 0:c[n])==null?void 0:r[0];if(!a||typeof a!="object")return;const o=(b=s==null?void 0:s.fv)!=null?b:s==null?void 0:s.item_fv;if(o){const l=a==null?void 0:a[o];l!=null&&(s.value=l)}if(s!=null&&s.status_fv){const l=a==null?void 0:a[s.status_fv];l!=null&&(s.statusValue=l)}})}onPreview(){return u(this,null,function*(){var n;const{common:t,data:e}=this.props.conf,i=this.getSource(),s=yield this.expandAliasData(e);if(this.props.conf.data=s,t.multiObject&&Array.isArray(s)){const a=new Set,o=new Map;(yield Promise.all(s.map(r=>u(this,null,function*(){return{item:r,objectIds:yield this.resolveObjectIds(r)}})))).forEach(({item:r,objectIds:b})=>{b.length>1&&o.set(String((t==null?void 0:t.object_alias)||(r==null?void 0:r.object_alias)||(r==null?void 0:r.alias)||(r==null?void 0:r.object_id)||(r==null?void 0:r.uid)||""),b),b.forEach(l=>{!l||a.has(l)||(a.add(l),this.subscribeBySource(i,l,r.uid))})}),o.size>0&&console.log(`[${this.componentType}] 通配符匹配结果:`,Array.from(o.entries())),console.log(`[${this.componentType}] 多对象模式:已订阅 ${a.size} 个对象`)}else{const a=yield this.resolveObjectId(),o=(n=s==null?void 0:s[0])==null?void 0:n.uid;this.subscribeBySource(i,a,o)}})}setSocketData(t){if(!t)return;const{data:e}=this.props.conf;!e||!Array.isArray(e)||e.forEach(i=>{try{const s=this.extractDataValue(t,i.fv);i.value=s!=null?s:"--"}catch(s){i.value="--"}})}onLinkEvent(t){}getLinkChannel(){var t;return((t=this.Style.value)==null?void 0:t.linkChannel)||""}publish(t){const e=this.getLinkChannel();if(!e){console.warn(`[${this.componentType}] 未配置联动频道,无法发布事件`);return}this.linkStore.publish(e,this.componentType,t)}shouldHandleEvent(t){return!(!t||this.props.mode==="edit"||t.topic.source===this.componentType)}setupLinkWatch(){this.linkWatchStop&&this.linkWatchStop(),this.linkWatchStop=p.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,e,i,s){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const n={event:t,block:e,object_id:i};s&&Object.assign(n,s);const a=this.isLocalIotSubscribeMode()?{action:"sub_event",block_mapping:"mmq",event:n}:{action:"sub_agent_event",event:n},o=this.props.conf.id;this.session.value.componentRequests&&(this.session.value.componentRequests.has(o)||this.session.value.componentRequests.set(o,[]),this.session.value.componentRequests.get(o).push(a)),this.session.value.send({type:"send_message",message:a})}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 i,s;const e=(s=(i=this.props.conf.data)==null?void 0:i[0])==null?void 0:s.uid;this.subscribeStatisticsWithUid(t,e)}subscribeStatisticsWithUid(t,e){this.subscribe("statistics_result","statistics",t,{uid:e,type:"statistics"})}subscribeCalculate(t){var i,s;const e=(s=(i=this.props.conf.data)==null?void 0:i[0])==null?void 0:s.uid;this.subscribeCalculateWithUid(e)}subscribeCalculateWithUid(t){this.subscribe("statistics_result","statistics","",{uid:t,type:"calculate"})}subscribeBySource(t,e,i){switch(t){case"mosaic":this.subscribeFv(e);break;case"statisticsRealtime":this.subscribeStatisticsRealtimeResult(e);break;case"statistics":i?this.subscribeStatisticsWithUid(e,i):this.subscribeStatistics(e);break;case"calculate":i?this.subscribeCalculateWithUid(i):this.subscribeCalculate(e);break;default:console.warn(`[${this.componentType}] 未知的数据源类型: ${t}`)}}extractDataValue(t,e){var i;return!t||!t.event?null:t.event==="recv_fv"&&t.block==="mosaic"?!e||!t.data?null:t.data[e]:t.event==="statistics_realtime_result"&&t.block==="statistics"?(i=t.data)==null?void 0:i.data:t.event==="statistics_result"&&t.block==="statistics"?t.data:null}getOptionValue(t,e){var s,n;const i=(n=(s=this.props.conf)==null?void 0:s.options)==null?void 0:n[t];return i==null?e:typeof i=="object"&&"value"in i?i.value:i}applyTheme(){d.applyThemeStyles(this.props.theme,this.Style.value)}getSource(){var t,e;return((e=(t=this.props.conf)==null?void 0:t.common)==null?void 0:e.source)||"mosaic"}isStatistics(){return["statistics","calculate","statisticsRealtime","calculateRealtime"].includes(this.getSource())}resolveObjectId(t){return u(this,null,function*(){return(yield this.resolveObjectIds(t))[0]||""})}resolveObjectIds(t){return u(this,null,function*(){const{common:e,data:i}=this.props.conf,s=t||e||i[0]||{},a=(yield this.expandAliasData([s])).map(o=>String((o==null?void 0:o.object_id)||(o==null?void 0:o.objectid)||"")).filter(Boolean);return a.length>0&&s&&typeof s=="object"&&(s.object_id=a[0],s.objectid=a[0]),console.log(`[${this.componentType}][resolveObjectIds]`,{sourceAlias:s==null?void 0:s.alias,sourceObjectAlias:s==null?void 0:s.object_alias,sourceObjectId:(s==null?void 0:s.object_id)||(s==null?void 0:s.objectid),finalIds:a}),a.length>0?a:[String((s==null?void 0:s.object_id)||(s==null?void 0:s.objectid)||"")].filter(Boolean)})}expandAliasData(t){return u(this,null,function*(){var s;const e=Array.isArray(t)?t:[],i=[];for(const n of e){if(!n||typeof n!="object"){i.push(n);continue}const a={common:n,data:[n],options:(s=this.props.conf)==null?void 0:s.options};if(!String(n.object_alias||n.alias||"").trim()){i.push(n);continue}if(!(yield d.loadAliasMappingFromJsonIfNeeded(a))){i.push(n);continue}const c=d.expandAliasItems([n]);c.length>0?i.push(...c):i.push(n)}return i})}handleNull(t,e){return d.handleNullData(t,this.props,e)}getPreviewHelper(){return{preview:()=>f(this.props,this.session.value,t=>this.setHistoryData(t),t=>this.setSocketData(t),this.componentType),unregister:()=>y(this.props,this.session.value)}}getDebouncedInit(){return d.debounce(()=>this.init(),200)}cleanup(){}needsHistoryData(){return!0}setupLifecycle(){const t=this.getDebouncedInit(),e=this.getPreviewHelper();p.onMounted(()=>u(this,null,function*(){var s,n,a,o;const i={common:(s=this.props.conf)==null?void 0:s.common,data:(n=this.props.conf)==null?void 0:n.data,options:(a=this.props.conf)==null?void 0:a.options};if(this.props.mode==="preview"&&(yield d.loadAliasMappingFromJsonIfNeeded(i),Array.isArray((o=this.props.conf)==null?void 0:o.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 new(yield Promise.resolve().then(()=>require("./history-BlmkD0NH.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(r)}catch(c){console.error(`[${this.componentType}] 获取历史数据失败:`,c)}this.session.value&&this.session.value.registerComponent({id:this.props.conf.id,request:null,onUpdate:(c,r)=>{c==="realtime"&&this.setSocketData(r)}}),this.onPreview()}this.setupLinkWatch()})),p.onBeforeUnmount(()=>{this.cleanup(),e.unregister(),this.stopLinkWatch()}),p.watch(()=>this.props.conf,()=>{this.props.mode==="edit"&&t()},{deep:!0}),p.watch(()=>this.props.theme,()=>{this.init()}),p.watch(()=>{var i;return(i=this.Style.value)==null?void 0:i.linkChannel},()=>{this.setupLinkWatch()})}getStyle(){return this.Style}getType(){return this.componentType}dispatchModal(t,e,i){this.props.mode==="preview"&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:t,layerId:e,sheetIndex:i!=null?i:-1}}))}triggerModalByKey(t){var i,s;if(this.props.mode!=="preview")return;const e=(i=this.props.conf)==null?void 0:i.modalBinding;if(e&&e.enabled&&e.mode==="key"){const a=(e.map||{})[t];if(!a||!a.layerId)return;const o=a.action||"toggle",c=(s=e.sheetIndex)!=null?s:-1;this.dispatchModal(o,a.layerId,c)}}}exports.BaseComponent=v;exports.preview=f;exports.unregister=y;
|
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
var u = (h, t, e) => new Promise((i, s) => {
|
|
2
|
+
var n = (c) => {
|
|
3
|
+
try {
|
|
4
|
+
o(e.next(c));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
s(r);
|
|
7
|
+
}
|
|
8
|
+
}, a = (c) => {
|
|
9
|
+
try {
|
|
10
|
+
o(e.throw(c));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
s(r);
|
|
13
|
+
}
|
|
14
|
+
}, o = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(n, a);
|
|
15
|
+
o((e = e.apply(h, t)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as b, inject as y, watch as d, onMounted as v, onBeforeUnmount as S } from "vue";
|
|
18
|
+
import { k as m, w as g, x as f, y as w, z as k, B as _ } from "./index-DEE8_yJs.js";
|
|
19
|
+
const A = (h, t, e, i, s) => u(null, null, function* () {
|
|
20
|
+
try {
|
|
21
|
+
const a = yield new (yield import("./history-sXqQNV4S.js")).default().getHistoryData(h, s);
|
|
22
|
+
e(a);
|
|
23
|
+
} catch (n) {
|
|
24
|
+
console.error("获取历史数据时出错:", n);
|
|
25
|
+
} finally {
|
|
26
|
+
if (t) {
|
|
27
|
+
const { formatRequest: n } = yield import("./request-Bb5KuAdI.js"), a = n(h.conf, h.uid, s);
|
|
28
|
+
t.registerComponent({
|
|
29
|
+
id: h.conf.id,
|
|
30
|
+
request: a,
|
|
31
|
+
onUpdate: (o, c) => {
|
|
32
|
+
o === "realtime" && i(c);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}), D = (h, t) => {
|
|
38
|
+
t && t.unregisterComponent(h.conf.id);
|
|
39
|
+
};
|
|
40
|
+
class R {
|
|
41
|
+
constructor(t, e) {
|
|
42
|
+
this.linkWatchStop = null, this.props = t, this.componentType = e, this.session = b(y("session", null)), this.Style = b({}), this.linkStore = m();
|
|
43
|
+
}
|
|
44
|
+
// ==================== 可覆盖方法(子类按需实现)====================
|
|
45
|
+
/**
|
|
46
|
+
* 提取样式配置(子类应覆盖此方法)
|
|
47
|
+
*/
|
|
48
|
+
extractStyles() {
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 初始化组件
|
|
53
|
+
* - 提取样式配置
|
|
54
|
+
* - 应用主题
|
|
55
|
+
* - 初始化数据/图表
|
|
56
|
+
*/
|
|
57
|
+
init() {
|
|
58
|
+
return u(this, null, function* () {
|
|
59
|
+
var t;
|
|
60
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), yield this.expandAliasData((t = this.props.conf) == null ? void 0 : t.data);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 处理历史数据
|
|
65
|
+
* @param res 历史数据响应
|
|
66
|
+
*/
|
|
67
|
+
setHistoryData(t) {
|
|
68
|
+
const { conf: e } = this.props, i = e == null ? void 0 : e.data;
|
|
69
|
+
!t || !Array.isArray(t.history) || !Array.isArray(i) || !i.length || i.forEach((s, n) => {
|
|
70
|
+
var c, r, p;
|
|
71
|
+
if (!s) return;
|
|
72
|
+
const a = (r = (c = t.history) == null ? void 0 : c[n]) == null ? void 0 : r[0];
|
|
73
|
+
if (!a || typeof a != "object") return;
|
|
74
|
+
const o = (p = s == null ? void 0 : s.fv) != null ? p : s == null ? void 0 : s.item_fv;
|
|
75
|
+
if (o) {
|
|
76
|
+
const l = a == null ? void 0 : a[o];
|
|
77
|
+
l != null && (s.value = l);
|
|
78
|
+
}
|
|
79
|
+
if (s != null && s.status_fv) {
|
|
80
|
+
const l = a == null ? void 0 : a[s.status_fv];
|
|
81
|
+
l != null && (s.statusValue = l);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 预览模式处理(子类可覆盖)
|
|
87
|
+
* 默认实现:根据配置的数据源类型自动订阅
|
|
88
|
+
* 支持单对象和多对象模式
|
|
89
|
+
*/
|
|
90
|
+
onPreview() {
|
|
91
|
+
return u(this, null, function* () {
|
|
92
|
+
var n;
|
|
93
|
+
const { common: t, data: e } = this.props.conf, i = this.getSource(), s = yield this.expandAliasData(e);
|
|
94
|
+
if (this.props.conf.data = s, t.multiObject && Array.isArray(s)) {
|
|
95
|
+
const a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
96
|
+
(yield Promise.all(s.map((r) => u(this, null, function* () {
|
|
97
|
+
return { item: r, objectIds: yield this.resolveObjectIds(r) };
|
|
98
|
+
})))).forEach(({ item: r, objectIds: p }) => {
|
|
99
|
+
p.length > 1 && o.set(String((t == null ? void 0 : t.object_alias) || (r == null ? void 0 : r.object_alias) || (r == null ? void 0 : r.alias) || (r == null ? void 0 : r.object_id) || (r == null ? void 0 : r.uid) || ""), p), p.forEach((l) => {
|
|
100
|
+
!l || a.has(l) || (a.add(l), this.subscribeBySource(i, l, r.uid));
|
|
101
|
+
});
|
|
102
|
+
}), o.size > 0 && console.log(`[${this.componentType}] 通配符匹配结果:`, Array.from(o.entries())), console.log(`[${this.componentType}] 多对象模式:已订阅 ${a.size} 个对象`);
|
|
103
|
+
} else {
|
|
104
|
+
const a = yield this.resolveObjectId(), o = (n = s == null ? void 0 : s[0]) == null ? void 0 : n.uid;
|
|
105
|
+
this.subscribeBySource(i, a, o);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 处理实时数据(WebSocket)
|
|
111
|
+
* 默认实现:遍历 data 数组,提取每个字段的值
|
|
112
|
+
* 支持单对象和多对象模式
|
|
113
|
+
* 子类可覆盖此方法实现自定义逻辑
|
|
114
|
+
*
|
|
115
|
+
* 注意:多对象模式下,Session 会根据 object_id 精确匹配并分发数据,
|
|
116
|
+
* 所以这里收到的 res 已经是匹配当前 object_id 的数据,不需要额外处理
|
|
117
|
+
*
|
|
118
|
+
* @param res 实时数据响应
|
|
119
|
+
*/
|
|
120
|
+
setSocketData(t) {
|
|
121
|
+
if (!t) return;
|
|
122
|
+
const { data: e } = this.props.conf;
|
|
123
|
+
!e || !Array.isArray(e) || e.forEach((i) => {
|
|
124
|
+
try {
|
|
125
|
+
const s = this.extractDataValue(t, i.fv);
|
|
126
|
+
i.value = s != null ? s : "--";
|
|
127
|
+
} catch (s) {
|
|
128
|
+
i.value = "--";
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 收到联动事件的回调(子类可覆盖)
|
|
134
|
+
* @param event 联动事件
|
|
135
|
+
*/
|
|
136
|
+
onLinkEvent(t) {
|
|
137
|
+
}
|
|
138
|
+
// ==================== 组件联动方法 ====================
|
|
139
|
+
/**
|
|
140
|
+
* 获取当前组件的联动频道
|
|
141
|
+
* 默认从 Style.linkChannel 读取,子类可覆盖
|
|
142
|
+
*/
|
|
143
|
+
getLinkChannel() {
|
|
144
|
+
var t;
|
|
145
|
+
return ((t = this.Style.value) == null ? void 0 : t.linkChannel) || "";
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* 发布联动事件
|
|
149
|
+
* @param payload 业务数据(JSON 格式)
|
|
150
|
+
*/
|
|
151
|
+
publish(t) {
|
|
152
|
+
const e = this.getLinkChannel();
|
|
153
|
+
if (!e) {
|
|
154
|
+
console.warn(`[${this.componentType}] 未配置联动频道,无法发布事件`);
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
this.linkStore.publish(e, this.componentType, t);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* 判断是否应该处理该联动事件
|
|
161
|
+
*/
|
|
162
|
+
shouldHandleEvent(t) {
|
|
163
|
+
return !(!t || this.props.mode === "edit" || t.topic.source === this.componentType);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 设置联动频道监听
|
|
167
|
+
*/
|
|
168
|
+
setupLinkWatch() {
|
|
169
|
+
this.linkWatchStop && this.linkWatchStop(), this.linkWatchStop = d(
|
|
170
|
+
() => {
|
|
171
|
+
const t = this.getLinkChannel();
|
|
172
|
+
return t ? this.linkStore.channels[t] : null;
|
|
173
|
+
},
|
|
174
|
+
(t) => {
|
|
175
|
+
this.shouldHandleEvent(t) && this.onLinkEvent(t);
|
|
176
|
+
},
|
|
177
|
+
// 关键:immediate=true,确保“后挂载”的组件(比如弹窗里新渲染出来的组件)
|
|
178
|
+
// 也能立刻拿到该频道最近一次发布的事件,不会因为时序而错过。
|
|
179
|
+
{ deep: !0, immediate: !0 }
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* 停止联动监听
|
|
184
|
+
*/
|
|
185
|
+
stopLinkWatch() {
|
|
186
|
+
this.linkWatchStop && (this.linkWatchStop(), this.linkWatchStop = null);
|
|
187
|
+
}
|
|
188
|
+
// ==================== 数据订阅方法 ====================
|
|
189
|
+
/**
|
|
190
|
+
* 是否为“本地 IOT 系统”订阅模式
|
|
191
|
+
* 约定:dashboardUseLocalToken=1/true 时走本地 IOT 订阅协议(sub_event + block_mapping)
|
|
192
|
+
*/
|
|
193
|
+
isLocalIotSubscribeMode() {
|
|
194
|
+
return localStorage.getItem("dashboardUseLocalToken") === "1" || localStorage.getItem("dashboardUseLocalToken") === "true";
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* 通用订阅方法(底层方法)
|
|
198
|
+
* 用于构建和发送订阅请求
|
|
199
|
+
* @param event 事件名称
|
|
200
|
+
* @param block 块名称
|
|
201
|
+
* @param object_id 对象ID
|
|
202
|
+
* @param extraParams 额外参数(如 uid, type)
|
|
203
|
+
*/
|
|
204
|
+
subscribe(t, e, i, s) {
|
|
205
|
+
if (!this.session.value) {
|
|
206
|
+
console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const n = { event: t, block: e, object_id: i };
|
|
210
|
+
s && Object.assign(n, s);
|
|
211
|
+
const a = this.isLocalIotSubscribeMode() ? {
|
|
212
|
+
action: "sub_event",
|
|
213
|
+
block_mapping: "mmq",
|
|
214
|
+
event: n
|
|
215
|
+
} : {
|
|
216
|
+
action: "sub_agent_event",
|
|
217
|
+
event: n
|
|
218
|
+
}, o = this.props.conf.id;
|
|
219
|
+
this.session.value.componentRequests && (this.session.value.componentRequests.has(o) || this.session.value.componentRequests.set(o, []), this.session.value.componentRequests.get(o).push(a)), this.session.value.send({
|
|
220
|
+
type: "send_message",
|
|
221
|
+
message: a
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* 订阅 FV 数据(马赛克数据)
|
|
226
|
+
*/
|
|
227
|
+
subscribeFv(t) {
|
|
228
|
+
this.subscribe("recv_fv", "mosaic", t);
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* 订阅历程开始事件
|
|
232
|
+
* 当历程开始时发布该事件
|
|
233
|
+
* @param object_id 对象ID
|
|
234
|
+
*/
|
|
235
|
+
subscribeRetainerOpen(t) {
|
|
236
|
+
this.subscribe("retainer_open", "retainer", t);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* 订阅历程结束事件
|
|
240
|
+
* 当历程结束时发布该事件
|
|
241
|
+
* @param object_id 对象ID
|
|
242
|
+
*/
|
|
243
|
+
subscribeRetainerClose(t) {
|
|
244
|
+
this.subscribe("retainer_close", "retainer", t);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* 订阅历程转发条件事件
|
|
248
|
+
* 当历程收到对象条件事件且历程还未结束时发布
|
|
249
|
+
* @param object_id 对象ID
|
|
250
|
+
*/
|
|
251
|
+
subscribeRetainerEvent(t) {
|
|
252
|
+
this.subscribe("retainer_event", "retainer", t);
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* 订阅所有历程事件(便捷方法)
|
|
256
|
+
* 同时订阅 open、close、event 三个事件
|
|
257
|
+
* @param object_id 对象ID
|
|
258
|
+
*/
|
|
259
|
+
subscribeRetainer(t) {
|
|
260
|
+
this.subscribeRetainerOpen(t), this.subscribeRetainerClose(t), this.subscribeRetainerEvent(t);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* 订阅统计实时结果更新事件
|
|
264
|
+
*/
|
|
265
|
+
subscribeStatisticsRealtimeResult(t) {
|
|
266
|
+
this.subscribe("statistics_realtime_result", "statistics", t);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* 订阅统计结果
|
|
270
|
+
* 需要额外的 uid 和 type 参数
|
|
271
|
+
* uid 是统计配置的唯一ID,应该在组件配置的 data 中指定
|
|
272
|
+
* 注意:统计需要 object_id 和 uid
|
|
273
|
+
*/
|
|
274
|
+
subscribeStatistics(t) {
|
|
275
|
+
var i, s;
|
|
276
|
+
const e = (s = (i = this.props.conf.data) == null ? void 0 : i[0]) == null ? void 0 : s.uid;
|
|
277
|
+
this.subscribeStatisticsWithUid(t, e);
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* 订阅统计结果(带 uid 参数)
|
|
281
|
+
* 用于多对象模式,每个数据项可能有不同的 uid
|
|
282
|
+
* @param object_id 对象ID
|
|
283
|
+
* @param uid 统计配置ID
|
|
284
|
+
*/
|
|
285
|
+
subscribeStatisticsWithUid(t, e) {
|
|
286
|
+
this.subscribe("statistics_result", "statistics", t, { uid: e, type: "statistics" });
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* 订阅计算结果
|
|
290
|
+
* 需要额外的 uid 和 type 参数
|
|
291
|
+
* uid 是计算配置的唯一ID,应该在组件配置的 data 中指定
|
|
292
|
+
* 注意:计算不需要 object_id,只需要 uid
|
|
293
|
+
*/
|
|
294
|
+
subscribeCalculate(t) {
|
|
295
|
+
var i, s;
|
|
296
|
+
const e = (s = (i = this.props.conf.data) == null ? void 0 : i[0]) == null ? void 0 : s.uid;
|
|
297
|
+
this.subscribeCalculateWithUid(e);
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* 订阅计算结果(带 uid 参数)
|
|
301
|
+
* 用于多对象模式,每个数据项可能有不同的 uid
|
|
302
|
+
* @param uid 计算配置ID
|
|
303
|
+
*/
|
|
304
|
+
subscribeCalculateWithUid(t) {
|
|
305
|
+
this.subscribe("statistics_result", "statistics", "", { uid: t, type: "calculate" });
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* 根据数据源类型自动订阅
|
|
309
|
+
* @param source 数据源类型
|
|
310
|
+
* @param object_id 对象ID
|
|
311
|
+
* @param uid 统计/计算配置ID(可选)
|
|
312
|
+
*/
|
|
313
|
+
subscribeBySource(t, e, i) {
|
|
314
|
+
switch (t) {
|
|
315
|
+
case "mosaic":
|
|
316
|
+
this.subscribeFv(e);
|
|
317
|
+
break;
|
|
318
|
+
case "statisticsRealtime":
|
|
319
|
+
this.subscribeStatisticsRealtimeResult(e);
|
|
320
|
+
break;
|
|
321
|
+
case "statistics":
|
|
322
|
+
i ? this.subscribeStatisticsWithUid(e, i) : this.subscribeStatistics(e);
|
|
323
|
+
break;
|
|
324
|
+
case "calculate":
|
|
325
|
+
i ? this.subscribeCalculateWithUid(i) : this.subscribeCalculate(e);
|
|
326
|
+
break;
|
|
327
|
+
default:
|
|
328
|
+
console.warn(`[${this.componentType}] 未知的数据源类型: ${t}`);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* 统一处理不同数据源的数据格式
|
|
333
|
+
* @param res 响应数据
|
|
334
|
+
* @param fieldName 字段名(可选,计算数据源不需要)
|
|
335
|
+
*/
|
|
336
|
+
extractDataValue(t, e) {
|
|
337
|
+
var i;
|
|
338
|
+
return !t || !t.event ? null : t.event === "recv_fv" && t.block === "mosaic" ? !e || !t.data ? null : t.data[e] : t.event === "statistics_realtime_result" && t.block === "statistics" ? (i = t.data) == null ? void 0 : i.data : t.event === "statistics_result" && t.block === "statistics" ? t.data : null;
|
|
339
|
+
}
|
|
340
|
+
// ==================== 公共工具方法 ====================
|
|
341
|
+
/**
|
|
342
|
+
* 从 conf.options 提取值
|
|
343
|
+
* 处理 Vue 组件中 options 的 { value: xxx } 格式
|
|
344
|
+
*/
|
|
345
|
+
getOptionValue(t, e) {
|
|
346
|
+
var s, n;
|
|
347
|
+
const i = (n = (s = this.props.conf) == null ? void 0 : s.options) == null ? void 0 : n[t];
|
|
348
|
+
return i == null ? e : typeof i == "object" && "value" in i ? i.value : i;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* 应用主题样式
|
|
352
|
+
*/
|
|
353
|
+
applyTheme() {
|
|
354
|
+
g(this.props.theme, this.Style.value);
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* 获取数据源类型
|
|
358
|
+
*/
|
|
359
|
+
getSource() {
|
|
360
|
+
var t, e;
|
|
361
|
+
return ((e = (t = this.props.conf) == null ? void 0 : t.common) == null ? void 0 : e.source) || "mosaic";
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* 是否为统计类数据源
|
|
365
|
+
*/
|
|
366
|
+
isStatistics() {
|
|
367
|
+
return ["statistics", "calculate", "statisticsRealtime", "calculateRealtime"].includes(this.getSource());
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* 获取对象ID(处理单对象/多对象模式)
|
|
371
|
+
*
|
|
372
|
+
* 说明:
|
|
373
|
+
* - useAlias = false 时,直接使用 object_id/objectid
|
|
374
|
+
* - useAlias = true 时,才触发别名解析
|
|
375
|
+
* - 支持外部注入的全局解析器,也兼容 sessionStorage 旧映射
|
|
376
|
+
*/
|
|
377
|
+
resolveObjectId(t) {
|
|
378
|
+
return u(this, null, function* () {
|
|
379
|
+
return (yield this.resolveObjectIds(t))[0] || "";
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* 获取对象ID列表(支持通配符匹配多个对象)
|
|
384
|
+
*/
|
|
385
|
+
resolveObjectIds(t) {
|
|
386
|
+
return u(this, null, function* () {
|
|
387
|
+
const { common: e, data: i } = this.props.conf, s = t || e || i[0] || {}, a = (yield this.expandAliasData([s])).map((o) => String((o == null ? void 0 : o.object_id) || (o == null ? void 0 : o.objectid) || "")).filter(Boolean);
|
|
388
|
+
return a.length > 0 && s && typeof s == "object" && (s.object_id = a[0], s.objectid = a[0]), console.log(`[${this.componentType}][resolveObjectIds]`, {
|
|
389
|
+
sourceAlias: s == null ? void 0 : s.alias,
|
|
390
|
+
sourceObjectAlias: s == null ? void 0 : s.object_alias,
|
|
391
|
+
sourceObjectId: (s == null ? void 0 : s.object_id) || (s == null ? void 0 : s.objectid),
|
|
392
|
+
finalIds: a
|
|
393
|
+
}), a.length > 0 ? a : [String((s == null ? void 0 : s.object_id) || (s == null ? void 0 : s.objectid) || "")].filter(Boolean);
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* 展开 alias 配置,通配符会扩展成多条真实配置
|
|
398
|
+
*/
|
|
399
|
+
expandAliasData(t) {
|
|
400
|
+
return u(this, null, function* () {
|
|
401
|
+
var s;
|
|
402
|
+
const e = Array.isArray(t) ? t : [], i = [];
|
|
403
|
+
for (const n of e) {
|
|
404
|
+
if (!n || typeof n != "object") {
|
|
405
|
+
i.push(n);
|
|
406
|
+
continue;
|
|
407
|
+
}
|
|
408
|
+
const a = {
|
|
409
|
+
common: n,
|
|
410
|
+
data: [n],
|
|
411
|
+
options: (s = this.props.conf) == null ? void 0 : s.options
|
|
412
|
+
};
|
|
413
|
+
if (!String(n.object_alias || n.alias || "").trim()) {
|
|
414
|
+
i.push(n);
|
|
415
|
+
continue;
|
|
416
|
+
}
|
|
417
|
+
if (!(yield f(a))) {
|
|
418
|
+
i.push(n);
|
|
419
|
+
continue;
|
|
420
|
+
}
|
|
421
|
+
const c = w([n]);
|
|
422
|
+
c.length > 0 ? i.push(...c) : i.push(n);
|
|
423
|
+
}
|
|
424
|
+
return i;
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* 空值处理
|
|
429
|
+
*/
|
|
430
|
+
handleNull(t, e) {
|
|
431
|
+
return k(t, this.props, e);
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* 获取预览助手对象
|
|
435
|
+
*/
|
|
436
|
+
getPreviewHelper() {
|
|
437
|
+
return {
|
|
438
|
+
preview: () => A(
|
|
439
|
+
this.props,
|
|
440
|
+
this.session.value,
|
|
441
|
+
(t) => this.setHistoryData(t),
|
|
442
|
+
(t) => this.setSocketData(t),
|
|
443
|
+
this.componentType
|
|
444
|
+
),
|
|
445
|
+
unregister: () => D(this.props, this.session.value)
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* 获取防抖的初始化方法
|
|
450
|
+
*/
|
|
451
|
+
getDebouncedInit() {
|
|
452
|
+
return _(() => this.init(), 200);
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* 清理资源(子类可覆盖)
|
|
456
|
+
*/
|
|
457
|
+
cleanup() {
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* 是否需要获取历史数据
|
|
461
|
+
* 子类可以覆盖此方法来控制是否获取历史数据
|
|
462
|
+
* @returns true 表示需要获取历史数据,false 表示不需要
|
|
463
|
+
*/
|
|
464
|
+
needsHistoryData() {
|
|
465
|
+
return !0;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* 设置 Vue 生命周期钩子
|
|
469
|
+
*/
|
|
470
|
+
setupLifecycle() {
|
|
471
|
+
const t = this.getDebouncedInit(), e = this.getPreviewHelper();
|
|
472
|
+
v(() => u(this, null, function* () {
|
|
473
|
+
var s, n, a, o;
|
|
474
|
+
const i = {
|
|
475
|
+
common: (s = this.props.conf) == null ? void 0 : s.common,
|
|
476
|
+
data: (n = this.props.conf) == null ? void 0 : n.data,
|
|
477
|
+
options: (a = this.props.conf) == null ? void 0 : a.options
|
|
478
|
+
};
|
|
479
|
+
if (this.props.mode === "preview" && (yield f(i), Array.isArray((o = this.props.conf) == null ? void 0 : o.data) && this.props.conf.data.length && (this.props.conf.data = yield this.expandAliasData(this.props.conf.data))), yield this.init(), this.props.mode === "preview") {
|
|
480
|
+
if (this.needsHistoryData())
|
|
481
|
+
try {
|
|
482
|
+
const r = yield new (yield import("./history-sXqQNV4S.js")).default().getHistoryData(this.props, this.componentType);
|
|
483
|
+
this.setHistoryData(r);
|
|
484
|
+
} catch (c) {
|
|
485
|
+
console.error(`[${this.componentType}] 获取历史数据失败:`, c);
|
|
486
|
+
}
|
|
487
|
+
this.session.value && this.session.value.registerComponent({
|
|
488
|
+
id: this.props.conf.id,
|
|
489
|
+
request: null,
|
|
490
|
+
onUpdate: (c, r) => {
|
|
491
|
+
c === "realtime" && this.setSocketData(r);
|
|
492
|
+
}
|
|
493
|
+
}), this.onPreview();
|
|
494
|
+
}
|
|
495
|
+
this.setupLinkWatch();
|
|
496
|
+
})), S(() => {
|
|
497
|
+
this.cleanup(), e.unregister(), this.stopLinkWatch();
|
|
498
|
+
}), d(
|
|
499
|
+
() => this.props.conf,
|
|
500
|
+
() => {
|
|
501
|
+
this.props.mode === "edit" && t();
|
|
502
|
+
},
|
|
503
|
+
{ deep: !0 }
|
|
504
|
+
), d(
|
|
505
|
+
() => this.props.theme,
|
|
506
|
+
() => {
|
|
507
|
+
this.init();
|
|
508
|
+
}
|
|
509
|
+
), d(
|
|
510
|
+
() => {
|
|
511
|
+
var i;
|
|
512
|
+
return (i = this.Style.value) == null ? void 0 : i.linkChannel;
|
|
513
|
+
},
|
|
514
|
+
() => {
|
|
515
|
+
this.setupLinkWatch();
|
|
516
|
+
}
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
// ==================== Getter(供模板使用)====================
|
|
520
|
+
/** 获取样式配置 */
|
|
521
|
+
getStyle() {
|
|
522
|
+
return this.Style;
|
|
523
|
+
}
|
|
524
|
+
/** 获取组件类型 */
|
|
525
|
+
getType() {
|
|
526
|
+
return this.componentType;
|
|
527
|
+
}
|
|
528
|
+
// ==================== 全局弹窗联动(通用)====================
|
|
529
|
+
/**
|
|
530
|
+
* 触发弹窗(直接打开/关闭/切换)
|
|
531
|
+
* 预览页会监听 window 的 'mix-modal' 事件并打开对应弹窗图层
|
|
532
|
+
*/
|
|
533
|
+
dispatchModal(t, e, i) {
|
|
534
|
+
this.props.mode === "preview" && window.dispatchEvent(
|
|
535
|
+
new CustomEvent("mix-modal", {
|
|
536
|
+
detail: {
|
|
537
|
+
action: t,
|
|
538
|
+
layerId: e,
|
|
539
|
+
sheetIndex: i != null ? i : -1
|
|
540
|
+
}
|
|
541
|
+
})
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* 按 key 触发弹窗联动(细粒度)
|
|
546
|
+
* 配置位置:conf.modalLink
|
|
547
|
+
* 结构示例:
|
|
548
|
+
* modalLink: {
|
|
549
|
+
* enabled: true,
|
|
550
|
+
* sheetIndex: -1,
|
|
551
|
+
* map: { '离线': { layerId: 'layer_xxx', action: 'show' } }
|
|
552
|
+
* }
|
|
553
|
+
*/
|
|
554
|
+
triggerModalByKey(t) {
|
|
555
|
+
var i, s;
|
|
556
|
+
if (this.props.mode !== "preview") return;
|
|
557
|
+
const e = (i = this.props.conf) == null ? void 0 : i.modalBinding;
|
|
558
|
+
if (e && e.enabled && e.mode === "key") {
|
|
559
|
+
const a = (e.map || {})[t];
|
|
560
|
+
if (!a || !a.layerId) return;
|
|
561
|
+
const o = a.action || "toggle", c = (s = e.sheetIndex) != null ? s : -1;
|
|
562
|
+
this.dispatchModal(o, a.layerId, c);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
export {
|
|
567
|
+
R as B,
|
|
568
|
+
A as p,
|
|
569
|
+
D as u
|
|
570
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nextTick as i } from "vue";
|
|
2
|
-
import { B as s
|
|
3
|
-
import {
|
|
2
|
+
import { B as s } from "./BaseComponent-CNEkz9ZY.js";
|
|
3
|
+
import { E as r, G as a, I as h } from "./index-DEE8_yJs.js";
|
|
4
4
|
import { i as o, d as n } from "./echarts-BVht3HHb.js";
|
|
5
5
|
class g extends s {
|
|
6
6
|
constructor(t, e) {
|
|
@@ -66,7 +66,7 @@ class g extends s {
|
|
|
66
66
|
* 设置尺寸监听
|
|
67
67
|
*/
|
|
68
68
|
setupResizeListener(t) {
|
|
69
|
-
this.erd =
|
|
69
|
+
this.erd = r({ strategy: "scroll" }), this.erd.listenTo(t, () => {
|
|
70
70
|
var e;
|
|
71
71
|
(e = this.chartObj) == null || e.resize();
|
|
72
72
|
});
|
|
@@ -75,13 +75,13 @@ class g extends s {
|
|
|
75
75
|
* 是否有数据源配置
|
|
76
76
|
*/
|
|
77
77
|
hasData() {
|
|
78
|
-
return
|
|
78
|
+
return a(this.props.conf);
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* 获取时间轴数据
|
|
82
82
|
*/
|
|
83
83
|
getTimeAxis() {
|
|
84
|
-
return
|
|
84
|
+
return h(this.Style.value.points, this.props.mode, this.hasData());
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* 更新图表
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("vue"),a=require("./BaseComponent-BuZhrYIx.cjs"),i=require("./index-cqaXvdT8.cjs"),s=require("./echarts-BB8O2KSA.cjs");class h extends a.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(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),r.nextTick(()=>this.initChart())}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=s.init(t),this.setupResizeListener(t));const e=this.getChartOption();this.chartObj.setOption(e,!0)}setupResizeListener(t){this.erd=i.elementResizeDetectorMaker({strategy:"scroll"}),this.erd.listenTo(t,()=>{var e;(e=this.chartObj)==null||e.resize()})}hasData(){return i.hasDataSource(this.props.conf)}getTimeAxis(){return i.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(),s.dispose(this.chartObj),this.chartObj=null)}getEchartId(){return this.echartId}getChartInstance(){return this.chartObj}}exports.EChartComponentBase=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),V=require("./index-cqaXvdT8.cjs"),w={class:"lw-panel-section lw-plan-section"},g={class:"lw-plan-toolbar"},b=["disabled"],y={class:"lw-plan-table"},k={class:"lw-step-no"},x=["onClick"],S={key:0},C=e.defineComponent({__name:"EmergencyPlanPanel",props:{plans:{},currentPlan:{},execution:{}},emits:["select-plan","start-plan","report-warning","complete-step"],setup(o,{emit:m}){var u,d;const a=o,i=m,s=e.ref(String((d=(u=a.currentPlan)==null?void 0:u.warningLevel)!=null?d:4)),r=e.computed(()=>{const n=parseInt(s.value);return a.plans.find(t=>t.warningLevel===n)||null}),c=e.computed(()=>{var n;return a.execution.status!=="idle"&&a.execution.steps.length>0?a.execution.steps:((n=r.value)==null?void 0:n.steps)||[]}),p=e.computed(()=>{const n=a.execution.status;return n==="running"?"lw-status-running":n==="completed"?"lw-status-done":"lw-status-idle"}),E=e.computed(()=>({idle:"未启动",running:"预案进行中",completed:"已完成",aborted:"已中止"})[a.execution.status]||"未启动");function N(){r.value&&i("select-plan",r.value)}function v(n){a.execution.status==="running"&&n.status==="pending"&&i("complete-step",n)}return e.watch(()=>a.currentPlan,n=>{n&&(s.value=String(n.warningLevel))}),(n,t)=>(e.openBlock(),e.createElementBlock("div",w,[t[7]||(t[7]=e.createElementVNode("div",{class:"lw-panel-header"},[e.createElementVNode("span",{class:"lw-panel-title"},"应急预案")],-1)),e.createElementVNode("div",g,[t[4]||(t[4]=e.createElementVNode("span",{class:"lw-plan-label"},"预案执行步骤",-1)),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":t[0]||(t[0]=l=>s.value=l),class:"lw-select lw-select-sm",onChange:N},[...t[3]||(t[3]=[e.createElementVNode("option",{value:"4"},"Ⅳ级预警",-1),e.createElementVNode("option",{value:"3"},"Ⅲ级预警",-1),e.createElementVNode("option",{value:"2"},"Ⅱ级预警",-1),e.createElementVNode("option",{value:"1"},"Ⅰ级预警",-1)])],544),[[e.vModelSelect,s.value]]),e.createElementVNode("span",{class:e.normalizeClass(["lw-plan-status",p.value])},e.toDisplayString(E.value),3),e.createElementVNode("button",{class:"lw-btn-primary lw-btn-sm",disabled:o.execution.status==="running",onClick:t[1]||(t[1]=l=>n.$emit("start-plan"))},e.toDisplayString(o.execution.status==="running"?"预案进行中":"启动预案"),9,b),e.createElementVNode("button",{class:"lw-btn-primary lw-btn-sm lw-btn-warn",onClick:t[2]||(t[2]=l=>n.$emit("report-warning"))},"报告预警情况")]),e.createElementVNode("div",y,[e.createElementVNode("table",null,[t[6]||(t[6]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,"#"),e.createElementVNode("th",null,"步骤"),e.createElementVNode("th",null,"责任人"),e.createElementVNode("th",null,"时限"),e.createElementVNode("th",null,"状态")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,l=>(e.openBlock(),e.createElementBlock("tr",{key:l.stepId},[e.createElementVNode("td",k,e.toDisplayString(l.stepNo),1),e.createElementVNode("td",null,e.toDisplayString(l.stepName),1),e.createElementVNode("td",null,e.toDisplayString(l.responsibleName),1),e.createElementVNode("td",null,e.toDisplayString(l.timeLimitDisplay),1),e.createElementVNode("td",null,[e.createElementVNode("span",{class:e.normalizeClass(["lw-step-status","lw-step-"+l.status]),onClick:P=>v(l)},e.toDisplayString(l.statusText),11,x)])]))),128)),c.value.length===0?(e.openBlock(),e.createElementBlock("tr",S,[...t[5]||(t[5]=[e.createElementVNode("td",{colspan:"5",class:"lw-no-data"},"该等级暂无预案",-1)])])):e.createCommentVNode("",!0)])])])]))}}),f=V._export_sfc(C,[["__scopeId","data-v-2e51d84b"]]);exports.EmergencyPlanPanel=f;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, ref as P, computed as i, watch as S, openBlock as u, createElementBlock as r, createElementVNode as t, withDirectives as L, vModelSelect as h, normalizeClass as g, toDisplayString as a, Fragment as E, renderList as N, createCommentVNode as $ } from "vue";
|
|
2
|
-
import { _ as D } from "./index-
|
|
2
|
+
import { _ as D } from "./index-DEE8_yJs.js";
|
|
3
3
|
const I = { class: "lw-panel-section lw-plan-section" }, V = { class: "lw-plan-toolbar" }, _ = ["disabled"], B = { class: "lw-plan-table" }, T = { class: "lw-step-no" }, z = ["onClick"], F = { key: 0 }, M = /* @__PURE__ */ k({
|
|
4
4
|
__name: "EmergencyPlanPanel",
|
|
5
5
|
props: {
|