mixdashboards 1.0.78 → 1.0.80
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-Dwhb9Mde.js → BaseComponent-CEp8NJiX.js} +8 -8
- package/dist/{BaseComponent-bzb58Hhs.cjs → BaseComponent-DaYX7dUF.cjs} +1 -1
- package/dist/{EChartComponentBase-BmS2KONN.js → EChartComponentBase-B-VNAC8K.js} +2 -2
- package/dist/{EChartComponentBase-CMN_pOMr.cjs → EChartComponentBase-C2sxqwSE.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-FtvC-aXY.js → EmergencyPlanPanel-CwWvSELn.js} +1 -1
- package/dist/{EmergencyPlanPanel-CVusdpDo.cjs → EmergencyPlanPanel-Dcj6mNDZ.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CrYylrTC.cjs → HistoryPlanDialog-CHHKFCEb.cjs} +1 -1
- package/dist/{HistoryPlanDialog-DliuSi0p.js → HistoryPlanDialog-MDXWiel6.js} +1 -1
- package/dist/{MonitoringMap-CBnv001f.cjs → MonitoringMap-CfcXyLMN.cjs} +1 -1
- package/dist/{MonitoringMap-DB3R5nAJ.js → MonitoringMap-Disr1Wm4.js} +2 -2
- package/dist/{UniverSheet-DFyIjurx.js → UniverSheet-BcuvQ33A.js} +2 -2
- package/dist/{UniverSheet-jy9kOyPN.cjs → UniverSheet-M8Z5JVxm.cjs} +1 -1
- package/dist/{accelerationChart-Ceo371ch.cjs → accelerationChart-DoqDRcpd.cjs} +1 -1
- package/dist/{accelerationChart-Q_Q_QlU7.js → accelerationChart-Dq5_6weP.js} +14 -14
- package/dist/{actionItem-BzMI_4-S.js → actionItem-BryBezOd.js} +2 -2
- package/dist/{actionItem-DB74CPi2.cjs → actionItem-JVOxJr61.cjs} +1 -1
- package/dist/{alarmLevelChart-CxmiBIKh.cjs → alarmLevelChart-C4_IhtlF.cjs} +1 -1
- package/dist/{alarmLevelChart-Bp3SLCMe.js → alarmLevelChart-DUysIMGJ.js} +2 -2
- package/dist/{alertTable-B1w_i0VB.cjs → alertTable-DWQGvAmY.cjs} +1 -1
- package/dist/{alertTable-DXzTm7mA.js → alertTable-nLYwM6ix.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-Dfanalux.js → aliasObjectSelectorDemo-Cgnw6vkp.js} +1 -1
- package/dist/{aliasObjectSelectorDemo-CRuq8zju.cjs → aliasObjectSelectorDemo-DdAJ_krx.cjs} +1 -1
- package/dist/{annualRainfallChart-DEeyac7q.cjs → annualRainfallChart-BVoSl6rW.cjs} +1 -1
- package/dist/{annualRainfallChart-D4Rhc84p.js → annualRainfallChart-C4P7sAvp.js} +2 -2
- package/dist/{aqi-BzCTxj0q.js → aqi-BZTi1MAr.js} +2 -2
- package/dist/{aqi-CBknBfTF.cjs → aqi-jvYPQWm2.cjs} +1 -1
- package/dist/{aqiIndass-CUs24FxP.cjs → aqiIndass-C028TDT1.cjs} +1 -1
- package/dist/{aqiIndass-BJGsJsmz.js → aqiIndass-CZfEX0GU.js} +18 -18
- package/dist/{areaDeformCurve-bSAkB3Pt.js → areaDeformCurve-B0DUtSgh.js} +2 -2
- package/dist/{areaDeformCurve-B8VGdoKK.cjs → areaDeformCurve-BXhSeaoy.cjs} +1 -1
- package/dist/{arrayCard-BkD5sytz.js → arrayCard-BlEclzhU.js} +2 -2
- package/dist/{arrayCard-kh5WRweD.cjs → arrayCard-CH1c-fdy.cjs} +1 -1
- package/dist/{audio-BTrvZwCy.js → audio-DssRoD8a.js} +2 -2
- package/dist/{audio-DwJN2gca.cjs → audio-kCcoKcES.cjs} +1 -1
- package/dist/{bar-DYIb4143.js → bar-C19ODKbU.js} +2 -2
- package/dist/{bar-DsyyzcxB.cjs → bar-Dijd0sQu.cjs} +1 -1
- package/dist/{bmp-DbEyuBZw.cjs → bmp-Bxw4TwUB.cjs} +1 -1
- package/dist/{bmp-Dt3mSkAr.js → bmp-DUTgixKN.js} +2 -2
- package/dist/{box-D7RsK5Qp.js → box-B44mc692.js} +2 -2
- package/dist/{box--u3HQFj9.cjs → box-CeE915Ww.cjs} +1 -1
- package/dist/{chartConfigPanel-DybQRqg6.cjs → chartConfigPanel-0O_o7wlV.cjs} +1 -1
- package/dist/{chartConfigPanel-CD-csrX-.js → chartConfigPanel-w0x44bWL.js} +1 -1
- package/dist/circleBar-BJoBZfyx.js +310 -0
- package/dist/circleBar-CVYAERg4.cjs +4 -0
- package/dist/{clock-Cj0HsizY.js → clock-C5FWG3xy.js} +2 -2
- package/dist/{clock-Dc9jgxHT.cjs → clock-CFE1WkOQ.cjs} +1 -1
- package/dist/{clt-uJT1jgHk.js → clt-Cycf8W0K.js} +2 -2
- package/dist/{clt-CBbtQxMc.cjs → clt-DEzN6BGU.cjs} +1 -1
- package/dist/{cmc-JJ6eTxB3.js → cmc-C9PYd5ym.js} +2 -2
- package/dist/{cmc-CeTCKLBx.cjs → cmc-DR3T47y4.cjs} +1 -1
- package/dist/{cmp-CGZ_2BdE.cjs → cmp-DsKyXUHa.cjs} +1 -1
- package/dist/{cmp-D9qlHJoW.js → cmp-Dsc6RprW.js} +2 -2
- package/dist/{conclusionCard-BsLeh3yq.js → conclusionCard-BGUQzWMI.js} +2 -2
- package/dist/{conclusionCard-CwLwj3zj.cjs → conclusionCard-sUyiTSA6.cjs} +1 -1
- package/dist/{controlList-l2ZYM6m5.cjs → controlList-B6EasOKV.cjs} +1 -1
- package/dist/{controlList-CYNS0ArB.js → controlList-DeLBnY0K.js} +2 -2
- package/dist/{controlRecordList-N79_cTON.cjs → controlRecordList-D63e4vQn.cjs} +1 -1
- package/dist/{controlRecordList-BZmCvISO.js → controlRecordList-DCz4Xt9n.js} +2 -2
- package/dist/{controlRecordListAPP-aDj520mp.js → controlRecordListAPP-D0cUYXLY.js} +2 -2
- package/dist/{controlRecordListAPP-DOzMDV4x.cjs → controlRecordListAPP-pfRdnvv1.cjs} +1 -1
- package/dist/{crd-bm_BHuoV.js → crd-B4ZnlIJq.js} +2 -2
- package/dist/{crd-CV4kMUTB.cjs → crd-DRUEk13j.cjs} +1 -1
- package/dist/{ctrBtn-DYceHTAq.js → ctrBtn-5odXmYf7.js} +17 -17
- package/dist/{ctrBtn-Cs6ZmfyJ.cjs → ctrBtn-Bm79a5Sj.cjs} +1 -1
- package/dist/{ctrSet-B6PlTSBE.js → ctrSet-B1dpatKF.js} +33 -33
- package/dist/ctrSet-BMnG-OkK.cjs +1 -0
- package/dist/{ctrSwitch-B9lHJgQn.cjs → ctrSwitch-A9LVcYIN.cjs} +1 -1
- package/dist/{ctrSwitch-E0FM_4f2.js → ctrSwitch-C5aPCuez.js} +39 -39
- package/dist/{dataManagement-bKmkV2VY.cjs → dataManagement-8NQDTifq.cjs} +1 -1
- package/dist/{dataManagement-BAHa-OHl.js → dataManagement-Dqf-T0x4.js} +2 -2
- package/dist/{dataReport-B60Rb4sb.js → dataReport-CT4_ly92.js} +2 -2
- package/dist/{dataReport-JcrjpK_j.cjs → dataReport-CiB4XAKO.cjs} +1 -1
- package/dist/{dataTable-BmvewFlr.js → dataTable-BWc0XycI.js} +1 -1
- package/dist/{dataTable-CX6uktOu.cjs → dataTable-BiyK3INj.cjs} +1 -1
- package/dist/{datetime-BPM_lGiY.cjs → datetime-BVigJCWY.cjs} +1 -1
- package/dist/{datetime-DARBbZJx.js → datetime-Du0fBPZ3.js} +2 -2
- package/dist/{deepClusterSlipSurface-BF77Vp7G.js → deepClusterSlipSurface-BJBW_lMx.js} +2 -2
- package/dist/{deepClusterSlipSurface-IywdiDlA.cjs → deepClusterSlipSurface-Dh-nEUwt.cjs} +1 -1
- package/dist/{deepDataMatrix-sRXkGqdm.cjs → deepDataMatrix-CGCLKdVW.cjs} +1 -1
- package/dist/{deepDataMatrix--zgQoWer.js → deepDataMatrix-CMJMtqVu.js} +2 -2
- package/dist/{deepDisplacement3D-BYt49pzj.js → deepDisplacement3D-BdzBAOZZ.js} +2 -2
- package/dist/{deepDisplacement3D-BET8Ftuc.cjs → deepDisplacement3D-DcwFkrri.cjs} +1 -1
- package/dist/{deepDisplacementChart-BGBhipUx.js → deepDisplacementChart-Be9lxAWP.js} +25 -25
- package/dist/{deepDisplacementChart-D7loYUI5.cjs → deepDisplacementChart-Ct7iZvof.cjs} +1 -1
- package/dist/{deepDisplacementChart-B2zPpsk6.js → deepDisplacementChart-D_dq-XPI.js} +16 -16
- package/dist/{deepDisplacementChart-BuuM485C.cjs → deepDisplacementChart-EjGt1LJp.cjs} +1 -1
- package/dist/{deepDisplacementView-Bwk9p_Qc.js → deepDisplacementView-1eSVkmqk.js} +1 -1
- package/dist/{deepDisplacementView-CTBH3IxP.cjs → deepDisplacementView-VyO91qP0.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-BqTigCTs.js → deepNodeTemperatureChart-BUvEk5T9.js} +2 -2
- package/dist/{deepNodeTemperatureChart-CTLHLf0w.cjs → deepNodeTemperatureChart-DPnQPYKr.cjs} +1 -1
- package/dist/{deepTangentAngleChart-5oxzMpMF.js → deepTangentAngleChart-5mJOFDsK.js} +2 -2
- package/dist/{deepTangentAngleChart-CHxB8OFL.cjs → deepTangentAngleChart-hJHt5aoD.cjs} +1 -1
- package/dist/{deepTemperatureField-Cr6YbuR_.cjs → deepTemperatureField-BAS3omfm.cjs} +1 -1
- package/dist/{deepTemperatureField-Bhk89D3D.js → deepTemperatureField-DlrB4dKP.js} +3 -3
- package/dist/{deepTrendChart-CAbdVR8d.js → deepTrendChart-CLNAoy8P.js} +2 -2
- package/dist/{deepTrendChart-Ch94j4W9.cjs → deepTrendChart-DAM_Ds5z.cjs} +1 -1
- package/dist/{deviceOnlineStatus-C5ODwFsY.js → deviceOnlineStatus-1UHPkOr2.js} +2 -2
- package/dist/{deviceOnlineStatus-DxsTb4Vb.cjs → deviceOnlineStatus-D_oS1F9j.cjs} +1 -1
- package/dist/{deviceStatus-DPfOQCSX.js → deviceStatus-CcPjyhrB.js} +10 -10
- package/dist/{deviceStatus-CjFTpCaU.cjs → deviceStatus-DdFB86J7.cjs} +1 -1
- package/dist/{displacementDataTable-DG36VWok.js → displacementDataTable-B7x4ogcW.js} +9 -9
- package/dist/{displacementDataTable-BIqBEkul.cjs → displacementDataTable-NlqtVyYg.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DRltcPfa.cjs → displacementTrajectoryChart-BRy93sPt.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-Cpmj24Jn.js → displacementTrajectoryChart-C10Uroic.js} +11 -11
- package/dist/{displacementTrendChart-DpD79zii.cjs → displacementTrendChart-B5NRRQzD.cjs} +1 -1
- package/dist/{displacementTrendChart-D1yfRFQb.js → displacementTrendChart-D-_Ls7J4.js} +11 -11
- package/dist/{dxf-C_9cH0WU.cjs → dxf-B7DB_30i.cjs} +1 -1
- package/dist/{dxf-zbCakRgh.js → dxf-CqFFtWRq.js} +2 -2
- package/dist/{dzc-CfPVaIgj.js → dzc-BjA7dXWS.js} +2 -2
- package/dist/{dzc-CejqHneE.cjs → dzc-DT6Chp2Q.cjs} +1 -1
- package/dist/{emergencyPlan-dEwML5xC.cjs → emergencyPlan-DkErPudJ.cjs} +1 -1
- package/dist/{emergencyPlan-LbeRH-P9.js → emergencyPlan-IJ0wIcFl.js} +3 -3
- package/dist/{evn-DsD_MKQd.js → evn-DeaQXEPO.js} +2 -2
- package/dist/{evn-BvgQ3o3T.cjs → evn-Dh71UuO9.cjs} +1 -1
- package/dist/{evolutionChart-B4C9qB3I.js → evolutionChart-C3oCrBf3.js} +3 -3
- package/dist/{evolutionChart-Dt5-xRsy.cjs → evolutionChart-C7Ae0ZiT.cjs} +1 -1
- package/dist/{fileViewer-B0LdLy2P.js → fileViewer-8Us72XkI.js} +2 -2
- package/dist/{fileViewer-DZIREgL0.cjs → fileViewer-ERPHU_Zd.cjs} +1 -1
- package/dist/{filterBar-D_jcuqwP.cjs → filterBar-CW7bn1-p.cjs} +1 -1
- package/dist/{filterBar-Bt6w4_xK.js → filterBar-D9xz6-NL.js} +2 -2
- package/dist/{fireCombustionCurve-CHRd1nSv.cjs → fireCombustionCurve-CqiMMU_8.cjs} +1 -1
- package/dist/{fireCombustionCurve-C2rWY89D.js → fireCombustionCurve-DIUwJpXU.js} +3 -3
- package/dist/{fireFilterBar-CpwHRisZ.js → fireFilterBar-BG-StguC.js} +2 -2
- package/dist/{fireFilterBar-DX8qH1rr.cjs → fireFilterBar-Beqb_Dns.cjs} +1 -1
- package/dist/{fireHistoryTable-B38M6w5w.cjs → fireHistoryTable-CRzrvuo8.cjs} +1 -1
- package/dist/{fireHistoryTable-DcSgHt5q.js → fireHistoryTable-ChqoTAYc.js} +2 -2
- package/dist/{gag-qDNPdFJu.cjs → gag-Bx9QvvT7.cjs} +1 -1
- package/dist/{gag-BErw_nsf.js → gag-Cf3zHBXx.js} +2 -2
- package/dist/{gasStationList-BREZbC_k.js → gasStationList--rmQJ0jp.js} +2 -2
- package/dist/{gasStationList-NhJa4GO6.cjs → gasStationList-BjyCsqqM.cjs} +1 -1
- package/dist/{geo3dViewer-D9uSt0up.cjs → geo3dViewer-Ch6d1IMg.cjs} +1 -1
- package/dist/{geo3dViewer-zAN1eIza.js → geo3dViewer-mDKnyJMa.js} +3 -3
- package/dist/{glbModel-C4FiDMM5.cjs → glbModel-DAofoZCs.cjs} +1 -1
- package/dist/{glbModel-i6HvK0m8.js → glbModel-aQXnlO7p.js} +2 -2
- package/dist/{globalObjectSelector-BrVwJEgp.js → globalObjectSelector-AF67vBmT.js} +1 -1
- package/dist/{globalObjectSelector-CR74psMa.cjs → globalObjectSelector-C2t3Jtm6.cjs} +1 -1
- package/dist/{gnssFilterBar-BkfBQWXF.cjs → gnssFilterBar-4JNWA-CR.cjs} +1 -1
- package/dist/{gnssFilterBar-BEHXIIKI.js → gnssFilterBar-BgpevrmL.js} +2 -2
- package/dist/{gnssHistoryTable-DDWGE_ge.js → gnssHistoryTable-De2cn5dP.js} +2 -2
- package/dist/{gnssHistoryTable-CQ-7ESYj.cjs → gnssHistoryTable-xnzV8l_Q.cjs} +1 -1
- package/dist/{gnssMapView-C9iRAzym.js → gnssMapView-C9IqBqEw.js} +4 -4
- package/dist/{gnssMapView-P6ed3l_W.cjs → gnssMapView-D9V5XNlw.cjs} +2 -2
- package/dist/{gnssSectionProfile-CIZnF7VA.cjs → gnssSectionProfile-CxXhhOCd.cjs} +1 -1
- package/dist/{gnssSectionProfile-BIqyABEf.js → gnssSectionProfile-HfiKe0-s.js} +2 -2
- package/dist/{gnssTimeSeriesChart-BgIM5U-H.cjs → gnssTimeSeriesChart-C4onoU3C.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-DqH9JFBF.js → gnssTimeSeriesChart-CvoTHHqa.js} +2 -2
- package/dist/{gnssXYTrajectory-CH8864n6.cjs → gnssXYTrajectory-Dug2OwRw.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BviUjxG9.js → gnssXYTrajectory-g_pRuL75.js} +2 -2
- package/dist/{grd-BhpBxrpa.cjs → grd-CYg3e2B0.cjs} +1 -1
- package/dist/{grd-DfkGlcW6.js → grd-DqKnlgw_.js} +20 -20
- package/dist/{grdIndass-ByznFwzc.js → grdIndass-CUE7Gb-W.js} +2 -2
- package/dist/{grdIndass-DhMfHz31.cjs → grdIndass-D3wFyDpD.cjs} +1 -1
- package/dist/{grg-CVBoetQY.js → grg-BpNY4dsd.js} +6 -6
- package/dist/{grg-uzBlEm_K.cjs → grg-Cu7muu3_.cjs} +1 -1
- package/dist/{gridview-Dt3i1t5d.js → gridview-BLabvs9I.js} +2 -2
- package/dist/{gridview-CyXCqWKq.cjs → gridview-BUsfJz0o.cjs} +1 -1
- package/dist/{groundwaterFilterBar-BbS81e9a.js → groundwaterFilterBar-BQFayVwl.js} +2 -2
- package/dist/{groundwaterFilterBar-C4xCPqa_.cjs → groundwaterFilterBar-f9qXTkoQ.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DvjFvCm5.cjs → groundwaterProfileChart-AN7OLcKv.cjs} +2 -2
- package/dist/{groundwaterProfileChart-BBPFrt5W.js → groundwaterProfileChart-pVEgD-ec.js} +3 -3
- package/dist/{groundwaterTimeCurve-Cb3xlM78.cjs → groundwaterTimeCurve-BoJnmOYq.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-CKlvc2nQ.js → groundwaterTimeCurve-DRoycHDe.js} +3 -3
- package/dist/{groupCard-BVdjzdqF.cjs → groupCard-Dq6TXOZt.cjs} +1 -1
- package/dist/{groupCard-BBzDl9uX.js → groupCard-fPMXeW8L.js} +2 -2
- package/dist/{headerBar-B5Z8UviF.cjs → headerBar-Da-XmgLi.cjs} +1 -1
- package/dist/{headerBar-Dty08mHR.js → headerBar-ap2M954P.js} +2 -2
- package/dist/{history-yI8XiwXi.cjs → history-3PgmioqY.cjs} +1 -1
- package/dist/{history-TkSKA8F1.js → history-BC8RESyu.js} +1 -1
- package/dist/{index-YNdVib_6.js → index-CqVPeq0-.js} +455 -453
- package/dist/index-OgmTZiO-.cjs +612 -0
- package/dist/{insarDeformChart-C9UkWIL9.js → insarDeformChart-CKBcUJCV.js} +2 -2
- package/dist/{insarDeformChart-Dr9Ve1vY.cjs → insarDeformChart-DABg6b8J.cjs} +1 -1
- package/dist/{insarImageViewer-DAKBn2vV.cjs → insarImageViewer-9FpJDh1K.cjs} +1 -1
- package/dist/{insarImageViewer-DZbq2xch.js → insarImageViewer-C1XBU0YL.js} +2 -2
- package/dist/{kds-BkH8cJCu.cjs → kds-B04fJsat.cjs} +1 -1
- package/dist/{kds-__I8-o5i.js → kds-D6TYb16w.js} +21 -21
- package/dist/{kpiCard-fRfv1QPb.cjs → kpiCard-Bfi2W9cH.cjs} +1 -1
- package/dist/{kpiCard-BzuF0qdE.js → kpiCard-D5S1M8Rs.js} +2 -2
- package/dist/{landslideMap-zD8SU2Lh.cjs → landslideMap-CWmIK6ca.cjs} +1 -1
- package/dist/{landslideMap-D84pku4Y.js → landslideMap-DXyIahAi.js} +3 -3
- package/dist/{landslideWarning-Cq-di-hN.cjs → landslideWarning-CPwRDf3u.cjs} +1 -1
- package/dist/{landslideWarning-0mckvEoZ.js → landslideWarning-DaI_F3dC.js} +5 -5
- package/dist/{layerTabs-COzqQ9mn.js → layerTabs-DJaWhtYa.js} +2 -2
- package/dist/{layerTabs-C2zq6a5M.cjs → layerTabs-DfVZUJvC.cjs} +1 -1
- package/dist/{leaflet-src-2tPn7QVH.js → leaflet-src-DU74PJcX.js} +1 -1
- package/dist/{leaflet-src-D8MF2j44.cjs → leaflet-src-gpxoqh6Y.cjs} +1 -1
- package/dist/{lerc-BHcVhBOn.cjs → lerc-ACN_ZV5f.cjs} +1 -1
- package/dist/{lerc-BCmG0CMS.js → lerc-ZmeF7NhV.js} +2 -2
- package/dist/{lin-niA_T9Ql.cjs → lin-BqSPUdmV.cjs} +1 -1
- package/dist/{lin-CQ6TCBCr.js → lin-DXM61jXV.js} +2 -2
- package/dist/{linIndass-J9rdji6E.js → linIndass-DQZjD3lL.js} +12 -12
- package/dist/{linIndass-nZx16Vos.cjs → linIndass-jqzXVoXv.cjs} +1 -1
- package/dist/{lst-DieyrYCh.js → lst-Bpf41jqR.js} +2 -2
- package/dist/{lst-Cw1XCAv0.cjs → lst-C9RrqCgo.cjs} +1 -1
- package/dist/{manualEntry-CCmyPMJm.js → manualEntry-BvKEwOnY.js} +2 -2
- package/dist/{manualEntry-ChhTpAF2.cjs → manualEntry-wG0RcQYe.cjs} +1 -1
- package/dist/{mapBackground-BzOdjhnZ.cjs → mapBackground-DOsGw2Dh.cjs} +1 -1
- package/dist/{mapBackground-CiiG2nHi.js → mapBackground-DxQdqWM2.js} +3 -3
- package/dist/{mappingList-CoBD8D27.js → mappingList-BRpK5eX_.js} +2 -2
- package/dist/{mappingList-D42mILiq.cjs → mappingList-C7qyzN6o.cjs} +1 -1
- package/dist/{markdownViewer-C3HUXDvf.js → markdownViewer-CZVNZ8jN.js} +2 -2
- package/dist/{markdownViewer-DHs9ekCh.cjs → markdownViewer-C_TA7AX-.cjs} +1 -1
- package/dist/{mix-control-modal-BEwriuWS.js → mix-control-modal-DITf1VAp.js} +1 -1
- package/dist/{mix-control-modal-DGd2S6Jd.cjs → mix-control-modal-DjG-ChQu.cjs} +1 -1
- package/dist/{mixGrid-Cnq99D09.cjs → mixGrid-Zk7NKpBw.cjs} +1 -1
- package/dist/{mixGrid-CBenxHD_.js → mixGrid-mbFlywYp.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mixiotObjectListApi-e1qL7PHh.cjs → mixiotObjectListApi-CRPxZbIS.cjs} +1 -1
- package/dist/{mixiotObjectListApi-CKJLXcnf.js → mixiotObjectListApi-cTDvF31d.js} +1 -1
- package/dist/{mjpegCamera-D8lB701i.js → mjpegCamera-B3m55jok.js} +2 -2
- package/dist/{mjpegCamera-DDFrZo-x.cjs → mjpegCamera-Da5NZX0r.cjs} +1 -1
- package/dist/{monitorAlert-C-mo-lDe.cjs → monitorAlert-BqUYN_BF.cjs} +1 -1
- package/dist/{monitorAlert-Z1dFDfPh.js → monitorAlert-sn_3TrGJ.js} +9 -9
- package/dist/{monitorData-CNRfV5Wt.cjs → monitorData-B-dcmDx3.cjs} +1 -1
- package/dist/{monitorData-DZhO9Gos.js → monitorData-RhTZn3fI.js} +11 -11
- package/dist/{monitorSpeedChart-DrRdMdGD.cjs → monitorSpeedChart-_L0zgWxs.cjs} +1 -1
- package/dist/{monitorSpeedChart-C5pN46lO.js → monitorSpeedChart-uWpHlkZd.js} +1 -1
- package/dist/{mxa-COpw24fq.cjs → mxa-BNnKgDyq.cjs} +1 -1
- package/dist/{mxa-BFQ70ksk.js → mxa-ClEVeLaa.js} +2 -2
- package/dist/{myValue-Eb3asTOC.cjs → myValue-DoBpTp1-.cjs} +1 -1
- package/dist/{myValue-Dosl4Ro5.js → myValue-Drhoqp_w.js} +2 -2
- package/dist/{myValueList-mcqRZanE.cjs → myValueList-BT6mKnwJ.cjs} +1 -1
- package/dist/{myValueList-Dkc10vr6.js → myValueList-BfIDIHUe.js} +2 -2
- package/dist/{objectList-FWkZ6PAs.js → objectList-CATv4N0g.js} +3 -3
- package/dist/{objectList-D4owr3ED.cjs → objectList-CM1T-IQo.cjs} +1 -1
- package/dist/{objectListAPP-CdfeZTgm.js → objectListAPP-BG9iL6S_.js} +3 -3
- package/dist/{objectListAPP-Bzevu1od.cjs → objectListAPP-lNp3RQsA.cjs} +1 -1
- package/dist/percentBar-BOQp427o.js +369 -0
- package/dist/percentBar-By73saGo.cjs +5 -0
- package/dist/{photo-Dmxxqgrg.cjs → photo-CFomIdjq.cjs} +1 -1
- package/dist/{photo-DxXTYq73.js → photo-N8uk9UzU.js} +2 -2
- package/dist/{pie-BxpiCEYe.cjs → pie-BzkMCV5O.cjs} +1 -1
- package/dist/{pie-COixdWUz.js → pie-DuWuL4rb.js} +2 -2
- package/dist/{placeholder-Ole-Or58.cjs → placeholder-B9T7qNoD.cjs} +1 -1
- package/dist/{placeholder-CLLNLxRC.js → placeholder-DI_zsp-O.js} +1 -1
- package/dist/{pressBtn-DwKg9PbD.cjs → pressBtn-B_D3cFPd.cjs} +1 -1
- package/dist/{pressBtn-C7Y-B8Dz.js → pressBtn-D-j1_nDJ.js} +38 -38
- package/dist/{processTable-CTkwZWWJ.js → processTable-B-X05x32.js} +2 -2
- package/dist/{processTable-DDcKkjJx.cjs → processTable-B5WzGKQr.cjs} +1 -1
- package/dist/{progressBar-7qHg67Sf.cjs → progressBar-19d-9U9p.cjs} +1 -1
- package/dist/{progressBar-9npgJ9jD.js → progressBar-F61-3H3E.js} +2 -2
- package/dist/{progressCircle-DP08TX08.js → progressCircle-Dp4XWdE0.js} +2 -2
- package/dist/{progressCircle-Xgjnl1KF.cjs → progressCircle-RZ36ttud.cjs} +1 -1
- package/dist/{qrcode-D6wDMo-f.cjs → qrcode-D8C5cFka.cjs} +1 -1
- package/dist/{qrcode-ClTSNzEN.js → qrcode-PeEXEcDd.js} +2 -2
- package/dist/{raceBar-CTmsN8VC.js → raceBar-BnkzNqH0.js} +2 -2
- package/dist/{raceBar-C8mVFHnd.cjs → raceBar-DuCYwMoq.cjs} +1 -1
- package/dist/{rad-DWCSD35t.js → rad-BdQ-1k0K.js} +66 -56
- package/dist/{rad-Dxaakm82.cjs → rad-DND2sEzm.cjs} +1 -1
- package/dist/{radarMapViewer-eEBE3MS-.js → radarMapViewer-BUT7ZD47.js} +2 -2
- package/dist/{radarMapViewer-U7IQJjQs.cjs → radarMapViewer-BtwXLg65.cjs} +1 -1
- package/dist/{rainfallFilterBar-DJTDGu7Z.js → rainfallFilterBar-0IX3rYUD.js} +2 -2
- package/dist/{rainfallFilterBar-ow_wdOwq.cjs → rainfallFilterBar-BVD1fsJF.cjs} +1 -1
- package/dist/{rainfallTimeCurve-CwGmJhxu.js → rainfallTimeCurve-BIt0Ax0l.js} +3 -3
- package/dist/{rainfallTimeCurve-BL1I5Z2D.cjs → rainfallTimeCurve-DvYAvU9a.cjs} +1 -1
- package/dist/{rangeLin-BqcJpIva.js → rangeLin-BpAilzGc.js} +2 -2
- package/dist/{rangeLin-BEz9xapa.cjs → rangeLin-DKjgf_Ab.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-NOkyU7G3.js → realtimeEvolutionMap-5rOyArZq.js} +2 -2
- package/dist/{realtimeEvolutionMap-mzXlR8gS.cjs → realtimeEvolutionMap-Feks0bxX.cjs} +1 -1
- package/dist/{regionBar-DDk-2UWS.js → regionBar-D2if9Cyv.js} +2 -2
- package/dist/{regionBar-CEfz0Yol.cjs → regionBar-oWO1HZta.cjs} +1 -1
- package/dist/{request-BIXfJXjX.js → request-BAa7KXPI.js} +1 -1
- package/dist/{request-BfG3yDz6.cjs → request-DRttaVjf.cjs} +1 -1
- package/dist/{retainer1-Cz5rXIJj.js → retainer1-Bz3hKsxS.js} +3 -3
- package/dist/{retainer1-Ch1oZMeA.cjs → retainer1-CA3lV3eb.cjs} +1 -1
- package/dist/{retainer2-DJ1R2GJE.cjs → retainer2-BnfP4WPr.cjs} +1 -1
- package/dist/{retainer2-DeelXgAZ.js → retainer2-UsoVsRXo.js} +3 -3
- package/dist/{retainerRecordList-DyhfjtfF.js → retainerRecordList-DbXRpaHy.js} +2 -2
- package/dist/{retainerRecordList-D3MsCnqy.cjs → retainerRecordList-jkXbz9xr.cjs} +1 -1
- package/dist/{retainerRecordListAPP-B_hCyRak.cjs → retainerRecordListAPP-CS4s1t0e.cjs} +1 -1
- package/dist/{retainerRecordListAPP-3Gr7db3D.js → retainerRecordListAPP-DI4f5Q6f.js} +2 -2
- package/dist/{ringTopN-fLinQVwX.cjs → ringTopN-BBryDUi9.cjs} +1 -1
- package/dist/{ringTopN-t9xaVCWg.js → ringTopN-BCZhDz0U.js} +2 -2
- package/dist/{riskRegionTable-CagcISBC.cjs → riskRegionTable-DtG9zTy5.cjs} +1 -1
- package/dist/{riskRegionTable-BThwQbTf.js → riskRegionTable-Dw573XX4.js} +2 -2
- package/dist/{sankey-BY_nwThw.cjs → sankey-BNmzRTH5.cjs} +1 -1
- package/dist/{sankey-Bwm0omQr.js → sankey-DHbOEbzP.js} +2 -2
- package/dist/{scd-DeYC1Rqx.js → scd-CNcTAStO.js} +2 -2
- package/dist/{scd-Bs1dG1w8.cjs → scd-Cf68XDF5.cjs} +1 -1
- package/dist/{sideMenu-CAEh3bwF.cjs → sideMenu-BW8ddV-x.cjs} +1 -1
- package/dist/{sideMenu-Db_Nc_xz.js → sideMenu-DKAAQcWF.js} +2 -2
- package/dist/{slopeStability-CVC68Qcj.js → slopeStability-Ds4exWb_.js} +10 -10
- package/dist/{slopeStability-BWg6jhBB.cjs → slopeStability-eVwuAmlY.cjs} +1 -1
- package/dist/{speedCurve-CK4CXHeC.js → speedCurve-B_j8P273.js} +2 -2
- package/dist/{speedCurve-DNNEIz4o.cjs → speedCurve-PtxSVJ8J.cjs} +1 -1
- package/dist/stackedBar-CC0JmrlS.cjs +2 -0
- package/dist/stackedBar-uMr9A877.js +325 -0
- package/dist/{stressFilterBar-DQ8nq8jV.js → stressFilterBar-B02kr6zY.js} +2 -2
- package/dist/{stressFilterBar-Cigl3IyR.cjs → stressFilterBar-Dh4fWQ90.cjs} +1 -1
- package/dist/{stressTimeCurve-BiduKfcg.cjs → stressTimeCurve-6eALY4dC.cjs} +1 -1
- package/dist/{stressTimeCurve-BEANw1F8.js → stressTimeCurve-D_Rc1PAY.js} +3 -3
- package/dist/{swiper-BgkvIN5U.js → swiper-BsAeDuw3.js} +2 -2
- package/dist/{swiper-MIRXMnxk.cjs → swiper-CMP_sa_i.cjs} +1 -1
- package/dist/{terminalConfigList-B3lqvQel.js → terminalConfigList-BjbgbZHU.js} +2 -2
- package/dist/{terminalConfigList-C3zRbQvM.cjs → terminalConfigList-C83kqf7d.cjs} +1 -1
- package/dist/{terminalList-ArxJ1jdO.cjs → terminalList-BnitlFL5.cjs} +1 -1
- package/dist/{terminalList-BevfdySj.js → terminalList-DPOBOIu3.js} +2 -2
- package/dist/{terminalListAPP-Cs0nnBfc.cjs → terminalListAPP-CSYL2-0G.cjs} +1 -1
- package/dist/{terminalListAPP-CbpVft_s.js → terminalListAPP-DI6ePX4Y.js} +2 -2
- package/dist/{textbox-CjkfmdaO.js → textbox-Dk4Q0jq3.js} +2 -2
- package/dist/{textbox-DC9YLTn5.cjs → textbox-OEvn1Q-J.cjs} +1 -1
- package/dist/{timeQueryBar-B69eldHQ.cjs → timeQueryBar-Bnqyhyy7.cjs} +1 -1
- package/dist/{timeQueryBar-CXd9yNgD.js → timeQueryBar-CoFozltp.js} +1 -1
- package/dist/{timeSeries-CLnLd-gX.js → timeSeries-BYWoWCYY.js} +3 -3
- package/dist/{timeSeries-fB14CgRy.cjs → timeSeries-Dw-90k-1.cjs} +1 -1
- package/dist/{timeSeriesCurve-DOaxDpjr.cjs → timeSeriesCurve-BkdQ_KeE.cjs} +1 -1
- package/dist/{timeSeriesCurve-CMcCzR13.js → timeSeriesCurve-iPezzxLC.js} +3 -3
- package/dist/{toggleBtn-BiUyrx_o.cjs → toggleBtn-BC4vsMGo.cjs} +1 -1
- package/dist/{toggleBtn-CWmuTxSD.js → toggleBtn-CAXFfijH.js} +2 -2
- package/dist/{trajectoryConfigPanel-D7IDlQIH.cjs → trajectoryConfigPanel-BXpItzqc.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-DKLN3KY5.js → trajectoryConfigPanel-DlN8AZFo.js} +1 -1
- package/dist/{trajectoryScatter-TEactc8J.js → trajectoryScatter-CxDHL1um.js} +2 -2
- package/dist/{trajectoryScatter-CL-2FKZe.cjs → trajectoryScatter-_1LoFjV7.cjs} +1 -1
- package/dist/{universalConfigPanel-B8JIiLXp.cjs → universalConfigPanel-B6jchzUf.cjs} +1 -1
- package/dist/{universalConfigPanel-wicv4Ypw.js → universalConfigPanel-BlDmNWc0.js} +1 -1
- package/dist/{universalTable-BlTdL3c0.cjs → universalTable-C-oWFP8u.cjs} +1 -1
- package/dist/{universalTable-8e3LrZvD.js → universalTable-DbqMwXuL.js} +2 -2
- package/dist/{video-DpRcCZZQ.js → video-DHJ-flUN.js} +2 -2
- package/dist/{video-nPkrKQyL.cjs → video-HxDzMY56.cjs} +1 -1
- package/dist/{videoMonitor-DOVw5mE0.cjs → videoMonitor-CGlM7hRf.cjs} +1 -1
- package/dist/{videoMonitor-Z_7cZk5Y.js → videoMonitor-Golf73FP.js} +9 -9
- package/dist/{vlu-BQCrHSlq.js → vlu-Wd6itaBz.js} +2 -2
- package/dist/{vlu-DEIgGiO-.cjs → vlu-ZFZU2wAQ.cjs} +1 -1
- package/dist/{warningOverview-DXJNk5bT.cjs → warningOverview-BkDN-4f-.cjs} +1 -1
- package/dist/{warningOverview-C7J5aXTJ.js → warningOverview-DuBMKv_H.js} +3 -3
- package/dist/{weather-C1sjTcwC.js → weather-BRKZBZR9.js} +2 -2
- package/dist/{weather-B1Pfcn75.cjs → weather-C_9Xmi0b.cjs} +1 -1
- package/dist/{windLin-QKZKJ1h_.cjs → windLin-6KfyL12C.cjs} +1 -1
- package/dist/{windLin-vlM63Hu7.js → windLin-DCZqaY1W.js} +2 -2
- package/package.json +1 -1
- package/dist/circleBar-4md65KCX.js +0 -305
- package/dist/circleBar-DJY37bwB.cjs +0 -5
- package/dist/ctrSet-XqnGgYPn.cjs +0 -1
- package/dist/index-6QhTSPkL.cjs +0 -612
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
var I = Object.defineProperty, D = Object.defineProperties;
|
|
2
|
+
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var B = Object.getOwnPropertySymbols;
|
|
4
|
+
var L = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var E = (a, i, l) => i in a ? I(a, i, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[i] = l, N = (a, i) => {
|
|
6
|
+
for (var l in i || (i = {}))
|
|
7
|
+
L.call(i, l) && E(a, l, i[l]);
|
|
8
|
+
if (B)
|
|
9
|
+
for (var l of B(i))
|
|
10
|
+
R.call(i, l) && E(a, l, i[l]);
|
|
11
|
+
return a;
|
|
12
|
+
}, k = (a, i) => D(a, F(i));
|
|
13
|
+
var A = (a, i, l) => new Promise((h, y) => {
|
|
14
|
+
var v = (f) => {
|
|
15
|
+
try {
|
|
16
|
+
c(l.next(f));
|
|
17
|
+
} catch (C) {
|
|
18
|
+
y(C);
|
|
19
|
+
}
|
|
20
|
+
}, z = (f) => {
|
|
21
|
+
try {
|
|
22
|
+
c(l.throw(f));
|
|
23
|
+
} catch (C) {
|
|
24
|
+
y(C);
|
|
25
|
+
}
|
|
26
|
+
}, c = (f) => f.done ? h(f.value) : Promise.resolve(f.value).then(v, z);
|
|
27
|
+
c((l = l.apply(a, i)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as M, computed as P, openBlock as j, createElementBlock as V, normalizeStyle as x, unref as d, createElementVNode as m, toDisplayString as w, Fragment as W, renderList as U, renderSlot as q, nextTick as K } from "vue";
|
|
30
|
+
import { l as G, C as $, _ as J } from "./index-CqVPeq0-.js";
|
|
31
|
+
import "element-plus";
|
|
32
|
+
import { E as Q } from "./EChartComponentBase-B-VNAC8K.js";
|
|
33
|
+
import { g as X } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
+
import { A as Y, D as Z } from "./ele-circleBar-icon-DNBUxt0A.js";
|
|
35
|
+
import { u as tt, i as et, a as ot } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
36
|
+
import { i as it } from "./install-DdM8j5Ll.js";
|
|
37
|
+
import { i as lt } from "./install-CEl1AYgZ.js";
|
|
38
|
+
import { i as at } from "./install-CIdzgJ44.js";
|
|
39
|
+
import { i as st } from "./echarts-Bp7QN4X6.js";
|
|
40
|
+
const rt = { class: "mix-body" }, nt = ["id"], ct = { class: "bar-wrap" }, ut = {
|
|
41
|
+
DEFAULT_ICON: Z,
|
|
42
|
+
ACTIVE_ICON: Y,
|
|
43
|
+
NAME_CN: "环形图",
|
|
44
|
+
NAME_EN: "CircleBar",
|
|
45
|
+
ORDER: 2,
|
|
46
|
+
PLATFORM: ["pc", "screen", "mobile"]
|
|
47
|
+
}, dt = {
|
|
48
|
+
titleColor: "#111",
|
|
49
|
+
textColor: "#111",
|
|
50
|
+
bgColor: "#fff",
|
|
51
|
+
barColor: "#e5e5e5",
|
|
52
|
+
radiusSize: 8,
|
|
53
|
+
textSize: 12,
|
|
54
|
+
barHeight: 10,
|
|
55
|
+
isHideTitle: !1,
|
|
56
|
+
showTotal: !0,
|
|
57
|
+
fixed: {
|
|
58
|
+
value: 2,
|
|
59
|
+
type: "number",
|
|
60
|
+
label: "component.options.circleBar_fixed",
|
|
61
|
+
dependent: "showTotal"
|
|
62
|
+
},
|
|
63
|
+
totalText: {
|
|
64
|
+
value: "总数",
|
|
65
|
+
type: "string",
|
|
66
|
+
label: "component.options.circleBar_totalText",
|
|
67
|
+
dependent: "showTotal"
|
|
68
|
+
},
|
|
69
|
+
titleAlign: "left",
|
|
70
|
+
titleWeight: "bold",
|
|
71
|
+
titleBgColor: "transparent",
|
|
72
|
+
titleBorderType: "none",
|
|
73
|
+
titleBorderColor: "#cccccc",
|
|
74
|
+
titleBorderWidth: 1,
|
|
75
|
+
titlePaddingH: 8,
|
|
76
|
+
titlePaddingV: 4
|
|
77
|
+
}, H = [
|
|
78
|
+
{
|
|
79
|
+
name: "参数一",
|
|
80
|
+
fv: "",
|
|
81
|
+
color: "#4162ff",
|
|
82
|
+
object_id: "",
|
|
83
|
+
default: "10",
|
|
84
|
+
value: 10
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "参数二",
|
|
88
|
+
fv: "",
|
|
89
|
+
color: "#3bbc6a",
|
|
90
|
+
object_id: "",
|
|
91
|
+
default: "10",
|
|
92
|
+
value: 10
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "参数三",
|
|
96
|
+
fv: "",
|
|
97
|
+
color: "#e24359",
|
|
98
|
+
object_id: "",
|
|
99
|
+
default: "10",
|
|
100
|
+
value: 10
|
|
101
|
+
}
|
|
102
|
+
], ht = ["name", "fv", "object_id", "color", "default"], ft = ["mosaic", "statistics", "calculate"], pt = {
|
|
103
|
+
useAlias: !1,
|
|
104
|
+
multiObject: !1,
|
|
105
|
+
source: "mosaic"
|
|
106
|
+
}, mt = { DEFAULT: ut, OPTIONS: dt, DATA: H, PARAMS: ht, SOURCE: ft, COMMON: pt }, bt = /* @__PURE__ */ M(k(N({}, mt), {
|
|
107
|
+
__name: "circleBar",
|
|
108
|
+
props: {
|
|
109
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
110
|
+
uid: { type: String, default: "" },
|
|
111
|
+
mode: { type: String, default: "edit" },
|
|
112
|
+
theme: { type: String, default: "light" }
|
|
113
|
+
},
|
|
114
|
+
setup(a) {
|
|
115
|
+
tt([
|
|
116
|
+
it,
|
|
117
|
+
lt,
|
|
118
|
+
et,
|
|
119
|
+
ot,
|
|
120
|
+
at
|
|
121
|
+
]);
|
|
122
|
+
const i = a, l = G();
|
|
123
|
+
let h = 0;
|
|
124
|
+
class y extends Q {
|
|
125
|
+
extractStyles() {
|
|
126
|
+
return {
|
|
127
|
+
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
128
|
+
titleColor: this.getOptionValue("titleColor", "#111"),
|
|
129
|
+
textColor: this.getOptionValue("textColor", "#111"),
|
|
130
|
+
barColor: this.getOptionValue("barColor", "#e5e5e5"),
|
|
131
|
+
radiusSize: this.getOptionValue("radiusSize", 8),
|
|
132
|
+
textSize: this.getOptionValue("textSize", 12),
|
|
133
|
+
barHeight: this.getOptionValue("barHeight", 10),
|
|
134
|
+
isHideTitle: this.getOptionValue("isHideTitle", !1),
|
|
135
|
+
showTotal: this.getOptionValue("showTotal", !0),
|
|
136
|
+
fixed: this.getOptionValue("fixed", 2),
|
|
137
|
+
totalText: this.getOptionValue("totalText", "总数")
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
buildCenterTitleText() {
|
|
141
|
+
const t = Number(this.getOptionValue("fixed", 2)), e = Number.isFinite(t) ? t : 2, o = this.getOptionValue("totalText", "总数");
|
|
142
|
+
return [
|
|
143
|
+
`{value|${h.toFixed(e)}}`,
|
|
144
|
+
`{name|${o || "总数"}}`
|
|
145
|
+
].join(`
|
|
146
|
+
`);
|
|
147
|
+
}
|
|
148
|
+
init() {
|
|
149
|
+
return A(this, null, function* () {
|
|
150
|
+
var t;
|
|
151
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), (t = this.props.conf.data) != null && t.length || (this.props.conf.data = H), this.props.conf.data.forEach((e) => {
|
|
152
|
+
e.default !== void 0 && e.default !== "" && (e.value = Number(e.default) || 0);
|
|
153
|
+
}), h = this.props.conf.data.reduce(
|
|
154
|
+
(e, o) => e + Number(o.value || 0),
|
|
155
|
+
0
|
|
156
|
+
), K(() => this.initChart());
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
initChart() {
|
|
160
|
+
var e, o, n;
|
|
161
|
+
const t = document.querySelector(`#${this.echartId}`);
|
|
162
|
+
t && (this.chartObj || (this.chartObj = st(t), this.setupResizeListener(t)), (e = this.chartObj) == null || e.setOption(this.getChartOption(), !0), this.props.mode === "preview" && ((o = this.chartObj) == null || o.off("click"), (n = this.chartObj) == null || n.on("click", (s) => {
|
|
163
|
+
var u, O, b, g, p, S;
|
|
164
|
+
const r = s == null ? void 0 : s.name;
|
|
165
|
+
if (typeof r == "string" && r) {
|
|
166
|
+
const _ = ((O = (u = this.props.conf) == null ? void 0 : u.options) == null ? void 0 : O.linkChannel) === "custom" ? (g = (b = this.props.conf) == null ? void 0 : b.options) == null ? void 0 : g.customChannel : (S = (p = this.props.conf) == null ? void 0 : p.options) == null ? void 0 : S.linkChannel;
|
|
167
|
+
l.publish(_ || "circleBar", "circleBar", {
|
|
168
|
+
objectId: "",
|
|
169
|
+
deviceId: "",
|
|
170
|
+
type: "select",
|
|
171
|
+
fieldKey: r,
|
|
172
|
+
fv: N({ key: r }, s),
|
|
173
|
+
source: "circleBar"
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
})));
|
|
177
|
+
}
|
|
178
|
+
getChartOption() {
|
|
179
|
+
const t = this.Style.value, { data: e, name: o } = this.props.conf, n = e.map(
|
|
180
|
+
(r, u) => r.color || $[u]
|
|
181
|
+
), s = e.map((r) => ({
|
|
182
|
+
value: r.value || 0,
|
|
183
|
+
name: r.name
|
|
184
|
+
}));
|
|
185
|
+
return {
|
|
186
|
+
title: {
|
|
187
|
+
zlevel: 0,
|
|
188
|
+
show: t.showTotal,
|
|
189
|
+
text: this.buildCenterTitleText(),
|
|
190
|
+
textStyle: {
|
|
191
|
+
rich: {
|
|
192
|
+
value: { color: t.textColor, fontSize: t.textSize, fontWeight: "bold", lineHeight: t.textSize + 8 },
|
|
193
|
+
name: { color: t.textColor, lineHeight: t.textSize + 8, fontSize: t.textSize }
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
top: "center",
|
|
197
|
+
left: "center"
|
|
198
|
+
},
|
|
199
|
+
color: n,
|
|
200
|
+
series: [
|
|
201
|
+
{
|
|
202
|
+
name: o,
|
|
203
|
+
type: "pie",
|
|
204
|
+
radius: ["50%", "85%"],
|
|
205
|
+
center: ["50%", "50%"],
|
|
206
|
+
data: s,
|
|
207
|
+
label: { position: "center", show: !1, color: "inherit" },
|
|
208
|
+
emphasis: {
|
|
209
|
+
scale: 0,
|
|
210
|
+
label: {
|
|
211
|
+
show: t.showTotal,
|
|
212
|
+
fontSize: t.textSize,
|
|
213
|
+
fontWeight: "bold",
|
|
214
|
+
formatter: `{d}%
|
|
215
|
+
{b}`,
|
|
216
|
+
lineHeight: t.textSize + 8
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
setHistoryData(t) {
|
|
224
|
+
var n;
|
|
225
|
+
if (!t || !(t != null && t.length)) return;
|
|
226
|
+
const { data: e } = this.props.conf, o = this.chartObj.getOption();
|
|
227
|
+
if (h = 0, o.series[0].data.forEach((s, r) => {
|
|
228
|
+
var u;
|
|
229
|
+
s.value = (u = t[r].data[0]) != null ? u : 0, h += s.value, e[r].value = s.value;
|
|
230
|
+
}), (n = o.title) != null && n[0]) {
|
|
231
|
+
const s = this.getOptionValue("showTotal", !0);
|
|
232
|
+
o.title[0].show = s, o.title[0].text = this.buildCenterTitleText();
|
|
233
|
+
}
|
|
234
|
+
this.chartObj.setOption(o, !0);
|
|
235
|
+
}
|
|
236
|
+
setSocketData(t) {
|
|
237
|
+
var s, r, u, O;
|
|
238
|
+
if (!t || !this.chartObj) return;
|
|
239
|
+
const { data: e, options: o } = this.props.conf, n = this.chartObj.getOption();
|
|
240
|
+
e.forEach((b, g) => {
|
|
241
|
+
var S, _;
|
|
242
|
+
const p = this.extractDataValue(t, b.fv);
|
|
243
|
+
b.value = p != null ? p : 0, (_ = (S = n.series) == null ? void 0 : S[0]) != null && _.data && (n.series[0].data[g].value = p != null ? p : 0);
|
|
244
|
+
}), h = e.reduce((b, g) => b + Number(g.value || 0), 0), (s = n.title) != null && s[0] && (n.title[0].text = [
|
|
245
|
+
`{value|${h.toFixed(((r = o == null ? void 0 : o.fixed) == null ? void 0 : r.value) || 2)}}`,
|
|
246
|
+
`{name|${((u = o == null ? void 0 : o.totalText) == null ? void 0 : u.value) || "总数"}}`
|
|
247
|
+
].join(`
|
|
248
|
+
`)), (O = this.chartObj) == null || O.setOption(n);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
const v = new y(i, "circleBar"), z = v.getEchartId();
|
|
252
|
+
v.setupLifecycle();
|
|
253
|
+
const c = v.getStyle(), f = P(() => X(i.conf.options)), C = (T) => {
|
|
254
|
+
const t = Number(T), e = Number(h);
|
|
255
|
+
return !isNaN(t) && !isNaN(e) && e !== 0 ? (t / e * 100).toFixed(2) + "%" : "0%";
|
|
256
|
+
};
|
|
257
|
+
return (T, t) => (j(), V("div", {
|
|
258
|
+
class: "mix-component",
|
|
259
|
+
style: x({
|
|
260
|
+
background: d(c).bgColor,
|
|
261
|
+
borderRadius: `${d(c).radiusSize}px`
|
|
262
|
+
})
|
|
263
|
+
}, [
|
|
264
|
+
m("div", {
|
|
265
|
+
class: "mix-title",
|
|
266
|
+
style: x(f.value)
|
|
267
|
+
}, w(a.conf.caption || a.conf.name), 5),
|
|
268
|
+
m("div", rt, [
|
|
269
|
+
m("div", {
|
|
270
|
+
class: "echart-container",
|
|
271
|
+
id: d(z)
|
|
272
|
+
}, null, 8, nt),
|
|
273
|
+
m("div", ct, [
|
|
274
|
+
(j(!0), V(W, null, U(a.conf.data, (e, o) => (j(), V("div", {
|
|
275
|
+
class: "bar-item level flex",
|
|
276
|
+
key: o
|
|
277
|
+
}, [
|
|
278
|
+
m("div", {
|
|
279
|
+
class: "label",
|
|
280
|
+
style: x({ color: d(c).textColor, fontSize: `${d(c).textSize}px` })
|
|
281
|
+
}, w(e.name), 5),
|
|
282
|
+
m("div", {
|
|
283
|
+
class: "bar",
|
|
284
|
+
style: x({
|
|
285
|
+
height: d(c).barHeight + "px",
|
|
286
|
+
backgroundColor: d(c).barColor
|
|
287
|
+
})
|
|
288
|
+
}, [
|
|
289
|
+
m("div", {
|
|
290
|
+
class: "percent",
|
|
291
|
+
style: x({
|
|
292
|
+
backgroundColor: e.color || d($)[o],
|
|
293
|
+
width: C(e.value)
|
|
294
|
+
})
|
|
295
|
+
}, null, 4)
|
|
296
|
+
], 4),
|
|
297
|
+
m("div", {
|
|
298
|
+
class: "value",
|
|
299
|
+
style: x({ color: d(c).textColor, fontSize: `${d(c).textSize}px` })
|
|
300
|
+
}, w(e.value), 5)
|
|
301
|
+
]))), 128))
|
|
302
|
+
])
|
|
303
|
+
]),
|
|
304
|
+
q(T.$slots, "default", {}, void 0, !0)
|
|
305
|
+
], 4));
|
|
306
|
+
}
|
|
307
|
+
})), Vt = /* @__PURE__ */ J(bt, [["__scopeId", "data-v-77329924"]]);
|
|
308
|
+
export {
|
|
309
|
+
Vt as default
|
|
310
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var A=Object.defineProperty,I=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var _=(a,l,n)=>l in a?A(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n,z=(a,l)=>{for(var n in l||(l={}))H.call(l,n)&&_(a,n,l[n]);if(V)for(var n of V(l))$.call(l,n)&&_(a,n,l[n]);return a},B=(a,l)=>I(a,q(l));var j=(a,l,n)=>new Promise((h,v)=>{var g=f=>{try{u(n.next(f))}catch(x){v(x)}},N=f=>{try{u(n.throw(f))}catch(x){v(x)}},u=f=>f.done?h(f.value):Promise.resolve(f.value).then(g,N);u((n=n.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T=require("./index-OgmTZiO-.cjs");require("element-plus");const D=require("./EChartComponentBase-C2sxqwSE.cjs"),L=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-circleBar-icon-Da0-L9sa.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),M=require("./install-nDY6w-GK.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"},titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},w=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:w,PARAMS:Q,SOURCE:X,COMMON:Y},ee=e.defineComponent(B(z({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){E.use([R.install,F.install,E.install,E.install$1,M.install]);const l=a,n=T.useLinkStore();let h=0;class v extends D.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1),showTotal:this.getOptionValue("showTotal",!0),fixed:this.getOptionValue("fixed",2),totalText:this.getOptionValue("totalText","总数")}}buildCenterTitleText(){const t=Number(this.getOptionValue("fixed",2)),o=Number.isFinite(t)?t:2,i=this.getOptionValue("totalText","总数");return[`{value|${h.toFixed(o)}}`,`{name|${i||"总数"}}`].join(`
|
|
2
|
+
`)}init(){return j(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=w),this.props.conf.data.forEach(o=>{o.default!==void 0&&o.default!==""&&(o.value=Number(o.default)||0)}),h=this.props.conf.data.reduce((o,i)=>o+Number(i.value||0),0),e.nextTick(()=>this.initChart())})}initChart(){var o,i,c;const t=document.querySelector(`#${this.echartId}`);t&&(this.chartObj||(this.chartObj=P.init(t),this.setupResizeListener(t)),(o=this.chartObj)==null||o.setOption(this.getChartOption(),!0),this.props.mode==="preview"&&((i=this.chartObj)==null||i.off("click"),(c=this.chartObj)==null||c.on("click",r=>{var d,S,b,m,p,C;const s=r==null?void 0:r.name;if(typeof s=="string"&&s){const y=((S=(d=this.props.conf)==null?void 0:d.options)==null?void 0:S.linkChannel)==="custom"?(m=(b=this.props.conf)==null?void 0:b.options)==null?void 0:m.customChannel:(C=(p=this.props.conf)==null?void 0:p.options)==null?void 0:C.linkChannel;n.publish(y||"circleBar","circleBar",{objectId:"",deviceId:"",type:"select",fieldKey:s,fv:z({key:s},r),source:"circleBar"})}})))}getChartOption(){const t=this.Style.value,{data:o,name:i}=this.props.conf,c=o.map((s,d)=>s.color||T.COLORS[d]),r=o.map(s=>({value:s.value||0,name:s.name}));return{title:{zlevel:0,show:t.showTotal,text:this.buildCenterTitleText(),textStyle:{rich:{value:{color:t.textColor,fontSize:t.textSize,fontWeight:"bold",lineHeight:t.textSize+8},name:{color:t.textColor,lineHeight:t.textSize+8,fontSize:t.textSize}}},top:"center",left:"center"},color:c,series:[{name:i,type:"pie",radius:["50%","85%"],center:["50%","50%"],data:r,label:{position:"center",show:!1,color:"inherit"},emphasis:{scale:0,label:{show:t.showTotal,fontSize:t.textSize,fontWeight:"bold",formatter:`{d}%
|
|
3
|
+
{b}`,lineHeight:t.textSize+8}}}]}}setHistoryData(t){var c;if(!t||!(t!=null&&t.length))return;const{data:o}=this.props.conf,i=this.chartObj.getOption();if(h=0,i.series[0].data.forEach((r,s)=>{var d;r.value=(d=t[s].data[0])!=null?d:0,h+=r.value,o[s].value=r.value}),(c=i.title)!=null&&c[0]){const r=this.getOptionValue("showTotal",!0);i.title[0].show=r,i.title[0].text=this.buildCenterTitleText()}this.chartObj.setOption(i,!0)}setSocketData(t){var r,s,d,S;if(!t||!this.chartObj)return;const{data:o,options:i}=this.props.conf,c=this.chartObj.getOption();o.forEach((b,m)=>{var C,y;const p=this.extractDataValue(t,b.fv);b.value=p!=null?p:0,(y=(C=c.series)==null?void 0:C[0])!=null&&y.data&&(c.series[0].data[m].value=p!=null?p:0)}),h=o.reduce((b,m)=>b+Number(m.value||0),0),(r=c.title)!=null&&r[0]&&(c.title[0].text=[`{value|${h.toFixed(((s=i==null?void 0:i.fixed)==null?void 0:s.value)||2)}}`,`{name|${((d=i==null?void 0:i.totalText)==null?void 0:d.value)||"总数"}}`].join(`
|
|
4
|
+
`)),(S=this.chartObj)==null||S.setOption(c)}}const g=new v(l,"circleBar"),N=g.getEchartId();g.setupLifecycle();const u=g.getStyle(),f=e.computed(()=>L.generateTitleStyle(l.conf.options)),x=O=>{const t=Number(O),o=Number(h);return!isNaN(t)&&!isNaN(o)&&o!==0?(t/o*100).toFixed(2)+"%":"0%"};return(O,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",U,[e.createElementVNode("div",{class:"echart-container",id:e.unref(N)},null,8,W),e.createElementVNode("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"bar-item level flex",key:i},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({color:e.unref(u).textColor,fontSize:`${e.unref(u).textSize}px`})},e.toDisplayString(o.name),5),e.createElementVNode("div",{class:"bar",style:e.normalizeStyle({height:e.unref(u).barHeight+"px",backgroundColor:e.unref(u).barColor})},[e.createElementVNode("div",{class:"percent",style:e.normalizeStyle({backgroundColor:o.color||e.unref(T.COLORS)[i],width:x(o.value)})},null,4)],4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({color:e.unref(u).textColor,fontSize:`${e.unref(u).textSize}px`})},e.toDisplayString(o.value),5)]))),128))])]),e.renderSlot(O.$slots,"default",{},void 0,!0)],4))}})),te=T._export_sfc(ee,[["__scopeId","data-v-77329924"]]);exports.default=te;
|
|
@@ -11,8 +11,8 @@ var z = (s, n, i) => n in s ? ie(s, n, { enumerable: !0, configurable: !0, writa
|
|
|
11
11
|
return s;
|
|
12
12
|
}, I = (s, n) => se(s, re(n));
|
|
13
13
|
import { defineComponent as de, ref as m, computed as t, onMounted as he, openBlock as u, createElementBlock as c, normalizeStyle as p, createElementVNode as d, toDisplayString as y, createCommentVNode as k, Fragment as F, renderList as P, renderSlot as ve } from "vue";
|
|
14
|
-
import { B as me } from "./BaseComponent-
|
|
15
|
-
import { _ as pe } from "./index-
|
|
14
|
+
import { B as me } from "./BaseComponent-CEp8NJiX.js";
|
|
15
|
+
import { _ as pe } from "./index-CqVPeq0-.js";
|
|
16
16
|
import { A as ge, D as fe } from "./ele-dateTime-icon-BEGFlwID.js";
|
|
17
17
|
const ye = {
|
|
18
18
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(r,n,c)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,x=(r,n)=>{for(var c in n||(n={}))te.call(n,c)&&_(r,c,n[c]);if(V)for(var c of V(n))oe.call(n,c)&&_(r,c,n[c]);return r},M=(r,n)=>Z(r,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-
|
|
1
|
+
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(r,n,c)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,x=(r,n)=>{for(var c in n||(n={}))te.call(n,c)&&_(r,c,n[c]);if(V)for(var c of V(n))oe.call(n,c)&&_(r,c,n[c]);return r},M=(r,n)=>Z(r,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-DaYX7dUF.cjs"),ae=require("./index-OgmTZiO-.cjs"),w=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),ne={key:0,class:"digital-clock"},ce={key:1,class:"analog-clock-wrapper"},re=["width","height"],ie=["r","stroke","stroke-width"],ue=["r","fill"],se=["x1","y1","x2","y2","stroke"],de={key:0},me=["x","y","fill","font-size"],he=["x2","y2","stroke","stroke-width"],pe=["x2","y2","stroke","stroke-width"],ve=["x2","y2","stroke","stroke-width"],ge=["r","fill"],ke={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"钟表",NAME_EN:"Clock",ORDER:5,PLATFORM:["pc","screen","mobile"]},ye={clockType:{value:"analog",type:"select",label:"时钟类型",options:[{label:"模拟时钟",value:"analog"},{label:"数字时钟",value:"digital"}]},timeFormat:{value:"24",type:"select",label:"时间格式",options:[{label:"24小时制",value:"24"},{label:"12小时制",value:"12"}]},showDate:{value:!0,type:"checkbox",label:"显示日期"},showSecondHand:{value:!0,type:"checkbox",label:"显示秒针"},showNumbers:{value:!0,type:"checkbox",label:"显示数字"},digitalFontSize:32,digitalColor:"#1f2937",digitalDateSize:14,digitalDateColor:"#6b7280",clockSize:200,backgroundColor:"#ffffff",borderColor:"#374151",borderWidth:2,tickColor:"#374151",numberColor:"#1f2937",numberSize:14,hourHandColor:"#374151",minuteHandColor:"#374151",secondHandColor:"#ef4444",centerDotColor:"#374151"},fe=[],Ce=[],Se=[],be={},Ve={DEFAULT:ke,OPTIONS:ye,DATA:fe,PARAMS:Ce,SOURCE:Se,COMMON:be},_e=e.defineComponent(M(x({},Ve),{__name:"clock",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const n=r;class c extends le.BaseComponent{constructor(){super(...arguments),this.timer=null}extractStyles(){return{clockType:this.getOptionValue("clockType","analog"),timeFormat:this.getOptionValue("timeFormat","24"),showDate:this.getOptionValue("showDate",!0),showSecondHand:this.getOptionValue("showSecondHand",!0),showNumbers:this.getOptionValue("showNumbers",!0),clockSize:this.getOptionValue("clockSize",200),backgroundColor:this.getOptionValue("backgroundColor","#ffffff"),borderColor:this.getOptionValue("borderColor","#374151"),borderWidth:this.getOptionValue("borderWidth",2),tickColor:this.getOptionValue("tickColor","#374151"),numberColor:this.getOptionValue("numberColor","#1f2937"),numberSize:this.getOptionValue("numberSize",14),hourHandColor:this.getOptionValue("hourHandColor","#374151"),minuteHandColor:this.getOptionValue("minuteHandColor","#374151"),secondHandColor:this.getOptionValue("secondHandColor","#ef4444"),centerDotColor:this.getOptionValue("centerDotColor","#374151"),digitalFontSize:this.getOptionValue("digitalFontSize",32),digitalColor:this.getOptionValue("digitalColor","#1f2937"),digitalDateSize:this.getOptionValue("digitalDateSize",14),digitalDateColor:this.getOptionValue("digitalDateColor","#6b7280")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.timer&&clearInterval(this.timer),p(),this.timer=setInterval(p,1e3)}cleanup(){this.timer&&clearInterval(this.timer)}}const v=new c(n,"clock");v.setupLifecycle();const o=v.getStyle(),g=e.ref(""),h=e.ref(""),d=e.ref(0),s=e.ref(0),m=e.ref(0),N=e.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),D=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.clockType)||"analog"}),O=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.timeFormat)||"24"}),k=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showDate)!==!1}),E=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showSecondHand)!==!1}),H=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showNumbers)!==!1}),u=e.computed(()=>{var a;const t=(a=o.value)==null?void 0:a.clockSize,l=Number(t);return typeof l=="number"&&!Number.isNaN(l)&&l>0?l:200}),i=e.computed(()=>{const t=u.value;return typeof t=="number"&&!Number.isNaN(t)?t*.45:90}),z=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.backgroundColor)||"#ffffff"}),I=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderColor)||"#374151"}),y=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderWidth)||2}),B=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.tickColor)||"#374151"}),T=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberColor)||"#1f2937"}),F=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberSize)||14}),P=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.hourHandColor)||"#374151"}),$=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.minuteHandColor)||"#374151"}),A=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.secondHandColor)||"#ef4444"}),L=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.centerDotColor)||"#374151"}),f=e.computed(()=>i.value*.5),C=e.computed(()=>i.value*.7),S=e.computed(()=>i.value*.8),W=e.computed(()=>Math.max(3,u.value*.015)),R=e.computed(()=>Math.max(2,u.value*.01)),q=e.computed(()=>Math.max(1,u.value*.005)),U=e.computed(()=>Math.max(3,u.value*.015)),j=e.computed(()=>({width:`${u.value}px`,height:`${u.value}px`,maxWidth:"100%",maxHeight:"100%"})),Y=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalFontSize)||32}px`,color:((l=o.value)==null?void 0:l.digitalColor)||"#1f2937",fontWeight:"bold",fontFamily:"monospace"}}),b=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalDateSize)||14}px`,color:((l=o.value)==null?void 0:l.digitalDateColor)||"#6b7280",fontFamily:"monospace",marginTop:"8px"}}),p=()=>{const t=new Date;d.value=t.getHours(),s.value=t.getMinutes(),m.value=t.getSeconds();let l=d.value,a="";O.value==="12"&&(a=l>=12?" PM":" AM",l=l%12,l===0&&(l=12)),g.value=`${l.toString().padStart(2,"0")}:${s.value.toString().padStart(2,"0")}:${m.value.toString().padStart(2,"0")}${a}`;const G=t.getFullYear(),J=(t.getMonth()+1).toString().padStart(2,"0"),K=t.getDate().toString().padStart(2,"0"),Q=["周日","周一","周二","周三","周四","周五","周六"];h.value=`${G}-${J}-${K} ${Q[t.getDay()]}`};return e.onMounted(()=>p()),(t,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(N.value),class:"mix-component"},[D.value==="digital"?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",{class:"time-display",style:e.normalizeStyle(Y.value)},e.toDisplayString(g.value),5),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",{class:"analog-clock",style:e.normalizeStyle(j.value)},[(e.openBlock(),e.createElementBlock("svg",{width:u.value,height:u.value,viewBox:"0 0 200 200",class:"clock-svg"},[e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value,stroke:I.value,"stroke-width":y.value,fill:"none"},null,8,ie),e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value-y.value/2,fill:z.value},null,8,ue),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("g",{key:`hour-${a}`},[e.createElementVNode("line",{x1:100+(i.value-15)*Math.cos((a*30-90)*Math.PI/180),y1:100+(i.value-15)*Math.sin((a*30-90)*Math.PI/180),x2:100+(i.value-5)*Math.cos((a*30-90)*Math.PI/180),y2:100+(i.value-5)*Math.sin((a*30-90)*Math.PI/180),stroke:B.value,"stroke-width":"2"},null,8,se)])),64)),H.value?(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("text",{key:`number-${a}`,x:100+(i.value-25)*Math.cos((a*30-90)*Math.PI/180),y:100+(i.value-25)*Math.sin((a*30-90)*Math.PI/180),"text-anchor":"middle","dominant-baseline":"central",fill:T.value,"font-size":F.value,"font-weight":"bold"},e.toDisplayString(a),9,me)),64))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+f.value*Math.cos((d.value*30+s.value*.5-90)*Math.PI/180),y2:100+f.value*Math.sin((d.value*30+s.value*.5-90)*Math.PI/180),stroke:P.value,"stroke-width":W.value,"stroke-linecap":"round"},null,8,he),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+C.value*Math.cos((s.value*6-90)*Math.PI/180),y2:100+C.value*Math.sin((s.value*6-90)*Math.PI/180),stroke:$.value,"stroke-width":R.value,"stroke-linecap":"round"},null,8,pe),E.value?(e.openBlock(),e.createElementBlock("line",{key:1,x1:"100",y1:"100",x2:100+S.value*Math.cos((m.value*6-90)*Math.PI/180),y2:100+S.value*Math.sin((m.value*6-90)*Math.PI/180),stroke:A.value,"stroke-width":q.value,"stroke-linecap":"round"},null,8,ve)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:"100",cy:"100",r:U.value,fill:L.value},null,8,ge)],8,re))],4),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),xe=ae._export_sfc(_e,[["__scopeId","data-v-d8289d01"]]);exports.default=xe;
|
|
@@ -34,8 +34,8 @@ import "element-plus/es/components/radio/style/css";
|
|
|
34
34
|
import "element-plus/es/components/input-number/style/css";
|
|
35
35
|
import "element-plus/es/components/input/style/css";
|
|
36
36
|
import { defineComponent as re, computed as P, ref as ie, openBlock as y, createElementBlock as C, normalizeStyle as S, unref as d, createElementVNode as g, toDisplayString as _, Fragment as R, renderList as F, createBlock as O, withCtx as v, createTextVNode as b, createCommentVNode as k, createVNode as z, renderSlot as ne } from "vue";
|
|
37
|
-
import { B as ce } from "./BaseComponent-
|
|
38
|
-
import { a as A, h as M, _ as se } from "./index-
|
|
37
|
+
import { B as ce } from "./BaseComponent-CEp8NJiX.js";
|
|
38
|
+
import { a as A, h as M, _ as se } from "./index-CqVPeq0-.js";
|
|
39
39
|
import { g as ue } from "./titleStyle-BT5GlpAb.js";
|
|
40
40
|
import { ElMessage as x } from "element-plus";
|
|
41
41
|
import { A as de, D as pe } from "./ele-clt-icon-DuU4Q401.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var B=(s,l,n)=>l in s?A(s,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[l]=n,x=(s,l)=>{for(var n in l||(l={}))M.call(l,n)&&B(s,n,l[n]);if(k)for(var n of k(l))P.call(l,n)&&B(s,n,l[n]);return s},O=(s,l)=>U(s,$(l));var V=(s,l,n)=>new Promise((v,u)=>{var S=m=>{try{p(n.next(m))}catch(_){u(_)}},b=m=>{try{p(n.throw(m))}catch(_){u(_)}},p=m=>m.done?v(m.value):Promise.resolve(m.value).then(S,b);p((n=n.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./BaseComponent-
|
|
1
|
+
"use strict";var A=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var B=(s,l,n)=>l in s?A(s,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[l]=n,x=(s,l)=>{for(var n in l||(l={}))M.call(l,n)&&B(s,n,l[n]);if(k)for(var n of k(l))P.call(l,n)&&B(s,n,l[n]);return s},O=(s,l)=>U(s,$(l));var V=(s,l,n)=>new Promise((v,u)=>{var S=m=>{try{p(n.next(m))}catch(_){u(_)}},b=m=>{try{p(n.throw(m))}catch(_){u(_)}},p=m=>m.done?v(m.value):Promise.resolve(m.value).then(S,b);p((n=n.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./BaseComponent-DaYX7dUF.cjs"),g=require("./index-OgmTZiO-.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),R={class:"item-val"},L={class:"w-full flex justify-end"},W={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"项目采集",NAME_EN:"Project",ORDER:1,PLATFORM:["pc","screen","mobile"]},G={bgColor:"#fff",projectColor:"#999",projectSize:14,paramColor:"#333",labelWidth:64,paramSize:12,paramHeight:32,radiusSize:8,type:{value:"project",type:"radio",option:[{value:"project",label:"component.collect.projectType"},{value:"object",label:"component.collect.objectType"}],label:"component.collect.collectType"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{project_id:"",object_id:""}],K=["project_id","object_id"],Q={DEFAULT:W,OPTIONS:G,DATA:J,PARAMS:K,COMMON:{}},X=e.defineComponent(O(x({},Q),{__name:"clt",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const l=s;class n extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),projectColor:this.getOptionValue("projectColor","#999"),projectSize:this.getOptionValue("projectSize",14),paramColor:this.getOptionValue("paramColor","#333"),labelWidth:this.getOptionValue("labelWidth",64),paramSize:this.getOptionValue("paramSize",12),paramHeight:this.getOptionValue("paramHeight",32),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","project")}}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),_()})}}const v=new n(l,"clt");v.setupLifecycle();const u=v.getStyle(),S=l.conf,b=e.computed(()=>H.generateTitleStyle(l.conf.options)),p=e.ref([{name:"离线项目",data:[{name:"采集项",type:"Integer",unit:"℃",value:""}]}]);let m=0;const _=()=>V(null,null,function*(){const{data:a}=l.conf;p.value=[];const d=a.filter(f=>f.project_id).map(f=>f.project_id);if(!d.length)return;const t=++m,r={where_in:JSON.stringify([["uid",d.join(",")]])},{result:c}=yield g.api.post("get_collect_list",r);if(t!==m)return;const o=c==null?void 0:c.data;Array.isArray(o)&&o.length>0&&(p.value=o.map(f=>({name:f.name,uid:f.uid,object_id:f.object_id,data:z(f.script)})))}),z=a=>{const d=[];return a.forEach(t=>{d.push({name:t.label_loc,type:t.type,unit:t.unit,key:t.key})}),d},E=e.computed(()=>{let a=!0;return p.value.forEach(d=>{d.data.forEach(t=>{(t.value||t.value===0)&&(a=!1)})}),a}),q=()=>{l.mode!=="edit"&&(u.value.type==="object"?D():w())},w=()=>{const a=[],d=g.auth.getUser();p.value.forEach(t=>{const r={};if(t.data.forEach(o=>{(o.value||o.value===0)&&(r[o.key]=["Integer","Float"].includes(o.type)?Number(o.value):o.type==="Bool"?!!o.value:o.value)}),!Object.keys(r).length)return;const c={name:t.name,value:r,collect_id:t.uid,collector:d.name};a.push(g.api.post("add_collect_value_without_object",c))}),Promise.all(a).then(t=>{let r=!0;t.forEach(c=>{c.code!==200&&(r=!1,C.ElMessage.error(c.msg))}),r&&C.ElMessage.success("操作成功")})},D=()=>{const a=[],d=g.auth.getUser();p.value.forEach(t=>{const r={};if(t.data.forEach(o=>{(o.value||o.value===0)&&(r[o.key]=["Integer","Float"].includes(o.type)?Number(o.value):o.type==="Bool"?!!o.value:o.value)}),!Object.keys(r).length)return;const c={name:t.name,value:r,collect_id:t.uid,object_id:t.object_id||l.uid,collector:d.name};a.push(g.api.post("add_collect_value",c))}),Promise.all(a).then(t=>{let r=!0;t.forEach(c=>{c.code!==200&&(r=!1,C.ElMessage.error(c.msg))}),r&&C.ElMessage.success("操作成功")})};return(a,d)=>{const t=h.ElInput,r=h.ElInputNumber,c=h.ElRadio,o=h.ElRadioGroup,f=h.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(b.value)},e.toDisplayString(e.unref(S).caption||e.unref(S).name),5),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(j,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({fontSize:`${e.unref(u).projectSize}px`,color:e.unref(u).projectColor})},e.toDisplayString(j.name),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.data,(i,I)=>(e.openBlock(),e.createElementBlock("div",{class:"item-wrap",key:`${N}_${I}`},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`,fontSize:`${e.unref(u).paramSize}px`,color:e.unref(u).paramColor,height:`${e.unref(u).paramHeight}px`})},e.toDisplayString(i.name)+": ",5),e.createElementVNode("div",R,[i.type==="String"?(e.openBlock(),e.createBlock(t,{key:0,type:"text",modelValue:i.value,"onUpdate:modelValue":y=>i.value=y},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Integer"?(e.openBlock(),e.createBlock(r,{key:1,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Float"?(e.openBlock(),e.createBlock(r,{key:2,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Bool"?(e.openBlock(),e.createBlock(o,{key:3,value:i.value,"onUpdate:value":y=>i.value=y},{default:e.withCtx(()=>[e.createVNode(c,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.yes")),1)]),_:1}),e.createVNode(c,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.no")),1)]),_:1})]),_:1},8,["value","onUpdate:value"])):e.createCommentVNode("",!0)])]))),128))]))),128)),e.createElementVNode("div",L,[e.createVNode(f,{type:E.value?"default":"primary",disabled:E.value,onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Y=g._export_sfc(X,[["__scopeId","data-v-c54bd4ad"]]);exports.default=Y;
|
|
@@ -34,8 +34,8 @@ import "element-plus/es/components/radio/style/css";
|
|
|
34
34
|
import "element-plus/es/components/input-number/style/css";
|
|
35
35
|
import "element-plus/es/components/input/style/css";
|
|
36
36
|
import { defineComponent as X, getCurrentInstance as Z, computed as M, watchEffect as tt, openBlock as y, createElementBlock as N, normalizeStyle as E, unref as u, createElementVNode as v, toDisplayString as _, Fragment as et, renderList as ot, createBlock as I, withCtx as b, createTextVNode as S, createCommentVNode as O, createVNode as z, renderSlot as at } from "vue";
|
|
37
|
-
import { B as lt } from "./BaseComponent-
|
|
38
|
-
import { a as H, A as it, h as nt, _ as st } from "./index-
|
|
37
|
+
import { B as lt } from "./BaseComponent-CEp8NJiX.js";
|
|
38
|
+
import { a as H, A as it, h as nt, _ as st } from "./index-CqVPeq0-.js";
|
|
39
39
|
import { g as ct } from "./titleStyle-BT5GlpAb.js";
|
|
40
40
|
import { A as rt, D as dt } from "./ele-clt-icon-DuU4Q401.js";
|
|
41
41
|
import { ElMessage as pt } from "element-plus";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var z=Object.defineProperty,A=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(c,a,o)=>a in c?z(c,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[a]=o,O=(c,a)=>{for(var o in a||(a={}))w.call(a,o)&&x(c,o,a[o]);if(v)for(var o of v(a))U.call(a,o)&&x(c,o,a[o]);return c},B=(c,a)=>A(c,j(a));var N=(c,a,o)=>new Promise((C,b)=>{var y=f=>{try{g(o.next(f))}catch(h){b(h)}},m=f=>{try{g(o.throw(f))}catch(h){b(h)}},g=f=>f.done?C(f.value):Promise.resolve(f.value).then(y,m);g((o=o.apply(c,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),q=require("./BaseComponent-
|
|
1
|
+
"use strict";var z=Object.defineProperty,A=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(c,a,o)=>a in c?z(c,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[a]=o,O=(c,a)=>{for(var o in a||(a={}))w.call(a,o)&&x(c,o,a[o]);if(v)for(var o of v(a))U.call(a,o)&&x(c,o,a[o]);return c},B=(c,a)=>A(c,j(a));var N=(c,a,o)=>new Promise((C,b)=>{var y=f=>{try{g(o.next(f))}catch(h){b(h)}},m=f=>{try{g(o.throw(f))}catch(h){b(h)}},g=f=>f.done?C(f.value):Promise.resolve(f.value).then(y,m);g((o=o.apply(c,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),q=require("./BaseComponent-DaYX7dUF.cjs"),V=require("./index-OgmTZiO-.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),P=require("element-plus"),$={class:"item-val"},H={key:0,class:"btn-wrap"},L={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"定制采集",NAME_EN:"Customer",ORDER:2,PLATFORM:["pc","screen","mobile"]},F={bgColor:"#fff",titleColor:"#111",paramColor:"#333",labelWidth:64,titleSize:14,paramSize:12,paramHeight:32,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},R=[{object_id:"",project_id:"",collect:"",label_cn:"",fv:""}],W=["mosaic"],G=["object_id","project_id","collect","label_cn","fv"],J={DEFAULT:L,OPTIONS:F,DATA:R,PARAMS:G,SOURCE:W,COMMON:{}},K=e.defineComponent(B(O({},J),{__name:"cmc",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},sourceData:{type:Object,default:()=>({})}},setup(c){const{proxy:a}=e.getCurrentInstance(),o=c,C="--";class b extends q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),paramColor:this.getOptionValue("paramColor","#333"),labelWidth:this.getOptionValue("labelWidth",64),titleSize:this.getOptionValue("titleSize",14),paramSize:this.getOptionValue("paramSize",12),paramHeight:this.getOptionValue("paramHeight",32),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","project")}}init(){return N(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),h()})}setHistoryData(r){const{data:d}=this.props.conf;d.forEach((u,p)=>{var t;u.value=(t=r[p].data[0])!=null?t:C})}setSocketData(r){const{common:d,data:u,uid:p}=this.props.conf;console.log(r,"result socket"),u.forEach(t=>{var s;t.value=(s=r.data[t.fv])!=null?s:C})}}const y=new b(o,"cmc");y.setupLifecycle();const m=y.getStyle(),g=o.conf,f=e.computed(()=>M.generateTitleStyle(o.conf.options)),h=()=>N(null,null,function*(){const{data:n}=o.conf;if(!n||n.length===0)return;const r=n.filter(t=>t.project_id).map(t=>t.project_id);if(!r.length){o.mode==="edit"&&n.forEach(t=>{t.label_cn=t.label_cn||a.$t("component.collect.collectItem"),t.type=t.type||"Integer",t.unit=t.unit||""});return}let d={where_in:JSON.stringify([["uid",r.join(",")]])};const{result:u}=yield V.api.post("get_collect_list",d,!0),p={};u.data.forEach(t=>{p[t.uid]=t}),n.forEach(t=>{var s;if((s=p[t.project_id])!=null&&s.script){const i=p[t.project_id].script.find(E=>E.key===t.collect);t.unit=i==null?void 0:i.unit,t.label_cn=t.label_cn||(i==null?void 0:i.label_loc),t.type=i==null?void 0:i.type}})}),k=e.computed(()=>{const{data:n}=o.conf;let r=!0;return n.forEach(d=>{(d.setting||d.setting===0)&&(r=!1)}),r}),D=()=>N(null,null,function*(){if(o.mode==="edit")return;const{data:n,common:r}=o.conf,d=JSON.parse(sessionStorage.getItem(V.ALIAS_MAPPING_KEY)||"{}")||{},u=[],p=V.auth.getUser();n.forEach(t=>{const s=r.useAlias?d[t.object_alias]:t.object_id||o.uid;if((t.setting||t.setting===0)&&s){let i={collect_id:t.project_id,object_id:s,value:{[t.collect]:["Integer","Float"].includes(t.type)?Number(t.setting):t.setting},name:t.label_cn,collector:p.name};u.push(V.api.post("add_collect_value",i))}}),Promise.all(u).then(t=>{console.log(t),t.every(s=>s.code===200)&&P.ElMessage.success("操作成功")})});return e.watchEffect(()=>{o.conf.socketData&&y.setSocketData(o.conf.socketData)}),(n,r)=>{var i,E;const d=S.ElInput,u=S.ElInputNumber,p=S.ElRadio,t=S.ElRadioGroup,s=S.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(m).bgColor,borderRadius:`${e.unref(m).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(e.unref(g).caption||e.unref(g).name),5),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(m).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g).data,(l,I)=>(e.openBlock(),e.createElementBlock("div",{key:I,class:"item-wrap"},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(m).labelWidth}px`,fontSize:`${e.unref(m).paramSize}px`,color:e.unref(m).paramColor})},e.toDisplayString(l.label_cn)+": ",5),e.createElementVNode("div",$,[l.type==="String"?(e.openBlock(),e.createBlock(d,{key:0,type:"text",class:"w-full",modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Integer"?(e.openBlock(),e.createBlock(u,{key:1,style:{width:"100%"},modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Float"?(e.openBlock(),e.createBlock(u,{key:2,style:{width:"100%"},modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Boolean"?(e.openBlock(),e.createBlock(t,{key:3,class:"w-full",modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_},{default:e.withCtx(()=>[e.createVNode(p,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.yes")),1)]),_:1}),e.createVNode(p,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.no")),1)]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"item-label",style:e.normalizeStyle({fontSize:`${e.unref(m).paramSize}px`})},e.toDisplayString(l.value||"--"),5)]))),128)),(E=(i=e.unref(g))==null?void 0:i.data)!=null&&E.length?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(s,{type:k.value?"default":"primary",disabled:k.value,onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])):e.createCommentVNode("",!0)],4),e.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Y=V._export_sfc(K,[["__scopeId","data-v-e71e3deb"]]);exports.default=Y;
|