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,116 @@
|
|
|
1
|
+
import { l as p, h as A, b9 as u, b8 as S, a7 as C, B as M, E as O, cg as w, ch as R, o as F, f as V, ci as _, a8 as G } from "./echarts-BVht3HHb.js";
|
|
2
|
+
import { p as b, q as k, S as B, r as T } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
3
|
+
var U = (
|
|
4
|
+
/** @class */
|
|
5
|
+
/* @__PURE__ */ (function() {
|
|
6
|
+
function r(e) {
|
|
7
|
+
this.coordSysDims = [], this.axisMap = p(), this.categoryAxisMap = p(), this.coordSysName = e;
|
|
8
|
+
}
|
|
9
|
+
return r;
|
|
10
|
+
})()
|
|
11
|
+
);
|
|
12
|
+
function j(r) {
|
|
13
|
+
var e = r.get("coordinateSystem"), t = new U(e), i = q[e];
|
|
14
|
+
if (i)
|
|
15
|
+
return i(r, t, t.axisMap, t.categoryAxisMap), t;
|
|
16
|
+
}
|
|
17
|
+
var q = {
|
|
18
|
+
cartesian2d: function(r, e, t, i) {
|
|
19
|
+
var a = r.getReferringComponents("xAxis", u).models[0], n = r.getReferringComponents("yAxis", u).models[0];
|
|
20
|
+
if (process.env.NODE_ENV !== "production") {
|
|
21
|
+
if (!a)
|
|
22
|
+
throw new Error('xAxis "' + S(r.get("xAxisIndex"), r.get("xAxisId"), 0) + '" not found');
|
|
23
|
+
if (!n)
|
|
24
|
+
throw new Error('yAxis "' + S(r.get("xAxisIndex"), r.get("yAxisId"), 0) + '" not found');
|
|
25
|
+
}
|
|
26
|
+
e.coordSysDims = ["x", "y"], t.set("x", a), t.set("y", n), l(a) && (i.set("x", a), e.firstCategoryDimIndex = 0), l(n) && (i.set("y", n), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = 1));
|
|
27
|
+
},
|
|
28
|
+
singleAxis: function(r, e, t, i) {
|
|
29
|
+
var a = r.getReferringComponents("singleAxis", u).models[0];
|
|
30
|
+
if (process.env.NODE_ENV !== "production" && !a)
|
|
31
|
+
throw new Error("singleAxis should be specified.");
|
|
32
|
+
e.coordSysDims = ["single"], t.set("single", a), l(a) && (i.set("single", a), e.firstCategoryDimIndex = 0);
|
|
33
|
+
},
|
|
34
|
+
polar: function(r, e, t, i) {
|
|
35
|
+
var a = r.getReferringComponents("polar", u).models[0], n = a.findAxisModel("radiusAxis"), o = a.findAxisModel("angleAxis");
|
|
36
|
+
if (process.env.NODE_ENV !== "production") {
|
|
37
|
+
if (!o)
|
|
38
|
+
throw new Error("angleAxis option not found");
|
|
39
|
+
if (!n)
|
|
40
|
+
throw new Error("radiusAxis option not found");
|
|
41
|
+
}
|
|
42
|
+
e.coordSysDims = ["radius", "angle"], t.set("radius", n), t.set("angle", o), l(n) && (i.set("radius", n), e.firstCategoryDimIndex = 0), l(o) && (i.set("angle", o), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = 1));
|
|
43
|
+
},
|
|
44
|
+
geo: function(r, e, t, i) {
|
|
45
|
+
e.coordSysDims = ["lng", "lat"];
|
|
46
|
+
},
|
|
47
|
+
parallel: function(r, e, t, i) {
|
|
48
|
+
var a = r.ecModel, n = a.getComponent("parallel", r.get("parallelIndex")), o = e.coordSysDims = n.dimensions.slice();
|
|
49
|
+
A(n.parallelAxisIndex, function(c, s) {
|
|
50
|
+
var d = a.getComponent("parallelAxis", c), f = o[s];
|
|
51
|
+
t.set(f, d), l(d) && (i.set(f, d), e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = s));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
function l(r) {
|
|
56
|
+
return r.get("type") === "category";
|
|
57
|
+
}
|
|
58
|
+
function H(r, e) {
|
|
59
|
+
var t = r.get("coordinateSystem"), i = R.get(t), a;
|
|
60
|
+
return e && e.coordSysDims && (a = F(e.coordSysDims, function(n) {
|
|
61
|
+
var o = {
|
|
62
|
+
name: n
|
|
63
|
+
}, c = e.axisMap.get(n);
|
|
64
|
+
if (c) {
|
|
65
|
+
var s = c.get("type");
|
|
66
|
+
o.type = T(s);
|
|
67
|
+
}
|
|
68
|
+
return o;
|
|
69
|
+
})), a || (a = i && (i.getDimensionsInfo ? i.getDimensionsInfo() : i.dimensions.slice()) || ["x", "y"]), a;
|
|
70
|
+
}
|
|
71
|
+
function L(r, e, t) {
|
|
72
|
+
var i, a;
|
|
73
|
+
return t && A(r, function(n, o) {
|
|
74
|
+
var c = n.coordDim, s = t.categoryAxisMap.get(c);
|
|
75
|
+
s && (i == null && (i = o), n.ordinalMeta = s.getOrdinalMeta(), e && (n.createInvertedIndices = !0)), n.otherDims.itemName != null && (a = !0);
|
|
76
|
+
}), !a && i != null && (r[i].otherDims.itemName = 0), i;
|
|
77
|
+
}
|
|
78
|
+
function Q(r, e, t) {
|
|
79
|
+
t = t || {};
|
|
80
|
+
var i = e.getSourceManager(), a, n = !1;
|
|
81
|
+
r ? (n = !0, a = G(r)) : (a = i.getSource(), n = a.sourceFormat === C);
|
|
82
|
+
var o = j(e), c = H(e, o), s = t.useEncodeDefaulter, d = M(s) ? s : s ? O(w, c, e) : null, f = {
|
|
83
|
+
coordDimensions: c,
|
|
84
|
+
generateCoord: t.generateCoord,
|
|
85
|
+
encodeDefine: e.getEncode(),
|
|
86
|
+
encodeDefaulter: d,
|
|
87
|
+
canOmitUnusedDimensions: !n
|
|
88
|
+
}, g = b(a, f), x = L(g.dimensions, t.createInvertedIndices, o), D = n ? null : i.getSharedDataStore(g), h = k(e, {
|
|
89
|
+
schema: g,
|
|
90
|
+
store: D
|
|
91
|
+
}), m = new B(g, e);
|
|
92
|
+
m.setCalculationInfo(h);
|
|
93
|
+
var I = x != null && z(a) ? function(E, N, y, v) {
|
|
94
|
+
return v === x ? y : this.defaultDimValueGetter(E, N, y, v);
|
|
95
|
+
} : null;
|
|
96
|
+
return m.hasItemOption = !1, m.initData(
|
|
97
|
+
// Try to reuse the data store in sourceManager if using dataset.
|
|
98
|
+
n ? a : D,
|
|
99
|
+
null,
|
|
100
|
+
I
|
|
101
|
+
), m;
|
|
102
|
+
}
|
|
103
|
+
function z(r) {
|
|
104
|
+
if (r.sourceFormat === C) {
|
|
105
|
+
var e = J(r.data || []);
|
|
106
|
+
return !V(_(e));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function J(r) {
|
|
110
|
+
for (var e = 0; e < r.length && r[e] == null; )
|
|
111
|
+
e++;
|
|
112
|
+
return r[e];
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
Q as c
|
|
116
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { p as t, S as c } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
2
|
+
import { f as m, x as o } from "./echarts-BVht3HHb.js";
|
|
3
|
+
function f(a, e, n) {
|
|
4
|
+
e = m(e) && {
|
|
5
|
+
coordDimensions: e
|
|
6
|
+
} || o({
|
|
7
|
+
encodeDefine: a.getEncode()
|
|
8
|
+
}, e);
|
|
9
|
+
var r = a.getSource(), s = t(r, e).dimensions, i = new c(s, a);
|
|
10
|
+
return i.initData(r, n), i;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
f as c
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./installCanvasRenderer-CyhM1Qpl.cjs"),s=require("./echarts-BB8O2KSA.cjs");function S(r,e,t){e=s.isArray(e)&&{coordDimensions:e}||s.extend({encodeDefine:r.getEncode()},e);var a=r.getSource(),c=n.prepareSeriesDataSchema(a,e).dimensions,i=new n.SeriesData(c,r);return i.initData(a,t),i}exports.createSeriesDataSimply=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var j=Object.defineProperty,R=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols,H=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,Z=Reflect.get;var O=(n,l,o)=>l in n?j(n,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[l]=o,A=(n,l)=>{for(var o in l||(l={}))$.call(l,o)&&O(n,o,l[o]);if(N)for(var o of N(l))U.call(l,o)&&O(n,o,l[o]);return n},F=(n,l)=>R(n,q(l));var M=(n,l,o)=>Z(H(n),o,l);var B=(n,l,o)=>new Promise((g,u)=>{var p=c=>{try{f(o.next(c))}catch(i){u(i)}},h=c=>{try{f(o.throw(c))}catch(i){u(i)}},f=c=>c.done?g(c.value):Promise.resolve(c.value).then(p,h);f((o=o.apply(n,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const x=require("./element-resize-detector-Bo5uDQAu.cjs"),G=require("./index-Mh5Dw2sd.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),T=require("./mix-control-modal-BDHAB4Tw.cjs"),K=require("./api-P_s372dW.cjs"),L=require("element-plus"),W="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(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Y="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(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Q={class:"font-semibold"},X={class:"mix-body"},e2={class:"w-full flex flex-wrap content-start"},t2=["onClick"],o2={DEFAULT_ICON:W,ACTIVE_ICON:Y,NAME_CN:"按键",NAME_EN:"Button",ORDER:2},l2={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:x.CONTROL_OPTIONS}},D=[{command:"Control_01",name:"关机",color:"#c92309",code:0},{command:"Control_01",name:"开机",color:"#217406",code:1}],n2=["name","command","color","code"],r2=["mosaic"],a2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},i2={DEFAULT:o2,OPTIONS:l2,DATA:D,PARAMS:n2,SOURCE:r2,COMMON:a2},s2=e.defineComponent(F(A({},i2),{__name:"ctrBtn",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:""}),g=e.reactive({rule:"",code:"",command:""}),u=e.reactive({text:"",color:""}),p=e.ref(null),h=e.ref(!0);class f extends x.BaseComponent{extractStyles(){var r,a,m,v,s,C,y,b,_,z,k,E;const{options:t}=this.props.conf;return{bgColor:((r=t==null?void 0:t.bgColor)==null?void 0:r.value)||"#fff",titleColor:((a=t==null?void 0:t.titleColor)==null?void 0:a.value)||"#111",textColor:((m=t==null?void 0:t.textColor)==null?void 0:m.value)||"#fff",titleSize:((v=t==null?void 0:t.titleSize)==null?void 0:v.value)||16,textSize:((s=t==null?void 0:t.textSize)==null?void 0:s.value)||14,itemHeight:((C=t==null?void 0:t.itemHeight)==null?void 0:C.value)||42,radiusSize:(b=(y=t==null?void 0:t.radiusSize)==null?void 0:y.value)!=null?b:8,items:(z=(_=t==null?void 0:t.items)==null?void 0:_.value)!=null?z:2,isHideTitle:(E=(k=t==null?void 0:t.isHideTitle)==null?void 0:k.value)!=null?E:!1}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:D}onPreview(){return B(this,null,function*(){yield M(f.prototype,this,"onPreview").call(this);const t=yield T.getAuthorized(this.props);o.authorized=t.authorized,o.password=t.password})}setSocketData(t){var m,v;if(!t)return;const{common:r}=this.props.conf,a=this.extractDataValue(t,r.statusFv);if(a!=null){const s=r.status.find(C=>String(C.code)===String(a));u.text=(m=s==null?void 0:s.text)!=null?m:"",u.color=(v=s==null?void 0:s.color)!=null?v:""}}}const c=new f(l,"ctrBtn");c.setupLifecycle();const i=c.getStyle(),I=e.computed(()=>J.generateTitleStyle(l.conf.options)),P=e.computed(()=>`${(100/i.value.items).toFixed(2)||100}%`),w=d=>o.authorized.indexOf(d.command)===-1,V=d=>{var a;if(w(d)){L.ElMessage.warning("无权限操作");return}const{options:t}=l.conf;let r=((a=t==null?void 0:t.method)==null?void 0:a.value)||"alway";g.rule=r,g.code=String(d.code),g.command=d.command,r==="alway"||r==="once"&&h.value?p.value.modal.visible=!0:S()},S=()=>{const{code:d,rule:t,command:r}=g,{common:a}=l.conf,m=JSON.parse(sessionStorage.getItem(x.ALIAS_MAPPING_KEY)||"{}");let s={block_mapping:"pusher",action:"publish_command",object_id:a.useAlias?m[a.object_alias]:a.object_id||l.uid,command:r,value:d,rule:t,control:o.password};K.api.platform(C=>{C.code===200&&(L.ElMessage.success(C.msg),p.value.modal.visible=!1,h.value=!1)},s)};return(d,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("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(I.value)},[e.createElementVNode("div",Q,e.toDisplayString(n.conf.caption||n.conf.name),1),u.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:u.color,color:e.unref(i).textColor})},e.toDisplayString(u.text),5)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",X,[e.createElementVNode("div",e2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:a,style:e.normalizeStyle({width:P.value,height:`${e.unref(i).itemHeight}px`,fontSize:`${e.unref(i).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:w(r)}]),style:e.normalizeStyle({backgroundColor:r.color,color:e.unref(i).textColor}),onClick:m=>V(r)},e.toDisplayString(r.name),15,t2)],4))),128))])]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4),e.createVNode(T._sfc_main,{ref_key:"controlRef",ref:p,onSubmit:S,password:o.password},null,8,["password"])],64))}})),c2=G._export_sfc(s2,[["__scopeId","data-v-b9350d64"]]);exports.default=c2;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
var J = Object.defineProperty, K = Object.defineProperties;
|
|
2
|
+
var W = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var M = Object.getOwnPropertySymbols, Y = Object.getPrototypeOf, q = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable, X = Reflect.get;
|
|
4
|
+
var E = (l, o, t) => o in l ? J(l, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[o] = t, I = (l, o) => {
|
|
5
|
+
for (var t in o || (o = {}))
|
|
6
|
+
q.call(o, t) && E(l, t, o[t]);
|
|
7
|
+
if (M)
|
|
8
|
+
for (var t of M(o))
|
|
9
|
+
Q.call(o, t) && E(l, t, o[t]);
|
|
10
|
+
return l;
|
|
11
|
+
}, B = (l, o) => K(l, W(o));
|
|
12
|
+
var j = (l, o, t) => X(Y(l), t, o);
|
|
13
|
+
var D = (l, o, t) => new Promise((C, d) => {
|
|
14
|
+
var h = (n) => {
|
|
15
|
+
try {
|
|
16
|
+
m(t.next(n));
|
|
17
|
+
} catch (i) {
|
|
18
|
+
d(i);
|
|
19
|
+
}
|
|
20
|
+
}, w = (n) => {
|
|
21
|
+
try {
|
|
22
|
+
m(t.throw(n));
|
|
23
|
+
} catch (i) {
|
|
24
|
+
d(i);
|
|
25
|
+
}
|
|
26
|
+
}, m = (n) => n.done ? C(n.value) : Promise.resolve(n.value).then(h, w);
|
|
27
|
+
m((t = t.apply(l, o)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as e2, reactive as b, ref as P, computed as R, openBlock as S, createElementBlock as _, Fragment as H, createElementVNode as p, normalizeStyle as x, unref as v, toDisplayString as y, createCommentVNode as t2, renderList as o2, normalizeClass as l2, renderSlot as s2, createVNode as a2 } from "vue";
|
|
30
|
+
import "html2canvas";
|
|
31
|
+
import { l as i2, B as r2, A as n2 } from "./element-resize-detector-DJcsrJ8s.js";
|
|
32
|
+
import { _ as c2 } from "./index-kShjySl9.js";
|
|
33
|
+
import { g as d2 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
+
import { _ as u2, g as m2 } from "./mix-control-modal-CHiX3hQs.js";
|
|
35
|
+
import { a as f2 } from "./api-C0GhBpqd.js";
|
|
36
|
+
import { ElMessage as $ } from "element-plus";
|
|
37
|
+
const C2 = "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(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", g2 = "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(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", p2 = { class: "font-semibold" }, v2 = { class: "mix-body" }, h2 = { class: "w-full flex flex-wrap content-start" }, x2 = ["onClick"], w2 = {
|
|
38
|
+
DEFAULT_ICON: C2,
|
|
39
|
+
ACTIVE_ICON: g2,
|
|
40
|
+
NAME_CN: "按键",
|
|
41
|
+
NAME_EN: "Button",
|
|
42
|
+
ORDER: 2
|
|
43
|
+
}, S2 = {
|
|
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: i2
|
|
58
|
+
}
|
|
59
|
+
}, U = [
|
|
60
|
+
{ command: "Control_01", name: "关机", color: "#c92309", code: 0 },
|
|
61
|
+
{ command: "Control_01", name: "开机", color: "#217406", code: 1 }
|
|
62
|
+
], _2 = ["name", "command", "color", "code"], b2 = ["mosaic"], y2 = {
|
|
63
|
+
useAlias: !1,
|
|
64
|
+
multiObject: !1,
|
|
65
|
+
hideMultiObject: !0,
|
|
66
|
+
statusFv: "",
|
|
67
|
+
statusType: 1,
|
|
68
|
+
status: [{ code: 0, text: "离线", color: "#c92309" }]
|
|
69
|
+
}, z2 = { DEFAULT: w2, OPTIONS: S2, DATA: U, PARAMS: _2, SOURCE: b2, COMMON: y2 }, k2 = /* @__PURE__ */ e2(B(I({}, z2), {
|
|
70
|
+
__name: "ctrBtn",
|
|
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 = b({
|
|
99
|
+
authorized: [],
|
|
100
|
+
password: ""
|
|
101
|
+
}), C = b({
|
|
102
|
+
rule: "",
|
|
103
|
+
code: "",
|
|
104
|
+
command: ""
|
|
105
|
+
}), d = b({
|
|
106
|
+
text: "",
|
|
107
|
+
color: ""
|
|
108
|
+
}), h = P(null), w = P(!0);
|
|
109
|
+
class m extends r2 {
|
|
110
|
+
extractStyles() {
|
|
111
|
+
var s, a, u, g, r, f, A, O, F, N, L, T;
|
|
112
|
+
const { options: e } = this.props.conf;
|
|
113
|
+
return {
|
|
114
|
+
bgColor: ((s = e == null ? void 0 : e.bgColor) == null ? void 0 : s.value) || "#fff",
|
|
115
|
+
titleColor: ((a = e == null ? void 0 : e.titleColor) == null ? void 0 : a.value) || "#111",
|
|
116
|
+
textColor: ((u = e == null ? void 0 : e.textColor) == null ? void 0 : u.value) || "#fff",
|
|
117
|
+
titleSize: ((g = e == null ? void 0 : e.titleSize) == null ? void 0 : g.value) || 16,
|
|
118
|
+
textSize: ((r = e == null ? void 0 : e.textSize) == null ? void 0 : r.value) || 14,
|
|
119
|
+
itemHeight: ((f = e == null ? void 0 : e.itemHeight) == null ? void 0 : f.value) || 42,
|
|
120
|
+
radiusSize: (O = (A = e == null ? void 0 : e.radiusSize) == null ? void 0 : A.value) != null ? O : 8,
|
|
121
|
+
items: (N = (F = e == null ? void 0 : e.items) == null ? void 0 : F.value) != null ? N : 2,
|
|
122
|
+
isHideTitle: (T = (L = e == null ? void 0 : e.isHideTitle) == null ? void 0 : L.value) != null ? T : !1
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
init() {
|
|
126
|
+
super.init(), this.props.conf.data = this.props.conf.data.length ? this.props.conf.data : U;
|
|
127
|
+
}
|
|
128
|
+
onPreview() {
|
|
129
|
+
return D(this, null, function* () {
|
|
130
|
+
yield j(m.prototype, this, "onPreview").call(this);
|
|
131
|
+
const e = yield m2(this.props);
|
|
132
|
+
t.authorized = e.authorized, t.password = e.password;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
setSocketData(e) {
|
|
136
|
+
var u, g;
|
|
137
|
+
if (!e) return;
|
|
138
|
+
const { common: s } = this.props.conf, a = this.extractDataValue(e, s.statusFv);
|
|
139
|
+
if (a != null) {
|
|
140
|
+
const r = s.status.find((f) => String(f.code) === String(a));
|
|
141
|
+
d.text = (u = r == null ? void 0 : r.text) != null ? u : "", d.color = (g = r == null ? void 0 : r.color) != null ? g : "";
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const n = new m(o, "ctrBtn");
|
|
146
|
+
n.setupLifecycle();
|
|
147
|
+
const i = n.getStyle(), V = R(() => d2(o.conf.options)), Z = R(() => `${(100 / i.value.items).toFixed(2) || 100}%`), z = (c) => t.authorized.indexOf(c.command) === -1, G = (c) => {
|
|
148
|
+
var a;
|
|
149
|
+
if (z(c)) {
|
|
150
|
+
$.warning("无权限操作");
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const { options: e } = o.conf;
|
|
154
|
+
let s = ((a = e == null ? void 0 : e.method) == null ? void 0 : a.value) || "alway";
|
|
155
|
+
C.rule = s, C.code = String(c.code), C.command = c.command, s === "alway" || s === "once" && w.value ? h.value.modal.visible = !0 : k();
|
|
156
|
+
}, k = () => {
|
|
157
|
+
const { code: c, rule: e, command: s } = C, { common: a } = o.conf, u = JSON.parse(sessionStorage.getItem(n2) || "{}");
|
|
158
|
+
let r = {
|
|
159
|
+
block_mapping: "pusher",
|
|
160
|
+
action: "publish_command",
|
|
161
|
+
object_id: a.useAlias ? u[a.object_alias] : a.object_id || o.uid,
|
|
162
|
+
command: s,
|
|
163
|
+
value: c,
|
|
164
|
+
rule: e,
|
|
165
|
+
control: t.password
|
|
166
|
+
};
|
|
167
|
+
f2.platform((f) => {
|
|
168
|
+
f.code === 200 && ($.success(f.msg), h.value.modal.visible = !1, w.value = !1);
|
|
169
|
+
}, r);
|
|
170
|
+
};
|
|
171
|
+
return (c, e) => (S(), _(H, null, [
|
|
172
|
+
p("div", {
|
|
173
|
+
class: "mix-component",
|
|
174
|
+
style: x({ background: v(i).bgColor, borderRadius: `${v(i).radiusSize}px` })
|
|
175
|
+
}, [
|
|
176
|
+
p("div", {
|
|
177
|
+
class: "mix-title",
|
|
178
|
+
style: x(V.value)
|
|
179
|
+
}, [
|
|
180
|
+
p("div", p2, y(l.conf.caption || l.conf.name), 1),
|
|
181
|
+
d.text ? (S(), _("div", {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: "status-btn",
|
|
184
|
+
style: x({ backgroundColor: d.color, color: v(i).textColor })
|
|
185
|
+
}, y(d.text), 5)) : t2("", !0)
|
|
186
|
+
], 4),
|
|
187
|
+
p("div", v2, [
|
|
188
|
+
p("div", h2, [
|
|
189
|
+
(S(!0), _(H, null, o2(l.conf.data, (s, a) => (S(), _("div", {
|
|
190
|
+
class: "btn-wrap",
|
|
191
|
+
key: a,
|
|
192
|
+
style: x({ width: Z.value, height: `${v(i).itemHeight}px`, fontSize: `${v(i).textSize}px` })
|
|
193
|
+
}, [
|
|
194
|
+
p("div", {
|
|
195
|
+
class: l2(["btn-item", { disabled: z(s) }]),
|
|
196
|
+
style: x({ backgroundColor: s.color, color: v(i).textColor }),
|
|
197
|
+
onClick: (u) => G(s)
|
|
198
|
+
}, y(s.name), 15, x2)
|
|
199
|
+
], 4))), 128))
|
|
200
|
+
])
|
|
201
|
+
]),
|
|
202
|
+
s2(c.$slots, "default", {}, void 0, !0)
|
|
203
|
+
], 4),
|
|
204
|
+
a2(u2, {
|
|
205
|
+
ref_key: "controlRef",
|
|
206
|
+
ref: h,
|
|
207
|
+
onSubmit: k,
|
|
208
|
+
password: t.password
|
|
209
|
+
}, null, 8, ["password"])
|
|
210
|
+
], 64));
|
|
211
|
+
}
|
|
212
|
+
})), B2 = /* @__PURE__ */ c2(k2, [["__scopeId", "data-v-b9350d64"]]);
|
|
213
|
+
export {
|
|
214
|
+
B2 as default
|
|
215
|
+
};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
var K = Object.defineProperty, Y = Object.defineProperties;
|
|
2
|
+
var q = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var j = Object.getOwnPropertySymbols, Q = Object.getPrototypeOf, X = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable, ee = Reflect.get;
|
|
4
|
+
var L = (o, t, a) => t in o ? K(o, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : o[t] = a, P = (o, t) => {
|
|
5
|
+
for (var a in t || (t = {}))
|
|
6
|
+
X.call(t, a) && L(o, a, t[a]);
|
|
7
|
+
if (j)
|
|
8
|
+
for (var a of j(t))
|
|
9
|
+
Z.call(t, a) && L(o, a, t[a]);
|
|
10
|
+
return o;
|
|
11
|
+
}, R = (o, t) => Y(o, q(t));
|
|
12
|
+
var U = (o, t, a) => ee(Q(o), a, t);
|
|
13
|
+
var $ = (o, t, a) => new Promise((g, S) => {
|
|
14
|
+
var n = (i) => {
|
|
15
|
+
try {
|
|
16
|
+
c(a.next(i));
|
|
17
|
+
} catch (d) {
|
|
18
|
+
S(d);
|
|
19
|
+
}
|
|
20
|
+
}, E = (i) => {
|
|
21
|
+
try {
|
|
22
|
+
c(a.throw(i));
|
|
23
|
+
} catch (d) {
|
|
24
|
+
S(d);
|
|
25
|
+
}
|
|
26
|
+
}, c = (i) => i.done ? g(i.value) : Promise.resolve(i.value).then(n, E);
|
|
27
|
+
c((a = a.apply(o, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import { ElInput as te, ElButton as oe } from "element-plus/es";
|
|
30
|
+
import "element-plus/es/components/base/style/css";
|
|
31
|
+
import "element-plus/es/components/button/style/css";
|
|
32
|
+
import "element-plus/es/components/input/style/css";
|
|
33
|
+
import { defineComponent as ae, computed as A, reactive as le, ref as T, openBlock as u, createElementBlock as m, Fragment as V, createElementVNode as v, normalizeStyle as b, unref as p, toDisplayString as h, createTextVNode as D, normalizeClass as se, renderList as ie, createVNode as k, withCtx as B, createCommentVNode as ne, renderSlot as ce } from "vue";
|
|
34
|
+
import { B as re, A as de } from "./element-resize-detector-DJcsrJ8s.js";
|
|
35
|
+
import { _ as ue } from "./index-kShjySl9.js";
|
|
36
|
+
import { g as me } from "./titleStyle-BT5GlpAb.js";
|
|
37
|
+
import { _ as pe, g as fe } from "./mix-control-modal-CHiX3hQs.js";
|
|
38
|
+
import { a as F } from "./api-C0GhBpqd.js";
|
|
39
|
+
import { ElMessage as H } from "element-plus";
|
|
40
|
+
import { A as ve, D as he } from "./ele-ctrSet-icon-BtKGrCid.js";
|
|
41
|
+
const ye = { class: "font-[600]" }, be = { class: "font-[600] opacity-[0.7]" }, ge = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "ml-[12px] min-w-[70px]"
|
|
44
|
+
}, Se = {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "submint"
|
|
47
|
+
}, _e = {
|
|
48
|
+
DEFAULT_ICON: he,
|
|
49
|
+
ACTIVE_ICON: ve,
|
|
50
|
+
NAME_CN: "参数控件",
|
|
51
|
+
NAME_EN: "Parameter Control",
|
|
52
|
+
ORDER: 1
|
|
53
|
+
}, Ce = {
|
|
54
|
+
bgColor: "#fff",
|
|
55
|
+
titleColor: "#111",
|
|
56
|
+
textColor: "#111",
|
|
57
|
+
titleSize: 14,
|
|
58
|
+
textSize: 14,
|
|
59
|
+
labelWidth: 100,
|
|
60
|
+
radiusSize: 8,
|
|
61
|
+
isHideTitle: !1,
|
|
62
|
+
method: {
|
|
63
|
+
value: "alway",
|
|
64
|
+
type: "select",
|
|
65
|
+
label: "component.params.verifyMethod",
|
|
66
|
+
options: "CONTROL_OPTIONS"
|
|
67
|
+
}
|
|
68
|
+
}, xe = [{ command: "Control_01", name: "参数一", unit: "", fv: "" }], Oe = ["name", "fv", "command", "unit"], we = ["mosaic"], ze = {
|
|
69
|
+
useAlias: !1,
|
|
70
|
+
multiObject: !1,
|
|
71
|
+
hideMultiObject: !0
|
|
72
|
+
}, Ae = { DEFAULT: _e, OPTIONS: Ce, DATA: xe, PARAMS: Oe, SOURCE: we, COMMON: ze }, Ve = /* @__PURE__ */ ae(R(P({}, Ae), {
|
|
73
|
+
__name: "ctrSet",
|
|
74
|
+
props: {
|
|
75
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
76
|
+
mode: { type: String, default: "edit" },
|
|
77
|
+
uid: { type: String, default: "" },
|
|
78
|
+
theme: { type: String, default: "light" },
|
|
79
|
+
password: { type: String, default: "" },
|
|
80
|
+
socketData: { type: Object, default: () => ({}) },
|
|
81
|
+
authorized: { type: Array, default: () => [] }
|
|
82
|
+
},
|
|
83
|
+
setup(o) {
|
|
84
|
+
const t = o, a = "--";
|
|
85
|
+
class g extends re {
|
|
86
|
+
extractStyles() {
|
|
87
|
+
return {
|
|
88
|
+
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
89
|
+
titleColor: this.getOptionValue("titleColor", "#111"),
|
|
90
|
+
textColor: this.getOptionValue("textColor", "#111"),
|
|
91
|
+
titleSize: this.getOptionValue("titleSize", 14),
|
|
92
|
+
textSize: this.getOptionValue("textSize", 12),
|
|
93
|
+
labelWidth: this.getOptionValue("labelWidth", 100),
|
|
94
|
+
radiusSize: this.getOptionValue("radiusSize", 4),
|
|
95
|
+
isHideTitle: this.getOptionValue("isHideTitle", !1)
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
init() {
|
|
99
|
+
this.Style.value = this.extractStyles(), this.applyTheme();
|
|
100
|
+
}
|
|
101
|
+
onPreview() {
|
|
102
|
+
return $(this, null, function* () {
|
|
103
|
+
yield U(g.prototype, this, "onPreview").call(this);
|
|
104
|
+
const s = yield fe(this.props);
|
|
105
|
+
c.authorized = s.authorized, c.password = s.password;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
setSocketData(s) {
|
|
109
|
+
if (!s) return;
|
|
110
|
+
const { data: l } = this.props.conf;
|
|
111
|
+
l.forEach((f) => {
|
|
112
|
+
const r = this.extractDataValue(s, f.fv);
|
|
113
|
+
f.value = r != null ? r : a;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const S = new g(t, "ctrSet");
|
|
118
|
+
S.setupLifecycle();
|
|
119
|
+
const n = S.getStyle(), E = A(() => me(t.conf.options)), c = le({ authorized: [], password: "" }), i = T([]), d = T(null), N = T(!0), C = A(() => {
|
|
120
|
+
var e;
|
|
121
|
+
return ((e = t.conf.data) == null ? void 0 : e.length) === 1;
|
|
122
|
+
}), W = (e) => c.authorized.indexOf(e.command) === -1, x = A(() => i.value.filter((e) => e).length === 0), G = A(() => {
|
|
123
|
+
var s, l;
|
|
124
|
+
const { data: e } = t.conf;
|
|
125
|
+
return (((s = e == null ? void 0 : e[0]) == null ? void 0 : s.value) || a) + " " + (((l = e == null ? void 0 : e[0]) == null ? void 0 : l.unit) || "");
|
|
126
|
+
}), I = () => {
|
|
127
|
+
var l;
|
|
128
|
+
const { options: e } = t.conf, s = ((l = e == null ? void 0 : e.method) == null ? void 0 : l.value) || "alway";
|
|
129
|
+
s === "alway" || s === "once" && N.value ? d.value.modal.visible = !0 : M();
|
|
130
|
+
}, M = () => {
|
|
131
|
+
var y, O;
|
|
132
|
+
const { common: e, data: s, options: l } = t.conf, f = JSON.parse(sessionStorage.getItem(de) || "{}") || {}, r = e.useAlias ? f[e.object_alias] : e.object_id || t.uid;
|
|
133
|
+
if (C.value) {
|
|
134
|
+
const w = {
|
|
135
|
+
block_mapping: "pusher",
|
|
136
|
+
action: "publish_command",
|
|
137
|
+
object_id: r,
|
|
138
|
+
command: s[0].command,
|
|
139
|
+
value: i.value[0],
|
|
140
|
+
control: c.password,
|
|
141
|
+
rule: ((y = l == null ? void 0 : l.method) == null ? void 0 : y.value) || "alway"
|
|
142
|
+
};
|
|
143
|
+
F.platform((z) => {
|
|
144
|
+
z.code === 200 && (H.success(z.msg), d.value.modal.visible = !1, N.value = !1);
|
|
145
|
+
}, w);
|
|
146
|
+
} else {
|
|
147
|
+
const w = [];
|
|
148
|
+
i.value.forEach((_, J) => {
|
|
149
|
+
_ && w.push({ object_id: r, command: s[J].command, value: _ });
|
|
150
|
+
});
|
|
151
|
+
const z = {
|
|
152
|
+
block_mapping: "pusher",
|
|
153
|
+
action: "publish_command_plus",
|
|
154
|
+
publishes: w,
|
|
155
|
+
control: c.password,
|
|
156
|
+
rule: ((O = l == null ? void 0 : l.method) == null ? void 0 : O.value) || "alway"
|
|
157
|
+
};
|
|
158
|
+
F.platform((_) => {
|
|
159
|
+
_.code === 200 && (H.success(_.msg), d.value.modal.visible = !1, N.value = !1);
|
|
160
|
+
}, z);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
return (e, s) => {
|
|
164
|
+
const l = te, f = oe;
|
|
165
|
+
return u(), m(V, null, [
|
|
166
|
+
v("div", {
|
|
167
|
+
class: "mix-component",
|
|
168
|
+
style: b({ backgroundColor: p(n).bgColor, borderRadius: `${p(n).radiusSize}px` })
|
|
169
|
+
}, [
|
|
170
|
+
v("div", {
|
|
171
|
+
class: "mix-title",
|
|
172
|
+
style: b(E.value)
|
|
173
|
+
}, [
|
|
174
|
+
C.value ? (u(), m(V, { key: 0 }, [
|
|
175
|
+
v("div", ye, h(o.conf.caption || o.conf.name), 1),
|
|
176
|
+
v("div", {
|
|
177
|
+
class: "w-[2px] h-[18px] mx-[12px] opacity-[0.7]",
|
|
178
|
+
style: b({ backgroundColor: p(n).titleColor })
|
|
179
|
+
}, null, 4),
|
|
180
|
+
v("div", be, h(G.value), 1)
|
|
181
|
+
], 64)) : (u(), m(V, { key: 1 }, [
|
|
182
|
+
D(h(o.conf.caption || o.conf.name), 1)
|
|
183
|
+
], 64))
|
|
184
|
+
], 4),
|
|
185
|
+
v("div", {
|
|
186
|
+
class: se(["mix-body", p(n).isHideTitle ? "h-[100%]" : "h-[calc(100%-42px)]"])
|
|
187
|
+
}, [
|
|
188
|
+
(u(!0), m(V, null, ie(o.conf.data, (r, y) => (u(), m("div", {
|
|
189
|
+
class: "set-item",
|
|
190
|
+
key: y,
|
|
191
|
+
style: b({ fontSize: `${p(n).textSize}px`, color: p(n).textColor })
|
|
192
|
+
}, [
|
|
193
|
+
v("div", {
|
|
194
|
+
class: "item-name",
|
|
195
|
+
style: b({ width: `${p(n).labelWidth}px` })
|
|
196
|
+
}, h(r.name), 5),
|
|
197
|
+
k(l, {
|
|
198
|
+
modelValue: i.value[y],
|
|
199
|
+
"onUpdate:modelValue": (O) => i.value[y] = O,
|
|
200
|
+
disabled: W(r)
|
|
201
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
202
|
+
C.value ? (u(), m("div", ge, [
|
|
203
|
+
k(f, {
|
|
204
|
+
type: x.value ? "default" : "primary",
|
|
205
|
+
style: { width: "100%" },
|
|
206
|
+
onClick: I,
|
|
207
|
+
disabled: x.value
|
|
208
|
+
}, {
|
|
209
|
+
default: B(() => [
|
|
210
|
+
D(h(e.$t("common.confirm")), 1)
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}, 8, ["type", "disabled"])
|
|
214
|
+
])) : (u(), m("div", {
|
|
215
|
+
key: 1,
|
|
216
|
+
class: "item-value",
|
|
217
|
+
style: b([{ "margin-left": "12px" }, { background: p(n).bgColor }])
|
|
218
|
+
}, h(r.value), 5))
|
|
219
|
+
], 4))), 128)),
|
|
220
|
+
C.value ? ne("", !0) : (u(), m("div", Se, [
|
|
221
|
+
k(f, {
|
|
222
|
+
type: x.value ? "default" : "primary",
|
|
223
|
+
onClick: I,
|
|
224
|
+
disabled: x.value
|
|
225
|
+
}, {
|
|
226
|
+
default: B(() => [
|
|
227
|
+
D(h(e.$t("common.confirm")), 1)
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
}, 8, ["type", "disabled"])
|
|
231
|
+
]))
|
|
232
|
+
], 2),
|
|
233
|
+
ce(e.$slots, "default", {}, void 0, !0)
|
|
234
|
+
], 4),
|
|
235
|
+
k(pe, {
|
|
236
|
+
ref_key: "controlRef",
|
|
237
|
+
ref: d,
|
|
238
|
+
onSubmit: M,
|
|
239
|
+
password: c.password
|
|
240
|
+
}, null, 8, ["password"])
|
|
241
|
+
], 64);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
})), Be = /* @__PURE__ */ ue(Ve, [["__scopeId", "data-v-f9f9d070"]]);
|
|
245
|
+
export {
|
|
246
|
+
Be as default
|
|
247
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var L=Object.defineProperty,R=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,$=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,G=Reflect.get;var N=(l,o,a)=>o in l?L(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,O=(l,o)=>{for(var a in o||(o={}))H.call(o,a)&&N(l,a,o[a]);if(x)for(var a of x(o))W.call(o,a)&&N(l,a,o[a]);return l},z=(l,o)=>R(l,U(o));var w=(l,o,a)=>G($(l),a,o);var A=(l,o,a)=>new Promise((f,y)=>{var c=s=>{try{r(a.next(s))}catch(d){y(d)}},C=s=>{try{r(a.throw(s))}catch(d){y(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(c,C);r((a=a.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=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/input/style/css");const e=require("vue"),D=require("./element-resize-detector-Bo5uDQAu.cjs"),J=require("./index-Mh5Dw2sd.cjs"),K=require("./titleStyle-NSnz6cUg.cjs"),B=require("./mix-control-modal-BDHAB4Tw.cjs"),I=require("./api-P_s372dW.cjs"),M=require("element-plus"),q=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),Y={class:"font-[600]"},Q={class:"font-[600] opacity-[0.7]"},X={key:0,class:"ml-[12px] min-w-[70px]"},Z={key:0,class:"submint"},ee={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"参数控件",NAME_EN:"Parameter Control",ORDER:1},te={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,labelWidth:100,radiusSize:8,isHideTitle:!1,method:{value:"alway",type:"select",label:"component.params.verifyMethod",options:"CONTROL_OPTIONS"}},oe=[{command:"Control_01",name:"参数一",unit:"",fv:""}],le=["name","fv","command","unit"],ae=["mosaic"],ne={useAlias:!1,multiObject:!1,hideMultiObject:!0},ie={DEFAULT:ee,OPTIONS:te,DATA:oe,PARAMS:le,SOURCE:ae,COMMON:ne},se=e.defineComponent(z(O({},ie),{__name:"ctrSet",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},socketData:{type:Object,default:()=>({})},authorized:{type:Array,default:()=>[]}},setup(l){const o=l,a="--";class f extends D.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",100),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){this.Style.value=this.extractStyles(),this.applyTheme()}onPreview(){return A(this,null,function*(){yield w(f.prototype,this,"onPreview").call(this);const i=yield B.getAuthorized(this.props);r.authorized=i.authorized,r.password=i.password})}setSocketData(i){if(!i)return;const{data:n}=this.props.conf;n.forEach(m=>{const u=this.extractDataValue(i,m.fv);m.value=u!=null?u:a})}}const y=new f(o,"ctrSet");y.setupLifecycle();const c=y.getStyle(),C=e.computed(()=>K.generateTitleStyle(o.conf.options)),r=e.reactive({authorized:[],password:""}),s=e.ref([]),d=e.ref(null),E=e.ref(!0),h=e.computed(()=>{var t;return((t=o.conf.data)==null?void 0:t.length)===1}),j=t=>r.authorized.indexOf(t.command)===-1,S=e.computed(()=>s.value.filter(t=>t).length===0),P=e.computed(()=>{var i,n;const{data:t}=o.conf;return(((i=t==null?void 0:t[0])==null?void 0:i.value)||a)+" "+(((n=t==null?void 0:t[0])==null?void 0:n.unit)||"")}),k=()=>{var n;const{options:t}=o.conf,i=((n=t==null?void 0:t.method)==null?void 0:n.value)||"alway";i==="alway"||i==="once"&&E.value?d.value.modal.visible=!0:V()},V=()=>{var p,g;const{common:t,data:i,options:n}=o.conf,m=JSON.parse(sessionStorage.getItem(D.ALIAS_MAPPING_KEY)||"{}")||{},u=t.useAlias?m[t.object_alias]:t.object_id||o.uid;if(h.value){const b={block_mapping:"pusher",action:"publish_command",object_id:u,command:i[0].command,value:s.value[0],control:r.password,rule:((p=n==null?void 0:n.method)==null?void 0:p.value)||"alway"};I.api.platform(_=>{_.code===200&&(M.ElMessage.success(_.msg),d.value.modal.visible=!1,E.value=!1)},b)}else{const b=[];s.value.forEach((v,F)=>{v&&b.push({object_id:u,command:i[F].command,value:v})});const _={block_mapping:"pusher",action:"publish_command_plus",publishes:b,control:r.password,rule:((g=n==null?void 0:n.method)==null?void 0:g.value)||"alway"};I.api.platform(v=>{v.code===200&&(M.ElMessage.success(v.msg),d.value.modal.visible=!1,E.value=!1)},_)}};return(t,i)=>{const n=T.ElInput,m=T.ElButton;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(C.value)},[h.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Y,e.toDisplayString(l.conf.caption||l.conf.name),1),e.createElementVNode("div",{class:"w-[2px] h-[18px] mx-[12px] opacity-[0.7]",style:e.normalizeStyle({backgroundColor:e.unref(c).titleColor})},null,4),e.createElementVNode("div",Q,e.toDisplayString(P.value),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name),1)],64))],4),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",e.unref(c).isHideTitle?"h-[100%]":"h-[calc(100%-42px)]"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(u,p)=>(e.openBlock(),e.createElementBlock("div",{class:"set-item",key:p,style:e.normalizeStyle({fontSize:`${e.unref(c).textSize}px`,color:e.unref(c).textColor})},[e.createElementVNode("div",{class:"item-name",style:e.normalizeStyle({width:`${e.unref(c).labelWidth}px`})},e.toDisplayString(u.name),5),e.createVNode(n,{modelValue:s.value[p],"onUpdate:modelValue":g=>s.value[p]=g,disabled:j(u)},null,8,["modelValue","onUpdate:modelValue","disabled"]),h.value?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(m,{type:S.value?"default":"primary",style:{width:"100%"},onClick:k,disabled:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"item-value",style:e.normalizeStyle([{"margin-left":"12px"},{background:e.unref(c).bgColor}])},e.toDisplayString(u.value),5))],4))),128)),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Z,[e.createVNode(m,{type:S.value?"default":"primary",onClick:k,disabled:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("common.confirm")),1)]),_:1},8,["type","disabled"])]))],2),e.renderSlot(t.$slots,"default",{},void 0,!0)],4),e.createVNode(B._sfc_main,{ref_key:"controlRef",ref:d,onSubmit:V,password:r.password},null,8,["password"])],64)}}})),ce=J._export_sfc(se,[["__scopeId","data-v-f9f9d070"]]);exports.default=ce;
|