mixdashboards 1.0.32 → 1.0.39
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/CoordinateSystem-BMkAxlii.js +6 -0
- package/dist/CoordinateSystem-DWnjjFwb.cjs +1 -0
- package/dist/EChartComponentBase-BQOhWkz2.js +114 -0
- package/dist/EChartComponentBase-BaQpBzVC.cjs +1 -0
- package/dist/LegendVisualProvider-BDw4_0K3.cjs +1 -0
- package/dist/LegendVisualProvider-BP9kA8co.js +44 -0
- package/dist/MarkerView-BG_nYESR.cjs +1 -0
- package/dist/MarkerView-CtWJi5UZ.js +192 -0
- package/dist/RoamController--cgD3aNm.cjs +1 -0
- package/dist/RoamController-DmBIwcAZ.js +124 -0
- package/dist/UniverSheet-KlvmL1Yw.cjs +1 -0
- package/dist/UniverSheet-MSHzUXq0.js +180 -0
- package/dist/VisualMapping-D-MA7S0X.js +260 -0
- package/dist/VisualMapping-MilpZvD_.cjs +1 -0
- package/dist/accelerationChart-B1HPMmd2.js +577 -0
- package/dist/accelerationChart-DZj2V2vD.cjs +6 -0
- package/dist/actionItem-BYCPoQK7.cjs +1 -0
- package/dist/actionItem-Bb2xiYlY.js +686 -0
- package/dist/alarmLevelChart-Bb0mAbwQ.cjs +2 -0
- package/dist/alarmLevelChart-CCioESvL.js +182 -0
- package/dist/alertTable-CQwr8YYt.js +301 -0
- package/dist/alertTable-oaX5eJC0.cjs +1 -0
- package/dist/annualRainfallChart-C21jEMBe.js +185 -0
- package/dist/annualRainfallChart-pO8q6aUJ.cjs +1 -0
- package/dist/api-C0GhBpqd.js +125 -0
- package/dist/api-P_s372dW.cjs +1 -0
- package/dist/aqi-DlY2r7OA.cjs +3 -0
- package/dist/aqi-iLwQH4rc.js +145 -0
- package/dist/aqiIndass-BaIVBfdC.cjs +3 -0
- package/dist/aqiIndass-DBeVSBdy.js +301 -0
- package/dist/arrayCard-DNNUEPvW.js +93 -0
- package/dist/arrayCard-OlVAAsZq.cjs +1 -0
- package/dist/audio-CAP4D-J2.js +301 -0
- package/dist/audio-CThzVIDU.cjs +1 -0
- package/dist/axisAlignTicks-BqVUa467.js +481 -0
- package/dist/axisAlignTicks-CDNWKJRo.cjs +1 -0
- package/dist/bar-BjR566__.cjs +2 -0
- package/dist/bar-D8C06GO4.js +232 -0
- package/dist/bmp-Cjizh2x6.js +226 -0
- package/dist/bmp-DsmTzyce.cjs +1 -0
- package/dist/box-DqewT3MF.js +352 -0
- package/dist/box-qgu_67OD.cjs +1 -0
- package/dist/chartConfigPanel-BiQArCoQ.cjs +1 -0
- package/dist/chartConfigPanel-DwAUq3pf.js +408 -0
- package/dist/circleBar-CO89T7kj.cjs +4 -0
- package/dist/circleBar-DGHDWQih.js +196 -0
- package/dist/clock-32hGccm4.cjs +1 -0
- package/dist/clock-CT8YXEU3.js +274 -0
- package/dist/clt-5bP_g1O-.cjs +1 -0
- package/dist/clt-FfIEfGtn.js +293 -0
- package/dist/cmc-B2nQFZIS.js +269 -0
- package/dist/cmc-dbuLkE8o.cjs +1 -0
- package/dist/cmp-QQlYcnqo.js +378 -0
- package/dist/cmp-l3U9fIrz.cjs +6 -0
- package/dist/composite-CbsUYl-u.js +136 -0
- package/dist/composite-Cf24lSyN.cjs +1 -0
- package/dist/composite-DjhrBgG1.js +323 -0
- package/dist/composite-DlY2_x6P.cjs +3 -0
- package/dist/config-BLSroAzs.cjs +1 -0
- package/dist/config-Cc2W4vke.js +9 -0
- package/dist/controlList-BdF8xNAi.js +879 -0
- package/dist/controlList-De6PXdOc.cjs +1 -0
- package/dist/controlRecordList-CKpAr1ON.js +421 -0
- package/dist/controlRecordList-u5a7chIX.cjs +1 -0
- package/dist/crd-BVAf41oX.js +113 -0
- package/dist/crd-BoaXQhFQ.cjs +1 -0
- package/dist/createSeriesData-Cz83cqoZ.cjs +1 -0
- package/dist/createSeriesData-E53TTCAt.js +116 -0
- package/dist/createSeriesDataSimply-Bsly4zZA.js +14 -0
- package/dist/createSeriesDataSimply-CjfZL_jf.cjs +1 -0
- package/dist/ctrBtn-C9kQiqY1.cjs +1 -0
- package/dist/ctrBtn-ZPRYWE66.js +215 -0
- package/dist/ctrSet-C87dxLfQ.js +247 -0
- package/dist/ctrSet-CNCrnLSs.cjs +1 -0
- package/dist/ctrSwitch-CVEtbdfb.cjs +1 -0
- package/dist/ctrSwitch-CkC_Axtp.js +207 -0
- package/dist/cursorHelper-DE0KU4_J.js +29 -0
- package/dist/cursorHelper-DsTR8jVF.cjs +1 -0
- package/dist/customGraphicKeyframeAnimation-BJ_z0kB3.js +330 -0
- package/dist/customGraphicKeyframeAnimation-CEIvOjMs.cjs +1 -0
- package/dist/dataManagement-CjlNfeYq.js +672 -0
- package/dist/dataManagement-n711sd1g.cjs +1 -0
- package/dist/dataReport-BsVjW3p7.cjs +4 -0
- package/dist/dataReport-ByjswEqq.js +787 -0
- package/dist/dataSample-BXwc06Sb.js +114 -0
- package/dist/dataSample-D4ycwmll.cjs +1 -0
- package/dist/dataTable-DX500R1i.js +217 -0
- package/dist/dataTable-K7j4fhnq.cjs +1 -0
- package/dist/datetime-DVbJtALf.js +113 -0
- package/dist/datetime-DYXWKrXI.cjs +1 -0
- package/dist/deepClusterSlipSurface-B7nkEM9A.cjs +1 -0
- package/dist/deepClusterSlipSurface-CQUE05cK.js +372 -0
- package/dist/deepDataMatrix-DHZA0IAm.cjs +1 -0
- package/dist/deepDataMatrix-ai5rB6ET.js +238 -0
- package/dist/deepDisplacement3D-BFqKqSYg.cjs +4289 -0
- package/dist/deepDisplacement3D-BsUzvbQb.js +26052 -0
- package/dist/deepDisplacementChart-2JZNrhrw.cjs +5 -0
- package/dist/deepDisplacementChart-BCIuCMdK.js +585 -0
- package/dist/deepDisplacementChart-Ba67v6um.cjs +6 -0
- package/dist/deepDisplacementChart-igl4rW1K.js +340 -0
- package/dist/deepDisplacementView-BedWJsx7.js +231 -0
- package/dist/deepDisplacementView-wQxyKzB-.cjs +8 -0
- package/dist/deepNodeTemperatureChart-DLeb9jKp.js +347 -0
- package/dist/deepNodeTemperatureChart-albL8hKa.cjs +1 -0
- package/dist/deepTangentAngleChart-C6xOiITk.js +420 -0
- package/dist/deepTangentAngleChart-DukevXaM.cjs +1 -0
- package/dist/deepTemperatureField-B-y94GPV.js +398 -0
- package/dist/deepTemperatureField-De4xKoHw.cjs +1 -0
- package/dist/deepTrendChart-DCkV2HNv.js +345 -0
- package/dist/deepTrendChart-MmuYSXtu.cjs +1 -0
- package/dist/deviceOnlineStatus-B5cCjhNA.cjs +2 -0
- package/dist/deviceOnlineStatus-CFuCTx7_.js +178 -0
- package/dist/deviceStatus-B2ibBDSi.js +194 -0
- package/dist/deviceStatus-DsEtKiGo.cjs +1 -0
- package/dist/displacementDataTable-BDqG1IvI.js +256 -0
- package/dist/displacementDataTable-oLnUdafv.cjs +1 -0
- package/dist/displacementTrajectoryChart-CBhPwZhe.cjs +22 -0
- package/dist/displacementTrajectoryChart-Crf55oKi.js +597 -0
- package/dist/displacementTrendChart-10n_lC9j.js +364 -0
- package/dist/displacementTrendChart-CWihCuIJ.cjs +5 -0
- package/dist/dxf-D8zHpz5g.js +2768 -0
- package/dist/dxf-DDh_DcQy.cjs +1 -0
- package/dist/dzc-DLCdTCwW.js +144 -0
- package/dist/dzc-uNTDJqpi.cjs +2 -0
- package/dist/echarts-BB8O2KSA.cjs +21 -0
- package/dist/echarts-BVht3HHb.js +13787 -0
- package/dist/ele-aqi-icon-BMm9WgFH.cjs +1 -0
- package/dist/ele-aqi-icon-DsYfU5th.js +5 -0
- package/dist/ele-bar-icon-C-GiCs2a.js +5 -0
- package/dist/ele-bar-icon-V94clxg_.cjs +1 -0
- package/dist/ele-bmp-icon-BBI0-SX7.cjs +1 -0
- package/dist/ele-bmp-icon-Pdolk1J5.js +5 -0
- package/dist/ele-circleBar-icon-DNBUxt0A.js +5 -0
- package/dist/ele-circleBar-icon-Da0-L9sa.cjs +1 -0
- package/dist/ele-clt-icon-BEVOS7Tq.cjs +1 -0
- package/dist/ele-clt-icon-DuU4Q401.js +5 -0
- package/dist/ele-cmp-icon-CEP91RUe.js +5 -0
- package/dist/ele-cmp-icon-yUlU6c_Q.cjs +1 -0
- package/dist/ele-crd-icon-BXxB7P3T.js +5 -0
- package/dist/ele-crd-icon-BvNgAPKW.cjs +1 -0
- package/dist/ele-ctrSet-icon-BtKGrCid.js +5 -0
- package/dist/ele-ctrSet-icon-DCsPO0tL.cjs +1 -0
- package/dist/ele-dateTime-icon-BEGFlwID.js +5 -0
- package/dist/ele-dateTime-icon-BgZ2_KWW.cjs +1 -0
- package/dist/ele-dzc-icon-D6eVpaHp.js +5 -0
- package/dist/ele-dzc-icon-h5wOUHF0.cjs +1 -0
- package/dist/ele-evn-icon-DUQMS-9T.cjs +1 -0
- package/dist/ele-evn-icon-MWzAujnD.js +5 -0
- package/dist/ele-gag-icon-CB5dJeYF.js +5 -0
- package/dist/ele-gag-icon-Ce1hl9NI.cjs +1 -0
- package/dist/ele-glbModel-icon-ByACDCrv.cjs +1 -0
- package/dist/ele-glbModel-icon-l_SMi3ik.js +5 -0
- package/dist/ele-grd-icon-DR52zwGR.js +5 -0
- package/dist/ele-grd-icon-ZUb-megQ.cjs +1 -0
- package/dist/ele-gridview-icon-D3GcssP6.cjs +1 -0
- package/dist/ele-gridview-icon-cSd1oIDi.js +5 -0
- package/dist/ele-lin-icon-Dax-ZiWV.js +5 -0
- package/dist/ele-lin-icon-Dke_1AmT.cjs +1 -0
- package/dist/ele-lst-icon-CKpeRKmk.js +5 -0
- package/dist/ele-lst-icon-CrxnHZ-A.cjs +1 -0
- package/dist/ele-mxa-icon-CJWttkCK.js +5 -0
- package/dist/ele-mxa-icon-fgN0MLnh.cjs +1 -0
- package/dist/ele-rtn-icon-BrsJIU8J.cjs +1 -0
- package/dist/ele-rtn-icon-CqCKSHIw.js +5 -0
- package/dist/ele-textbox-icon-ClGaLi5p.js +5 -0
- package/dist/ele-textbox-icon-g_5kV8t6.cjs +1 -0
- package/dist/ele-vdo-icon-Bgp9gaT6.cjs +1 -0
- package/dist/ele-vdo-icon-DcWebTR5.js +5 -0
- package/dist/ele-vlu-icon-Bg6EHZdJ.js +5 -0
- package/dist/ele-vlu-icon-Dv-R7Xuc.cjs +1 -0
- package/dist/element-resize-detector-Bo5uDQAu.cjs +6 -0
- package/dist/element-resize-detector-DJcsrJ8s.js +1547 -0
- package/dist/evn-DuL5oVRl.cjs +1 -0
- package/dist/evn-YwCALVXj.js +116 -0
- package/dist/evolutionChart-4noZSdLX.js +406 -0
- package/dist/evolutionChart-AeL67MAt.cjs +1 -0
- package/dist/fileViewer-DiH3PM0r.js +415 -0
- package/dist/fileViewer-bsrjlJkC.cjs +1 -0
- package/dist/filterBar-CWEguwYc.js +394 -0
- package/dist/filterBar-Ct1BFhrS.cjs +1 -0
- package/dist/fireCombustionCurve-DYPC4zKJ.js +405 -0
- package/dist/fireCombustionCurve-DyiQn-WA.cjs +1 -0
- package/dist/fireFilterBar-Bdm2ljuO.cjs +1 -0
- package/dist/fireFilterBar-DGHPNTwF.js +221 -0
- package/dist/gag-HiNaL81R.cjs +1 -0
- package/dist/gag-kvkKzJuO.js +125 -0
- package/dist/glbModel-CUz6CyVF.js +2724 -0
- package/dist/glbModel-DtBI72ap.cjs +5 -0
- package/dist/gnssFilterBar-BQgY5x1W.cjs +1 -0
- package/dist/gnssFilterBar-TBtirXIB.js +310 -0
- package/dist/gnssHistoryTable-D1ZLJOgh.cjs +3 -0
- package/dist/gnssHistoryTable-U8O7nyO7.js +398 -0
- package/dist/gnssMapView-42zmAd9q.cjs +7 -0
- package/dist/gnssMapView-CaBfWeT1.js +699 -0
- package/dist/gnssTimeSeriesChart-BrXYvuh6.js +421 -0
- package/dist/gnssTimeSeriesChart-CV2w_Aik.cjs +1 -0
- package/dist/gnssXYTrajectory-BmzSYjQ_.cjs +5 -0
- package/dist/gnssXYTrajectory-D2DoYnze.js +304 -0
- package/dist/grd-B0GUjLm9.js +339 -0
- package/dist/grd-DW8cSFVR.cjs +1 -0
- package/dist/grdIndass-BeBXVsos.cjs +1 -0
- package/dist/grdIndass-DduUKZJm.js +216 -0
- package/dist/grg-CeX0pirQ.js +194 -0
- package/dist/grg-fnpcXtju.cjs +1 -0
- package/dist/gridview-BPwWXza9.js +183 -0
- package/dist/gridview-DpABhCIw.cjs +1 -0
- package/dist/groupCard-De1E15mW.js +132 -0
- package/dist/groupCard-WNE6gAAl.cjs +1 -0
- package/dist/headerBar-CZ3qcLHo.js +210 -0
- package/dist/headerBar-Qi1EXrr6.cjs +1 -0
- package/dist/{history-DigzRtjC.js → history-BkZhlpdY.js} +5 -3
- package/dist/history-DAmBl4_5.cjs +1 -0
- package/dist/index-ButoLLAe.js +8655 -0
- package/dist/index-Mh5Dw2sd.cjs +585 -0
- package/dist/index-kShjySl9.js +5313 -0
- package/dist/index-mAPVa0s4.cjs +11 -0
- package/dist/insarDeformChart-BGr2xe7w.cjs +1 -0
- package/dist/insarDeformChart-CnuSL1d9.js +216 -0
- package/dist/insarImageViewer-DRgGdQmN.cjs +1 -0
- package/dist/insarImageViewer-EmVThmVQ.js +268 -0
- package/dist/install-8XfFtnlL.js +853 -0
- package/dist/install-9_V0b6vf.js +497 -0
- package/dist/install-B0x4IqQr.js +1258 -0
- package/dist/install-B1IEhhn3.cjs +1 -0
- package/dist/install-B2TChEcT.js +895 -0
- package/dist/install-B65ZIqAx.cjs +1 -0
- package/dist/install-BBrAry2m.js +8 -0
- package/dist/install-BRjgycz_.cjs +1 -0
- package/dist/install-BUu5ESB7.js +447 -0
- package/dist/install-BamnGDPb.cjs +1 -0
- package/dist/install-BifpoHNI.js +1817 -0
- package/dist/install-BvOpNm0Y.cjs +1 -0
- package/dist/install-ByPD0oOh.cjs +1 -0
- package/dist/install-BzdOSCzO.js +785 -0
- package/dist/install-C8buXQPI.cjs +1 -0
- package/dist/install-C9Cdzkc6.js +265 -0
- package/dist/install-CBde4hAM.js +112 -0
- package/dist/install-CIT6k8Ga.cjs +1 -0
- package/dist/install-CYwVETsi.cjs +1 -0
- package/dist/install-C_3uGWLu.js +2328 -0
- package/dist/install-Ch5d8i37.cjs +1 -0
- package/dist/install-CltTFs4e.cjs +3 -0
- package/dist/install-Csxa7Kv7.cjs +18 -0
- package/dist/install-Cx1i_m0k.js +1168 -0
- package/dist/install-D1QM80AD.js +227 -0
- package/dist/install-D7znHb-b.js +604 -0
- package/dist/install-DHY9y86B.cjs +3 -0
- package/dist/install-DIlB2q7w.cjs +1 -0
- package/dist/install-DV5cEgNV.cjs +1 -0
- package/dist/install-DWm3j_D3.js +38 -0
- package/dist/install-FDYiy_gL.js +250 -0
- package/dist/install-LtoYukZU.cjs +1 -0
- package/dist/install-MS3ZY7fF.js +685 -0
- package/dist/install-hfre7yvV.js +727 -0
- package/dist/install-kGXY_57n.cjs +1 -0
- package/dist/install-nDY6w-GK.cjs +1 -0
- package/dist/install-oGjJ0_bF.js +588 -0
- package/dist/install-z6wShIZI.cjs +1 -0
- package/dist/installCanvasRenderer-CLT2hquJ.js +4260 -0
- package/dist/installCanvasRenderer-CyhM1Qpl.cjs +3 -0
- package/dist/installMarkArea-Cdg4iciO.js +206 -0
- package/dist/installMarkArea-CjyaJPLE.cjs +1 -0
- package/dist/installMarkLine-BgE0YACE.js +533 -0
- package/dist/installMarkLine-Bv53Iw9G.cjs +1 -0
- package/dist/installSimple-BWTCwMdY.js +586 -0
- package/dist/installSimple-c87Ufc4_.cjs +1 -0
- package/dist/kds-CpIQFgeY.js +1203 -0
- package/dist/kds-DTYWOq4K.cjs +3 -0
- package/dist/labelHelper-Cd8oB-sZ.js +26 -0
- package/dist/labelHelper-npJGYQ1j.cjs +1 -0
- package/dist/layerTabs-BATcBkTA.cjs +1 -0
- package/dist/layerTabs-uze6K91A.js +139 -0
- package/dist/lin-Ba6fHkYf.cjs +2 -0
- package/dist/lin-DU_EuPRg.js +239 -0
- package/dist/linIndass-XHKElG7L.js +273 -0
- package/dist/linIndass-urYe5inp.cjs +2 -0
- package/dist/lst-C7aee1cU.js +147 -0
- package/dist/lst-CpmoEQDY.cjs +1 -0
- package/dist/manualEntry-CJPiO5nh.cjs +1 -0
- package/dist/manualEntry-D9m_WPw3.js +662 -0
- package/dist/mapBackground-6g_71Fwa.js +6658 -0
- package/dist/mapBackground-CF_TqNBy.cjs +17 -0
- package/dist/mappingList-CR55Tq4t.cjs +1 -0
- package/dist/mappingList-luT5YE0d.js +917 -0
- package/dist/markdownViewer-CnguoUr8.js +261 -0
- package/dist/markdownViewer-D1hDk2Y7.cjs +3 -0
- package/dist/mix-control-modal-BDHAB4Tw.cjs +1 -0
- package/dist/mix-control-modal-CHiX3hQs.js +147 -0
- package/dist/mixDataPermission-BTA1jNd1.cjs +1 -0
- package/dist/mixDataPermission-BaqV0Z6N.js +760 -0
- package/dist/mixGrid-3BqQCvg8.cjs +1 -0
- package/dist/mixGrid-C0eEvwPy.js +180 -0
- package/dist/mixMap-7upgYwWk.js +258 -0
- package/dist/mixMap-Bw-We4Cm.cjs +1 -0
- package/dist/mixModel-BqE_Kd4c.js +245 -0
- package/dist/mixModel-CgV4XptM.cjs +3 -0
- package/dist/mixPie-9LfMCTQV.cjs +2 -0
- package/dist/mixPie-B-HeglUn.js +168 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +7 -7
- package/dist/mjpegCamera-Cfw3rzT5.js +158 -0
- package/dist/mjpegCamera-nxKfhobY.cjs +1 -0
- package/dist/monitorAlert-Bg5vzzyG.js +225 -0
- package/dist/monitorAlert-Bt0baNh4.cjs +1 -0
- package/dist/monitorData-BvAMeOrp.js +319 -0
- package/dist/monitorData-CzPVIk_4.cjs +1 -0
- package/dist/monitorSpeedChart-0bDuU3Kj.js +603 -0
- package/dist/monitorSpeedChart-C52QjA5K.cjs +16 -0
- package/dist/mxa-BW80xKCc.js +143 -0
- package/dist/mxa-eLAgZPMC.cjs +2 -0
- package/dist/no-image-icon-CPA7RKkF.cjs +1 -0
- package/dist/no-image-icon-n2ZlEjxS.js +1864 -0
- package/dist/objectList-Cf9GMyXN.js +1809 -0
- package/dist/objectList-CpqQxG8L.cjs +1 -0
- package/dist/params-3W3p8QeC.cjs +1 -0
- package/dist/params-DfgBemk0.js +75 -0
- package/dist/photo-BODEtaYh.cjs +1 -0
- package/dist/photo-BfLkWAo8.js +256 -0
- package/dist/pie-BDLg-Rls.js +199 -0
- package/dist/pie-DxoBrm0D.cjs +2 -0
- package/dist/points-DcRmizmA.cjs +1 -0
- package/dist/points-DkG9FRF9.js +277 -0
- package/dist/pressBtn-CXG1eSWC.js +242 -0
- package/dist/pressBtn-t0g4vk7s.cjs +1 -0
- package/dist/progressBar-BXaFKSCq.js +130 -0
- package/dist/progressBar-CJEWkZ42.cjs +1 -0
- package/dist/progressCircle-DpOI5D5z.js +168 -0
- package/dist/progressCircle-uQ7vaMKM.cjs +1 -0
- package/dist/qrcode-CX8aymYZ.js +814 -0
- package/dist/qrcode-DHCRfp0M.cjs +1 -0
- package/dist/raceBar-Cv0-0ogd.cjs +4 -0
- package/dist/raceBar-DFaH342G.js +197 -0
- package/dist/rad-CFswUTwi.cjs +1 -0
- package/dist/rad-NS2G_nMg.js +143 -0
- package/dist/rainfallFilterBar-BI45QvJm.cjs +1 -0
- package/dist/rainfallFilterBar-D_Ye_NeB.js +221 -0
- package/dist/rainfallTimeCurve-BHWqX47Q.js +443 -0
- package/dist/rainfallTimeCurve-Ke1JvSWq.cjs +1 -0
- package/dist/rangeLin-D6VZ2U3C.cjs +3 -0
- package/dist/rangeLin-GMYEgLeP.js +278 -0
- package/dist/request-BD0x5Hkt.js +75 -0
- package/dist/request-Bn100qAJ.cjs +1 -0
- package/dist/retainer1-D2XmjXYH.cjs +1 -0
- package/dist/retainer1-h-Whr2c9.js +290 -0
- package/dist/retainer2-ByQdiRjq.js +504 -0
- package/dist/retainer2-cF-trL2g.cjs +1 -0
- package/dist/riskRegionTable-CQxAkG7k.js +170 -0
- package/dist/riskRegionTable-cKnxra4_.cjs +1 -0
- package/dist/sankey-Bk1IcVJQ.js +171 -0
- package/dist/sankey-MRirEgU0.cjs +1 -0
- package/dist/sausage-DRCw7Qmr.cjs +1 -0
- package/dist/sausage-xU3hOdxD.js +30 -0
- package/dist/scd-BDRpzmsa.js +2577 -0
- package/dist/scd-J-mN3eI5.cjs +1 -0
- package/dist/sectorHelper-BFEnYqut.cjs +1 -0
- package/dist/sectorHelper-DIlWFMnU.js +18 -0
- package/dist/sideMenu-BgTMtnMq.js +225 -0
- package/dist/sideMenu-l8X2E00H.cjs +1 -0
- package/dist/slopeStability-BPf7m0fJ.cjs +1 -0
- package/dist/slopeStability-C5RqZ1im.js +331 -0
- package/dist/speedCurve-C3pK-zZy.js +394 -0
- package/dist/speedCurve-CluwNAZl.cjs +1 -0
- package/dist/staticLine-C6tGGXcN.cjs +1 -0
- package/dist/staticLine-DXWOLj15.js +362 -0
- package/dist/store-BJW2NQkK.cjs +5 -0
- package/dist/store-DzDtVfSX.js +1673 -0
- package/dist/swiper-DGqDoUkX.cjs +1 -0
- package/dist/swiper-IMlGje3t.js +128 -0
- package/dist/terminalConfigList-D6xDHsnb.cjs +1 -0
- package/dist/terminalConfigList-SAyXi-BK.js +1017 -0
- package/dist/terminalList-CjSHshiR.js +1211 -0
- package/dist/terminalList-ml2C18MY.cjs +1 -0
- package/dist/textbox-AQtCe25j.cjs +1 -0
- package/dist/textbox-BLV-SY8e.js +172 -0
- package/dist/three.module-DNVo041Q.cjs +3824 -0
- package/dist/three.module-DcOQNgKS.js +16561 -0
- package/dist/timeQueryBar-BeMu_DYr.js +155 -0
- package/dist/timeQueryBar-BuKakMy8.cjs +1 -0
- package/dist/timeSeries-DP5iZKVM.js +587 -0
- package/dist/timeSeries-DfGgFWiF.cjs +4 -0
- package/dist/timeSeriesCurve-B0Mw6eNK.cjs +1 -0
- package/dist/timeSeriesCurve-BSgtPqYw.js +463 -0
- package/dist/titleStyle-BT5GlpAb.js +49 -0
- package/dist/titleStyle-NSnz6cUg.cjs +1 -0
- package/dist/toggleBtn-Dh64vVWo.cjs +1 -0
- package/dist/toggleBtn-O2Y75Uen.js +249 -0
- package/dist/trajectoryConfigPanel--C1h3tK6.js +635 -0
- package/dist/trajectoryConfigPanel-P_Qa4omj.cjs +1 -0
- package/dist/trajectoryScatter-BbpbgNb8.cjs +1 -0
- package/dist/trajectoryScatter-VLrmImlq.js +525 -0
- package/dist/universalConfigPanel-C0lDSzOB.cjs +1 -0
- package/dist/universalConfigPanel-DBg76b4F.js +477 -0
- package/dist/universalTable-Bzq9VqzA.cjs +2 -0
- package/dist/universalTable-DGK02ywi.js +410 -0
- package/dist/universalTransition-Bv7ibBUh.js +988 -0
- package/dist/universalTransition-CIN_u2Cu.cjs +1 -0
- package/dist/video-CyRoSQf1.cjs +1 -0
- package/dist/video-DCzzaEmV.js +310 -0
- package/dist/videoMonitor-BjD-ZFS0.cjs +1 -0
- package/dist/videoMonitor-ByaQeIWR.js +241 -0
- package/dist/vlu-CYZjYHaV.cjs +1 -0
- package/dist/vlu-h-9twmCr.js +100 -0
- package/dist/vue-i18n-5Nahpzrm.js +2732 -0
- package/dist/vue-i18n-BvHMBi_b.cjs +5 -0
- package/dist/weather-B7B5E1EJ.cjs +1 -0
- package/dist/weather-C_aC0XJ1.js +94 -0
- package/dist/windLin-B7V4NUV8.js +1226 -0
- package/dist/windLin-DPNzX7JN.cjs +1 -0
- package/package.json +17 -10
- package/dist/history-fvcbbxGa.cjs +0 -1
- package/dist/index-B-aA7889.js +0 -154003
- package/dist/index-CdJ-j9Gj.cjs +0 -8893
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
var t2 = Object.defineProperty, o2 = Object.defineProperties;
|
|
2
|
+
var l2 = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var E = Object.getOwnPropertySymbols, s2 = Object.getPrototypeOf, a2 = Object.prototype.hasOwnProperty, n2 = Object.prototype.propertyIsEnumerable, r2 = Reflect.get;
|
|
4
|
+
var D = (l, o, t) => o in l ? t2(l, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[o] = t, B = (l, o) => {
|
|
5
|
+
for (var t in o || (o = {}))
|
|
6
|
+
a2.call(o, t) && D(l, t, o[t]);
|
|
7
|
+
if (E)
|
|
8
|
+
for (var t of E(o))
|
|
9
|
+
n2.call(o, t) && D(l, t, o[t]);
|
|
10
|
+
return l;
|
|
11
|
+
}, R = (l, o) => o2(l, l2(o));
|
|
12
|
+
var $ = (l, o, t) => r2(s2(l), t, o);
|
|
13
|
+
var H = (l, o, t) => new Promise((u, v) => {
|
|
14
|
+
var g = (i) => {
|
|
15
|
+
try {
|
|
16
|
+
f(t.next(i));
|
|
17
|
+
} catch (s) {
|
|
18
|
+
v(s);
|
|
19
|
+
}
|
|
20
|
+
}, m = (i) => {
|
|
21
|
+
try {
|
|
22
|
+
f(t.throw(i));
|
|
23
|
+
} catch (s) {
|
|
24
|
+
v(s);
|
|
25
|
+
}
|
|
26
|
+
}, f = (i) => i.done ? u(i.value) : Promise.resolve(i.value).then(g, m);
|
|
27
|
+
f((t = t.apply(l, o)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as i2, reactive as P, ref as b, computed as y, openBlock as h, createElementBlock as w, Fragment as U, createElementVNode as C, normalizeStyle as x, unref as p, toDisplayString as M, normalizeClass as V, createCommentVNode as J, renderList as c2, renderSlot as d2, createVNode as u2 } from "vue";
|
|
30
|
+
import "html2canvas";
|
|
31
|
+
import { l as m2, B as f2, A as G } from "./element-resize-detector-DJcsrJ8s.js";
|
|
32
|
+
import { _ as C2 } from "./index-kShjySl9.js";
|
|
33
|
+
import { g as p2 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
+
import { _ as v2, g as g2 } from "./mix-control-modal-CHiX3hQs.js";
|
|
35
|
+
import { a as L2 } from "./api-C0GhBpqd.js";
|
|
36
|
+
import { ElMessage as z } from "element-plus";
|
|
37
|
+
const h2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", w2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", x2 = { class: "font-semibold" }, _2 = { class: "flex items-center" }, S2 = { class: "mix-body" }, b2 = { class: "w-full flex flex-wrap content-start" }, y2 = ["onMousedown", "onMouseup"], M2 = {
|
|
38
|
+
DEFAULT_ICON: h2,
|
|
39
|
+
ACTIVE_ICON: w2,
|
|
40
|
+
NAME_CN: "双控",
|
|
41
|
+
NAME_EN: "Dual Control",
|
|
42
|
+
ORDER: 3
|
|
43
|
+
}, z2 = {
|
|
44
|
+
bgColor: "#fff",
|
|
45
|
+
titleColor: "#111",
|
|
46
|
+
textColor: "#fff",
|
|
47
|
+
titleSize: 14,
|
|
48
|
+
textSize: 14,
|
|
49
|
+
itemHeight: 42,
|
|
50
|
+
radiusSize: 8,
|
|
51
|
+
items: 2,
|
|
52
|
+
isHideTitle: !1,
|
|
53
|
+
method: {
|
|
54
|
+
value: "alway",
|
|
55
|
+
type: "select",
|
|
56
|
+
label: "component.switch.method",
|
|
57
|
+
options: m2
|
|
58
|
+
}
|
|
59
|
+
}, K = [
|
|
60
|
+
{ upper: { command: "Control_01", code: 0 }, down: { command: "Control_01", code: 1 }, name: "关机", color: "#c92309", code: 0 },
|
|
61
|
+
{ upper: { command: "Control_01", code: 0 }, down: { command: "Control_01", code: 1 }, name: "开机", color: "#217406", code: 1 }
|
|
62
|
+
], k2 = ["name", "color", "upper", "down"], O2 = {
|
|
63
|
+
useAlias: !1,
|
|
64
|
+
multiObject: !1,
|
|
65
|
+
hideMultiObject: !0,
|
|
66
|
+
statusFv: "",
|
|
67
|
+
statusType: 1,
|
|
68
|
+
status: [{ code: 0, text: "离线", color: "#c92309" }]
|
|
69
|
+
}, A2 = ["mosaic"], Z2 = { DEFAULT: M2, OPTIONS: z2, DATA: K, PARAMS: k2, SOURCE: A2, COMMON: O2 }, N2 = /* @__PURE__ */ i2(R(B({}, Z2), {
|
|
70
|
+
__name: "pressBtn",
|
|
71
|
+
props: {
|
|
72
|
+
conf: {
|
|
73
|
+
type: Object,
|
|
74
|
+
default: () => ({ data: [] })
|
|
75
|
+
},
|
|
76
|
+
mode: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "edit"
|
|
79
|
+
},
|
|
80
|
+
uid: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: ""
|
|
83
|
+
},
|
|
84
|
+
theme: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: "light"
|
|
87
|
+
},
|
|
88
|
+
password: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: ""
|
|
91
|
+
},
|
|
92
|
+
authorized: {
|
|
93
|
+
type: Array,
|
|
94
|
+
default: () => []
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
setup(l) {
|
|
98
|
+
const o = l, t = P({
|
|
99
|
+
authorized: [],
|
|
100
|
+
password: ""
|
|
101
|
+
}), u = P({
|
|
102
|
+
text: "",
|
|
103
|
+
color: ""
|
|
104
|
+
}), v = b(null), g = b(!0), m = b(!1);
|
|
105
|
+
class f extends f2 {
|
|
106
|
+
extractStyles() {
|
|
107
|
+
var a, c, r, L, d, _, O, A, Z, N, F, I, T, j;
|
|
108
|
+
const { options: e } = this.props.conf;
|
|
109
|
+
return {
|
|
110
|
+
bgColor: ((a = e == null ? void 0 : e.bgColor) == null ? void 0 : a.value) || "#fff",
|
|
111
|
+
titleColor: ((c = e == null ? void 0 : e.titleColor) == null ? void 0 : c.value) || "#111",
|
|
112
|
+
textColor: ((r = e == null ? void 0 : e.textColor) == null ? void 0 : r.value) || "#fff",
|
|
113
|
+
titleSize: ((L = e == null ? void 0 : e.titleSize) == null ? void 0 : L.value) || 16,
|
|
114
|
+
textSize: ((d = e == null ? void 0 : e.textSize) == null ? void 0 : d.value) || 14,
|
|
115
|
+
itemHeight: ((_ = e == null ? void 0 : e.itemHeight) == null ? void 0 : _.value) || 42,
|
|
116
|
+
radiusSize: (A = (O = e == null ? void 0 : e.radiusSize) == null ? void 0 : O.value) != null ? A : 8,
|
|
117
|
+
items: (N = (Z = e == null ? void 0 : e.items) == null ? void 0 : Z.value) != null ? N : 2,
|
|
118
|
+
method: (I = (F = e == null ? void 0 : e.method) == null ? void 0 : F.value) != null ? I : "alway",
|
|
119
|
+
isHideTitle: (j = (T = e == null ? void 0 : e.isHideTitle) == null ? void 0 : T.value) != null ? j : !1
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
init() {
|
|
123
|
+
super.init(), this.props.conf.data = this.props.conf.data.length ? this.props.conf.data : K;
|
|
124
|
+
}
|
|
125
|
+
onPreview() {
|
|
126
|
+
return H(this, null, function* () {
|
|
127
|
+
yield $(f.prototype, this, "onPreview").call(this);
|
|
128
|
+
const e = yield g2(this.props);
|
|
129
|
+
t.authorized = e.authorized, t.password = e.password;
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
setSocketData(e) {
|
|
133
|
+
var r, L;
|
|
134
|
+
if (!e) return;
|
|
135
|
+
const { common: a } = this.props.conf, c = this.extractDataValue(e, a.statusFv);
|
|
136
|
+
if (c != null) {
|
|
137
|
+
const d = a.status.find((_) => String(_.code) === String(c));
|
|
138
|
+
u.text = (r = d == null ? void 0 : d.text) != null ? r : "", u.color = (L = d == null ? void 0 : d.color) != null ? L : "";
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const i = new f(o, "pressBtn");
|
|
143
|
+
i.setupLifecycle();
|
|
144
|
+
const s = i.getStyle(), W = y(() => p2(o.conf.options)), Y = y(() => `${(100 / s.value.items).toFixed(2) || 100}%`), S = y(() => {
|
|
145
|
+
const n = s.value.method || "alway";
|
|
146
|
+
return n === "once" && g.value || n === "alway" && !m.value;
|
|
147
|
+
}), q = () => {
|
|
148
|
+
m.value || (v.value.modal.visible = !0);
|
|
149
|
+
}, Q = () => {
|
|
150
|
+
m.value = !0, s.value.method === "once" && (g.value = !1);
|
|
151
|
+
}, X = (n) => {
|
|
152
|
+
if (S.value) return;
|
|
153
|
+
if (t.authorized.indexOf(n.down.command) === -1) {
|
|
154
|
+
z.error("您没有控制权限!");
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const { common: e } = o.conf, a = JSON.parse(sessionStorage.getItem(G) || "{}");
|
|
158
|
+
let r = {
|
|
159
|
+
block_mapping: "pusher",
|
|
160
|
+
action: "publish_command",
|
|
161
|
+
object_id: e.useAlias ? a[e.object_alias] : e.object_id || o.uid,
|
|
162
|
+
command: n.down.command.toString(),
|
|
163
|
+
value: n.down.code.toString() || "",
|
|
164
|
+
control: t.password,
|
|
165
|
+
rule: s.value.method
|
|
166
|
+
};
|
|
167
|
+
k(r, "down");
|
|
168
|
+
}, e2 = (n) => {
|
|
169
|
+
if (S.value) return;
|
|
170
|
+
if (t.authorized.indexOf(n.upper.command) === -1) {
|
|
171
|
+
z.error("您没有控制权限!");
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
const { common: e } = o.conf, a = JSON.parse(sessionStorage.getItem(G) || "{}");
|
|
175
|
+
let r = {
|
|
176
|
+
block_mapping: "pusher",
|
|
177
|
+
action: "publish_command",
|
|
178
|
+
object_id: e.useAlias ? a[e.object_alias] : e.object_id || o.uid,
|
|
179
|
+
command: n.upper.command.toString(),
|
|
180
|
+
value: n.upper.code.toString() || "",
|
|
181
|
+
control: t.password,
|
|
182
|
+
rule: s.value.method
|
|
183
|
+
};
|
|
184
|
+
k(r, "up");
|
|
185
|
+
}, k = (n, e) => {
|
|
186
|
+
L2.platform((a) => {
|
|
187
|
+
a.code === 200 && (z.success(a.msg), g.value = !1, s.value.method === "alway" && e === "up" && (m.value = !1));
|
|
188
|
+
}, n);
|
|
189
|
+
};
|
|
190
|
+
return (n, e) => (h(), w(U, null, [
|
|
191
|
+
C("div", {
|
|
192
|
+
class: "mix-component",
|
|
193
|
+
style: x({ background: p(s).bgColor, borderRadius: `${p(s).radiusSize}px` })
|
|
194
|
+
}, [
|
|
195
|
+
C("div", {
|
|
196
|
+
class: "mix-title",
|
|
197
|
+
style: x(W.value)
|
|
198
|
+
}, [
|
|
199
|
+
C("div", x2, M(l.conf.caption || l.conf.name), 1),
|
|
200
|
+
C("div", _2, [
|
|
201
|
+
p(s).method !== "never" ? (h(), w("div", {
|
|
202
|
+
key: 0,
|
|
203
|
+
class: V(["verify-btn", { disabled: m.value }]),
|
|
204
|
+
onClick: q
|
|
205
|
+
}, "验证密码", 2)) : J("", !0),
|
|
206
|
+
u.text ? (h(), w("div", {
|
|
207
|
+
key: 1,
|
|
208
|
+
class: "status-btn",
|
|
209
|
+
style: x({ backgroundColor: u.color, color: p(s).textColor })
|
|
210
|
+
}, M(u.text), 5)) : J("", !0)
|
|
211
|
+
])
|
|
212
|
+
], 4),
|
|
213
|
+
C("div", S2, [
|
|
214
|
+
C("div", b2, [
|
|
215
|
+
(h(!0), w(U, null, c2(l.conf.data, (a, c) => (h(), w("div", {
|
|
216
|
+
class: "btn-wrap",
|
|
217
|
+
key: c,
|
|
218
|
+
style: x({ width: Y.value, height: `${p(s).itemHeight}px`, fontSize: `${p(s).textSize}px` })
|
|
219
|
+
}, [
|
|
220
|
+
C("div", {
|
|
221
|
+
class: V(["btn-item", { disabled: S.value }]),
|
|
222
|
+
style: x({ backgroundColor: a.color, color: p(s).textColor }),
|
|
223
|
+
onMousedown: (r) => X(a),
|
|
224
|
+
onMouseup: (r) => e2(a)
|
|
225
|
+
}, M(a.name), 47, y2)
|
|
226
|
+
], 4))), 128))
|
|
227
|
+
])
|
|
228
|
+
]),
|
|
229
|
+
d2(n.$slots, "default", {}, void 0, !0)
|
|
230
|
+
], 4),
|
|
231
|
+
u2(v2, {
|
|
232
|
+
ref_key: "controlRef",
|
|
233
|
+
ref: v,
|
|
234
|
+
onSubmit: Q,
|
|
235
|
+
password: t.password
|
|
236
|
+
}, null, 8, ["password"])
|
|
237
|
+
], 64));
|
|
238
|
+
}
|
|
239
|
+
})), H2 = /* @__PURE__ */ C2(N2, [["__scopeId", "data-v-dda3873e"]]);
|
|
240
|
+
export {
|
|
241
|
+
H2 as default
|
|
242
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var H=Object.defineProperty,U=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols,J=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,W=Reflect.get;var O=(n,l,o)=>l in n?H(n,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[l]=o,Z=(n,l)=>{for(var o in l||(l={}))K.call(l,o)&&O(n,o,l[o]);if(A)for(var o of A(l))Y.call(l,o)&&O(n,o,l[o]);return n},B=(n,l)=>U(n,G(l));var F=(n,l,o)=>W(J(n),o,l);var I=(n,l,o)=>new Promise((m,p)=>{var v=c=>{try{C(o.next(c))}catch(r){p(r)}},f=c=>{try{C(o.throw(c))}catch(r){p(r)}},C=c=>c.done?m(c.value):Promise.resolve(c.value).then(v,f);C((o=o.apply(n,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const h=require("./element-resize-detector-Bo5uDQAu.cjs"),Q=require("./index-Mh5Dw2sd.cjs"),X=require("./titleStyle-NSnz6cUg.cjs"),T=require("./mix-control-modal-BDHAB4Tw.cjs"),e2=require("./api-P_s372dW.cjs"),x=require("element-plus"),t2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",o2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",l2={class:"font-semibold"},n2={class:"flex items-center"},r2={class:"mix-body"},a2={class:"w-full flex flex-wrap content-start"},s2=["onMousedown","onMouseup"],i2={DEFAULT_ICON:t2,ACTIVE_ICON:o2,NAME_CN:"双控",NAME_EN:"Dual Control",ORDER:3},c2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},j=[{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"关机",color:"#c92309",code:0},{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"开机",color:"#217406",code:1}],d2=["name","color","upper","down"],u2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},m2=["mosaic"],f2={DEFAULT:i2,OPTIONS:c2,DATA:j,PARAMS:d2,SOURCE:m2,COMMON:u2},C2=e.defineComponent(B(Z({},f2),{__name:"pressBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},authorized:{type:Array,default:()=>[]}},setup(n){const l=n,o=e.reactive({authorized:[],password:""}),m=e.reactive({text:"",color:""}),p=e.ref(null),v=e.ref(!0),f=e.ref(!1);class C extends h.BaseComponent{extractStyles(){var a,d,i,g,u,L,y,_,b,M,k,z,E,N;const{options:t}=this.props.conf;return{bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#fff",titleColor:((d=t==null?void 0:t.titleColor)==null?void 0:d.value)||"#111",textColor:((i=t==null?void 0:t.textColor)==null?void 0:i.value)||"#fff",titleSize:((g=t==null?void 0:t.titleSize)==null?void 0:g.value)||16,textSize:((u=t==null?void 0:t.textSize)==null?void 0:u.value)||14,itemHeight:((L=t==null?void 0:t.itemHeight)==null?void 0:L.value)||42,radiusSize:(_=(y=t==null?void 0:t.radiusSize)==null?void 0:y.value)!=null?_:8,items:(M=(b=t==null?void 0:t.items)==null?void 0:b.value)!=null?M:2,method:(z=(k=t==null?void 0:t.method)==null?void 0:k.value)!=null?z:"alway",isHideTitle:(N=(E=t==null?void 0:t.isHideTitle)==null?void 0:E.value)!=null?N:!1}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:j}onPreview(){return I(this,null,function*(){yield F(C.prototype,this,"onPreview").call(this);const t=yield T.getAuthorized(this.props);o.authorized=t.authorized,o.password=t.password})}setSocketData(t){var i,g;if(!t)return;const{common:a}=this.props.conf,d=this.extractDataValue(t,a.statusFv);if(d!=null){const u=a.status.find(L=>String(L.code)===String(d));m.text=(i=u==null?void 0:u.text)!=null?i:"",m.color=(g=u==null?void 0:u.color)!=null?g:""}}}const c=new C(l,"pressBtn");c.setupLifecycle();const r=c.getStyle(),D=e.computed(()=>X.generateTitleStyle(l.conf.options)),V=e.computed(()=>`${(100/r.value.items).toFixed(2)||100}%`),w=e.computed(()=>{const s=r.value.method||"alway";return s==="once"&&v.value||s==="alway"&&!f.value}),P=()=>{f.value||(p.value.modal.visible=!0)},R=()=>{f.value=!0,r.value.method==="once"&&(v.value=!1)},q=s=>{if(w.value)return;if(o.authorized.indexOf(s.down.command)===-1){x.ElMessage.error("您没有控制权限!");return}const{common:t}=l.conf,a=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let i={block_mapping:"pusher",action:"publish_command",object_id:t.useAlias?a[t.object_alias]:t.object_id||l.uid,command:s.down.command.toString(),value:s.down.code.toString()||"",control:o.password,rule:r.value.method};S(i,"down")},$=s=>{if(w.value)return;if(o.authorized.indexOf(s.upper.command)===-1){x.ElMessage.error("您没有控制权限!");return}const{common:t}=l.conf,a=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let i={block_mapping:"pusher",action:"publish_command",object_id:t.useAlias?a[t.object_alias]:t.object_id||l.uid,command:s.upper.command.toString(),value:s.upper.code.toString()||"",control:o.password,rule:r.value.method};S(i,"up")},S=(s,t)=>{e2.api.platform(a=>{a.code===200&&(x.ElMessage.success(a.msg),v.value=!1,r.value.method==="alway"&&t==="up"&&(f.value=!1))},s)};return(s,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(r).bgColor,borderRadius:`${e.unref(r).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(D.value)},[e.createElementVNode("div",l2,e.toDisplayString(n.conf.caption||n.conf.name),1),e.createElementVNode("div",n2,[e.unref(r).method!=="never"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["verify-btn",{disabled:f.value}]),onClick:P},"验证密码",2)):e.createCommentVNode("",!0),m.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"status-btn",style:e.normalizeStyle({backgroundColor:m.color,color:e.unref(r).textColor})},e.toDisplayString(m.text),5)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",r2,[e.createElementVNode("div",a2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(a,d)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:d,style:e.normalizeStyle({width:V.value,height:`${e.unref(r).itemHeight}px`,fontSize:`${e.unref(r).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:w.value}]),style:e.normalizeStyle({backgroundColor:a.color,color:e.unref(r).textColor}),onMousedown:i=>q(a),onMouseup:i=>$(a)},e.toDisplayString(a.name),47,s2)],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4),e.createVNode(T._sfc_main,{ref_key:"controlRef",ref:p,onSubmit:R,password:o.password},null,8,["password"])],64))}})),p2=Q._export_sfc(C2,[["__scopeId","data-v-dda3873e"]]);exports.default=p2;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
var b = Object.defineProperty, y = Object.defineProperties;
|
|
2
|
+
var S = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var x = Object.getOwnPropertySymbols;
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (t, e, o) => e in t ? b(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, u = (t, e) => {
|
|
6
|
+
for (var o in e || (e = {}))
|
|
7
|
+
w.call(e, o) && m(t, o, e[o]);
|
|
8
|
+
if (x)
|
|
9
|
+
for (var o of x(e))
|
|
10
|
+
_.call(e, o) && m(t, o, e[o]);
|
|
11
|
+
return t;
|
|
12
|
+
}, h = (t, e) => y(t, S(e));
|
|
13
|
+
import { ElProgress as M } from "element-plus/es";
|
|
14
|
+
import "element-plus/es/components/base/style/css";
|
|
15
|
+
import "element-plus/es/components/progress/style/css";
|
|
16
|
+
import { defineComponent as O, computed as T, openBlock as d, createElementBlock as p, normalizeStyle as s, unref as i, createElementVNode as n, toDisplayString as L, Fragment as Z, renderList as k, createVNode as z, renderSlot as V } from "vue";
|
|
17
|
+
import { B } from "./element-resize-detector-DJcsrJ8s.js";
|
|
18
|
+
import { _ as E } from "./index-kShjySl9.js";
|
|
19
|
+
import { g as F } from "./titleStyle-BT5GlpAb.js";
|
|
20
|
+
const N = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", A = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", D = { class: "mix-body flex flex-col" }, W = { class: "flex-1" }, j = {
|
|
21
|
+
DEFAULT_ICON: N,
|
|
22
|
+
ACTIVE_ICON: A,
|
|
23
|
+
NAME_CN: "条形进度",
|
|
24
|
+
NAME_EN: "Progress Bar",
|
|
25
|
+
ORDER: 2
|
|
26
|
+
}, I = {
|
|
27
|
+
titleColor: "#111",
|
|
28
|
+
textColor: "#111",
|
|
29
|
+
bgColor: "#fff",
|
|
30
|
+
barColor: "#ebeef5",
|
|
31
|
+
radiusSize: 8,
|
|
32
|
+
textSize: 14,
|
|
33
|
+
labelWidth: 48,
|
|
34
|
+
barWidth: 16,
|
|
35
|
+
isHideTitle: !1
|
|
36
|
+
}, P = [
|
|
37
|
+
{ name: "参数一", fv: "", max: 200, color: "#f56c6c", maxType: "value", object_id: "" },
|
|
38
|
+
{ name: "参数二", fv: "", max: 200, color: "#5cb87a", maxType: "value", object_id: "" }
|
|
39
|
+
], R = ["name", "fv", "object_id", "color", "maxType", "max"], U = ["mosaic"], H = {
|
|
40
|
+
useAlias: !1,
|
|
41
|
+
multiObject: !1,
|
|
42
|
+
source: "mosaic"
|
|
43
|
+
}, $ = { DEFAULT: j, OPTIONS: I, DATA: P, PARAMS: R, SOURCE: U, COMMON: H }, q = /* @__PURE__ */ O(h(u({}, $), {
|
|
44
|
+
__name: "progressBar",
|
|
45
|
+
props: {
|
|
46
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
47
|
+
uid: { type: String, default: "" },
|
|
48
|
+
mode: { type: String, default: "edit" },
|
|
49
|
+
theme: { type: String, default: "light" }
|
|
50
|
+
},
|
|
51
|
+
setup(t) {
|
|
52
|
+
const e = t;
|
|
53
|
+
class o extends B {
|
|
54
|
+
extractStyles() {
|
|
55
|
+
return {
|
|
56
|
+
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
57
|
+
barColor: this.getOptionValue("barColor", "#ebeef5"),
|
|
58
|
+
titleColor: this.getOptionValue("titleColor", "#111"),
|
|
59
|
+
textColor: this.getOptionValue("textColor", "#111"),
|
|
60
|
+
textSize: this.getOptionValue("textSize", 14),
|
|
61
|
+
radiusSize: this.getOptionValue("radiusSize", 8),
|
|
62
|
+
labelWidth: this.getOptionValue("labelWidth", 80),
|
|
63
|
+
barWidth: this.getOptionValue("barWidth", 16),
|
|
64
|
+
isHideTitle: this.getOptionValue("isHideTitle", !1)
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
init() {
|
|
68
|
+
var r;
|
|
69
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), (r = this.props.conf.data) != null && r.length || (this.props.conf.data = [
|
|
70
|
+
{ name: "参数一", fv: "", max: 200, color: "#f56c6c", maxType: "value", object_id: "" },
|
|
71
|
+
{ name: "参数二", fv: "", max: 200, color: "#5cb87a", maxType: "value", object_id: "" }
|
|
72
|
+
]);
|
|
73
|
+
}
|
|
74
|
+
// ✅ 重写 setSocketData(),处理百分比计算逻辑
|
|
75
|
+
// 注意:Session 已经根据 object_id 精确匹配并分发数据,不需要额外处理
|
|
76
|
+
setSocketData(r) {
|
|
77
|
+
if (!r) return;
|
|
78
|
+
const { data: C } = this.props.conf;
|
|
79
|
+
C.forEach((l) => {
|
|
80
|
+
l.value = this.extractDataValue(r, l.fv) || 0;
|
|
81
|
+
const c = l.maxType === "value" ? l.max : this.extractDataValue(r, l.max) || 0;
|
|
82
|
+
l.percent = c == 0 ? 0 : Number((l.value / c * 100).toFixed(2));
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const f = new o(e, "progressBar");
|
|
87
|
+
f.setupLifecycle();
|
|
88
|
+
const a = f.getStyle(), v = T(() => F(e.conf.options));
|
|
89
|
+
return (g, r) => {
|
|
90
|
+
const C = M;
|
|
91
|
+
return d(), p("div", {
|
|
92
|
+
class: "mix-component",
|
|
93
|
+
style: s({ background: i(a).bgColor, borderRadius: `${i(a).radiusSize}px` })
|
|
94
|
+
}, [
|
|
95
|
+
n("div", {
|
|
96
|
+
class: "mix-title",
|
|
97
|
+
style: s(v.value)
|
|
98
|
+
}, L(t.conf.caption || t.conf.name), 5),
|
|
99
|
+
n("div", D, [
|
|
100
|
+
(d(!0), p(Z, null, k(t.conf.data, (l, c) => (d(), p("div", {
|
|
101
|
+
key: c,
|
|
102
|
+
class: "flex item"
|
|
103
|
+
}, [
|
|
104
|
+
n("div", {
|
|
105
|
+
class: "label",
|
|
106
|
+
style: s({ fontSize: i(a).textSize + "px", color: i(a).textColor, width: i(a).labelWidth + "px" })
|
|
107
|
+
}, L(l.name), 5),
|
|
108
|
+
n("div", W, [
|
|
109
|
+
z(C, {
|
|
110
|
+
percentage: l.percent,
|
|
111
|
+
"text-inside": !0,
|
|
112
|
+
style: s({ "--progress-bg-color": i(a).barColor }),
|
|
113
|
+
color: l.color,
|
|
114
|
+
"stroke-width": i(a).barWidth
|
|
115
|
+
}, null, 8, ["percentage", "style", "color", "stroke-width"])
|
|
116
|
+
]),
|
|
117
|
+
n("div", {
|
|
118
|
+
class: "value",
|
|
119
|
+
style: s({ fontSize: i(a).textSize + "px", color: i(a).textColor })
|
|
120
|
+
}, L(l.value), 5)
|
|
121
|
+
]))), 128))
|
|
122
|
+
]),
|
|
123
|
+
V(g.$slots, "default", {}, void 0, !0)
|
|
124
|
+
], 4);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
})), o2 = /* @__PURE__ */ E(q, [["__scopeId", "data-v-f97af99d"]]);
|
|
128
|
+
export {
|
|
129
|
+
o2 as default
|
|
130
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var g=Object.defineProperty,x=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var u=(o,t,l)=>t in o?g(o,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[t]=l,f=(o,t)=>{for(var l in t||(t={}))h.call(t,l)&&u(o,l,t[l]);if(C)for(var l of C(t))v.call(t,l)&&u(o,l,t[l]);return o},p=(o,t)=>x(o,m(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),S=require("./element-resize-detector-Bo5uDQAu.cjs"),b=require("./index-Mh5Dw2sd.cjs"),w=require("./titleStyle-NSnz6cUg.cjs"),_="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",M="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",O={class:"mix-body flex flex-col"},k={class:"flex-1"},z={DEFAULT_ICON:_,ACTIVE_ICON:M,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2},T={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1},E=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],V=["name","fv","object_id","color","maxType","max"],Z=["mosaic"],B={useAlias:!1,multiObject:!1,source:"mosaic"},N={DEFAULT:z,OPTIONS:T,DATA:E,PARAMS:V,SOURCE:Z,COMMON:B},F=e.defineComponent(p(f({},N),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const t=o;class l extends S.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var a;this.Style.value=this.extractStyles(),this.applyTheme(),(a=this.props.conf.data)!=null&&a.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])}setSocketData(a){if(!a)return;const{data:s}=this.props.conf;s.forEach(r=>{r.value=this.extractDataValue(a,r.fv)||0;const n=r.maxType==="value"?r.max:this.extractDataValue(a,r.max)||0;r.percent=n==0?0:Number((r.value/n*100).toFixed(2))})}}const c=new l(t,"progressBar");c.setupLifecycle();const i=c.getStyle(),L=e.computed(()=>w.generateTitleStyle(t.conf.options));return(d,a)=>{const s=y.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(L.value)},e.toDisplayString(o.conf.caption||o.conf.name),5),e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.conf.data,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(i).textSize+"px",color:e.unref(i).textColor,width:e.unref(i).labelWidth+"px"})},e.toDisplayString(r.name),5),e.createElementVNode("div",k,[e.createVNode(s,{percentage:r.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(i).barColor}),color:r.color,"stroke-width":e.unref(i).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(i).textSize+"px",color:e.unref(i).textColor})},e.toDisplayString(r.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),D=b._export_sfc(F,[["__scopeId","data-v-f97af99d"]]);exports.default=D;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
var T = Object.defineProperty, V = Object.defineProperties;
|
|
2
|
+
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var x = Object.getOwnPropertySymbols;
|
|
4
|
+
var z = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var v = (o, t, r) => t in o ? T(o, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[t] = r, h = (o, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
z.call(t, r) && v(o, r, t[r]);
|
|
8
|
+
if (x)
|
|
9
|
+
for (var r of x(t))
|
|
10
|
+
M.call(t, r) && v(o, r, t[r]);
|
|
11
|
+
return o;
|
|
12
|
+
}, y = (o, t) => V(o, k(t));
|
|
13
|
+
import { ElProgress as E } from "element-plus/es";
|
|
14
|
+
import "element-plus/es/components/base/style/css";
|
|
15
|
+
import "element-plus/es/components/progress/style/css";
|
|
16
|
+
import { defineComponent as F, computed as m, openBlock as p, createElementBlock as u, normalizeStyle as c, unref as i, createElementVNode as d, toDisplayString as g, Fragment as A, renderList as D, createVNode as L, withCtx as Z, createCommentVNode as b, renderSlot as j } from "vue";
|
|
17
|
+
import { B } from "./element-resize-detector-DJcsrJ8s.js";
|
|
18
|
+
import { _ as I } from "./index-kShjySl9.js";
|
|
19
|
+
import { g as P } from "./titleStyle-BT5GlpAb.js";
|
|
20
|
+
const R = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", U = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", W = { class: "mix-body flex flex-wrap" }, H = {
|
|
21
|
+
DEFAULT_ICON: R,
|
|
22
|
+
ACTIVE_ICON: U,
|
|
23
|
+
NAME_CN: "环形进度",
|
|
24
|
+
NAME_EN: "Progress Circle",
|
|
25
|
+
ORDER: 3
|
|
26
|
+
}, $ = {
|
|
27
|
+
titleColor: "#111",
|
|
28
|
+
textColor: "#111",
|
|
29
|
+
bgColor: "#fff",
|
|
30
|
+
barColor: "#ebeef5",
|
|
31
|
+
radiusSize: 8,
|
|
32
|
+
textSize: 14,
|
|
33
|
+
barWidth: 16,
|
|
34
|
+
diameter: 70,
|
|
35
|
+
position: {
|
|
36
|
+
value: "outer",
|
|
37
|
+
type: "radio",
|
|
38
|
+
option: [
|
|
39
|
+
{ value: "outer", label: "component.gauge.outer" },
|
|
40
|
+
{ value: "inner", label: "component.gauge.inner" }
|
|
41
|
+
],
|
|
42
|
+
label: "component.gauge.position"
|
|
43
|
+
},
|
|
44
|
+
type: {
|
|
45
|
+
value: "value",
|
|
46
|
+
type: "radio",
|
|
47
|
+
option: [
|
|
48
|
+
{ value: "value", label: "component.gauge.value" },
|
|
49
|
+
{ value: "rate", label: "component.gauge.rate" }
|
|
50
|
+
],
|
|
51
|
+
label: "component.gauge.type"
|
|
52
|
+
},
|
|
53
|
+
isHideTitle: !1
|
|
54
|
+
}, q = [
|
|
55
|
+
{ name: "参数一", fv: "", max: 200, color: "#f56c6c", maxType: "value", object_id: "" },
|
|
56
|
+
{ name: "参数二", fv: "", max: 200, color: "#5cb87a", maxType: "value", object_id: "" }
|
|
57
|
+
], G = ["name", "fv", "object_id", "color", "maxType", "max"], J = ["mosaic"], K = {
|
|
58
|
+
useAlias: !1,
|
|
59
|
+
multiObject: !1,
|
|
60
|
+
source: "mosaic"
|
|
61
|
+
}, Q = { DEFAULT: H, OPTIONS: $, DATA: q, PARAMS: G, SOURCE: J, COMMON: K }, X = /* @__PURE__ */ F(y(h({}, Q), {
|
|
62
|
+
__name: "progressCircle",
|
|
63
|
+
props: {
|
|
64
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
65
|
+
uid: { type: String, default: "" },
|
|
66
|
+
mode: { type: String, default: "edit" },
|
|
67
|
+
theme: { type: String, default: "light" }
|
|
68
|
+
},
|
|
69
|
+
setup(o) {
|
|
70
|
+
const t = o;
|
|
71
|
+
class r extends B {
|
|
72
|
+
extractStyles() {
|
|
73
|
+
return {
|
|
74
|
+
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
75
|
+
barColor: this.getOptionValue("barColor", "#ebeef5"),
|
|
76
|
+
titleColor: this.getOptionValue("titleColor", "#111"),
|
|
77
|
+
textColor: this.getOptionValue("textColor", "#111"),
|
|
78
|
+
textSize: this.getOptionValue("textSize", 14),
|
|
79
|
+
radiusSize: this.getOptionValue("radiusSize", 8),
|
|
80
|
+
barWidth: this.getOptionValue("barWidth", 16),
|
|
81
|
+
diameter: this.getOptionValue("diameter", 70),
|
|
82
|
+
position: this.getOptionValue("position", "outer"),
|
|
83
|
+
type: this.getOptionValue("type", "value"),
|
|
84
|
+
isHideTitle: this.getOptionValue("isHideTitle", !1)
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
init() {
|
|
88
|
+
var e;
|
|
89
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), (e = this.props.conf.data) != null && e.length || (this.props.conf.data = [
|
|
90
|
+
{ name: "参数一", fv: "", max: 200, color: "#f56c6c", maxType: "value", object_id: "" },
|
|
91
|
+
{ name: "参数二", fv: "", max: 200, color: "#5cb87a", maxType: "value", object_id: "" }
|
|
92
|
+
]);
|
|
93
|
+
}
|
|
94
|
+
// ✅ 重写 setSocketData(),处理百分比计算逻辑
|
|
95
|
+
// 注意:Session 已经根据 object_id 精确匹配并分发数据,不需要额外处理
|
|
96
|
+
setSocketData(e) {
|
|
97
|
+
if (!e) return;
|
|
98
|
+
const { data: n } = this.props.conf;
|
|
99
|
+
n.forEach((a) => {
|
|
100
|
+
a.value = this.extractDataValue(e, a.fv) || 0;
|
|
101
|
+
const C = a.maxType === "value" ? a.max : this.extractDataValue(e, a.max) || 0;
|
|
102
|
+
a.percent = C == 0 ? 0 : Number((a.value / C * 100).toFixed(2));
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const f = new r(t, "progressCircle");
|
|
107
|
+
f.setupLifecycle();
|
|
108
|
+
const l = f.getStyle(), S = m(() => {
|
|
109
|
+
var n;
|
|
110
|
+
const s = (n = l.value) == null ? void 0 : n.diameter, e = Number(s);
|
|
111
|
+
return typeof e == "number" && !Number.isNaN(e) && e > 0 ? e : 70;
|
|
112
|
+
}), w = m(() => {
|
|
113
|
+
var n;
|
|
114
|
+
const s = (n = l.value) == null ? void 0 : n.barWidth, e = Number(s);
|
|
115
|
+
return typeof e == "number" && !Number.isNaN(e) && e >= 0 ? e : 16;
|
|
116
|
+
}), _ = m(() => P(t.conf.options)), O = (s, e) => l.value.type === "value" ? e == null ? void 0 : e.value : s + "%";
|
|
117
|
+
return (s, e) => {
|
|
118
|
+
const n = E;
|
|
119
|
+
return p(), u("div", {
|
|
120
|
+
class: "mix-component",
|
|
121
|
+
style: c({ background: i(l).bgColor, borderRadius: `${i(l).radiusSize}px` })
|
|
122
|
+
}, [
|
|
123
|
+
d("div", {
|
|
124
|
+
class: "mix-title",
|
|
125
|
+
style: c(_.value)
|
|
126
|
+
}, g(o.conf.caption || o.conf.name), 5),
|
|
127
|
+
d("div", W, [
|
|
128
|
+
(p(!0), u(A, null, D(o.conf.data, (a, C) => (p(), u("div", {
|
|
129
|
+
key: C,
|
|
130
|
+
class: "circle-item"
|
|
131
|
+
}, [
|
|
132
|
+
d("div", null, [
|
|
133
|
+
L(n, {
|
|
134
|
+
percentage: a.percent,
|
|
135
|
+
type: "circle",
|
|
136
|
+
style: c({ "--progress-bg-color": i(l).barColor }),
|
|
137
|
+
color: a.color,
|
|
138
|
+
"stroke-width": w.value,
|
|
139
|
+
width: S.value
|
|
140
|
+
}, {
|
|
141
|
+
default: Z(({ percentage: N }) => [
|
|
142
|
+
d("div", {
|
|
143
|
+
style: c({ fontSize: i(l).textSize + "px", color: i(l).textColor })
|
|
144
|
+
}, g(O(N, a)), 5),
|
|
145
|
+
i(l).position === "inner" ? (p(), u("div", {
|
|
146
|
+
key: 0,
|
|
147
|
+
class: "mt-1.5",
|
|
148
|
+
style: c({ fontSize: i(l).textSize + "px", color: i(l).textColor })
|
|
149
|
+
}, g(a.name), 5)) : b("", !0)
|
|
150
|
+
]),
|
|
151
|
+
_: 2
|
|
152
|
+
}, 1032, ["percentage", "style", "color", "stroke-width", "width"]),
|
|
153
|
+
i(l).position === "outer" ? (p(), u("div", {
|
|
154
|
+
key: 0,
|
|
155
|
+
class: "label",
|
|
156
|
+
style: c({ fontSize: i(l).textSize + "px", color: i(l).textColor })
|
|
157
|
+
}, g(a.name), 5)) : b("", !0)
|
|
158
|
+
])
|
|
159
|
+
]))), 128))
|
|
160
|
+
]),
|
|
161
|
+
j(s.$slots, "default", {}, void 0, !0)
|
|
162
|
+
], 4);
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
})), n2 = /* @__PURE__ */ I(X, [["__scopeId", "data-v-793729d1"]]);
|
|
166
|
+
export {
|
|
167
|
+
n2 as default
|
|
168
|
+
};
|