mixdashboards 1.0.71 → 1.0.73
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-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
- package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
- package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
- package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
- package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
- package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
- package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
- package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
- package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
- package/dist/UniverSheet-CM-vvc23.cjs +1 -0
- package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
- package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
- package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
- package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
- package/dist/actionItem-Bx4mW0jP.cjs +1 -0
- package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
- package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
- package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
- package/dist/alertTable-hH6HA9pY.cjs +1 -0
- package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
- package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
- package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
- package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
- package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
- package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
- package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
- package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
- package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
- package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
- package/dist/arrayCard-NqoQKcE9.cjs +1 -0
- package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
- package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
- package/dist/audio-Bw-GaYe1.cjs +1 -0
- package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
- package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
- package/dist/bmp-BXaEkkpa.cjs +1 -0
- package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
- package/dist/box-CKuGsh2k.cjs +1 -0
- package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
- package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
- package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
- package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
- package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
- package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
- package/dist/clock-DmWyBpo-.cjs +1 -0
- package/dist/clt-CmPPtp9c.cjs +1 -0
- package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
- package/dist/cmc-8jH3DGv9.cjs +1 -0
- package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
- package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
- package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
- package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
- package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
- package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
- package/dist/conclusionCard-C-TT6znN.cjs +1 -0
- package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
- package/dist/controlList-CIwzKylK.cjs +1 -0
- package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
- package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
- package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
- package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
- package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
- package/dist/crd-Dfl2XKAx.cjs +1 -0
- package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
- package/dist/ctrBtn-OOgL9esv.cjs +1 -0
- package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
- package/dist/ctrSet-CifyJt05.cjs +1 -0
- package/dist/ctrSwitch-6nMHbIE7.js +206 -0
- package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
- package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
- package/dist/dataManagement-sQpuBaDz.cjs +1 -0
- package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
- package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
- package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
- package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
- package/dist/datetime-B66VgJL1.cjs +1 -0
- package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
- package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
- package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
- package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
- package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
- package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
- package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
- package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
- package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
- package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
- package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
- package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
- package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
- package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
- package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
- package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
- package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
- package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
- package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
- package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
- package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
- package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
- package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
- package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
- package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
- package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
- package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
- package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
- package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
- package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
- package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
- package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
- package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
- package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
- package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
- package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
- package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
- package/dist/evn-BcSenXF3.cjs +1 -0
- package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
- package/dist/evolutionChart-CrwR8i40.cjs +1 -0
- package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
- package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
- package/dist/fileViewer-BUuST3Rp.cjs +1 -0
- package/dist/filterBar-BJzjPFFg.cjs +1 -0
- package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
- package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
- package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
- package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
- package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
- package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
- package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
- package/dist/gag-1bvAZ5m6.cjs +1 -0
- package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
- package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
- package/dist/gasStationList-DjJtXnqL.cjs +1 -0
- package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
- package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
- package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
- package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
- package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
- package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
- package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
- package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
- package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
- package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
- package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
- package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
- package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
- package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
- package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
- package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
- package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
- package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
- package/dist/grd-C4hCrpvH.cjs +1 -0
- package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
- package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
- package/dist/grdIndass-CyuRKD5H.cjs +1 -0
- package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
- package/dist/grg-Cuxa17d6.cjs +1 -0
- package/dist/gridview-CKjBuTRq.cjs +1 -0
- package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
- package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
- package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
- package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
- package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
- package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
- package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
- package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
- package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
- package/dist/headerBar-iFe0YQKE.cjs +1 -0
- package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
- package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
- package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
- package/dist/index-DVqMfQVc.cjs +612 -0
- package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
- package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
- package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
- package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
- package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
- package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
- package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
- package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
- package/dist/kpiCard-OLJgA48-.cjs +2 -0
- package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
- package/dist/landslideMap-JTdoQjW-.cjs +1 -0
- package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
- package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
- package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
- package/dist/layerTabs-CdhowHB1.cjs +1 -0
- package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
- package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
- package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
- package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
- package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
- package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
- package/dist/linIndass-CIrObeZT.cjs +2 -0
- package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
- package/dist/lst-BRsEe-Hq.cjs +1 -0
- package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
- package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
- package/dist/manualEntry-C3_WtYz8.cjs +1 -0
- package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
- package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
- package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
- package/dist/mappingList-C5OZ8oUx.cjs +1 -0
- package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
- package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
- package/dist/materialFileUrl-CubtnHeq.js +108 -0
- package/dist/materialFileUrl-DfPNm265.cjs +1 -0
- package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
- package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
- package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
- package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
- package/dist/mixMap-CJzmC0IR.cjs +1 -0
- package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
- package/dist/mixModel-BMRxhvWn.cjs +3 -0
- package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
- package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
- package/dist/mixPie-MAKXeYVp.cjs +2 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
- package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
- package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
- package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
- package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
- package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
- package/dist/monitorData-AkPbhJ9q.cjs +1 -0
- package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
- package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
- package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
- package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
- package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
- package/dist/myValue-BCeycpdO.cjs +1 -0
- package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
- package/dist/myValueList-CAPOW8TK.cjs +1 -0
- package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
- package/dist/objectList-4rYQk5uq.cjs +1 -0
- package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
- package/dist/objectListAPP-DCwTyqFp.js +1864 -0
- package/dist/objectListAPP-Db5beOAM.cjs +1 -0
- package/dist/photo-BV6rkbWO.js +811 -0
- package/dist/photo-D67wLRkY.cjs +1 -0
- package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
- package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
- package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
- package/dist/placeholder-zByzfWaH.cjs +1 -0
- package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
- package/dist/pressBtn-BjqYIPC-.cjs +1 -0
- package/dist/processTable-ByPlSKRJ.cjs +3 -0
- package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
- package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
- package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
- package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
- package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
- package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
- package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
- package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
- package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
- package/dist/rad-BerkC70H.cjs +1 -0
- package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
- package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
- package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
- package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
- package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
- package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
- package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
- package/dist/rangeLin-BQeWFL_E.cjs +3 -0
- package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
- package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
- package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
- package/dist/regionBar-mMaN5NEc.cjs +3 -0
- package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
- package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
- package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
- package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
- package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
- package/dist/retainer2-BQVUhgcH.cjs +1 -0
- package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
- package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
- package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
- package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
- package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
- package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
- package/dist/ringTopN-CsouIsk1.cjs +1 -0
- package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
- package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
- package/dist/sankey-CAuBQaYh.cjs +1 -0
- package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
- package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
- package/dist/scd-qaap6hGW.cjs +1 -0
- package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
- package/dist/sideMenu-D-73DoYb.cjs +1 -0
- package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
- package/dist/slopeStability-CTN6Kpva.cjs +1 -0
- package/dist/speedCurve-C5NoQCjK.cjs +1 -0
- package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
- package/dist/staticLine-BC-zj5yZ.cjs +1 -0
- package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
- package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
- package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
- package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
- package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
- package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
- package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
- package/dist/terminalConfigList-B39cEptG.cjs +1 -0
- package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
- package/dist/terminalList-Vf-Dbybr.cjs +1 -0
- package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
- package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
- package/dist/terminalListAPP-DWArp2D4.js +1366 -0
- package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
- package/dist/textbox-DPoyxB4u.cjs +1 -0
- package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
- package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
- package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
- package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
- package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
- package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
- package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
- package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
- package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
- package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
- package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
- package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
- package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
- package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
- package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
- package/dist/universalTable-D8w7FQbl.cjs +2 -0
- package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
- package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
- package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
- package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
- package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
- package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
- package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
- package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
- package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
- package/dist/vlu-DEo_h1qN.cjs +1 -0
- package/dist/warningOverview-A5AA_vCc.cjs +1 -0
- package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
- package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
- package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
- package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
- package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
- package/package.json +120 -120
- package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
- package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
- package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
- package/dist/actionItem-CFxzHf4E.cjs +0 -1
- package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
- package/dist/alertTable-BREZBeS5.cjs +0 -1
- package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
- package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
- package/dist/aqiIndass-B441j8CT.cjs +0 -3
- package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
- package/dist/arrayCard-B7zb1dFi.cjs +0 -1
- package/dist/audio-BfsYRWbm.cjs +0 -1
- package/dist/bmp-DIkLqzRN.cjs +0 -1
- package/dist/box-kXjrgG2u.cjs +0 -1
- package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
- package/dist/clock-EbmFBRb-.cjs +0 -1
- package/dist/clt-C-9xGiKs.cjs +0 -1
- package/dist/cmc-CFa8Q3tu.cjs +0 -1
- package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
- package/dist/controlList-C1vhlonT.cjs +0 -1
- package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
- package/dist/crd-CgxqxwKV.cjs +0 -1
- package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
- package/dist/ctrSet-B9M4yI53.cjs +0 -1
- package/dist/ctrSwitch-C6dUn_qm.js +0 -206
- package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
- package/dist/dataManagement-CNrEa_zB.cjs +0 -1
- package/dist/datetime-CAyDWKE8.cjs +0 -1
- package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
- package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
- package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
- package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
- package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
- package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
- package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
- package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
- package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
- package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
- package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
- package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
- package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
- package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
- package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
- package/dist/evn-B05d7LtF.cjs +0 -1
- package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
- package/dist/fileViewer-Dy2fdABW.cjs +0 -1
- package/dist/filterBar-CcrUdD-O.cjs +0 -1
- package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
- package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
- package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
- package/dist/gag-CDX99Ta4.cjs +0 -1
- package/dist/gasStationList-Dl9qawf_.cjs +0 -1
- package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
- package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
- package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
- package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
- package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
- package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
- package/dist/grd-DtDoJOOa.cjs +0 -1
- package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
- package/dist/grg-C2qVuXYE.cjs +0 -1
- package/dist/gridview-BLAlr5uj.cjs +0 -1
- package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
- package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
- package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
- package/dist/headerBar-OwCxpc4o.cjs +0 -1
- package/dist/index-D8dh_6Qd.cjs +0 -612
- package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
- package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
- package/dist/kpiCard-oLpk5d4m.cjs +0 -2
- package/dist/landslideMap-CO8o7T8J.cjs +0 -1
- package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
- package/dist/layerTabs-BxRAsklw.cjs +0 -1
- package/dist/linIndass-Bb7UA-zk.cjs +0 -2
- package/dist/lst-Dri1MTDI.cjs +0 -1
- package/dist/manualEntry-D74dgZv8.cjs +0 -1
- package/dist/mappingList-CBN7ArkQ.cjs +0 -1
- package/dist/mixGrid-DTj2pmFW.cjs +0 -1
- package/dist/mixMap-B4T4R6kA.cjs +0 -1
- package/dist/mixModel-BzilRtjf.cjs +0 -3
- package/dist/mixPie-DtQm-LGp.cjs +0 -2
- package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
- package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
- package/dist/monitorData-D_tMbx_Y.cjs +0 -1
- package/dist/myValue-FZPOucSS.cjs +0 -1
- package/dist/myValueList-XIDK3ove.cjs +0 -1
- package/dist/objectList-BtbxHtJj.cjs +0 -1
- package/dist/photo-BITvEhKG.cjs +0 -1
- package/dist/photo-CjulDHTM.js +0 -873
- package/dist/placeholder-3kajeeeb.cjs +0 -1
- package/dist/pressBtn-pUcQtd5n.cjs +0 -1
- package/dist/processTable-CDulvQlu.cjs +0 -3
- package/dist/rad-Dk4PrnyI.cjs +0 -1
- package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
- package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
- package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
- package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
- package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
- package/dist/regionBar-DsxqfirI.cjs +0 -3
- package/dist/retainer1-CSqjvY4k.cjs +0 -1
- package/dist/retainer2-Bqlwvr53.cjs +0 -1
- package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
- package/dist/ringTopN-Bp0er_zV.cjs +0 -1
- package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
- package/dist/sankey-B4BJ4xIo.cjs +0 -1
- package/dist/scd-Dgd3KDpk.cjs +0 -1
- package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
- package/dist/slopeStability-D96aiykf.cjs +0 -1
- package/dist/speedCurve-5nWqVAzz.cjs +0 -1
- package/dist/staticLine-DUCg-0tI.cjs +0 -1
- package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
- package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
- package/dist/terminalConfigList-O881ke5o.cjs +0 -1
- package/dist/terminalList-C9TB2cJH.cjs +0 -1
- package/dist/textbox-BMWnbPvz.cjs +0 -1
- package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
- package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
- package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
- package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
- package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
- package/dist/universalTable-QAb6UKCq.cjs +0 -2
- package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
- package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
- package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
- package/dist/vlu-C0XLDKKk.cjs +0 -1
- package/dist/warningOverview--n7crFnZ.cjs +0 -1
package/package.json
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mixdashboards",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "MixDashboards Display Components - Show, Pro, App",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/mixdashboards.cjs",
|
|
7
|
-
"module": "./dist/mixdashboards.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/mixdashboards.js",
|
|
11
|
-
"require": "./dist/mixdashboards.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./style": "./dist/mixdashboards.css"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"dev": "vite",
|
|
17
|
-
"build": "vite build",
|
|
18
|
-
"build:with-types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist && vite build",
|
|
19
|
-
"build:check": "vue-tsc && vite build",
|
|
20
|
-
"type-check": "vue-tsc --noEmit",
|
|
21
|
-
"prepublishOnly": "pnpm run build"
|
|
22
|
-
},
|
|
23
|
-
"keywords": [
|
|
24
|
-
"mixlinker",
|
|
25
|
-
"dashboard",
|
|
26
|
-
"components",
|
|
27
|
-
"vue3"
|
|
28
|
-
],
|
|
29
|
-
"author": "Mixlinker Technical Team",
|
|
30
|
-
"license": "MIT",
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "http://192.168.88.6/mixiot/v8/frontend/newui/mixdashboards.git"
|
|
34
|
-
},
|
|
35
|
-
"bugs": {
|
|
36
|
-
"url": "http://192.168.88.6/mixiot/v8/frontend/newui/mixdashboards/issues"
|
|
37
|
-
},
|
|
38
|
-
"homepage": "http://192.168.88.6/mixiot/v8/frontend/newui/mixdashboards#readme",
|
|
39
|
-
"files": [
|
|
40
|
-
"dist",
|
|
41
|
-
"README.md",
|
|
42
|
-
"LICENSE"
|
|
43
|
-
],
|
|
44
|
-
"publishConfig": {
|
|
45
|
-
"registry": "https://registry.npmjs.org/"
|
|
46
|
-
},
|
|
47
|
-
"peerDependencies": {
|
|
48
|
-
"@univerjs/preset-sheets-core": "^0.17.0",
|
|
49
|
-
"@univerjs/presets": "^0.17.0",
|
|
50
|
-
"element-plus": "^2.0.0",
|
|
51
|
-
"pinia": "^2.0.0 || ^3.0.0",
|
|
52
|
-
"vue": "^3.4.0"
|
|
53
|
-
},
|
|
54
|
-
"peerDependenciesMeta": {
|
|
55
|
-
"@univerjs/preset-sheets-core": {
|
|
56
|
-
"optional": true
|
|
57
|
-
},
|
|
58
|
-
"@univerjs/presets": {
|
|
59
|
-
"optional": true
|
|
60
|
-
},
|
|
61
|
-
"@ctrl/tinycolor": {
|
|
62
|
-
"optional": true
|
|
63
|
-
},
|
|
64
|
-
"@vueuse/core": {
|
|
65
|
-
"optional": true
|
|
66
|
-
},
|
|
67
|
-
"lodash-unified": {
|
|
68
|
-
"optional": true
|
|
69
|
-
},
|
|
70
|
-
"async-validator": {
|
|
71
|
-
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"@popperjs/core": {
|
|
74
|
-
"optional": true
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"dependencies": {
|
|
78
|
-
"@element-plus/icons-vue": "^2.3.2",
|
|
79
|
-
"axios": "^1.12.2",
|
|
80
|
-
"dayjs": "^1.11.18",
|
|
81
|
-
"decimal.js": "^10.6.0",
|
|
82
|
-
"dxf-parser": "^1.1.2",
|
|
83
|
-
"echarts": "^5.6.0",
|
|
84
|
-
"echarts-gl": "^2.0.9",
|
|
85
|
-
"echarts-stat": "^1.2.0",
|
|
86
|
-
"element-resize-detector": "^1.2.4",
|
|
87
|
-
"flv.js": "^1.6.2",
|
|
88
|
-
"geotiff": "^2.1.3",
|
|
89
|
-
"grid-layout-plus": "^1.1.1",
|
|
90
|
-
"hls.js": "^1.6.16",
|
|
91
|
-
"html2canvas": "^1.4.1",
|
|
92
|
-
"interactjs": "^1.10.27",
|
|
93
|
-
"leaflet": "^1.9.4",
|
|
94
|
-
"qrcode.vue": "^3.6.0",
|
|
95
|
-
"three": "^0.170.0",
|
|
96
|
-
"three-mesh-bvh": "0.8.3",
|
|
97
|
-
"vue-baidu-map-3x": "^1.0.40",
|
|
98
|
-
"vue-i18n": "^10.0.0",
|
|
99
|
-
"vue-router": "^5.0.5",
|
|
100
|
-
"vue3-video-play": "^1.3.1-beta.6"
|
|
101
|
-
},
|
|
102
|
-
"devDependencies": {
|
|
103
|
-
"@types/leaflet": "^1.9.21",
|
|
104
|
-
"@types/node": "^24.7.2",
|
|
105
|
-
"@types/three": "^0.170.0",
|
|
106
|
-
"@vitejs/plugin-vue": "^6.0.1",
|
|
107
|
-
"autoprefixer": "^10.4.24",
|
|
108
|
-
"element-plus": "^2.10.1",
|
|
109
|
-
"pinia": "^
|
|
110
|
-
"postcss": "^8.5.6",
|
|
111
|
-
"sass": "^1.93.2",
|
|
112
|
-
"tailwindcss": "^3.4.19",
|
|
113
|
-
"typescript": "^5.9.3",
|
|
114
|
-
"unplugin-auto-import": "^19.3.0",
|
|
115
|
-
"unplugin-vue-components": "^28.8.0",
|
|
116
|
-
"vite": "^7.1.10",
|
|
117
|
-
"vue": "^3.5.13",
|
|
118
|
-
"vue-tsc": "^3.1.1"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mixdashboards",
|
|
3
|
+
"version": "1.0.73",
|
|
4
|
+
"description": "MixDashboards Display Components - Show, Pro, App",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/mixdashboards.cjs",
|
|
7
|
+
"module": "./dist/mixdashboards.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/mixdashboards.js",
|
|
11
|
+
"require": "./dist/mixdashboards.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./style": "./dist/mixdashboards.css"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "vite",
|
|
17
|
+
"build": "vite build",
|
|
18
|
+
"build:with-types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist && vite build",
|
|
19
|
+
"build:check": "vue-tsc && vite build",
|
|
20
|
+
"type-check": "vue-tsc --noEmit",
|
|
21
|
+
"prepublishOnly": "pnpm run build"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"mixlinker",
|
|
25
|
+
"dashboard",
|
|
26
|
+
"components",
|
|
27
|
+
"vue3"
|
|
28
|
+
],
|
|
29
|
+
"author": "Mixlinker Technical Team",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "http://192.168.88.6/mixiot/v8/frontend/newui/mixdashboards.git"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "http://192.168.88.6/mixiot/v8/frontend/newui/mixdashboards/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "http://192.168.88.6/mixiot/v8/frontend/newui/mixdashboards#readme",
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"README.md",
|
|
42
|
+
"LICENSE"
|
|
43
|
+
],
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"registry": "https://registry.npmjs.org/"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@univerjs/preset-sheets-core": "^0.17.0",
|
|
49
|
+
"@univerjs/presets": "^0.17.0",
|
|
50
|
+
"element-plus": "^2.0.0",
|
|
51
|
+
"pinia": "^2.0.0 || ^3.0.0",
|
|
52
|
+
"vue": "^3.4.0"
|
|
53
|
+
},
|
|
54
|
+
"peerDependenciesMeta": {
|
|
55
|
+
"@univerjs/preset-sheets-core": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
58
|
+
"@univerjs/presets": {
|
|
59
|
+
"optional": true
|
|
60
|
+
},
|
|
61
|
+
"@ctrl/tinycolor": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"@vueuse/core": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"lodash-unified": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"async-validator": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"@popperjs/core": {
|
|
74
|
+
"optional": true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"dependencies": {
|
|
78
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
79
|
+
"axios": "^1.12.2",
|
|
80
|
+
"dayjs": "^1.11.18",
|
|
81
|
+
"decimal.js": "^10.6.0",
|
|
82
|
+
"dxf-parser": "^1.1.2",
|
|
83
|
+
"echarts": "^5.6.0",
|
|
84
|
+
"echarts-gl": "^2.0.9",
|
|
85
|
+
"echarts-stat": "^1.2.0",
|
|
86
|
+
"element-resize-detector": "^1.2.4",
|
|
87
|
+
"flv.js": "^1.6.2",
|
|
88
|
+
"geotiff": "^2.1.3",
|
|
89
|
+
"grid-layout-plus": "^1.1.1",
|
|
90
|
+
"hls.js": "^1.6.16",
|
|
91
|
+
"html2canvas": "^1.4.1",
|
|
92
|
+
"interactjs": "^1.10.27",
|
|
93
|
+
"leaflet": "^1.9.4",
|
|
94
|
+
"qrcode.vue": "^3.6.0",
|
|
95
|
+
"three": "^0.170.0",
|
|
96
|
+
"three-mesh-bvh": "0.8.3",
|
|
97
|
+
"vue-baidu-map-3x": "^1.0.40",
|
|
98
|
+
"vue-i18n": "^10.0.0",
|
|
99
|
+
"vue-router": "^5.0.5",
|
|
100
|
+
"vue3-video-play": "^1.3.1-beta.6"
|
|
101
|
+
},
|
|
102
|
+
"devDependencies": {
|
|
103
|
+
"@types/leaflet": "^1.9.21",
|
|
104
|
+
"@types/node": "^24.7.2",
|
|
105
|
+
"@types/three": "^0.170.0",
|
|
106
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
107
|
+
"autoprefixer": "^10.4.24",
|
|
108
|
+
"element-plus": "^2.10.1",
|
|
109
|
+
"pinia": "^3.0.4",
|
|
110
|
+
"postcss": "^8.5.6",
|
|
111
|
+
"sass": "^1.93.2",
|
|
112
|
+
"tailwindcss": "^3.4.19",
|
|
113
|
+
"typescript": "^5.9.3",
|
|
114
|
+
"unplugin-auto-import": "^19.3.0",
|
|
115
|
+
"unplugin-vue-components": "^28.8.0",
|
|
116
|
+
"vite": "^7.1.10",
|
|
117
|
+
"vue": "^3.5.13",
|
|
118
|
+
"vue-tsc": "^3.1.1"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
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 n=r=>{try{c(s.next(r))}catch(a){i(a)}},o=r=>{try{c(s.throw(r))}catch(a){i(a)}},c=r=>r.done?e(r.value):Promise.resolve(r.value).then(n,o);c((s=s.apply(u,t)).next())});const f=require("vue"),h=require("./index-D8dh_6Qd.cjs"),R=(u,t,s,e,i)=>b(null,null,function*(){try{const o=yield new(yield Promise.resolve().then(()=>require("./history-9ToM-rJ6.cjs"))).default().getHistoryData(u,i);s(o)}catch(n){console.error("获取历史数据时出错:",n)}finally{if(t){const{formatRequest:n}=yield Promise.resolve().then(()=>require("./request-DU8pRyvu.cjs")),o=n(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,n=i.useAlias||!1,o=i.multiObject||!1,c=sessionStorage.getItem(h.ALIAS_MAPPING_KEY),r=JSON.parse(c||"{}"),a=o?t.object_alias:i.object_alias,l=o?t.object_id:i.object_id;t.object_id=n?a?r[a]: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 n=s.fv,o="time";e.data.push(i[n]),e.time.push(h.dayjs(i[o]).format("YYYY-MM-DD HH:mm:ss"))})}postMosaicBatchMerged(t,s,e){var a;const i=[],n=new Set;for(const{item:l}of s){const p=l.fv;p&&!n.has(p)&&(n.add(p),i.push(p))}const o=(a=s[0])==null?void 0:a.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,n=e.source||"mosaic",o=i.points||1;this.applyHistoryObjectResolution(t);const c=this[`${n}Result`],r=(l=c==null?void 0:c.call(this,t,o))!=null?l:null,a={data:[],time:[]};return r==null?Promise.resolve(a):new Promise(p=>{h.api.platform(m=>{m.result.data.forEach(d=>{const y=["statistics","calculate"].includes(n)?"data":t.fv,v=["statistics","calculate"].includes(n)?"start_time":"time";a.data.push(d[y]),a.time.push(h.dayjs(d[v]).format("YYYY-MM-DD HH:mm:ss"))}),p(a)},r)})}initHistory(){return b(this,null,function*(){const{data:t,common:s,options:e}=this.props.conf,i=s.source||"mosaic",n=e.points||1;if(i!=="mosaic")return Promise.all(t.map(a=>this.postDataItem(a)));const o=t.length,c=new Array(o),r=new Map;for(let a=0;a<o;a++){const l=t[a];if(this.applyHistoryObjectResolution(l),this.mosaicResult(l,n)==null){c[a]={data:[],time:[]};continue}const m=this.mosaicBucketKey(l,n);let d=r.get(m);d||(d=[],r.set(m,d)),d.push({index:a,item:l})}return yield Promise.all(Array.from(r.values()).map(a=>this.postMosaicBatchMerged(n,a,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 n;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(a=>b(this,null,function*(){return{item:a,objectIds:yield this.resolveObjectIds(a)}})))).forEach(({item:a,objectIds:l})=>{l.length>1&&c.set(String((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)||""),l),l.forEach(p=>{!p||o.has(p)||(o.add(p),this.subscribeBySource(e,p,a.uid))})})}else{const o=yield this.resolveObjectId(),c=(n=i==null?void 0:i[0])==null?void 0:n.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 n={event:t,block:s,object_id:e};i&&Object.assign(n,i);const o=this.isLocalIotSubscribeMode()?{action:"sub_event",block_mapping:"mmq",event:n}:{action:"sub_agent_event",event:n},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})}subscribeMmqEvent(t,s,e=""){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const i={event:t,block:s,object_id:e};e||Reflect.deleteProperty(i,"object_id");const n={action:"sub_event",block_mapping:"mmq",event:i},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(n)),this.session.value.send({type:"send_message",message:n})}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,n;const e=(n=(i=this.props.conf)==null?void 0:i.options)==null?void 0:n[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: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);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 n of s){if(!n||typeof n!="object"){e.push(n);continue}const o={common:n,data:[n],options:(i=this.props.conf)==null?void 0:i.options};if(!String(n.object_alias||n.alias||"").trim()){e.push(n);continue}if(!(yield h.loadAliasMappingFromJsonIfNeeded(o))){e.push(n);continue}const r=h.expandAliasItems([n]);r.length>0?e.push(...r):e.push(n)}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,n,o,c;const e={common:(i=this.props.conf)==null?void 0:i.common,data:(n=this.props.conf)==null?void 0:n.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,a)=>{if(r==="realtime"){let l=a;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 +0,0 @@
|
|
|
1
|
-
"use strict";var q=Object.create;var C=Object.defineProperty,j=Object.defineProperties,Z=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var U=(t,e,i)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,O=(t,e)=>{for(var i in e||(e={}))E.call(e,i)&&U(t,i,e[i]);if(N)for(var i of N(e))G.call(e,i)&&U(t,i,e[i]);return t},V=(t,e)=>j(t,$(e));var W=(t,e,i,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of F(e))!E.call(t,l)&&l!==i&&C(t,l,{get:()=>e[l],enumerable:!(a=Z(e,l))||a.enumerable});return t};var m=(t,e,i)=>(i=t!=null?q(P(t)):{},W(e||!t||!t.__esModule?C(i,"default",{value:t,enumerable:!0}):i,t));var w=(t,e,i)=>new Promise((a,l)=>{var c=n=>{try{v(i.next(n))}catch(r){l(r)}},u=n=>{try{v(i.throw(n))}catch(r){l(r)}},v=n=>n.done?a(n.value):Promise.resolve(n.value).then(c,u);v((i=i.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),J=require("./BaseComponent-CNXUpPY1.cjs"),K=require("./index-D8dh_6Qd.cjs"),Q=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-gridview-icon-D3GcssP6.cjs"),X={class:"mix-body"},Y={key:0,class:"univer-placeholder"},ee={class:"placeholder-tip"},te={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"Univer表格",NAME_EN:"Univer Sheet",ORDER:2},oe={bgColor:"#ffffff",titleColor:"#111",titleSize:14,radiusSize:8,isHideTitle:!1,showToolbar:!0,ribbonType:"simple",locale:"zh-CN"},ie={DEFAULT:te,OPTIONS:oe},le=o.defineComponent(V(O({},ie),{__name:"UniverSheet",props:{conf:{type:Object,default:()=>({name:"Univer表格"})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(t){const e=t,i=o.ref(null),a=o.ref(!1),l=o.ref("");let c=null,u=null;class v extends J.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showToolbar:this.getOptionValue("showToolbar",!0),ribbonType:this.getOptionValue("ribbonType","simple"),locale:this.getOptionValue("locale","zh-CN")}}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const n=new v(e,"univerSheet");n.setupLifecycle();const r=n.getStyle(),z=o.computed(()=>Q.generateTitleStyle(e.conf.options)),B=o.computed(()=>{var s,p,f,h;return{background:(p=(s=r.value)==null?void 0:s.bgColor)!=null?p:"#ffffff",borderRadius:`${(h=(f=r.value)==null?void 0:f.radiusSize)!=null?h:8}px`}});function x(){return w(this,null,function*(){var p,f,h;const s=i.value;if(s)try{const d=`univer-sheet-${e.uid||Math.random().toString(36).slice(2,8)}`;s.id=d;const{createUniver:I,LocaleType:S,mergeLocales:T}=yield import("@univerjs/presets"),{UniverSheetsCorePreset:M}=yield import("@univerjs/preset-sheets-core"),A=yield import("@univerjs/preset-sheets-core/locales/zh-CN").then(b=>b.default).catch(()=>({})),H=yield import("@univerjs/preset-sheets-core/locales/en-US").then(b=>b.default).catch(()=>({}));yield import("@univerjs/preset-sheets-core/lib/index.css");const L=((p=r.value)==null?void 0:p.locale)==="zh-CN"?S.ZH_CN:S.EN_US,y=((f=r.value)==null?void 0:f.showToolbar)!==!1,_=((h=r.value)==null?void 0:h.ribbonType)||"simple",{univer:R,univerAPI:g}=I({locale:L,locales:{[S.EN_US]:T(H),[S.ZH_CN]:T(A)},presets:[M({container:d,header:y,toolbar:y,formulaBar:y,footer:!1,ribbonType:_==="collapsed"?"collapsed":_==="classic"?"classic":"simple"})]});g.createWorkbook({sheetOrder:["sheet1"],sheets:{sheet1:{id:"sheet1",name:"Sheet1",rowCount:50,columnCount:26,cellData:{0:{0:{v:"月份",t:1},1:{v:"收入",t:1},2:{v:"支出",t:1},3:{v:"利润",t:1}},1:{0:{v:"一月",t:1},1:{v:1e4,t:2},2:{v:6e3,t:2},3:{v:4e3,t:2}},2:{0:{v:"二月",t:1},1:{v:12e3,t:2},2:{v:7e3,t:2},3:{v:5e3,t:2}},3:{0:{v:"三月",t:1},1:{v:11e3,t:2},2:{v:6500,t:2},3:{v:4500,t:2}},4:{0:{v:"合计",t:1},1:{f:"=SUM(B2:B4)",t:2},2:{f:"=SUM(C2:C4)",t:2},3:{f:"=SUM(D2:D4)",t:2}}}}}}),c=R,u=g,a.value=!0}catch(d){console.error("[UniverSheet] init error:",d),l.value=(d==null?void 0:d.message)||"请安装 @univerjs/presets 与 @univerjs/preset-sheets-core"}})}function D(){try{c==null||c.dispose(),u==null||u.dispose()}catch(s){}c=null,u=null,a.value=!1}return o.onMounted(()=>{o.nextTick(()=>x())}),o.onBeforeUnmount(()=>{D()}),(s,p)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component univer-sheet-wrap",style:o.normalizeStyle(B.value)},[o.unref(r).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(z.value)},o.toDisplayString(t.conf.caption||t.conf.name||"Univer表格"),5)),o.createElementVNode("div",X,[a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Y,[o.createElementVNode("span",ee,o.toDisplayString(l.value||"加载表格…"),1)])),o.createElementVNode("div",{ref_key:"containerRef",ref:i,class:"univer-container"},null,512)]),o.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),ne=K._export_sfc(le,[["__scopeId","data-v-fb33a4b0"]]);exports.default=ne;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";var z=Object.defineProperty,I=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var k=(y,s,i)=>s in y?z(y,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[s]=i,w=(y,s)=>{for(var i in s||(s={}))R.call(s,i)&&k(y,i,s[i]);if(N)for(var i of N(s))P.call(s,i)&&k(y,i,s[i]);return y},A=(y,s)=>I(y,q(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const _=require("./index-D8dh_6Qd.cjs"),U=require("./EChartComponentBase-D4wMej9X.cjs");require("./index-mAPVa0s4.cjs");const T=require("./ele-lin-icon-Dke_1AmT.cjs"),$=require("./echarts-BB8O2KSA.cjs"),G={class:"acceleration-chart-wrapper"},W={class:"toolbar"},Q={class:"toolbar-left"},X={class:"toolbar-center"},Z={class:"toolbar-right"},J={class:"chart-header"},K={class:"chart-title"},ee={class:"chart-legend"},te={class:"legend-text"},ae={class:"y-axis-unit"},oe={class:"chart-body"},le=["id"],re={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"加速度监测",NAME_EN:"Acceleration Chart",ORDER:10},ne={unit:{value:"mm",type:"string",label:"component.accelerationChart.unit"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},gridLineColor:{value:"#e5e5e5",type:"color",label:"component.accelerationChart.gridLineColor"},points:{value:50,type:"number",label:"component.options.points",min:10,max:200},lineType:{value:"smooth",type:"select",label:"component.accelerationChart.lineType",options:[{label:"平滑曲线",value:"smooth"},{label:"折线",value:"line"},{label:"阶梯线",value:"step"}]},showSymbol:{value:!1,type:"checkbox",label:"component.accelerationChart.showSymbol"},lineWidth:{value:1.5,type:"number",label:"component.accelerationChart.lineWidth",min:1,max:5},yMax:{value:30,type:"number",label:"component.line.yMax"},yMin:{value:-20,type:"number",label:"component.line.yMin"},areaList:{value:"内排,外排,边坡,平台",type:"string",label:"component.accelerationChart.areaList"}},se=[{name:"GPS01",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS02",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS03",area:"外排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]}],ce=["name","area","object_id","curves"],ie=["name","fv","color"],ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],de={useAlias:!1,multiObject:!0,source:"mosaic"},me={DEFAULT:re,OPTIONS:ne,DATA:se,PARAMS:ce,SOURCE:ue,COMMON:de,CURVE_PARAMS:ie},fe=t.defineComponent(A(w({},me),{__name:"accelerationChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(y){t.useCssVars(o=>({v3cfd941c:t.unref(V).bgColor,ea31b698:t.unref(V).textColor}));const s=y,i=t.ref(""),M=t.computed(()=>{var l,c,d,m;const o=((l=s.conf)==null?void 0:l.data)||[],e=new Set;return o.forEach(n=>{n.area&&e.add(n.area)}),e.size===0?(((m=(d=(c=s.conf)==null?void 0:c.options)==null?void 0:d.areaList)==null?void 0:m.value)||"内排,外排,边坡,平台").split(",").map(r=>r.trim()).filter(r=>r):Array.from(e)});t.watch(M,o=>{o.length>0&&!i.value&&(i.value=o[0])},{immediate:!0});const H=()=>{console.log("区域切换:",i.value);const o=E.value;o.length>0?v.value=o[0].value:v.value="",S()},v=t.ref(""),E=t.computed(()=>{var l;return(((l=s.conf)==null?void 0:l.data)||[]).filter(c=>c.area?c.area===i.value:!0).map(c=>({label:c.name,value:c.name}))});t.watch(E,o=>{o.length>0&&!v.value&&(v.value=o[0].value)},{immediate:!0});const L=t.computed(()=>{var e;const o=((e=s.conf)==null?void 0:e.data)||[];return o.find(l=>l.name===v.value)||o[0]||null}),D=t.computed(()=>{const o=L.value;return o?o.curves||[]:[]}),F=t.ref("7days"),x=t.ref(_.dayjs().subtract(7,"day").format("YYYY-MM-DD HH:mm:ss")),b=t.ref(_.dayjs().format("YYYY-MM-DD HH:mm:ss")),B=o=>{const e=_.dayjs();switch(o){case"today":x.value=e.startOf("day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break;case"7days":x.value=e.subtract(7,"day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break;case"30days":x.value=e.subtract(30,"day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break}S()},S=()=>{console.log("查询数据:",{area:i.value,device:v.value,startTime:x.value,endTime:b.value}),p.updateChartData(D.value)},O=()=>{console.log("导出数据:",{area:i.value,device:v.value,startTime:x.value,endTime:b.value})};t.watch(v,()=>{p.updateChartData(D.value)});class j extends U.EChartComponentBase{constructor(){super(...arguments),this.historyData=new Map,this.xAxisData=[]}extractStyles(){var l,c,d,m,n,r,a,u,f,h,C;const{options:e}=this.props.conf;return{unit:((l=e==null?void 0:e.unit)==null?void 0:l.value)||"mm",bgColor:((c=e==null?void 0:e.bgColor)==null?void 0:c.value)||"#ffffff",textColor:((d=e==null?void 0:e.textColor)==null?void 0:d.value)||"#333333",gridLineColor:((m=e==null?void 0:e.gridLineColor)==null?void 0:m.value)||"#e5e5e5",points:((n=e==null?void 0:e.points)==null?void 0:n.value)||50,lineType:((r=e==null?void 0:e.lineType)==null?void 0:r.value)||"smooth",showSymbol:(u=(a=e==null?void 0:e.showSymbol)==null?void 0:a.value)!=null?u:!1,lineWidth:((f=e==null?void 0:e.lineWidth)==null?void 0:f.value)||1.5,yMax:((h=e==null?void 0:e.yMax)==null?void 0:h.value)||30,yMin:((C=e==null?void 0:e.yMin)==null?void 0:C.value)||-20}}getDefaultData(){return[{name:"GPS01",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS02",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS03",area:"外排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]}]}generateMockData(e,l=0,c=15){const d=[];let m=Math.random()*Math.PI*2;for(let n=0;n<e;n++){const r=(Math.random()-.5)*c*.5,a=Math.sin(m+n*.15)*c*.6,u=l+a+r;d.push(parseFloat(u.toFixed(1)))}return d}getChartOption(e=[]){const l=this.extractStyles(),c=l.points;this.xAxisData=_.getxAxisDataTime(c,this.props.mode,!1);const m=(e.length>0?e:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]).map((n,r)=>{const a=`${v.value}_${n.name}`;let u=this.historyData.get(a);if(!u||u.length===0){const h=[15,-12,-11,19,22];u=this.generateMockData(c,h[r]||0,2),this.historyData.set(a,u)}const f={name:n.name,type:"line",symbol:l.showSymbol?"circle":"none",symbolSize:4,data:u,lineStyle:{width:l.lineWidth,color:n.color},itemStyle:{color:n.color}};return l.lineType==="smooth"?f.smooth=!0:(l.lineType==="step"&&(f.step="middle"),f.smooth=!1),f});return{grid:{left:50,right:20,top:20,bottom:70},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:n=>{let r=`<div style="font-weight:bold;margin-bottom:5px">${n[0].axisValue}</div>`;return n.forEach(a=>{r+=`<div style="display:flex;align-items:center;gap:5px">
|
|
2
|
-
${a.marker}
|
|
3
|
-
<span>${a.seriesName}:</span>
|
|
4
|
-
<span style="font-weight:bold">${a.value} ${l.unit}</span>
|
|
5
|
-
</div>`}),r}},xAxis:{type:"category",data:this.xAxisData,axisLine:{lineStyle:{color:l.gridLineColor}},axisLabel:{color:l.textColor,fontSize:11,rotate:0,formatter:n=>{if(n.includes(" ")){const r=n.split(" ");return r[0].substring(5)+`
|
|
6
|
-
`+r[1].substring(0,5)}return n}},splitLine:{show:!1}},yAxis:{type:"value",max:l.yMax,min:l.yMin,axisLine:{show:!1},axisLabel:{color:l.textColor,fontSize:11},splitLine:{lineStyle:{color:l.gridLineColor,type:"solid"}}},dataZoom:[{type:"slider",show:!0,xAxisIndex:[0],bottom:5,height:30,start:0,end:100,borderColor:"#ddd",backgroundColor:"#f5f5f5",fillerColor:"rgba(65, 105, 225, 0.15)",showDetail:!0,showDataShadow:!0,realtime:!0,textStyle:{color:"#666",fontSize:11},handleIcon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z",handleSize:"80%",handleStyle:{color:"#fff",borderColor:"#aaa",borderWidth:1,shadowBlur:2,shadowColor:"rgba(0,0,0,0.2)",shadowOffsetX:1,shadowOffsetY:1},dataBackground:{lineStyle:{color:"#8392A5",width:1},areaStyle:{color:"rgba(131, 146, 165, 0.2)"}},selectedDataBackground:{lineStyle:{color:"#4169E1",width:1},areaStyle:{color:"rgba(65, 105, 225, 0.1)"}}},{type:"inside",xAxisIndex:[0],start:0,end:100}],series:m}}setHistoryData(e){const{data:l,common:c}=this.props.conf;if(!l.some(r=>r.object_id&&r.fv))return;const m=c.source||"mosaic";["statistics","calculate"].includes(m)&&(e=_.formatStatisticsResult(e,l));let n=_.handleNullData(e,this.props,"history");l.forEach((r,a)=>{if(!(!r.object_id||!r.fv))try{const u=n.history[a]||[],f=u.map(h=>{var C;return(C=h[r.fv])!=null?C:0});this.historyData.set(r.name,f),a===0&&u.length>0&&(this.xAxisData=u.map(h=>h.time))}catch(u){}}),this.updateChartData()}setSocketData(e){if(!e)return;const{data:l}=this.props.conf;if(!l.some(r=>r.object_id&&r.fv))return;const d=this.extractStyles().points,n=this.getSource()==="mosaic"?e.datetime:e.start_time;l.forEach(r=>{!r.object_id||!r.curves||r.curves.forEach(a=>{if(!a.fv)return;const u=this.extractDataValue(e,a.fv);if(u!=null){const f=`${r.name}_${a.name}`;let h=this.historyData.get(f)||[];h.push(u),h.length>d&&h.shift(),this.historyData.set(f,h)}})}),n&&(this.xAxisData.push(n),this.xAxisData.length>d&&this.xAxisData.shift()),this.updateChartData()}updateChartData(e=[]){this.chartObj&&this.chartObj.setOption(this.getChartOption(e),!0)}}const p=new j(s,"accelerationChart");(!s.conf.data||s.conf.data.length===0)&&(s.conf.data=p.getDefaultData()),p.setupLifecycle();const V=p.getStyle(),Y=p.getEchartId();return t.onMounted(()=>{t.nextTick(()=>{const o=document.getElementById(Y);if(o){const e=$.init(o);e.setOption(p.getChartOption(D.value)),p.chartObj=e}})}),t.watch(()=>{var o;return(o=s.conf)==null?void 0:o.data},()=>{t.nextTick(()=>p.updateChartData(D.value))},{deep:!0}),t.watch(()=>{var o;return(o=s.conf)==null?void 0:o.socketData},o=>{o&&p.setSocketData(o)}),(o,e)=>{const l=g.ElOption,c=g.ElSelect,d=g.ElRadioButton,m=g.ElRadioGroup,n=g.ElDatePicker,r=g.ElButton;return t.openBlock(),t.createElementBlock("div",G,[t.createElementVNode("div",W,[t.createElementVNode("div",Q,[e[5]||(e[5]=t.createElementVNode("span",{class:"toolbar-label"},"区域",-1)),t.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a),class:"area-select",size:"small",onChange:H},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(M.value,a=>(t.openBlock(),t.createBlock(l,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[6]||(e[6]=t.createElementVNode("span",{class:"toolbar-label"},"设备",-1)),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=a=>v.value=a),class:"device-select",size:"small"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.value,a=>(t.openBlock(),t.createBlock(l,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",X,[t.createVNode(m,{modelValue:F.value,"onUpdate:modelValue":e[2]||(e[2]=a=>F.value=a),size:"small",onChange:B},{default:t.withCtx(()=>[t.createVNode(d,{label:"today"},{default:t.withCtx(()=>[...e[7]||(e[7]=[t.createTextVNode("今天",-1)])]),_:1}),t.createVNode(d,{label:"7days"},{default:t.withCtx(()=>[...e[8]||(e[8]=[t.createTextVNode("近7天",-1)])]),_:1}),t.createVNode(d,{label:"30days"},{default:t.withCtx(()=>[...e[9]||(e[9]=[t.createTextVNode("近30天",-1)])]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",Z,[e[12]||(e[12]=t.createElementVNode("span",{class:"toolbar-label"},"开始时间",-1)),t.createVNode(n,{modelValue:x.value,"onUpdate:modelValue":e[3]||(e[3]=a=>x.value=a),type:"datetime",size:"small",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",class:"datetime-picker"},null,8,["modelValue"]),e[13]||(e[13]=t.createElementVNode("span",{class:"toolbar-label"},"结束时间",-1)),t.createVNode(n,{modelValue:b.value,"onUpdate:modelValue":e[4]||(e[4]=a=>b.value=a),type:"datetime",size:"small",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",class:"datetime-picker"},null,8,["modelValue"]),t.createVNode(r,{type:"primary",size:"small",onClick:S},{default:t.withCtx(()=>[...e[10]||(e[10]=[t.createTextVNode("查询",-1)])]),_:1}),t.createVNode(r,{size:"small",onClick:O},{default:t.withCtx(()=>[...e[11]||(e[11]=[t.createTextVNode("导出",-1)])]),_:1})])]),t.createElementVNode("div",J,[t.createElementVNode("div",K,t.toDisplayString(v.value),1),t.createElementVNode("div",ee,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,a=>(t.openBlock(),t.createElementBlock("div",{key:a.name,class:"legend-item"},[t.createElementVNode("span",{class:"legend-marker",style:t.normalizeStyle({backgroundColor:a.color})},[t.createElementVNode("span",{class:"legend-icon",style:t.normalizeStyle({borderColor:a.color})},null,4)],4),t.createElementVNode("span",te,t.toDisplayString(a.name),1)]))),128))])]),t.createElementVNode("div",ae,t.toDisplayString(t.unref(V).unit),1),t.createElementVNode("div",oe,[t.createElementVNode("div",{id:t.unref(Y),class:"chart-container"},null,8,le)]),t.renderSlot(o.$slots,"default",{},void 0,!0)])}}})),he=_._export_sfc(fe,[["__scopeId","data-v-58581516"]]);exports.default=he;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var G=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var A=(k,t,o)=>t in k?G(k,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):k[t]=o,O=(k,t)=>{for(var o in t||(t={}))Y.call(t,o)&&A(k,o,t[o]);if(B)for(var o of B(t))Z.call(t,o)&&A(k,o,t[o]);return k},T=(k,t)=>Q(k,X(t));var J=(k,t,o)=>new Promise((s,n)=>{var i=l=>{try{h(o.next(l))}catch(b){n(b)}},p=l=>{try{h(o.throw(l))}catch(b){n(b)}},h=l=>l.done?s(l.value):Promise.resolve(l.value).then(i,p);h((o=o.apply(k,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/empty/style/css");const e=require("vue"),c=require("element-plus"),$=require("@element-plus/icons-vue"),z=require("./index-D8dh_6Qd.cjs"),ee=require("./BaseComponent-CNXUpPY1.cjs"),te=require("./titleStyle-NSnz6cUg.cjs"),q=require("./ele-crd-icon-BvNgAPKW.cjs");class re extends ee.BaseComponent{constructor(t){super(t,"actionItem"),this.formData=e.reactive({}),this.showJsonEditor=e.ref(!1),this.jsonInput=e.ref("")}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",100),isHideTitle:this.getOptionValue("isHideTitle",!1),showButtons:this.getOptionValue("showButtons",!0)}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const t=this.props.conf.data;t&&typeof t=="object"&&((o=t.params)!=null&&o.length)&&this.parseBackendData(t),this.initFormData()}getParams(){var t;return Array.isArray((t=this.props.conf)==null?void 0:t.params)?this.props.conf.params:[]}get hasParams(){return this.getParams().length>0}getVisibleParams(){return this.getParams().filter(t=>t.form_type!=="hidden"&&!this.isFieldHidden(t))}getFormRules(){const t={},o=(s,n="")=>{s.forEach(i=>{const p=n?`${n}.${i.key}`:i.key;if(i.form_type==="sub_form"&&i.properties&&!i.items){o(i.properties,p);return}if(i.form_type==="sub_form"&&i.items)return;const h=this.buildValidationRules(i);h.length&&(t[p]=h)})};return o(this.getParams()),t}initFormData(){var o,s;const t=(s=(o=this.props.conf)==null?void 0:o.data)==null?void 0:s.values;this.getParams().forEach(n=>{t&&t[n.key]!==void 0?this.formData[n.key]=t[n.key]:this.formData[n.key]=this.getDefaultValue(n)})}resetForm(){this.initFormData()}getDefaultValue(t){var o,s;if(t.form_type==="sub_form"&&t.properties&&!t.items){const n={};return t.properties.forEach(i=>{n[i.key]=this.getDefaultValue(i)}),n}return t.form_type==="sub_form"&&t.items?Array.isArray(t.default_value)?t.default_value:[]:t.form_type==="checkbox_group"?Array.isArray(t.default_value)?t.default_value:[]:t.default_value!==null&&t.default_value!==void 0?t.default_value:t.form_type==="switch"?!1:t.form_type==="number"?(s=(o=t.format)==null?void 0:o.min)!=null?s:0:""}buildValidationRules(t){const o=[];t.required&&o.push({required:!0,message:`请输入${t.cn_name}`,trigger:"blur"});const s=t.format;return s&&(s.pattern&&o.push({pattern:new RegExp(s.pattern),message:`${t.cn_name}格式不正确`,trigger:"blur"}),(s.min_length||s.max_length)&&o.push({min:s.min_length,max:s.max_length,message:s.min_length&&s.max_length?`长度在 ${s.min_length} 到 ${s.max_length} 个字符`:s.min_length?`最少 ${s.min_length} 个字符`:`最多 ${s.max_length} 个字符`,trigger:"blur"})),o}isFieldHidden(t){var o,s,n,i;if(!((o=t.rules)!=null&&o.length))return!1;for(const p of t.rules){const h=this.formData[(s=p.related_key)==null?void 0:s.split(".")[0]],l=(n=p.conditions)==null?void 0:n.find(b=>b.value===h);if((i=l==null?void 0:l.property)!=null&&i.hidden)return!0}return!1}isFieldDisabled(t){var o,s,n,i;if(!((o=t.rules)!=null&&o.length))return!1;for(const p of t.rules){const h=this.formData[(s=p.related_key)==null?void 0:s.split(".")[0]],l=(n=p.conditions)==null?void 0:n.find(b=>b.value===h);if((i=l==null?void 0:l.property)!=null&&i.disabled)return!0}return!1}getFieldOptions(t){var s,n;let o=t.enum||[];if(t.rules)for(const i of t.rules){if(!i.related_key)continue;const p=this.formData[i.related_key],h=(s=i.conditions)==null?void 0:s.find(l=>l.value===p);if((n=h==null?void 0:h.property)!=null&&n.enum){o=h.property.enum;break}}return o}onFieldChange(t){this.getParams().forEach(o=>{if(o.rules)for(const s of o.rules)s.related_key===t.key&&(this.formData[o.key]=o.form_type==="checkbox_group"?[]:o.form_type==="switch"?!1:"")})}addSubItem(t){var n;Array.isArray(this.formData[t.key])||(this.formData[t.key]=[]);const o=((n=t.items)==null?void 0:n.properties)||t.properties||[],s={};o.forEach(i=>{s[i.key]=this.getDefaultValue(i)}),this.formData[t.key].push(s)}removeSubItem(t,o){var s;(s=this.formData[t])==null||s.splice(o,1)}getSubFieldOptions(t,o){var s,n,i;if((s=t.enum)!=null&&s.length)return t.enum;if(t.rules)for(const p of t.rules){if(!p.related_key)continue;const h=p.related_key.split(".").pop(),l=(n=p.conditions)==null?void 0:n.find(b=>b.value===o[h]);if((i=l==null?void 0:l.property)!=null&&i.enum)return l.property.enum}return[]}onSubFieldChange(t,o,s){var i;(((i=t.items)==null?void 0:i.properties)||t.properties||[]).forEach(p=>{var h;if(p.rules)for(const l of p.rules)((h=l.related_key)==null?void 0:h.split(".").pop())===o.key&&(s[p.key]="")})}applyJson(){try{const t=JSON.parse(this.jsonInput.value);if(t.params&&Array.isArray(t.params))this.props.conf.action_name=t.action_name||"表单",this.props.conf.description=t.description||"",this.props.conf.params=t.params,this.props.conf.data=t,this.initFormData();else if(Array.isArray(t))this.props.conf.params=t,this.props.conf.data={params:t},this.initFormData();else if(t.key&&t.form_type)this.props.conf.params=[t],this.initFormData();else return{success:!1,error:"无法识别的 JSON 格式"};return this.showJsonEditor.value=!1,{success:!0}}catch(t){return{success:!1,error:t.message||"JSON 格式错误"}}}exportTargetJson(){return this.exportToOriginalFormat()}parseBackendData(t){t&&(this.props.conf.action_name=t.action_name,this.props.conf.description=t.description,this.props.conf.params=t.params,this.props.conf.block=t.block,this.props.conf.action=t.action,this.props.conf.data=t,this.initFormData())}serializeToBackend(){return{block:this.props.conf.block,action:this.props.conf.action,params:O({},this.formData),originalFormat:this.exportToOriginalFormat()}}saveFormData(){this.props.conf.data||(this.props.conf.data={}),this.props.conf.data.values=JSON.parse(JSON.stringify(this.formData))}getFullConfig(){return{action_name:this.props.conf.action_name,description:this.props.conf.description,block:this.props.conf.block,action:this.props.conf.action,params:this.props.conf.params}}exportToOriginalFormat(){return this.convertFormDataToOriginal(this.formData,this.getParams())}convertFormDataToOriginal(t,o){const s={};return o.forEach(n=>{var p;const i=t[n.key];n.form_type==="sub_form"?n.properties&&!n.items?s[n.key]=this.convertFormDataToOriginal(i||{},n.properties):(p=n.items)!=null&&p.properties&&(s[n.key]=Array.isArray(i)?i.map(h=>this.convertArrayItemToOriginal(h,n.items.properties)):[]):n.db_type==="boolean"&&typeof i=="boolean"?s[n.key]=i?"true":"false":s[n.key]=i}),s}convertArrayItemToOriginal(t,o){const s={};return o.forEach(n=>{n.form_type==="sub_form"&&n.properties?s[n.key]=this.convertFormDataToOriginal(t[n.key]||{},n.properties):s[n.key]=t[n.key]}),s}setSocketData(t){if(!t)return;const o=t.result||t,s=o.action_item||o;s!=null&&s.params&&this.parseBackendData(s)}watchParams(){e.watch(()=>{var t;return(t=this.props.conf)==null?void 0:t.params},()=>this.initFormData(),{immediate:!0,deep:!0})}}const oe={class:"mix-body"},se={key:0,class:"json-editor"},ne={class:"editor-header"},ae={key:1,class:"edit-toolbar"},le={key:2,class:"empty-state"},ie={key:3,class:"form-content"},ue={key:0,class:"form-description"},ce={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"动态表单",NAME_EN:"ActionItem",ORDER:1},de={titleColor:"#111",bgColor:"#fff",radiusSize:8,labelWidth:100,isHideTitle:!1,showButtons:!0},me={},fe=[],pe=[],he={},ye={DEFAULT:ce,OPTIONS:de,DATA:me,PARAMS:fe,SOURCE:pe,COMMON:he},ge=e.defineComponent(T(O({},ye),{__name:"actionItem",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},emits:["submit","generate"],setup(k,{emit:t}){const o=k,s=e.ref(!1),n=e.ref(""),i=t,p=z.useCounterStore(),h=e.ref(),l=new re(o);l.setupLifecycle(),l.watchParams();const b=l.getStyle(),C=e.computed(()=>o.conf||{}),U=e.computed(()=>te.generateTitleStyle(o.conf.options));function N(a,r){return r.split(".").reduce((m,f)=>m==null?void 0:m[f],a)}function w(a,r,m){const f=r.split("."),d=f.pop(),u=f.reduce((_,V)=>((!_[V]||typeof _[V]!="object")&&(_[V]={}),_[V]),a);u[d]=m}function F(a,r,m){var f,d,u;if(!((f=a.rules)!=null&&f.length))return!1;for(const _ of a.rules){const V=_.related_key;if(!V)continue;const E=r?`${r}.${V}`:V,v=N(m,E),g=(d=_.conditions)==null?void 0:d.find(x=>x.value===v);if((u=g==null?void 0:g.property)!=null&&u.hidden)return!0}return!1}const I=e.defineComponent({name:"FormField",props:{param:{type:Object,required:!0},rootData:{type:Object,required:!0},actionItem:{type:Object,required:!0},parentPath:{type:String,default:""}},setup(a){var E;const r=a.param,m=a.rootData,f=a.actionItem,d=r.key,u=a.parentPath?`${a.parentPath}.${d}`:d,_=r.form_type==="sub_form"&&r.properties&&!r.items,V=r.form_type==="sub_form"&&((E=r.items)==null?void 0:E.properties);return()=>{if(F(r,a.parentPath,m))return null;if(_){let g=N(m,u);(!g||typeof g!="object"||Array.isArray(g))&&w(m,u,{});const x=r.properties.filter(y=>!F(y,u,m));return e.h("div",{class:"nested-group"},[e.h("div",{class:"nested-title"},r.cn_name),e.h("div",{class:"nested-content"},x.map(y=>e.h(I,{param:y,rootData:m,actionItem:f,key:y.key,parentPath:u})))])}if(V){let g=N(m,u);Array.isArray(g)||(w(m,u,[]),g=N(m,u));const x=r.items.properties;return e.h(c.ElFormItem,{label:r.cn_name},()=>[e.h("div",{class:"sub-form"},[...g.map((y,D)=>e.h("div",{class:"sub-item",key:D},[e.h("div",{class:"sub-fields"},x.map(S=>e.h("div",{class:"sub-field",key:S.key},[e.h("span",{class:"sub-label"},[S.required?e.h("span",{class:"required-star"},"*"):null,S.cn_name]),R(S,y,f)]))),e.h(c.ElButton,{type:"danger",icon:$.Delete,circle:!0,size:"small",onClick:()=>g.splice(D,1)})])),e.h(c.ElButton,{type:"primary",icon:$.Plus,onClick:()=>{const y={};x.forEach(D=>{y[D.key]=M(D)}),g.push(y)}},()=>"添加")])])}const v={label:r.cn_name,prop:u};return r.required&&(v.rules=[{required:!0,message:`请输入${r.cn_name}`,trigger:"blur"}]),e.h(c.ElFormItem,v,()=>j(r,u,m,f))}}});function j(a,r,m,f){var V,E;const d=f.isFieldDisabled(a),u=N(m,r),_=v=>w(m,r,v);switch(a.form_type){case"text":return e.h(c.ElInput,{modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:a.description||`请输入${a.cn_name}`,disabled:d,size:"small"});case"textarea":return e.h(c.ElInput,{type:"textarea",modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:a.description,disabled:d,rows:3});case"select":return e.h(c.ElSelect,{modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:`请选择${a.cn_name}`,disabled:d,style:"width:100%",size:"small"},()=>(a.enum||[]).map(g=>e.h(c.ElOption,{key:g.value,label:g.cn_name,value:g.value})));case"number":return e.h(c.ElInputNumber,{modelValue:u!=null?u:0,"onUpdate:modelValue":_,disabled:d,min:(V=a.format)==null?void 0:V.min,max:(E=a.format)==null?void 0:E.max,style:"width:100%",size:"small"});case"switch":const v=u===!0||u==="true";return e.h(c.ElSwitch,{modelValue:v,"onUpdate:modelValue":_,disabled:d});default:return e.h(c.ElInput,{modelValue:u!=null?u:"","onUpdate:modelValue":_,disabled:d,size:"small"})}}function R(a,r,m){var u,_,V,E,v,g;const f=a.key,d=m.isFieldDisabled(a);switch(a.form_type){case"text":return e.h(c.ElInput,{modelValue:(u=r[f])!=null?u:"","onUpdate:modelValue":y=>r[f]=y,placeholder:a.description||`请输入${a.cn_name}`,disabled:d,size:"small"});case"select":return e.h(c.ElSelect,{modelValue:(_=r[f])!=null?_:"","onUpdate:modelValue":y=>r[f]=y,placeholder:`请选择${a.cn_name}`,disabled:d,style:"width:100%",size:"small"},()=>(a.enum||[]).map(y=>e.h(c.ElOption,{key:y.value,label:y.cn_name,value:y.value})));case"number":return e.h(c.ElInputNumber,{modelValue:(V=r[f])!=null?V:0,"onUpdate:modelValue":y=>r[f]=y,disabled:d,min:(E=a.format)==null?void 0:E.min,max:(v=a.format)==null?void 0:v.max,style:"width:100%",size:"small"});case"switch":const x=r[f]===!0||r[f]==="true";return e.h(c.ElSwitch,{modelValue:x,"onUpdate:modelValue":y=>r[f]=y,disabled:d});default:return e.h(c.ElInput,{modelValue:(g=r[f])!=null?g:"","onUpdate:modelValue":y=>r[f]=y,disabled:d,size:"small"})}}function M(a){var r,m;return a.default_value!==void 0?a.default_value:a.form_type==="switch"?!1:a.form_type==="checkbox_group"?[]:a.form_type==="number"?(m=(r=a.format)==null?void 0:r.min)!=null?m:0:""}const H=()=>{const a=l.applyJson();a.success?c.ElMessage.success("JSON 配置已应用"):c.ElMessage.error(a.error||"JSON 格式错误")},L=()=>{l.saveFormData(),c.ElMessage.success("保存成功")},W=()=>J(null,null,function*(){var a;try{yield(a=h.value)==null?void 0:a.validate();const r=l.exportTargetJson();n.value=JSON.stringify(r,null,2),s.value=!0,i("generate",r)}catch(r){c.ElMessage.error("请先完善必填项")}}),K=()=>{try{const a=document.createElement("textarea");a.value=n.value,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),c.ElMessage.success("已复制到剪贴板")}catch(a){c.ElMessage.error("复制失败")}};return e.onMounted(()=>{p.registerInstance(o.uid,l)}),e.onUnmounted(()=>{p.unregisterInstance(o.uid)}),e.watchEffect(()=>{o.conf.socketData&&l.setSocketData(o.conf.socketData)}),(a,r)=>{const m=P.ElEmpty,f=P.ElForm;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(b).bgColor,borderRadius:e.unref(b).radiusSize+"px"})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(U.value)},e.toDisplayString(C.value.action_name||C.value.caption||C.value.name),5),e.createElementVNode("div",oe,[k.mode==="edit"&&e.unref(l).showJsonEditor.value?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",ne,[r[8]||(r[8]=e.createElementVNode("span",null,"JSON 配置",-1)),e.createVNode(e.unref(c.ElButton),{size:"small",onClick:H},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("应用",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{size:"small",onClick:r[0]||(r[0]=d=>e.unref(l).showJsonEditor.value=!1)},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("关闭",-1)])]),_:1})]),e.createVNode(e.unref(c.ElInput),{type:"textarea",modelValue:e.unref(l).jsonInput.value,"onUpdate:modelValue":r[1]||(r[1]=d=>e.unref(l).jsonInput.value=d),rows:12,placeholder:"粘贴 action_item JSON..."},null,8,["modelValue"])])):e.createCommentVNode("",!0),k.mode==="edit"&&!e.unref(l).showJsonEditor.value?(e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(e.unref(c.ElButton),{size:"small",type:"primary",onClick:r[2]||(r[2]=d=>e.unref(l).showJsonEditor.value=!0)},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("编辑 JSON",-1)])]),_:1})])):e.createCommentVNode("",!0),e.createVNode(e.unref(c.ElDialog),{modelValue:s.value,"onUpdate:modelValue":r[5]||(r[5]=d=>s.value=d),title:"生成的目标JSON",width:"600px","close-on-click-modal":!1},{footer:e.withCtx(()=>[e.createVNode(e.unref(c.ElButton),{onClick:K},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("复制",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{type:"primary",onClick:r[4]||(r[4]=d=>s.value=!1)},{default:e.withCtx(()=>[...r[11]||(r[11]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(c.ElInput),{type:"textarea",modelValue:n.value,"onUpdate:modelValue":r[3]||(r[3]=d=>n.value=d),rows:16,readonly:""},null,8,["modelValue"])]),_:1},8,["modelValue"]),!e.unref(l).hasParams&&k.mode!=="edit"?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(m,{description:"等待表单配置...","image-size":80})])):e.createCommentVNode("",!0),e.unref(l).hasParams?(e.openBlock(),e.createElementBlock("div",ie,[C.value.description?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("p",null,e.toDisplayString(C.value.description),1)])):e.createCommentVNode("",!0),e.createVNode(f,{ref_key:"formRef",ref:h,model:e.unref(l).formData,rules:e.unref(l).getFormRules(),"label-width":e.unref(b).labelWidth+"px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).getVisibleParams(),d=>(e.openBlock(),e.createBlock(e.unref(I),{key:d.key,param:d,rootData:e.unref(l).formData,actionItem:e.unref(l)},null,8,["param","rootData","actionItem"]))),128)),e.unref(b).showButtons?(e.openBlock(),e.createBlock(e.unref(c.ElFormItem),{key:0,class:"form-buttons"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ElButton),{type:"primary",onClick:L},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("保存",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{type:"success",onClick:W},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("生成JSON",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules","label-width"])])):e.createCommentVNode("",!0)]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),_e=z._export_sfc(ge,[["__scopeId","data-v-0174b7e7"]]);exports.default=_e;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var w=Object.defineProperty,V=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var N=(u,o,i)=>o in u?w(u,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[o]=i,z=(u,o)=>{for(var i in o||(o={}))R.call(o,i)&&N(u,i,o[i]);if(I)for(var i of I(o))$.call(o,i)&&N(u,i,o[i]);return u},k=(u,o)=>V(u,q(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");require("html2canvas");const H=require("./index-D8dh_6Qd.cjs"),U=require("./EChartComponentBase-D4wMej9X.cjs"),L=require("./ele-lin-icon-Dke_1AmT.cjs"),W={class:"panel-header"},P=["id"],G={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"预警等级",NAME_EN:"Alarm Level Chart",ORDER:12},J={title:{value:"预警等级",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:16,type:"number",label:"标题字体大小",min:12,max:24},centerFontSize:{value:32,type:"number",label:"中心数字大小",min:18,max:48},level1Color:{value:"#F57676",type:"color",label:"一级告警颜色"},level2Color:{value:"#FFA500",type:"color",label:"二级告警颜色"},level3Color:{value:"#fadb14",type:"color",label:"三级告警颜色"},level4Color:{value:"#66B1FF",type:"color",label:"四级告警颜色"},normalColor:{value:"#67C23A",type:"color",label:"运行正常颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},K=[{name:"设备1",fv:"alarm_level",fvDeviceName:"",object_id:""}],Q=["object_id","name","fv","fvDeviceName"],X=["mosaic"],Y={useAlias:!1,multiObject:!0,source:"mosaic"},Z=200,ee={DEFAULT:G,OPTIONS:J,DATA:K,PARAMS:Q,SOURCE:X,COMMON:Y,ITEMS:Z},te=l.defineComponent(k(z({},ee),{__name:"alarmLevelChart",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){const o=u,i=["一级告警","二级告警","三级告警","四级告警","运行正常"],b=new Map;class j extends U.EChartComponentBase{extractStyles(){var a,s,n,v,f,h,p,_,x,A,O,E,F,M;const e=(a=this.props.conf)==null?void 0:a.options,c=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||"gnss",r=((n=e==null?void 0:e.customChannel)==null?void 0:n.value)||"";return{title:((v=e==null?void 0:e.title)==null?void 0:v.value)||"预警等级",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#f5f7fa",panelBgColor:((h=e==null?void 0:e.panelBgColor)==null?void 0:h.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",titleFontSize:((_=e==null?void 0:e.titleFontSize)==null?void 0:_.value)||16,centerFontSize:((x=e==null?void 0:e.centerFontSize)==null?void 0:x.value)||32,level1Color:((A=e==null?void 0:e.level1Color)==null?void 0:A.value)||"#F57676",level2Color:((O=e==null?void 0:e.level2Color)==null?void 0:O.value)||"#FFA500",level3Color:((E=e==null?void 0:e.level3Color)==null?void 0:E.value)||"#fadb14",level4Color:((F=e==null?void 0:e.level4Color)==null?void 0:F.value)||"#66B1FF",normalColor:((M=e==null?void 0:e.normalColor)==null?void 0:M.value)||"#67C23A",linkChannel:c==="custom"&&r?r:c}}getChartOption(){return C(this.Style.value)}setHistoryData(e){var r;if(!e||!this.chartObj)return;const c=((r=this.props.conf)==null?void 0:r.data)||[];!Array.isArray(c)||!c.length||(c.forEach((a,s)=>{if(!a.fv)return;const n=Array.isArray(e)?e[s]:null,v=Array.isArray(n)&&n.length?n[0]:null;if(!v)return;const f=v[a.fv];if(f==null)return;const h=Math.min(Math.max(typeof f=="number"?Math.round(f):Math.round(parseFloat(String(f)))||0,0),4),p=a.object_id||a.name||"";p&&b.set(p,h)}),this.chartObj.setOption(C(this.Style.value),!0))}setSocketData(e){var r;if(!e)return;(((r=this.props.conf)==null?void 0:r.data)||[]).forEach(a=>{if(!a.fv)return;const s=a.object_id||a.name||"";if(!s)return;const n=this.extractDataValue(e,a.fv);if(n!=null){const v=typeof n=="number"?Math.min(Math.max(Math.round(n),0),4):4;b.set(s,v)}}),this.chartObj&&this.chartObj.setOption(C(this.Style.value),!0)}onLinkEvent(e){}}const m=new j(o,"alarmLevelChart");m.setupLifecycle();const d=m.getStyle(),D=m.getEchartId(),y=l.computed(()=>{var t;return((t=o.conf)==null?void 0:t.data)||[]}),g=l.computed(()=>{const t=[0,0,0,0,0];return y.value.length===0&&o.mode==="edit"?[2,5,5,4,7]:(y.value.forEach(e=>{const c=e.object_id||e.name||"",r=b.get(c),a=typeof r=="number"?r:4;t[a]++}),t)}),T=l.computed(()=>{const t=g.value;for(let e=0;e<5;e++)if(t[e]>0)return{idx:e,count:t[e],name:i[e]};return{idx:4,count:0,name:"运行正常"}}),B=l.computed(()=>({backgroundColor:d.value.bgColor})),C=t=>{const e=g.value,c=[t.level1Color,t.level2Color,t.level3Color,t.level4Color,t.normalColor],r=T.value,a=c[r.idx];return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{orient:"vertical",right:"5%",top:"middle",itemWidth:10,itemHeight:10,itemGap:14,textStyle:{fontSize:13,color:t.textColor},formatter:s=>{const n=i.indexOf(s);return`${s} ${n>=0?e[n]:0}`}},series:[{type:"pie",radius:["48%","70%"],center:["30%","50%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${r.count}}
|
|
2
|
-
{txt|${r.name}}`,rich:{num:{fontSize:t.centerFontSize,fontWeight:"bold",color:a,lineHeight:t.centerFontSize+10},txt:{fontSize:13,color:"#999",lineHeight:22}}},labelLine:{show:!1},itemStyle:{borderRadius:4,borderColor:"#fff",borderWidth:2},data:i.map((s,n)=>({value:e[n],name:s,itemStyle:{color:c[n]}}))}]}},S=()=>{const t=m.getChartInstance();t&&t.setOption(C(d.value),!0)};return l.onMounted(()=>{o.mode==="edit"&&S(),setTimeout(()=>{var t;return(t=m.getChartInstance())==null?void 0:t.resize()},200)}),l.watch(()=>o.conf,()=>{o.mode==="edit"&&S()},{deep:!0}),(t,e)=>(l.openBlock(),l.createElementBlock("div",{class:"alarm-level-chart",style:l.normalizeStyle(B.value)},[l.createElementVNode("div",W,[e[0]||(e[0]=l.createElementVNode("span",{class:"indicator-dot"},null,-1)),l.createElementVNode("span",{class:"panel-title",style:l.normalizeStyle({color:l.unref(d).textColor,fontSize:l.unref(d).titleFontSize+"px"})},l.toDisplayString(l.unref(d).title),5)]),l.createElementVNode("div",{id:l.unref(D),class:"chart-container"},null,8,P),l.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),le=H._export_sfc(te,[["__scopeId","data-v-94637132"]]);exports.default=le;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var U=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var L=(f,s,u)=>s in f?U(f,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):f[s]=u,V=(f,s)=>{for(var u in s||(s={}))$.call(s,u)&&L(f,u,s[u]);if(I)for(var u of I(s))W.call(s,u)&&L(f,u,s[u]);return f},B=(f,s)=>G(f,H(s));var D=(f,s,u)=>new Promise((g,m)=>{var b=h=>{try{C(u.next(h))}catch(_){m(_)}},x=h=>{try{C(u.throw(h))}catch(_){m(_)}},C=h=>h.done?g(h.value):Promise.resolve(h.value).then(b,x);C((u=u.apply(f,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const J=require("./BaseComponent-CNXUpPY1.cjs"),O=require("./index-D8dh_6Qd.cjs"),w=require("./ele-lst-icon-CrxnHZ-A.cjs"),Q={class:"panel-header"},X={class:"header-left"},Y={class:"header-title"},Z={class:"header-right"},K=["disabled"],ee={class:"page-info"},te=["disabled"],le={class:"table-area"},ae={class:"data-table"},re=["onClick"],ne={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"监测预警表格",NAME_EN:"Alert Table",ORDER:2},oe={title:{value:"监测预警 (GNSS)",type:"string",label:"component.alertTable.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},headerBgColor:{value:"#f5f5f5",type:"color",label:"component.alertTable.headerBgColor"},pageSize:{value:5,type:"number",label:"component.alertTable.pageSize",min:3,max:20},alertColumn:{value:"speed",type:"string",label:"告警判定列(key)"},alertLevels:{value:[{name:"正常",minValue:0,maxValue:5,color:"#52c41a"},{name:"二级告警 (警告)",minValue:5,maxValue:10,color:"#faad14"},{name:"一级告警 (危险)",minValue:10,maxValue:999,color:"#ff4d4f"}],type:"alertLevels",label:"component.alertTable.alertLevels"},columns:{value:[{key:"area",label:"区域",width:"80px",useFv:!0},{key:"deviceId",label:"编号",width:"100px",useFv:!0},{key:"elevation",label:"标高",width:"80px",useFv:!0},{key:"speed",label:"速度",width:"80px",useFv:!0},{key:"threshold",label:"阈值",width:"60px",useFv:!1}],type:"columns",label:"component.alertTable.columns"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},se=[{object_id:"",threshold:"8"}],ce=["object_id","threshold"],ue=["mosaic","statistics"],ie={useAlias:!1,multiObject:!0,source:"mosaic"},de={DEFAULT:ne,OPTIONS:oe,DATA:se,PARAMS:ce,SOURCE:ue,COMMON:ie},me=t.defineComponent(B(V({},de),{__name:"alertTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(f){const s=f;class u extends J.BaseComponent{extractStyles(){var n,y,i,d,c,k,N,j,F,T;const{options:e}=this.props.conf,l=[{key:"area",label:"区域",width:"80px",useFv:!0},{key:"deviceId",label:"编号",width:"100px",useFv:!0},{key:"elevation",label:"标高",width:"80px",useFv:!0},{key:"speed",label:"速度",width:"80px",useFv:!0},{key:"threshold",label:"阈值",width:"60px",useFv:!1}],o=[{name:"正常",minValue:0,maxValue:5,color:"#52c41a"},{name:"二级告警 (警告)",minValue:5,maxValue:10,color:"#faad14"},{name:"一级告警 (危险)",minValue:10,maxValue:999,color:"#ff4d4f"}],r=((n=e==null?void 0:e.linkChannel)==null?void 0:n.value)||"gnss",v=((y=e==null?void 0:e.customChannel)==null?void 0:y.value)||"",p=r==="custom"&&v?v:r;return{title:((i=e==null?void 0:e.title)==null?void 0:i.value)||"监测预警 (GNSS)",bgColor:((d=e==null?void 0:e.bgColor)==null?void 0:d.value)||"#ffffff",textColor:((c=e==null?void 0:e.textColor)==null?void 0:c.value)||"#333333",headerBgColor:((k=e==null?void 0:e.headerBgColor)==null?void 0:k.value)||"#f5f5f5",pageSize:((N=e==null?void 0:e.pageSize)==null?void 0:N.value)||5,alertColumn:((j=e==null?void 0:e.alertColumn)==null?void 0:j.value)||"speed",alertLevels:((F=e==null?void 0:e.alertLevels)==null?void 0:F.value)||o,columns:((T=e==null?void 0:e.columns)==null?void 0:T.value)||l,linkChannel:p}}initHistory(){return D(this,null,function*(){var p;const{data:e,options:l}=this.props.conf;if(!e||!Array.isArray(e))return[];const r=(((p=l==null?void 0:l.columns)==null?void 0:p.value)||[]).filter(n=>n.useFv).map(n=>n.key);if(r.length===0)return[];const v=e.map(n=>{if(!n.object_id||(this.applyHistoryObjectResolution(n),!n.object_id))return Promise.resolve(null);const y={block_mapping:"influxdbproxy",action:"get_mosaic_list",object_id:n.object_id,keys:r,page_index:1,page_size:1};return new Promise(i=>{O.api.platform(d=>{var c;i(((c=d==null?void 0:d.result)==null?void 0:c.data)||[])},y)})});return Promise.all(v)})}setHistoryData(e){var p;if(!e||!Array.isArray(e))return;const{data:l,options:o}=this.props.conf;if(!l||!Array.isArray(l))return;const v=(((p=o==null?void 0:o.columns)==null?void 0:p.value)||[]).filter(n=>n.useFv).map(n=>n.key);e.forEach((n,y)=>{if(!n||!Array.isArray(n)||n.length===0)return;const i=l[y];if(!i)return;const d=n[0];v.forEach(c=>{d[c]!==void 0&&d[c]!==null&&(i[c]=d[c])})})}setSocketData(e){var n,y;if(!e)return;const{data:l,options:o}=this.props.conf;if(!l||!Array.isArray(l))return;const v=(((n=o==null?void 0:o.columns)==null?void 0:n.value)||[]).filter(i=>i.useFv).map(i=>i.key);if(v.length===0)return;const p=e.object_id||((y=e.data)==null?void 0:y.object_id)||"";l.forEach(i=>{i.object_id&&(p&&String(i.object_id)!==String(p)||v.forEach(d=>{try{const c=this.extractDataValue(e,d);c!=null&&(i[d]=c)}catch(c){console.warn(`[alertTable] 提取字段 ${d} 失败:`,c)}}))})}}const g=new u(s,"alertTable");g.setupLifecycle();const m=g.getStyle(),b=t.ref(1),x=t.ref(!1),C=a=>{const e=m.value.linkChannel,l=g.linkStore.channels[e];if(!l)return!1;const{payload:o}=l;return o.objectId&&a.object_id?String(o.objectId)===String(a.object_id):o.deviceId&&a.deviceId?String(o.deviceId)===String(a.deviceId):!1},h=t.computed(()=>{const a=m.value.columns||[];return[{key:"index",label:"序号",width:"60px"},...a]}),_=a=>{const e=m.value.alertLevels||[];if(isNaN(a)||e.length===0)return{alertLevel:0,alertText:"正常",alertColor:"#52c41a"};for(let o=0;o<e.length;o++){const r=e[o];if(a>=r.minValue&&a<r.maxValue)return{alertLevel:o,alertText:r.name,alertColor:r.color}}const l=e[e.length-1];return{alertLevel:e.length-1,alertText:l.name,alertColor:l.color}},S=t.computed(()=>{var o;const a=((o=s.conf)==null?void 0:o.data)||[],e=m.value.alertColumn||"";return(s.mode==="preview"?a.filter(r=>r.object_id):a).map((r,v)=>{const p=e&&parseFloat(r[e])||0,{alertLevel:n,alertText:y,alertColor:i}=_(p),d={index:v+1,object_id:r.object_id||"",isAlert:n>0,alertLevel:n,alertText:y,alertColor:i,_exceed:p-(parseFloat(r.threshold)||0)};return h.value.forEach(c=>{var k;c.key!=="index"&&(d[c.key]=(k=r[c.key])!=null?k:"-")}),d}).sort((r,v)=>v._exceed-r._exceed).map((r,v)=>(r.index=v+1,r))}),z=a=>a.alertColor?{color:a.alertColor}:{},E=t.computed(()=>Math.max(1,Math.ceil(S.value.length/m.value.pageSize))),P=t.computed(()=>{const a=(b.value-1)*m.value.pageSize,e=a+m.value.pageSize;return S.value.slice(a,e)}),R=t.computed(()=>({backgroundColor:m.value.bgColor,color:m.value.textColor,"--header-bg":m.value.headerBgColor})),M=()=>{b.value>1&&b.value--},q=()=>{b.value<E.value&&b.value++},A=a=>{s.mode!=="edit"&&g.publish(V({objectId:a.object_id,deviceId:a.deviceId||"",alertLevels:m.value.alertLevels},a))};return t.watch(()=>s.conf,()=>{b.value=1},{deep:!0}),t.watch(S,a=>{if(x.value||s.mode!=="preview"||!a||a.length===0)return;const e=a[0],l=m.value.alertColumn||"";!l||e[l]==="-"||e[l]===void 0||(x.value=!0,A(e))}),(a,e)=>(t.openBlock(),t.createElementBlock("div",{class:"alert-table-wrapper",style:t.normalizeStyle(R.value)},[t.createElementVNode("div",Q,[t.createElementVNode("div",X,[e[0]||(e[0]=t.createElementVNode("div",{class:"header-indicator"},null,-1)),t.createElementVNode("span",Y,t.toDisplayString(t.unref(m).title),1)]),t.createElementVNode("div",Z,[t.createElementVNode("button",{class:"page-btn",disabled:b.value<=1,onClick:M},[...e[1]||(e[1]=[t.createElementVNode("span",null,"<",-1)])],8,K),t.createElementVNode("span",ee,t.toDisplayString(b.value)+" / "+t.toDisplayString(E.value),1),t.createElementVNode("button",{class:"page-btn",disabled:b.value>=E.value,onClick:q},[...e[2]||(e[2]=[t.createElementVNode("span",null,">",-1)])],8,te)])]),t.createElementVNode("div",le,[t.createElementVNode("table",ae,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,l=>(t.openBlock(),t.createElementBlock("th",{key:l.key,style:t.normalizeStyle({width:l.width})},t.toDisplayString(l.label),5))),128))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(P.value,(l,o)=>(t.openBlock(),t.createElementBlock("tr",{key:o,class:t.normalizeClass({"alert-row":l.isAlert,"active-row":C(l)}),onClick:r=>A(l)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,r=>(t.openBlock(),t.createElementBlock("td",{key:r.key,style:t.normalizeStyle(z(l))},t.toDisplayString(l[r.key]),5))),128))],10,re))),128))])])]),t.renderSlot(a.$slots,"default",{},void 0,!0)],4))}})),ve=O._export_sfc(me,[["__scopeId","data-v-87c4e7ff"]]);exports.default=ve;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty,q=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var V=(c,n,r)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[n]=r,S=(c,n)=>{for(var r in n||(n={}))R.call(n,r)&&V(c,r,n[r]);if(N)for(var r of N(n))z.call(n,r)&&V(c,r,n[r]);return c},E=(c,n)=>q(c,L(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),v=require("./index-D8dh_6Qd.cjs"),j=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),B={class:"section-header"},F={class:"section-title"},U={class:"row"},Y={class:"label"},$={class:"row"},K={class:"row"},H={class:"row row-meta"},J={key:0},W={class:"payload-preview"},G={DEFAULT_ICON:j.DEFAULT_ICON,ACTIVE_ICON:j.ACTIVE_ICON,NAME_CN:"对象别名选择器",NAME_EN:"Alias Object Selector",ORDER:22},Q={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},sectionTitle:{value:"对象别名切换",type:"string",label:"component.openpitConfigPanel.label"},aliasLabel:{value:"别名模式",type:"string",label:"component.openpitConfigPanel.objectSelectInputLabel"},aliasPlaceholder:{value:"例如 radar*",type:"string",label:"component.openpitConfigPanel.objectSelectInputPlaceholder"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{key:"objectAlias",multiple:!0,pattern:"radar*",fvs:["disp","speed"]}],Z=[{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch"},{key:"pattern",label:"component.openpitConfigPanel.optionValue",type:"string"},{key:"fvs",label:"component.openpitConfigPanel.options",type:"array"}],ee=[],te={useAlias:!0,multiObject:!0,source:""},le={DEFAULT:G,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(E(S({},le),{__name:"aliasObjectSelectorDemo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""}},setup(c){e.useCssVars(t=>({v9101dfd0:_.value.borderColor,v475ba4b8:_.value.color}));const n=c,r=v.useLinkStore(),d=e.ref("radar*"),m=e.ref("disp,speed"),p=e.ref([]),f=e.ref(""),C=e.ref(""),_=e.computed(()=>{var l,o,a,s;const t=((l=n.conf)==null?void 0:l.options)||{};return{backgroundColor:((o=t==null?void 0:t.bgColor)==null?void 0:o.value)||"#ffffff",color:((a=t==null?void 0:t.textColor)==null?void 0:a.value)||"#333333",borderColor:((s=t==null?void 0:t.borderColor)==null?void 0:s.value)||"#e5e5e5"}}),k=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.sectionTitle)==null?void 0:o.value)||"对象别名切换")}),O=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.aliasLabel)==null?void 0:o.value)||"别名模式")}),A=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.aliasPlaceholder)==null?void 0:o.value)||"例如 radar*")}),P=()=>{var a,s,i;const t=((a=n.conf)==null?void 0:a.options)||{},l=((s=t==null?void 0:t.linkChannel)==null?void 0:s.value)||"deepDisplacement",o=((i=t==null?void 0:t.customChannel)==null?void 0:i.value)||"";return l==="custom"&&o?o:l},w=()=>{try{return JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}")||{}}catch(t){return{}}},D=t=>String(t||"").split(",").map(l=>l.trim()).filter(Boolean),I=t=>t.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),T=t=>{const l=I(t).replace(/\*/g,".*");return new RegExp(`^${l}$`,"i")},x=()=>{const t=w();return Object.keys(t).map(l=>({object_alias:l,object_id:String(t[l]||"")})).filter(l=>l.object_id)},g=()=>{const t=String(d.value||"").trim();if(!t){p.value=[];return}const l=T(t),o=x();p.value=o.filter(a=>l.test(a.object_alias))},y=()=>{g();const t=p.value.map(i=>i.object_id),l=p.value.map(i=>i.object_alias),o=D(m.value),a=P(),s={source:"aliasObjectSelector",type:"filter",mode:"aliasWildcard",objectAliasPattern:d.value,objectAliases:l,objectIds:t,objectId:t[0]||"",fvs:o,fv:o[0]||"",count:t.length,time:Date.now()};r.publish(a,"aliasObjectSelector",s),f.value=v.dayjs().format("YYYY-MM-DD HH:mm:ss"),C.value=JSON.stringify(s,null,2)};return e.onMounted(()=>{var o,a,s,i,u,h;const t=String(((s=(a=(o=n.conf)==null?void 0:o.data)==null?void 0:a[0])==null?void 0:s.pattern)||"").trim();t&&(d.value=t);const l=(h=(u=(i=n.conf)==null?void 0:i.data)==null?void 0:u[0])==null?void 0:h.fvs;Array.isArray(l)&&l.length&&(m.value=l.join(",")),g()}),(t,l)=>{const o=b.ElInput,a=b.ElButton,s=b.ElTableColumn,i=b.ElTable;return e.openBlock(),e.createElementBlock("div",{class:"alias-demo",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",B,[e.createElementVNode("span",F,e.toDisplayString(k.value),1)]),e.createElementVNode("div",U,[e.createElementVNode("span",Y,e.toDisplayString(O.value),1),e.createVNode(o,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=u=>d.value=u),placeholder:A.value,size:"small",clearable:"",onKeyup:e.withKeys(y,["enter"])},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",$,[l[2]||(l[2]=e.createElementVNode("span",{class:"label"},"FV",-1)),e.createVNode(o,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=u=>m.value=u),placeholder:"例如 disp,speed,temp",size:"small",clearable:""},null,8,["modelValue"])]),e.createElementVNode("div",K,[e.createVNode(a,{type:"primary",size:"small",onClick:y},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("匹配并联动",-1)])]),_:1}),e.createVNode(a,{size:"small",onClick:g},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("仅匹配",-1)])]),_:1})]),e.createElementVNode("div",H,[e.createElementVNode("span",null,"匹配数量:"+e.toDisplayString(p.value.length),1),f.value?(e.openBlock(),e.createElementBlock("span",J,"最近推送:"+e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)]),l[6]||(l[6]=e.createElementVNode("div",{class:"tips"},[e.createTextVNode(" 数据源:sessionStorage["),e.createElementVNode("code",null,"object_alias_uid_mapping"),e.createTextVNode("](真实对象别名映射) ")],-1)),e.createVNode(i,{data:p.value,size:"small",border:"",style:{width:"100%"},"max-height":"220"},{default:e.withCtx(()=>[e.createVNode(s,{prop:"object_id",label:"object_id","min-width":"180"}),e.createVNode(s,{prop:"object_alias",label:"object_alias","min-width":"180"})]),_:1},8,["data"]),e.createElementVNode("div",W,[l[5]||(l[5]=e.createElementVNode("div",{class:"preview-title"},"本次联动 payload 预览",-1)),e.createElementVNode("pre",null,e.toDisplayString(C.value),1)])],4)}}})),ne=v._export_sfc(oe,[["__scopeId","data-v-39da30e1"]]);exports.default=ne;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var k=Object.defineProperty,M=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,R=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,B=Reflect.get;var N=(l,o,a)=>o in l?k(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,_=(l,o)=>{for(var a in o||(o={}))z.call(o,a)&&N(l,a,o[a]);if(x)for(var a of x(o))q.call(o,a)&&N(l,a,o[a]);return l},w=(l,o)=>M(l,L(o));var E=(l,o,a)=>B(R(l),a,o);var I=(l,o,a)=>new Promise((C,f)=>{var v=c=>{try{y(a.next(c))}catch(d){f(d)}},S=c=>{try{y(a.throw(c))}catch(d){f(d)}},y=c=>c.done?C(c.value):Promise.resolve(c.value).then(v,S);y((a=a.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),H=require("./index-D8dh_6Qd.cjs"),P=require("./EChartComponentBase-D4wMej9X.cjs"),j=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),V=require("./echarts-BB8O2KSA.cjs"),U=["id"],W={DEFAULT_ICON:j.DEFAULT_ICON,ACTIVE_ICON:j.ACTIVE_ICON,NAME_CN:"年累积降雨量",NAME_EN:"Annual Rainfall Chart",ORDER:2},G={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},yAxisName:{value:"毫米(mm)",type:"string",label:"Y轴标题"},barColor:{value:"#85C6F1",type:"color",label:"柱状图颜色"},lineColor:{value:"#F57676",type:"color",label:"趋势线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},K=[{name:"日降雨量",fv:""}],Y=["name","fv"],$=["mosaic"],J={useAlias:!1,multiObject:!1,source:"mosaic"},Q=50,X={DEFAULT:W,OPTIONS:G,DATA:K,PARAMS:Y,SOURCE:$,ITEMS:Q,COMMON:J},Z=i.defineComponent(w(_({},X),{__name:"annualRainfallChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,a=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],C=[45.2,52.1,68.5,92,115.4,188.2,215.5,192.1,145.6,88.4,55,42.8],f=i.ref(new Array(12).fill(0)),v=i.ref(""),S=i.computed(()=>{var p,t,e;return!!((t=(p=o.conf)==null?void 0:p.common)!=null&&t.object_id||(e=o.conf)!=null&&e.object_id)}),y=i.computed(()=>S.value||!!v.value),c=()=>{var t;const p=(t=o.conf)==null?void 0:t.data;return Array.isArray(p)&&p.length>0&&p[0].fv||""};class d extends P.EChartComponentBase{extractStyles(){var r,u,s,h,m,b,g;const t=(r=this.props.conf)==null?void 0:r.options,e=((u=t==null?void 0:t.linkChannel)==null?void 0:u.value)||"rainfall",n=((s=t==null?void 0:t.customChannel)==null?void 0:s.value)||"";return{bgColor:((h=t==null?void 0:t.bgColor)==null?void 0:h.value)||"#ffffff",yAxisName:((m=t==null?void 0:t.yAxisName)==null?void 0:m.value)||"毫米(mm)",barColor:((b=t==null?void 0:t.barColor)==null?void 0:b.value)||"#85C6F1",lineColor:((g=t==null?void 0:t.lineColor)==null?void 0:g.value)||"#F57676",linkChannel:e==="custom"&&n?n:e}}getChartOption(){if(!y.value&&this.props.mode==="preview")return{graphic:{type:"text",left:"center",top:"middle",style:{text:"请在筛选栏选择监测点后点击查询",fontSize:14,fill:"#999"}},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};const t=this.props.mode==="edit"?C:f.value,e=t.map((n,r)=>r===0?t[0]:r===t.length-1?t[t.length-1]:parseFloat(((t[r-1]+n+t[r+1])/3).toFixed(1)));return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"rgba(255, 255, 255, 0.9)",borderColor:"#1c3d90",textStyle:{color:"#333",fontSize:11}},grid:{top:35,bottom:25,left:60,right:15},xAxis:{type:"category",data:a,axisLabel:{fontSize:9,color:"#888",interval:0},axisLine:{lineStyle:{color:"rgba(0,0,0,0.1)"}}},yAxis:{type:"value",name:this.Style.value.yAxisName,nameTextStyle:{color:"#666",fontSize:10,align:"left",padding:[0,0,0,5]},axisLabel:{fontSize:9,color:"#888"},splitLine:{lineStyle:{color:"rgba(0,0,0,0.05)",type:"dashed"}}},series:[{name:"月度降雨",type:"bar",barWidth:"45%",itemStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:this.Style.value.barColor},{offset:1,color:"#1c3d90"}]),borderRadius:[2,2,0,0]},data:t},{name:"趋势走向",type:"line",smooth:!0,showSymbol:!0,symbolSize:4,lineStyle:{width:2,color:this.Style.value.lineColor},itemStyle:{color:this.Style.value.lineColor},data:e}]}}initHistory(){return I(this,null,function*(){const t=this.props.conf;if(!t)return[];t.options||(t.options={});const e=t.options.points,n=Object.prototype.hasOwnProperty.call(t.options,"points");(!e||Number(e)<365)&&(t.options.points=365);try{return yield E(d.prototype,this,"initHistory").call(this)}finally{n?t.options.points=e:delete t.options.points}})}setHistoryData(t){var u;if(!t||!this.chartObj)return;const e=super.setHistoryData(t);if(!(e!=null&&e.length))return;const n=e[0];if(!((u=n==null?void 0:n.time)!=null&&u.length))return;const r=new Array(12).fill(0);n.time.forEach((s,h)=>{var O;const m=(O=n.data)==null?void 0:O[h];if(m==null||m===""||m==="-")return;const b=Number(m);if(!Number.isFinite(b))return;const g=new Date(String(s).replace(/\//g,"-"));isNaN(g.getTime())||(r[g.getMonth()]+=b)}),f.value=r.map(s=>parseFloat(s.toFixed(2))),this.chartObj.setOption(this.getChartOption(),!0)}setSocketData(t){if(!t)return;const e=c();if(!e)return;const n=this.extractDataValue(t,e);if(n==null||isNaN(Number(n)))return;const r=t.datetime||"";let u=new Date().getMonth();if(r){const h=new Date(r.replace(/\//g,"-"));isNaN(h.getTime())||(u=h.getMonth())}const s=[...f.value];s[u]=parseFloat((s[u]+Number(n)).toFixed(2)),f.value=s,this.chartObj&&this.chartObj.setOption(this.getChartOption(),!0)}onLinkEvent(t){const{payload:e}=t;if(!e)return;const n=e.objectId||e.object_id;n&&(v.value=String(n),f.value=new Array(12).fill(0),this.initChart(),this.props.mode==="preview"&&this.subscribeBySource(this.getSource(),String(n)))}}const A=new d(o,"annualRainfallChart");A.setupLifecycle();const F=A.getEchartId(),D=A.getStyle(),T=i.computed(()=>({backgroundColor:D.value.bgColor,width:"100%",height:"100%"}));return(p,t)=>(i.openBlock(),i.createElementBlock("div",{class:"annual-rainfall-chart-wrap",style:i.normalizeStyle(T.value)},[i.createElementVNode("div",{id:i.unref(F),class:"chart-container"},null,8,U),i.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),tt=H._export_sfc(Z,[["__scopeId","data-v-325cfd3f"]]);exports.default=tt;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";var P=Object.defineProperty,F=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var I=(d,r,s)=>r in d?P(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,T=(d,r)=>{for(var s in r||(r={}))G.call(r,s)&&I(d,s,r[s]);if(z)for(var s of z(r))X.call(r,s)&&I(d,s,r[s]);return d},N=(d,r)=>F(d,U(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./BaseComponent-CNXUpPY1.cjs"),v=require("./index-D8dh_6Qd.cjs"),Y=require("./titleStyle-NSnz6cUg.cjs"),w=require("./ele-aqi-icon-BMm9WgFH.cjs"),Z=require("./installMarkLine-Bv53Iw9G.cjs"),j=require("./install-z6wShIZI.cjs"),J=require("./install-CIT6k8Ga.cjs"),K=require("./install-CYwVETsi.cjs"),A=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Q=require("./install-DV5cEgNV.cjs"),W=require("./install-CltTFs4e.cjs"),ee=require("./install-C8buXQPI.cjs"),V=require("./echarts-BB8O2KSA.cjs"),te={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"分级曲线",NAME_EN:"Grading Curve",ORDER:2},oe={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#d64545",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:30,points:100,isSmooth:!1,isHideTitle:!1},L=[{name:"参数一",项目编号:"",object_id:""}],le=["name","项目编号","object_id","colorArea"],ae=["index","deviation","stability","balance","increment","risk"],ie=[{color:"#00ff00",value:50}],re=1,se={useAlias:!1,null:{type:"0",value:""},source:"index"},ne={DEFAULT:te,OPTIONS:oe,DATA:L,PARAMS:le,SOURCE:ae,COLOR_AREA:ie,ITEMS:re,COMMON:se},ue=t.defineComponent(N(T({},ne),{__name:"aqiIndass",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){A.use([Z.install,Q.install,j.install,J.install,W.install,A.install,ee.install,A.install$1,K.install]);const r=t.ref(t.inject("session",null)),s="aqi_"+Math.random().toString(16).substring(4,12);let o=null,y=null;const l=d;class k extends _.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#d64545"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",100)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:L,t.nextTick(()=>{let n=document.querySelector("#"+s);n&&(o||(o=V.init(n),y=v.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(n,()=>o==null?void 0:o.resize())),o.setOption(R(),!0))})}onPreview(){D.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+s)),o&&o.clear(),o&&V.dispose(o),o=null,D.unregister()}}const q=new k(l,"aqiIndass");q.setupLifecycle();const i=q.getStyle(),M=t.computed(()=>Y.generateTitleStyle(l.conf.options)),R=()=>{var a,u,f,c,m,S,h,E;const{conf:e}=l,n=v.hasDataSource(e);var p={tooltip:{trigger:"axis"},legend:{show:!0,data:[(e==null?void 0:e.data[0].name)||""],right:20,top:0,textStyle:{color:i.value.textColor,fontSize:i.value.textSize},itemStyle:{color:i.value.lineColor},lineStyle:{color:i.value.lineColor}},grid:{top:((u=(a=e==null?void 0:e.options)==null?void 0:a.top)==null?void 0:u.value)||30,bottom:((c=(f=e==null?void 0:e.options)==null?void 0:f.bottom)==null?void 0:c.value)||20,left:((S=(m=e==null?void 0:e.options)==null?void 0:m.left)==null?void 0:S.value)||40,right:((E=(h=e==null?void 0:e.options)==null?void 0:h.right)==null?void 0:E.value)||20,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,handleStyle:{color:"#fff",shadowBlur:2,shadowOffsetX:2,shadowOffsetY:2},textStyle:{color:i.value.textColor},borderStyle:{color:"#000"},throttle:200,labelFormatter:function(x,C){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(C))return C;let g=C.split(" ");return g[0]+`
|
|
2
|
-
`+g[1]}},{type:"inside",start:0,end:20}],visualMap:{show:!1,pieces:$(),outOfRange:{color:"#999"}},xAxis:[{type:"category",boundaryGap:!1,data:v.getxAxisDataTime(i.value.points,l.mode,n),axisLabel:{formatter:function(x,C){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(x))return x;let g=x.split(" ");return g[0]+`
|
|
3
|
-
`+g[1]},color:i.value.textColor,fontSize:i.value.textSize}}],yAxis:{type:"value",boundaryGap:[0,"20%"],splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{formatter:"{value}",color:i.value.textColor,fontSize:i.value.textSize},axisLine:{lineStyle:{color:i.value.textColor}},splitNumber:4},series:B()};return p},$=()=>{const{area:e}=l.conf;let n=e.filter(a=>a.value!==null&&a.value!==void 0);n.sort((a,u)=>a.value-u.value);let p=[];return n.forEach((a,u)=>{u===0?p.push({gt:0,lte:a.value,color:a.color}):p.push({gt:n[u-1].value,lte:a.value,color:a.color})}),p},B=()=>{var f;const{options:e,data:n,area:p}=l.conf,a=v.hasDataSource(l.conf),u=p.filter(c=>c.value!==null&&c.value!==void 0);return u.sort((c,m)=>c.value-m.value),[{name:n[0].name||"",type:"line",smooth:(f=e==null?void 0:e.isSmooth)==null?void 0:f.value,sampling:"average",markLine:{silent:!1,lineStyle:{color:i.value.lineColor},label:{color:i.value.textColor},data:u.map(c=>({yAxis:c.value}))},data:v.getRandomArr({num:i.value.points,max:200,min:0,mode:l.mode,hasDataSource:a})}]},H=e=>{if(!v.hasDataSource(l.conf))return;const{data:n}=l.conf;let p=v.handleNullData(e,l,"history"),a=[],u=[];if(!p.history.length)return;p.history.forEach((c,m)=>{u.push([]),u[m]=c.map(S=>{var h;return(h=S[n[m].fv])!=null?h:"--"}),a[m]=c.map(S=>S.time)});let f=o==null?void 0:o.getOption();f&&(f.xAxis[0].data=a[0],f.series.forEach((c,m)=>{c.data=u[m]}),o==null||o.setOption(f))},b=e=>{v.hasDataSource(l.conf)},D={preview:()=>_.preview(l,r.value,H,b,"aqiIndass"),unregister:()=>_.unregister(l,r.value)};t.watchEffect(()=>{l.conf.socketData&&b(l.conf.socketData)});const O=l.conf;return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(i).bgColor,borderRadius:`${t.unref(i).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(M.value)},t.toDisplayString(t.unref(O).caption||t.unref(O).name),5),t.createElementVNode("div",{class:"mix-body"},[t.createElementVNode("div",{class:"w-full h-full",id:s})]),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),ce=v._export_sfc(ue,[["__scopeId","data-v-72d20e76"]]);exports.default=ce;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols,U=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Y=Reflect.get;var T=(c,r,o)=>r in c?R(c,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[r]=o,_=(c,r)=>{for(var o in r||(r={}))W.call(r,o)&&T(c,o,r[o]);if(w)for(var o of w(r))K.call(r,o)&&T(c,o,r[o]);return c},j=(c,r)=>G(c,H(r));var M=(c,r,o)=>Y(U(c),o,r);var F=(c,r,o)=>new Promise((y,f)=>{var k=i=>{try{m(o.next(i))}catch(A){f(A)}},C=i=>{try{m(o.throw(i))}catch(A){f(A)}},m=i=>i.done?y(i.value):Promise.resolve(i.value).then(k,C);m((o=o.apply(c,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const J=require("./index-D8dh_6Qd.cjs"),Q=require("./EChartComponentBase-D4wMej9X.cjs");require("./index-mAPVa0s4.cjs");const $=require("./ele-lin-icon-Dke_1AmT.cjs"),X=require("./echarts-BB8O2KSA.cjs"),Z={class:"panel-header"},ee={class:"header-left"},te={class:"header-title"},ae={class:"header-right"},le=["id"],re={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"圈定面累积形变",NAME_EN:"Area Deform Curve",ORDER:1},oe={title:{value:"圈定面累积形变",type:"string",label:"标题"},subtitle:{value:"全矿区总览",type:"string",label:"副标题"},subtitleColor:{value:"#1a3a6b",type:"color",label:"副标题颜色"},yAxisLabel:{value:"mm",type:"string",label:"Y轴标签"},bgColor:{value:"#f0f4fa",type:"color",label:"背景色"},lineColor:{value:"#2c5a9e",type:"color",label:"曲线颜色"},gradientStart:{value:"rgba(44, 90, 158, 0.6)",type:"color",label:"渐变起始色"},gradientEnd:{value:"rgba(44, 90, 158, 0.05)",type:"color",label:"渐变结束色"},textColor:{value:"#333333",type:"color",label:"文字颜色"},linkChannel:{value:"radarMonitor",type:"select",label:"联动频道",options:[{label:"雷达监测",value:"radarMonitor"},{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},se=[{name:"重点区域监测趋势",fv:"deformation",object_id:""}],ne=["name","fv","object_id"],ie=["mosaic","statistics","statisticsRealtime"],ce={useAlias:!1,multiObject:!1,source:"mosaic"},ue={DEFAULT:re,OPTIONS:oe,DATA:se,PARAMS:ne,SOURCE:ie,COMMON:ce},de=t.defineComponent(j(_({},ue),{__name:"areaDeformCurve",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const r=c;class o extends Q.EChartComponentBase{extractStyles(){var p,b,v,x,g,d,l,h,S,D,L;const{options:e}=this.props.conf,a=((p=e==null?void 0:e.linkChannel)==null?void 0:p.value)||"radarMonitor",n=((b=e==null?void 0:e.customChannel)==null?void 0:b.value)||"",u=a==="custom"&&n?n:a;return{title:((v=e==null?void 0:e.title)==null?void 0:v.value)||"圈定面累积形变",subtitle:((x=e==null?void 0:e.subtitle)==null?void 0:x.value)||"全矿区总览",subtitleColor:((g=e==null?void 0:e.subtitleColor)==null?void 0:g.value)||"#1a3a6b",yAxisLabel:((d=e==null?void 0:e.yAxisLabel)==null?void 0:d.value)||"mm",bgColor:((l=e==null?void 0:e.bgColor)==null?void 0:l.value)||"#f0f4fa",lineColor:((h=e==null?void 0:e.lineColor)==null?void 0:h.value)||"#2c5a9e",gradientStart:((S=e==null?void 0:e.gradientStart)==null?void 0:S.value)||"rgba(44, 90, 158, 0.6)",gradientEnd:((D=e==null?void 0:e.gradientEnd)==null?void 0:D.value)||"rgba(44, 90, 158, 0.05)",textColor:((L=e==null?void 0:e.textColor)==null?void 0:L.value)||"#333333",linkChannel:u}}getChartOption(){return V(i.value)}initHistory(){return F(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const a=e.options.points,n=Object.prototype.hasOwnProperty.call(e.options,"points");(!a||Number(a)<24)&&(e.options.points=24);try{return yield M(o.prototype,this,"initHistory").call(this)}finally{n?e.options.points=a:delete e.options.points}})}setHistoryData(e){var d;if(!this.hasData()||!this.chartObj||!e)return;const a=super.setHistoryData(e);if(!(a!=null&&a.length))return;const n=a[0];if(!((d=n==null?void 0:n.time)!=null&&d.length))return;const u=l=>{if(l==null||l===""||l==="-")return null;const h=Number(l);return Number.isFinite(h)?h:null},p=n.time.map((l,h)=>{var S;return{t:String(l!=null?l:""),v:u((S=n.data)==null?void 0:S[h])}});p.sort((l,h)=>new Date(l.t).getTime()-new Date(h.t).getTime());const b=p.slice(-24),v=b.map(l=>l.t.split(".")[0]||l.t);if(b.map(l=>l.v).filter(l=>l!=null).length===0)return;const g=this.chartObj.getOption();!g.xAxis||!g.series||(g.xAxis[0].data=v,g.series[0].data=b.map(l=>l.v),this.updateChart(g))}setSocketData(e){var b,v,x;if(!this.chartObj||!e)return;const a=((x=(v=(b=this.props.conf)==null?void 0:b.data)==null?void 0:v[0])==null?void 0:x.fv)||"deformation",u=this.getSource()==="mosaic"?e.datetime:e.start_time,p=this.extractDataValue(e,a);if(p!=null&&u){const g=u.split(".")[0]||u,d=this.chartObj.getOption();d.xAxis[0].data.push(g),d.series[0].data.push(p),d.xAxis[0].data.length>24&&(d.xAxis[0].data.shift(),d.series[0].data.shift()),this.chartObj.setOption(d)}}onLinkEvent(e){P(e)}}const y=new o(r,"areaDeformCurve");y.setupLifecycle();const f=y.getStyle(),k=y.getEchartId(),C=t.ref("surface"),m=t.ref(!1),i=t.ref({type:"default",label:"重点区域监测趋势",subtitle:"全矿区总览",color:"#1a3a6b",data:[4.2,4.5,4.3,4.8,4.65],meta:{deviceId:"全矿区-总览",region:""}}),A=t.computed(()=>C.value==="surface"?"圈定面累积形变":"圈定点累积形变"),B=t.computed(()=>({backgroundColor:f.value.bgColor,color:f.value.textColor})),O=(s,e)=>Array.from({length:5},()=>parseFloat((s+Math.random()*e-e/2).toFixed(2))),V=s=>{const e=f.value,a=s.color,n=r.mode==="preview",u=n&&s.type==="default"?[]:["0h","6h","12h","18h","24h"],p=n&&s.type==="default"?[]:s.data;return{title:{text:s.label,subtext:s.subtitle,itemGap:4,textStyle:{fontSize:13,color:a,fontWeight:"bold"},subtextStyle:{fontSize:11,color:"#666"},right:5,top:0,textAlign:"right"},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#eee",textStyle:{color:"#333"},formatter:b=>{const v=b[0];return`${v.name}<br/>形变量: <strong>${v.value} mm</strong>`}},grid:{top:50,bottom:20,left:40,right:15},xAxis:{type:"category",boundaryGap:!1,data:u,axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10}},yAxis:{type:"value",name:e.yAxisLabel||"mm",nameTextStyle:{color:"#666",padding:[0,0,0,-20]},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{fontSize:10}},series:[{data:p,type:"line",smooth:!0,symbol:"circle",symbolSize:6,areaStyle:{color:new X.LinearGradient(0,0,0,1,[{offset:0,color:a},{offset:1,color:"rgba(255,255,255,0)"}])},lineStyle:{color:a,width:2},itemStyle:{color:a}}]}},I=s=>{C.value=C.value==="surface"?"point":"surface",i.value.type!=="customArea"&&N()},q=()=>{r.mode!=="edit"&&(m.value=!m.value,m.value?y.publish({type:"customArea",action:"start",mode:C.value}):(y.publish({type:"customArea",action:"stop"}),i.value.type!=="customArea"&&N()))},z=()=>{if(r.mode==="edit")return;const s=i.value;y.publish({type:"openAnalysis",deviceId:s.meta.deviceId,region:s.meta.region})},N=()=>{const s=y.getChartInstance();s&&s.setOption(V(i.value),!0)},E=(s,e)=>{switch(s){case"customArea":i.value={type:"customArea",label:"自定义圈定区域",subtitle:"多点聚合分析结果",color:"#71C446",data:O(6.5,3),meta:{deviceId:"Custom-Area",region:"自定义"}};break;case"region":i.value={type:"region",label:`${(e==null?void 0:e.name)||""}综合形变趋势`,subtitle:"区域平均值",color:"#409EFF",data:O(4,1.5),meta:{deviceId:`${e==null?void 0:e.name}-综合监测`,region:(e==null?void 0:e.region)||""}};break;case"radar":i.value={type:"radar",label:`${(e==null?void 0:e.name)||""}监测趋势`,subtitle:"设备实时监测",color:"#E6A23C",data:O(7,2.5),meta:{deviceId:`${e==null?void 0:e.name}-点01`,region:(e==null?void 0:e.region)||""}};break;default:i.value={type:"default",label:"重点区域监测趋势",subtitle:"全矿区总览",color:"#1a3a6b",data:[4.2,4.5,4.3,4.8,4.65],meta:{deviceId:"全矿区-总览",region:""}}}N()},P=s=>{var a;const{payload:e}=s;if(e.type==="customAreaComplete"){m.value=!1,E("customArea");return}if(e.type==="customAreaCancel"){m.value=!1,E("default");return}if(e.type==="regionFilter"){if(i.value.type==="customArea")return;const n=e.regions||[],u=e.radars||[];u.length===1?E("radar",{name:u[0],region:n[0]||""}):n.length===1&&!n.includes("全部")?E("region",{name:n[0],region:n[0]}):E("default");return}e.objectId&&(((a=r.conf)==null?void 0:a.data)||[]).forEach(u=>{u.object_id=e.objectId})};return t.watch(i,()=>{N()},{deep:!0}),(s,e)=>(t.openBlock(),t.createElementBlock("div",{class:"area-deform-wrapper",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[e[2]||(e[2]=t.createElementVNode("div",{class:"header-indicator"},null,-1)),t.createElementVNode("span",te,t.toDisplayString(A.value),1)]),t.createElementVNode("div",ae,[t.createElementVNode("button",{class:t.normalizeClass(["custom-btn",{"active-mode":m.value}]),onClick:q},[m.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[3]||(e[3]=t.createElementVNode("span",{class:"btn-icon"},"✕",-1)),e[4]||(e[4]=t.createTextVNode(" Esc 退出圈定 ",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[5]||(e[5]=t.createElementVNode("span",{class:"btn-icon"},"⊕",-1)),e[6]||(e[6]=t.createTextVNode(" 自定义圈定 ",-1))],64))],2),t.createElementVNode("button",{class:"page-btn",onClick:e[0]||(e[0]=a=>I())},[...e[7]||(e[7]=[t.createElementVNode("span",null,"<",-1)])]),t.createElementVNode("button",{class:"page-btn",onClick:e[1]||(e[1]=a=>I())},[...e[8]||(e[8]=[t.createElementVNode("span",null,">",-1)])])])]),t.createElementVNode("div",{class:"chart-area",onClick:z},[t.createElementVNode("div",{id:t.unref(k),class:"chart-container"},null,8,le)]),t.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),me=J._export_sfc(de,[["__scopeId","data-v-e2b2a4d5"]]);exports.default=me;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var v=Object.defineProperty,T=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var h=(r,o,e)=>o in r?v(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,g=(r,o)=>{for(var e in o||(o={}))z.call(o,e)&&h(r,e,o[e]);if(C)for(var e of C(o))N.call(o,e)&&h(r,e,o[e]);return r},_=(r,o)=>T(r,b(o));var A=(r,o,e)=>new Promise((S,f)=>{var d=n=>{try{y(e.next(n))}catch(l){f(l)}},p=n=>{try{y(e.throw(n))}catch(l){f(l)}},y=n=>n.done?S(n.value):Promise.resolve(n.value).then(d,p);y((e=e.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),V=require("./BaseComponent-CNXUpPY1.cjs"),D=require("./index-D8dh_6Qd.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-arrayCard-icon-QOabvV0y.cjs"),M={class:"mix-body"},k={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"统计",NAME_EN:"Array Card",ORDER:5},L={titleColor:"#111",bgColor:"#fff",textColor:"#111",textSize:48,radiusSize:8,isHideTitle:!0},O=[{fv:"",object_id:""}],B=["fv","object_id"],U=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],R=1,j={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},F={DEFAULT:k,OPTIONS:L,DATA:O,PARAMS:B,SOURCE:U,ITEMS:R,COMMON:j},q=t.defineComponent(_(g({},F),{__name:"arrayCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const e=r;class S extends V.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",48),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){return A(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=O)})}setHistoryData(i){if(!i)return;const{data:a}=this.props.conf;!Array.isArray(a)||!a.length||a.forEach((s,c)=>{try{const u=i[c].data[0];u!=null&&(s.value=u)}catch(u){}})}setSocketData(i){if(!i)return;const{data:a}=this.props.conf;a.forEach(s=>{var c;s.value=(c=this.extractDataValue(i,s.fv))!=null?c:"--"})}}const f=new S(e,"arrayCard");f.setupLifecycle();const d=f.getStyle(),p=e.conf,y=t.computed(()=>I.generateTitleStyle(e.conf.options)),n=l=>{var u;const i=((u=l==null?void 0:l[0])==null?void 0:u.value)||0,a=String(Math.floor(Number(i)||0)),s=[];let c=0;for(;c<a.length;)s.push(a.slice(c,c+3)),c+=3;return s.flatMap((m,x)=>x>0?[",",m]:[m])};return(l,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(d).bgColor,borderRadius:`${t.unref(d).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(y.value)},t.toDisplayString(t.unref(p).caption||t.unref(p).name),5),t.createElementVNode("div",M,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n(t.unref(p).data),(a,s)=>(t.openBlock(),t.createElementBlock("div",{key:s,class:t.normalizeClass(["digit-item",{separator:a==","}]),style:t.normalizeStyle({fontSize:`${t.unref(d).textSize}px`,color:t.unref(d).textColor})},t.toDisplayString(a),7))),128))]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),H=D._export_sfc(q,[["__scopeId","data-v-8187d21c"]]);exports.default=H;
|
package/dist/audio-BfsYRWbm.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,H=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var b=(n,r,a)=>r in n?$(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,M=(n,r)=>{for(var a in r||(r={}))j.call(r,a)&&b(n,a,r[a]);if(T)for(var a of T(r))W.call(r,a)&&b(n,a,r[a]);return n},O=(n,r)=>H(n,z(r));var x=(n,r,a)=>new Promise((k,E)=>{var p=s=>{try{d(a.next(s))}catch(h){E(h)}},i=s=>{try{d(a.throw(s))}catch(h){E(h)}},d=s=>s.done?k(s.value):Promise.resolve(s.value).then(p,i);d((a=a.apply(n,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Z=require("./BaseComponent-CNXUpPY1.cjs"),g=require("./index-D8dh_6Qd.cjs"),v=require("element-plus"),D=require("./ele-vdo-icon-Bgp9gaT6.cjs"),G={class:"mix-body"},K={class:"upload-content"},J={class:"upload-title"},Q={key:0,class:"upload-hint"},X={key:1,class:"upload-formats"},Y={key:1,class:"stream-input-area"},ee={class:"stream-content"},te={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},oe={key:0,class:"stream-input-container"},ae=["disabled"],le={key:1,class:"stream-hint"},ne={key:2,class:"stream-hint"},re={key:2,class:"player-container"},se={key:0,class:"audio-controls"},ie={class:"file-info"},ce={class:"file-name"},de={class:"audio-container"},ue=["src","controls","autoplay","loop","muted"],pe={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"音频播放器",NAME_EN:"Audio Player",ORDER:2},me={sourceType:{value:"upload",type:"select",label:"component.audio.sourceType",options:[{label:"component.audio.uploadFile",value:"upload"},{label:"component.audio.audioStream",value:"stream"}]},autoplay:!1,loop:!1,muted:!1,controls:!0,fileUrl:{value:"",type:"string",label:"component.audio.fileUrl",placeholder:"component.audio.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.audio.fileName",placeholder:"component.audio.uploadPlaceholder"},streamUrl:{value:"",type:"string",label:"component.audio.streamUrl",placeholder:"component.audio.streamPlaceholder"}},fe=[],ve=[],ye=[],ge=null,Ee={DEFAULT:pe,OPTIONS:me,DATA:fe,PARAMS:ve,SOURCE:ye,COMMON:ge},he=e.defineComponent(O(M({},Ee),{__name:"audio",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const r=g.useCounterStore(),a=n;class k extends Z.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),autoplay:this.getOptionValue("autoplay",!1),loop:this.getOptionValue("loop",!1),muted:this.getOptionValue("muted",!1),controls:this.getOptionValue("controls",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),I()}}const E=new k(a,"audio");E.setupLifecycle();const p=E.getStyle(),i=e.ref(""),d=e.ref(""),s=e.ref(null),h=e.ref(null),w=e.ref(!1),m=e.ref(""),y=e.getCurrentInstance(),N=e.computed(()=>{var o,t,l;return((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.sourceType)==null?void 0:l.value)||"upload"}),I=()=>{var o,t,l,c,u,f,C;N.value==="upload"&&((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value)&&(i.value=a.conf.options.fileUrl.value,d.value=((c=a.conf.options.fileName)==null?void 0:c.value)||""),N.value==="stream"&&((C=(f=(u=a.conf)==null?void 0:u.options)==null?void 0:f.streamUrl)!=null&&C.value)&&(m.value=a.conf.options.streamUrl.value,A())},R=()=>{var o;(o=s.value)==null||o.click()},S=o=>x(null,null,function*(){var c,u;const t=o.target.files[0];if(!t)return;if(!t.type.startsWith("audio/")){v.ElMessage.warning("请选择有效的音频文件");return}const l=URL.createObjectURL(t);i.value=l,d.value=t.name;try{w.value=!0;const f=yield g.fileToDataUrl(t),C=g.getFileExtension(t.name),V=yield g.api.post("upload",{dashboard_uid:r.pageData.id,file_data:f,file_type:C,user_id:((c=r.session.userInfo)==null?void 0:c.id)||""},!0);if(V.code===200&&((u=V.result)!=null&&u.relative_path)){const L=g.FILE_URL+V.result.relative_path;URL.revokeObjectURL(l),i.value=L,_("fileUrl",L),_("fileName",V.result.file_name||t.name),v.ElMessage.success("音频上传成功")}else throw new Error(V.msg||"上传失败")}catch(f){console.error("音频上传失败:",f),v.ElMessage.error("音频上传失败: "+(f.message||"未知错误"))}finally{w.value=!1,s.value&&(s.value.value="")}}),A=()=>{if(!m.value.trim()){v.ElMessage.warning("请输入音频流地址");return}const o=m.value.trim();_("streamUrl",o),i.value=o,d.value="音频流",v.ElMessage.success("音频流连接成功")},_=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},B=o=>{o.preventDefault(),o.stopPropagation()},U=o=>{var l;o.preventDefault(),o.stopPropagation();const t=(l=o.dataTransfer)==null?void 0:l.files;if(t&&t.length>0){const c=t[0];if(c!=null&&c.type.startsWith("audio/")){const u=new DataTransfer;u.items.add(c),s.value&&(s.value.files=u.files,S({target:s.value}))}else v.ElMessage.warning("请选择有效的音频文件")}},P=()=>{i.value="",d.value="",m.value=""},F=()=>{console.log("Audio metadata loaded")},q=o=>{console.error("Audio error:",o),v.ElMessage.error("音频加载失败,请检查URL或文件")};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=y==null?void 0:y.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",B),l.addEventListener("drop",U))}}),e.onBeforeUnmount(()=>{var t,l;const o=(l=(t=y==null?void 0:y.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",B),o.removeEventListener("drop",U))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(p).radiusSize}px`})},[e.createElementVNode("div",G,[!i.value&&N.value==="upload"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":n.mode==="preview"}]),onClick:t[0]||(t[0]=l=>n.mode!=="preview"&&R())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:s,type:"file",accept:"audio/*",onChange:S,style:{display:"none"}},null,544),e.createElementVNode("div",K,[t[3]||(t[3]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,3V13.55C11.41,13.21 10.73,13 10,13A3,3 0 0,0 7,16A3,3 0 0,0 10,19A3,3 0 0,0 13,16V7H18V5H12V3Z"})])],-1)),e.createElementVNode("h3",J,e.toDisplayString(n.mode==="preview"?o.$t("component.audio.noFile"):o.$t("component.audio.uploadText")),1),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",Q,e.toDisplayString(o.$t("component.audio.uploadHint")),1)):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",X,[...t[2]||(t[2]=[e.createElementVNode("span",{class:"format-tag"},"MP3",-1),e.createElementVNode("span",{class:"format-tag"},"WAV",-1),e.createElementVNode("span",{class:"format-tag"},"OGG",-1),e.createElementVNode("span",{class:"format-tag"},"AAC",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),!i.value&&N.value==="stream"?(e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",ee,[(e.openBlock(),e.createElementBlock("svg",te,[...t[4]||(t[4]=[e.createElementVNode("path",{d:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},null,-1)])])),t[5]||(t[5]=e.createElementVNode("p",{class:"stream-text"},"音频流播放",-1)),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",oe,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>m.value=l),type:"text",class:"stream-url-input",placeholder:"请输入音频流地址,如:http://xxx/radio/stream.mp3",onKeyup:e.withKeys(A,["enter"])},null,544),[[e.vModelText,m.value]]),e.createElementVNode("button",{class:"connect-btn",onClick:A,disabled:!m.value.trim()}," 连接 ",8,ae)])):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",le,"支持格式: HTTP音频流")):e.createCommentVNode("",!0),n.mode==="preview"?(e.openBlock(),e.createElementBlock("p",ne,"未配置音频流地址")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",re,[n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",ie,[e.createElementVNode("span",ce,e.toDisplayString(d.value||i.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:P,title:"更换文件"},[...t[6]||(t[6]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",de,[e.createElementVNode("audio",{ref_key:"audioRef",ref:h,src:i.value,controls:e.unref(p).controls,autoplay:e.unref(p).autoplay,loop:e.unref(p).loop,muted:e.unref(p).muted,onLoadedmetadata:F,onError:q,class:"audio-element"}," 您的浏览器不支持音频播放 ",40,ue)])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),Ve=g._export_sfc(he,[["__scopeId","data-v-050c7953"]]);exports.default=Ve;
|
package/dist/bmp-DIkLqzRN.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=Object.defineProperty,F=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var w=(a,l,s)=>l in a?R(a,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[l]=s,M=(a,l)=>{for(var s in l||(l={}))U.call(l,s)&&w(a,s,l[s]);if(O)for(var s of O(l))Z.call(l,s)&&w(a,s,l[s]);return a},z=(a,l)=>F(a,H(l));var I=(a,l,s)=>new Promise((m,p)=>{var y=c=>{try{g(s.next(c))}catch(_){p(_)}},S=c=>{try{g(s.throw(c))}catch(_){p(_)}},g=c=>c.done?m(c.value):Promise.resolve(c.value).then(y,S);g((s=s.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),K=require("./BaseComponent-CNXUpPY1.cjs"),E=require("./index-D8dh_6Qd.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),N=require("./no-image-icon-CPA7RKkF.cjs"),J=require("@element-plus/icons-vue"),$=require("./ele-bmp-icon-BBI0-SX7.cjs"),Q={class:"mix-body"},X={key:0},Y={class:"w-[80px] h-[80px]"},ee=["src"],te={class:"bdmap-base-info"},oe={class:"flex"},ne={class:"name"},se={class:"value"},le={class:"flex"},ae={class:"name"},ie={class:"value"},re={class:"flex"},ce={class:"name"},de={class:"value"},ue={key:1,class:"w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"},pe={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"百度地图",NAME_EN:"Baidu Map",ORDER:2},me={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,lng:113.933782,lat:22.582649,zoom:10},ge={baiduMapAk:""},fe={DEFAULT:pe,OPTIONS:me,COMMON:ge},ve=e.defineComponent(z(M({},fe),{__name:"bmp",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const{proxy:l}=e.getCurrentInstance(),s="bmp_"+Math.random().toString(16).substring(4,12);let m=null,p=null;const y=a;class S extends K.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),zoom:this.getOptionValue("zoom",10),lng:this.getOptionValue("lng",113.933782),lat:this.getOptionValue("lat",22.582649),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var u;this.Style.value=this.extractStyles(),this.applyTheme(),i.zoom=this.Style.value.zoom,i.center.lat=this.Style.value.lat,i.center.lng=this.Style.value.lng;const t=((u=this.props.conf)==null?void 0:u.common)||{};if(i.ak=t.baiduMapAk||"",p&&m){const n=new p.Point(this.Style.value.lng,this.Style.value.lat);m.centerAndZoom(n,this.Style.value.zoom)}}}const g=new S(y,"bmp");g.setupLifecycle();const c=g.getStyle(),_=e.computed(()=>G.generateTitleStyle(y.conf.options)),i=e.reactive({zoom:10,ak:"",center:{lat:22.582649,lng:113.933782}}),f=e.ref([]),d=e.ref({}),V=e.ref(0),x=e.ref(0),h=e.ref(!1),A=({BMap:o,map:t})=>{m=t,p=o,y.mode==="preview"&&D()},D=()=>I(null,null,function*(){const{result:o}=yield E.api.post("get_object_list"),t=/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/,u=/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;f.value=[];let n=!1;o.data.forEach(r=>{let k="";if(r.gis||r.gis.split(", ").length>1){const v=r.gis.split(", ");if(t.test(v[1])&&u.test(v[0])&&Number(v[1])&&Number(v[0])){const B=N.wgs84tobd09(Number(v[1]),Number(v[0]));k=B[1]+","+B[0]}else k=r.custom_gis}else k=r.custom_gis;const b=k.split(",");b.length>=2&&!n&&(i.center.lng=Number(b[1]),i.center.lat=Number(b[0]),n=!0),k.length>1&&f.value.push({center:{lng:b[1],lat:b[0]},image:r.image,address:r.address||r.province+r.city,name:r.name,uid:r.uid,desc:r.description})}),!n&&f.value[0]&&(i.center=f.value[0].center);const C=new p.Point(i.center.lng,i.center.lat);m.centerAndZoom(C,c.value.zoom)}),T=(o,t)=>{V.value=o.pixel.y+10+"px",x.value=o.pixel.x+10+"px",d.value=t,t.address||j(t),h.value=!0},q=o=>console.log(o),L=e.computed(()=>d.value.image?l.config.file_url+"/"+d.value.image:N.nullImage),j=o=>{const t=`${o.center.lat},${o.center.lng}`,u={ak:i.ak,location:t,coordtype:"bd09ll",output:"json",extensions_poi:1};E.api.getLocation("/bdMapAddress",u).then(n=>{n.status===0&&(d.value.address=n.result.formatted_address_poi||n.result.formatted_address)})},P=o=>{if(o){let t=location.href;t.indexOf("?object_id=")>-1&&(t=t.split("?object_id=")[0]),location.href=t+"?object_id="+o,location.reload()}};return(o,t)=>{const u=W.ElIcon;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(_.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",Q,[i.ak?(e.openBlock(),e.createElementBlock("div",{key:0,class:"map-wrap",id:s},[e.createVNode(e.unref(N.BaiduMap),{class:"bm-view relative",center:i.center,"map-click":!1,zoom:i.zoom,ak:i.ak,v:"3.0",type:"API",onMovestart:t[2]||(t[2]=n=>h.value=!1),onZoomstart:t[3]||(t[3]=n=>h.value=!1),onClick:t[4]||(t[4]=n=>q("close")),"scroll-wheel-zoom":!0,onReady:A},{default:e.withCtx(()=>[f.value.length?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(e.unref(N.MarkerClusterer),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,n=>(e.openBlock(),e.createBlock(e.unref(N.BmMarker),{onClick:C=>T(C,n),key:n.uid,position:n.center},null,8,["onClick","position"]))),128))]),_:1})])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"index-bdmap-equipment",style:e.normalizeStyle({top:V.value,left:x.value}),onClick:t[1]||(t[1]=n=>P(d.value))},[e.createElementVNode("div",Y,[e.createElementVNode("img",{src:L.value,class:"w-[100%] h-[100%]"},null,8,ee)]),e.createElementVNode("div",te,[e.createElementVNode("div",oe,[e.createElementVNode("span",ne,e.toDisplayString(o.$t("component.map.deviceNumber"))+":",1),e.createElementVNode("span",se,e.toDisplayString(d.value.uid),1)]),e.createElementVNode("div",le,[e.createElementVNode("span",ae,e.toDisplayString(o.$t("component.map.deviceName"))+":",1),e.createElementVNode("span",ie,e.toDisplayString(d.value.name),1)]),e.createElementVNode("div",re,[e.createElementVNode("span",ce,e.toDisplayString(o.$t("component.map.address"))+":",1),e.createElementVNode("span",de,e.toDisplayString(d.value.address),1)])]),e.createVNode(u,{class:"close-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(J.Close),{onClick:t[0]||(t[0]=e.withModifiers(n=>h.value=!1,["stop"]))})]),_:1})],4)):e.createCommentVNode("",!0)]),_:1},8,["center","zoom","ak"])])):(e.openBlock(),e.createElementBlock("div",ue,e.toDisplayString(o.$t("component.map.apiKeyRequired")),1))]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),ye=E._export_sfc(ve,[["__scopeId","data-v-7c9a461b"]]);exports.default=ye;
|