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,185 @@
|
|
|
1
|
+
var k = Object.defineProperty, D = Object.defineProperties;
|
|
2
|
+
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var M = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var v = (n, t, l) => t in n ? k(n, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[t] = l, g = (n, t) => {
|
|
6
|
+
for (var l in t || (t = {}))
|
|
7
|
+
M.call(t, l) && v(n, l, t[l]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var l of C(t))
|
|
10
|
+
R.call(t, l) && v(n, l, t[l]);
|
|
11
|
+
return n;
|
|
12
|
+
}, S = (n, t) => D(n, F(t));
|
|
13
|
+
import { defineComponent as T, ref as A, computed as p, openBlock as L, createElementBlock as z, normalizeStyle as B, createElementVNode as P, unref as U, renderSlot as V } from "vue";
|
|
14
|
+
import { _ as W } from "./index-kShjySl9.js";
|
|
15
|
+
import { E as G } from "./EChartComponentBase-BQOhWkz2.js";
|
|
16
|
+
import { A as H, D as K } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
17
|
+
import { cn as Y } from "./echarts-BVht3HHb.js";
|
|
18
|
+
const $ = ["id"], q = {
|
|
19
|
+
DEFAULT_ICON: K,
|
|
20
|
+
ACTIVE_ICON: H,
|
|
21
|
+
NAME_CN: "年累积降雨量",
|
|
22
|
+
NAME_EN: "Annual Rainfall Chart",
|
|
23
|
+
ORDER: 2
|
|
24
|
+
}, J = {
|
|
25
|
+
bgColor: { value: "#ffffff", type: "color", label: "setting.bgColor" },
|
|
26
|
+
yAxisName: { value: "毫米(mm)", type: "string", label: "Y轴标题" },
|
|
27
|
+
barColor: { value: "#85C6F1", type: "color", label: "柱状图颜色" },
|
|
28
|
+
lineColor: { value: "#F57676", type: "color", label: "趋势线颜色" },
|
|
29
|
+
linkChannel: {
|
|
30
|
+
value: "rainfall",
|
|
31
|
+
type: "select",
|
|
32
|
+
label: "component.linkChannel",
|
|
33
|
+
options: [
|
|
34
|
+
{ label: "降雨监测", value: "rainfall" },
|
|
35
|
+
{ label: "自定义", value: "custom" }
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
customChannel: {
|
|
39
|
+
value: "",
|
|
40
|
+
type: "string",
|
|
41
|
+
label: "component.customChannel",
|
|
42
|
+
showWhen: { linkChannel: "custom" }
|
|
43
|
+
}
|
|
44
|
+
}, Q = [
|
|
45
|
+
{ name: "日降雨量", fv: "" }
|
|
46
|
+
], X = ["name", "fv"], Z = ["mosaic"], ee = {
|
|
47
|
+
useAlias: !1,
|
|
48
|
+
multiObject: !1,
|
|
49
|
+
source: "mosaic"
|
|
50
|
+
}, te = 50, ae = { DEFAULT: q, OPTIONS: J, DATA: Q, PARAMS: X, SOURCE: Z, ITEMS: te, COMMON: ee }, le = /* @__PURE__ */ T(S(g({}, ae), {
|
|
51
|
+
__name: "annualRainfallChart",
|
|
52
|
+
props: {
|
|
53
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
54
|
+
uid: { type: String, default: "" },
|
|
55
|
+
mode: { type: String, default: "edit" },
|
|
56
|
+
theme: { type: String, default: "light" }
|
|
57
|
+
},
|
|
58
|
+
setup(n) {
|
|
59
|
+
const t = n, l = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], x = [45.2, 52.1, 68.5, 92, 115.4, 188.2, 215.5, 192.1, 145.6, 88.4, 55, 42.8], f = A(new Array(12).fill(0)), m = A(""), _ = p(() => {
|
|
60
|
+
var i, e, a;
|
|
61
|
+
return !!((e = (i = t.conf) == null ? void 0 : i.common) != null && e.object_id || (a = t.conf) != null && a.object_id);
|
|
62
|
+
}), N = p(() => _.value || !!m.value), O = () => {
|
|
63
|
+
var e;
|
|
64
|
+
const i = (e = t.conf) == null ? void 0 : e.data;
|
|
65
|
+
return Array.isArray(i) && i.length > 0 && i[0].fv || "";
|
|
66
|
+
};
|
|
67
|
+
class w extends G {
|
|
68
|
+
extractStyles() {
|
|
69
|
+
var r, s, c, u, h, y, b;
|
|
70
|
+
const e = (r = this.props.conf) == null ? void 0 : r.options, a = ((s = e == null ? void 0 : e.linkChannel) == null ? void 0 : s.value) || "rainfall", o = ((c = e == null ? void 0 : e.customChannel) == null ? void 0 : c.value) || "";
|
|
71
|
+
return {
|
|
72
|
+
bgColor: ((u = e == null ? void 0 : e.bgColor) == null ? void 0 : u.value) || "#ffffff",
|
|
73
|
+
yAxisName: ((h = e == null ? void 0 : e.yAxisName) == null ? void 0 : h.value) || "毫米(mm)",
|
|
74
|
+
barColor: ((y = e == null ? void 0 : e.barColor) == null ? void 0 : y.value) || "#85C6F1",
|
|
75
|
+
lineColor: ((b = e == null ? void 0 : e.lineColor) == null ? void 0 : b.value) || "#F57676",
|
|
76
|
+
linkChannel: a === "custom" && o ? o : a
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
getChartOption() {
|
|
80
|
+
if (!N.value && this.props.mode === "preview")
|
|
81
|
+
return {
|
|
82
|
+
graphic: {
|
|
83
|
+
type: "text",
|
|
84
|
+
left: "center",
|
|
85
|
+
top: "middle",
|
|
86
|
+
style: { text: "请在筛选栏选择监测点后点击查询", fontSize: 14, fill: "#999" }
|
|
87
|
+
},
|
|
88
|
+
xAxis: { type: "category", data: [] },
|
|
89
|
+
yAxis: { type: "value" },
|
|
90
|
+
series: []
|
|
91
|
+
};
|
|
92
|
+
const e = this.props.mode === "edit" ? x : f.value, a = e.map((o, r) => r === 0 ? e[0] : r === e.length - 1 ? e[e.length - 1] : parseFloat(((e[r - 1] + o + e[r + 1]) / 3).toFixed(1)));
|
|
93
|
+
return {
|
|
94
|
+
tooltip: {
|
|
95
|
+
trigger: "axis",
|
|
96
|
+
axisPointer: { type: "shadow" },
|
|
97
|
+
backgroundColor: "rgba(255, 255, 255, 0.9)",
|
|
98
|
+
borderColor: "#1c3d90",
|
|
99
|
+
textStyle: { color: "#333", fontSize: 11 }
|
|
100
|
+
},
|
|
101
|
+
grid: { top: 35, bottom: 25, left: 60, right: 15 },
|
|
102
|
+
xAxis: {
|
|
103
|
+
type: "category",
|
|
104
|
+
data: l,
|
|
105
|
+
axisLabel: { fontSize: 9, color: "#888", interval: 0 },
|
|
106
|
+
axisLine: { lineStyle: { color: "rgba(0,0,0,0.1)" } }
|
|
107
|
+
},
|
|
108
|
+
yAxis: {
|
|
109
|
+
type: "value",
|
|
110
|
+
name: this.Style.value.yAxisName,
|
|
111
|
+
nameTextStyle: { color: "#666", fontSize: 10, align: "left", padding: [0, 0, 0, 5] },
|
|
112
|
+
axisLabel: { fontSize: 9, color: "#888" },
|
|
113
|
+
splitLine: { lineStyle: { color: "rgba(0,0,0,0.05)", type: "dashed" } }
|
|
114
|
+
},
|
|
115
|
+
series: [
|
|
116
|
+
{
|
|
117
|
+
name: "月度降雨",
|
|
118
|
+
type: "bar",
|
|
119
|
+
barWidth: "45%",
|
|
120
|
+
itemStyle: {
|
|
121
|
+
color: new Y(0, 0, 0, 1, [
|
|
122
|
+
{ offset: 0, color: this.Style.value.barColor },
|
|
123
|
+
{ offset: 1, color: "#1c3d90" }
|
|
124
|
+
]),
|
|
125
|
+
borderRadius: [2, 2, 0, 0]
|
|
126
|
+
},
|
|
127
|
+
data: e
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "趋势走向",
|
|
131
|
+
type: "line",
|
|
132
|
+
smooth: !0,
|
|
133
|
+
showSymbol: !0,
|
|
134
|
+
symbolSize: 4,
|
|
135
|
+
lineStyle: { width: 2, color: this.Style.value.lineColor },
|
|
136
|
+
itemStyle: { color: this.Style.value.lineColor },
|
|
137
|
+
data: a
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
setSocketData(e) {
|
|
143
|
+
if (!e) return;
|
|
144
|
+
const a = O();
|
|
145
|
+
if (!a) return;
|
|
146
|
+
const o = this.extractDataValue(e, a);
|
|
147
|
+
if (o == null || isNaN(Number(o))) return;
|
|
148
|
+
const r = e.datetime || "";
|
|
149
|
+
let s = (/* @__PURE__ */ new Date()).getMonth();
|
|
150
|
+
if (r) {
|
|
151
|
+
const u = new Date(r.replace(/\//g, "-"));
|
|
152
|
+
isNaN(u.getTime()) || (s = u.getMonth());
|
|
153
|
+
}
|
|
154
|
+
const c = [...f.value];
|
|
155
|
+
c[s] = parseFloat((c[s] + Number(o)).toFixed(2)), f.value = c, this.chartObj && this.chartObj.setOption(this.getChartOption(), !0);
|
|
156
|
+
}
|
|
157
|
+
onLinkEvent(e) {
|
|
158
|
+
const { payload: a } = e;
|
|
159
|
+
if (!a) return;
|
|
160
|
+
const o = a.objectId || a.object_id;
|
|
161
|
+
o && (m.value = String(o), f.value = new Array(12).fill(0), this.initChart(), this.props.mode === "preview" && this.subscribeBySource(this.getSource(), String(o)));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const d = new w(t, "annualRainfallChart");
|
|
165
|
+
d.setupLifecycle();
|
|
166
|
+
const E = d.getEchartId(), I = d.getStyle(), j = p(() => ({
|
|
167
|
+
backgroundColor: I.value.bgColor,
|
|
168
|
+
width: "100%",
|
|
169
|
+
height: "100%"
|
|
170
|
+
}));
|
|
171
|
+
return (i, e) => (L(), z("div", {
|
|
172
|
+
class: "annual-rainfall-chart-wrap",
|
|
173
|
+
style: B(j.value)
|
|
174
|
+
}, [
|
|
175
|
+
P("div", {
|
|
176
|
+
id: U(E),
|
|
177
|
+
class: "chart-container"
|
|
178
|
+
}, null, 8, $),
|
|
179
|
+
V(i.$slots, "default", {}, void 0, !0)
|
|
180
|
+
], 4));
|
|
181
|
+
}
|
|
182
|
+
})), ue = /* @__PURE__ */ W(le, [["__scopeId", "data-v-265ba44e"]]);
|
|
183
|
+
export {
|
|
184
|
+
ue as default
|
|
185
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var F=Object.defineProperty,T=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var v=(r,t,l)=>t in r?F(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,g=(r,t)=>{for(var l in t||(t={}))D.call(t,l)&&v(r,l,t[l]);if(C)for(var l of C(t))M.call(t,l)&&v(r,l,t[l]);return r},S=(r,t)=>T(r,k(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),L=require("./index-Mh5Dw2sd.cjs"),R=require("./EChartComponentBase-BaQpBzVC.cjs"),A=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),z=require("./echarts-BB8O2KSA.cjs"),q=["id"],B={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"年累积降雨量",NAME_EN:"Annual Rainfall Chart",ORDER:2},V={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},yAxisName:{value:"毫米(mm)",type:"string",label:"Y轴标题"},barColor:{value:"#85C6F1",type:"color",label:"柱状图颜色"},lineColor:{value:"#F57676",type:"color",label:"趋势线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},P=[{name:"日降雨量",fv:""}],U=["name","fv"],W=["mosaic"],G={useAlias:!1,multiObject:!1,source:"mosaic"},H=50,K={DEFAULT:B,OPTIONS:V,DATA:P,PARAMS:U,SOURCE:W,ITEMS:H,COMMON:G},Y=n.defineComponent(S(g({},K),{__name:"annualRainfallChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const t=r,l=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],x=[45.2,52.1,68.5,92,115.4,188.2,215.5,192.1,145.6,88.4,55,42.8],f=n.ref(new Array(12).fill(0)),h=n.ref(""),_=n.computed(()=>{var s,e,a;return!!((e=(s=t.conf)==null?void 0:s.common)!=null&&e.object_id||(a=t.conf)!=null&&a.object_id)}),O=n.computed(()=>_.value||!!h.value),N=()=>{var e;const s=(e=t.conf)==null?void 0:e.data;return Array.isArray(s)&&s.length>0&&s[0].fv||""};class E extends R.EChartComponentBase{extractStyles(){var i,c,u,d,m,y,b;const e=(i=this.props.conf)==null?void 0:i.options,a=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",o=((u=e==null?void 0:e.customChannel)==null?void 0:u.value)||"";return{bgColor:((d=e==null?void 0:e.bgColor)==null?void 0:d.value)||"#ffffff",yAxisName:((m=e==null?void 0:e.yAxisName)==null?void 0:m.value)||"毫米(mm)",barColor:((y=e==null?void 0:e.barColor)==null?void 0:y.value)||"#85C6F1",lineColor:((b=e==null?void 0:e.lineColor)==null?void 0:b.value)||"#F57676",linkChannel:a==="custom"&&o?o:a}}getChartOption(){if(!O.value&&this.props.mode==="preview")return{graphic:{type:"text",left:"center",top:"middle",style:{text:"请在筛选栏选择监测点后点击查询",fontSize:14,fill:"#999"}},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};const e=this.props.mode==="edit"?x:f.value,a=e.map((o,i)=>i===0?e[0]:i===e.length-1?e[e.length-1]:parseFloat(((e[i-1]+o+e[i+1])/3).toFixed(1)));return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"rgba(255, 255, 255, 0.9)",borderColor:"#1c3d90",textStyle:{color:"#333",fontSize:11}},grid:{top:35,bottom:25,left:60,right:15},xAxis:{type:"category",data:l,axisLabel:{fontSize:9,color:"#888",interval:0},axisLine:{lineStyle:{color:"rgba(0,0,0,0.1)"}}},yAxis:{type:"value",name:this.Style.value.yAxisName,nameTextStyle:{color:"#666",fontSize:10,align:"left",padding:[0,0,0,5]},axisLabel:{fontSize:9,color:"#888"},splitLine:{lineStyle:{color:"rgba(0,0,0,0.05)",type:"dashed"}}},series:[{name:"月度降雨",type:"bar",barWidth:"45%",itemStyle:{color:new z.LinearGradient(0,0,0,1,[{offset:0,color:this.Style.value.barColor},{offset:1,color:"#1c3d90"}]),borderRadius:[2,2,0,0]},data:e},{name:"趋势走向",type:"line",smooth:!0,showSymbol:!0,symbolSize:4,lineStyle:{width:2,color:this.Style.value.lineColor},itemStyle:{color:this.Style.value.lineColor},data:a}]}}setSocketData(e){if(!e)return;const a=N();if(!a)return;const o=this.extractDataValue(e,a);if(o==null||isNaN(Number(o)))return;const i=e.datetime||"";let c=new Date().getMonth();if(i){const d=new Date(i.replace(/\//g,"-"));isNaN(d.getTime())||(c=d.getMonth())}const u=[...f.value];u[c]=parseFloat((u[c]+Number(o)).toFixed(2)),f.value=u,this.chartObj&&this.chartObj.setOption(this.getChartOption(),!0)}onLinkEvent(e){const{payload:a}=e;if(!a)return;const o=a.objectId||a.object_id;o&&(h.value=String(o),f.value=new Array(12).fill(0),this.initChart(),this.props.mode==="preview"&&this.subscribeBySource(this.getSource(),String(o)))}}const p=new E(t,"annualRainfallChart");p.setupLifecycle();const I=p.getEchartId(),w=p.getStyle(),j=n.computed(()=>({backgroundColor:w.value.bgColor,width:"100%",height:"100%"}));return(s,e)=>(n.openBlock(),n.createElementBlock("div",{class:"annual-rainfall-chart-wrap",style:n.normalizeStyle(j.value)},[n.createElementVNode("div",{id:n.unref(I),class:"chart-container"},null,8,q),n.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),$=L._export_sfc(Y,[["__scopeId","data-v-265ba44e"]]);exports.default=$;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var P = Object.getOwnPropertySymbols;
|
|
3
|
+
var L = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var w = (o, e, a) => e in o ? I(o, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : o[e] = a, d = (o, e) => {
|
|
5
|
+
for (var a in e || (e = {}))
|
|
6
|
+
L.call(e, a) && w(o, a, e[a]);
|
|
7
|
+
if (P)
|
|
8
|
+
for (var a of P(e))
|
|
9
|
+
U.call(e, a) && w(o, a, e[a]);
|
|
10
|
+
return o;
|
|
11
|
+
};
|
|
12
|
+
var k = (o, e, a) => new Promise((c, r) => {
|
|
13
|
+
var p = (t) => {
|
|
14
|
+
try {
|
|
15
|
+
n(a.next(t));
|
|
16
|
+
} catch (i) {
|
|
17
|
+
r(i);
|
|
18
|
+
}
|
|
19
|
+
}, l = (t) => {
|
|
20
|
+
try {
|
|
21
|
+
n(a.throw(t));
|
|
22
|
+
} catch (i) {
|
|
23
|
+
r(i);
|
|
24
|
+
}
|
|
25
|
+
}, n = (t) => t.done ? c(t.value) : Promise.resolve(t.value).then(p, l);
|
|
26
|
+
n((a = a.apply(o, e)).next());
|
|
27
|
+
});
|
|
28
|
+
import { b as s, a as x, c as A, m as y } from "./mixDataPermission-BaqV0Z6N.js";
|
|
29
|
+
import { U as b, M as g } from "./config-Cc2W4vke.js";
|
|
30
|
+
import { u as f } from "./store-DzDtVfSX.js";
|
|
31
|
+
import { a as u, e as S } from "./index-kShjySl9.js";
|
|
32
|
+
const T = () => {
|
|
33
|
+
const o = localStorage.getItem("globalApiUrl"), e = localStorage.getItem("globalAppId"), a = localStorage.getItem("globalAppSecret"), c = localStorage.getItem("globalApiToken"), r = localStorage.getItem("dashboardUseLocalToken") === "1" || localStorage.getItem("dashboardUseLocalToken") === "true", p = window.location.href.includes("/preview");
|
|
34
|
+
return r ? !!(o && c && p) : !!(o && e && a && p);
|
|
35
|
+
}, R = {
|
|
36
|
+
post(o, e = {}, a) {
|
|
37
|
+
const c = d({}, e);
|
|
38
|
+
x(o, c);
|
|
39
|
+
const r = localStorage.getItem("globalApiUrl"), p = localStorage.getItem("globalApiToken"), l = window.location.href.includes("/preview");
|
|
40
|
+
if (!!(r && p && l)) {
|
|
41
|
+
let t = o.split("."), i = {};
|
|
42
|
+
t.length === 1 ? i = A[t[0]] : i = A[t[0]][t[1]];
|
|
43
|
+
const m = d({
|
|
44
|
+
block_mapping: i.block_mapping,
|
|
45
|
+
action: i.action
|
|
46
|
+
}, c);
|
|
47
|
+
return f().changeLoading(!a), u.post(m).catch((h) => {
|
|
48
|
+
if (h.code === 10018 && h.info && h.info.includes("不存在的action和路由"))
|
|
49
|
+
return console.warn(`[API] ApiProxy 不支持 action: ${i.action},回退到中台服务`), c.block_mapping = i.block_mapping, c.action = i.action, s.post(g, c);
|
|
50
|
+
throw h;
|
|
51
|
+
}).finally(() => {
|
|
52
|
+
f().changeLoading(!1);
|
|
53
|
+
});
|
|
54
|
+
} else {
|
|
55
|
+
let t = o.split("."), i = {};
|
|
56
|
+
return t.length === 1 ? i = A[t[0]] : i = A[t[0]][t[1]], c.block_mapping = i.block_mapping, c.action = i.action, f().changeLoading(!a), s.post(g, c).catch((m) => {
|
|
57
|
+
if (y.shouldUseMock(m))
|
|
58
|
+
return console.warn(`⚠️ 服务不可用,使用 Mock 数据: ${i.action}`, m), y.getMockData(i.action, c);
|
|
59
|
+
throw m;
|
|
60
|
+
}).finally(() => {
|
|
61
|
+
f().changeLoading(!1);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
get(o, e) {
|
|
66
|
+
return s.get(o, e || {});
|
|
67
|
+
},
|
|
68
|
+
platform(o, e) {
|
|
69
|
+
const a = localStorage.getItem("globalApiUrl"), c = localStorage.getItem("globalApiToken"), r = window.location.href.includes("/preview");
|
|
70
|
+
if (!!(a && c && r))
|
|
71
|
+
if (e.condition && Array.isArray(e.condition)) {
|
|
72
|
+
const l = e.condition;
|
|
73
|
+
l.length === 1 ? u.post(l[0]).then((n) => {
|
|
74
|
+
n.code === 10018 && n.info && n.info.includes("不存在的action和路由") ? (console.warn(`[API.platform] ApiProxy 不支持 action: ${l[0].action},回退到中台服务`), s.post(g, e).then((t) => o(t)).catch((t) => o(t))) : o(n);
|
|
75
|
+
}).catch((n) => o(n)) : Promise.all(l.map(
|
|
76
|
+
(n) => u.post(n).catch((t) => {
|
|
77
|
+
if (t.code === 10018 && t.info && t.info.includes("不存在的action和路由"))
|
|
78
|
+
return console.warn(`[API.platform] ApiProxy 不支持 action: ${n.action},回退到中台服务`), s.post(g, n);
|
|
79
|
+
throw t;
|
|
80
|
+
})
|
|
81
|
+
)).then((n) => {
|
|
82
|
+
const t = {
|
|
83
|
+
code: 200,
|
|
84
|
+
result: n.map((i) => i.result)
|
|
85
|
+
};
|
|
86
|
+
o(t);
|
|
87
|
+
}).catch((n) => o(n));
|
|
88
|
+
} else
|
|
89
|
+
u.post(e).then((l) => {
|
|
90
|
+
l.code === 10018 && l.info && l.info.includes("不存在的action和路由") ? (console.warn(`[API.platform] ApiProxy 不支持 action: ${e.action},回退到中台服务`), s.post(g, e).then((n) => o(n)).catch((n) => o(n))) : o(l);
|
|
91
|
+
}).catch((l) => o(l));
|
|
92
|
+
else
|
|
93
|
+
s.post(g, e).then((l) => {
|
|
94
|
+
o(l);
|
|
95
|
+
}).catch((l) => {
|
|
96
|
+
o(l);
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
upload(o, e = !1) {
|
|
100
|
+
let a = {
|
|
101
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
102
|
+
};
|
|
103
|
+
return f().changeLoading(e), s.post(b, o, a).finally(() => {
|
|
104
|
+
f().changeLoading(!1);
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
getLocation(o, e) {
|
|
108
|
+
return s.get(o, e || {});
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* 获取当前应该使用的 Token(供 Lua 等后端调用使用)
|
|
112
|
+
* 始终返回一个有效的 token
|
|
113
|
+
* - ApiProxy 模式:返回外部平台的 token
|
|
114
|
+
* - 中台模式:返回本平台用户的 token
|
|
115
|
+
*/
|
|
116
|
+
getTokenForBackend() {
|
|
117
|
+
return k(this, null, function* () {
|
|
118
|
+
var o;
|
|
119
|
+
return T() ? yield u.getValidToken() : ((o = S.getUser()) == null ? void 0 : o.token) || "";
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
export {
|
|
124
|
+
R as a
|
|
125
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var w=Object.defineProperty;var h=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var d=(o,e,n)=>e in o?w(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,P=(o,e)=>{for(var n in e||(e={}))_.call(e,n)&&d(o,n,e[n]);if(h)for(var n of h(e))k.call(e,n)&&d(o,n,e[n]);return o};var L=(o,e,n)=>new Promise((r,s)=>{var p=t=>{try{a(n.next(t))}catch(i){s(i)}},l=t=>{try{a(n.throw(t))}catch(i){s(i)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(p,l);a((n=n.apply(o,e)).next())});const c=require("./mixDataPermission-BTA1jNd1.cjs"),g=require("./config-BLSroAzs.cjs"),u=require("./store-BJW2NQkK.cjs"),A=require("./index-Mh5Dw2sd.cjs"),y=()=>{const o=localStorage.getItem("globalApiUrl"),e=localStorage.getItem("globalAppId"),n=localStorage.getItem("globalAppSecret"),r=localStorage.getItem("globalApiToken"),s=localStorage.getItem("dashboardUseLocalToken")==="1"||localStorage.getItem("dashboardUseLocalToken")==="true",p=window.location.href.includes("/preview");return s?!!(o&&r&&p):!!(o&&e&&n&&p)},I={post(o,e={},n){const r=P({},e);c.mergeMixDataPermission(o,r);const s=localStorage.getItem("globalApiUrl"),p=localStorage.getItem("globalApiToken"),l=window.location.href.includes("/preview");if(!!(s&&p&&l)){let t=o.split("."),i={};t.length===1?i=c.action_mapping[t[0]]:i=c.action_mapping[t[0]][t[1]];const f=P({block_mapping:i.block_mapping,action:i.action},r);return u.useCounterStore().changeLoading(!n),A.apiProxy.post(f).catch(m=>{if(m.code===10018&&m.info&&m.info.includes("不存在的action和路由"))return console.warn(`[API] ApiProxy 不支持 action: ${i.action},回退到中台服务`),r.block_mapping=i.block_mapping,r.action=i.action,c.base.post(g.MIDDLE_PLATFORM_URL,r);throw m}).finally(()=>{u.useCounterStore().changeLoading(!1)})}else{let t=o.split("."),i={};return t.length===1?i=c.action_mapping[t[0]]:i=c.action_mapping[t[0]][t[1]],r.block_mapping=i.block_mapping,r.action=i.action,u.useCounterStore().changeLoading(!n),c.base.post(g.MIDDLE_PLATFORM_URL,r).catch(f=>{if(c.mockManager.shouldUseMock(f))return console.warn(`⚠️ 服务不可用,使用 Mock 数据: ${i.action}`,f),c.mockManager.getMockData(i.action,r);throw f}).finally(()=>{u.useCounterStore().changeLoading(!1)})}},get(o,e){return c.base.get(o,e||{})},platform(o,e){const n=localStorage.getItem("globalApiUrl"),r=localStorage.getItem("globalApiToken"),s=window.location.href.includes("/preview");if(!!(n&&r&&s))if(e.condition&&Array.isArray(e.condition)){const l=e.condition;l.length===1?A.apiProxy.post(l[0]).then(a=>{a.code===10018&&a.info&&a.info.includes("不存在的action和路由")?(console.warn(`[API.platform] ApiProxy 不支持 action: ${l[0].action},回退到中台服务`),c.base.post(g.MIDDLE_PLATFORM_URL,e).then(t=>o(t)).catch(t=>o(t))):o(a)}).catch(a=>o(a)):Promise.all(l.map(a=>A.apiProxy.post(a).catch(t=>{if(t.code===10018&&t.info&&t.info.includes("不存在的action和路由"))return console.warn(`[API.platform] ApiProxy 不支持 action: ${a.action},回退到中台服务`),c.base.post(g.MIDDLE_PLATFORM_URL,a);throw t}))).then(a=>{const t={code:200,result:a.map(i=>i.result)};o(t)}).catch(a=>o(a))}else A.apiProxy.post(e).then(l=>{l.code===10018&&l.info&&l.info.includes("不存在的action和路由")?(console.warn(`[API.platform] ApiProxy 不支持 action: ${e.action},回退到中台服务`),c.base.post(g.MIDDLE_PLATFORM_URL,e).then(a=>o(a)).catch(a=>o(a))):o(l)}).catch(l=>o(l));else c.base.post(g.MIDDLE_PLATFORM_URL,e).then(l=>{o(l)}).catch(l=>{o(l)})},upload(o,e=!1){let n={"Content-Type":"application/x-www-form-urlencoded"};return u.useCounterStore().changeLoading(e),c.base.post(g.UPLOAD_URL,o,n).finally(()=>{u.useCounterStore().changeLoading(!1)})},getLocation(o,e){return c.base.get(o,e||{})},getTokenForBackend(){return L(this,null,function*(){var o;return y()?yield A.apiProxy.getValidToken():((o=A.auth.getUser())==null?void 0:o.token)||""})}};exports.api=I;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var E=Object.defineProperty,q=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var v=(l,e,n)=>e in l?E(l,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):l[e]=n,m=(l,e)=>{for(var n in e||(e={}))D.call(e,n)&&v(l,n,e[n]);if(C)for(var n of C(e))I.call(e,n)&&v(l,n,e[n]);return l},h=(l,e)=>q(l,z(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),A=require("./element-resize-detector-Bo5uDQAu.cjs"),L=require("./index-Mh5Dw2sd.cjs"),N=require("./EChartComponentBase-BaQpBzVC.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),b=require("./ele-aqi-icon-BMm9WgFH.cjs"),T=require("./installMarkLine-Bv53Iw9G.cjs"),M=require("./install-DV5cEgNV.cjs"),$=require("./install-z6wShIZI.cjs"),V=require("./install-CIT6k8Ga.cjs"),j=require("./install-CltTFs4e.cjs"),S=require("./installCanvasRenderer-CyhM1Qpl.cjs"),k=require("./install-C8buXQPI.cjs"),P=require("./install-CYwVETsi.cjs"),U={class:"mix-body"},w=["id"],B={DEFAULT_ICON:b.DEFAULT_ICON,ACTIVE_ICON:b.ACTIVE_ICON,NAME_CN:"指数",NAME_EN:"Index Chart",ORDER:2},F={titleColor:"#111",textColor:"#111",bgColor:"#fff",lineColor:"#d64545",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:30,points:100,isSmooth:!1,isHideTitle:!1},G=[{name:"参数一",fv:"",object_id:""}],H=["name","fv","object_id","colorArea","source"],Z=["mosaic","statistics","calculate"],J=[{color:"#00ff00",value:50}],K=1,Q={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"mosaic",rate:{checked:!1,value:1}},W={DEFAULT:B,OPTIONS:F,DATA:G,PARAMS:H,SOURCE:Z,COLOR_AREA:J,ITEMS:K,COMMON:Q},X=a.defineComponent(h(m({},W),{__name:"aqi",props:{conf:{type:Object,default:()=>({data:[],area:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){S.use([T.install,M.install,$.install,V.install,j.install,S.install,k.install,S.install$1,P.install]);const e=l;class n extends N.EChartComponentBase{extractStyles(){return h(m({},super.extractStyles()),{lineColor:this.getOptionValue("lineColor","#d64545"),isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){var s;const t=this.Style.value,{conf:r}=this.props;return r.area=r.area||[{color:"#00ff00",value:50}],{tooltip:{trigger:"axis",textStyle:{fontSize:t.textSize}},legend:{show:!0,data:[((s=r==null?void 0:r.data[0])==null?void 0:s.name)||""],right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,textStyle:{color:t.textColor},labelFormatter:(i,o)=>o.includes(" ")?o.replace(" ",`
|
|
2
|
+
`):o},{type:"inside",start:0,end:20}],visualMap:{show:!1,pieces:this.getPieces(),outOfRange:{color:"#999"}},xAxis:[{type:"category",boundaryGap:!1,data:this.getTimeAxis(),axisLabel:{formatter:i=>i.includes(" ")?i.replace(" ",`
|
|
3
|
+
`):i,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}}],yAxis:{type:"value",boundaryGap:[0,"20%"],splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}getPieces(){const{area:t}=this.props.conf;if(!(t!=null&&t.length))return[];const r=[...t].filter(s=>s.value!=null).sort((s,i)=>s.value-i.value);return r.map((s,i)=>({gt:i===0?0:r[i-1].value,lte:s.value,color:s.color}))}formatSeries(){var o;const t=this.Style.value,{data:r,area:s}=this.props.conf,i=(s||[]).filter(c=>c.value!=null).sort((c,u)=>c.value-u.value);return[{name:((o=r[0])==null?void 0:o.name)||"",type:"line",smooth:t.isSmooth,sampling:"average",markLine:{silent:!1,lineStyle:{color:t.lineColor},label:{color:t.textColor},data:i.map(c=>({yAxis:c.value}))},data:A.getRandomArr({num:t.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()})}]}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:r,common:s}=this.props.conf,i=s.source||"mosaic",o=this.chartObj.getOption();r.forEach((u,d)=>{const f=this.extractDataValue(t,u.fv),g=["statistics","calculate"].includes(i)?t.start_time:t.datetime;g!=null&&(d===0&&o.xAxis[0].data.push(g),o.series[d].data.push(f))});const c=A.addRealtimeData(o.xAxis[0].data,o.series.map(u=>u.data));o.xAxis[0].data=c.times.slice(-this.Style.value.points),o.series.forEach((u,d)=>{var f;u.data=((f=c.data[d])==null?void 0:f.slice(-this.Style.value.points))||[]}),this.updateChart(o)}}const p=new n(e,"aqi");p.setupLifecycle();const y=p.getStyle(),_=p.getEchartId(),O=a.computed(()=>R.generateTitleStyle(e.conf.options));return(x,t)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(y).bgColor,borderRadius:`${a.unref(y).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(O.value)},a.toDisplayString(l.conf.caption||l.conf.name),5),a.createElementVNode("div",U,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(_)},null,8,w)]),a.renderSlot(x.$slots,"default",{},void 0,!0)],4))}})),Y=L._export_sfc(X,[["__scopeId","data-v-9f578f6a"]]);exports.default=Y;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
var O = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var D = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var z = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var v = (a, e, l) => e in a ? O(a, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[e] = l, f = (a, e) => {
|
|
6
|
+
for (var l in e || (e = {}))
|
|
7
|
+
z.call(e, l) && v(a, l, e[l]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var l of C(e))
|
|
10
|
+
L.call(e, l) && v(a, l, e[l]);
|
|
11
|
+
return a;
|
|
12
|
+
}, d = (a, e) => E(a, D(e));
|
|
13
|
+
import { defineComponent as R, computed as $, openBlock as I, createElementBlock as N, normalizeStyle as A, unref as h, createElementVNode as S, toDisplayString as T, renderSlot as M } from "vue";
|
|
14
|
+
import { a as j, c as k } from "./element-resize-detector-DJcsrJ8s.js";
|
|
15
|
+
import { _ as q } from "./index-kShjySl9.js";
|
|
16
|
+
import { E as V } from "./EChartComponentBase-BQOhWkz2.js";
|
|
17
|
+
import { g as w } from "./titleStyle-BT5GlpAb.js";
|
|
18
|
+
import { A as P, D as U } from "./ele-aqi-icon-DsYfU5th.js";
|
|
19
|
+
import { i as B } from "./installMarkLine-BgE0YACE.js";
|
|
20
|
+
import { i as F } from "./install-CBde4hAM.js";
|
|
21
|
+
import { i as G } from "./install-Cx1i_m0k.js";
|
|
22
|
+
import { i as H } from "./install-B0x4IqQr.js";
|
|
23
|
+
import { i as Z } from "./install-hfre7yvV.js";
|
|
24
|
+
import { u as J, i as K, a as Q } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
25
|
+
import { i as W } from "./install-BBrAry2m.js";
|
|
26
|
+
import { i as X } from "./install-8XfFtnlL.js";
|
|
27
|
+
const Y = { class: "mix-body" }, tt = ["id"], et = {
|
|
28
|
+
DEFAULT_ICON: U,
|
|
29
|
+
ACTIVE_ICON: P,
|
|
30
|
+
NAME_CN: "指数",
|
|
31
|
+
NAME_EN: "Index Chart",
|
|
32
|
+
ORDER: 2
|
|
33
|
+
}, ot = {
|
|
34
|
+
titleColor: "#111",
|
|
35
|
+
textColor: "#111",
|
|
36
|
+
bgColor: "#fff",
|
|
37
|
+
lineColor: "#d64545",
|
|
38
|
+
radiusSize: 8,
|
|
39
|
+
textSize: 12,
|
|
40
|
+
top: 20,
|
|
41
|
+
bottom: 40,
|
|
42
|
+
left: 20,
|
|
43
|
+
right: 30,
|
|
44
|
+
points: 100,
|
|
45
|
+
isSmooth: !1,
|
|
46
|
+
isHideTitle: !1
|
|
47
|
+
}, at = [{ name: "参数一", fv: "", object_id: "" }], st = ["name", "fv", "object_id", "colorArea", "source"], it = ["mosaic", "statistics", "calculate"], lt = [{ color: "#00ff00", value: 50 }], rt = 1, nt = {
|
|
48
|
+
useAlias: !1,
|
|
49
|
+
null: { type: "0", value: "" },
|
|
50
|
+
multiObject: !1,
|
|
51
|
+
source: "mosaic",
|
|
52
|
+
rate: { checked: !1, value: 1 }
|
|
53
|
+
}, ct = { DEFAULT: et, OPTIONS: ot, DATA: at, PARAMS: st, SOURCE: it, COLOR_AREA: lt, ITEMS: rt, COMMON: nt }, mt = /* @__PURE__ */ R(d(f({}, ct), {
|
|
54
|
+
__name: "aqi",
|
|
55
|
+
props: {
|
|
56
|
+
conf: { type: Object, default: () => ({ data: [], area: [] }) },
|
|
57
|
+
uid: { type: String, default: "" },
|
|
58
|
+
mode: { type: String, default: "edit" },
|
|
59
|
+
theme: { type: String, default: "light" }
|
|
60
|
+
},
|
|
61
|
+
setup(a) {
|
|
62
|
+
J([B, F, G, H, Z, K, W, Q, X]);
|
|
63
|
+
const e = a;
|
|
64
|
+
class l extends V {
|
|
65
|
+
extractStyles() {
|
|
66
|
+
return d(f({}, super.extractStyles()), {
|
|
67
|
+
lineColor: this.getOptionValue("lineColor", "#d64545"),
|
|
68
|
+
isSmooth: this.getOptionValue("isSmooth", !1)
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
getChartOption() {
|
|
72
|
+
var s;
|
|
73
|
+
const t = this.Style.value, { conf: r } = this.props;
|
|
74
|
+
return r.area = r.area || [{ color: "#00ff00", value: 50 }], {
|
|
75
|
+
tooltip: { trigger: "axis", textStyle: { fontSize: t.textSize } },
|
|
76
|
+
legend: { show: !0, data: [((s = r == null ? void 0 : r.data[0]) == null ? void 0 : s.name) || ""], right: 20, top: 0, textStyle: { color: t.textColor, fontSize: t.textSize } },
|
|
77
|
+
grid: { top: t.top, bottom: t.bottom, left: t.left, right: t.right, containLabel: !0 },
|
|
78
|
+
dataZoom: [
|
|
79
|
+
{ type: "slider", start: 80, end: 100, height: 20, bottom: 15, left: 60, right: 60, textStyle: { color: t.textColor }, labelFormatter: (i, o) => o.includes(" ") ? o.replace(" ", `
|
|
80
|
+
`) : o },
|
|
81
|
+
{ type: "inside", start: 0, end: 20 }
|
|
82
|
+
],
|
|
83
|
+
visualMap: { show: !1, pieces: this.getPieces(), outOfRange: { color: "#999" } },
|
|
84
|
+
xAxis: [{ type: "category", boundaryGap: !1, data: this.getTimeAxis(), axisLabel: { formatter: (i) => i.includes(" ") ? i.replace(" ", `
|
|
85
|
+
`) : i, color: t.textColor, fontSize: t.textSize }, axisLine: { lineStyle: { color: t.textColor } } }],
|
|
86
|
+
yAxis: { type: "value", boundaryGap: [0, "20%"], splitLine: { lineStyle: { type: "dashed", color: "#e5e5e5" } }, axisLabel: { color: t.textColor, fontSize: t.textSize }, axisLine: { lineStyle: { color: t.textColor } } },
|
|
87
|
+
series: this.formatSeries()
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
getPieces() {
|
|
91
|
+
const { area: t } = this.props.conf;
|
|
92
|
+
if (!(t != null && t.length)) return [];
|
|
93
|
+
const r = [...t].filter((s) => s.value != null).sort((s, i) => s.value - i.value);
|
|
94
|
+
return r.map((s, i) => ({ gt: i === 0 ? 0 : r[i - 1].value, lte: s.value, color: s.color }));
|
|
95
|
+
}
|
|
96
|
+
formatSeries() {
|
|
97
|
+
var o;
|
|
98
|
+
const t = this.Style.value, { data: r, area: s } = this.props.conf, i = (s || []).filter((n) => n.value != null).sort((n, c) => n.value - c.value);
|
|
99
|
+
return [{
|
|
100
|
+
name: ((o = r[0]) == null ? void 0 : o.name) || "",
|
|
101
|
+
type: "line",
|
|
102
|
+
smooth: t.isSmooth,
|
|
103
|
+
sampling: "average",
|
|
104
|
+
markLine: { silent: !1, lineStyle: { color: t.lineColor }, label: { color: t.textColor }, data: i.map((n) => ({ yAxis: n.value })) },
|
|
105
|
+
data: j({ num: t.points, max: 200, min: 0, mode: this.props.mode, hasDataSource: this.hasData() })
|
|
106
|
+
}];
|
|
107
|
+
}
|
|
108
|
+
setSocketData(t) {
|
|
109
|
+
if (!this.hasData() || !this.chartObj || !t) return;
|
|
110
|
+
const { data: r, common: s } = this.props.conf, i = s.source || "mosaic", o = this.chartObj.getOption();
|
|
111
|
+
r.forEach((c, m) => {
|
|
112
|
+
const u = this.extractDataValue(t, c.fv), g = ["statistics", "calculate"].includes(i) ? t.start_time : t.datetime;
|
|
113
|
+
g != null && (m === 0 && o.xAxis[0].data.push(g), o.series[m].data.push(u));
|
|
114
|
+
});
|
|
115
|
+
const n = k(o.xAxis[0].data, o.series.map((c) => c.data));
|
|
116
|
+
o.xAxis[0].data = n.times.slice(-this.Style.value.points), o.series.forEach((c, m) => {
|
|
117
|
+
var u;
|
|
118
|
+
c.data = ((u = n.data[m]) == null ? void 0 : u.slice(-this.Style.value.points)) || [];
|
|
119
|
+
}), this.updateChart(o);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const p = new l(e, "aqi");
|
|
123
|
+
p.setupLifecycle();
|
|
124
|
+
const x = p.getStyle(), _ = p.getEchartId(), b = $(() => w(e.conf.options));
|
|
125
|
+
return (y, t) => (I(), N("div", {
|
|
126
|
+
class: "mix-component",
|
|
127
|
+
style: A({ background: h(x).bgColor, borderRadius: `${h(x).radiusSize}px` })
|
|
128
|
+
}, [
|
|
129
|
+
S("div", {
|
|
130
|
+
class: "mix-title",
|
|
131
|
+
style: A(b.value)
|
|
132
|
+
}, T(a.conf.caption || a.conf.name), 5),
|
|
133
|
+
S("div", Y, [
|
|
134
|
+
S("div", {
|
|
135
|
+
class: "w-full h-full",
|
|
136
|
+
id: h(_)
|
|
137
|
+
}, null, 8, tt)
|
|
138
|
+
]),
|
|
139
|
+
M(y.$slots, "default", {}, void 0, !0)
|
|
140
|
+
], 4));
|
|
141
|
+
}
|
|
142
|
+
})), Et = /* @__PURE__ */ q(mt, [["__scopeId", "data-v-9f578f6a"]]);
|
|
143
|
+
export {
|
|
144
|
+
Et as default
|
|
145
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var P=Object.defineProperty,B=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var z=(d,r,s)=>r in d?P(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,I=(d,r)=>{for(var s in r||(r={}))U.call(r,s)&&z(d,s,r[s]);if(E)for(var s of E(r))G.call(r,s)&&z(d,s,r[s]);return d},T=(d,r)=>B(d,F(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),p=require("./element-resize-detector-Bo5uDQAu.cjs"),X=require("./titleStyle-NSnz6cUg.cjs"),N=require("./ele-aqi-icon-BMm9WgFH.cjs"),Y=require("./installMarkLine-Bv53Iw9G.cjs"),Z=require("./install-DV5cEgNV.cjs"),j=require("./install-z6wShIZI.cjs"),J=require("./install-CIT6k8Ga.cjs"),K=require("./install-CltTFs4e.cjs"),_=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Q=require("./install-C8buXQPI.cjs"),W=require("./install-CYwVETsi.cjs"),w=require("./echarts-BB8O2KSA.cjs"),ee=require("./index-Mh5Dw2sd.cjs"),te={DEFAULT_ICON:N.DEFAULT_ICON,ACTIVE_ICON:N.ACTIVE_ICON,NAME_CN:"分级曲线",NAME_EN:"Grading Curve",ORDER:2},oe={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#d64545",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:30,points:100,isSmooth:!1,isHideTitle:!1},V=[{name:"参数一",项目编号:"",object_id:""}],le=["name","项目编号","object_id","colorArea"],ae=["index","deviation","stability","balance","increment","risk"],ie=[{color:"#00ff00",value:50}],re=1,se={useAlias:!1,null:{type:"0",value:""},source:"index"},ne={DEFAULT:te,OPTIONS:oe,DATA:V,PARAMS:le,SOURCE:ae,COLOR_AREA:ie,ITEMS:re,COMMON:se},ue=t.defineComponent(T(I({},ne),{__name:"aqiIndass",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){_.use([Y.install,Z.install,j.install,J.install,K.install,_.install,Q.install,_.install$1,W.install]);const r=t.ref(t.inject("session",null)),s="aqi_"+Math.random().toString(16).substring(4,12);let o=null,y=null;const l=d;class L extends p.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#d64545"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",100)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V,t.nextTick(()=>{let n=document.querySelector("#"+s);n&&(o||(o=w.init(n),y=p.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(n,()=>o==null?void 0:o.resize())),o.setOption(k(),!0))})}onPreview(){D.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+s)),o&&o.clear(),o&&w.dispose(o),o=null,D.unregister()}}const A=new L(l,"aqiIndass");A.setupLifecycle();const i=A.getStyle(),R=t.computed(()=>X.generateTitleStyle(l.conf.options)),k=()=>{var a,u,m,c,v,S,h,O;const{conf:e}=l,n=p.hasDataSource(e);var f={tooltip:{trigger:"axis"},legend:{show:!0,data:[(e==null?void 0:e.data[0].name)||""],right:20,top:0,textStyle:{color:i.value.textColor,fontSize:i.value.textSize},itemStyle:{color:i.value.lineColor},lineStyle:{color:i.value.lineColor}},grid:{top:((u=(a=e==null?void 0:e.options)==null?void 0:a.top)==null?void 0:u.value)||30,bottom:((c=(m=e==null?void 0:e.options)==null?void 0:m.bottom)==null?void 0:c.value)||20,left:((S=(v=e==null?void 0:e.options)==null?void 0:v.left)==null?void 0:S.value)||40,right:((O=(h=e==null?void 0:e.options)==null?void 0:h.right)==null?void 0:O.value)||20,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,handleStyle:{color:"#fff",shadowBlur:2,shadowOffsetX:2,shadowOffsetY:2},textStyle:{color:i.value.textColor},borderStyle:{color:"#000"},throttle:200,labelFormatter:function(x,C){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(C))return C;let g=C.split(" ");return g[0]+`
|
|
2
|
+
`+g[1]}},{type:"inside",start:0,end:20}],visualMap:{show:!1,pieces:M(),outOfRange:{color:"#999"}},xAxis:[{type:"category",boundaryGap:!1,data:p.getxAxisDataTime(i.value.points,l.mode,n),axisLabel:{formatter:function(x,C){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(x))return x;let g=x.split(" ");return g[0]+`
|
|
3
|
+
`+g[1]},color:i.value.textColor,fontSize:i.value.textSize}}],yAxis:{type:"value",boundaryGap:[0,"20%"],splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{formatter:"{value}",color:i.value.textColor,fontSize:i.value.textSize},axisLine:{lineStyle:{color:i.value.textColor}},splitNumber:4},series:$()};return f},M=()=>{const{area:e}=l.conf;let n=e.filter(a=>a.value!==null&&a.value!==void 0);n.sort((a,u)=>a.value-u.value);let f=[];return n.forEach((a,u)=>{u===0?f.push({gt:0,lte:a.value,color:a.color}):f.push({gt:n[u-1].value,lte:a.value,color:a.color})}),f},$=()=>{var m;const{options:e,data:n,area:f}=l.conf,a=p.hasDataSource(l.conf),u=f.filter(c=>c.value!==null&&c.value!==void 0);return u.sort((c,v)=>c.value-v.value),[{name:n[0].name||"",type:"line",smooth:(m=e==null?void 0:e.isSmooth)==null?void 0:m.value,sampling:"average",markLine:{silent:!1,lineStyle:{color:i.value.lineColor},label:{color:i.value.textColor},data:u.map(c=>({yAxis:c.value}))},data:p.getRandomArr({num:i.value.points,max:200,min:0,mode:l.mode,hasDataSource:a})}]},H=e=>{if(!p.hasDataSource(l.conf))return;const{data:n}=l.conf;let f=p.handleNullData(e,l,"history"),a=[],u=[];if(!f.history.length)return;f.history.forEach((c,v)=>{u.push([]),u[v]=c.map(S=>{var h;return(h=S[n[v].fv])!=null?h:"--"}),a[v]=c.map(S=>S.time)});let m=o==null?void 0:o.getOption();m&&(m.xAxis[0].data=a[0],m.series.forEach((c,v)=>{c.data=u[v]}),o==null||o.setOption(m))},q=e=>{p.hasDataSource(l.conf)},D={preview:()=>p.preview(l,r.value,H,q,"aqiIndass"),unregister:()=>p.unregister(l,r.value)};t.watchEffect(()=>{l.conf.socketData&&q(l.conf.socketData)});const b=l.conf;return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(i).bgColor,borderRadius:`${t.unref(i).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(R.value)},t.toDisplayString(t.unref(b).caption||t.unref(b).name),5),t.createElementVNode("div",{class:"mix-body"},[t.createElementVNode("div",{class:"w-full h-full",id:s})]),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),ce=ee._export_sfc(ue,[["__scopeId","data-v-72d20e76"]]);exports.default=ce;
|