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
|
@@ -30,8 +30,8 @@ import { ElProgress as E } 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 F, computed as b, openBlock as C, createElementBlock as g, normalizeStyle as u, unref as s, createElementVNode as x, toDisplayString as v, Fragment as B, renderList as D, createVNode as L, withCtx as P, createCommentVNode as T, renderSlot as Z } from "vue";
|
|
33
|
-
import { B as j } from "./BaseComponent-
|
|
34
|
-
import { _ as W } from "./index-
|
|
33
|
+
import { B as j } from "./BaseComponent-Dwhb9Mde.js";
|
|
34
|
+
import { _ as W } from "./index-YNdVib_6.js";
|
|
35
35
|
import { g as R } from "./titleStyle-BT5GlpAb.js";
|
|
36
36
|
const H = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", I = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", U = { class: "mix-body flex flex-wrap" }, $ = {
|
|
37
37
|
DEFAULT_ICON: H,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var b=Object.defineProperty,S=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var v=(a,l,r)=>l in a?b(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r,x=(a,l)=>{for(var r in l||(l={}))k.call(l,r)&&v(a,r,l[r]);if(m)for(var r of m(l))N.call(l,r)&&v(a,r,l[r]);return a},y=(a,l)=>S(a,w(l));var h=(a,l,r)=>new Promise((d,n)=>{var g=s=>{try{p(r.next(s))}catch(c){n(c)}},f=s=>{try{p(r.throw(s))}catch(c){n(c)}},p=s=>s.done?d(s.value):Promise.resolve(s.value).then(g,f);p((r=r.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),V=require("./BaseComponent-B5ivgb3E.cjs"),_=require("./index-DYr57ceS.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-wrap"},M={DEFAULT_ICON:T,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3,PLATFORM:["pc","screen","mobile"]},A={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],L=["mosaic"],P={useAlias:!1,multiObject:!1,source:"mosaic"},j={DEFAULT:M,OPTIONS:A,DATA:D,PARAMS:F,SOURCE:L,COMMON:P},Z=e.defineComponent(y(x({},j),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const l=a;class r extends V.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),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return h(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.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(t){if(!t)return;const{data:i}=this.props.conf;!Array.isArray(i)||!i.length||i.forEach((o,u)=>{var C;o.value=(C=t[u].data[0])!=null?C:0,o.percent=o.value/o.max*100})}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(o=>{o.value=this.extractDataValue(t,o.fv)||0;const u=o.maxType==="value"?o.max:this.extractDataValue(t,o.max)||0;o.percent=u==0?0:Number((o.value/u*100).toFixed(2))})}}const d=new r(l,"progressCircle");d.setupLifecycle();const n=d.getStyle(),g=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.diameter,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.barWidth,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),p=e.computed(()=>z.generateTitleStyle(l.conf.options)),s=(c,t)=>n.value.type==="value"?t==null?void 0:t.value:c+"%";return(c,t)=>{const i=O.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(p.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:o.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:o.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:C})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(s(C,o)),5),e.unref(n).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(n).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),q=_._export_sfc(Z,[["__scopeId","data-v-0f05a5f9"]]);exports.default=q;
|
|
1
|
+
"use strict";var b=Object.defineProperty,S=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var v=(a,l,r)=>l in a?b(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r,x=(a,l)=>{for(var r in l||(l={}))k.call(l,r)&&v(a,r,l[r]);if(m)for(var r of m(l))N.call(l,r)&&v(a,r,l[r]);return a},y=(a,l)=>S(a,w(l));var h=(a,l,r)=>new Promise((d,n)=>{var g=s=>{try{p(r.next(s))}catch(c){n(c)}},f=s=>{try{p(r.throw(s))}catch(c){n(c)}},p=s=>s.done?d(s.value):Promise.resolve(s.value).then(g,f);p((r=r.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),V=require("./BaseComponent-bzb58Hhs.cjs"),_=require("./index-6QhTSPkL.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-wrap"},M={DEFAULT_ICON:T,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3,PLATFORM:["pc","screen","mobile"]},A={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],L=["mosaic"],P={useAlias:!1,multiObject:!1,source:"mosaic"},j={DEFAULT:M,OPTIONS:A,DATA:D,PARAMS:F,SOURCE:L,COMMON:P},Z=e.defineComponent(y(x({},j),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const l=a;class r extends V.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),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return h(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.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(t){if(!t)return;const{data:i}=this.props.conf;!Array.isArray(i)||!i.length||i.forEach((o,u)=>{var C;o.value=(C=t[u].data[0])!=null?C:0,o.percent=o.value/o.max*100})}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(o=>{o.value=this.extractDataValue(t,o.fv)||0;const u=o.maxType==="value"?o.max:this.extractDataValue(t,o.max)||0;o.percent=u==0?0:Number((o.value/u*100).toFixed(2))})}}const d=new r(l,"progressCircle");d.setupLifecycle();const n=d.getStyle(),g=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.diameter,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.barWidth,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),p=e.computed(()=>z.generateTitleStyle(l.conf.options)),s=(c,t)=>n.value.type==="value"?t==null?void 0:t.value:c+"%";return(c,t)=>{const i=O.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(p.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:o.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:o.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:C})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(s(C,o)),5),e.unref(n).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(n).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),q=_._export_sfc(Z,[["__scopeId","data-v-0f05a5f9"]]);exports.default=q;
|
|
@@ -11,8 +11,8 @@ var K = (n, d, s) => d in n ? ae(n, d, { enumerable: !0, configurable: !0, writa
|
|
|
11
11
|
return n;
|
|
12
12
|
}, U = (n, d) => oe(n, ne(d));
|
|
13
13
|
import { defineComponent as F, h as E, ref as $, onMounted as ue, watchEffect as se, Fragment as de, computed as A, openBlock as he, createElementBlock as ce, normalizeStyle as H, unref as B, createElementVNode as V, toDisplayString as fe, createVNode as ve, renderSlot as ge } from "vue";
|
|
14
|
-
import { B as me } from "./BaseComponent-
|
|
15
|
-
import { _ as Ce } from "./index-
|
|
14
|
+
import { B as me } from "./BaseComponent-Dwhb9Mde.js";
|
|
15
|
+
import { _ as Ce } from "./index-YNdVib_6.js";
|
|
16
16
|
import { g as we } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
var R = function() {
|
|
18
18
|
return R = Object.assign || function(d) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,q=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},D=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-B5ivgb3E.cjs"),ae=require("./index-DYr57ceS.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var z;(function(o){var d=(function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=n)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var T=a.getNumDataCodewords(g,t)*8;c(v.length<=T),s(0,Math.min(4,T-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<T;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var l=i[n],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();o.QrSegment=h})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var B=z,V="L",oe=100,G=0,ie=.1,le=2,W={L:B.QrCode.Ecc.LOW,M:B.QrCode.Ecc.MEDIUM,Q:B.QrCode.Ecc.QUARTILE,H:B.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return B.QrCode.encodeText(o.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var T=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,T(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),T(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(n),f.watchEffect(n);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const d=o;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>ne.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(n,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-82738f56"]]);exports.default=be;
|
|
1
|
+
"use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,q=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},D=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-bzb58Hhs.cjs"),ae=require("./index-6QhTSPkL.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var z;(function(o){var d=(function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=n)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var T=a.getNumDataCodewords(g,t)*8;c(v.length<=T),s(0,Math.min(4,T-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<T;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var l=i[n],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();o.QrSegment=h})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var B=z,V="L",oe=100,G=0,ie=.1,le=2,W={L:B.QrCode.Ecc.LOW,M:B.QrCode.Ecc.MEDIUM,Q:B.QrCode.Ecc.QUARTILE,H:B.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return B.QrCode.encodeText(o.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var T=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,T(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),T(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(n),f.watchEffect(n);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const d=o;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>ne.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(n,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-82738f56"]]);exports.default=be;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var k=Object.defineProperty,j=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(p,a,r)=>a in p?k(p,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[a]=r,R=(p,a)=>{for(var r in a||(a={}))W.call(a,r)&&U(p,r,a[r]);if(M)for(var r of M(a))Z.call(a,r)&&U(p,r,a[r]);return p},A=(p,a)=>j(p,q(a));var V=(p,a,r)=>new Promise((w,T)=>{var S=f=>{try{b(r.next(f))}catch(L){T(L)}},O=f=>{try{b(r.throw(f))}catch(L){T(L)}},b=f=>f.done?w(f.value):Promise.resolve(f.value).then(S,O);b((r=r.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),X=require("./vue-i18n-BvHMBi_b.cjs"),_=require("./index-DYr57ceS.cjs");require("element-plus");const G=require("./EChartComponentBase-ChoVZ7wg.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ot={key:0,class:"mix-title-unit"},nt={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=l.defineComponent(A(R({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([K.install,Q.install,E.install,Y.install,E.install$1,tt.install]);const a=p;function r(c,e,t){const i=c==null?void 0:c[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function w(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class T extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var h,d,g;this.ensureCommonFields();const e=this.props.conf.common,t=(h=this.props.conf.data)==null?void 0:h[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(d=this.props.conf.options)==null?void 0:d.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(g=this.props.conf.options)==null?void 0:g.showPlanCompletionRate,u=n!=null&&typeof n=="object"&&"value"in n?n.value:n;e.showPlanCompletionRate===!1&&u===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const n of i){if(n==null||n==="")continue;const u=t.indexOf(String(n));if(u!==-1)return u}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return A(R({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield l.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((h,d)=>{var g;return h===((g=e.data[d])==null?void 0:g.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((h,d)=>{const g=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(h.color||_.COLORS[d]),h.value!==void 0&&h.value!==""?this.CHART.rawValues.push(h.value):o&&t[d]!==void 0&&t[d]!==""?this.CHART.rawValues.push(t[d]):this.CHART.rawValues.push(g[0]),this.CHART.items.push(h.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const u=this.parseNumericRaw(n);return u===null?null:e?i<=0?0:u/i*100:u}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:u}=this.buildSeriesAndMax(),h=t.direction==="x",d=h?"right":"center",g={pct:{color:"#000000",fontSize:t.textSize,align:d,padding:h?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((s,x)=>{g[`raw${x}`]={color:s||"#5470c6",fontSize:t.textSize,align:d,fontWeight:500}});const D=s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x];if(o&&u>0){const v=this.parseNumericRaw(C),y=w(String(C)),$=v!==null&&u>0?`${Math.round(v/u*100)}%`:"";return`{raw${x}|${y}}{pct|${w($)}}`}return`{raw${x}|${w(String(C))}}`},N=28,I=108,F=s=>{var v,y;const x=(y=(v=e.chartObj)==null?void 0:v.getWidth())!=null?y:0;return!x||!s.labelRect?{}:{x:x-12,y:s.labelRect.y+s.labelRect.height/2,verticalAlign:"middle",align:"right"}},H=h?t.right+I:t.right;let m={grid:{top:h?t.top:t.top+N,bottom:t.bottom,left:t.left,right:H,containLabel:!1},tooltip:{show:!0,formatter:s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x],v=this.parseNumericRaw(C);let y=`${s.name}:`;return o&&u>0&&v!==null?y+=`${C}(${Math.round(v/u*100)}%)`:y+=String(C),y}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,formatter:s=>s.length>4?s.substr(0,4):s}},yAxis:{axisLabel:{formatter:s=>s.length>5?s.substr(0,5)+`
|
|
1
|
+
"use strict";var k=Object.defineProperty,j=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(p,a,r)=>a in p?k(p,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[a]=r,R=(p,a)=>{for(var r in a||(a={}))W.call(a,r)&&U(p,r,a[r]);if(M)for(var r of M(a))Z.call(a,r)&&U(p,r,a[r]);return p},A=(p,a)=>j(p,q(a));var V=(p,a,r)=>new Promise((w,T)=>{var S=f=>{try{b(r.next(f))}catch(L){T(L)}},O=f=>{try{b(r.throw(f))}catch(L){T(L)}},b=f=>f.done?w(f.value):Promise.resolve(f.value).then(S,O);b((r=r.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),X=require("./vue-i18n-BvHMBi_b.cjs"),_=require("./index-6QhTSPkL.cjs");require("element-plus");const G=require("./EChartComponentBase-CMN_pOMr.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ot={key:0,class:"mix-title-unit"},nt={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=l.defineComponent(A(R({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([K.install,Q.install,E.install,Y.install,E.install$1,tt.install]);const a=p;function r(c,e,t){const i=c==null?void 0:c[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function w(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class T extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var h,d,g;this.ensureCommonFields();const e=this.props.conf.common,t=(h=this.props.conf.data)==null?void 0:h[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(d=this.props.conf.options)==null?void 0:d.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(g=this.props.conf.options)==null?void 0:g.showPlanCompletionRate,u=n!=null&&typeof n=="object"&&"value"in n?n.value:n;e.showPlanCompletionRate===!1&&u===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const n of i){if(n==null||n==="")continue;const u=t.indexOf(String(n));if(u!==-1)return u}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return A(R({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield l.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((h,d)=>{var g;return h===((g=e.data[d])==null?void 0:g.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((h,d)=>{const g=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(h.color||_.COLORS[d]),h.value!==void 0&&h.value!==""?this.CHART.rawValues.push(h.value):o&&t[d]!==void 0&&t[d]!==""?this.CHART.rawValues.push(t[d]):this.CHART.rawValues.push(g[0]),this.CHART.items.push(h.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const u=this.parseNumericRaw(n);return u===null?null:e?i<=0?0:u/i*100:u}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:u}=this.buildSeriesAndMax(),h=t.direction==="x",d=h?"right":"center",g={pct:{color:"#000000",fontSize:t.textSize,align:d,padding:h?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((s,x)=>{g[`raw${x}`]={color:s||"#5470c6",fontSize:t.textSize,align:d,fontWeight:500}});const D=s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x];if(o&&u>0){const v=this.parseNumericRaw(C),y=w(String(C)),$=v!==null&&u>0?`${Math.round(v/u*100)}%`:"";return`{raw${x}|${y}}{pct|${w($)}}`}return`{raw${x}|${w(String(C))}}`},N=28,I=108,F=s=>{var v,y;const x=(y=(v=e.chartObj)==null?void 0:v.getWidth())!=null?y:0;return!x||!s.labelRect?{}:{x:x-12,y:s.labelRect.y+s.labelRect.height/2,verticalAlign:"middle",align:"right"}},H=h?t.right+I:t.right;let m={grid:{top:h?t.top:t.top+N,bottom:t.bottom,left:t.left,right:H,containLabel:!1},tooltip:{show:!0,formatter:s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x],v=this.parseNumericRaw(C);let y=`${s.name}:`;return o&&u>0&&v!==null?y+=`${C}(${Math.round(v/u*100)}%)`:y+=String(C),y}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,formatter:s=>s.length>4?s.substr(0,4):s}},yAxis:{axisLabel:{formatter:s=>s.length>5?s.substr(0,5)+`
|
|
2
2
|
`+s.substr(5):s,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[A(R({realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:n},h?{labelLayout:F}:{}),{label:{show:!0,position:h?"right":"top",align:d,verticalAlign:h?"middle":"bottom",valueAnimation:!0,color:t.textColor,fontSize:t.textSize,rich:g,formatter:D},itemStyle:{color:s=>i.colors[this.resolveBarItemIndex(s)]||"#5470c6"}})],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return h?(m.yAxis.data=i.items,t.realSort&&(m.yAxis.inverse=t.sortType==="desc"),m.xAxis.splitLine.lineStyle.type="dashed",o&&u>0&&(m.xAxis.max=100,m.xAxis.axisLabel.formatter=s=>`${s}%`)):(m.xAxis.data=i.items,delete m.xAxis.max,t.realSort&&(m.xAxis.inverse=t.sortType==="asc"),m.yAxis.splitLine.lineStyle.type="dashed",delete m.yAxis.type,o&&u>0&&(m.yAxis.max=100,m.yAxis.axisLabel.formatter=s=>`${s}%`)),m}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:t}=this.props.conf;this.CHART.rawValues=[],t.forEach(o=>{const n=this.extractDataValue(e,o.fv);this.CHART.rawValues.push(n!=null?n:"--")});const{seriesData:i}=this.buildSeriesAndMax();this.chartObj.setOption({series:[{data:i}]})}}const S=new T(a,"raceBar");S.setupLifecycle();const O=S.getStyle(),b=S.getEchartId(),f=a.conf,{t:L}=X.useI18n(),P=l.computed(()=>{var o;const c=((o=a.conf)==null?void 0:o.common)||{},e=String(c.valueUnit||"").trim(),t=!!c.showPlanCompletionRate,i=[];return e&&i.push(e),t&&i.push(L("component.options.showPlanCompletionRate")),i.join(" / ")}),B=l.computed(()=>{const c=J.generateTitleStyle(a.conf.options);return c.display==="none"?c:A(R({},c),{display:"flex",alignItems:"center",gap:"8px",textAlign:"initial"})}),z=l.computed(()=>{var e;const c=((e=a.conf)==null?void 0:e.options)||{};return{flex:"1",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:r(c,"titleColor","#111"),fontSize:`${r(c,"titleSize",14)}px`,fontWeight:r(c,"titleWeight","bold"),textAlign:r(c,"titleAlign","left")}});return(c,e)=>(l.openBlock(),l.createElementBlock("div",{class:"mix-component",style:l.normalizeStyle({background:l.unref(O).bgColor,borderRadius:`${l.unref(O).radiusSize}px`})},[l.createElementVNode("div",{class:"mix-title",style:l.normalizeStyle(B.value)},[l.createElementVNode("span",{class:"mix-title-caption",style:l.normalizeStyle(z.value)},l.toDisplayString(l.unref(f).caption||l.unref(f).name),5),P.value?(l.openBlock(),l.createElementBlock("span",ot,l.toDisplayString(P.value),1)):l.createCommentVNode("",!0)],4),l.createElementVNode("div",nt,[l.createElementVNode("div",{class:"w-full h-full",id:l.unref(b)},null,8,st)]),l.renderSlot(c.$slots,"default",{},void 0,!0)],4))}})),mt=_._export_sfc(dt,[["__scopeId","data-v-333c405c"]]);exports.default=mt;
|
|
@@ -28,9 +28,9 @@ var z = (p, a, l) => new Promise((v, T) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as Q, computed as P, openBlock as B, createElementBlock as I, normalizeStyle as D, unref as A, createElementVNode as _, toDisplayString as $, createCommentVNode as Y, renderSlot as tt, nextTick as et } from "vue";
|
|
30
30
|
import { u as it } from "./vue-i18n-5Nahpzrm.js";
|
|
31
|
-
import { o as ot, C as nt, _ as st } from "./index-
|
|
31
|
+
import { o as ot, C as nt, _ as st } from "./index-YNdVib_6.js";
|
|
32
32
|
import "element-plus";
|
|
33
|
-
import { E as at } from "./EChartComponentBase-
|
|
33
|
+
import { E as at } from "./EChartComponentBase-BmS2KONN.js";
|
|
34
34
|
import { g as lt } from "./titleStyle-BT5GlpAb.js";
|
|
35
35
|
import { u as rt, i as ct, a as ut } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
36
36
|
import { i as pt } from "./install-DdM8j5Ll.js";
|
|
@@ -11,9 +11,9 @@ var m = (o, t, e) => t in o ? O(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return o;
|
|
12
12
|
}, h = (o, t) => y(o, b(t));
|
|
13
13
|
import { defineComponent as E, computed as Z, openBlock as k, createElementBlock as F, normalizeStyle as g, unref as r, createElementVNode as c, toDisplayString as T, renderSlot as z } from "vue";
|
|
14
|
-
import { _ as A } from "./index-
|
|
14
|
+
import { _ as A } from "./index-YNdVib_6.js";
|
|
15
15
|
import "element-plus";
|
|
16
|
-
import { E as N } from "./EChartComponentBase-
|
|
16
|
+
import { E as N } from "./EChartComponentBase-BmS2KONN.js";
|
|
17
17
|
import { g as j } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { i as D } from "./install-BfNaEf5I.js";
|
|
19
19
|
import { u as V, i as R, a as I } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty,O=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(i,e,o)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o,m=(i,e)=>{for(var o in e||(e={}))w.call(e,o)&&f(i,o,e[o]);if(p)for(var o of p(e))_.call(e,o)&&f(i,o,e[o]);return i},h=(i,e)=>O(i,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-DYr57ceS.cjs");require("element-plus");const E=require("./EChartComponentBase-ChoVZ7wg.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),T=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Z=require("./install-DV5cEgNV.cjs"),k=require("./install-CltTFs4e.cjs"),z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",j={class:"mix-body"},A=["id"],V={DEFAULT_ICON:z,ACTIVE_ICON:F,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1,PLATFORM:["pc","screen","mobile"]},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},g=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:V,OPTIONS:D,DATA:g,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(h(m({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){c.use([Z.install,k.install,c.install,c.install$1,T.install]);const e=i,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:a,options:l}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return g}setHistoryData(n){if(!n)return;const a=this.chartObj.getOption();a.series[0].data[0].value=[],n.forEach(l=>{var r;a.series[0].data[0].value.push((r=l.data[0])!=null?r:0)}),this.chartObj.setOption(a)}setSocketData(n){if(!n||!this.chartObj)return;const{data:a}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],a.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",j,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,A)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-37759e1e"]]);exports.default=U;
|
|
1
|
+
"use strict";var y=Object.defineProperty,O=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(i,e,o)=>e in i?y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[e]=o,m=(i,e)=>{for(var o in e||(e={}))w.call(e,o)&&f(i,o,e[o]);if(p)for(var o of p(e))_.call(e,o)&&f(i,o,e[o]);return i},h=(i,e)=>O(i,b(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-6QhTSPkL.cjs");require("element-plus");const E=require("./EChartComponentBase-CMN_pOMr.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),T=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Z=require("./install-DV5cEgNV.cjs"),k=require("./install-CltTFs4e.cjs"),z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",j={class:"mix-body"},A=["id"],V={DEFAULT_ICON:z,ACTIVE_ICON:F,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1,PLATFORM:["pc","screen","mobile"]},D={titleColor:"#111",textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1},g=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],q=["name","fv","object_id","max"],R=["mosaic","statistics","calculate"],I={useAlias:!1,multiObject:!1,source:"mosaic"},B={DEFAULT:V,OPTIONS:D,DATA:g,PARAMS:q,SOURCE:R,COMMON:I},$=t.defineComponent(h(m({},B),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){c.use([Z.install,k.install,c.install,c.install$1,T.install]);const e=i,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",10)}}getChartOption(){const{data:n,name:a,options:l}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:l.type.value,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:n.map(r=>({name:r.name,max:r.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:"#383D42"}},splitLine:{show:!0,lineStyle:{width:1,color:l.borderColor.value}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:12,color:l.textColor.value}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return g}setHistoryData(n){if(!n)return;const a=this.chartObj.getOption();a.series[0].data[0].value=[],n.forEach(l=>{var r;a.series[0].data[0].value.push((r=l.data[0])!=null?r:0)}),this.chartObj.setOption(a)}setSocketData(n){if(!n||!this.chartObj)return;const{data:a}=this.props.conf,l=this.chartObj.getOption();l.series[0].data[0].value=[],a.forEach(r=>{const L=this.extractDataValue(n,r.fv);l.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(l)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>N.generateTitleStyle(e.conf.options));return(u,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",j,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,A)]),t.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),U=M._export_sfc($,[["__scopeId","data-v-37759e1e"]]);exports.default=U;
|