mixdashboards 1.0.77 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseComponent-DtvXBQYf.js → BaseComponent-Dwhb9Mde.js} +3 -3
- package/dist/{BaseComponent-B5ivgb3E.cjs → BaseComponent-bzb58Hhs.cjs} +1 -1
- package/dist/{EChartComponentBase-c7NzErOu.js → EChartComponentBase-BmS2KONN.js} +2 -2
- package/dist/{EChartComponentBase-ChoVZ7wg.cjs → EChartComponentBase-CMN_pOMr.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-DG23L1EJ.cjs → EmergencyPlanPanel-CVusdpDo.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-COfHeuTK.js → EmergencyPlanPanel-FtvC-aXY.js} +1 -1
- package/dist/{HistoryPlanDialog-d5ocUKAB.cjs → HistoryPlanDialog-CrYylrTC.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CItsTCsk.js → HistoryPlanDialog-DliuSi0p.js} +1 -1
- package/dist/{MonitoringMap-H5AOAU8m.cjs → MonitoringMap-CBnv001f.cjs} +1 -1
- package/dist/{MonitoringMap-CGdqpp4N.js → MonitoringMap-DB3R5nAJ.js} +2 -2
- package/dist/{UniverSheet-tSAkLkuy.js → UniverSheet-DFyIjurx.js} +2 -2
- package/dist/{UniverSheet-BAwHvLEU.cjs → UniverSheet-jy9kOyPN.cjs} +1 -1
- package/dist/{accelerationChart-D69FGgF0.cjs → accelerationChart-Ceo371ch.cjs} +1 -1
- package/dist/{accelerationChart-4RM-T97n.js → accelerationChart-Q_Q_QlU7.js} +2 -2
- package/dist/{actionItem-XXesGERk.js → actionItem-BzMI_4-S.js} +2 -2
- package/dist/{actionItem-nkkG4T8t.cjs → actionItem-DB74CPi2.cjs} +1 -1
- package/dist/{alarmLevelChart-Cg4-8uhy.js → alarmLevelChart-Bp3SLCMe.js} +2 -2
- package/dist/{alarmLevelChart-DtzJLIO8.cjs → alarmLevelChart-CxmiBIKh.cjs} +1 -1
- package/dist/{alertTable-cpTXAjVG.cjs → alertTable-B1w_i0VB.cjs} +1 -1
- package/dist/{alertTable-_7uxXdg1.js → alertTable-DXzTm7mA.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-COnsSHH1.cjs → aliasObjectSelectorDemo-CRuq8zju.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-bgchdBQ0.js → aliasObjectSelectorDemo-Dfanalux.js} +1 -1
- package/dist/{annualRainfallChart-D5byp5kM.js → annualRainfallChart-D4Rhc84p.js} +2 -2
- package/dist/{annualRainfallChart-BRRuAOLJ.cjs → annualRainfallChart-DEeyac7q.cjs} +1 -1
- package/dist/{aqi-BkNZxokM.js → aqi-BzCTxj0q.js} +36 -28
- package/dist/{aqi-CbM96i-K.cjs → aqi-CBknBfTF.cjs} +2 -2
- package/dist/{aqiIndass-CC_FnBlK.js → aqiIndass-BJGsJsmz.js} +2 -2
- package/dist/{aqiIndass-UP1Ez_qA.cjs → aqiIndass-CUs24FxP.cjs} +1 -1
- package/dist/{areaDeformCurve-97gwWmiv.cjs → areaDeformCurve-B8VGdoKK.cjs} +1 -1
- package/dist/{areaDeformCurve-CoTcTIJx.js → areaDeformCurve-bSAkB3Pt.js} +2 -2
- package/dist/{arrayCard-lwGyTUyK.js → arrayCard-BkD5sytz.js} +2 -2
- package/dist/{arrayCard-CDs0w_2C.cjs → arrayCard-kh5WRweD.cjs} +1 -1
- package/dist/{audio-DwzGVHhN.js → audio-BTrvZwCy.js} +2 -2
- package/dist/{audio-DcGRfoFl.cjs → audio-DwJN2gca.cjs} +1 -1
- package/dist/{bar-DA7TDioF.js → bar-DYIb4143.js} +2 -2
- package/dist/{bar-Bh4Zupfj.cjs → bar-DsyyzcxB.cjs} +1 -1
- package/dist/{bmp-D7P6JPZ3.cjs → bmp-DbEyuBZw.cjs} +1 -1
- package/dist/{bmp-C-7PJc-e.js → bmp-Dt3mSkAr.js} +2 -2
- package/dist/{box-EScim_8s.cjs → box--u3HQFj9.cjs} +1 -1
- package/dist/{box-CabcDxmT.js → box-D7RsK5Qp.js} +2 -2
- package/dist/{chartConfigPanel-BOTXJEgB.js → chartConfigPanel-CD-csrX-.js} +1 -1
- package/dist/{chartConfigPanel-CGM3JLv0.cjs → chartConfigPanel-DybQRqg6.cjs} +1 -1
- package/dist/{circleBar-okrH5S9i.js → circleBar-4md65KCX.js} +2 -2
- package/dist/{circleBar-C3LcD2GM.cjs → circleBar-DJY37bwB.cjs} +1 -1
- package/dist/{clock-_0PzxcIr.js → clock-Cj0HsizY.js} +2 -2
- package/dist/{clock-B-MpqirO.cjs → clock-Dc9jgxHT.cjs} +1 -1
- package/dist/{clt-CmMR6xrj.cjs → clt-CBbtQxMc.cjs} +1 -1
- package/dist/{clt-B7Ro2RZ9.js → clt-uJT1jgHk.js} +2 -2
- package/dist/{cmc-CFz43gP5.cjs → cmc-CeTCKLBx.cjs} +1 -1
- package/dist/{cmc-UjkMrdkf.js → cmc-JJ6eTxB3.js} +2 -2
- package/dist/{cmp-B99dBC5D.cjs → cmp-CGZ_2BdE.cjs} +1 -1
- package/dist/{cmp-DAoGjmUK.js → cmp-D9qlHJoW.js} +2 -2
- package/dist/{conclusionCard-DfGfQa2i.js → conclusionCard-BsLeh3yq.js} +2 -2
- package/dist/{conclusionCard-BH6PfBmm.cjs → conclusionCard-CwLwj3zj.cjs} +1 -1
- package/dist/{controlList-Ch22lz5j.js → controlList-CYNS0ArB.js} +2 -2
- package/dist/{controlList-UzBZAUg8.cjs → controlList-l2ZYM6m5.cjs} +1 -1
- package/dist/{controlRecordList-DqVkxlxI.js → controlRecordList-BZmCvISO.js} +2 -2
- package/dist/{controlRecordList-CjaRe3iR.cjs → controlRecordList-N79_cTON.cjs} +1 -1
- package/dist/{controlRecordListAPP-DO9oXKbz.cjs → controlRecordListAPP-DOzMDV4x.cjs} +1 -1
- package/dist/{controlRecordListAPP-B4Agwftc.js → controlRecordListAPP-aDj520mp.js} +2 -2
- package/dist/{crd-Bf8jZALT.cjs → crd-CV4kMUTB.cjs} +1 -1
- package/dist/{crd-9hr2CpXs.js → crd-bm_BHuoV.js} +2 -2
- package/dist/{ctrBtn-DrNeLQd9.cjs → ctrBtn-Cs6ZmfyJ.cjs} +1 -1
- package/dist/{ctrBtn-Yfbw4Pt6.js → ctrBtn-DYceHTAq.js} +3 -3
- package/dist/{ctrSet-BI4qrXOp.js → ctrSet-B6PlTSBE.js} +3 -3
- package/dist/{ctrSet-Cw82MzYN.cjs → ctrSet-XqnGgYPn.cjs} +1 -1
- package/dist/{ctrSwitch-CyIBxuP0.cjs → ctrSwitch-B9lHJgQn.cjs} +1 -1
- package/dist/{ctrSwitch-CbrB82jp.js → ctrSwitch-E0FM_4f2.js} +3 -3
- package/dist/{dataManagement-8jLHO5b6.js → dataManagement-BAHa-OHl.js} +2 -2
- package/dist/{dataManagement-BANzNRgt.cjs → dataManagement-bKmkV2VY.cjs} +1 -1
- package/dist/{dataReport-BTY2YPkp.js → dataReport-B60Rb4sb.js} +2 -2
- package/dist/{dataReport-C6rqooz1.cjs → dataReport-JcrjpK_j.cjs} +1 -1
- package/dist/{dataTable-CT7O3vOj.js → dataTable-BmvewFlr.js} +1 -1
- package/dist/{dataTable-DK1bXW7L.cjs → dataTable-CX6uktOu.cjs} +1 -1
- package/dist/{datetime-Gc1JB409.cjs → datetime-BPM_lGiY.cjs} +1 -1
- package/dist/{datetime-BfpmpRWw.js → datetime-DARBbZJx.js} +2 -2
- package/dist/{deepClusterSlipSurface-CuPVV8T2.js → deepClusterSlipSurface-BF77Vp7G.js} +2 -2
- package/dist/{deepClusterSlipSurface-Do0cuafE.cjs → deepClusterSlipSurface-IywdiDlA.cjs} +1 -1
- package/dist/{deepDataMatrix-B2h-jr0-.js → deepDataMatrix--zgQoWer.js} +2 -2
- package/dist/{deepDataMatrix-eYmIiIMu.cjs → deepDataMatrix-sRXkGqdm.cjs} +1 -1
- package/dist/{deepDisplacement3D-Cc8f_nFC.cjs → deepDisplacement3D-BET8Ftuc.cjs} +1 -1
- package/dist/{deepDisplacement3D-DyF7L9GI.js → deepDisplacement3D-BYt49pzj.js} +2 -2
- package/dist/{deepDisplacementChart-BkgOiG2W.js → deepDisplacementChart-B2zPpsk6.js} +2 -2
- package/dist/{deepDisplacementChart-BUPlTFCA.js → deepDisplacementChart-BGBhipUx.js} +3 -3
- package/dist/{deepDisplacementChart-DVscdSYa.cjs → deepDisplacementChart-BuuM485C.cjs} +1 -1
- package/dist/{deepDisplacementChart-De935Ifi.cjs → deepDisplacementChart-D7loYUI5.cjs} +1 -1
- package/dist/{deepDisplacementView-C9P1cqRH.js → deepDisplacementView-Bwk9p_Qc.js} +1 -1
- package/dist/{deepDisplacementView-C3qEJa9Q.cjs → deepDisplacementView-CTBH3IxP.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DePoeTnV.js → deepNodeTemperatureChart-BqTigCTs.js} +2 -2
- package/dist/{deepNodeTemperatureChart-DLzI-lAv.cjs → deepNodeTemperatureChart-CTLHLf0w.cjs} +1 -1
- package/dist/{deepTangentAngleChart-D2SQkZEz.js → deepTangentAngleChart-5oxzMpMF.js} +2 -2
- package/dist/{deepTangentAngleChart-ClBLpr_-.cjs → deepTangentAngleChart-CHxB8OFL.cjs} +1 -1
- package/dist/{deepTemperatureField-B_rWuVyI.js → deepTemperatureField-Bhk89D3D.js} +3 -3
- package/dist/{deepTemperatureField-CUGWy_vS.cjs → deepTemperatureField-Cr6YbuR_.cjs} +1 -1
- package/dist/{deepTrendChart-C_e7Dgjz.js → deepTrendChart-CAbdVR8d.js} +2 -2
- package/dist/{deepTrendChart-BcrJBFqD.cjs → deepTrendChart-Ch94j4W9.cjs} +1 -1
- package/dist/{deviceOnlineStatus-C0SqKqjc.js → deviceOnlineStatus-C5ODwFsY.js} +2 -2
- package/dist/{deviceOnlineStatus-BZxCnz-5.cjs → deviceOnlineStatus-DxsTb4Vb.cjs} +1 -1
- package/dist/{deviceStatus-DClMreZ3.cjs → deviceStatus-CjFTpCaU.cjs} +1 -1
- package/dist/{deviceStatus-BPglOIKN.js → deviceStatus-DPfOQCSX.js} +2 -2
- package/dist/{displacementDataTable-C5172BMT.cjs → displacementDataTable-BIqBEkul.cjs} +1 -1
- package/dist/{displacementDataTable-9WH9Y3-l.js → displacementDataTable-DG36VWok.js} +2 -2
- package/dist/{displacementTrajectoryChart-DWGKAbMq.js → displacementTrajectoryChart-Cpmj24Jn.js} +2 -2
- package/dist/{displacementTrajectoryChart-C-pchT8b.cjs → displacementTrajectoryChart-DRltcPfa.cjs} +1 -1
- package/dist/{displacementTrendChart-D4keOUDg.js → displacementTrendChart-D1yfRFQb.js} +2 -2
- package/dist/{displacementTrendChart-B8Em-Apt.cjs → displacementTrendChart-DpD79zii.cjs} +1 -1
- package/dist/{dxf-CRFblr-a.cjs → dxf-C_9cH0WU.cjs} +1 -1
- package/dist/{dxf-BV56d_m8.js → dxf-zbCakRgh.js} +2 -2
- package/dist/dzc-CejqHneE.cjs +2 -0
- package/dist/{dzc-FZBGaYTk.js → dzc-CfPVaIgj.js} +46 -38
- package/dist/{emergencyPlan-CbFUPUf9.js → emergencyPlan-LbeRH-P9.js} +3 -3
- package/dist/{emergencyPlan-D5YlhQNC.cjs → emergencyPlan-dEwML5xC.cjs} +1 -1
- package/dist/{evn-ty-ACnv0.cjs → evn-BvgQ3o3T.cjs} +1 -1
- package/dist/{evn-DMrhD8U9.js → evn-DsD_MKQd.js} +2 -2
- package/dist/{evolutionChart-Cg3jN_vy.js → evolutionChart-B4C9qB3I.js} +3 -3
- package/dist/{evolutionChart-C6E2yiqG.cjs → evolutionChart-Dt5-xRsy.cjs} +1 -1
- package/dist/{fileViewer-D3UlJjIK.js → fileViewer-B0LdLy2P.js} +2 -2
- package/dist/{fileViewer-BqlO8FED.cjs → fileViewer-DZIREgL0.cjs} +1 -1
- package/dist/{filterBar-BWqpT6Ft.js → filterBar-Bt6w4_xK.js} +2 -2
- package/dist/{filterBar-x-zvXO4x.cjs → filterBar-D_jcuqwP.cjs} +1 -1
- package/dist/{fireCombustionCurve-CCsxFlpG.js → fireCombustionCurve-C2rWY89D.js} +3 -3
- package/dist/{fireCombustionCurve-BzvhUF4h.cjs → fireCombustionCurve-CHRd1nSv.cjs} +1 -1
- package/dist/{fireFilterBar-KU0l3oMk.js → fireFilterBar-CpwHRisZ.js} +2 -2
- package/dist/{fireFilterBar-BtMlwSl0.cjs → fireFilterBar-DX8qH1rr.cjs} +1 -1
- package/dist/{fireHistoryTable-GYC28vg2.cjs → fireHistoryTable-B38M6w5w.cjs} +1 -1
- package/dist/{fireHistoryTable-BqxPj5bh.js → fireHistoryTable-DcSgHt5q.js} +2 -2
- package/dist/{gag-CEsV2Rsa.js → gag-BErw_nsf.js} +2 -2
- package/dist/{gag-DnaEi2qS.cjs → gag-qDNPdFJu.cjs} +1 -1
- package/dist/{gasStationList-enI_qbTZ.js → gasStationList-BREZbC_k.js} +2 -2
- package/dist/{gasStationList-CSmyS9tt.cjs → gasStationList-NhJa4GO6.cjs} +1 -1
- package/dist/{geo3dViewer-Bi2I8qrS.cjs → geo3dViewer-D9uSt0up.cjs} +1 -1
- package/dist/{geo3dViewer-D3ZEH_sW.js → geo3dViewer-zAN1eIza.js} +3 -3
- package/dist/{glbModel-BcrfDRGx.cjs → glbModel-C4FiDMM5.cjs} +1 -1
- package/dist/{glbModel-Dz32VGsg.js → glbModel-i6HvK0m8.js} +2 -2
- package/dist/{globalObjectSelector-DPm_eXg_.js → globalObjectSelector-BrVwJEgp.js} +1 -1
- package/dist/{globalObjectSelector-CJrFL8ag.cjs → globalObjectSelector-CR74psMa.cjs} +1 -1
- package/dist/{gnssFilterBar-klba1QZm.js → gnssFilterBar-BEHXIIKI.js} +2 -2
- package/dist/{gnssFilterBar-DzHsXBPj.cjs → gnssFilterBar-BkfBQWXF.cjs} +1 -1
- package/dist/{gnssHistoryTable-BmWSzo4U.cjs → gnssHistoryTable-CQ-7ESYj.cjs} +1 -1
- package/dist/{gnssHistoryTable-Cp3pIekL.js → gnssHistoryTable-DDWGE_ge.js} +2 -2
- package/dist/{gnssMapView-BV9rsiDD.js → gnssMapView-C9iRAzym.js} +4 -4
- package/dist/{gnssMapView-BaZlzP_f.cjs → gnssMapView-P6ed3l_W.cjs} +2 -2
- package/dist/{gnssSectionProfile-CArri0j5.js → gnssSectionProfile-BIqyABEf.js} +2 -2
- package/dist/{gnssSectionProfile-D02MfJcd.cjs → gnssSectionProfile-CIZnF7VA.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-fZYtdBrL.cjs → gnssTimeSeriesChart-BgIM5U-H.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-C3VtICJV.js → gnssTimeSeriesChart-DqH9JFBF.js} +2 -2
- package/dist/{gnssXYTrajectory-ClbZljGY.js → gnssXYTrajectory-BviUjxG9.js} +2 -2
- package/dist/{gnssXYTrajectory-glpzGLHH.cjs → gnssXYTrajectory-CH8864n6.cjs} +1 -1
- package/dist/{grd-DAPxN3Yv.cjs → grd-BhpBxrpa.cjs} +1 -1
- package/dist/{grd-DFbgrJiz.js → grd-DfkGlcW6.js} +2 -2
- package/dist/{grdIndass-CdReMrRF.js → grdIndass-ByznFwzc.js} +2 -2
- package/dist/{grdIndass-CRYPP8ap.cjs → grdIndass-DhMfHz31.cjs} +1 -1
- package/dist/{grg-BuxeFXkW.js → grg-CVBoetQY.js} +2 -2
- package/dist/{grg-DBj_IXUS.cjs → grg-uzBlEm_K.cjs} +1 -1
- package/dist/{gridview-DMqISEIm.cjs → gridview-CyXCqWKq.cjs} +1 -1
- package/dist/{gridview-ieOKw-zp.js → gridview-Dt3i1t5d.js} +2 -2
- package/dist/{groundwaterFilterBar-CMrXUaJD.js → groundwaterFilterBar-BbS81e9a.js} +2 -2
- package/dist/{groundwaterFilterBar-DTjCop4R.cjs → groundwaterFilterBar-C4xCPqa_.cjs} +1 -1
- package/dist/{groundwaterProfileChart-wwZ31Nxz.js → groundwaterProfileChart-BBPFrt5W.js} +3 -3
- package/dist/{groundwaterProfileChart-CHFMvxM0.cjs → groundwaterProfileChart-DvjFvCm5.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-CL7EWs-M.js → groundwaterTimeCurve-CKlvc2nQ.js} +3 -3
- package/dist/{groundwaterTimeCurve-DzTolxJ6.cjs → groundwaterTimeCurve-Cb3xlM78.cjs} +1 -1
- package/dist/{groupCard-3iWG0sN3.js → groupCard-BBzDl9uX.js} +2 -2
- package/dist/{groupCard-CdPis-TL.cjs → groupCard-BVdjzdqF.cjs} +1 -1
- package/dist/{headerBar-DVP5Ob99.cjs → headerBar-B5Z8UviF.cjs} +1 -1
- package/dist/{headerBar-BVa2ewi0.js → headerBar-Dty08mHR.js} +2 -2
- package/dist/{history-CZCtaT0D.js → history-TkSKA8F1.js} +1 -1
- package/dist/{history-CVMvhgUJ.cjs → history-yI8XiwXi.cjs} +1 -1
- package/dist/{index-DYr57ceS.cjs → index-6QhTSPkL.cjs} +10 -10
- package/dist/{index-BueGUjcH.js → index-YNdVib_6.js} +1260 -1265
- package/dist/{insarDeformChart-vPREnzjC.js → insarDeformChart-C9UkWIL9.js} +2 -2
- package/dist/{insarDeformChart-CVrCLtcb.cjs → insarDeformChart-Dr9Ve1vY.cjs} +1 -1
- package/dist/{insarImageViewer-C0D9bkS3.cjs → insarImageViewer-DAKBn2vV.cjs} +1 -1
- package/dist/{insarImageViewer-DsNoAsNI.js → insarImageViewer-DZbq2xch.js} +2 -2
- package/dist/{kds-C6tBi9fO.cjs → kds-BkH8cJCu.cjs} +1 -1
- package/dist/{kds-DUdtTddq.js → kds-__I8-o5i.js} +2 -2
- package/dist/{kpiCard-A_7vB_FS.js → kpiCard-BzuF0qdE.js} +2 -2
- package/dist/{kpiCard-Dfn9Utnc.cjs → kpiCard-fRfv1QPb.cjs} +1 -1
- package/dist/{landslideMap-DEYHn_Z8.js → landslideMap-D84pku4Y.js} +3 -3
- package/dist/{landslideMap-CjsBed2W.cjs → landslideMap-zD8SU2Lh.cjs} +1 -1
- package/dist/{landslideWarning-C2SVP_SW.js → landslideWarning-0mckvEoZ.js} +5 -5
- package/dist/{landslideWarning-9q-8-Yaf.cjs → landslideWarning-Cq-di-hN.cjs} +1 -1
- package/dist/{layerTabs-DpIpshzv.cjs → layerTabs-C2zq6a5M.cjs} +1 -1
- package/dist/{layerTabs-CkgVEQIu.js → layerTabs-COzqQ9mn.js} +2 -2
- package/dist/{leaflet-src-BV47Q4HI.js → leaflet-src-2tPn7QVH.js} +1 -1
- package/dist/{leaflet-src-DzRw1bMt.cjs → leaflet-src-D8MF2j44.cjs} +1 -1
- package/dist/{lerc-COLax3Js.js → lerc-BCmG0CMS.js} +2 -2
- package/dist/{lerc-BxPJ0Ezc.cjs → lerc-BHcVhBOn.cjs} +1 -1
- package/dist/{lin-BgNnturC.js → lin-CQ6TCBCr.js} +59 -51
- package/dist/{lin-0o_p8mvp.cjs → lin-niA_T9Ql.cjs} +2 -2
- package/dist/{linIndass-DqIczVZr.js → linIndass-J9rdji6E.js} +2 -2
- package/dist/{linIndass-DCnHejlJ.cjs → linIndass-nZx16Vos.cjs} +1 -1
- package/dist/{lst-DVSrQxnF.cjs → lst-Cw1XCAv0.cjs} +1 -1
- package/dist/{lst-pzZFRLE7.js → lst-DieyrYCh.js} +2 -2
- package/dist/{manualEntry-CU7C50JU.js → manualEntry-CCmyPMJm.js} +2 -2
- package/dist/{manualEntry-COjFNu6s.cjs → manualEntry-ChhTpAF2.cjs} +1 -1
- package/dist/{mapBackground-ssUjWKfZ.cjs → mapBackground-BzOdjhnZ.cjs} +1 -1
- package/dist/{mapBackground-Bi8yjPRE.js → mapBackground-CiiG2nHi.js} +3 -3
- package/dist/{mappingList-BRndtYHP.js → mappingList-CoBD8D27.js} +2 -2
- package/dist/{mappingList-Cryu-iab.cjs → mappingList-D42mILiq.cjs} +1 -1
- package/dist/{markdownViewer-i0a6mIv1.js → markdownViewer-C3HUXDvf.js} +2 -2
- package/dist/{markdownViewer-Dn2PQ9LA.cjs → markdownViewer-DHs9ekCh.cjs} +1 -1
- package/dist/{mix-control-modal-CHglSLUZ.js → mix-control-modal-BEwriuWS.js} +1 -1
- package/dist/{mix-control-modal-CicQq7ai.cjs → mix-control-modal-DGd2S6Jd.cjs} +1 -1
- package/dist/{mixGrid-CJfUwclp.js → mixGrid-CBenxHD_.js} +2 -2
- package/dist/{mixGrid-CHyP3WlY.cjs → mixGrid-Cnq99D09.cjs} +1 -1
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mixiotObjectListApi-BzhGWfpb.js → mixiotObjectListApi-CKJLXcnf.js} +1 -1
- package/dist/{mixiotObjectListApi-D8aEu-tS.cjs → mixiotObjectListApi-e1qL7PHh.cjs} +1 -1
- package/dist/{mjpegCamera-BltugLlx.js → mjpegCamera-D8lB701i.js} +2 -2
- package/dist/{mjpegCamera-DNETbJj6.cjs → mjpegCamera-DDFrZo-x.cjs} +1 -1
- package/dist/{monitorAlert-B0e6NlDC.cjs → monitorAlert-C-mo-lDe.cjs} +1 -1
- package/dist/{monitorAlert-BZt1nTav.js → monitorAlert-Z1dFDfPh.js} +2 -2
- package/dist/{monitorData-BN6f9iMG.cjs → monitorData-CNRfV5Wt.cjs} +1 -1
- package/dist/{monitorData-Bj-yPQyW.js → monitorData-DZhO9Gos.js} +2 -2
- package/dist/{monitorSpeedChart-DPUyFmKD.js → monitorSpeedChart-C5pN46lO.js} +1 -1
- package/dist/{monitorSpeedChart-B3VWNas7.cjs → monitorSpeedChart-DrRdMdGD.cjs} +1 -1
- package/dist/{mxa-pTWhgscr.js → mxa-BFQ70ksk.js} +39 -31
- package/dist/mxa-COpw24fq.cjs +2 -0
- package/dist/{myValue-Dyyv7mp6.js → myValue-Dosl4Ro5.js} +2 -2
- package/dist/{myValue-K9yzWHVv.cjs → myValue-Eb3asTOC.cjs} +1 -1
- package/dist/{myValueList-BrL41hIy.js → myValueList-Dkc10vr6.js} +2 -2
- package/dist/{myValueList-BF88xTbG.cjs → myValueList-mcqRZanE.cjs} +1 -1
- package/dist/{objectList-D1wulpL0.cjs → objectList-D4owr3ED.cjs} +1 -1
- package/dist/{objectList-DqUaLWIN.js → objectList-FWkZ6PAs.js} +3 -3
- package/dist/{objectListAPP-BJI-LZ9h.cjs → objectListAPP-Bzevu1od.cjs} +1 -1
- package/dist/{objectListAPP-68pa8xQ3.js → objectListAPP-CdfeZTgm.js} +3 -3
- package/dist/{photo-D2G-MiYd.cjs → photo-Dmxxqgrg.cjs} +1 -1
- package/dist/{photo-CqtG1ZDn.js → photo-DxXTYq73.js} +2 -2
- package/dist/pie-BxpiCEYe.cjs +2 -0
- package/dist/{pie-rodX5eBx.js → pie-COixdWUz.js} +85 -75
- package/dist/{placeholder-C2uw4-Bv.js → placeholder-CLLNLxRC.js} +1 -1
- package/dist/{placeholder-yXuUcCld.cjs → placeholder-Ole-Or58.cjs} +1 -1
- package/dist/{pressBtn-CkKRECXu.js → pressBtn-C7Y-B8Dz.js} +3 -3
- package/dist/{pressBtn-kIjSTK2P.cjs → pressBtn-DwKg9PbD.cjs} +1 -1
- package/dist/{processTable-pFBZ3sr0.js → processTable-CTkwZWWJ.js} +2 -2
- package/dist/{processTable-DVvTpite.cjs → processTable-DDcKkjJx.cjs} +1 -1
- package/dist/{progressBar-CE8Tat_F.cjs → progressBar-7qHg67Sf.cjs} +1 -1
- package/dist/{progressBar-CJXjo8T8.js → progressBar-9npgJ9jD.js} +2 -2
- package/dist/{progressCircle-jhxHU2LM.js → progressCircle-DP08TX08.js} +2 -2
- package/dist/{progressCircle-Cqjxopp0.cjs → progressCircle-Xgjnl1KF.cjs} +1 -1
- package/dist/{qrcode-COU9b8jO.js → qrcode-ClTSNzEN.js} +2 -2
- package/dist/{qrcode-ICKNQzlF.cjs → qrcode-D6wDMo-f.cjs} +1 -1
- package/dist/{raceBar-CpfkbT_l.cjs → raceBar-C8mVFHnd.cjs} +1 -1
- package/dist/{raceBar-DPZn5eQr.js → raceBar-CTmsN8VC.js} +2 -2
- package/dist/{rad-DYSDihyX.js → rad-DWCSD35t.js} +2 -2
- package/dist/{rad-MVqAl4DI.cjs → rad-Dxaakm82.cjs} +1 -1
- package/dist/{radarMapViewer-DSEst_zr.cjs → radarMapViewer-U7IQJjQs.cjs} +1 -1
- package/dist/{radarMapViewer-DT-cLDqj.js → radarMapViewer-eEBE3MS-.js} +2 -2
- package/dist/{rainfallFilterBar-BH4y-ZiG.js → rainfallFilterBar-DJTDGu7Z.js} +2 -2
- package/dist/{rainfallFilterBar-DBckf4TU.cjs → rainfallFilterBar-ow_wdOwq.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BLPYjZne.cjs → rainfallTimeCurve-BL1I5Z2D.cjs} +1 -1
- package/dist/{rainfallTimeCurve-CEROEYQa.js → rainfallTimeCurve-CwGmJhxu.js} +3 -3
- package/dist/{rangeLin-CAWXiFqA.cjs → rangeLin-BEz9xapa.cjs} +1 -1
- package/dist/{rangeLin-D5m33pm3.js → rangeLin-BqcJpIva.js} +2 -2
- package/dist/{realtimeEvolutionMap-B_WyUQ7o.js → realtimeEvolutionMap-NOkyU7G3.js} +2 -2
- package/dist/{realtimeEvolutionMap-7YXQpGQV.cjs → realtimeEvolutionMap-mzXlR8gS.cjs} +1 -1
- package/dist/{regionBar-CRE0mrBK.cjs → regionBar-CEfz0Yol.cjs} +1 -1
- package/dist/{regionBar-BklMVV2U.js → regionBar-DDk-2UWS.js} +2 -2
- package/dist/{request-Bu96_fCa.js → request-BIXfJXjX.js} +1 -1
- package/dist/{request-C_dGr-al.cjs → request-BfG3yDz6.cjs} +1 -1
- package/dist/{retainer1-CSONW25j.cjs → retainer1-Ch1oZMeA.cjs} +1 -1
- package/dist/{retainer1-C9XjKFwo.js → retainer1-Cz5rXIJj.js} +3 -3
- package/dist/{retainer2-pxQIRn6B.cjs → retainer2-DJ1R2GJE.cjs} +1 -1
- package/dist/{retainer2-Nohg83dY.js → retainer2-DeelXgAZ.js} +3 -3
- package/dist/{retainerRecordList-B7mJ2EWt.cjs → retainerRecordList-D3MsCnqy.cjs} +1 -1
- package/dist/{retainerRecordList-D7ZTrf1N.js → retainerRecordList-DyhfjtfF.js} +2 -2
- package/dist/{retainerRecordListAPP-C5v2ahXJ.js → retainerRecordListAPP-3Gr7db3D.js} +2 -2
- package/dist/{retainerRecordListAPP-D-YaMhTT.cjs → retainerRecordListAPP-B_hCyRak.cjs} +1 -1
- package/dist/{ringTopN-CxZDBUkx.cjs → ringTopN-fLinQVwX.cjs} +1 -1
- package/dist/{ringTopN-n0TONMcf.js → ringTopN-t9xaVCWg.js} +2 -2
- package/dist/{riskRegionTable-CBddIShe.js → riskRegionTable-BThwQbTf.js} +2 -2
- package/dist/{riskRegionTable-Byb0Z693.cjs → riskRegionTable-CagcISBC.cjs} +1 -1
- package/dist/{sankey-BlIAPski.cjs → sankey-BY_nwThw.cjs} +1 -1
- package/dist/{sankey-D6XWVSSp.js → sankey-Bwm0omQr.js} +2 -2
- package/dist/{scd-CW_VLAdy.cjs → scd-Bs1dG1w8.cjs} +1 -1
- package/dist/{scd-B-DnzdLf.js → scd-DeYC1Rqx.js} +2 -2
- package/dist/{sideMenu-DCz3bw5f.cjs → sideMenu-CAEh3bwF.cjs} +1 -1
- package/dist/{sideMenu-B4NRCYfC.js → sideMenu-Db_Nc_xz.js} +2 -2
- package/dist/{slopeStability-C-vWRW5q.cjs → slopeStability-BWg6jhBB.cjs} +1 -1
- package/dist/{slopeStability-D5OmQDgi.js → slopeStability-CVC68Qcj.js} +2 -2
- package/dist/{speedCurve-tvLBjNoJ.js → speedCurve-CK4CXHeC.js} +2 -2
- package/dist/{speedCurve-D6uG-gFp.cjs → speedCurve-DNNEIz4o.cjs} +1 -1
- package/dist/{stressFilterBar-BQYqGIRB.cjs → stressFilterBar-Cigl3IyR.cjs} +1 -1
- package/dist/{stressFilterBar-aj-X6HC9.js → stressFilterBar-DQ8nq8jV.js} +2 -2
- package/dist/{stressTimeCurve-DC8cKQ52.js → stressTimeCurve-BEANw1F8.js} +3 -3
- package/dist/{stressTimeCurve-B0Gplbam.cjs → stressTimeCurve-BiduKfcg.cjs} +1 -1
- package/dist/{swiper-yrpsF9po.js → swiper-BgkvIN5U.js} +2 -2
- package/dist/{swiper-CDdx8LXl.cjs → swiper-MIRXMnxk.cjs} +1 -1
- package/dist/{terminalConfigList-VU0kGVKY.js → terminalConfigList-B3lqvQel.js} +2 -2
- package/dist/{terminalConfigList-NmdMNFkS.cjs → terminalConfigList-C3zRbQvM.cjs} +1 -1
- package/dist/{terminalList-BsHqVc8x.cjs → terminalList-ArxJ1jdO.cjs} +1 -1
- package/dist/{terminalList-BAYA-Ac0.js → terminalList-BevfdySj.js} +2 -2
- package/dist/{terminalListAPP-o2MxJO3g.js → terminalListAPP-CbpVft_s.js} +2 -2
- package/dist/{terminalListAPP-CsFu8juA.cjs → terminalListAPP-Cs0nnBfc.cjs} +1 -1
- package/dist/{textbox-B4Mo8FWS.js → textbox-CjkfmdaO.js} +2 -2
- package/dist/{textbox-5BUkzLTc.cjs → textbox-DC9YLTn5.cjs} +1 -1
- package/dist/{timeQueryBar-G4hUPdC2.cjs → timeQueryBar-B69eldHQ.cjs} +1 -1
- package/dist/{timeQueryBar-B0LIBA90.js → timeQueryBar-CXd9yNgD.js} +1 -1
- package/dist/{timeSeries-Ch4UV0P1.js → timeSeries-CLnLd-gX.js} +3 -3
- package/dist/{timeSeries-DC_CbU3l.cjs → timeSeries-fB14CgRy.cjs} +1 -1
- package/dist/{timeSeriesCurve-BF10Q_7c.js → timeSeriesCurve-CMcCzR13.js} +3 -3
- package/dist/{timeSeriesCurve-CJSHo8qO.cjs → timeSeriesCurve-DOaxDpjr.cjs} +1 -1
- package/dist/{toggleBtn-DQ2sHyaB.cjs → toggleBtn-BiUyrx_o.cjs} +1 -1
- package/dist/{toggleBtn-BhILbiNf.js → toggleBtn-CWmuTxSD.js} +2 -2
- package/dist/{trajectoryConfigPanel-BgSmlQkD.cjs → trajectoryConfigPanel-D7IDlQIH.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-BlqriMc7.js → trajectoryConfigPanel-DKLN3KY5.js} +1 -1
- package/dist/{trajectoryScatter-CeX4LQpn.cjs → trajectoryScatter-CL-2FKZe.cjs} +1 -1
- package/dist/{trajectoryScatter-BL2aiBf-.js → trajectoryScatter-TEactc8J.js} +2 -2
- package/dist/{universalConfigPanel-NMan3ddE.cjs → universalConfigPanel-B8JIiLXp.cjs} +1 -1
- package/dist/{universalConfigPanel-CLKhwJP4.js → universalConfigPanel-wicv4Ypw.js} +1 -1
- package/dist/{universalTable-CEmD-HRB.js → universalTable-8e3LrZvD.js} +2 -2
- package/dist/{universalTable-thYFp4vt.cjs → universalTable-BlTdL3c0.cjs} +1 -1
- package/dist/{video-t1nUpAcT.js → video-DpRcCZZQ.js} +2 -2
- package/dist/{video-8idiBjxG.cjs → video-nPkrKQyL.cjs} +1 -1
- package/dist/{videoMonitor-BEeCMVJf.cjs → videoMonitor-DOVw5mE0.cjs} +1 -1
- package/dist/{videoMonitor-PM3-BUjQ.js → videoMonitor-Z_7cZk5Y.js} +2 -2
- package/dist/{vlu-CE181id-.js → vlu-BQCrHSlq.js} +2 -2
- package/dist/{vlu-o3-SObwR.cjs → vlu-DEIgGiO-.cjs} +1 -1
- package/dist/{warningOverview-CKcMNgw-.js → warningOverview-C7J5aXTJ.js} +3 -3
- package/dist/{warningOverview-CbJfW5ek.cjs → warningOverview-DXJNk5bT.cjs} +1 -1
- package/dist/{weather-a0CGhe9q.cjs → weather-B1Pfcn75.cjs} +1 -1
- package/dist/{weather-D3LQY9qO.js → weather-C1sjTcwC.js} +2 -2
- package/dist/{windLin-Cg58bRj3.cjs → windLin-QKZKJ1h_.cjs} +1 -1
- package/dist/{windLin-D7qqnbNz.js → windLin-vlM63Hu7.js} +2 -2
- package/package.json +1 -1
- package/dist/dzc-9BLm4nwW.cjs +0 -2
- package/dist/mxa-BQ_gyPOg.cjs +0 -2
- package/dist/pie-DGQowd1d.cjs +0 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var O = (l, a, r) => a in l ?
|
|
1
|
+
var k = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var $ = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
|
+
var A = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var O = (l, a, r) => a in l ? k(l, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : l[a] = r, u = (l, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
A.call(a, r) && O(l, r, a[r]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var r of v(a))
|
|
10
|
+
B.call(a, r) && O(l, r, a[r]);
|
|
11
11
|
return l;
|
|
12
|
-
}, d = (l, a) =>
|
|
13
|
-
import { defineComponent as
|
|
14
|
-
import { l as T, C as
|
|
12
|
+
}, d = (l, a) => E(l, $(a));
|
|
13
|
+
import { defineComponent as R, computed as j, openBlock as z, createElementBlock as I, normalizeStyle as _, unref as m, createElementVNode as b, toDisplayString as N, renderSlot as D } from "vue";
|
|
14
|
+
import { l as T, C as P, _ as H } from "./index-YNdVib_6.js";
|
|
15
15
|
import "element-plus";
|
|
16
|
-
import { E as
|
|
16
|
+
import { E as M } from "./EChartComponentBase-BmS2KONN.js";
|
|
17
17
|
import { g as F } from "./titleStyle-BT5GlpAb.js";
|
|
18
|
-
import { A as U, D as
|
|
19
|
-
import { u as
|
|
20
|
-
import { i as
|
|
21
|
-
import { i as
|
|
22
|
-
import { i as
|
|
18
|
+
import { A as U, D as W } from "./ele-pie-icon-RPfHJxqp.js";
|
|
19
|
+
import { u as G, i as K, a as X } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
20
|
+
import { i as q } from "./install-DdM8j5Ll.js";
|
|
21
|
+
import { i as J } from "./install-CEl1AYgZ.js";
|
|
22
|
+
import { i as Q } from "./install-CIdzgJ44.js";
|
|
23
23
|
const Y = { class: "mix-body" }, Z = ["id"], ee = {
|
|
24
|
-
DEFAULT_ICON:
|
|
24
|
+
DEFAULT_ICON: W,
|
|
25
25
|
ACTIVE_ICON: U,
|
|
26
26
|
NAME_CN: "饼状图",
|
|
27
27
|
NAME_EN: "Pie",
|
|
@@ -64,8 +64,16 @@ const Y = { class: "mix-body" }, Z = ["id"], ee = {
|
|
|
64
64
|
repel: "pie"
|
|
65
65
|
},
|
|
66
66
|
isHideTitle: !1,
|
|
67
|
+
titleAlign: "left",
|
|
68
|
+
titleWeight: "bold",
|
|
69
|
+
titleBgColor: "transparent",
|
|
70
|
+
titleBorderType: "none",
|
|
71
|
+
titleBorderColor: "#cccccc",
|
|
72
|
+
titleBorderWidth: 1,
|
|
73
|
+
titlePaddingH: 8,
|
|
74
|
+
titlePaddingV: 4,
|
|
67
75
|
showLabel: !1,
|
|
68
|
-
showLegend: !0,
|
|
76
|
+
showLegend: { value: !0, type: "checkbox", label: "component.options.showLegend", dependent: "showLabel" },
|
|
69
77
|
orient: {
|
|
70
78
|
value: "horizontal",
|
|
71
79
|
type: "radio",
|
|
@@ -76,9 +84,9 @@ const Y = { class: "mix-body" }, Z = ["id"], ee = {
|
|
|
76
84
|
label: "component.options.orient",
|
|
77
85
|
dependent: "showLegend"
|
|
78
86
|
},
|
|
79
|
-
showValue: !0,
|
|
80
|
-
showRate: !1,
|
|
81
|
-
wrap: !1,
|
|
87
|
+
showValue: { value: !0, type: "checkbox", label: "component.options.showValue", dependent: "showLabel" },
|
|
88
|
+
showRate: { value: !1, type: "checkbox", label: "component.options.showRate", dependent: "showLabel" },
|
|
89
|
+
wrap: { value: !1, type: "checkbox", label: "component.options.wrap", dependent: "showLabel" },
|
|
82
90
|
wrapByte: {
|
|
83
91
|
value: 5,
|
|
84
92
|
type: "number",
|
|
@@ -93,7 +101,7 @@ const Y = { class: "mix-body" }, Z = ["id"], ee = {
|
|
|
93
101
|
useAlias: !1,
|
|
94
102
|
multiObject: !1,
|
|
95
103
|
source: "mosaic"
|
|
96
|
-
}, ae = { DEFAULT: ee, OPTIONS: te, DATA: oe, PARAMS: ie, SOURCE: ne, COMMON: se }, le = /* @__PURE__ */
|
|
104
|
+
}, ae = { DEFAULT: ee, OPTIONS: te, DATA: oe, PARAMS: ie, SOURCE: ne, COMMON: se }, le = /* @__PURE__ */ R(d(u({}, ae), {
|
|
97
105
|
__name: "pie",
|
|
98
106
|
props: {
|
|
99
107
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -102,38 +110,38 @@ const Y = { class: "mix-body" }, Z = ["id"], ee = {
|
|
|
102
110
|
theme: { type: String, default: "light" }
|
|
103
111
|
},
|
|
104
112
|
setup(l) {
|
|
105
|
-
|
|
113
|
+
G([
|
|
114
|
+
q,
|
|
106
115
|
J,
|
|
107
|
-
|
|
116
|
+
K,
|
|
108
117
|
X,
|
|
109
|
-
|
|
110
|
-
W
|
|
118
|
+
Q
|
|
111
119
|
]);
|
|
112
|
-
const a = l, r = T(),
|
|
120
|
+
const a = l, r = T(), C = {
|
|
113
121
|
horizontal: { orient: "horizontal", bottom: "5%", left: "center" },
|
|
114
122
|
vertical: { orient: "vertical", right: "5%", top: "5%" }
|
|
115
123
|
};
|
|
116
|
-
class
|
|
124
|
+
class S extends M {
|
|
117
125
|
initChart() {
|
|
118
|
-
var e,
|
|
119
|
-
super.initChart(), this.props.mode === "preview" && ((e = this.chartObj) == null || e.off("click"), (
|
|
120
|
-
var i, s, p, c,
|
|
121
|
-
const n =
|
|
126
|
+
var e, t;
|
|
127
|
+
super.initChart(), this.props.mode === "preview" && ((e = this.chartObj) == null || e.off("click"), (t = this.chartObj) == null || t.on("click", (o) => {
|
|
128
|
+
var i, s, p, c, h, g;
|
|
129
|
+
const n = o == null ? void 0 : o.name;
|
|
122
130
|
if (typeof n == "string" && n) {
|
|
123
|
-
const
|
|
124
|
-
r.publish(
|
|
131
|
+
const V = ((s = (i = this.props.conf) == null ? void 0 : i.options) == null ? void 0 : s.linkChannel) === "custom" ? (c = (p = this.props.conf) == null ? void 0 : p.options) == null ? void 0 : c.customChannel : (g = (h = this.props.conf) == null ? void 0 : h.options) == null ? void 0 : g.linkChannel;
|
|
132
|
+
r.publish(V || "pie", "pie", {
|
|
125
133
|
objectId: "",
|
|
126
134
|
deviceId: "",
|
|
127
135
|
type: "select",
|
|
128
136
|
fieldKey: n,
|
|
129
|
-
fv:
|
|
137
|
+
fv: u({ key: n }, o),
|
|
130
138
|
source: "pie"
|
|
131
139
|
});
|
|
132
140
|
}
|
|
133
141
|
}));
|
|
134
142
|
}
|
|
135
143
|
extractStyles() {
|
|
136
|
-
return d(
|
|
144
|
+
return d(u({}, super.extractStyles()), {
|
|
137
145
|
type: this.getOptionValue("type", "pie"),
|
|
138
146
|
radius: this.getOptionValue("radius", 50),
|
|
139
147
|
inside: this.getOptionValue("inside", 40),
|
|
@@ -148,27 +156,27 @@ const Y = { class: "mix-body" }, Z = ["id"], ee = {
|
|
|
148
156
|
});
|
|
149
157
|
}
|
|
150
158
|
getChartOption() {
|
|
151
|
-
const e = this.Style.value, { data:
|
|
152
|
-
(i, s) => i.color ||
|
|
159
|
+
const e = this.Style.value, { data: t, name: o } = this.props.conf, n = t.map(
|
|
160
|
+
(i, s) => i.color || P[s]
|
|
153
161
|
);
|
|
154
162
|
return {
|
|
155
|
-
title: { show: !1, text:
|
|
163
|
+
title: { show: !1, text: o || "", x: "center" },
|
|
156
164
|
color: n,
|
|
157
165
|
tooltip: { trigger: "item", formatter: "{a} <br/>{b} : {c} ({d}%)" },
|
|
158
|
-
legend: d(
|
|
159
|
-
show: e.showLegend
|
|
160
|
-
},
|
|
161
|
-
data:
|
|
166
|
+
legend: d(u({
|
|
167
|
+
show: e.showLabel && e.showLegend
|
|
168
|
+
}, C[e.orient]), {
|
|
169
|
+
data: t.map((i) => i.name),
|
|
162
170
|
textStyle: { color: e.textColor }
|
|
163
171
|
}),
|
|
164
172
|
series: this.formatSeries()
|
|
165
173
|
};
|
|
166
174
|
}
|
|
167
175
|
formatSeries() {
|
|
168
|
-
const e = this.Style.value, { data:
|
|
176
|
+
const e = this.Style.value, { data: t, name: o } = this.props.conf, n = t.map((s) => ({ value: 0, name: s.name })), i = e.type === "pie" ? `${e.radius}%` : [`${e.inside}%`, `${e.outside}%`];
|
|
169
177
|
return [
|
|
170
178
|
{
|
|
171
|
-
name:
|
|
179
|
+
name: o,
|
|
172
180
|
type: "pie",
|
|
173
181
|
radius: i,
|
|
174
182
|
center: ["50%", "40%"],
|
|
@@ -179,6 +187,7 @@ const Y = { class: "mix-body" }, Z = ["id"], ee = {
|
|
|
179
187
|
shadowColor: "rgba(0, 0, 0, 0.5)"
|
|
180
188
|
},
|
|
181
189
|
label: {
|
|
190
|
+
show: e.showLabel,
|
|
182
191
|
color: e.textColor,
|
|
183
192
|
lineHeight: 16,
|
|
184
193
|
fontSize: e.textSize,
|
|
@@ -188,62 +197,63 @@ const Y = { class: "mix-body" }, Z = ["id"], ee = {
|
|
|
188
197
|
];
|
|
189
198
|
}
|
|
190
199
|
formatLabel(e) {
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
200
|
+
const t = this.Style.value;
|
|
201
|
+
if (!t.showLabel) return "";
|
|
202
|
+
let o = e.name;
|
|
203
|
+
return t.showValue && t.showRate ? o = `${e.name}: ${e.value}(${e.percent}%)` : t.showValue ? o = `${e.name}: ${e.value}` : t.showRate && (o = `${e.name}${e.percent}%`), this.insertBreaks(o);
|
|
194
204
|
}
|
|
195
205
|
insertBreaks(e) {
|
|
196
|
-
const
|
|
197
|
-
if (!
|
|
198
|
-
const
|
|
206
|
+
const t = this.Style.value;
|
|
207
|
+
if (!t.showLabel || !t.wrap) return e;
|
|
208
|
+
const o = t.wrapByte || 5;
|
|
199
209
|
let n = "", i = 0, s = 0;
|
|
200
210
|
for (const p of e)
|
|
201
|
-
p.charCodeAt(0) >= 19968 && p.charCodeAt(0) <= 40959 ? (s++, i += 2) : i += 1, n += p, (s >=
|
|
211
|
+
p.charCodeAt(0) >= 19968 && p.charCodeAt(0) <= 40959 ? (s++, i += 2) : i += 1, n += p, (s >= o || i >= o * 2) && (n += `
|
|
202
212
|
`, s = 0, i = 0);
|
|
203
213
|
return n;
|
|
204
214
|
}
|
|
205
215
|
setHistoryData(e) {
|
|
206
216
|
if (!e || !(e != null && e.length)) return;
|
|
207
|
-
const
|
|
208
|
-
|
|
217
|
+
const t = this.chartObj.getOption();
|
|
218
|
+
t.series[0].data.forEach((o, n) => {
|
|
209
219
|
var i;
|
|
210
|
-
|
|
211
|
-
}), this.updateChart(
|
|
220
|
+
o.value = (i = e[n].data[0]) != null ? i : 0;
|
|
221
|
+
}), this.updateChart(t);
|
|
212
222
|
}
|
|
213
223
|
setSocketData(e) {
|
|
214
224
|
if (!e || !this.chartObj) return;
|
|
215
|
-
const { data:
|
|
216
|
-
|
|
217
|
-
var p, c,
|
|
225
|
+
const { data: t } = this.props.conf, o = this.chartObj.getOption();
|
|
226
|
+
t.forEach((n, i) => {
|
|
227
|
+
var p, c, h;
|
|
218
228
|
const s = this.extractDataValue(e, n.fv);
|
|
219
|
-
(
|
|
220
|
-
}), this.updateChart(
|
|
229
|
+
(h = (c = (p = o.series) == null ? void 0 : p[0]) == null ? void 0 : c.data) != null && h[i] && (o.series[0].data[i].value = s != null ? s : 0);
|
|
230
|
+
}), this.updateChart(o);
|
|
221
231
|
}
|
|
222
232
|
}
|
|
223
|
-
const f = new
|
|
233
|
+
const f = new S(a, "pie");
|
|
224
234
|
f.setupLifecycle();
|
|
225
|
-
const
|
|
226
|
-
return (
|
|
235
|
+
const y = f.getStyle(), L = f.getEchartId(), x = j(() => F(a.conf.options));
|
|
236
|
+
return (w, e) => (z(), I("div", {
|
|
227
237
|
class: "mix-component",
|
|
228
238
|
style: _({
|
|
229
|
-
background: m(
|
|
230
|
-
borderRadius: `${m(
|
|
239
|
+
background: m(y).bgColor,
|
|
240
|
+
borderRadius: `${m(y).radiusSize}px`
|
|
231
241
|
})
|
|
232
242
|
}, [
|
|
233
|
-
|
|
243
|
+
b("div", {
|
|
234
244
|
class: "mix-title",
|
|
235
245
|
style: _(x.value)
|
|
236
246
|
}, N(l.conf.caption || l.conf.name), 5),
|
|
237
|
-
|
|
238
|
-
|
|
247
|
+
b("div", Y, [
|
|
248
|
+
b("div", {
|
|
239
249
|
class: "w-full h-full",
|
|
240
|
-
id: m(
|
|
250
|
+
id: m(L)
|
|
241
251
|
}, null, 8, Z)
|
|
242
252
|
]),
|
|
243
|
-
D(
|
|
253
|
+
D(w.$slots, "default", {}, void 0, !0)
|
|
244
254
|
], 4));
|
|
245
255
|
}
|
|
246
|
-
})),
|
|
256
|
+
})), ge = /* @__PURE__ */ H(le, [["__scopeId", "data-v-03b40f26"]]);
|
|
247
257
|
export {
|
|
248
|
-
|
|
258
|
+
ge as default
|
|
249
259
|
};
|
|
@@ -12,7 +12,7 @@ var $ = (o, e, r) => e in o ? q(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, D = (o, e) => G(o, H(e));
|
|
13
13
|
import { defineComponent as Q, computed as w, ref as X, useTemplateRef as Y, onMounted as Z, nextTick as U, onBeforeUnmount as ee, watch as te, openBlock as h, createElementBlock as m, normalizeStyle as R, createElementVNode as p, toDisplayString as i, createCommentVNode as b, createTextVNode as oe, renderSlot as le } from "vue";
|
|
14
14
|
import { A as ae, D as re } from "./ele-box-icon-Brlhb3oN.js";
|
|
15
|
-
import { _ as de } from "./index-
|
|
15
|
+
import { _ as de } from "./index-YNdVib_6.js";
|
|
16
16
|
const ne = ["data-placeholder-id", "data-placeholder-name", "data-x", "data-y", "data-w", "data-h"], ce = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "mix-placeholder__label"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var P=Object.defineProperty,A=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var O=(l,t,r)=>t in l?P(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,M=(l,t)=>{for(var r in t||(t={}))$.call(t,r)&&O(l,r,t[r]);if(D)for(var r of D(t))U.call(t,r)&&O(l,r,t[r]);return l},T=(l,t)=>A(l,W(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./ele-box-icon-NZ0BTjhm.cjs"),j=require("./index-
|
|
1
|
+
"use strict";var P=Object.defineProperty,A=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var O=(l,t,r)=>t in l?P(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,M=(l,t)=>{for(var r in t||(t={}))$.call(t,r)&&O(l,r,t[r]);if(D)for(var r of D(t))U.call(t,r)&&O(l,r,t[r]);return l},T=(l,t)=>A(l,W(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./ele-box-icon-NZ0BTjhm.cjs"),j=require("./index-6QhTSPkL.cjs"),q=["data-placeholder-id","data-placeholder-name","data-x","data-y","data-w","data-h"],G={key:0,class:"mix-placeholder__label"},H={class:"mix-placeholder__title"},J={key:0,class:"mix-placeholder__name"},K={class:"mix-placeholder__meta"},Q={key:0,class:"mix-placeholder__pixel"},X={class:"mix-placeholder__pixel-pos"},Y={key:1,class:"mix-placeholder__desc"},Z={key:0,class:"mix-placeholder__name-runtime"},ee={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"占位组件",NAME_EN:"Placeholder",ORDER:99,PLATFORM:["pc","screen","mobile"]},te={placeholderName:{value:"",type:"string",label:"占位组件名称"},description:{value:"",type:"string",label:"描述"},bgColor:{value:"rgba(64, 158, 255, 0.08)",type:"color",label:"填充色"},borderColor:{value:"#409EFF",type:"color",label:"边框颜色"},borderWidth:{value:2,type:"number",label:"边框宽度",min:0,max:10},borderStyle:{value:"dashed",type:"radio",label:"边框样式",option:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]},radiusSize:{value:4,type:"number",label:"圆角",min:0,max:50},showLabel:{value:!0,type:"checkbox",label:"显示标签"},showInPreview:{value:!1,type:"checkbox",label:"运行时显示边框"}},oe=[],le={},ae={DEFAULT:ee,OPTIONS:te,SOURCE:oe,COMMON:le},ne=e.defineComponent(T(M({},ae),{__name:"placeholder",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(l){const t=l,r=(o,a)=>{var c,i;const n=(i=(c=t.conf)==null?void 0:c.options)==null?void 0:i[o];return n==null?a:typeof n=="object"&&"value"in n?n.value:n},d=e.computed(()=>({placeholderName:r("placeholderName",""),description:r("description",""),bgColor:r("bgColor","rgba(64, 158, 255, 0.08)"),borderColor:r("borderColor","#409EFF"),borderWidth:Number(r("borderWidth",2))||0,borderStyle:r("borderStyle","dashed"),radiusSize:Number(r("radiusSize",4))||0,showLabel:r("showLabel",!0)!==!1,showInPreview:r("showInPreview",!1)===!0})),_=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.name)||((a=t.conf)==null?void 0:a.id)||""}),b=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.caption)||((a=t.conf)==null?void 0:a.name)||""}),F=e.computed(()=>({backgroundColor:d.value.bgColor,borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${d.value.borderWidth}px`,borderRadius:`${d.value.radiusSize}px`})),L=e.computed(()=>({borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${Math.max(1,d.value.borderWidth)}px`,borderRadius:`${d.value.radiusSize}px`,backgroundColor:"transparent"})),m=e.ref(null),S=e.useTemplateRef("rootRef"),N=()=>{const o=S.value;if(!o)return{gridItem:null,canvas:null};const a=o.closest(".vgl-item")||o.closest(".vue-grid-item"),n=o.closest(".canvas");return{gridItem:a,canvas:n}},x=()=>{const{gridItem:o,canvas:a}=N();if(!o||!a)return;const n=o.getBoundingClientRect(),c=a.getBoundingClientRect(),i=a.offsetWidth||1,u=c.width/i||1,s=u===0?1:u;m.value={left:Math.round((n.left-c.left)/s),top:Math.round((n.top-c.top)/s),width:Math.round(n.width/s),height:Math.round(n.height/s)}},y=o=>{var a,n,c,i,u,s,h,v,f;if(typeof window!="undefined")try{window.dispatchEvent(new CustomEvent(`mix-placeholder:${o}`,{detail:{id:((a=t.conf)==null?void 0:a.id)||"",name:_.value,grid:{x:(c=(n=t.conf)==null?void 0:n.x)!=null?c:0,y:(u=(i=t.conf)==null?void 0:i.y)!=null?u:0,w:(h=(s=t.conf)==null?void 0:s.w)!=null?h:0,h:(f=(v=t.conf)==null?void 0:v.h)!=null?f:0},pixel:m.value,mode:t.mode}}))}catch(g){}};let p=null;return e.onMounted(()=>{e.nextTick(()=>{x(),y("registered");const{gridItem:o}=N();o&&typeof ResizeObserver!="undefined"&&(p=new ResizeObserver(()=>{x(),y("updated")}),p.observe(o))})}),e.onBeforeUnmount(()=>{p==null||p.disconnect(),p=null,y("unregistered")}),e.watch(()=>{var o,a,n,c,i;return[(o=t.conf)==null?void 0:o.x,(a=t.conf)==null?void 0:a.y,(n=t.conf)==null?void 0:n.w,(c=t.conf)==null?void 0:c.h,(i=t.conf)==null?void 0:i.options,t.mode]},()=>{e.nextTick(()=>{x(),y("updated")})},{deep:!0}),(o,a)=>{var n,c,i,u,s,h,v,f,g,w,C,E,k,B,R,I,V;return e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:S,class:"mix-placeholder",style:e.normalizeStyle({pointerEvents:l.mode==="edit"?"auto":void 0}),"data-placeholder-id":((n=l.conf)==null?void 0:n.id)||"","data-placeholder-name":_.value,"data-x":(i=(c=l.conf)==null?void 0:c.x)!=null?i:0,"data-y":(s=(u=l.conf)==null?void 0:u.y)!=null?s:0,"data-w":(v=(h=l.conf)==null?void 0:h.w)!=null?v:0,"data-h":(g=(f=l.conf)==null?void 0:f.h)!=null?g:0},[l.mode==="edit"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-placeholder__frame mix-placeholder__frame--edit",style:e.normalizeStyle(F.value)},[d.value.showLabel?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",H,[a[0]||(a[0]=e.createElementVNode("span",{class:"mix-placeholder__tag"},"占位组件",-1)),b.value?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",K,[e.createElementVNode("span",null,"x:"+e.toDisplayString((C=(w=l.conf)==null?void 0:w.x)!=null?C:0),1),e.createElementVNode("span",null,"y:"+e.toDisplayString((k=(E=l.conf)==null?void 0:E.y)!=null?k:0),1),e.createElementVNode("span",null,"w:"+e.toDisplayString((R=(B=l.conf)==null?void 0:B.w)!=null?R:0),1),e.createElementVNode("span",null,"h:"+e.toDisplayString((V=(I=l.conf)==null?void 0:I.h)!=null?V:0),1)]),m.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createTextVNode(e.toDisplayString(m.value.width)+"px × "+e.toDisplayString(m.value.height)+"px ",1),e.createElementVNode("span",X,"@("+e.toDisplayString(m.value.left)+", "+e.toDisplayString(m.value.top)+")",1)])):e.createCommentVNode("",!0),d.value.description?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(d.value.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):d.value.showInPreview?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mix-placeholder__frame mix-placeholder__frame--runtime",style:e.normalizeStyle(L.value)},[d.value.showLabel&&b.value?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],12,q)}}})),re=j._export_sfc(ne,[["__scopeId","data-v-d6ad7f4c"]]);exports.default=re;
|
|
@@ -28,10 +28,10 @@ var _ = (o, t, e) => new Promise((d, g) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as t2, reactive as T, ref as S, computed as y, openBlock as L, createElementBlock as v, Fragment as F, createElementVNode as m, normalizeStyle as w, unref as f, createTextVNode as o2, toDisplayString as M, normalizeClass as j, createCommentVNode as I, renderList as s2, renderSlot as i2, createVNode as n2 } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as l2 } from "./BaseComponent-
|
|
32
|
-
import { V as a2, A as E, a as r2, _ as c2 } from "./index-
|
|
31
|
+
import { B as l2 } from "./BaseComponent-Dwhb9Mde.js";
|
|
32
|
+
import { V as a2, A as E, a as r2, _ as c2 } from "./index-YNdVib_6.js";
|
|
33
33
|
import { g as d2 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
-
import { _ as u2, g as p2, c as B } from "./mix-control-modal-
|
|
34
|
+
import { _ as u2, g as p2, c as B } from "./mix-control-modal-BEwriuWS.js";
|
|
35
35
|
import { ElMessage as O } from "element-plus";
|
|
36
36
|
const m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", f2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", C2 = { class: "font-semibold flex items-center justify-between" }, g2 = { class: "flex items-center" }, h2 = { class: "mix-body" }, L2 = { class: "w-full flex flex-wrap content-start" }, v2 = ["onMousedown", "onMouseup"], w2 = {
|
|
37
37
|
DEFAULT_ICON: m2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,I=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,H=Reflect.get;var M=(n,o,t)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,k=(n,o)=>{for(var t in o||(o={}))D.call(o,t)&&M(n,t,o[t]);if(_)for(var t of _(o))R.call(o,t)&&M(n,t,o[t]);return n},O=(n,o)=>I(n,j(o));var w=(n,o,t)=>H(P(n),t,o);var x=(n,o,t)=>new Promise((u,C)=>{var g=a=>{try{c(t.next(a))}catch(l){C(l)}},p=a=>{try{c(t.throw(a))}catch(l){C(l)}},c=a=>a.done?u(a.value):Promise.resolve(a.value).then(g,p);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const $=require("./BaseComponent-B5ivgb3E.cjs"),h=require("./index-DYr57ceS.cjs"),q=require("./titleStyle-NSnz6cUg.cjs"),v=require("./mix-control-modal-CicQq7ai.cjs"),S=require("element-plus"),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(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G={class:"font-semibold flex items-center justify-between"},J={class:"flex items-center"},K={class:"mix-body"},Y={class:"w-full flex flex-wrap content-start"},Q=["onMousedown","onMouseup"],X={DEFAULT_ICON:U,ACTIVE_ICON:W,NAME_CN:"双控",NAME_EN:"Dual Control",ORDER:3,PLATFORM:["pc","screen","mobile"]},e2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},z=[{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"关机",color:"#c92309",code:0},{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"开机",color:"#217406",code:1}],t2=["name","color","upper","down"],o2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},n2=["mosaic"],l2={DEFAULT:X,OPTIONS:e2,DATA:z,PARAMS:t2,SOURCE:n2,COMMON:o2},i2=e.defineComponent(O(k({},l2),{__name:"pressBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(n){const o=n,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),u=e.reactive({text:"",color:""}),C=e.ref(null),g=e.ref(!0),p=e.ref(!1);class c extends $.BaseComponent{extractStyles(){const{options:i}=this.props.conf;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),method:this.getOptionValue("method","alway"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){w(c.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:z})}onPreview(){return x(this,null,function*(){yield w(c.prototype,this,"onPreview").call(this);const i=yield v.getAuthorized(this.props);t.authorized=i.authorized,t.password=i.password})}setSocketData(i){var d,b;if(!i)return;const{common:r}=this.props.conf,m=this.extractDataValue(i,r.statusFv);if(m!=null){const f=r.status.find(Z=>String(Z.code)===String(m));u.text=(d=f==null?void 0:f.text)!=null?d:"",u.color=(b=f==null?void 0:f.color)!=null?b:""}}}const a=new c(o,"pressBtn");a.setupLifecycle();const l=a.getStyle(),E=e.computed(()=>q.generateTitleStyle(o.conf.options)),N=e.computed(()=>`${(100/l.value.items).toFixed(2)||100}%`),L=e.computed(()=>{const s=l.value.method||"alway";return s==="once"&&g.value||s==="alway"&&!p.value}),V=()=>{p.value||(C.value.modal.visible=!0)},A=()=>{p.value=!0,l.value.method==="once"&&(g.value=!1)},B=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.down.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"pusher",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.down.command.toString(),value:s.down.code.toString()||"",control:t.password,rule:l.value.method};y(d,"down")},T=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.upper.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"pusher",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.upper.command.toString(),value:s.upper.code.toString()||"",control:t.password,rule:l.value.method};y(d,"up")},y=(s,i)=>{h.api.platform(r=>{r.code===200&&(S.ElMessage.success(r.msg),g.value=!1,l.value.method==="alway"&&i==="up"&&(p.value=!1))},s)};return(s,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",G,[e.createTextVNode(e.toDisplayString(n.conf.caption||n.conf.name)+" ",1),e.createElementVNode("div",J,[e.unref(l).method!=="never"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["verify-btn",{disabled:p.value}]),onClick:V},"验证密码",2)):e.createCommentVNode("",!0),u.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"status-btn",style:e.normalizeStyle({backgroundColor:u.color,color:e.unref(l).textColor})},e.toDisplayString(u.text),5)):e.createCommentVNode("",!0)])])],4),e.createElementVNode("div",K,[e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:m,style:e.normalizeStyle({width:N.value,height:`${e.unref(l).itemHeight}px`,fontSize:`${e.unref(l).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:L.value}]),style:e.normalizeStyle({backgroundColor:r.color,color:e.unref(l).textColor}),onMousedown:d=>B(r),onMouseup:d=>T(r)},e.toDisplayString(r.name),47,Q)],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4),e.createVNode(v._sfc_main,{ref_key:"controlRef",ref:C,onSubmit:A,password:t.password},null,8,["password"])],64))}})),s2=h._export_sfc(i2,[["__scopeId","data-v-4a5f2b28"]]);exports.default=s2;
|
|
1
|
+
"use strict";var F=Object.defineProperty,I=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,H=Reflect.get;var M=(n,o,t)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,k=(n,o)=>{for(var t in o||(o={}))D.call(o,t)&&M(n,t,o[t]);if(_)for(var t of _(o))R.call(o,t)&&M(n,t,o[t]);return n},O=(n,o)=>I(n,j(o));var w=(n,o,t)=>H(P(n),t,o);var x=(n,o,t)=>new Promise((u,C)=>{var g=a=>{try{c(t.next(a))}catch(l){C(l)}},p=a=>{try{c(t.throw(a))}catch(l){C(l)}},c=a=>a.done?u(a.value):Promise.resolve(a.value).then(g,p);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const $=require("./BaseComponent-bzb58Hhs.cjs"),h=require("./index-6QhTSPkL.cjs"),q=require("./titleStyle-NSnz6cUg.cjs"),v=require("./mix-control-modal-DGd2S6Jd.cjs"),S=require("element-plus"),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(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G={class:"font-semibold flex items-center justify-between"},J={class:"flex items-center"},K={class:"mix-body"},Y={class:"w-full flex flex-wrap content-start"},Q=["onMousedown","onMouseup"],X={DEFAULT_ICON:U,ACTIVE_ICON:W,NAME_CN:"双控",NAME_EN:"Dual Control",ORDER:3,PLATFORM:["pc","screen","mobile"]},e2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},z=[{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"关机",color:"#c92309",code:0},{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"开机",color:"#217406",code:1}],t2=["name","color","upper","down"],o2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},n2=["mosaic"],l2={DEFAULT:X,OPTIONS:e2,DATA:z,PARAMS:t2,SOURCE:n2,COMMON:o2},i2=e.defineComponent(O(k({},l2),{__name:"pressBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(n){const o=n,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),u=e.reactive({text:"",color:""}),C=e.ref(null),g=e.ref(!0),p=e.ref(!1);class c extends $.BaseComponent{extractStyles(){const{options:i}=this.props.conf;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),method:this.getOptionValue("method","alway"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){w(c.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:z})}onPreview(){return x(this,null,function*(){yield w(c.prototype,this,"onPreview").call(this);const i=yield v.getAuthorized(this.props);t.authorized=i.authorized,t.password=i.password})}setSocketData(i){var d,b;if(!i)return;const{common:r}=this.props.conf,m=this.extractDataValue(i,r.statusFv);if(m!=null){const f=r.status.find(Z=>String(Z.code)===String(m));u.text=(d=f==null?void 0:f.text)!=null?d:"",u.color=(b=f==null?void 0:f.color)!=null?b:""}}}const a=new c(o,"pressBtn");a.setupLifecycle();const l=a.getStyle(),E=e.computed(()=>q.generateTitleStyle(o.conf.options)),N=e.computed(()=>`${(100/l.value.items).toFixed(2)||100}%`),L=e.computed(()=>{const s=l.value.method||"alway";return s==="once"&&g.value||s==="alway"&&!p.value}),V=()=>{p.value||(C.value.modal.visible=!0)},A=()=>{p.value=!0,l.value.method==="once"&&(g.value=!1)},B=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.down.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"pusher",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.down.command.toString(),value:s.down.code.toString()||"",control:t.password,rule:l.value.method};y(d,"down")},T=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.upper.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"pusher",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.upper.command.toString(),value:s.upper.code.toString()||"",control:t.password,rule:l.value.method};y(d,"up")},y=(s,i)=>{h.api.platform(r=>{r.code===200&&(S.ElMessage.success(r.msg),g.value=!1,l.value.method==="alway"&&i==="up"&&(p.value=!1))},s)};return(s,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",G,[e.createTextVNode(e.toDisplayString(n.conf.caption||n.conf.name)+" ",1),e.createElementVNode("div",J,[e.unref(l).method!=="never"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["verify-btn",{disabled:p.value}]),onClick:V},"验证密码",2)):e.createCommentVNode("",!0),u.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"status-btn",style:e.normalizeStyle({backgroundColor:u.color,color:e.unref(l).textColor})},e.toDisplayString(u.text),5)):e.createCommentVNode("",!0)])])],4),e.createElementVNode("div",K,[e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:m,style:e.normalizeStyle({width:N.value,height:`${e.unref(l).itemHeight}px`,fontSize:`${e.unref(l).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:L.value}]),style:e.normalizeStyle({backgroundColor:r.color,color:e.unref(l).textColor}),onMousedown:d=>B(r),onMouseup:d=>T(r)},e.toDisplayString(r.name),47,Q)],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4),e.createVNode(v._sfc_main,{ref_key:"controlRef",ref:C,onSubmit:A,password:t.password},null,8,["password"])],64))}})),s2=h._export_sfc(i2,[["__scopeId","data-v-4a5f2b28"]]);exports.default=s2;
|
|
@@ -12,8 +12,8 @@ var V = (c, o, a) => o in c ? H(c, o, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, D = (c, o) => U(c, I(o));
|
|
13
13
|
import { defineComponent as Y, computed as C, ref as G, watch as W, openBlock as d, createElementBlock as v, normalizeStyle as m, unref as n, createElementVNode as i, toDisplayString as u, withDirectives as q, Fragment as E, renderList as A, vModelSelect as J, createCommentVNode as h, renderSlot as K } from "vue";
|
|
14
14
|
import { u as Q } from "./safeI18n-CXZgGKWp.js";
|
|
15
|
-
import { B as X } from "./BaseComponent-
|
|
16
|
-
import { _ as Z } from "./index-
|
|
15
|
+
import { B as X } from "./BaseComponent-Dwhb9Mde.js";
|
|
16
|
+
import { _ as Z } from "./index-YNdVib_6.js";
|
|
17
17
|
import { g as tt } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { A as et, D as lt } from "./ele-evn-icon-MWzAujnD.js";
|
|
19
19
|
const ot = { class: "title-text" }, nt = { class: "title-actions" }, st = ["value"], at = { class: "mix-body" }, it = { class: "pt-thead" }, ct = { class: "pt-th pt-col-stage" }, ut = { class: "pt-th pt-col-duration" }, pt = { class: "pt-th pt-col-status" }, rt = { class: "pt-td pt-col-stage" }, dt = { class: "pt-td pt-col-duration" }, vt = { class: "pt-td pt-col-status" }, _t = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var B=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var C=(i,n,a)=>n in i?B(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,k=(i,n)=>{for(var a in n||(n={}))z.call(n,a)&&C(i,a,n[a]);if(S)for(var a of S(n))F.call(n,a)&&C(i,a,n[a]);return i},w=(i,n)=>L(i,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./safeI18n-DR20q_h1.cjs"),j=require("./BaseComponent-
|
|
1
|
+
"use strict";var B=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var C=(i,n,a)=>n in i?B(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,k=(i,n)=>{for(var a in n||(n={}))z.call(n,a)&&C(i,a,n[a]);if(S)for(var a of S(n))F.call(n,a)&&C(i,a,n[a]);return i},w=(i,n)=>L(i,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./safeI18n-DR20q_h1.cjs"),j=require("./BaseComponent-bzb58Hhs.cjs"),I=require("./index-6QhTSPkL.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-evn-icon-DUQMS-9T.cjs"),R={class:"title-text"},U={class:"title-actions"},H=["value"],q={class:"mix-body"},P={class:"pt-thead"},Y={class:"pt-th pt-col-stage"},G={class:"pt-th pt-col-duration"},W={class:"pt-th pt-col-status"},J={class:"pt-td pt-col-stage"},K={class:"pt-td pt-col-duration"},Q={class:"pt-td pt-col-status"},X={key:0,class:"pt-empty"},Z={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"流程效率表",NAME_EN:"Process Table",ORDER:12,PLATFORM:["pc","screen"]},ee={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:13,rowHeight:44,isHideTitle:!1,description:"关注预警发出、任务下达、现场反馈到隐患关闭全过程。",showFilter:!0,defaultLevel:{value:"1",type:"select",label:"component.options.lw_defaultLevel",options:[{label:"component.options.lw_level_1",value:"1"},{label:"component.options.lw_level_2",value:"2"},{label:"component.options.lw_level_3",value:"3"},{label:"component.options.lw_level_4",value:"4"},{label:"component.options.lw_level_all",value:"all"}]},btnText:"数据下载",linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},te=[{stage:"预警推送",fv:"",object_id:"",value:1.8,unit:"min",status:"正常",statusType:"normal",level:"1"},{stage:"调度确认",fv:"",object_id:"",value:6.5,unit:"min",status:"可优化",statusType:"warn",level:"1"},{stage:"现场响应",fv:"",object_id:"",value:12.4,unit:"min",status:"波动较大",statusType:"danger",level:"1"},{stage:"隐患关闭",fv:"",object_id:"",value:3.2,unit:"h",status:"持续跟踪",statusType:"info",level:"1"}],le=[{key:"stage",label:"component.options.lw_stage",type:"string"},"fv","object_id",{key:"unit",label:"component.options.lw_unitMinH",type:"string"},{key:"status",label:"component.options.lw_statusText",type:"string"},{key:"statusType",label:"component.options.lw_statusType",type:"select",options:[{label:"component.options.lw_statusType_normal",value:"normal"},{label:"component.options.lw_statusType_warn",value:"warn"},{label:"component.options.lw_statusType_danger",value:"danger"},{label:"component.options.lw_statusType_info",value:"info"}]},{key:"level",label:"component.options.lw_level",type:"select",options:[{label:"component.options.lw_levelShort_1",value:"1"},{label:"component.options.lw_levelShort_2",value:"2"},{label:"component.options.lw_levelShort_3",value:"3"},{label:"component.options.lw_levelShort_4",value:"4"}]}],oe=["mosaic","statistics","calculate"],ne={useAlias:!1,multiObject:!0,source:"statistics"},se={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:le,SOURCE:oe,COMMON:ne},ae=e.defineComponent(w(k({},se),{__name:"processTable",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const n=i,a={normal:{bg:"#e7f7ec",color:"#1f9d4a"},warn:{bg:"#fff5e0",color:"#d97706"},danger:{bg:"#fde8e8",color:"#dc2626"},info:{bg:"#e0ecfd",color:"#2563eb"}};class T extends j.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),rowHeight:this.getOptionValue("rowHeight",44),description:this.getOptionValue("description",""),showFilter:this.getOptionValue("showFilter",!0),defaultLevel:this.getOptionValue("defaultLevel","1"),btnText:this.getOptionValue("btnText",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const t=this.Style.value;return(t==null?void 0:t.linkChannel)==="custom"?t.customChannel||"":(t==null?void 0:t.linkChannel)||""}setSocketData(t){var r;if(!t)return;(((r=this.props.conf)==null?void 0:r.data)||[]).forEach(m=>{const p=this.extractDataValue(t,m.fv);p!=null&&(m.value=Number(p)||0)})}}const g=new T(n,"processTable");g.setupLifecycle();const{t:c}=A.useSafeI18n(),s=g.getStyle(),b=n.conf,V=e.computed(()=>M.generateTitleStyle(n.conf.options)),x=e.computed(()=>[{label:c("component.options.lw_level_1"),value:"1"},{label:c("component.options.lw_level_2"),value:"2"},{label:c("component.options.lw_level_3"),value:"3"},{label:c("component.options.lw_level_4"),value:"4"},{label:c("component.options.lw_level_all"),value:"all"}]),u=e.ref(s.value.defaultLevel||"1");e.watch(()=>s.value.defaultLevel,l=>{l&&(u.value=l)});const v=e.computed(()=>{var t;const l=((t=n.conf)==null?void 0:t.data)||[];return u.value==="all"?l:l.filter(o=>String(o.level||"1")===String(u.value))});function h(l){const t=l==null?void 0:l.value;if(t==null||t==="")return"--";const o=(l==null?void 0:l.unit)||"",r=typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t);return o?`${r} ${o}`:r}function N(l){const t=a[l]||a.info;return{background:t.bg,color:t.color}}function _(l){const t=String(l!=null?l:"");return/[",\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function O(){const l=new Date,t=o=>String(o).padStart(2,"0");return`${l.getFullYear()}${t(l.getMonth()+1)}${t(l.getDate())}_${t(l.getHours())}${t(l.getMinutes())}${t(l.getSeconds())}`}function D(){if(n.mode!=="preview")return;const l=v.value;if(!l.length)return;const t=["阶段","平均时长","状态"].join(","),o=l.map(f=>[_(f.stage),_(h(f)),_(f.status)].join(",")).join(`
|
|
2
2
|
`),r=t+`
|
|
3
3
|
`+o,m=u.value==="all"?"全部":`${u.value}级`,p=new Blob(["\uFEFF"+r],{type:"text/csv;charset=utf-8;"}),y=URL.createObjectURL(p),d=document.createElement("a");d.href=y,d.download=`流程效率表_${m}_${O()}.csv`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(y)}return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(s).bgColor,borderRadius:`${e.unref(s).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(V.value)},[e.createElementVNode("span",R,e.toDisplayString(e.unref(b).caption||e.unref(b).name),1),e.createElementVNode("div",U,[e.unref(s).showFilter?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,"onUpdate:modelValue":t[0]||(t[0]=o=>u.value=o),class:"pt-select"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,o=>(e.openBlock(),e.createElementBlock("option",{key:o.value,value:o.value},e.toDisplayString(o.label),9,H))),128))],512)),[[e.vModelSelect,u.value]]):e.createCommentVNode("",!0),e.unref(s).btnText?(e.openBlock(),e.createElementBlock("button",{key:1,class:"pt-btn",onClick:D},e.toDisplayString(e.unref(s).btnText),1)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",q,[e.unref(s).description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"body-desc",style:e.normalizeStyle({fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},e.toDisplayString(e.unref(s).description),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"body-table",style:e.normalizeStyle({fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},[e.createElementVNode("div",P,[e.createElementVNode("div",Y,e.toDisplayString(e.unref(c)("component.options.lw_th_stage")),1),e.createElementVNode("div",G,e.toDisplayString(e.unref(c)("component.options.lw_th_duration")),1),e.createElementVNode("div",W,e.toDisplayString(e.unref(c)("component.options.lw_th_status")),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"pt-tr",style:e.normalizeStyle({minHeight:`${e.unref(s).rowHeight}px`})},[e.createElementVNode("div",J,e.toDisplayString(o.stage||"--"),1),e.createElementVNode("div",K,e.toDisplayString(h(o)),1),e.createElementVNode("div",Q,[e.createElementVNode("span",{class:"pt-tag",style:e.normalizeStyle(N(o.statusType))},e.toDisplayString(o.status||"--"),5)])],4))),128)),v.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",X,e.toDisplayString(e.unref(c)("component.options.lw_noData")),1))],4)]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),ie=I._export_sfc(ae,[["__scopeId","data-v-231420a4"]]);exports.default=ie;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty,h=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var f=(r,o,l)=>o in r?m(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,g=(r,o)=>{for(var l in o||(o={}))y.call(o,l)&&f(r,l,o[l]);if(p)for(var l of p(o))b.call(o,l)&&f(r,l,o[l]);return r},L=(r,o)=>h(r,v(o));var x=(r,o,l)=>new Promise((c,n)=>{var C=a=>{try{i(l.next(a))}catch(t){n(t)}},d=a=>{try{i(l.throw(a))}catch(t){n(t)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(C,d);i((l=l.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),w=require("./BaseComponent-B5ivgb3E.cjs"),M=require("./index-DYr57ceS.cjs"),_=require("./titleStyle-NSnz6cUg.cjs"),O="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-col"},k={class:"flex-1"},E={DEFAULT_ICON:O,ACTIVE_ICON:T,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2,PLATFORM:["pc","screen","mobile"]},V={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},z=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],Z=["name","fv","object_id","color","maxType","max"],N=["mosaic"],A={useAlias:!1,multiObject:!1,source:"mosaic"},F={DEFAULT:E,OPTIONS:V,DATA:z,PARAMS:Z,SOURCE:N,COMMON:A},D=e.defineComponent(L(g({},F),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const o=r;class l extends w.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:a}=this.props.conf;!Array.isArray(a)||!a.length||a.forEach((t,s)=>{var u;t.value=(u=i[s].data[0])!=null?u:0,t.percent=t.value/t.max*100})}setSocketData(i){if(!i)return;const{data:a}=this.props.conf;a.forEach(t=>{t.value=this.extractDataValue(i,t.fv)||0;const s=t.maxType==="value"?t.max:this.extractDataValue(i,t.max)||0;t.percent=s==0?0:Number((t.value/s*100).toFixed(2))})}}const c=new l(o,"progressBar");c.setupLifecycle();const n=c.getStyle(),C=e.computed(()=>_.generateTitleStyle(o.conf.options));return(d,i)=>{const a=S.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(C.value)},e.toDisplayString(r.conf.caption||r.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.conf.data,(t,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor,width:e.unref(n).labelWidth+"px"})},e.toDisplayString(t.name),5),e.createElementVNode("div",k,[e.createVNode(a,{percentage:t.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:t.color,"stroke-width":e.unref(n).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),W=M._export_sfc(D,[["__scopeId","data-v-22bac22c"]]);exports.default=W;
|
|
1
|
+
"use strict";var m=Object.defineProperty,h=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var f=(r,o,l)=>o in r?m(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,g=(r,o)=>{for(var l in o||(o={}))y.call(o,l)&&f(r,l,o[l]);if(p)for(var l of p(o))b.call(o,l)&&f(r,l,o[l]);return r},L=(r,o)=>h(r,v(o));var x=(r,o,l)=>new Promise((c,n)=>{var C=a=>{try{i(l.next(a))}catch(t){n(t)}},d=a=>{try{i(l.throw(a))}catch(t){n(t)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(C,d);i((l=l.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),w=require("./BaseComponent-bzb58Hhs.cjs"),M=require("./index-6QhTSPkL.cjs"),_=require("./titleStyle-NSnz6cUg.cjs"),O="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-col"},k={class:"flex-1"},E={DEFAULT_ICON:O,ACTIVE_ICON:T,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2,PLATFORM:["pc","screen","mobile"]},V={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},z=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],Z=["name","fv","object_id","color","maxType","max"],N=["mosaic"],A={useAlias:!1,multiObject:!1,source:"mosaic"},F={DEFAULT:E,OPTIONS:V,DATA:z,PARAMS:Z,SOURCE:N,COMMON:A},D=e.defineComponent(L(g({},F),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const o=r;class l extends w.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:a}=this.props.conf;!Array.isArray(a)||!a.length||a.forEach((t,s)=>{var u;t.value=(u=i[s].data[0])!=null?u:0,t.percent=t.value/t.max*100})}setSocketData(i){if(!i)return;const{data:a}=this.props.conf;a.forEach(t=>{t.value=this.extractDataValue(i,t.fv)||0;const s=t.maxType==="value"?t.max:this.extractDataValue(i,t.max)||0;t.percent=s==0?0:Number((t.value/s*100).toFixed(2))})}}const c=new l(o,"progressBar");c.setupLifecycle();const n=c.getStyle(),C=e.computed(()=>_.generateTitleStyle(o.conf.options));return(d,i)=>{const a=S.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(C.value)},e.toDisplayString(r.conf.caption||r.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.conf.data,(t,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor,width:e.unref(n).labelWidth+"px"})},e.toDisplayString(t.name),5),e.createElementVNode("div",k,[e.createVNode(a,{percentage:t.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:t.color,"stroke-width":e.unref(n).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),W=M._export_sfc(D,[["__scopeId","data-v-22bac22c"]]);exports.default=W;
|
|
@@ -30,8 +30,8 @@ import { ElProgress as T } from "element-plus/es";
|
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/progress/style/css";
|
|
32
32
|
import { defineComponent as B, computed as Z, openBlock as L, createElementBlock as g, normalizeStyle as c, unref as s, createElementVNode as d, toDisplayString as x, Fragment as k, renderList as V, createVNode as z, renderSlot as A } from "vue";
|
|
33
|
-
import { B as E } from "./BaseComponent-
|
|
34
|
-
import { _ as F } from "./index-
|
|
33
|
+
import { B as E } from "./BaseComponent-Dwhb9Mde.js";
|
|
34
|
+
import { _ as F } from "./index-YNdVib_6.js";
|
|
35
35
|
import { g as N } from "./titleStyle-BT5GlpAb.js";
|
|
36
36
|
const W = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", D = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", P = { class: "mix-body flex flex-col" }, j = { class: "flex-1" }, R = {
|
|
37
37
|
DEFAULT_ICON: W,
|