mixdashboards 1.0.39 → 1.0.40
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/{EChartComponentBase-BaQpBzVC.cjs → EChartComponentBase-BTqBoBn8.cjs} +1 -1
- package/dist/{EChartComponentBase-BQOhWkz2.js → EChartComponentBase-GBbKjtlb.js} +1 -1
- package/dist/{UniverSheet-KlvmL1Yw.cjs → UniverSheet-B9dCqA-W.cjs} +1 -1
- package/dist/{UniverSheet-MSHzUXq0.js → UniverSheet-DIkltx8i.js} +2 -2
- package/dist/{accelerationChart-B1HPMmd2.js → accelerationChart-B7grHeml.js} +3 -3
- package/dist/{accelerationChart-DZj2V2vD.cjs → accelerationChart-CvNoIyue.cjs} +1 -1
- package/dist/{actionItem-BYCPoQK7.cjs → actionItem-BKNfuprM.cjs} +1 -1
- package/dist/{actionItem-Bb2xiYlY.js → actionItem-BrTSUE0J.js} +3 -3
- package/dist/{alarmLevelChart-CCioESvL.js → alarmLevelChart-CmjyIsWH.js} +2 -2
- package/dist/{alarmLevelChart-Bb0mAbwQ.cjs → alarmLevelChart-DBqGvaXQ.cjs} +1 -1
- package/dist/{alertTable-CQwr8YYt.js → alertTable-C8beWyfK.js} +2 -2
- package/dist/{alertTable-oaX5eJC0.cjs → alertTable-CZ2ufzg9.cjs} +1 -1
- package/dist/{annualRainfallChart-C21jEMBe.js → annualRainfallChart-D3Pck4he.js} +2 -2
- package/dist/{annualRainfallChart-pO8q6aUJ.cjs → annualRainfallChart-D3YQwScd.cjs} +1 -1
- package/dist/{api-P_s372dW.cjs → api-C0okiLNC.cjs} +1 -1
- package/dist/{api-C0GhBpqd.js → api-DhQsrEGY.js} +4 -4
- package/dist/{aqi-DlY2r7OA.cjs → aqi-91QfhWTq.cjs} +1 -1
- package/dist/{aqi-iLwQH4rc.js → aqi-DnrkU6z-.js} +10 -10
- package/dist/{aqiIndass-DBeVSBdy.js → aqiIndass-CzA5PVzc.js} +15 -15
- package/dist/{aqiIndass-BaIVBfdC.cjs → aqiIndass-D2h-731s.cjs} +1 -1
- package/dist/arrayCard-C-V_01r7.cjs +1 -0
- package/dist/arrayCard-mprI5bQN.js +94 -0
- package/dist/{audio-CThzVIDU.cjs → audio-CdVI14ea.cjs} +1 -1
- package/dist/{audio-CAP4D-J2.js → audio-Xj66qRvv.js} +5 -5
- package/dist/{bar-BjR566__.cjs → bar-DQ6kQXTC.cjs} +1 -1
- package/dist/{bar-D8C06GO4.js → bar-ub8ERs66.js} +4 -4
- package/dist/{bmp-Cjizh2x6.js → bmp-bXQBGW16.js} +3 -3
- package/dist/{bmp-DsmTzyce.cjs → bmp-xuWyQ9_n.cjs} +1 -1
- package/dist/{box-qgu_67OD.cjs → box-C9s5aZjl.cjs} +1 -1
- package/dist/{box-DqewT3MF.js → box-Dx6V-j_J.js} +2 -2
- package/dist/{chartConfigPanel-DwAUq3pf.js → chartConfigPanel-Bd47rczI.js} +1 -1
- package/dist/{chartConfigPanel-BiQArCoQ.cjs → chartConfigPanel-CLbbeZzN.cjs} +1 -1
- package/dist/{circleBar-CO89T7kj.cjs → circleBar-BsmKIein.cjs} +1 -1
- package/dist/{circleBar-DGHDWQih.js → circleBar-D8I2e0Ov.js} +8 -8
- package/dist/{clock-CT8YXEU3.js → clock-7kw9zMJ0.js} +2 -2
- package/dist/{clock-32hGccm4.cjs → clock-bnKjuzzp.cjs} +1 -1
- package/dist/{clt-5bP_g1O-.cjs → clt-7F8jS0WQ.cjs} +1 -1
- package/dist/{clt-FfIEfGtn.js → clt-BGGFfbQ5.js} +3 -3
- package/dist/{cmc-dbuLkE8o.cjs → cmc-B2ja2VKe.cjs} +1 -1
- package/dist/{cmc-B2nQFZIS.js → cmc-DTiGNWEl.js} +3 -3
- package/dist/{cmp-QQlYcnqo.js → cmp-BXx9BxO1.js} +12 -12
- package/dist/{cmp-l3U9fIrz.cjs → cmp-D9MzneF0.cjs} +1 -1
- package/dist/{composite-DjhrBgG1.js → composite-C6PQB2RS.js} +8 -8
- package/dist/{composite-DlY2_x6P.cjs → composite-Dh9pPcWq.cjs} +1 -1
- package/dist/config-D3MEjLGn.js +9 -0
- package/dist/config-UTUPYJ45.cjs +1 -0
- package/dist/{controlList-BdF8xNAi.js → controlList-VioXoP_4.js} +3 -3
- package/dist/{controlList-De6PXdOc.cjs → controlList-uLJtFu1P.cjs} +1 -1
- package/dist/{controlRecordList-CKpAr1ON.js → controlRecordList-DY7qKQp1.js} +3 -3
- package/dist/{controlRecordList-u5a7chIX.cjs → controlRecordList-GtFLhcc9.cjs} +1 -1
- package/dist/{crd-BVAf41oX.js → crd-Bf8Rmcf5.js} +2 -2
- package/dist/{crd-BoaXQhFQ.cjs → crd-DdsOuCBh.cjs} +1 -1
- package/dist/{ctrBtn-ZPRYWE66.js → ctrBtn-BSzyUEkN.js} +4 -4
- package/dist/{ctrBtn-C9kQiqY1.cjs → ctrBtn-GKFfJlE2.cjs} +1 -1
- package/dist/{ctrSet-C87dxLfQ.js → ctrSet--1TrVZDc.js} +4 -4
- package/dist/{ctrSet-CNCrnLSs.cjs → ctrSet-CDr5scQE.cjs} +1 -1
- package/dist/{ctrSwitch-CkC_Axtp.js → ctrSwitch-ezGEAkLG.js} +4 -4
- package/dist/{ctrSwitch-CVEtbdfb.cjs → ctrSwitch-kHoyJDax.cjs} +1 -1
- package/dist/{dataManagement-n711sd1g.cjs → dataManagement-DxTZAlJy.cjs} +1 -1
- package/dist/{dataManagement-CjlNfeYq.js → dataManagement-oWoI1QPO.js} +2 -2
- package/dist/{dataReport-ByjswEqq.js → dataReport-BATqcXj4.js} +2 -2
- package/dist/{dataReport-BsVjW3p7.cjs → dataReport-Dygq1jQV.cjs} +1 -1
- package/dist/{dataTable-K7j4fhnq.cjs → dataTable-CotUzlhz.cjs} +1 -1
- package/dist/{dataTable-DX500R1i.js → dataTable-DIKwnInT.js} +1 -1
- package/dist/{datetime-DVbJtALf.js → datetime-CK042aN0.js} +2 -2
- package/dist/{datetime-DYXWKrXI.cjs → datetime-DLASaAKw.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-CQUE05cK.js → deepClusterSlipSurface-C52_bDho.js} +6 -6
- package/dist/{deepClusterSlipSurface-B7nkEM9A.cjs → deepClusterSlipSurface-D8v4xJGF.cjs} +1 -1
- package/dist/{deepDataMatrix-DHZA0IAm.cjs → deepDataMatrix-C-NrtGtk.cjs} +1 -1
- package/dist/{deepDataMatrix-ai5rB6ET.js → deepDataMatrix-CdB1ZO5Q.js} +2 -2
- package/dist/{deepDisplacement3D-BsUzvbQb.js → deepDisplacement3D-C3Salw1w.js} +3 -3
- package/dist/{deepDisplacement3D-BFqKqSYg.cjs → deepDisplacement3D-CzM-wm4q.cjs} +1 -1
- package/dist/{deepDisplacementChart-Ba67v6um.cjs → deepDisplacementChart-BqZ4nUgg.cjs} +1 -1
- package/dist/{deepDisplacementChart-2JZNrhrw.cjs → deepDisplacementChart-ByIJTYX6.cjs} +1 -1
- package/dist/{deepDisplacementChart-igl4rW1K.js → deepDisplacementChart-GcH8IGA4.js} +2 -2
- package/dist/{deepDisplacementChart-BCIuCMdK.js → deepDisplacementChart-ndHgH60B.js} +4 -4
- package/dist/{deepDisplacementView-BedWJsx7.js → deepDisplacementView-Bo_pmf0R.js} +1 -1
- package/dist/{deepDisplacementView-wQxyKzB-.cjs → deepDisplacementView-Bq_G0GlS.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DLeb9jKp.js → deepNodeTemperatureChart-CXgft_WM.js} +6 -6
- package/dist/{deepNodeTemperatureChart-albL8hKa.cjs → deepNodeTemperatureChart-Dsl1Zm8T.cjs} +1 -1
- package/dist/{deepTangentAngleChart-C6xOiITk.js → deepTangentAngleChart-D-WoGKz7.js} +7 -7
- package/dist/{deepTangentAngleChart-DukevXaM.cjs → deepTangentAngleChart-iLt3bK8f.cjs} +1 -1
- package/dist/{deepTemperatureField-B-y94GPV.js → deepTemperatureField-BFB8bQde.js} +7 -7
- package/dist/{deepTemperatureField-De4xKoHw.cjs → deepTemperatureField-DnpuZuD8.cjs} +1 -1
- package/dist/{deepTrendChart-MmuYSXtu.cjs → deepTrendChart-BghE13XG.cjs} +1 -1
- package/dist/{deepTrendChart-DCkV2HNv.js → deepTrendChart-E-mAzsST.js} +6 -6
- package/dist/{deviceOnlineStatus-CFuCTx7_.js → deviceOnlineStatus-CkZijkjC.js} +2 -2
- package/dist/{deviceOnlineStatus-B5cCjhNA.cjs → deviceOnlineStatus-TQ-Fv8ye.cjs} +1 -1
- package/dist/{deviceStatus-DsEtKiGo.cjs → deviceStatus-BkKc9wqU.cjs} +1 -1
- package/dist/{deviceStatus-B2ibBDSi.js → deviceStatus-BvJr98D0.js} +2 -2
- package/dist/{displacementDataTable-BDqG1IvI.js → displacementDataTable-BJ5S7te1.js} +2 -2
- package/dist/{displacementDataTable-oLnUdafv.cjs → displacementDataTable-DJUK3mBu.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-CBhPwZhe.cjs → displacementTrajectoryChart-C2estBCm.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-Crf55oKi.js → displacementTrajectoryChart-DGS9Mn7o.js} +3 -3
- package/dist/{displacementTrendChart-CWihCuIJ.cjs → displacementTrendChart-CgsIcHCK.cjs} +1 -1
- package/dist/{displacementTrendChart-10n_lC9j.js → displacementTrendChart-Ddgpsnta.js} +2 -2
- package/dist/{dxf-D8zHpz5g.js → dxf-B0EL1hyB.js} +5 -5
- package/dist/{dxf-DDh_DcQy.cjs → dxf-DbxtgQWv.cjs} +1 -1
- package/dist/{dzc-DLCdTCwW.js → dzc-ACr2bZGl.js} +10 -10
- package/dist/{dzc-uNTDJqpi.cjs → dzc-Bdm2nr1F.cjs} +1 -1
- package/dist/{arrayCard-DNNUEPvW.js → ele-arrayCard-icon-CAk9ojr4.js} +3 -91
- package/dist/ele-arrayCard-icon-QOabvV0y.cjs +1 -0
- package/dist/{element-resize-detector-Bo5uDQAu.cjs → element-resize-detector-BlMXyWIR.cjs} +1 -1
- package/dist/{element-resize-detector-DJcsrJ8s.js → element-resize-detector-DeMhGbNi.js} +4 -4
- package/dist/{evn-YwCALVXj.js → evn-D0llPvjK.js} +2 -2
- package/dist/{evn-DuL5oVRl.cjs → evn-Moewbl2h.cjs} +1 -1
- package/dist/{evolutionChart-4noZSdLX.js → evolutionChart-Cz_GOcB8.js} +3 -3
- package/dist/{evolutionChart-AeL67MAt.cjs → evolutionChart-DBwL00ZJ.cjs} +1 -1
- package/dist/{fileViewer-bsrjlJkC.cjs → fileViewer-BtjOAdM9.cjs} +1 -1
- package/dist/{fileViewer-DiH3PM0r.js → fileViewer-D-WNR3vF.js} +5 -5
- package/dist/{filterBar-Ct1BFhrS.cjs → filterBar-4Q9XSiAY.cjs} +1 -1
- package/dist/{filterBar-CWEguwYc.js → filterBar-DLYmU350.js} +2 -2
- package/dist/{fireCombustionCurve-DYPC4zKJ.js → fireCombustionCurve-BU3pplHd.js} +2 -2
- package/dist/{fireCombustionCurve-DyiQn-WA.cjs → fireCombustionCurve-CWggQsw1.cjs} +1 -1
- package/dist/{fireFilterBar-Bdm2ljuO.cjs → fireFilterBar-EKwzMAFp.cjs} +1 -1
- package/dist/{fireFilterBar-DGHPNTwF.js → fireFilterBar-ROtoXZex.js} +2 -2
- package/dist/{gag-HiNaL81R.cjs → gag-CvMEVCbE.cjs} +1 -1
- package/dist/{gag-kvkKzJuO.js → gag-D8mNPZnH.js} +5 -5
- package/dist/gasStationList-CWg8IYCo.cjs +1 -0
- package/dist/gasStationList-qVKS-fgC.js +984 -0
- package/dist/{glbModel-DtBI72ap.cjs → glbModel-CQBEujd2.cjs} +1 -1
- package/dist/{glbModel-CUz6CyVF.js → glbModel-U_yKQZWm.js} +2 -2
- package/dist/{gnssFilterBar-TBtirXIB.js → gnssFilterBar-o7zpW7jS.js} +2 -2
- package/dist/{gnssFilterBar-BQgY5x1W.cjs → gnssFilterBar-pvMsIjFy.cjs} +1 -1
- package/dist/{gnssHistoryTable-U8O7nyO7.js → gnssHistoryTable-BYg9jtl5.js} +3 -3
- package/dist/{gnssHistoryTable-D1ZLJOgh.cjs → gnssHistoryTable-Ddcw3-NB.cjs} +1 -1
- package/dist/{gnssMapView-42zmAd9q.cjs → gnssMapView--c2UXuOb.cjs} +1 -1
- package/dist/{gnssMapView-CaBfWeT1.js → gnssMapView-DMcq2u2c.js} +2 -2
- package/dist/{gnssTimeSeriesChart-CV2w_Aik.cjs → gnssTimeSeriesChart-984dcBPA.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-BrXYvuh6.js → gnssTimeSeriesChart-BtUSps0z.js} +4 -4
- package/dist/{gnssXYTrajectory-BmzSYjQ_.cjs → gnssXYTrajectory-D9JmAqC0.cjs} +1 -1
- package/dist/{gnssXYTrajectory-D2DoYnze.js → gnssXYTrajectory-DvIpI-GX.js} +3 -3
- package/dist/{grd-DW8cSFVR.cjs → grd-Cb8vd52d.cjs} +1 -1
- package/dist/{grd-B0GUjLm9.js → grd-DcxFaMyv.js} +3 -3
- package/dist/{grdIndass-DduUKZJm.js → grdIndass-BPLTUWIc.js} +3 -3
- package/dist/{grdIndass-BeBXVsos.cjs → grdIndass-FkNJ9pl6.cjs} +1 -1
- package/dist/{grg-CeX0pirQ.js → grg-Baot_Pdv.js} +6 -6
- package/dist/{grg-fnpcXtju.cjs → grg-CoDiLjcl.cjs} +1 -1
- package/dist/{gridview-DpABhCIw.cjs → gridview-BwDeg0tI.cjs} +1 -1
- package/dist/{gridview-BPwWXza9.js → gridview-DN8V84hl.js} +2 -2
- package/dist/{groupCard-De1E15mW.js → groupCard-D5wLscZo.js} +2 -2
- package/dist/{groupCard-WNE6gAAl.cjs → groupCard-DChtdioU.cjs} +1 -1
- package/dist/{headerBar-CZ3qcLHo.js → headerBar-DLvSZsMl.js} +3 -3
- package/dist/{headerBar-Qi1EXrr6.cjs → headerBar-m57S9WlE.cjs} +1 -1
- package/dist/{history-DAmBl4_5.cjs → history-C4gipwnp.cjs} +1 -1
- package/dist/{history-BkZhlpdY.js → history-DN0IVkYL.js} +3 -3
- package/dist/index-EnNA0nIi.cjs +582 -0
- package/dist/{index-kShjySl9.js → index-zPaMBZk-.js} +1047 -1065
- package/dist/{insarDeformChart-CnuSL1d9.js → insarDeformChart-DZl03mOe.js} +2 -2
- package/dist/{insarDeformChart-BGr2xe7w.cjs → insarDeformChart-DkiLrhem.cjs} +1 -1
- package/dist/{insarImageViewer-DRgGdQmN.cjs → insarImageViewer-ZcqHEEZr.cjs} +1 -1
- package/dist/{insarImageViewer-EmVThmVQ.js → insarImageViewer-kqYV5A1S.js} +2 -2
- package/dist/{kds-DTYWOq4K.cjs → kds-Ba0yzyNm.cjs} +1 -1
- package/dist/{kds-CpIQFgeY.js → kds-BbyaSB3L.js} +10 -10
- package/dist/{layerTabs-BATcBkTA.cjs → layerTabs-D2M3EVxt.cjs} +1 -1
- package/dist/{layerTabs-uze6K91A.js → layerTabs-SRHmamTF.js} +2 -2
- package/dist/{lin-Ba6fHkYf.cjs → lin-0U8FQZHZ.cjs} +1 -1
- package/dist/{lin-DU_EuPRg.js → lin-DxnORLL5.js} +8 -8
- package/dist/{linIndass-urYe5inp.cjs → linIndass-CX9Z02-e.cjs} +1 -1
- package/dist/{linIndass-XHKElG7L.js → linIndass-DXtxVxcr.js} +7 -7
- package/dist/{lst-C7aee1cU.js → lst-BKALUOuy.js} +2 -2
- package/dist/{lst-CpmoEQDY.cjs → lst-Bk2nvLuQ.cjs} +1 -1
- package/dist/{manualEntry-D9m_WPw3.js → manualEntry-DHH0Yrr3.js} +2 -2
- package/dist/{manualEntry-CJPiO5nh.cjs → manualEntry-DRK0QRnb.cjs} +1 -1
- package/dist/{mapBackground-6g_71Fwa.js → mapBackground-BXj8T-bG.js} +2 -2
- package/dist/{mapBackground-CF_TqNBy.cjs → mapBackground-DTuXORjO.cjs} +1 -1
- package/dist/{mappingList-CR55Tq4t.cjs → mappingList-M9OukdCu.cjs} +1 -1
- package/dist/{mappingList-luT5YE0d.js → mappingList-N-lL8mnV.js} +3 -3
- package/dist/{markdownViewer-D1hDk2Y7.cjs → markdownViewer-CcLL2hzV.cjs} +1 -1
- package/dist/{markdownViewer-CnguoUr8.js → markdownViewer-CgabPFUn.js} +5 -5
- package/dist/{mix-control-modal-CHiX3hQs.js → mix-control-modal-DRL4otx8.js} +3 -3
- package/dist/{mix-control-modal-BDHAB4Tw.cjs → mix-control-modal-Lhzopftt.cjs} +1 -1
- package/dist/{mixDataPermission-BaqV0Z6N.js → mixDataPermission-B5fpqFgm.js} +4 -3
- package/dist/{mixDataPermission-BTA1jNd1.cjs → mixDataPermission-CWt9H_Ib.cjs} +1 -1
- package/dist/{mixGrid-3BqQCvg8.cjs → mixGrid-DTwH6At3.cjs} +1 -1
- package/dist/{mixGrid-C0eEvwPy.js → mixGrid-wE427LB0.js} +3 -3
- package/dist/{mixMap-7upgYwWk.js → mixMap-Bo7_Womf.js} +3 -3
- package/dist/{mixMap-Bw-We4Cm.cjs → mixMap-DKDtSARk.cjs} +1 -1
- package/dist/{mixModel-BqE_Kd4c.js → mixModel-CdMcRi5k.js} +10 -10
- package/dist/{mixModel-CgV4XptM.cjs → mixModel-Dufgy8XG.cjs} +1 -1
- package/dist/{mixPie-9LfMCTQV.cjs → mixPie-BoUARcVT.cjs} +1 -1
- package/dist/{mixPie-B-HeglUn.js → mixPie-Dr9Toi5T.js} +7 -7
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-Cfw3rzT5.js → mjpegCamera-BBqBIpmz.js} +2 -2
- package/dist/{mjpegCamera-nxKfhobY.cjs → mjpegCamera-C20yRxub.cjs} +1 -1
- package/dist/{monitorAlert-Bt0baNh4.cjs → monitorAlert-BgRCm9Vs.cjs} +1 -1
- package/dist/{monitorAlert-Bg5vzzyG.js → monitorAlert-DVfJ6uNR.js} +2 -2
- package/dist/{monitorData-CzPVIk_4.cjs → monitorData-Dz_cHcBR.cjs} +1 -1
- package/dist/{monitorData-BvAMeOrp.js → monitorData-zfcYQmc8.js} +3 -3
- package/dist/{monitorSpeedChart-0bDuU3Kj.js → monitorSpeedChart-DYV_S1um.js} +1 -1
- package/dist/{monitorSpeedChart-C52QjA5K.cjs → monitorSpeedChart-jAf_Agnm.cjs} +1 -1
- package/dist/{mxa-eLAgZPMC.cjs → mxa-DGkX2ysU.cjs} +1 -1
- package/dist/{mxa-BW80xKCc.js → mxa-mziDHRQU.js} +7 -7
- package/dist/myValue-6J41vLFg.cjs +1 -0
- package/dist/myValue-s0IC6eg0.js +149 -0
- package/dist/myValueList-Dl-JfGq6.cjs +1 -0
- package/dist/myValueList-cOT1nYnO.js +451 -0
- package/dist/{objectList-Cf9GMyXN.js → objectList-DGBiB_w6.js} +100 -95
- package/dist/objectList-DK5_HGK_.cjs +1 -0
- package/dist/photo-CBfgcj6v.cjs +1 -0
- package/dist/photo-C_1tDAZa.js +342 -0
- package/dist/{pie-DxoBrm0D.cjs → pie-DAEzlPEp.cjs} +1 -1
- package/dist/{pie-BDLg-Rls.js → pie-p9CvjJ_m.js} +7 -7
- package/dist/{pressBtn-t0g4vk7s.cjs → pressBtn-DMMLEAFZ.cjs} +1 -1
- package/dist/{pressBtn-CXG1eSWC.js → pressBtn-DlhDUUdy.js} +4 -4
- package/dist/{progressBar-BXaFKSCq.js → progressBar-C3K0DYlI.js} +2 -2
- package/dist/{progressBar-CJEWkZ42.cjs → progressBar-ZksfXpzu.cjs} +1 -1
- package/dist/{progressCircle-DpOI5D5z.js → progressCircle-BBLr8loP.js} +2 -2
- package/dist/{progressCircle-uQ7vaMKM.cjs → progressCircle-eFwDltuC.cjs} +1 -1
- package/dist/{qrcode-CX8aymYZ.js → qrcode-DgwPQO8V.js} +297 -298
- package/dist/qrcode-F7MtRi3K.cjs +1 -0
- package/dist/{raceBar-Cv0-0ogd.cjs → raceBar-Cp-9uqpX.cjs} +1 -1
- package/dist/{raceBar-DFaH342G.js → raceBar-CyW79eH-.js} +7 -7
- package/dist/{rad-CFswUTwi.cjs → rad-CLvi3eWj.cjs} +1 -1
- package/dist/{rad-NS2G_nMg.js → rad-CbFS-xjy.js} +7 -7
- package/dist/{rainfallFilterBar-D_Ye_NeB.js → rainfallFilterBar-B0G4jUib.js} +2 -2
- package/dist/{rainfallFilterBar-BI45QvJm.cjs → rainfallFilterBar-DldKT-I5.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BHWqX47Q.js → rainfallTimeCurve-BlyxLbcV.js} +3 -3
- package/dist/{rainfallTimeCurve-Ke1JvSWq.cjs → rainfallTimeCurve-C5r3fOW8.cjs} +1 -1
- package/dist/{rangeLin-D6VZ2U3C.cjs → rangeLin-B2vKFJHK.cjs} +1 -1
- package/dist/{rangeLin-GMYEgLeP.js → rangeLin-CLAcLUai.js} +7 -7
- package/dist/{request-Bn100qAJ.cjs → request-4n94CBXg.cjs} +1 -1
- package/dist/{request-BD0x5Hkt.js → request-DT13bnc0.js} +1 -1
- package/dist/{retainer1-h-Whr2c9.js → retainer1-Dy2VHVgc.js} +3 -3
- package/dist/{retainer1-D2XmjXYH.cjs → retainer1-EFUFSxMm.cjs} +1 -1
- package/dist/{retainer2-ByQdiRjq.js → retainer2-3ITxlgwH.js} +3 -3
- package/dist/{retainer2-cF-trL2g.cjs → retainer2-BKVJLvBo.cjs} +1 -1
- package/dist/{riskRegionTable-CQxAkG7k.js → riskRegionTable-BQ88G7F7.js} +2 -2
- package/dist/{riskRegionTable-cKnxra4_.cjs → riskRegionTable-C2GOEi0n.cjs} +1 -1
- package/dist/{sankey-Bk1IcVJQ.js → sankey-ehJmtfKp.js} +9 -9
- package/dist/{sankey-MRirEgU0.cjs → sankey-utV5RADH.cjs} +1 -1
- package/dist/{scd-BDRpzmsa.js → scd-D-Y1EEoF.js} +2 -2
- package/dist/{scd-J-mN3eI5.cjs → scd-Nx15OHeb.cjs} +1 -1
- package/dist/{sideMenu-l8X2E00H.cjs → sideMenu-Ci3pDMFm.cjs} +1 -1
- package/dist/{sideMenu-BgTMtnMq.js → sideMenu-D6MgOAkf.js} +2 -2
- package/dist/{slopeStability-BPf7m0fJ.cjs → slopeStability-B9WvyL3-.cjs} +1 -1
- package/dist/{slopeStability-C5RqZ1im.js → slopeStability-Bu2a83d7.js} +3 -3
- package/dist/{speedCurve-C3pK-zZy.js → speedCurve-BR_xyp4X.js} +3 -3
- package/dist/{speedCurve-CluwNAZl.cjs → speedCurve-DrndMOKB.cjs} +1 -1
- package/dist/{staticLine-C6tGGXcN.cjs → staticLine-BLUdDtae.cjs} +1 -1
- package/dist/{staticLine-DXWOLj15.js → staticLine-DYQUjE_3.js} +7 -7
- package/dist/{store-DzDtVfSX.js → store-BpVoYd93.js} +2 -2
- package/dist/{store-BJW2NQkK.cjs → store-KXsdwyLp.cjs} +1 -1
- package/dist/{swiper-DGqDoUkX.cjs → swiper-53BGkj5I.cjs} +1 -1
- package/dist/{swiper-IMlGje3t.js → swiper-S8NYmcYS.js} +3 -3
- package/dist/{terminalConfigList-D6xDHsnb.cjs → terminalConfigList-DFDsxg1q.cjs} +1 -1
- package/dist/{terminalConfigList-SAyXi-BK.js → terminalConfigList-DaEpZiog.js} +3 -3
- package/dist/{terminalList-ml2C18MY.cjs → terminalList-BgNFp3E0.cjs} +1 -1
- package/dist/{terminalList-CjSHshiR.js → terminalList-mKVmYqJm.js} +3 -3
- package/dist/{textbox-BLV-SY8e.js → textbox-Bazh9LRC.js} +4 -4
- package/dist/{textbox-AQtCe25j.cjs → textbox-DAyhC67s.cjs} +1 -1
- package/dist/{timeQueryBar-BuKakMy8.cjs → timeQueryBar-2cbPr7zw.cjs} +1 -1
- package/dist/{timeQueryBar-BeMu_DYr.js → timeQueryBar-BnVnJk5K.js} +1 -1
- package/dist/{timeSeries-DP5iZKVM.js → timeSeries-BF-2qAA7.js} +4 -4
- package/dist/{timeSeries-DfGgFWiF.cjs → timeSeries-DEeo2zjY.cjs} +1 -1
- package/dist/{timeSeriesCurve-B0Mw6eNK.cjs → timeSeriesCurve-BMhNq3WC.cjs} +1 -1
- package/dist/{timeSeriesCurve-BSgtPqYw.js → timeSeriesCurve-CkCeP5mK.js} +3 -3
- package/dist/{toggleBtn-O2Y75Uen.js → toggleBtn-BnIia9MT.js} +7 -7
- package/dist/{toggleBtn-Dh64vVWo.cjs → toggleBtn-hg6nIH97.cjs} +1 -1
- package/dist/{trajectoryConfigPanel--C1h3tK6.js → trajectoryConfigPanel-CfnLHqWP.js} +1 -1
- package/dist/{trajectoryConfigPanel-P_Qa4omj.cjs → trajectoryConfigPanel-agVnGJJ6.cjs} +1 -1
- package/dist/{trajectoryScatter-VLrmImlq.js → trajectoryScatter-BBL5uJSS.js} +6 -6
- package/dist/{trajectoryScatter-BbpbgNb8.cjs → trajectoryScatter-BzFxJkJn.cjs} +1 -1
- package/dist/{universalConfigPanel-DBg76b4F.js → universalConfigPanel-BueS1CeL.js} +1 -1
- package/dist/{universalConfigPanel-C0lDSzOB.cjs → universalConfigPanel-Db87fd8H.cjs} +1 -1
- package/dist/{universalTable-DGK02ywi.js → universalTable-5QpYwmyj.js} +2 -2
- package/dist/{universalTable-Bzq9VqzA.cjs → universalTable-BXfm_1je.cjs} +1 -1
- package/dist/{video-DCzzaEmV.js → video-C75mXLnF.js} +5 -5
- package/dist/{video-CyRoSQf1.cjs → video-QWpkqafn.cjs} +1 -1
- package/dist/{videoMonitor-ByaQeIWR.js → videoMonitor-DSOQbTy9.js} +2 -2
- package/dist/{videoMonitor-BjD-ZFS0.cjs → videoMonitor-Dlvtlmf3.cjs} +1 -1
- package/dist/{vlu-h-9twmCr.js → vlu-BRrxfbLm.js} +2 -2
- package/dist/{vlu-CYZjYHaV.cjs → vlu-DqqX7UrQ.cjs} +1 -1
- package/dist/{weather-C_aC0XJ1.js → weather-B4twNcEf.js} +3 -3
- package/dist/{weather-B7B5E1EJ.cjs → weather-GNGvUFJc.cjs} +1 -1
- package/dist/{windLin-DPNzX7JN.cjs → windLin-DPr5J4_t.cjs} +1 -1
- package/dist/{windLin-B7V4NUV8.js → windLin-DSh910GU.js} +9 -9
- package/package.json +10 -9
- package/dist/arrayCard-OlVAAsZq.cjs +0 -1
- package/dist/config-BLSroAzs.cjs +0 -1
- package/dist/config-Cc2W4vke.js +0 -9
- package/dist/index-Mh5Dw2sd.cjs +0 -585
- package/dist/objectList-CpqQxG8L.cjs +0 -1
- package/dist/photo-BODEtaYh.cjs +0 -1
- package/dist/photo-BfLkWAo8.js +0 -256
- package/dist/qrcode-DHCRfp0M.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,D=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},q=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./element-resize-detector-BlMXyWIR.cjs"),ae=require("./index-EnNA0nIi.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var z;(function(o){var d=(function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=n)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var T=a.getNumDataCodewords(g,t)*8;c(v.length<=T),s(0,Math.min(4,T-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<T;N^=253)s(N,8,v);for(var _=[];_.length*8<v.length;)_.push(0);return v.forEach(function(I,O){return _[O>>>3]|=I<<7-(O&7)}),new a(g,t,_,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var l=i[n],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();o.QrSegment=h})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var B=z,V="L",oe=100,G=0,ie=.1,le=2,W={L:B.QrCode.Ecc.LOW,M:B.QrCode.Ecc.MEDIUM,Q:B.QrCode.Ecc.QUARTILE,H:B.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return B.QrCode.encodeText(o.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,O){I.forEach(function(x,L){x&&v.fillRect(L+u.value,O+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var T=function(I,O,x,L,Q,X){I.beginPath(),I.roundRect?I.roundRect(O,x,L,Q,X):I.rect(O,x,L,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,T(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var _=a.value.borderRadius;_>0?(v.save(),T(v,a.value.x,a.value.y,a.value.width,a.value.height,_),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(n),f.watchEffect(n);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(q(D({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const d=o;class s extends re.BaseComponent{extractStyles(){return q(D({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>ne.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(n,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-8d1e58f4"]]);exports.default=be;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var C=(l,o,a)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,d=(l,o)=>{for(var a in o||(o={}))A.call(o,a)&&C(l,a,o[a]);if(f)for(var a of f(o))T.call(o,a)&&C(l,a,o[a]);return l},p=(l,o)=>v(l,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),g=require("./element-resize-detector-
|
|
1
|
+
"use strict";var S=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var C=(l,o,a)=>o in l?S(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,d=(l,o)=>{for(var a in o||(o={}))A.call(o,a)&&C(l,a,o[a]);if(f)for(var a of f(o))T.call(o,a)&&C(l,a,o[a]);return l},p=(l,o)=>v(l,b(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),g=require("./element-resize-detector-BlMXyWIR.cjs"),w=require("./index-EnNA0nIi.cjs"),O=require("./EChartComponentBase-BTqBoBn8.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),h=require("./installCanvasRenderer-CyhM1Qpl.cjs"),_=require("./install-DV5cEgNV.cjs"),E=require("./install-CltTFs4e.cjs"),D=require("./install-C8buXQPI.cjs"),k=require("./install-Ch5d8i37.cjs"),M="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(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",$="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(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",z={class:"mix-body"},H=["id"],I={DEFAULT_ICON:M,ACTIVE_ICON:$,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1},B={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1},N=[{name:"参数一",fv:"",color:"#4162ff"}],q=["name","fv","color"],F=["mosaic"],V={useAlias:!1,multiObject:!1,source:"mosaic"},U={DEFAULT:I,OPTIONS:B,DATA:N,PARAMS:q,SOURCE:F,COMMON:V},Z=i.defineComponent(p(d({},U),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){h.use([_.install,E.install,h.install,D.install,h.install$1,k.install]);const o=l;class a extends O.EChartComponentBase{constructor(){super(...arguments),this.CHART={data:[],items:[],colors:[],times:[]}}extractStyles(){return p(d({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.initChartData(),i.nextTick(()=>this.initChart())}initChartData(){const e=this.props.conf;this.CHART={data:[],items:[],colors:[],times:[]},e.data.forEach((s,n)=>{const t=g.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(s.color||g.COLORS[n]),this.CHART.data.push(s.value||t[0]),this.CHART.items.push(s.name)})}getChartOption(){const e=this.Style.value;this.props.conf;const s=this.CHART;let n={grid:{top:e.top,bottom:e.bottom,left:e.left,right:e.right,containLabel:!1},tooltip:{show:!0,formatter:t=>s.times[t.dataIndex]?`${s.times[t.dataIndex]}
|
|
2
2
|
${t.name}:${t.data}`:`${t.name}:${t.data}`},xAxis:{max:"dataMax",axisLine:{show:!0,color:e.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:e.textColor,fontSize:e.textSize,formatter:t=>t.length>4?t.substr(0,4):t}},yAxis:{axisLabel:{formatter:t=>t.length>5?t.substr(0,5)+`
|
|
3
3
|
`+t.substr(5):t,color:e.textColor,fontSize:e.textSize},axisLine:{lineStyle:{color:e.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[{realtimeSort:e.realSort,type:"bar",barWidth:e.barWidth+"%",data:s.data,label:{show:!0,position:"right",valueAnimation:!0,color:e.textColor,fontSize:e.textSize,formatter:t=>{const c=s.times[t.dataIndex]?`
|
|
4
4
|
${s.times[t.dataIndex]}`:"";return`${t.data}${c}`}},itemStyle:{color:t=>s.colors[t.dataIndex]||"#5470c6"}}],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return e.direction==="x"?(n.yAxis.data=s.items,e.realSort&&(n.yAxis.inverse=e.sortType==="desc"),n.series[0].label.position="right",n.xAxis.splitLine.lineStyle.type="dashed"):(n.xAxis.data=s.items,e.realSort&&(n.xAxis.inverse=e.sortType==="asc"),n.series[0].label.position="top",n.yAxis.splitLine.lineStyle.type="dashed",delete n.yAxis.type),n}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:s}=this.props.conf;this.CHART.data=[],this.CHART.times=[],s.forEach(n=>{const t=this.extractDataValue(e,n.fv),c=e.datetime||"";this.CHART.data.push(t!=null?t:"--"),this.CHART.times.push(c)}),this.chartObj.setOption(this.getChartOption(),!0)}}const r=new a(o,"raceBar");r.setupLifecycle();const u=r.getStyle(),L=r.getEchartId(),m=o.conf,y=i.computed(()=>R.generateTitleStyle(o.conf.options));return(x,e)=>(i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({background:i.unref(u).bgColor,borderRadius:`${i.unref(u).radiusSize}px`})},[i.createElementVNode("div",{class:"mix-title",style:i.normalizeStyle(y.value)},i.toDisplayString(i.unref(m).caption||i.unref(m).name),5),i.createElementVNode("div",z,[i.createElementVNode("div",{class:"w-full h-full",id:i.unref(L)},null,8,H)]),i.renderSlot(x.$slots,"default",{},void 0,!0)],4))}})),j=w._export_sfc(Z,[["__scopeId","data-v-e0dcd023"]]);exports.default=j;
|
|
@@ -11,13 +11,13 @@ var C = (n, i, a) => i in n ? S(n, i, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return n;
|
|
12
12
|
}, p = (n, i) => b(n, v(i));
|
|
13
13
|
import { defineComponent as w, computed as _, openBlock as O, createElementBlock as R, normalizeStyle as g, unref as r, createElementVNode as m, toDisplayString as D, renderSlot as E, nextTick as k } from "vue";
|
|
14
|
-
import { a as $, C as M } from "./element-resize-detector-
|
|
15
|
-
import { _ as z } from "./index-
|
|
16
|
-
import { E as H } from "./EChartComponentBase-
|
|
14
|
+
import { a as $, C as M } from "./element-resize-detector-DeMhGbNi.js";
|
|
15
|
+
import { _ as z } from "./index-zPaMBZk-.js";
|
|
16
|
+
import { E as H } from "./EChartComponentBase-GBbKjtlb.js";
|
|
17
17
|
import { g as I } from "./titleStyle-BT5GlpAb.js";
|
|
18
|
-
import {
|
|
19
|
-
import { i as
|
|
20
|
-
import {
|
|
18
|
+
import { u as B, i as F, a as N } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
19
|
+
import { i as U } from "./install-CBde4hAM.js";
|
|
20
|
+
import { i as Z } from "./install-hfre7yvV.js";
|
|
21
21
|
import { i as V } from "./install-BBrAry2m.js";
|
|
22
22
|
import { i as W } from "./install-MS3ZY7fF.js";
|
|
23
23
|
const j = "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(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", P = "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(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", q = { class: "mix-body" }, G = ["id"], J = {
|
|
@@ -78,7 +78,7 @@ const j = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3cs
|
|
|
78
78
|
theme: { type: String, default: "light" }
|
|
79
79
|
},
|
|
80
80
|
setup(n) {
|
|
81
|
-
|
|
81
|
+
B([U, Z, F, V, N, W]);
|
|
82
82
|
const i = n;
|
|
83
83
|
class a extends H {
|
|
84
84
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty,w=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var f=(i,e,o)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o,m=(i,e)=>{for(var o in e||(e={}))_.call(e,o)&&f(i,o,e[o]);if(p)for(var o of p(e))O.call(e,o)&&f(i,o,e[o]);return i},g=(i,e)=>w(i,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-Mh5Dw2sd.cjs"),E=require("./EChartComponentBase-BaQpBzVC.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),Z=require("./install-DV5cEgNV.cjs"),k=require("./install-CltTFs4e.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),z=require("./install-B1IEhhn3.cjs"),T="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(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="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-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V={class:"mix-body"},A=["id"],j={DEFAULT_ICON:T,ACTIVE_ICON:F,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},h=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:j,OPTIONS:D,DATA:h,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(g(m({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){c.use([Z.install,k.install,c.install,c.install$1,z.install]);const e=i,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:a,options:l}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return h}setSocketData(n){if(!n||!this.chartObj)return;const{data:a}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],a.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",V,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,A)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-c6a7a58a"]]);exports.default=U;
|
|
1
|
+
"use strict";var y=Object.defineProperty,w=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var f=(i,e,o)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o,m=(i,e)=>{for(var o in e||(e={}))_.call(e,o)&&f(i,o,e[o]);if(p)for(var o of p(e))O.call(e,o)&&f(i,o,e[o]);return i},g=(i,e)=>w(i,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-EnNA0nIi.cjs"),E=require("./EChartComponentBase-BTqBoBn8.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),Z=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),k=require("./install-DV5cEgNV.cjs"),z=require("./install-CltTFs4e.cjs"),T="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(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="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-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V={class:"mix-body"},A=["id"],j={DEFAULT_ICON:T,ACTIVE_ICON:F,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},h=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:j,OPTIONS:D,DATA:h,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(g(m({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){c.use([k.install,z.install,c.install,c.install$1,Z.install]);const e=i,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:a,options:l}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return h}setSocketData(n){if(!n||!this.chartObj)return;const{data:a}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],a.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",V,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,A)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-c6a7a58a"]]);exports.default=U;
|
|
@@ -11,13 +11,13 @@ var m = (o, t, e) => t in o ? y(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return o;
|
|
12
12
|
}, g = (o, t) => _(o, b(t));
|
|
13
13
|
import { defineComponent as E, computed as Z, openBlock as k, createElementBlock as z, normalizeStyle as h, unref as s, createElementVNode as C, toDisplayString as F, renderSlot as N } from "vue";
|
|
14
|
-
import { _ as T } from "./index-
|
|
15
|
-
import { E as A } from "./EChartComponentBase-
|
|
14
|
+
import { _ as T } from "./index-zPaMBZk-.js";
|
|
15
|
+
import { E as A } from "./EChartComponentBase-GBbKjtlb.js";
|
|
16
16
|
import { g as D } from "./titleStyle-BT5GlpAb.js";
|
|
17
|
-
import { i as V } from "./install-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { i as B } from "./install-
|
|
17
|
+
import { i as V } from "./install-9_V0b6vf.js";
|
|
18
|
+
import { u as j, i as I, a as R } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
19
|
+
import { i as $ } from "./install-CBde4hAM.js";
|
|
20
|
+
import { i as B } from "./install-hfre7yvV.js";
|
|
21
21
|
const U = "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(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", H = "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-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", P = { class: "mix-body" }, G = ["id"], W = {
|
|
22
22
|
DEFAULT_ICON: U,
|
|
23
23
|
ACTIVE_ICON: H,
|
|
@@ -58,7 +58,7 @@ const U = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3cs
|
|
|
58
58
|
theme: { type: String, default: "light" }
|
|
59
59
|
},
|
|
60
60
|
setup(o) {
|
|
61
|
-
|
|
61
|
+
j([$, B, I, R, V]);
|
|
62
62
|
const t = o, e = ["#ffffff", "#e5e5e5"];
|
|
63
63
|
class v extends A {
|
|
64
64
|
extractStyles() {
|
|
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
|
|
|
17
17
|
import "element-plus/es/components/select/style/css";
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as Q, computed as b, reactive as q, openBlock as c, createElementBlock as v, normalizeStyle as G, createElementVNode as s, createVNode as d, withCtx as y, Fragment as R, renderList as Y, createBlock as S, normalizeClass as J, toDisplayString as K, createTextVNode as X, renderSlot as Z } from "vue";
|
|
20
|
-
import { B as ee } from "./element-resize-detector-
|
|
21
|
-
import { d as h, _ as te } from "./index-
|
|
20
|
+
import { B as ee } from "./element-resize-detector-DeMhGbNi.js";
|
|
21
|
+
import { d as h, _ as te } from "./index-zPaMBZk-.js";
|
|
22
22
|
import { A as le, D as ae } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
23
23
|
const ne = { class: "filter-bar" }, oe = { class: "filter-item" }, re = { class: "filter-item" }, ie = { class: "filter-item" }, se = { class: "time-range-btns" }, me = ["onClick"], ce = { class: "filter-item" }, ue = {
|
|
24
24
|
DEFAULT_ICON: ae,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,o,r)=>o in i?S(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,E=(i,o)=>{for(var r in o||(o={}))T.call(o,r)&&y(i,r,o[r]);if(C)for(var r of C(o))O.call(o,r)&&y(i,r,o[r]);return i},k=(i,o)=>j(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),H=require("./element-resize-detector-
|
|
1
|
+
"use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,o,r)=>o in i?S(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,E=(i,o)=>{for(var r in o||(o={}))T.call(o,r)&&y(i,r,o[r]);if(C)for(var r of C(o))O.call(o,r)&&y(i,r,o[r]);return i},k=(i,o)=>j(i,w(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),H=require("./element-resize-detector-BlMXyWIR.cjs"),g=require("./index-EnNA0nIi.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),I={class:"filter-bar"},x={class:"filter-item"},F={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},z=["onClick"],U={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},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"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const o=i;class r extends H.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,s=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:s==="custom"&&u?u:s}}}const b=new r(o,"rainfallFilterBar");b.setupLifecycle();const R=b.getStyle(),d=e.computed(()=>{var t;const l=(t=o.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(s=>s.name)}),N=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return a.region&&(l=l.filter(t=>t.region===a.region)),l.map(t=>({label:t.name,value:t.name}))}),h=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],a=e.reactive({region:(c==null?void 0:c.region)||"",point:(c==null?void 0:c.name)||"",timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{var t;const l=_.value;a.point=((t=l[0])==null?void 0:t.value)||""},D=l=>{a.timeRange=l;const t=g.dayjs(),s=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");a.dateRange=[s.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},A=()=>{a.timeRange=""},B=()=>{if(o.mode==="edit"||!a.point)return;const l=d.value.find(t=>t.name===a.point);if(!(l!=null&&l.object_id)){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:a.region,point:a.point,objectId:l.object_id,timeRange:a.timeRange,dateRange:[...a.dateRange]})},M=e.computed(()=>({backgroundColor:R.value.bgColor}));return(l,t)=>{const s=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(M.value)},[e.createElementVNode("div",I,[e.createElementVNode("div",x,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:a.region,"onUpdate:modelValue":t[0]||(t[0]=n=>a.region=n),placeholder:"全部区域",size:"small",style:{width:"110px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(s,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,n=>(e.openBlock(),e.createBlock(s,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",F,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:a.point,"onUpdate:modelValue":t[1]||(t[1]=n=>a.point=n),placeholder:"请选择",size:"small",style:{width:"120px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(s,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:a.timeRange===n.value}]),onClick:v=>D(n.value)},e.toDisplayString(n.label),11,z)),64))])]),e.createElementVNode("div",U,[e.createVNode(m,{modelValue:a.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>a.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:A},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:B},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-792b14ef"]]);exports.default=ee;
|
|
@@ -34,8 +34,8 @@ import "element-plus/es/components/checkbox/style/css";
|
|
|
34
34
|
import "element-plus/es/components/button/style/css";
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as Ee, ref as M, computed as g, watch as ae, onMounted as Ie, onUnmounted as Me, openBlock as A, createElementBlock as O, normalizeStyle as ne, createElementVNode as f, createVNode as C, withCtx as _, createTextVNode as U, Fragment as le, renderList as se, createBlock as Oe, toDisplayString as V, unref as P, normalizeClass as Te, createCommentVNode as Ye, renderSlot as Le } from "vue";
|
|
37
|
-
import { d as T, _ as Ne } from "./index-
|
|
38
|
-
import { E as Ve } from "./EChartComponentBase-
|
|
37
|
+
import { d as T, _ as Ne } from "./index-zPaMBZk-.js";
|
|
38
|
+
import { E as Ve } from "./EChartComponentBase-GBbKjtlb.js";
|
|
39
39
|
import { ArrowDown as He, Download as ze } from "@element-plus/icons-vue";
|
|
40
40
|
import { A as Re, D as Be } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
41
41
|
const $e = { class: "chart-panel" }, Fe = { class: "panel-header" }, Ue = { class: "header-right" }, Pe = { class: "indicator-selector-panel" }, qe = { class: "indicator-select-all" }, We = { class: "legend-bar" }, Ge = { class: "legend-items" }, Ze = ["onClick"], Je = { class: "legend-text" }, Ke = {
|
|
@@ -289,7 +289,7 @@ const $e = { class: "chart-panel" }, Fe = { class: "panel-header" }, Ue = { clas
|
|
|
289
289
|
c.object_id = t;
|
|
290
290
|
}), o.multiObject || (o.object_id = t);
|
|
291
291
|
try {
|
|
292
|
-
const c = yield import("./history-
|
|
292
|
+
const c = yield import("./history-DN0IVkYL.js"), k = yield new c.default().getHistoryData(a, "rainfallTimeCurve");
|
|
293
293
|
k && Array.isArray(k) && (((s = a.conf) == null ? void 0 : s.data) || []).forEach((L, he) => {
|
|
294
294
|
if (!L.fv) return;
|
|
295
295
|
const ge = L.name || L.fv, N = k[he], G = (N == null ? void 0 : N.data) || N;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ie=Object.defineProperty,ue=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?ie(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,P=(m,a)=>{for(var r in a||(a={}))fe.call(a,r)&&$(m,r,a[r]);if(U)for(var r of U(a))me.call(a,r)&&$(m,r,a[r]);return m},W=(m,a)=>ue(m,de(a));var G=(m,a,r)=>new Promise((E,g)=>{var y=b=>{try{k(r.next(b))}catch(f){g(f)}},I=b=>{try{k(r.throw(b))}catch(f){g(f)}},k=b=>b.done?E(b.value):Promise.resolve(b.value).then(y,I);k((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),S=require("./index-Mh5Dw2sd.cjs"),pe=require("./EChartComponentBase-BaQpBzVC.cjs"),Z=require("@element-plus/icons-vue"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"chart-panel"},he={class:"panel-header"},ge={class:"header-right"},be={class:"indicator-selector-panel"},Ce={class:"indicator-select-all"},ye={class:"legend-bar"},_e={class:"legend-items"},xe=["onClick"],Se={class:"legend-text"},Ee={key:0,class:"legend-page-info"},ke=["id"],Ne={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},Ve={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",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"}}},we=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],De=["name","fv","object_id","color","device"],je=["mosaic","statistics","calculate"],Ae={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Ie=20,Me={DEFAULT:Ne,OPTIONS:Ve,DATA:we,PARAMS:De,SOURCE:je,ITEMS:Ie,COMMON:Ae},Oe=t.defineComponent(W(P({},Me),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){const a=m,r=new Map,E=t.ref(""),g=t.ref(""),y=t.ref(""),I=t.computed(()=>{var o,e,l;return(e=(o=a.conf)==null?void 0:o.common)!=null&&e.object_id||(l=a.conf)!=null&&l.object_id?!0:O.value.some(d=>!!d.object_id)}),k=t.computed(()=>I.value||!!E.value);class b extends pe.EChartComponentBase{extractStyles(){var n,c,i,s,u,p,_;const e=(n=this.props.conf)==null?void 0:n.options,l=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",d=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",gridColor:((_=e==null?void 0:e.gridColor)==null?void 0:_.value)||"#f0f0f0",linkChannel:l==="custom"&&d?d:l}}getChartOption(){return L(this.Style.value)}setSocketData(e){var n;if(!e)return;const l=e.datetime?e.datetime.split(".")[0]:S.dayjs().format("YYYY/MM/DD HH:mm");(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(c=>{if(c.device){const p=this.extractDataValue(e,c.device);p!=null&&(g.value=String(p))}if(!c.fv)return;const i=this.extractDataValue(e,c.fv);if(i==null)return;const s=c.name||c.fv,u=r.get(s);u?(u.times.push(l),u.values.push(parseFloat(i)),u.times.length>200&&(u.times.shift(),u.values.shift())):r.set(s,{times:[l],values:[parseFloat(i)]})}),this.chartObj&&this.chartObj.setOption(L(this.Style.value),!1)}onLinkEvent(e){le(e)}}const f=new b(a,"rainfallTimeCurve");f.setupLifecycle();const M=f.getStyle(),K=f.getEchartId(),O=t.computed(()=>{var o;return((o=a.conf)==null?void 0:o.data)||[]}),h=t.computed(()=>{const o=new Set;return O.value.filter(e=>e.name&&!o.has(e.name)?(o.add(e.name),!0):!1)}),v=t.ref([]);t.watch(h,o=>{o.length>0&&v.value.length===0&&(v.value=o.map(e=>e.fv||e.name))},{immediate:!0});const B=t.computed({get:()=>h.value.length>0&&v.value.length===h.value.length,set:()=>{}}),Q=t.computed(()=>{const o=v.value.length;return o>0&&o<h.value.length}),X=t.computed(()=>{if(v.value.length===0)return"选择监测指标";if(v.value.length===h.value.length)return"全部指标已选";const e=h.value.filter(l=>v.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),ee=o=>{v.value=o?h.value.map(e=>e.fv||e.name):[],N()},C=t.ref(new Set),D=t.computed(()=>h.value.filter(o=>v.value.includes(o.fv||o.name)).map(o=>({name:g.value?`${g.value}-${o.name}`:o.name,color:o.color||"#5470c6",visible:!C.value.has(o.name)}))),te=t.computed(()=>`${D.value.filter(o=>o.visible).length}/${D.value.length}`),oe=o=>{const e=o.name.includes("-")?o.name.split("-").slice(1).join("-"):o.name;C.value.has(e)?C.value.delete(e):C.value.add(e),C.value=new Set(C.value),N()},ne=t.computed(()=>({backgroundColor:M.value.bgColor,color:M.value.textColor})),T=()=>{r.clear();const o=S.dayjs();O.value.forEach((e,l)=>{const d=[],n=[],c=[2800,3200],i=[200,300],s=c[l%2]||3e3,u=i[l%2]||200;for(let p=0;p<100;p++)d.push(o.subtract((100-p)*15,"minute").format("YYYY/MM/DD HH:mm")),n.push(+(s+(Math.random()-.5)*u+Math.sin(p/10)*u*.3).toFixed(2));r.set(e.name,{times:d,values:n})})},L=o=>{if(a.mode!=="edit"){if(!k.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(r.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,n]of r)n.times.length>e.length&&(e=n.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(n,c)=>S.dayjs().subtract((50-c)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},d=h.value.filter(n=>v.value.includes(n.fv||n.name)).map(n=>{const c=g.value?`${g.value}-${n.name}`:n.name;l[c]=!C.value.has(n.name);const i=r.get(n.name);return{name:c,type:"line",smooth:!0,showSymbol:!1,data:(i==null?void 0:i.values)||[],lineStyle:{color:n.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:n.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:15,interval:"auto",formatter:n=>{var c;if(n&&n.length>6){const i=n.split(" ");return(((c=i[0])==null?void 0:c.split("/").slice(1).join("/"))||"")+(i[1]?" "+i[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:d}},N=()=>{const o=f.getChartInstance();o&&o.setOption(L(M.value),!0)},ae=()=>{const o=f.getChartInstance();if(!o)return;const e=document.createElement("a");e.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${S.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},le=o=>{const{payload:e}=o;if(!e)return;if(e.type==="filter"){if(e.point&&(g.value=String(e.point)),e.objectId){const d=y.value;y.value=String(e.objectId),E.value=String(e.objectId),d!==y.value&&q(y.value)}(a.mode==="edit"||!e.objectId)&&(T(),N());return}const l=e.objectId||e.object_id;l&&(E.value=String(l),q(l))},q=o=>G(null,null,function*(){var i,s;if(!o||a.mode!=="preview")return;r.clear();const e=(i=f.session)==null?void 0:i.value;if(!e)return;const l=a.conf.id;e.componentRequests&&e.componentRequests.delete(l);const{data:d,common:n}=a.conf;Array.isArray(d)&&d.forEach(u=>{u.object_id=o}),n.multiObject||(n.object_id=o);try{const u=yield Promise.resolve().then(()=>require("./history-DAmBl4_5.cjs")),_=yield new u.default().getHistoryData(a,"rainfallTimeCurve");_&&Array.isArray(_)&&(((s=a.conf)==null?void 0:s.data)||[]).forEach((j,re)=>{if(!j.fv)return;const se=j.name||j.fv,A=_[re],H=(A==null?void 0:A.data)||A;if(!Array.isArray(H))return;const ce=[...H].sort((x,V)=>new Date(x.time||x.datetime||"").getTime()-new Date(V.time||V.datetime||"").getTime()),Y=[],z=[];ce.forEach(x=>{const V=x.time||x.datetime,F=x[j.fv];if(V&&F!=null){const R=parseFloat(F);isNaN(R)||(Y.push(S.dayjs(V).format("YYYY/MM/DD HH:mm")),z.push(R))}}),Y.length>0&&r.set(se,{times:Y,values:z})}),console.log("[降雨时序曲线] 历史数据加载完成")}catch(u){console.warn("[降雨时序曲线] 历史数据获取失败:",u)}N(),e.registerComponent({id:l,request:null,onUpdate:(u,p)=>{u==="realtime"&&f.setSocketData(p)}});const c=f.getSource();f.subscribeBySource(c,o)});return t.onMounted(()=>{a.mode==="edit"&&T(),setTimeout(()=>{var o;return(o=f.getChartInstance())==null?void 0:o.resize()},200)}),t.onUnmounted(()=>{f.cleanup()}),t.watch(()=>a.conf,()=>{f.init(),a.mode==="edit"&&T()},{deep:!0}),(o,e)=>{const l=w.ElIcon,d=w.ElButton,n=w.ElCheckbox,c=w.ElCheckboxGroup,i=w.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ne.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",he,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",ge,[t.createVNode(i,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(d,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(X.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",be,[t.createElementVNode("div",Ce,[t.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=s=>B.value=s),indeterminate:Q.value,onChange:ee},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=s=>v.value=s),onChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,s=>(t.openBlock(),t.createBlock(n,{key:s.fv,label:s.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(d,{size:"small",onClick:ae},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Z.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",ye,[t.createElementVNode("div",_e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("span",{key:s.name,class:t.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:u=>oe(s)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:s.visible?s.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Se,t.toDisplayString(s.name),1)],10,xe))),128)),D.value.length>8?(t.openBlock(),t.createElementBlock("span",Ee,t.toDisplayString(te.value),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{id:t.unref(K),class:"chart-container"},null,8,ke)]),t.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Te=S._export_sfc(Oe,[["__scopeId","data-v-7b0c5991"]]);exports.default=Te;
|
|
1
|
+
"use strict";var ie=Object.defineProperty,ue=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?ie(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,P=(m,a)=>{for(var r in a||(a={}))fe.call(a,r)&&$(m,r,a[r]);if(U)for(var r of U(a))me.call(a,r)&&$(m,r,a[r]);return m},W=(m,a)=>ue(m,de(a));var G=(m,a,r)=>new Promise((E,g)=>{var y=b=>{try{k(r.next(b))}catch(f){g(f)}},I=b=>{try{k(r.throw(b))}catch(f){g(f)}},k=b=>b.done?E(b.value):Promise.resolve(b.value).then(y,I);k((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),S=require("./index-EnNA0nIi.cjs"),pe=require("./EChartComponentBase-BTqBoBn8.cjs"),Z=require("@element-plus/icons-vue"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"chart-panel"},he={class:"panel-header"},ge={class:"header-right"},be={class:"indicator-selector-panel"},Ce={class:"indicator-select-all"},ye={class:"legend-bar"},_e={class:"legend-items"},xe=["onClick"],Se={class:"legend-text"},Ee={key:0,class:"legend-page-info"},ke=["id"],Ne={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"降雨指标时序曲线",NAME_EN:"Rainfall Time Curve",ORDER:3},Ve={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},gridColor:{value:"#f0f0f0",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"}}},we=[{name:"实时降水量(mm)",fv:"",object_id:"",color:"#5470c6",device:""},{name:"累计降水量(mm)",fv:"",object_id:"",color:"#ee6666",device:""}],De=["name","fv","object_id","color","device"],je=["mosaic","statistics","calculate"],Ae={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Ie=20,Me={DEFAULT:Ne,OPTIONS:Ve,DATA:we,PARAMS:De,SOURCE:je,ITEMS:Ie,COMMON:Ae},Oe=t.defineComponent(W(P({},Me),{__name:"rainfallTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){const a=m,r=new Map,E=t.ref(""),g=t.ref(""),y=t.ref(""),I=t.computed(()=>{var o,e,l;return(e=(o=a.conf)==null?void 0:o.common)!=null&&e.object_id||(l=a.conf)!=null&&l.object_id?!0:O.value.some(d=>!!d.object_id)}),k=t.computed(()=>I.value||!!E.value);class b extends pe.EChartComponentBase{extractStyles(){var n,c,i,s,u,p,_;const e=(n=this.props.conf)==null?void 0:n.options,l=((c=e==null?void 0:e.linkChannel)==null?void 0:c.value)||"rainfall",d=((i=e==null?void 0:e.customChannel)==null?void 0:i.value)||"";return{bgColor:((s=e==null?void 0:e.bgColor)==null?void 0:s.value)||"#f5f7fa",panelBgColor:((u=e==null?void 0:e.panelBgColor)==null?void 0:u.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",gridColor:((_=e==null?void 0:e.gridColor)==null?void 0:_.value)||"#f0f0f0",linkChannel:l==="custom"&&d?d:l}}getChartOption(){return L(this.Style.value)}setSocketData(e){var n;if(!e)return;const l=e.datetime?e.datetime.split(".")[0]:S.dayjs().format("YYYY/MM/DD HH:mm");(((n=this.props.conf)==null?void 0:n.data)||[]).forEach(c=>{if(c.device){const p=this.extractDataValue(e,c.device);p!=null&&(g.value=String(p))}if(!c.fv)return;const i=this.extractDataValue(e,c.fv);if(i==null)return;const s=c.name||c.fv,u=r.get(s);u?(u.times.push(l),u.values.push(parseFloat(i)),u.times.length>200&&(u.times.shift(),u.values.shift())):r.set(s,{times:[l],values:[parseFloat(i)]})}),this.chartObj&&this.chartObj.setOption(L(this.Style.value),!1)}onLinkEvent(e){le(e)}}const f=new b(a,"rainfallTimeCurve");f.setupLifecycle();const M=f.getStyle(),K=f.getEchartId(),O=t.computed(()=>{var o;return((o=a.conf)==null?void 0:o.data)||[]}),h=t.computed(()=>{const o=new Set;return O.value.filter(e=>e.name&&!o.has(e.name)?(o.add(e.name),!0):!1)}),v=t.ref([]);t.watch(h,o=>{o.length>0&&v.value.length===0&&(v.value=o.map(e=>e.fv||e.name))},{immediate:!0});const B=t.computed({get:()=>h.value.length>0&&v.value.length===h.value.length,set:()=>{}}),Q=t.computed(()=>{const o=v.value.length;return o>0&&o<h.value.length}),X=t.computed(()=>{if(v.value.length===0)return"选择监测指标";if(v.value.length===h.value.length)return"全部指标已选";const e=h.value.filter(l=>v.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),ee=o=>{v.value=o?h.value.map(e=>e.fv||e.name):[],N()},C=t.ref(new Set),D=t.computed(()=>h.value.filter(o=>v.value.includes(o.fv||o.name)).map(o=>({name:g.value?`${g.value}-${o.name}`:o.name,color:o.color||"#5470c6",visible:!C.value.has(o.name)}))),te=t.computed(()=>`${D.value.filter(o=>o.visible).length}/${D.value.length}`),oe=o=>{const e=o.name.includes("-")?o.name.split("-").slice(1).join("-"):o.name;C.value.has(e)?C.value.delete(e):C.value.add(e),C.value=new Set(C.value),N()},ne=t.computed(()=>({backgroundColor:M.value.bgColor,color:M.value.textColor})),T=()=>{r.clear();const o=S.dayjs();O.value.forEach((e,l)=>{const d=[],n=[],c=[2800,3200],i=[200,300],s=c[l%2]||3e3,u=i[l%2]||200;for(let p=0;p<100;p++)d.push(o.subtract((100-p)*15,"minute").format("YYYY/MM/DD HH:mm")),n.push(+(s+(Math.random()-.5)*u+Math.sin(p/10)*u*.3).toFixed(2));r.set(e.name,{times:d,values:n})})},L=o=>{if(a.mode!=="edit"){if(!k.value)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};if(r.size===0)return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]}}let e=[];for(const[,n]of r)n.times.length>e.length&&(e=n.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(n,c)=>S.dayjs().subtract((50-c)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},d=h.value.filter(n=>v.value.includes(n.fv||n.name)).map(n=>{const c=g.value?`${g.value}-${n.name}`:n.name;l[c]=!C.value.has(n.name);const i=r.get(n.name);return{name:c,type:"line",smooth:!0,showSymbol:!1,data:(i==null?void 0:i.values)||[],lineStyle:{color:n.color||"#5470c6",width:2.5,type:"solid"},itemStyle:{color:n.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:o.gridColor}},axisLabel:{color:o.textColor,fontSize:11,rotate:15,interval:"auto",formatter:n=>{var c;if(n&&n.length>6){const i=n.split(" ");return(((c=i[0])==null?void 0:c.split("/").slice(1).join("/"))||"")+(i[1]?" "+i[1]:"")}return n}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:"监测数值",scale:!0,axisLine:{show:!1},axisLabel:{color:o.textColor,fontSize:11},splitLine:{lineStyle:{color:o.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:d}},N=()=>{const o=f.getChartInstance();o&&o.setOption(L(M.value),!0)},ae=()=>{const o=f.getChartInstance();if(!o)return;const e=document.createElement("a");e.href=o.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`降雨指标时序曲线_${S.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},le=o=>{const{payload:e}=o;if(!e)return;if(e.type==="filter"){if(e.point&&(g.value=String(e.point)),e.objectId){const d=y.value;y.value=String(e.objectId),E.value=String(e.objectId),d!==y.value&&q(y.value)}(a.mode==="edit"||!e.objectId)&&(T(),N());return}const l=e.objectId||e.object_id;l&&(E.value=String(l),q(l))},q=o=>G(null,null,function*(){var i,s;if(!o||a.mode!=="preview")return;r.clear();const e=(i=f.session)==null?void 0:i.value;if(!e)return;const l=a.conf.id;e.componentRequests&&e.componentRequests.delete(l);const{data:d,common:n}=a.conf;Array.isArray(d)&&d.forEach(u=>{u.object_id=o}),n.multiObject||(n.object_id=o);try{const u=yield Promise.resolve().then(()=>require("./history-C4gipwnp.cjs")),_=yield new u.default().getHistoryData(a,"rainfallTimeCurve");_&&Array.isArray(_)&&(((s=a.conf)==null?void 0:s.data)||[]).forEach((j,re)=>{if(!j.fv)return;const se=j.name||j.fv,A=_[re],H=(A==null?void 0:A.data)||A;if(!Array.isArray(H))return;const ce=[...H].sort((x,V)=>new Date(x.time||x.datetime||"").getTime()-new Date(V.time||V.datetime||"").getTime()),Y=[],z=[];ce.forEach(x=>{const V=x.time||x.datetime,F=x[j.fv];if(V&&F!=null){const R=parseFloat(F);isNaN(R)||(Y.push(S.dayjs(V).format("YYYY/MM/DD HH:mm")),z.push(R))}}),Y.length>0&&r.set(se,{times:Y,values:z})}),console.log("[降雨时序曲线] 历史数据加载完成")}catch(u){console.warn("[降雨时序曲线] 历史数据获取失败:",u)}N(),e.registerComponent({id:l,request:null,onUpdate:(u,p)=>{u==="realtime"&&f.setSocketData(p)}});const c=f.getSource();f.subscribeBySource(c,o)});return t.onMounted(()=>{a.mode==="edit"&&T(),setTimeout(()=>{var o;return(o=f.getChartInstance())==null?void 0:o.resize()},200)}),t.onUnmounted(()=>{f.cleanup()}),t.watch(()=>a.conf,()=>{f.init(),a.mode==="edit"&&T()},{deep:!0}),(o,e)=>{const l=w.ElIcon,d=w.ElButton,n=w.ElCheckbox,c=w.ElCheckboxGroup,i=w.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"rainfall-time-curve",style:t.normalizeStyle(ne.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",he,[e[4]||(e[4]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("span",{class:"indicator-dot"}),t.createElementVNode("span",{class:"panel-title"},"📊 指标时序演变曲线")],-1)),t.createElementVNode("div",ge,[t.createVNode(i,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(d,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(X.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(Z.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",be,[t.createElementVNode("div",Ce,[t.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":e[0]||(e[0]=s=>B.value=s),indeterminate:Q.value,onChange:ee},{default:t.withCtx(()=>[...e[2]||(e[2]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=s=>v.value=s),onChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,s=>(t.openBlock(),t.createBlock(n,{key:s.fv,label:s.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(d,{size:"small",onClick:ae},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(Z.Download))]),_:1}),e[3]||(e[3]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",ye,[t.createElementVNode("div",_e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("span",{key:s.name,class:t.normalizeClass(["legend-item",{disabled:!s.visible}]),onClick:u=>oe(s)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:s.visible?s.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",Se,t.toDisplayString(s.name),1)],10,xe))),128)),D.value.length>8?(t.openBlock(),t.createElementBlock("span",Ee,t.toDisplayString(te.value),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{id:t.unref(K),class:"chart-container"},null,8,ke)]),t.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Te=S._export_sfc(Oe,[["__scopeId","data-v-7b0c5991"]]);exports.default=Te;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var H=Object.defineProperty,P=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var q=(c,r,l)=>r in c?H(c,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[r]=l,z=(c,r)=>{for(var l in r||(r={}))B.call(r,l)&&q(c,l,r[l]);if(E)for(var l of E(r))j.call(r,l)&&q(c,l,r[l]);return c},V=(c,r)=>P(c,F(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),f=require("./element-resize-detector-
|
|
1
|
+
"use strict";var H=Object.defineProperty,P=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var q=(c,r,l)=>r in c?H(c,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[r]=l,z=(c,r)=>{for(var l in r||(r={}))B.call(r,l)&&q(c,l,r[l]);if(E)for(var l of E(r))j.call(r,l)&&q(c,l,r[l]);return c},V=(c,r)=>P(c,F(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),f=require("./element-resize-detector-BlMXyWIR.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-dzc-icon-h5wOUHF0.cjs"),Z=require("./installMarkArea-CjyaJPLE.cjs"),C=require("./installCanvasRenderer-CyhM1Qpl.cjs"),J=require("./install-C8buXQPI.cjs"),K=require("./install-CIT6k8Ga.cjs"),Q=require("./install-z6wShIZI.cjs"),W=require("./install-CYwVETsi.cjs"),X=require("./universalTransition-CIN_u2Cu.cjs"),L=require("./echarts-BB8O2KSA.cjs"),Y=require("./index-EnNA0nIi.cjs"),ee={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"区间曲线",NAME_EN:"Range Line",ORDER:6},te={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},N=[{name:"参数一",项目编号:"",object_id:""}],ie=["name","项目编号","object_id"],ne=["index","deviation","stability","balance","increment","risk","eigen"],oe={useAlias:!1,null:{type:"0",value:""},source:"index"},re=1,ae={DEFAULT:ee,OPTIONS:te,DATA:N,PARAMS:ie,SOURCE:ne,ITEMS:re,COMMON:oe},le=i.defineComponent(V(z({},ae),{__name:"rangeLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){C.use([C.install,J.install,K.install,Z.install,Q.install,W.install,C.install$1,X.installUniversalTransition]);const r=i.ref(i.inject("session",null)),l="rangelin_"+Math.random().toString(16).substring(4,12),R=["rgba(255, 173, 177, 0.2)","rgba(208, 201, 116, 0.2)","rgba(28, 118, 140, 1)","rgba(95, 28, 140, 1)","rgba(41, 196, 21, 1)"],v=["rgb(255, 173, 177)","rgb(208, 201, 116)","rgb(28, 118, 140)","rgb(95, 28, 140)","rgb(41, 196, 21)"];let s=null,y=null;const o=c;let a={area:[],pieces:[],data:[],times:[]};class I extends f.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),points:this.getOptionValue("points",30),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:N,o.mode==="edit"&&w(),i.nextTick(()=>{let e=document.querySelector("#"+l);e&&(s||(s=L.init(e),y=f.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(e,()=>s==null?void 0:s.resize())),s.setOption(_(),!0))})}onPreview(){O.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+l)),s&&s.clear(),s&&L.dispose(s),s=null,O.unregister()}}const A=new I(o,"rangeLin");A.setupLifecycle();const p=A.getStyle(),M=i.computed(()=>G.generateTitleStyle(o.conf.options)),_=()=>{var S,m,b,n;const{data:t,options:e}=o.conf;let d=t[0]||{};var g={tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:a.times,axisLabel:{formatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(u))return u;let x=u.split(" ");return x[0]+`
|
|
2
2
|
`+x[1]},color:p.value.textColor,fontSize:p.value.textSize}},yAxis:{type:"value",axisPointer:{snap:!0}},grid:{top:((S=e==null?void 0:e.top)==null?void 0:S.value)||30,bottom:((m=e==null?void 0:e.bottom)==null?void 0:m.value)||40,left:((b=e==null?void 0:e.left)==null?void 0:b.value)||40,right:((n=e==null?void 0:e.right)==null?void 0:n.value)||20,containLabel:!0},visualMap:{show:!1,dimension:0,pieces:a.pieces},dataZoom:[{type:"slider",start:80,end:100,height:15,bottom:15,borderColor:"#e5e5e5",textStyle:{color:p.value.textColor},labelFormatter:function(u,h){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(h))return h;let x=h.split(" ");return x[0]+`
|
|
3
3
|
`+x[1]}},{type:"inside"}],series:[{name:(d==null?void 0:d.name)||"",type:"line",smooth:p.value.isSmooth,data:a.data,markArea:{data:a.area}}]};return g},w=()=>{var d;const t=f.hasDataSource(o.conf);let e=(d=p.value.points)!=null?d:30;a.area=[[{name:"区间一",xAxis:f.getxAxisDataTime(e,o.mode,t)[e-5]},{xAxis:f.getxAxisDataTime(e,o.mode,t)[e-10]}]],a.data=f.getRandomArr({num:e,max:200,min:0,mode:o.mode,hasDataSource:t}),a.times=f.getxAxisDataTime(e,o.mode,t),a.pieces=[{lte:e-10,color:p.value.lineColor},{gt:e-10,lte:e-5,color:v[0]},{gt:e-5,color:p.value.lineColor}]},$=(t,e)=>{let d=Array.from({length:t},(n,u)=>u),g=[];for(let n in e)g.push(...e[n]);let S=new Array(t).fill(!1);for(let[n,u]of g)for(let h=n;h<u;h++)S[h]=!0;return d.filter(n=>!S[n]).reduce((n,u)=>(n.length===0||u-n[n.length-1][1]>1?n.push([u,u]):n[n.length-1][1]=u,n),[])},U=t=>{if(!f.hasDataSource(o.conf))return;a.times=t.times,a.data=t.data,a.area=[],a.pieces=[];let e=0;for(let g in t.range)t.range[g]&&t.range[g].forEach(m=>{a.pieces.push({gte:m[0],lte:m[1],color:v[e]}),a.area.push([{name:g,xAxis:m[0],itemStyle:{color:R[e]}},{xAxis:t.times[m[1]]}])}),e++;let d=$(t.data.length,t.range);d.length&&d.forEach(g=>{a.pieces.push({gte:g[0]-1,lte:g[1]+1,color:p.value.lineColor})}),s==null||s.setOption(_(),!0)},D=t=>{f.hasDataSource(o.conf)},O={preview:()=>f.preview(o,r.value,U,D,"rangeLin"),unregister:()=>f.unregister(o,r.value)};i.watchEffect(()=>{o.conf.socketData&&D(o.conf.socketData)});const T=o.conf;return(t,e)=>(i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({background:i.unref(p).bgColor,borderRadius:`${i.unref(p).radiusSize}px`})},[i.createElementVNode("div",{class:"mix-title",style:i.normalizeStyle(M.value)},i.toDisplayString(i.unref(T).caption||i.unref(T).name),5),i.createElementVNode("div",{class:"mix-body"},[i.createElementVNode("div",{class:"w-full h-full",id:l})]),i.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),se=Y._export_sfc(le,[["__scopeId","data-v-0b726b56"]]);exports.default=se;
|
|
@@ -11,18 +11,18 @@ var z = (u, a, n) => a in u ? B(u, a, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return u;
|
|
12
12
|
}, V = (u, a) => P(u, F(a));
|
|
13
13
|
import { defineComponent as G, ref as Z, inject as J, computed as K, watchEffect as Q, openBlock as W, createElementBlock as X, normalizeStyle as w, unref as S, createElementVNode as b, toDisplayString as Y, renderSlot as ee, nextTick as te } from "vue";
|
|
14
|
-
import { B as oe, e as ie, h as C, f as v, a as ae, u as re, p as ne } from "./element-resize-detector-
|
|
14
|
+
import { B as oe, e as ie, h as C, f as v, a as ae, u as re, p as ne } from "./element-resize-detector-DeMhGbNi.js";
|
|
15
15
|
import { g as se } from "./titleStyle-BT5GlpAb.js";
|
|
16
16
|
import { A as le, D as ue } from "./ele-dzc-icon-D6eVpaHp.js";
|
|
17
|
-
import {
|
|
18
|
-
import { i as me } from "./
|
|
19
|
-
import { i as fe } from "./install-
|
|
20
|
-
import { i as ge } from "./
|
|
17
|
+
import { i as de } from "./installMarkArea-Cdg4iciO.js";
|
|
18
|
+
import { u as ce, i as pe, a as me } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
19
|
+
import { i as fe } from "./install-BBrAry2m.js";
|
|
20
|
+
import { i as ge } from "./install-B0x4IqQr.js";
|
|
21
21
|
import { i as he } from "./install-Cx1i_m0k.js";
|
|
22
22
|
import { i as xe } from "./install-8XfFtnlL.js";
|
|
23
23
|
import { i as Se } from "./universalTransition-Bv7ibBUh.js";
|
|
24
24
|
import { i as ye, d as be } from "./echarts-BVht3HHb.js";
|
|
25
|
-
import { _ as Ce } from "./index-
|
|
25
|
+
import { _ as Ce } from "./index-zPaMBZk-.js";
|
|
26
26
|
const ve = {
|
|
27
27
|
DEFAULT_ICON: ue,
|
|
28
28
|
ACTIVE_ICON: le,
|
|
@@ -59,7 +59,7 @@ const ve = {
|
|
|
59
59
|
theme: { type: String, default: "light" }
|
|
60
60
|
},
|
|
61
61
|
setup(u) {
|
|
62
|
-
|
|
62
|
+
ce([pe, fe, ge, de, he, xe, me, Se]);
|
|
63
63
|
const a = Z(J("session", null)), n = "rangelin_" + Math.random().toString(16).substring(4, 12), $ = ["rgba(255, 173, 177, 0.2)", "rgba(208, 201, 116, 0.2)", "rgba(28, 118, 140, 1)", "rgba(95, 28, 140, 1)", "rgba(41, 196, 21, 1)"], _ = ["rgb(255, 173, 177)", "rgb(208, 201, 116)", "rgb(28, 118, 140)", "rgb(95, 28, 140)", "rgb(41, 196, 21)"];
|
|
64
64
|
let s = null, x = null;
|
|
65
65
|
const i = u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,w=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var v=(c,s,t)=>s in c?$(c,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[s]=t,x=(c,s)=>{for(var t in s||(s={}))T.call(s,t)&&v(c,t,s[t]);if(m)for(var t of m(s))q.call(s,t)&&v(c,t,s[t]);return c},O=(c,s)=>w(c,S(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./element-resize-detector-
|
|
1
|
+
"use strict";var $=Object.defineProperty,w=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var v=(c,s,t)=>s in c?$(c,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[s]=t,x=(c,s)=>{for(var t in s||(s={}))T.call(s,t)&&v(c,t,s[t]);if(m)for(var t of m(s))q.call(s,t)&&v(c,t,s[t]);return c},O=(c,s)=>w(c,S(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./element-resize-detector-BlMXyWIR.cjs");function M(c,s,t){var j,y,g,h,n;const{common:d,data:_,options:i}=c,o=d.source||"mosaic";try{const l={action:"subscribe",component_name:c.type,items:Number(((j=i==null?void 0:i.points)==null?void 0:j.value)||c.points)||1,body:{},actionid:c.id},f=new Map;let b="";if(!d.multiObject||d.hideMultiObject){const e=d.object_id!==void 0&&d.object_id!==""?d:_[0]||{};b=F.getObjectId(e,d.useAlias,s)}let u=[];if(t==="alertTable"&&((y=i==null?void 0:i.columns)!=null&&y.value)&&(u=i.columns.value.filter(e=>e.useFv).map(e=>e.key)),_.forEach(e=>{d.multiObject?e.object_id=F.getObjectId(e,d.useAlias,s):e.object_id=b;const a=`${e.object_id}_${o}`;if(f.has(a))if(["progressBar","progressCircle"].includes(t)&&e.maxType==="fv")f.get(a).id.push(e.fv,e.max);else{let r=e.fv;t==="cmc"&&(r=e.item_fv),["ctrSwitch"].includes(t)&&(r=e.status_fv),r&&f.get(a).id.push(r)}else{let r=[];t==="alertTable"&&u.length>0?r=u:e.fv&&(r=[e.fv]),t==="evn"&&(r=[e.fv,e.status_fv]),["progressBar","progressCircle"].includes(t)&&e.maxType==="fv"&&(r=[e.fv,e.max]),t==="cmc"&&(r=[e.item_fv]),["ctrSwitch"].includes(t)&&(r=[e.status_fv]),r.length>0&&f.set(a,O(x({},e),{id:r}))}}),t==="sankey"){b=d.object_id||"";const e=`${b}_${o}`;f.has(e)?f.get(e).id.push(d.originFv):f.set(e,{object_id:b,id:[d.originFv]})}if(t==="scd"){b=((g=i==null?void 0:i.object)==null?void 0:g.value)||"";const e=`${b}_${o}`;f.has(e)?f.get(e).id.push((n=i==null?void 0:i.statusFv)==null?void 0:n.value):f.set(e,{object_id:b,id:[(h=i==null?void 0:i.statusFv)==null?void 0:h.value]})}for(const[e,a]of f)l.body[o]||(l.body[o]=[]),l.body[o].push({object_id:a.object_id,key:a.id});return l}catch(l){throw console.error("格式化请求时出错:",l),new Error("请求格式化失败")}}exports.formatRequest=M;
|
|
@@ -10,7 +10,7 @@ var v = (c, t, i) => t in c ? w(c, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
C.call(t, i) && v(c, i, t[i]);
|
|
11
11
|
return c;
|
|
12
12
|
}, F = (c, t) => O(c, T(t));
|
|
13
|
-
import { d as $ } from "./element-resize-detector-
|
|
13
|
+
import { d as $ } from "./element-resize-detector-DeMhGbNi.js";
|
|
14
14
|
function M(c, t, i) {
|
|
15
15
|
var h, j, y, g, m;
|
|
16
16
|
const { common: d, data: u, options: s } = c, o = d.source || "mosaic";
|
|
@@ -27,8 +27,8 @@ var I = (f, i, s) => new Promise((t, v) => {
|
|
|
27
27
|
_((s = s.apply(f, i)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as k, reactive as j, computed as F, watchEffect as P, openBlock as $, createElementBlock as L, normalizeStyle as y, unref as d, createElementVNode as p, toDisplayString as D, renderSlot as U } from "vue";
|
|
30
|
-
import { B } from "./element-resize-detector-
|
|
31
|
-
import { d as h, _ as q } from "./index-
|
|
30
|
+
import { B } from "./element-resize-detector-DeMhGbNi.js";
|
|
31
|
+
import { d as h, _ as q } from "./index-zPaMBZk-.js";
|
|
32
32
|
import { g as G } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import { A as J, D as K } from "./ele-rtn-icon-CqCKSHIw.js";
|
|
34
34
|
const Q = { class: "mix-body" }, W = { class: "mix-footer" }, X = { class: "time-info" }, Z = {
|
|
@@ -120,7 +120,7 @@ const Q = { class: "mix-body" }, W = { class: "mix-footer" }, X = { class: "time
|
|
|
120
120
|
return {
|
|
121
121
|
preview: () => I(this, null, function* () {
|
|
122
122
|
try {
|
|
123
|
-
const a = yield new (yield import("./history-
|
|
123
|
+
const a = yield new (yield import("./history-DN0IVkYL.js")).default().getHistoryData(this.props, this.componentType);
|
|
124
124
|
this.setHistoryData(a);
|
|
125
125
|
} catch (e) {
|
|
126
126
|
console.error("[Retainer1] 获取历史数据失败:", e);
|